configure 687 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for PCRE 8.43.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='PCRE'
  539. PACKAGE_TARNAME='pcre'
  540. PACKAGE_VERSION='8.43'
  541. PACKAGE_STRING='PCRE 8.43'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="pcre.h.in"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. WITH_GCOV_FALSE
  585. WITH_GCOV_TRUE
  586. GCOV_LIBS
  587. GCOV_CXXFLAGS
  588. GCOV_CFLAGS
  589. GENHTML
  590. LCOV
  591. SHTOOL
  592. VALGRIND_LIBS
  593. VALGRIND_CFLAGS
  594. PKG_CONFIG_LIBDIR
  595. PKG_CONFIG_PATH
  596. PKG_CONFIG
  597. LIBBZ2
  598. LIBZ
  599. DISTCHECK_CONFIGURE_FLAGS
  600. EXTRA_LIBPCRECPP_LDFLAGS
  601. EXTRA_LIBPCREPOSIX_LDFLAGS
  602. EXTRA_LIBPCRE32_LDFLAGS
  603. EXTRA_LIBPCRE16_LDFLAGS
  604. EXTRA_LIBPCRE_LDFLAGS
  605. PTHREAD_CFLAGS
  606. PTHREAD_LIBS
  607. PTHREAD_CC
  608. ax_pthread_config
  609. PCRE_STATIC_CFLAG
  610. LIBREADLINE
  611. WITH_VALGRIND_FALSE
  612. WITH_VALGRIND_TRUE
  613. WITH_UTF_FALSE
  614. WITH_UTF_TRUE
  615. WITH_JIT_FALSE
  616. WITH_JIT_TRUE
  617. WITH_REBUILD_CHARTABLES_FALSE
  618. WITH_REBUILD_CHARTABLES_TRUE
  619. WITH_PCRE_CPP_FALSE
  620. WITH_PCRE_CPP_TRUE
  621. WITH_PCRE32_FALSE
  622. WITH_PCRE32_TRUE
  623. WITH_PCRE16_FALSE
  624. WITH_PCRE16_TRUE
  625. WITH_PCRE8_FALSE
  626. WITH_PCRE8_TRUE
  627. pcre_have_bits_type_traits
  628. pcre_have_type_traits
  629. pcre_have_ulong_long
  630. pcre_have_long_long
  631. enable_cpp
  632. enable_pcre32
  633. enable_pcre16
  634. enable_pcre8
  635. PCRE_DATE
  636. PCRE_PRERELEASE
  637. PCRE_MINOR
  638. PCRE_MAJOR
  639. HAVE_VISIBILITY
  640. VISIBILITY_CXXFLAGS
  641. VISIBILITY_CFLAGS
  642. CXXCPP
  643. LT_SYS_LIBRARY_PATH
  644. OTOOL64
  645. OTOOL
  646. LIPO
  647. NMEDIT
  648. DSYMUTIL
  649. MANIFEST_TOOL
  650. RANLIB
  651. LN_S
  652. NM
  653. ac_ct_DUMPBIN
  654. DUMPBIN
  655. LD
  656. FGREP
  657. SED
  658. LIBTOOL
  659. OBJDUMP
  660. DLLTOOL
  661. AS
  662. host_os
  663. host_vendor
  664. host_cpu
  665. host
  666. build_os
  667. build_vendor
  668. build_cpu
  669. build
  670. EGREP
  671. GREP
  672. CPP
  673. am__fastdepCXX_FALSE
  674. am__fastdepCXX_TRUE
  675. CXXDEPMODE
  676. ac_ct_CXX
  677. CXXFLAGS
  678. CXX
  679. am__fastdepCC_FALSE
  680. am__fastdepCC_TRUE
  681. CCDEPMODE
  682. am__nodep
  683. AMDEPBACKSLASH
  684. AMDEP_FALSE
  685. AMDEP_TRUE
  686. am__include
  687. DEPDIR
  688. OBJEXT
  689. EXEEXT
  690. ac_ct_CC
  691. CPPFLAGS
  692. LDFLAGS
  693. CFLAGS
  694. CC
  695. ac_ct_AR
  696. AR
  697. AM_BACKSLASH
  698. AM_DEFAULT_VERBOSITY
  699. AM_DEFAULT_V
  700. AM_V
  701. am__untar
  702. am__tar
  703. AMTAR
  704. am__leading_dot
  705. SET_MAKE
  706. AWK
  707. mkdir_p
  708. MKDIR_P
  709. INSTALL_STRIP_PROGRAM
  710. STRIP
  711. install_sh
  712. MAKEINFO
  713. AUTOHEADER
  714. AUTOMAKE
  715. AUTOCONF
  716. ACLOCAL
  717. VERSION
  718. PACKAGE
  719. CYGPATH_W
  720. am__isrc
  721. INSTALL_DATA
  722. INSTALL_SCRIPT
  723. INSTALL_PROGRAM
  724. target_alias
  725. host_alias
  726. build_alias
  727. LIBS
  728. ECHO_T
  729. ECHO_N
  730. ECHO_C
  731. DEFS
  732. mandir
  733. localedir
  734. libdir
  735. psdir
  736. pdfdir
  737. dvidir
  738. htmldir
  739. infodir
  740. docdir
  741. oldincludedir
  742. includedir
  743. localstatedir
  744. sharedstatedir
  745. sysconfdir
  746. datadir
  747. datarootdir
  748. libexecdir
  749. sbindir
  750. bindir
  751. program_transform_name
  752. prefix
  753. exec_prefix
  754. PACKAGE_URL
  755. PACKAGE_BUGREPORT
  756. PACKAGE_STRING
  757. PACKAGE_VERSION
  758. PACKAGE_TARNAME
  759. PACKAGE_NAME
  760. PATH_SEPARATOR
  761. SHELL
  762. am__quote'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_silent_rules
  767. enable_dependency_tracking
  768. enable_shared
  769. enable_static
  770. with_pic
  771. enable_fast_install
  772. with_aix_soname
  773. with_gnu_ld
  774. with_sysroot
  775. enable_libtool_lock
  776. enable_pcre8
  777. enable_pcre16
  778. enable_pcre32
  779. enable_cpp
  780. enable_jit
  781. enable_pcregrep_jit
  782. enable_rebuild_chartables
  783. enable_utf8
  784. enable_utf
  785. enable_unicode_properties
  786. enable_newline_is_cr
  787. enable_newline_is_lf
  788. enable_newline_is_crlf
  789. enable_newline_is_anycrlf
  790. enable_newline_is_any
  791. enable_bsr_anycrlf
  792. enable_ebcdic
  793. enable_ebcdic_nl25
  794. enable_stack_for_recursion
  795. enable_pcregrep_libz
  796. enable_pcregrep_libbz2
  797. with_pcregrep_bufsize
  798. enable_pcretest_libedit
  799. enable_pcretest_libreadline
  800. with_posix_malloc_threshold
  801. with_link_size
  802. with_parens_nest_limit
  803. with_match_limit
  804. with_match_limit_recursion
  805. enable_valgrind
  806. enable_coverage
  807. '
  808. ac_precious_vars='build_alias
  809. host_alias
  810. target_alias
  811. CC
  812. CFLAGS
  813. LDFLAGS
  814. LIBS
  815. CPPFLAGS
  816. CXX
  817. CXXFLAGS
  818. CCC
  819. CPP
  820. LT_SYS_LIBRARY_PATH
  821. CXXCPP
  822. PKG_CONFIG
  823. PKG_CONFIG_PATH
  824. PKG_CONFIG_LIBDIR
  825. VALGRIND_CFLAGS
  826. VALGRIND_LIBS
  827. LCOV
  828. GENHTML'
  829. # Initialize some variables set by options.
  830. ac_init_help=
  831. ac_init_version=false
  832. ac_unrecognized_opts=
  833. ac_unrecognized_sep=
  834. # The variables have the same names as the options, with
  835. # dashes changed to underlines.
  836. cache_file=/dev/null
  837. exec_prefix=NONE
  838. no_create=
  839. no_recursion=
  840. prefix=NONE
  841. program_prefix=NONE
  842. program_suffix=NONE
  843. program_transform_name=s,x,x,
  844. silent=
  845. site=
  846. srcdir=
  847. verbose=
  848. x_includes=NONE
  849. x_libraries=NONE
  850. # Installation directory options.
  851. # These are left unexpanded so users can "make install exec_prefix=/foo"
  852. # and all the variables that are supposed to be based on exec_prefix
  853. # by default will actually change.
  854. # Use braces instead of parens because sh, perl, etc. also accept them.
  855. # (The list follows the same order as the GNU Coding Standards.)
  856. bindir='${exec_prefix}/bin'
  857. sbindir='${exec_prefix}/sbin'
  858. libexecdir='${exec_prefix}/libexec'
  859. datarootdir='${prefix}/share'
  860. datadir='${datarootdir}'
  861. sysconfdir='${prefix}/etc'
  862. sharedstatedir='${prefix}/com'
  863. localstatedir='${prefix}/var'
  864. includedir='${prefix}/include'
  865. oldincludedir='/usr/include'
  866. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  867. infodir='${datarootdir}/info'
  868. htmldir='${docdir}'
  869. dvidir='${docdir}'
  870. pdfdir='${docdir}'
  871. psdir='${docdir}'
  872. libdir='${exec_prefix}/lib'
  873. localedir='${datarootdir}/locale'
  874. mandir='${datarootdir}/man'
  875. ac_prev=
  876. ac_dashdash=
  877. for ac_option
  878. do
  879. # If the previous option needs an argument, assign it.
  880. if test -n "$ac_prev"; then
  881. eval $ac_prev=\$ac_option
  882. ac_prev=
  883. continue
  884. fi
  885. case $ac_option in
  886. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  887. *=) ac_optarg= ;;
  888. *) ac_optarg=yes ;;
  889. esac
  890. # Accept the important Cygnus configure options, so we can diagnose typos.
  891. case $ac_dashdash$ac_option in
  892. --)
  893. ac_dashdash=yes ;;
  894. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  895. ac_prev=bindir ;;
  896. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  897. bindir=$ac_optarg ;;
  898. -build | --build | --buil | --bui | --bu)
  899. ac_prev=build_alias ;;
  900. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  901. build_alias=$ac_optarg ;;
  902. -cache-file | --cache-file | --cache-fil | --cache-fi \
  903. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  904. ac_prev=cache_file ;;
  905. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  906. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  907. cache_file=$ac_optarg ;;
  908. --config-cache | -C)
  909. cache_file=config.cache ;;
  910. -datadir | --datadir | --datadi | --datad)
  911. ac_prev=datadir ;;
  912. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  913. datadir=$ac_optarg ;;
  914. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  915. | --dataroo | --dataro | --datar)
  916. ac_prev=datarootdir ;;
  917. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  918. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  919. datarootdir=$ac_optarg ;;
  920. -disable-* | --disable-*)
  921. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  922. # Reject names that are not valid shell variable names.
  923. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  924. as_fn_error $? "invalid feature name: $ac_useropt"
  925. ac_useropt_orig=$ac_useropt
  926. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  927. case $ac_user_opts in
  928. *"
  929. "enable_$ac_useropt"
  930. "*) ;;
  931. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  932. ac_unrecognized_sep=', ';;
  933. esac
  934. eval enable_$ac_useropt=no ;;
  935. -docdir | --docdir | --docdi | --doc | --do)
  936. ac_prev=docdir ;;
  937. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  938. docdir=$ac_optarg ;;
  939. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  940. ac_prev=dvidir ;;
  941. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  942. dvidir=$ac_optarg ;;
  943. -enable-* | --enable-*)
  944. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  945. # Reject names that are not valid shell variable names.
  946. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  947. as_fn_error $? "invalid feature name: $ac_useropt"
  948. ac_useropt_orig=$ac_useropt
  949. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  950. case $ac_user_opts in
  951. *"
  952. "enable_$ac_useropt"
  953. "*) ;;
  954. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  955. ac_unrecognized_sep=', ';;
  956. esac
  957. eval enable_$ac_useropt=\$ac_optarg ;;
  958. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  959. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  960. | --exec | --exe | --ex)
  961. ac_prev=exec_prefix ;;
  962. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  963. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  964. | --exec=* | --exe=* | --ex=*)
  965. exec_prefix=$ac_optarg ;;
  966. -gas | --gas | --ga | --g)
  967. # Obsolete; use --with-gas.
  968. with_gas=yes ;;
  969. -help | --help | --hel | --he | -h)
  970. ac_init_help=long ;;
  971. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  972. ac_init_help=recursive ;;
  973. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  974. ac_init_help=short ;;
  975. -host | --host | --hos | --ho)
  976. ac_prev=host_alias ;;
  977. -host=* | --host=* | --hos=* | --ho=*)
  978. host_alias=$ac_optarg ;;
  979. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  980. ac_prev=htmldir ;;
  981. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  982. | --ht=*)
  983. htmldir=$ac_optarg ;;
  984. -includedir | --includedir | --includedi | --included | --include \
  985. | --includ | --inclu | --incl | --inc)
  986. ac_prev=includedir ;;
  987. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  988. | --includ=* | --inclu=* | --incl=* | --inc=*)
  989. includedir=$ac_optarg ;;
  990. -infodir | --infodir | --infodi | --infod | --info | --inf)
  991. ac_prev=infodir ;;
  992. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  993. infodir=$ac_optarg ;;
  994. -libdir | --libdir | --libdi | --libd)
  995. ac_prev=libdir ;;
  996. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  997. libdir=$ac_optarg ;;
  998. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  999. | --libexe | --libex | --libe)
  1000. ac_prev=libexecdir ;;
  1001. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1002. | --libexe=* | --libex=* | --libe=*)
  1003. libexecdir=$ac_optarg ;;
  1004. -localedir | --localedir | --localedi | --localed | --locale)
  1005. ac_prev=localedir ;;
  1006. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1007. localedir=$ac_optarg ;;
  1008. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1009. | --localstate | --localstat | --localsta | --localst | --locals)
  1010. ac_prev=localstatedir ;;
  1011. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1012. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1013. localstatedir=$ac_optarg ;;
  1014. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1015. ac_prev=mandir ;;
  1016. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1017. mandir=$ac_optarg ;;
  1018. -nfp | --nfp | --nf)
  1019. # Obsolete; use --without-fp.
  1020. with_fp=no ;;
  1021. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1022. | --no-cr | --no-c | -n)
  1023. no_create=yes ;;
  1024. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1025. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1026. no_recursion=yes ;;
  1027. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1028. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1029. | --oldin | --oldi | --old | --ol | --o)
  1030. ac_prev=oldincludedir ;;
  1031. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1032. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1033. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1034. oldincludedir=$ac_optarg ;;
  1035. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1036. ac_prev=prefix ;;
  1037. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1038. prefix=$ac_optarg ;;
  1039. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1040. | --program-pre | --program-pr | --program-p)
  1041. ac_prev=program_prefix ;;
  1042. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1043. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1044. program_prefix=$ac_optarg ;;
  1045. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1046. | --program-suf | --program-su | --program-s)
  1047. ac_prev=program_suffix ;;
  1048. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1049. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1050. program_suffix=$ac_optarg ;;
  1051. -program-transform-name | --program-transform-name \
  1052. | --program-transform-nam | --program-transform-na \
  1053. | --program-transform-n | --program-transform- \
  1054. | --program-transform | --program-transfor \
  1055. | --program-transfo | --program-transf \
  1056. | --program-trans | --program-tran \
  1057. | --progr-tra | --program-tr | --program-t)
  1058. ac_prev=program_transform_name ;;
  1059. -program-transform-name=* | --program-transform-name=* \
  1060. | --program-transform-nam=* | --program-transform-na=* \
  1061. | --program-transform-n=* | --program-transform-=* \
  1062. | --program-transform=* | --program-transfor=* \
  1063. | --program-transfo=* | --program-transf=* \
  1064. | --program-trans=* | --program-tran=* \
  1065. | --progr-tra=* | --program-tr=* | --program-t=*)
  1066. program_transform_name=$ac_optarg ;;
  1067. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1068. ac_prev=pdfdir ;;
  1069. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1070. pdfdir=$ac_optarg ;;
  1071. -psdir | --psdir | --psdi | --psd | --ps)
  1072. ac_prev=psdir ;;
  1073. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1074. psdir=$ac_optarg ;;
  1075. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1076. | -silent | --silent | --silen | --sile | --sil)
  1077. silent=yes ;;
  1078. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1079. ac_prev=sbindir ;;
  1080. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1081. | --sbi=* | --sb=*)
  1082. sbindir=$ac_optarg ;;
  1083. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1084. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1085. | --sharedst | --shareds | --shared | --share | --shar \
  1086. | --sha | --sh)
  1087. ac_prev=sharedstatedir ;;
  1088. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1089. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1090. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1091. | --sha=* | --sh=*)
  1092. sharedstatedir=$ac_optarg ;;
  1093. -site | --site | --sit)
  1094. ac_prev=site ;;
  1095. -site=* | --site=* | --sit=*)
  1096. site=$ac_optarg ;;
  1097. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1098. ac_prev=srcdir ;;
  1099. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1100. srcdir=$ac_optarg ;;
  1101. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1102. | --syscon | --sysco | --sysc | --sys | --sy)
  1103. ac_prev=sysconfdir ;;
  1104. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1105. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1106. sysconfdir=$ac_optarg ;;
  1107. -target | --target | --targe | --targ | --tar | --ta | --t)
  1108. ac_prev=target_alias ;;
  1109. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1110. target_alias=$ac_optarg ;;
  1111. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1112. verbose=yes ;;
  1113. -version | --version | --versio | --versi | --vers | -V)
  1114. ac_init_version=: ;;
  1115. -with-* | --with-*)
  1116. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1117. # Reject names that are not valid shell variable names.
  1118. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1119. as_fn_error $? "invalid package name: $ac_useropt"
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=\$ac_optarg ;;
  1130. -without-* | --without-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. as_fn_error $? "invalid package name: $ac_useropt"
  1135. ac_useropt_orig=$ac_useropt
  1136. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1137. case $ac_user_opts in
  1138. *"
  1139. "with_$ac_useropt"
  1140. "*) ;;
  1141. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1142. ac_unrecognized_sep=', ';;
  1143. esac
  1144. eval with_$ac_useropt=no ;;
  1145. --x)
  1146. # Obsolete; use --with-x.
  1147. with_x=yes ;;
  1148. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1149. | --x-incl | --x-inc | --x-in | --x-i)
  1150. ac_prev=x_includes ;;
  1151. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1152. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1153. x_includes=$ac_optarg ;;
  1154. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1155. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1156. ac_prev=x_libraries ;;
  1157. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1158. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1159. x_libraries=$ac_optarg ;;
  1160. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1161. Try \`$0 --help' for more information"
  1162. ;;
  1163. *=*)
  1164. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1165. # Reject names that are not valid shell variable names.
  1166. case $ac_envvar in #(
  1167. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1168. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1169. esac
  1170. eval $ac_envvar=\$ac_optarg
  1171. export $ac_envvar ;;
  1172. *)
  1173. # FIXME: should be removed in autoconf 3.0.
  1174. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1175. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1176. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1177. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1178. ;;
  1179. esac
  1180. done
  1181. if test -n "$ac_prev"; then
  1182. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1183. as_fn_error $? "missing argument to $ac_option"
  1184. fi
  1185. if test -n "$ac_unrecognized_opts"; then
  1186. case $enable_option_checking in
  1187. no) ;;
  1188. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1189. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1190. esac
  1191. fi
  1192. # Check all directory arguments for consistency.
  1193. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1194. datadir sysconfdir sharedstatedir localstatedir includedir \
  1195. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1196. libdir localedir mandir
  1197. do
  1198. eval ac_val=\$$ac_var
  1199. # Remove trailing slashes.
  1200. case $ac_val in
  1201. */ )
  1202. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1203. eval $ac_var=\$ac_val;;
  1204. esac
  1205. # Be sure to have absolute directory names.
  1206. case $ac_val in
  1207. [\\/$]* | ?:[\\/]* ) continue;;
  1208. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1209. esac
  1210. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1211. done
  1212. # There might be people who depend on the old broken behavior: `$host'
  1213. # used to hold the argument of --host etc.
  1214. # FIXME: To remove some day.
  1215. build=$build_alias
  1216. host=$host_alias
  1217. target=$target_alias
  1218. # FIXME: To remove some day.
  1219. if test "x$host_alias" != x; then
  1220. if test "x$build_alias" = x; then
  1221. cross_compiling=maybe
  1222. elif test "x$build_alias" != "x$host_alias"; then
  1223. cross_compiling=yes
  1224. fi
  1225. fi
  1226. ac_tool_prefix=
  1227. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1228. test "$silent" = yes && exec 6>/dev/null
  1229. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1230. ac_ls_di=`ls -di .` &&
  1231. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1232. as_fn_error $? "working directory cannot be determined"
  1233. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1234. as_fn_error $? "pwd does not report name of working directory"
  1235. # Find the source files, if location was not specified.
  1236. if test -z "$srcdir"; then
  1237. ac_srcdir_defaulted=yes
  1238. # Try the directory containing this script, then the parent directory.
  1239. ac_confdir=`$as_dirname -- "$as_myself" ||
  1240. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1241. X"$as_myself" : 'X\(//\)[^/]' \| \
  1242. X"$as_myself" : 'X\(//\)$' \| \
  1243. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1244. $as_echo X"$as_myself" |
  1245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1246. s//\1/
  1247. q
  1248. }
  1249. /^X\(\/\/\)[^/].*/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\/\)$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\).*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. s/.*/./; q'`
  1262. srcdir=$ac_confdir
  1263. if test ! -r "$srcdir/$ac_unique_file"; then
  1264. srcdir=..
  1265. fi
  1266. else
  1267. ac_srcdir_defaulted=no
  1268. fi
  1269. if test ! -r "$srcdir/$ac_unique_file"; then
  1270. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1271. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1272. fi
  1273. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1274. ac_abs_confdir=`(
  1275. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1276. pwd)`
  1277. # When building in place, set srcdir=.
  1278. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1279. srcdir=.
  1280. fi
  1281. # Remove unnecessary trailing slashes from srcdir.
  1282. # Double slashes in file names in object file debugging info
  1283. # mess up M-x gdb in Emacs.
  1284. case $srcdir in
  1285. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1286. esac
  1287. for ac_var in $ac_precious_vars; do
  1288. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1289. eval ac_env_${ac_var}_value=\$${ac_var}
  1290. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1291. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1292. done
  1293. #
  1294. # Report the --help message.
  1295. #
  1296. if test "$ac_init_help" = "long"; then
  1297. # Omit some internal or obsolete options to make the list less imposing.
  1298. # This message is too long to be a string in the A/UX 3.1 sh.
  1299. cat <<_ACEOF
  1300. \`configure' configures PCRE 8.43 to adapt to many kinds of systems.
  1301. Usage: $0 [OPTION]... [VAR=VALUE]...
  1302. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1303. VAR=VALUE. See below for descriptions of some of the useful variables.
  1304. Defaults for the options are specified in brackets.
  1305. Configuration:
  1306. -h, --help display this help and exit
  1307. --help=short display options specific to this package
  1308. --help=recursive display the short help of all the included packages
  1309. -V, --version display version information and exit
  1310. -q, --quiet, --silent do not print \`checking ...' messages
  1311. --cache-file=FILE cache test results in FILE [disabled]
  1312. -C, --config-cache alias for \`--cache-file=config.cache'
  1313. -n, --no-create do not create output files
  1314. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1315. Installation directories:
  1316. --prefix=PREFIX install architecture-independent files in PREFIX
  1317. [$ac_default_prefix]
  1318. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1319. [PREFIX]
  1320. By default, \`make install' will install all the files in
  1321. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1322. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1323. for instance \`--prefix=\$HOME'.
  1324. For better control, use the options below.
  1325. Fine tuning of the installation directories:
  1326. --bindir=DIR user executables [EPREFIX/bin]
  1327. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1328. --libexecdir=DIR program executables [EPREFIX/libexec]
  1329. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1330. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1331. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1332. --libdir=DIR object code libraries [EPREFIX/lib]
  1333. --includedir=DIR C header files [PREFIX/include]
  1334. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1335. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1336. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1337. --infodir=DIR info documentation [DATAROOTDIR/info]
  1338. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1339. --mandir=DIR man documentation [DATAROOTDIR/man]
  1340. --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
  1341. --htmldir=DIR html documentation [DOCDIR]
  1342. --dvidir=DIR dvi documentation [DOCDIR]
  1343. --pdfdir=DIR pdf documentation [DOCDIR]
  1344. --psdir=DIR ps documentation [DOCDIR]
  1345. _ACEOF
  1346. cat <<\_ACEOF
  1347. Program names:
  1348. --program-prefix=PREFIX prepend PREFIX to installed program names
  1349. --program-suffix=SUFFIX append SUFFIX to installed program names
  1350. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1351. System types:
  1352. --build=BUILD configure for building on BUILD [guessed]
  1353. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1354. _ACEOF
  1355. fi
  1356. if test -n "$ac_init_help"; then
  1357. case $ac_init_help in
  1358. short | recursive ) echo "Configuration of PCRE 8.43:";;
  1359. esac
  1360. cat <<\_ACEOF
  1361. Optional Features:
  1362. --disable-option-checking ignore unrecognized --enable/--with options
  1363. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1364. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1365. --enable-silent-rules less verbose build output (undo: "make V=1")
  1366. --disable-silent-rules verbose build output (undo: "make V=0")
  1367. --enable-dependency-tracking
  1368. do not reject slow dependency extractors
  1369. --disable-dependency-tracking
  1370. speeds up one-time build
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=yes]
  1373. --enable-fast-install[=PKGS]
  1374. optimize for fast installation [default=yes]
  1375. --disable-libtool-lock avoid locking (might break parallel builds)
  1376. --disable-pcre8 disable 8 bit character support
  1377. --enable-pcre16 enable 16 bit character support
  1378. --enable-pcre32 enable 32 bit character support
  1379. --disable-cpp disable C++ support
  1380. --enable-jit enable Just-In-Time compiling support
  1381. --disable-pcregrep-jit disable JIT support in pcregrep
  1382. --enable-rebuild-chartables
  1383. rebuild character tables in current locale
  1384. --enable-utf8 another name for --enable-utf. Kept only for
  1385. compatibility reasons
  1386. --enable-utf enable UTF-8/16/32 support (incompatible with
  1387. --enable-ebcdic)
  1388. --enable-unicode-properties
  1389. enable Unicode properties support (implies
  1390. --enable-utf)
  1391. --enable-newline-is-cr use CR as newline character
  1392. --enable-newline-is-lf use LF as newline character (default)
  1393. --enable-newline-is-crlf
  1394. use CRLF as newline sequence
  1395. --enable-newline-is-anycrlf
  1396. use CR, LF, or CRLF as newline sequence
  1397. --enable-newline-is-any use any valid Unicode newline sequence
  1398. --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
  1399. --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
  1400. with --enable-utf; use only in (uncommon) EBCDIC
  1401. environments; it implies --enable-rebuild-chartables
  1402. --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
  1403. implies --enable-ebcdic
  1404. --disable-stack-for-recursion
  1405. don't use stack recursion when matching
  1406. --enable-pcregrep-libz link pcregrep with libz to handle .gz files
  1407. --enable-pcregrep-libbz2
  1408. link pcregrep with libbz2 to handle .bz2 files
  1409. --enable-pcretest-libedit
  1410. link pcretest with libedit
  1411. --enable-pcretest-libreadline
  1412. link pcretest with libreadline
  1413. --enable-valgrind valgrind support
  1414. --enable-coverage enable code coverage reports using gcov
  1415. Optional Packages:
  1416. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1417. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1418. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1419. both]
  1420. --with-aix-soname=aix|svr4|both
  1421. shared library versioning (aka "SONAME") variant to
  1422. provide on AIX, [default=aix].
  1423. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1424. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1425. compiler's sysroot if not specified).
  1426. --with-pcregrep-bufsize=N
  1427. pcregrep buffer size (default=20480, minimum=8192)
  1428. --with-posix-malloc-threshold=NBYTES
  1429. threshold for POSIX malloc usage (default=10)
  1430. --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
  1431. --with-parens-nest-limit=N
  1432. nested parentheses limit (default=250)
  1433. --with-match-limit=N default limit on internal looping (default=10000000)
  1434. --with-match-limit-recursion=N
  1435. default limit on internal recursion
  1436. (default=MATCH_LIMIT)
  1437. Some influential environment variables:
  1438. CC C compiler command
  1439. CFLAGS C compiler flags
  1440. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1441. nonstandard directory <lib dir>
  1442. LIBS libraries to pass to the linker, e.g. -l<library>
  1443. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1444. you have headers in a nonstandard directory <include dir>
  1445. CXX C++ compiler command
  1446. CXXFLAGS C++ compiler flags
  1447. CPP C preprocessor
  1448. LT_SYS_LIBRARY_PATH
  1449. User-defined run-time library search path.
  1450. CXXCPP C++ preprocessor
  1451. PKG_CONFIG path to pkg-config utility
  1452. PKG_CONFIG_PATH
  1453. directories to add to pkg-config's search path
  1454. PKG_CONFIG_LIBDIR
  1455. path overriding pkg-config's built-in search path
  1456. VALGRIND_CFLAGS
  1457. C compiler flags for VALGRIND, overriding pkg-config
  1458. VALGRIND_LIBS
  1459. linker flags for VALGRIND, overriding pkg-config
  1460. LCOV the ltp lcov program
  1461. GENHTML the ltp genhtml program
  1462. Use these variables to override the choices made by `configure' or to help
  1463. it to find libraries and programs with nonstandard names/locations.
  1464. Report bugs to the package provider.
  1465. _ACEOF
  1466. ac_status=$?
  1467. fi
  1468. if test "$ac_init_help" = "recursive"; then
  1469. # If there are subdirs, report their specific --help.
  1470. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1471. test -d "$ac_dir" ||
  1472. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1473. continue
  1474. ac_builddir=.
  1475. case "$ac_dir" in
  1476. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1477. *)
  1478. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1479. # A ".." for each directory in $ac_dir_suffix.
  1480. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1481. case $ac_top_builddir_sub in
  1482. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1483. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1484. esac ;;
  1485. esac
  1486. ac_abs_top_builddir=$ac_pwd
  1487. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1488. # for backward compatibility:
  1489. ac_top_builddir=$ac_top_build_prefix
  1490. case $srcdir in
  1491. .) # We are building in place.
  1492. ac_srcdir=.
  1493. ac_top_srcdir=$ac_top_builddir_sub
  1494. ac_abs_top_srcdir=$ac_pwd ;;
  1495. [\\/]* | ?:[\\/]* ) # Absolute name.
  1496. ac_srcdir=$srcdir$ac_dir_suffix;
  1497. ac_top_srcdir=$srcdir
  1498. ac_abs_top_srcdir=$srcdir ;;
  1499. *) # Relative name.
  1500. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1501. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1502. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1503. esac
  1504. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1505. cd "$ac_dir" || { ac_status=$?; continue; }
  1506. # Check for guested configure.
  1507. if test -f "$ac_srcdir/configure.gnu"; then
  1508. echo &&
  1509. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1510. elif test -f "$ac_srcdir/configure"; then
  1511. echo &&
  1512. $SHELL "$ac_srcdir/configure" --help=recursive
  1513. else
  1514. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1515. fi || ac_status=$?
  1516. cd "$ac_pwd" || { ac_status=$?; break; }
  1517. done
  1518. fi
  1519. test -n "$ac_init_help" && exit $ac_status
  1520. if $ac_init_version; then
  1521. cat <<\_ACEOF
  1522. PCRE configure 8.43
  1523. generated by GNU Autoconf 2.69
  1524. Copyright (C) 2012 Free Software Foundation, Inc.
  1525. This configure script is free software; the Free Software Foundation
  1526. gives unlimited permission to copy, distribute and modify it.
  1527. _ACEOF
  1528. exit
  1529. fi
  1530. ## ------------------------ ##
  1531. ## Autoconf initialization. ##
  1532. ## ------------------------ ##
  1533. # ac_fn_c_try_compile LINENO
  1534. # --------------------------
  1535. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1536. ac_fn_c_try_compile ()
  1537. {
  1538. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1539. rm -f conftest.$ac_objext
  1540. if { { ac_try="$ac_compile"
  1541. case "(($ac_try" in
  1542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1543. *) ac_try_echo=$ac_try;;
  1544. esac
  1545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1546. $as_echo "$ac_try_echo"; } >&5
  1547. (eval "$ac_compile") 2>conftest.err
  1548. ac_status=$?
  1549. if test -s conftest.err; then
  1550. grep -v '^ *+' conftest.err >conftest.er1
  1551. cat conftest.er1 >&5
  1552. mv -f conftest.er1 conftest.err
  1553. fi
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && {
  1556. test -z "$ac_c_werror_flag" ||
  1557. test ! -s conftest.err
  1558. } && test -s conftest.$ac_objext; then :
  1559. ac_retval=0
  1560. else
  1561. $as_echo "$as_me: failed program was:" >&5
  1562. sed 's/^/| /' conftest.$ac_ext >&5
  1563. ac_retval=1
  1564. fi
  1565. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1566. as_fn_set_status $ac_retval
  1567. } # ac_fn_c_try_compile
  1568. # ac_fn_cxx_try_compile LINENO
  1569. # ----------------------------
  1570. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1571. ac_fn_cxx_try_compile ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. rm -f conftest.$ac_objext
  1575. if { { ac_try="$ac_compile"
  1576. case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_compile") 2>conftest.err
  1583. ac_status=$?
  1584. if test -s conftest.err; then
  1585. grep -v '^ *+' conftest.err >conftest.er1
  1586. cat conftest.er1 >&5
  1587. mv -f conftest.er1 conftest.err
  1588. fi
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && {
  1591. test -z "$ac_cxx_werror_flag" ||
  1592. test ! -s conftest.err
  1593. } && test -s conftest.$ac_objext; then :
  1594. ac_retval=0
  1595. else
  1596. $as_echo "$as_me: failed program was:" >&5
  1597. sed 's/^/| /' conftest.$ac_ext >&5
  1598. ac_retval=1
  1599. fi
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_cxx_try_compile
  1603. # ac_fn_c_try_cpp LINENO
  1604. # ----------------------
  1605. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1606. ac_fn_c_try_cpp ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } > conftest.i && {
  1625. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1626. test ! -s conftest.err
  1627. }; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1635. as_fn_set_status $ac_retval
  1636. } # ac_fn_c_try_cpp
  1637. # ac_fn_c_try_run LINENO
  1638. # ----------------------
  1639. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1640. # that executables *can* be run.
  1641. ac_fn_c_try_run ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. if { { ac_try="$ac_link"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1650. $as_echo "$ac_try_echo"; } >&5
  1651. (eval "$ac_link") 2>&5
  1652. ac_status=$?
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1655. { { case "(($ac_try" in
  1656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1657. *) ac_try_echo=$ac_try;;
  1658. esac
  1659. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1660. $as_echo "$ac_try_echo"; } >&5
  1661. (eval "$ac_try") 2>&5
  1662. ac_status=$?
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; }; }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: program exited with status $ac_status" >&5
  1668. $as_echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_retval=$ac_status
  1671. fi
  1672. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1673. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1674. as_fn_set_status $ac_retval
  1675. } # ac_fn_c_try_run
  1676. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1677. # -------------------------------------------------------
  1678. # Tests whether HEADER exists and can be compiled using the include files in
  1679. # INCLUDES, setting the cache variable VAR accordingly.
  1680. ac_fn_c_check_header_compile ()
  1681. {
  1682. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1684. $as_echo_n "checking for $2... " >&6; }
  1685. if eval \${$3+:} false; then :
  1686. $as_echo_n "(cached) " >&6
  1687. else
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. $4
  1691. #include <$2>
  1692. _ACEOF
  1693. if ac_fn_c_try_compile "$LINENO"; then :
  1694. eval "$3=yes"
  1695. else
  1696. eval "$3=no"
  1697. fi
  1698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1699. fi
  1700. eval ac_res=\$$3
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } # ac_fn_c_check_header_compile
  1705. # ac_fn_c_find_intX_t LINENO BITS VAR
  1706. # -----------------------------------
  1707. # Finds a signed integer type with width BITS, setting cache variable VAR
  1708. # accordingly.
  1709. ac_fn_c_find_intX_t ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1713. $as_echo_n "checking for int$2_t... " >&6; }
  1714. if eval \${$3+:} false; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. eval "$3=no"
  1718. # Order is important - never check a type that is potentially smaller
  1719. # than half of the expected target width.
  1720. for ac_type in int$2_t 'int' 'long int' \
  1721. 'long long int' 'short int' 'signed char'; do
  1722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1723. /* end confdefs.h. */
  1724. $ac_includes_default
  1725. enum { N = $2 / 2 - 1 };
  1726. int
  1727. main ()
  1728. {
  1729. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1730. test_array [0] = 0;
  1731. return test_array [0];
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. if ac_fn_c_try_compile "$LINENO"; then :
  1737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1738. /* end confdefs.h. */
  1739. $ac_includes_default
  1740. enum { N = $2 / 2 - 1 };
  1741. int
  1742. main ()
  1743. {
  1744. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1745. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1746. test_array [0] = 0;
  1747. return test_array [0];
  1748. ;
  1749. return 0;
  1750. }
  1751. _ACEOF
  1752. if ac_fn_c_try_compile "$LINENO"; then :
  1753. else
  1754. case $ac_type in #(
  1755. int$2_t) :
  1756. eval "$3=yes" ;; #(
  1757. *) :
  1758. eval "$3=\$ac_type" ;;
  1759. esac
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. if eval test \"x\$"$3"\" = x"no"; then :
  1765. else
  1766. break
  1767. fi
  1768. done
  1769. fi
  1770. eval ac_res=\$$3
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1772. $as_echo "$ac_res" >&6; }
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. } # ac_fn_c_find_intX_t
  1775. # ac_fn_c_try_link LINENO
  1776. # -----------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1778. ac_fn_c_try_link ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. rm -f conftest.$ac_objext conftest$ac_exeext
  1782. if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_link") 2>conftest.err
  1790. ac_status=$?
  1791. if test -s conftest.err; then
  1792. grep -v '^ *+' conftest.err >conftest.er1
  1793. cat conftest.er1 >&5
  1794. mv -f conftest.er1 conftest.err
  1795. fi
  1796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1797. test $ac_status = 0; } && {
  1798. test -z "$ac_c_werror_flag" ||
  1799. test ! -s conftest.err
  1800. } && test -s conftest$ac_exeext && {
  1801. test "$cross_compiling" = yes ||
  1802. test -x conftest$ac_exeext
  1803. }; then :
  1804. ac_retval=0
  1805. else
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=1
  1809. fi
  1810. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1811. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1812. # interfere with the next link command; also delete a directory that is
  1813. # left behind by Apple's compiler. We do this before executing the actions.
  1814. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1815. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1816. as_fn_set_status $ac_retval
  1817. } # ac_fn_c_try_link
  1818. # ac_fn_c_check_func LINENO FUNC VAR
  1819. # ----------------------------------
  1820. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1821. ac_fn_c_check_func ()
  1822. {
  1823. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1825. $as_echo_n "checking for $2... " >&6; }
  1826. if eval \${$3+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1833. #define $2 innocuous_$2
  1834. /* System header to define __stub macros and hopefully few prototypes,
  1835. which can conflict with char $2 (); below.
  1836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1837. <limits.h> exists even on freestanding compilers. */
  1838. #ifdef __STDC__
  1839. # include <limits.h>
  1840. #else
  1841. # include <assert.h>
  1842. #endif
  1843. #undef $2
  1844. /* Override any GCC internal prototype to avoid an error.
  1845. Use char because int might match the return type of a GCC
  1846. builtin and then its argument prototype would still apply. */
  1847. #ifdef __cplusplus
  1848. extern "C"
  1849. #endif
  1850. char $2 ();
  1851. /* The GNU C library defines this for functions which it implements
  1852. to always fail with ENOSYS. Some functions are actually named
  1853. something starting with __ and the normal name is an alias. */
  1854. #if defined __stub_$2 || defined __stub___$2
  1855. choke me
  1856. #endif
  1857. int
  1858. main ()
  1859. {
  1860. return $2 ();
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_link "$LINENO"; then :
  1866. eval "$3=yes"
  1867. else
  1868. eval "$3=no"
  1869. fi
  1870. rm -f core conftest.err conftest.$ac_objext \
  1871. conftest$ac_exeext conftest.$ac_ext
  1872. fi
  1873. eval ac_res=\$$3
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1875. $as_echo "$ac_res" >&6; }
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. } # ac_fn_c_check_func
  1878. # ac_fn_cxx_try_cpp LINENO
  1879. # ------------------------
  1880. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1881. ac_fn_cxx_try_cpp ()
  1882. {
  1883. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1884. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1885. case "(($ac_try" in
  1886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1887. *) ac_try_echo=$ac_try;;
  1888. esac
  1889. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1890. $as_echo "$ac_try_echo"; } >&5
  1891. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1892. ac_status=$?
  1893. if test -s conftest.err; then
  1894. grep -v '^ *+' conftest.err >conftest.er1
  1895. cat conftest.er1 >&5
  1896. mv -f conftest.er1 conftest.err
  1897. fi
  1898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1899. test $ac_status = 0; } > conftest.i && {
  1900. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1901. test ! -s conftest.err
  1902. }; then :
  1903. ac_retval=0
  1904. else
  1905. $as_echo "$as_me: failed program was:" >&5
  1906. sed 's/^/| /' conftest.$ac_ext >&5
  1907. ac_retval=1
  1908. fi
  1909. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1910. as_fn_set_status $ac_retval
  1911. } # ac_fn_cxx_try_cpp
  1912. # ac_fn_cxx_try_link LINENO
  1913. # -------------------------
  1914. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1915. ac_fn_cxx_try_link ()
  1916. {
  1917. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1918. rm -f conftest.$ac_objext conftest$ac_exeext
  1919. if { { ac_try="$ac_link"
  1920. case "(($ac_try" in
  1921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1922. *) ac_try_echo=$ac_try;;
  1923. esac
  1924. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1925. $as_echo "$ac_try_echo"; } >&5
  1926. (eval "$ac_link") 2>conftest.err
  1927. ac_status=$?
  1928. if test -s conftest.err; then
  1929. grep -v '^ *+' conftest.err >conftest.er1
  1930. cat conftest.er1 >&5
  1931. mv -f conftest.er1 conftest.err
  1932. fi
  1933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1934. test $ac_status = 0; } && {
  1935. test -z "$ac_cxx_werror_flag" ||
  1936. test ! -s conftest.err
  1937. } && test -s conftest$ac_exeext && {
  1938. test "$cross_compiling" = yes ||
  1939. test -x conftest$ac_exeext
  1940. }; then :
  1941. ac_retval=0
  1942. else
  1943. $as_echo "$as_me: failed program was:" >&5
  1944. sed 's/^/| /' conftest.$ac_ext >&5
  1945. ac_retval=1
  1946. fi
  1947. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1948. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1949. # interfere with the next link command; also delete a directory that is
  1950. # left behind by Apple's compiler. We do this before executing the actions.
  1951. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1952. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1953. as_fn_set_status $ac_retval
  1954. } # ac_fn_cxx_try_link
  1955. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1956. # -------------------------------------------------------
  1957. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1958. # the include files in INCLUDES and setting the cache variable VAR
  1959. # accordingly.
  1960. ac_fn_c_check_header_mongrel ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. if eval \${$3+:} false; then :
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1965. $as_echo_n "checking for $2... " >&6; }
  1966. if eval \${$3+:} false; then :
  1967. $as_echo_n "(cached) " >&6
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. else
  1973. # Is the header compilable?
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1975. $as_echo_n "checking $2 usability... " >&6; }
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. $4
  1979. #include <$2>
  1980. _ACEOF
  1981. if ac_fn_c_try_compile "$LINENO"; then :
  1982. ac_header_compiler=yes
  1983. else
  1984. ac_header_compiler=no
  1985. fi
  1986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1988. $as_echo "$ac_header_compiler" >&6; }
  1989. # Is the header present?
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1991. $as_echo_n "checking $2 presence... " >&6; }
  1992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1993. /* end confdefs.h. */
  1994. #include <$2>
  1995. _ACEOF
  1996. if ac_fn_c_try_cpp "$LINENO"; then :
  1997. ac_header_preproc=yes
  1998. else
  1999. ac_header_preproc=no
  2000. fi
  2001. rm -f conftest.err conftest.i conftest.$ac_ext
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2003. $as_echo "$ac_header_preproc" >&6; }
  2004. # So? What about this header?
  2005. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2006. yes:no: )
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2008. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2010. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2011. ;;
  2012. no:yes:* )
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2014. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2016. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2018. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2020. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2022. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2023. ;;
  2024. esac
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2026. $as_echo_n "checking for $2... " >&6; }
  2027. if eval \${$3+:} false; then :
  2028. $as_echo_n "(cached) " >&6
  2029. else
  2030. eval "$3=\$ac_header_compiler"
  2031. fi
  2032. eval ac_res=\$$3
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2034. $as_echo "$ac_res" >&6; }
  2035. fi
  2036. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2037. } # ac_fn_c_check_header_mongrel
  2038. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2039. # ---------------------------------------------------------
  2040. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2041. # the include files in INCLUDES and setting the cache variable VAR
  2042. # accordingly.
  2043. ac_fn_cxx_check_header_mongrel ()
  2044. {
  2045. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2046. if eval \${$3+:} false; then :
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2048. $as_echo_n "checking for $2... " >&6; }
  2049. if eval \${$3+:} false; then :
  2050. $as_echo_n "(cached) " >&6
  2051. fi
  2052. eval ac_res=\$$3
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2054. $as_echo "$ac_res" >&6; }
  2055. else
  2056. # Is the header compilable?
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2058. $as_echo_n "checking $2 usability... " >&6; }
  2059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2060. /* end confdefs.h. */
  2061. $4
  2062. #include <$2>
  2063. _ACEOF
  2064. if ac_fn_cxx_try_compile "$LINENO"; then :
  2065. ac_header_compiler=yes
  2066. else
  2067. ac_header_compiler=no
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2071. $as_echo "$ac_header_compiler" >&6; }
  2072. # Is the header present?
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2074. $as_echo_n "checking $2 presence... " >&6; }
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. #include <$2>
  2078. _ACEOF
  2079. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2080. ac_header_preproc=yes
  2081. else
  2082. ac_header_preproc=no
  2083. fi
  2084. rm -f conftest.err conftest.i conftest.$ac_ext
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2086. $as_echo "$ac_header_preproc" >&6; }
  2087. # So? What about this header?
  2088. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2089. yes:no: )
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2091. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2093. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2094. ;;
  2095. no:yes:* )
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2097. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2099. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2101. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2103. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2105. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2106. ;;
  2107. esac
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2109. $as_echo_n "checking for $2... " >&6; }
  2110. if eval \${$3+:} false; then :
  2111. $as_echo_n "(cached) " >&6
  2112. else
  2113. eval "$3=\$ac_header_compiler"
  2114. fi
  2115. eval ac_res=\$$3
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2117. $as_echo "$ac_res" >&6; }
  2118. fi
  2119. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2120. } # ac_fn_cxx_check_header_mongrel
  2121. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  2122. # ---------------------------------------------
  2123. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2124. # variable VAR accordingly.
  2125. ac_fn_cxx_check_type ()
  2126. {
  2127. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2129. $as_echo_n "checking for $2... " >&6; }
  2130. if eval \${$3+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. eval "$3=no"
  2134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2135. /* end confdefs.h. */
  2136. $4
  2137. int
  2138. main ()
  2139. {
  2140. if (sizeof ($2))
  2141. return 0;
  2142. ;
  2143. return 0;
  2144. }
  2145. _ACEOF
  2146. if ac_fn_cxx_try_compile "$LINENO"; then :
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. if (sizeof (($2)))
  2154. return 0;
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_cxx_try_compile "$LINENO"; then :
  2160. else
  2161. eval "$3=yes"
  2162. fi
  2163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2164. fi
  2165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2166. fi
  2167. eval ac_res=\$$3
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2169. $as_echo "$ac_res" >&6; }
  2170. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2171. } # ac_fn_cxx_check_type
  2172. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2173. # -------------------------------------------
  2174. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2175. # variable VAR accordingly.
  2176. ac_fn_c_check_type ()
  2177. {
  2178. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2180. $as_echo_n "checking for $2... " >&6; }
  2181. if eval \${$3+:} false; then :
  2182. $as_echo_n "(cached) " >&6
  2183. else
  2184. eval "$3=no"
  2185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2186. /* end confdefs.h. */
  2187. $4
  2188. int
  2189. main ()
  2190. {
  2191. if (sizeof ($2))
  2192. return 0;
  2193. ;
  2194. return 0;
  2195. }
  2196. _ACEOF
  2197. if ac_fn_c_try_compile "$LINENO"; then :
  2198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2199. /* end confdefs.h. */
  2200. $4
  2201. int
  2202. main ()
  2203. {
  2204. if (sizeof (($2)))
  2205. return 0;
  2206. ;
  2207. return 0;
  2208. }
  2209. _ACEOF
  2210. if ac_fn_c_try_compile "$LINENO"; then :
  2211. else
  2212. eval "$3=yes"
  2213. fi
  2214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2215. fi
  2216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2217. fi
  2218. eval ac_res=\$$3
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2220. $as_echo "$ac_res" >&6; }
  2221. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2222. } # ac_fn_c_check_type
  2223. cat >config.log <<_ACEOF
  2224. This file contains any messages produced by compilers while
  2225. running configure, to aid debugging if configure makes a mistake.
  2226. It was created by PCRE $as_me 8.43, which was
  2227. generated by GNU Autoconf 2.69. Invocation command line was
  2228. $ $0 $@
  2229. _ACEOF
  2230. exec 5>>config.log
  2231. {
  2232. cat <<_ASUNAME
  2233. ## --------- ##
  2234. ## Platform. ##
  2235. ## --------- ##
  2236. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2237. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2238. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2239. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2240. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2241. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2242. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2243. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2244. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2245. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2246. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2247. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2248. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2249. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2250. _ASUNAME
  2251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2252. for as_dir in $PATH
  2253. do
  2254. IFS=$as_save_IFS
  2255. test -z "$as_dir" && as_dir=.
  2256. $as_echo "PATH: $as_dir"
  2257. done
  2258. IFS=$as_save_IFS
  2259. } >&5
  2260. cat >&5 <<_ACEOF
  2261. ## ----------- ##
  2262. ## Core tests. ##
  2263. ## ----------- ##
  2264. _ACEOF
  2265. # Keep a trace of the command line.
  2266. # Strip out --no-create and --no-recursion so they do not pile up.
  2267. # Strip out --silent because we don't want to record it for future runs.
  2268. # Also quote any args containing shell meta-characters.
  2269. # Make two passes to allow for proper duplicate-argument suppression.
  2270. ac_configure_args=
  2271. ac_configure_args0=
  2272. ac_configure_args1=
  2273. ac_must_keep_next=false
  2274. for ac_pass in 1 2
  2275. do
  2276. for ac_arg
  2277. do
  2278. case $ac_arg in
  2279. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2280. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2281. | -silent | --silent | --silen | --sile | --sil)
  2282. continue ;;
  2283. *\'*)
  2284. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2285. esac
  2286. case $ac_pass in
  2287. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2288. 2)
  2289. as_fn_append ac_configure_args1 " '$ac_arg'"
  2290. if test $ac_must_keep_next = true; then
  2291. ac_must_keep_next=false # Got value, back to normal.
  2292. else
  2293. case $ac_arg in
  2294. *=* | --config-cache | -C | -disable-* | --disable-* \
  2295. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2296. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2297. | -with-* | --with-* | -without-* | --without-* | --x)
  2298. case "$ac_configure_args0 " in
  2299. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2300. esac
  2301. ;;
  2302. -* ) ac_must_keep_next=true ;;
  2303. esac
  2304. fi
  2305. as_fn_append ac_configure_args " '$ac_arg'"
  2306. ;;
  2307. esac
  2308. done
  2309. done
  2310. { ac_configure_args0=; unset ac_configure_args0;}
  2311. { ac_configure_args1=; unset ac_configure_args1;}
  2312. # When interrupted or exit'd, cleanup temporary files, and complete
  2313. # config.log. We remove comments because anyway the quotes in there
  2314. # would cause problems or look ugly.
  2315. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2316. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2317. trap 'exit_status=$?
  2318. # Save into config.log some information that might help in debugging.
  2319. {
  2320. echo
  2321. $as_echo "## ---------------- ##
  2322. ## Cache variables. ##
  2323. ## ---------------- ##"
  2324. echo
  2325. # The following way of writing the cache mishandles newlines in values,
  2326. (
  2327. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2328. eval ac_val=\$$ac_var
  2329. case $ac_val in #(
  2330. *${as_nl}*)
  2331. case $ac_var in #(
  2332. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2333. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2334. esac
  2335. case $ac_var in #(
  2336. _ | IFS | as_nl) ;; #(
  2337. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2338. *) { eval $ac_var=; unset $ac_var;} ;;
  2339. esac ;;
  2340. esac
  2341. done
  2342. (set) 2>&1 |
  2343. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2344. *${as_nl}ac_space=\ *)
  2345. sed -n \
  2346. "s/'\''/'\''\\\\'\'''\''/g;
  2347. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2348. ;; #(
  2349. *)
  2350. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2351. ;;
  2352. esac |
  2353. sort
  2354. )
  2355. echo
  2356. $as_echo "## ----------------- ##
  2357. ## Output variables. ##
  2358. ## ----------------- ##"
  2359. echo
  2360. for ac_var in $ac_subst_vars
  2361. do
  2362. eval ac_val=\$$ac_var
  2363. case $ac_val in
  2364. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2365. esac
  2366. $as_echo "$ac_var='\''$ac_val'\''"
  2367. done | sort
  2368. echo
  2369. if test -n "$ac_subst_files"; then
  2370. $as_echo "## ------------------- ##
  2371. ## File substitutions. ##
  2372. ## ------------------- ##"
  2373. echo
  2374. for ac_var in $ac_subst_files
  2375. do
  2376. eval ac_val=\$$ac_var
  2377. case $ac_val in
  2378. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2379. esac
  2380. $as_echo "$ac_var='\''$ac_val'\''"
  2381. done | sort
  2382. echo
  2383. fi
  2384. if test -s confdefs.h; then
  2385. $as_echo "## ----------- ##
  2386. ## confdefs.h. ##
  2387. ## ----------- ##"
  2388. echo
  2389. cat confdefs.h
  2390. echo
  2391. fi
  2392. test "$ac_signal" != 0 &&
  2393. $as_echo "$as_me: caught signal $ac_signal"
  2394. $as_echo "$as_me: exit $exit_status"
  2395. } >&5
  2396. rm -f core *.core core.conftest.* &&
  2397. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2398. exit $exit_status
  2399. ' 0
  2400. for ac_signal in 1 2 13 15; do
  2401. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2402. done
  2403. ac_signal=0
  2404. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2405. rm -f -r conftest* confdefs.h
  2406. $as_echo "/* confdefs.h */" > confdefs.h
  2407. # Predefined preprocessor variables.
  2408. cat >>confdefs.h <<_ACEOF
  2409. #define PACKAGE_NAME "$PACKAGE_NAME"
  2410. _ACEOF
  2411. cat >>confdefs.h <<_ACEOF
  2412. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2413. _ACEOF
  2414. cat >>confdefs.h <<_ACEOF
  2415. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2416. _ACEOF
  2417. cat >>confdefs.h <<_ACEOF
  2418. #define PACKAGE_STRING "$PACKAGE_STRING"
  2419. _ACEOF
  2420. cat >>confdefs.h <<_ACEOF
  2421. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2422. _ACEOF
  2423. cat >>confdefs.h <<_ACEOF
  2424. #define PACKAGE_URL "$PACKAGE_URL"
  2425. _ACEOF
  2426. # Let the site file select an alternate cache file if it wants to.
  2427. # Prefer an explicitly selected file to automatically selected ones.
  2428. ac_site_file1=NONE
  2429. ac_site_file2=NONE
  2430. if test -n "$CONFIG_SITE"; then
  2431. # We do not want a PATH search for config.site.
  2432. case $CONFIG_SITE in #((
  2433. -*) ac_site_file1=./$CONFIG_SITE;;
  2434. */*) ac_site_file1=$CONFIG_SITE;;
  2435. *) ac_site_file1=./$CONFIG_SITE;;
  2436. esac
  2437. elif test "x$prefix" != xNONE; then
  2438. ac_site_file1=$prefix/share/config.site
  2439. ac_site_file2=$prefix/etc/config.site
  2440. else
  2441. ac_site_file1=$ac_default_prefix/share/config.site
  2442. ac_site_file2=$ac_default_prefix/etc/config.site
  2443. fi
  2444. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2445. do
  2446. test "x$ac_site_file" = xNONE && continue
  2447. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2449. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2450. sed 's/^/| /' "$ac_site_file" >&5
  2451. . "$ac_site_file" \
  2452. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2453. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2454. as_fn_error $? "failed to load site script $ac_site_file
  2455. See \`config.log' for more details" "$LINENO" 5; }
  2456. fi
  2457. done
  2458. if test -r "$cache_file"; then
  2459. # Some versions of bash will fail to source /dev/null (special files
  2460. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2461. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2463. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2464. case $cache_file in
  2465. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2466. *) . "./$cache_file";;
  2467. esac
  2468. fi
  2469. else
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2471. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2472. >$cache_file
  2473. fi
  2474. # Check that the precious variables saved in the cache have kept the same
  2475. # value.
  2476. ac_cache_corrupted=false
  2477. for ac_var in $ac_precious_vars; do
  2478. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2479. eval ac_new_set=\$ac_env_${ac_var}_set
  2480. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2481. eval ac_new_val=\$ac_env_${ac_var}_value
  2482. case $ac_old_set,$ac_new_set in
  2483. set,)
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2485. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2486. ac_cache_corrupted=: ;;
  2487. ,set)
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2489. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2490. ac_cache_corrupted=: ;;
  2491. ,);;
  2492. *)
  2493. if test "x$ac_old_val" != "x$ac_new_val"; then
  2494. # differences in whitespace do not lead to failure.
  2495. ac_old_val_w=`echo x $ac_old_val`
  2496. ac_new_val_w=`echo x $ac_new_val`
  2497. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2499. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2500. ac_cache_corrupted=:
  2501. else
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2503. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2504. eval $ac_var=\$ac_old_val
  2505. fi
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2507. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2509. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2510. fi;;
  2511. esac
  2512. # Pass precious variables to config.status.
  2513. if test "$ac_new_set" = set; then
  2514. case $ac_new_val in
  2515. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2516. *) ac_arg=$ac_var=$ac_new_val ;;
  2517. esac
  2518. case " $ac_configure_args " in
  2519. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2520. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2521. esac
  2522. fi
  2523. done
  2524. if $ac_cache_corrupted; then
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2528. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2529. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2530. fi
  2531. ## -------------------- ##
  2532. ## Main body of script. ##
  2533. ## -------------------- ##
  2534. ac_ext=c
  2535. ac_cpp='$CPP $CPPFLAGS'
  2536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2539. am__api_version='1.16'
  2540. ac_aux_dir=
  2541. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2542. if test -f "$ac_dir/install-sh"; then
  2543. ac_aux_dir=$ac_dir
  2544. ac_install_sh="$ac_aux_dir/install-sh -c"
  2545. break
  2546. elif test -f "$ac_dir/install.sh"; then
  2547. ac_aux_dir=$ac_dir
  2548. ac_install_sh="$ac_aux_dir/install.sh -c"
  2549. break
  2550. elif test -f "$ac_dir/shtool"; then
  2551. ac_aux_dir=$ac_dir
  2552. ac_install_sh="$ac_aux_dir/shtool install -c"
  2553. break
  2554. fi
  2555. done
  2556. if test -z "$ac_aux_dir"; then
  2557. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2558. fi
  2559. # These three variables are undocumented and unsupported,
  2560. # and are intended to be withdrawn in a future Autoconf release.
  2561. # They can cause serious problems if a builder's source tree is in a directory
  2562. # whose full name contains unusual characters.
  2563. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2564. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2565. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2566. # Find a good install program. We prefer a C program (faster),
  2567. # so one script is as good as another. But avoid the broken or
  2568. # incompatible versions:
  2569. # SysV /etc/install, /usr/sbin/install
  2570. # SunOS /usr/etc/install
  2571. # IRIX /sbin/install
  2572. # AIX /bin/install
  2573. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2574. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2575. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2576. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2577. # OS/2's system install, which has a completely different semantic
  2578. # ./install, which can be erroneously created by make from ./install.sh.
  2579. # Reject install programs that cannot install multiple files.
  2580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2581. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2582. if test -z "$INSTALL"; then
  2583. if ${ac_cv_path_install+:} false; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2587. for as_dir in $PATH
  2588. do
  2589. IFS=$as_save_IFS
  2590. test -z "$as_dir" && as_dir=.
  2591. # Account for people who put trailing slashes in PATH elements.
  2592. case $as_dir/ in #((
  2593. ./ | .// | /[cC]/* | \
  2594. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2595. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2596. /usr/ucb/* ) ;;
  2597. *)
  2598. # OSF1 and SCO ODT 3.0 have their own names for install.
  2599. # Don't use installbsd from OSF since it installs stuff as root
  2600. # by default.
  2601. for ac_prog in ginstall scoinst install; do
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2604. if test $ac_prog = install &&
  2605. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2606. # AIX install. It has an incompatible calling convention.
  2607. :
  2608. elif test $ac_prog = install &&
  2609. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2610. # program-specific install script used by HP pwplus--don't use.
  2611. :
  2612. else
  2613. rm -rf conftest.one conftest.two conftest.dir
  2614. echo one > conftest.one
  2615. echo two > conftest.two
  2616. mkdir conftest.dir
  2617. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2618. test -s conftest.one && test -s conftest.two &&
  2619. test -s conftest.dir/conftest.one &&
  2620. test -s conftest.dir/conftest.two
  2621. then
  2622. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2623. break 3
  2624. fi
  2625. fi
  2626. fi
  2627. done
  2628. done
  2629. ;;
  2630. esac
  2631. done
  2632. IFS=$as_save_IFS
  2633. rm -rf conftest.one conftest.two conftest.dir
  2634. fi
  2635. if test "${ac_cv_path_install+set}" = set; then
  2636. INSTALL=$ac_cv_path_install
  2637. else
  2638. # As a last resort, use the slow shell script. Don't cache a
  2639. # value for INSTALL within a source directory, because that will
  2640. # break other packages using the cache if that directory is
  2641. # removed, or if the value is a relative name.
  2642. INSTALL=$ac_install_sh
  2643. fi
  2644. fi
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2646. $as_echo "$INSTALL" >&6; }
  2647. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2648. # It thinks the first close brace ends the variable substitution.
  2649. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2650. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2651. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2653. $as_echo_n "checking whether build environment is sane... " >&6; }
  2654. # Reject unsafe characters in $srcdir or the absolute working directory
  2655. # name. Accept space and tab only in the latter.
  2656. am_lf='
  2657. '
  2658. case `pwd` in
  2659. *[\\\"\#\$\&\'\`$am_lf]*)
  2660. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2661. esac
  2662. case $srcdir in
  2663. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2664. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2665. esac
  2666. # Do 'set' in a subshell so we don't clobber the current shell's
  2667. # arguments. Must try -L first in case configure is actually a
  2668. # symlink; some systems play weird games with the mod time of symlinks
  2669. # (eg FreeBSD returns the mod time of the symlink's containing
  2670. # directory).
  2671. if (
  2672. am_has_slept=no
  2673. for am_try in 1 2; do
  2674. echo "timestamp, slept: $am_has_slept" > conftest.file
  2675. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2676. if test "$*" = "X"; then
  2677. # -L didn't work.
  2678. set X `ls -t "$srcdir/configure" conftest.file`
  2679. fi
  2680. if test "$*" != "X $srcdir/configure conftest.file" \
  2681. && test "$*" != "X conftest.file $srcdir/configure"; then
  2682. # If neither matched, then we have a broken ls. This can happen
  2683. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2684. # broken ls alias from the environment. This has actually
  2685. # happened. Such a system could not be considered "sane".
  2686. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2687. alias in your environment" "$LINENO" 5
  2688. fi
  2689. if test "$2" = conftest.file || test $am_try -eq 2; then
  2690. break
  2691. fi
  2692. # Just in case.
  2693. sleep 1
  2694. am_has_slept=yes
  2695. done
  2696. test "$2" = conftest.file
  2697. )
  2698. then
  2699. # Ok.
  2700. :
  2701. else
  2702. as_fn_error $? "newly created file is older than distributed files!
  2703. Check your system clock" "$LINENO" 5
  2704. fi
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2706. $as_echo "yes" >&6; }
  2707. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2708. # generated files are strictly newer.
  2709. am_sleep_pid=
  2710. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2711. ( sleep 1 ) &
  2712. am_sleep_pid=$!
  2713. fi
  2714. rm -f conftest.file
  2715. test "$program_prefix" != NONE &&
  2716. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2717. # Use a double $ so make ignores it.
  2718. test "$program_suffix" != NONE &&
  2719. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2720. # Double any \ or $.
  2721. # By default was `s,x,x', remove it if useless.
  2722. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2723. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2724. # Expand $ac_aux_dir to an absolute path.
  2725. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2726. if test x"${MISSING+set}" != xset; then
  2727. case $am_aux_dir in
  2728. *\ * | *\ *)
  2729. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2730. *)
  2731. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2732. esac
  2733. fi
  2734. # Use eval to expand $SHELL
  2735. if eval "$MISSING --is-lightweight"; then
  2736. am_missing_run="$MISSING "
  2737. else
  2738. am_missing_run=
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2740. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2741. fi
  2742. if test x"${install_sh+set}" != xset; then
  2743. case $am_aux_dir in
  2744. *\ * | *\ *)
  2745. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2746. *)
  2747. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2748. esac
  2749. fi
  2750. # Installed binaries are usually stripped using 'strip' when the user
  2751. # run "make install-strip". However 'strip' might not be the right
  2752. # tool to use in cross-compilation environments, therefore Automake
  2753. # will honor the 'STRIP' environment variable to overrule this program.
  2754. if test "$cross_compiling" != no; then
  2755. if test -n "$ac_tool_prefix"; then
  2756. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2757. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2759. $as_echo_n "checking for $ac_word... " >&6; }
  2760. if ${ac_cv_prog_STRIP+:} false; then :
  2761. $as_echo_n "(cached) " >&6
  2762. else
  2763. if test -n "$STRIP"; then
  2764. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2765. else
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2775. break 2
  2776. fi
  2777. done
  2778. done
  2779. IFS=$as_save_IFS
  2780. fi
  2781. fi
  2782. STRIP=$ac_cv_prog_STRIP
  2783. if test -n "$STRIP"; then
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2785. $as_echo "$STRIP" >&6; }
  2786. else
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2788. $as_echo "no" >&6; }
  2789. fi
  2790. fi
  2791. if test -z "$ac_cv_prog_STRIP"; then
  2792. ac_ct_STRIP=$STRIP
  2793. # Extract the first word of "strip", so it can be a program name with args.
  2794. set dummy strip; ac_word=$2
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2796. $as_echo_n "checking for $ac_word... " >&6; }
  2797. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2798. $as_echo_n "(cached) " >&6
  2799. else
  2800. if test -n "$ac_ct_STRIP"; then
  2801. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2802. else
  2803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2804. for as_dir in $PATH
  2805. do
  2806. IFS=$as_save_IFS
  2807. test -z "$as_dir" && as_dir=.
  2808. for ac_exec_ext in '' $ac_executable_extensions; do
  2809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2810. ac_cv_prog_ac_ct_STRIP="strip"
  2811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2812. break 2
  2813. fi
  2814. done
  2815. done
  2816. IFS=$as_save_IFS
  2817. fi
  2818. fi
  2819. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2820. if test -n "$ac_ct_STRIP"; then
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2822. $as_echo "$ac_ct_STRIP" >&6; }
  2823. else
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2825. $as_echo "no" >&6; }
  2826. fi
  2827. if test "x$ac_ct_STRIP" = x; then
  2828. STRIP=":"
  2829. else
  2830. case $cross_compiling:$ac_tool_warned in
  2831. yes:)
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2834. ac_tool_warned=yes ;;
  2835. esac
  2836. STRIP=$ac_ct_STRIP
  2837. fi
  2838. else
  2839. STRIP="$ac_cv_prog_STRIP"
  2840. fi
  2841. fi
  2842. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2844. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2845. if test -z "$MKDIR_P"; then
  2846. if ${ac_cv_path_mkdir+:} false; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2850. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2851. do
  2852. IFS=$as_save_IFS
  2853. test -z "$as_dir" && as_dir=.
  2854. for ac_prog in mkdir gmkdir; do
  2855. for ac_exec_ext in '' $ac_executable_extensions; do
  2856. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2857. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2858. 'mkdir (GNU coreutils) '* | \
  2859. 'mkdir (coreutils) '* | \
  2860. 'mkdir (fileutils) '4.1*)
  2861. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2862. break 3;;
  2863. esac
  2864. done
  2865. done
  2866. done
  2867. IFS=$as_save_IFS
  2868. fi
  2869. test -d ./--version && rmdir ./--version
  2870. if test "${ac_cv_path_mkdir+set}" = set; then
  2871. MKDIR_P="$ac_cv_path_mkdir -p"
  2872. else
  2873. # As a last resort, use the slow shell script. Don't cache a
  2874. # value for MKDIR_P within a source directory, because that will
  2875. # break other packages using the cache if that directory is
  2876. # removed, or if the value is a relative name.
  2877. MKDIR_P="$ac_install_sh -d"
  2878. fi
  2879. fi
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2881. $as_echo "$MKDIR_P" >&6; }
  2882. for ac_prog in gawk mawk nawk awk
  2883. do
  2884. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2885. set dummy $ac_prog; ac_word=$2
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2887. $as_echo_n "checking for $ac_word... " >&6; }
  2888. if ${ac_cv_prog_AWK+:} false; then :
  2889. $as_echo_n "(cached) " >&6
  2890. else
  2891. if test -n "$AWK"; then
  2892. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2893. else
  2894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2895. for as_dir in $PATH
  2896. do
  2897. IFS=$as_save_IFS
  2898. test -z "$as_dir" && as_dir=.
  2899. for ac_exec_ext in '' $ac_executable_extensions; do
  2900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2901. ac_cv_prog_AWK="$ac_prog"
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2903. break 2
  2904. fi
  2905. done
  2906. done
  2907. IFS=$as_save_IFS
  2908. fi
  2909. fi
  2910. AWK=$ac_cv_prog_AWK
  2911. if test -n "$AWK"; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2913. $as_echo "$AWK" >&6; }
  2914. else
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2916. $as_echo "no" >&6; }
  2917. fi
  2918. test -n "$AWK" && break
  2919. done
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2921. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2922. set x ${MAKE-make}
  2923. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2924. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2925. $as_echo_n "(cached) " >&6
  2926. else
  2927. cat >conftest.make <<\_ACEOF
  2928. SHELL = /bin/sh
  2929. all:
  2930. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2931. _ACEOF
  2932. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2933. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2934. *@@@%%%=?*=@@@%%%*)
  2935. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2936. *)
  2937. eval ac_cv_prog_make_${ac_make}_set=no;;
  2938. esac
  2939. rm -f conftest.make
  2940. fi
  2941. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2943. $as_echo "yes" >&6; }
  2944. SET_MAKE=
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2947. $as_echo "no" >&6; }
  2948. SET_MAKE="MAKE=${MAKE-make}"
  2949. fi
  2950. rm -rf .tst 2>/dev/null
  2951. mkdir .tst 2>/dev/null
  2952. if test -d .tst; then
  2953. am__leading_dot=.
  2954. else
  2955. am__leading_dot=_
  2956. fi
  2957. rmdir .tst 2>/dev/null
  2958. # Check whether --enable-silent-rules was given.
  2959. if test "${enable_silent_rules+set}" = set; then :
  2960. enableval=$enable_silent_rules;
  2961. fi
  2962. case $enable_silent_rules in # (((
  2963. yes) AM_DEFAULT_VERBOSITY=0;;
  2964. no) AM_DEFAULT_VERBOSITY=1;;
  2965. *) AM_DEFAULT_VERBOSITY=1;;
  2966. esac
  2967. am_make=${MAKE-make}
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2969. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2970. if ${am_cv_make_support_nested_variables+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if $as_echo 'TRUE=$(BAR$(V))
  2974. BAR0=false
  2975. BAR1=true
  2976. V=1
  2977. am__doit:
  2978. @$(TRUE)
  2979. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2980. am_cv_make_support_nested_variables=yes
  2981. else
  2982. am_cv_make_support_nested_variables=no
  2983. fi
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2986. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2987. if test $am_cv_make_support_nested_variables = yes; then
  2988. AM_V='$(V)'
  2989. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2990. else
  2991. AM_V=$AM_DEFAULT_VERBOSITY
  2992. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2993. fi
  2994. AM_BACKSLASH='\'
  2995. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2996. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2997. # is not polluted with repeated "-I."
  2998. am__isrc=' -I$(srcdir)'
  2999. # test to see if srcdir already configured
  3000. if test -f $srcdir/config.status; then
  3001. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3002. fi
  3003. fi
  3004. # test whether we have cygpath
  3005. if test -z "$CYGPATH_W"; then
  3006. if (cygpath --version) >/dev/null 2>/dev/null; then
  3007. CYGPATH_W='cygpath -w'
  3008. else
  3009. CYGPATH_W=echo
  3010. fi
  3011. fi
  3012. # Define the identity of the package.
  3013. PACKAGE='pcre'
  3014. VERSION='8.43'
  3015. cat >>confdefs.h <<_ACEOF
  3016. #define PACKAGE "$PACKAGE"
  3017. _ACEOF
  3018. cat >>confdefs.h <<_ACEOF
  3019. #define VERSION "$VERSION"
  3020. _ACEOF
  3021. # Some tools Automake needs.
  3022. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3023. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3024. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3025. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3026. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3027. # For better backward compatibility. To be removed once Automake 1.9.x
  3028. # dies out for good. For more background, see:
  3029. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3030. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3031. mkdir_p='$(MKDIR_P)'
  3032. # We need awk for the "check" target (and possibly the TAP driver). The
  3033. # system "awk" is bad on some platforms.
  3034. # Always define AMTAR for backward compatibility. Yes, it's still used
  3035. # in the wild :-( We should find a proper way to deprecate it ...
  3036. AMTAR='$${TAR-tar}'
  3037. # We'll loop over all known methods to create a tar archive until one works.
  3038. _am_tools='gnutar pax cpio none'
  3039. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3040. # POSIX will say in a future version that running "rm -f" with no argument
  3041. # is OK; and we want to be able to make that assumption in our Makefile
  3042. # recipes. So use an aggressive probe to check that the usage we want is
  3043. # actually supported "in the wild" to an acceptable degree.
  3044. # See automake bug#10828.
  3045. # To make any issue more visible, cause the running configure to be aborted
  3046. # by default if the 'rm' program in use doesn't match our expectations; the
  3047. # user can still override this though.
  3048. if rm -f && rm -fr && rm -rf; then : OK; else
  3049. cat >&2 <<'END'
  3050. Oops!
  3051. Your 'rm' program seems unable to run without file operands specified
  3052. on the command line, even when the '-f' option is present. This is contrary
  3053. to the behaviour of most rm programs out there, and not conforming with
  3054. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3055. Please tell bug-automake@gnu.org about your system, including the value
  3056. of your $PATH and any error possibly output before this message. This
  3057. can help us improve future automake versions.
  3058. END
  3059. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3060. echo 'Configuration will proceed anyway, since you have set the' >&2
  3061. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3062. echo >&2
  3063. else
  3064. cat >&2 <<'END'
  3065. Aborting the configuration process, to ensure you take notice of the issue.
  3066. You can download and install GNU coreutils to get an 'rm' implementation
  3067. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3068. If you want to complete the configuration process using your problematic
  3069. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3070. to "yes", and re-run configure.
  3071. END
  3072. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3073. fi
  3074. fi
  3075. # Check whether --enable-silent-rules was given.
  3076. if test "${enable_silent_rules+set}" = set; then :
  3077. enableval=$enable_silent_rules;
  3078. fi
  3079. case $enable_silent_rules in # (((
  3080. yes) AM_DEFAULT_VERBOSITY=0;;
  3081. no) AM_DEFAULT_VERBOSITY=1;;
  3082. *) AM_DEFAULT_VERBOSITY=0;;
  3083. esac
  3084. am_make=${MAKE-make}
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3086. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3087. if ${am_cv_make_support_nested_variables+:} false; then :
  3088. $as_echo_n "(cached) " >&6
  3089. else
  3090. if $as_echo 'TRUE=$(BAR$(V))
  3091. BAR0=false
  3092. BAR1=true
  3093. V=1
  3094. am__doit:
  3095. @$(TRUE)
  3096. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3097. am_cv_make_support_nested_variables=yes
  3098. else
  3099. am_cv_make_support_nested_variables=no
  3100. fi
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3103. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3104. if test $am_cv_make_support_nested_variables = yes; then
  3105. AM_V='$(V)'
  3106. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3107. else
  3108. AM_V=$AM_DEFAULT_VERBOSITY
  3109. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3110. fi
  3111. AM_BACKSLASH='\'
  3112. ac_config_headers="$ac_config_headers config.h"
  3113. # This is a new thing required to stop a warning from automake 1.12
  3114. DEPDIR="${am__leading_dot}deps"
  3115. ac_config_commands="$ac_config_commands depfiles"
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3117. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3118. cat > confinc.mk << 'END'
  3119. am__doit:
  3120. @echo this is the am__doit target >confinc.out
  3121. .PHONY: am__doit
  3122. END
  3123. am__include="#"
  3124. am__quote=
  3125. # BSD make does it like this.
  3126. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3127. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3128. echo 'include confinc.mk # ignored' > confmf.GNU
  3129. _am_result=no
  3130. for s in GNU BSD; do
  3131. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3132. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3133. ac_status=$?
  3134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3135. (exit $ac_status); }
  3136. case $?:`cat confinc.out 2>/dev/null` in #(
  3137. '0:this is the am__doit target') :
  3138. case $s in #(
  3139. BSD) :
  3140. am__include='.include' am__quote='"' ;; #(
  3141. *) :
  3142. am__include='include' am__quote='' ;;
  3143. esac ;; #(
  3144. *) :
  3145. ;;
  3146. esac
  3147. if test "$am__include" != "#"; then
  3148. _am_result="yes ($s style)"
  3149. break
  3150. fi
  3151. done
  3152. rm -f confinc.* confmf.*
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3154. $as_echo "${_am_result}" >&6; }
  3155. # Check whether --enable-dependency-tracking was given.
  3156. if test "${enable_dependency_tracking+set}" = set; then :
  3157. enableval=$enable_dependency_tracking;
  3158. fi
  3159. if test "x$enable_dependency_tracking" != xno; then
  3160. am_depcomp="$ac_aux_dir/depcomp"
  3161. AMDEPBACKSLASH='\'
  3162. am__nodep='_no'
  3163. fi
  3164. if test "x$enable_dependency_tracking" != xno; then
  3165. AMDEP_TRUE=
  3166. AMDEP_FALSE='#'
  3167. else
  3168. AMDEP_TRUE='#'
  3169. AMDEP_FALSE=
  3170. fi
  3171. ac_ext=c
  3172. ac_cpp='$CPP $CPPFLAGS'
  3173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3176. if test -n "$ac_tool_prefix"; then
  3177. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3178. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3180. $as_echo_n "checking for $ac_word... " >&6; }
  3181. if ${ac_cv_prog_CC+:} false; then :
  3182. $as_echo_n "(cached) " >&6
  3183. else
  3184. if test -n "$CC"; then
  3185. ac_cv_prog_CC="$CC" # Let the user override the test.
  3186. else
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3194. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3195. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. IFS=$as_save_IFS
  3201. fi
  3202. fi
  3203. CC=$ac_cv_prog_CC
  3204. if test -n "$CC"; then
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3206. $as_echo "$CC" >&6; }
  3207. else
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3209. $as_echo "no" >&6; }
  3210. fi
  3211. fi
  3212. if test -z "$ac_cv_prog_CC"; then
  3213. ac_ct_CC=$CC
  3214. # Extract the first word of "gcc", so it can be a program name with args.
  3215. set dummy gcc; ac_word=$2
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3217. $as_echo_n "checking for $ac_word... " >&6; }
  3218. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. if test -n "$ac_ct_CC"; then
  3222. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3223. else
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_exec_ext in '' $ac_executable_extensions; do
  3230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3231. ac_cv_prog_ac_ct_CC="gcc"
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3233. break 2
  3234. fi
  3235. done
  3236. done
  3237. IFS=$as_save_IFS
  3238. fi
  3239. fi
  3240. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3241. if test -n "$ac_ct_CC"; then
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3243. $as_echo "$ac_ct_CC" >&6; }
  3244. else
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3246. $as_echo "no" >&6; }
  3247. fi
  3248. if test "x$ac_ct_CC" = x; then
  3249. CC=""
  3250. else
  3251. case $cross_compiling:$ac_tool_warned in
  3252. yes:)
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3255. ac_tool_warned=yes ;;
  3256. esac
  3257. CC=$ac_ct_CC
  3258. fi
  3259. else
  3260. CC="$ac_cv_prog_CC"
  3261. fi
  3262. if test -z "$CC"; then
  3263. if test -n "$ac_tool_prefix"; then
  3264. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3265. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3267. $as_echo_n "checking for $ac_word... " >&6; }
  3268. if ${ac_cv_prog_CC+:} false; then :
  3269. $as_echo_n "(cached) " >&6
  3270. else
  3271. if test -n "$CC"; then
  3272. ac_cv_prog_CC="$CC" # Let the user override the test.
  3273. else
  3274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3275. for as_dir in $PATH
  3276. do
  3277. IFS=$as_save_IFS
  3278. test -z "$as_dir" && as_dir=.
  3279. for ac_exec_ext in '' $ac_executable_extensions; do
  3280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3281. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3283. break 2
  3284. fi
  3285. done
  3286. done
  3287. IFS=$as_save_IFS
  3288. fi
  3289. fi
  3290. CC=$ac_cv_prog_CC
  3291. if test -n "$CC"; then
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3293. $as_echo "$CC" >&6; }
  3294. else
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3296. $as_echo "no" >&6; }
  3297. fi
  3298. fi
  3299. fi
  3300. if test -z "$CC"; then
  3301. # Extract the first word of "cc", so it can be a program name with args.
  3302. set dummy cc; ac_word=$2
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3304. $as_echo_n "checking for $ac_word... " >&6; }
  3305. if ${ac_cv_prog_CC+:} false; then :
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. if test -n "$CC"; then
  3309. ac_cv_prog_CC="$CC" # Let the user override the test.
  3310. else
  3311. ac_prog_rejected=no
  3312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3313. for as_dir in $PATH
  3314. do
  3315. IFS=$as_save_IFS
  3316. test -z "$as_dir" && as_dir=.
  3317. for ac_exec_ext in '' $ac_executable_extensions; do
  3318. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3319. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3320. ac_prog_rejected=yes
  3321. continue
  3322. fi
  3323. ac_cv_prog_CC="cc"
  3324. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3325. break 2
  3326. fi
  3327. done
  3328. done
  3329. IFS=$as_save_IFS
  3330. if test $ac_prog_rejected = yes; then
  3331. # We found a bogon in the path, so make sure we never use it.
  3332. set dummy $ac_cv_prog_CC
  3333. shift
  3334. if test $# != 0; then
  3335. # We chose a different compiler from the bogus one.
  3336. # However, it has the same basename, so the bogon will be chosen
  3337. # first if we set CC to just the basename; use the full file name.
  3338. shift
  3339. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3340. fi
  3341. fi
  3342. fi
  3343. fi
  3344. CC=$ac_cv_prog_CC
  3345. if test -n "$CC"; then
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3347. $as_echo "$CC" >&6; }
  3348. else
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3350. $as_echo "no" >&6; }
  3351. fi
  3352. fi
  3353. if test -z "$CC"; then
  3354. if test -n "$ac_tool_prefix"; then
  3355. for ac_prog in cl.exe
  3356. do
  3357. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3358. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3360. $as_echo_n "checking for $ac_word... " >&6; }
  3361. if ${ac_cv_prog_CC+:} false; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. if test -n "$CC"; then
  3365. ac_cv_prog_CC="$CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3374. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. CC=$ac_cv_prog_CC
  3384. if test -n "$CC"; then
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3386. $as_echo "$CC" >&6; }
  3387. else
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3389. $as_echo "no" >&6; }
  3390. fi
  3391. test -n "$CC" && break
  3392. done
  3393. fi
  3394. if test -z "$CC"; then
  3395. ac_ct_CC=$CC
  3396. for ac_prog in cl.exe
  3397. do
  3398. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3399. set dummy $ac_prog; ac_word=$2
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3401. $as_echo_n "checking for $ac_word... " >&6; }
  3402. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. if test -n "$ac_ct_CC"; then
  3406. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3407. else
  3408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3409. for as_dir in $PATH
  3410. do
  3411. IFS=$as_save_IFS
  3412. test -z "$as_dir" && as_dir=.
  3413. for ac_exec_ext in '' $ac_executable_extensions; do
  3414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3415. ac_cv_prog_ac_ct_CC="$ac_prog"
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3417. break 2
  3418. fi
  3419. done
  3420. done
  3421. IFS=$as_save_IFS
  3422. fi
  3423. fi
  3424. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3425. if test -n "$ac_ct_CC"; then
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3427. $as_echo "$ac_ct_CC" >&6; }
  3428. else
  3429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3430. $as_echo "no" >&6; }
  3431. fi
  3432. test -n "$ac_ct_CC" && break
  3433. done
  3434. if test "x$ac_ct_CC" = x; then
  3435. CC=""
  3436. else
  3437. case $cross_compiling:$ac_tool_warned in
  3438. yes:)
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3441. ac_tool_warned=yes ;;
  3442. esac
  3443. CC=$ac_ct_CC
  3444. fi
  3445. fi
  3446. fi
  3447. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3448. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3449. as_fn_error $? "no acceptable C compiler found in \$PATH
  3450. See \`config.log' for more details" "$LINENO" 5; }
  3451. # Provide some information about the compiler.
  3452. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3453. set X $ac_compile
  3454. ac_compiler=$2
  3455. for ac_option in --version -v -V -qversion; do
  3456. { { ac_try="$ac_compiler $ac_option >&5"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3462. $as_echo "$ac_try_echo"; } >&5
  3463. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3464. ac_status=$?
  3465. if test -s conftest.err; then
  3466. sed '10a\
  3467. ... rest of stderr output deleted ...
  3468. 10q' conftest.err >conftest.er1
  3469. cat conftest.er1 >&5
  3470. fi
  3471. rm -f conftest.er1 conftest.err
  3472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3473. test $ac_status = 0; }
  3474. done
  3475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3476. /* end confdefs.h. */
  3477. int
  3478. main ()
  3479. {
  3480. ;
  3481. return 0;
  3482. }
  3483. _ACEOF
  3484. ac_clean_files_save=$ac_clean_files
  3485. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3486. # Try to create an executable without -o first, disregard a.out.
  3487. # It will help us diagnose broken compilers, and finding out an intuition
  3488. # of exeext.
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3490. $as_echo_n "checking whether the C compiler works... " >&6; }
  3491. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3492. # The possible output files:
  3493. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3494. ac_rmfiles=
  3495. for ac_file in $ac_files
  3496. do
  3497. case $ac_file in
  3498. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3499. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3500. esac
  3501. done
  3502. rm -f $ac_rmfiles
  3503. if { { ac_try="$ac_link_default"
  3504. case "(($ac_try" in
  3505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3506. *) ac_try_echo=$ac_try;;
  3507. esac
  3508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3509. $as_echo "$ac_try_echo"; } >&5
  3510. (eval "$ac_link_default") 2>&5
  3511. ac_status=$?
  3512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3513. test $ac_status = 0; }; then :
  3514. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3515. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3516. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3517. # so that the user can short-circuit this test for compilers unknown to
  3518. # Autoconf.
  3519. for ac_file in $ac_files ''
  3520. do
  3521. test -f "$ac_file" || continue
  3522. case $ac_file in
  3523. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3524. ;;
  3525. [ab].out )
  3526. # We found the default executable, but exeext='' is most
  3527. # certainly right.
  3528. break;;
  3529. *.* )
  3530. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3531. then :; else
  3532. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3533. fi
  3534. # We set ac_cv_exeext here because the later test for it is not
  3535. # safe: cross compilers may not add the suffix if given an `-o'
  3536. # argument, so we may need to know it at that point already.
  3537. # Even if this section looks crufty: it has the advantage of
  3538. # actually working.
  3539. break;;
  3540. * )
  3541. break;;
  3542. esac
  3543. done
  3544. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3545. else
  3546. ac_file=''
  3547. fi
  3548. if test -z "$ac_file"; then :
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3550. $as_echo "no" >&6; }
  3551. $as_echo "$as_me: failed program was:" >&5
  3552. sed 's/^/| /' conftest.$ac_ext >&5
  3553. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3554. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3555. as_fn_error 77 "C compiler cannot create executables
  3556. See \`config.log' for more details" "$LINENO" 5; }
  3557. else
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3559. $as_echo "yes" >&6; }
  3560. fi
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3562. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3564. $as_echo "$ac_file" >&6; }
  3565. ac_exeext=$ac_cv_exeext
  3566. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3567. ac_clean_files=$ac_clean_files_save
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3569. $as_echo_n "checking for suffix of executables... " >&6; }
  3570. if { { ac_try="$ac_link"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3576. $as_echo "$ac_try_echo"; } >&5
  3577. (eval "$ac_link") 2>&5
  3578. ac_status=$?
  3579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3580. test $ac_status = 0; }; then :
  3581. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3582. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3583. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3584. # `rm'.
  3585. for ac_file in conftest.exe conftest conftest.*; do
  3586. test -f "$ac_file" || continue
  3587. case $ac_file in
  3588. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3589. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3590. break;;
  3591. * ) break;;
  3592. esac
  3593. done
  3594. else
  3595. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3596. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3597. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3598. See \`config.log' for more details" "$LINENO" 5; }
  3599. fi
  3600. rm -f conftest conftest$ac_cv_exeext
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3602. $as_echo "$ac_cv_exeext" >&6; }
  3603. rm -f conftest.$ac_ext
  3604. EXEEXT=$ac_cv_exeext
  3605. ac_exeext=$EXEEXT
  3606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3607. /* end confdefs.h. */
  3608. #include <stdio.h>
  3609. int
  3610. main ()
  3611. {
  3612. FILE *f = fopen ("conftest.out", "w");
  3613. return ferror (f) || fclose (f) != 0;
  3614. ;
  3615. return 0;
  3616. }
  3617. _ACEOF
  3618. ac_clean_files="$ac_clean_files conftest.out"
  3619. # Check that the compiler produces executables we can run. If not, either
  3620. # the compiler is broken, or we cross compile.
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3622. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3623. if test "$cross_compiling" != yes; then
  3624. { { ac_try="$ac_link"
  3625. case "(($ac_try" in
  3626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3627. *) ac_try_echo=$ac_try;;
  3628. esac
  3629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3630. $as_echo "$ac_try_echo"; } >&5
  3631. (eval "$ac_link") 2>&5
  3632. ac_status=$?
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3634. test $ac_status = 0; }
  3635. if { ac_try='./conftest$ac_cv_exeext'
  3636. { { case "(($ac_try" in
  3637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3638. *) ac_try_echo=$ac_try;;
  3639. esac
  3640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3641. $as_echo "$ac_try_echo"; } >&5
  3642. (eval "$ac_try") 2>&5
  3643. ac_status=$?
  3644. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3645. test $ac_status = 0; }; }; then
  3646. cross_compiling=no
  3647. else
  3648. if test "$cross_compiling" = maybe; then
  3649. cross_compiling=yes
  3650. else
  3651. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3652. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3653. as_fn_error $? "cannot run C compiled programs.
  3654. If you meant to cross compile, use \`--host'.
  3655. See \`config.log' for more details" "$LINENO" 5; }
  3656. fi
  3657. fi
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3660. $as_echo "$cross_compiling" >&6; }
  3661. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3662. ac_clean_files=$ac_clean_files_save
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3664. $as_echo_n "checking for suffix of object files... " >&6; }
  3665. if ${ac_cv_objext+:} false; then :
  3666. $as_echo_n "(cached) " >&6
  3667. else
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. int
  3671. main ()
  3672. {
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. rm -f conftest.o conftest.obj
  3678. if { { ac_try="$ac_compile"
  3679. case "(($ac_try" in
  3680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3681. *) ac_try_echo=$ac_try;;
  3682. esac
  3683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3684. $as_echo "$ac_try_echo"; } >&5
  3685. (eval "$ac_compile") 2>&5
  3686. ac_status=$?
  3687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3688. test $ac_status = 0; }; then :
  3689. for ac_file in conftest.o conftest.obj conftest.*; do
  3690. test -f "$ac_file" || continue;
  3691. case $ac_file in
  3692. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3693. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3694. break;;
  3695. esac
  3696. done
  3697. else
  3698. $as_echo "$as_me: failed program was:" >&5
  3699. sed 's/^/| /' conftest.$ac_ext >&5
  3700. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3701. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3702. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3703. See \`config.log' for more details" "$LINENO" 5; }
  3704. fi
  3705. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3706. fi
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3708. $as_echo "$ac_cv_objext" >&6; }
  3709. OBJEXT=$ac_cv_objext
  3710. ac_objext=$OBJEXT
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3712. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3713. if ${ac_cv_c_compiler_gnu+:} false; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. #ifndef __GNUC__
  3722. choke me
  3723. #endif
  3724. ;
  3725. return 0;
  3726. }
  3727. _ACEOF
  3728. if ac_fn_c_try_compile "$LINENO"; then :
  3729. ac_compiler_gnu=yes
  3730. else
  3731. ac_compiler_gnu=no
  3732. fi
  3733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3734. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3735. fi
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3737. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3738. if test $ac_compiler_gnu = yes; then
  3739. GCC=yes
  3740. else
  3741. GCC=
  3742. fi
  3743. ac_test_CFLAGS=${CFLAGS+set}
  3744. ac_save_CFLAGS=$CFLAGS
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3746. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3747. if ${ac_cv_prog_cc_g+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. ac_save_c_werror_flag=$ac_c_werror_flag
  3751. ac_c_werror_flag=yes
  3752. ac_cv_prog_cc_g=no
  3753. CFLAGS="-g"
  3754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3755. /* end confdefs.h. */
  3756. int
  3757. main ()
  3758. {
  3759. ;
  3760. return 0;
  3761. }
  3762. _ACEOF
  3763. if ac_fn_c_try_compile "$LINENO"; then :
  3764. ac_cv_prog_cc_g=yes
  3765. else
  3766. CFLAGS=""
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int
  3770. main ()
  3771. {
  3772. ;
  3773. return 0;
  3774. }
  3775. _ACEOF
  3776. if ac_fn_c_try_compile "$LINENO"; then :
  3777. else
  3778. ac_c_werror_flag=$ac_save_c_werror_flag
  3779. CFLAGS="-g"
  3780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3781. /* end confdefs.h. */
  3782. int
  3783. main ()
  3784. {
  3785. ;
  3786. return 0;
  3787. }
  3788. _ACEOF
  3789. if ac_fn_c_try_compile "$LINENO"; then :
  3790. ac_cv_prog_cc_g=yes
  3791. fi
  3792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. fi
  3794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3795. fi
  3796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3797. ac_c_werror_flag=$ac_save_c_werror_flag
  3798. fi
  3799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3800. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3801. if test "$ac_test_CFLAGS" = set; then
  3802. CFLAGS=$ac_save_CFLAGS
  3803. elif test $ac_cv_prog_cc_g = yes; then
  3804. if test "$GCC" = yes; then
  3805. CFLAGS="-g -O2"
  3806. else
  3807. CFLAGS="-g"
  3808. fi
  3809. else
  3810. if test "$GCC" = yes; then
  3811. CFLAGS="-O2"
  3812. else
  3813. CFLAGS=
  3814. fi
  3815. fi
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3817. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3818. if ${ac_cv_prog_cc_c89+:} false; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. ac_cv_prog_cc_c89=no
  3822. ac_save_CC=$CC
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. #include <stdarg.h>
  3826. #include <stdio.h>
  3827. struct stat;
  3828. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3829. struct buf { int x; };
  3830. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3831. static char *e (p, i)
  3832. char **p;
  3833. int i;
  3834. {
  3835. return p[i];
  3836. }
  3837. static char *f (char * (*g) (char **, int), char **p, ...)
  3838. {
  3839. char *s;
  3840. va_list v;
  3841. va_start (v,p);
  3842. s = g (p, va_arg (v,int));
  3843. va_end (v);
  3844. return s;
  3845. }
  3846. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3847. function prototypes and stuff, but not '\xHH' hex character constants.
  3848. These don't provoke an error unfortunately, instead are silently treated
  3849. as 'x'. The following induces an error, until -std is added to get
  3850. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3851. array size at least. It's necessary to write '\x00'==0 to get something
  3852. that's true only with -std. */
  3853. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3854. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3855. inside strings and character constants. */
  3856. #define FOO(x) 'x'
  3857. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3858. int test (int i, double x);
  3859. struct s1 {int (*f) (int a);};
  3860. struct s2 {int (*f) (double a);};
  3861. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3862. int argc;
  3863. char **argv;
  3864. int
  3865. main ()
  3866. {
  3867. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3873. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3874. do
  3875. CC="$ac_save_CC $ac_arg"
  3876. if ac_fn_c_try_compile "$LINENO"; then :
  3877. ac_cv_prog_cc_c89=$ac_arg
  3878. fi
  3879. rm -f core conftest.err conftest.$ac_objext
  3880. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3881. done
  3882. rm -f conftest.$ac_ext
  3883. CC=$ac_save_CC
  3884. fi
  3885. # AC_CACHE_VAL
  3886. case "x$ac_cv_prog_cc_c89" in
  3887. x)
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3889. $as_echo "none needed" >&6; } ;;
  3890. xno)
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3892. $as_echo "unsupported" >&6; } ;;
  3893. *)
  3894. CC="$CC $ac_cv_prog_cc_c89"
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3896. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3897. esac
  3898. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3899. fi
  3900. ac_ext=c
  3901. ac_cpp='$CPP $CPPFLAGS'
  3902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3905. ac_ext=c
  3906. ac_cpp='$CPP $CPPFLAGS'
  3907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3911. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3912. if ${am_cv_prog_cc_c_o+:} false; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3916. /* end confdefs.h. */
  3917. int
  3918. main ()
  3919. {
  3920. ;
  3921. return 0;
  3922. }
  3923. _ACEOF
  3924. # Make sure it works both with $CC and with simple cc.
  3925. # Following AC_PROG_CC_C_O, we do the test twice because some
  3926. # compilers refuse to overwrite an existing .o file with -o,
  3927. # though they will create one.
  3928. am_cv_prog_cc_c_o=yes
  3929. for am_i in 1 2; do
  3930. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3931. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3932. ac_status=$?
  3933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3934. (exit $ac_status); } \
  3935. && test -f conftest2.$ac_objext; then
  3936. : OK
  3937. else
  3938. am_cv_prog_cc_c_o=no
  3939. break
  3940. fi
  3941. done
  3942. rm -f core conftest*
  3943. unset am_i
  3944. fi
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3946. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3947. if test "$am_cv_prog_cc_c_o" != yes; then
  3948. # Losing compiler, so override with the script.
  3949. # FIXME: It is wrong to rewrite CC.
  3950. # But if we don't then we get into trouble of one sort or another.
  3951. # A longer-term fix would be to have automake use am__CC in this case,
  3952. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3953. CC="$am_aux_dir/compile $CC"
  3954. fi
  3955. ac_ext=c
  3956. ac_cpp='$CPP $CPPFLAGS'
  3957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3960. depcc="$CC" am_compiler_list=
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3962. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3963. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3967. # We make a subdir and do the tests there. Otherwise we can end up
  3968. # making bogus files that we don't know about and never remove. For
  3969. # instance it was reported that on HP-UX the gcc test will end up
  3970. # making a dummy file named 'D' -- because '-MD' means "put the output
  3971. # in D".
  3972. rm -rf conftest.dir
  3973. mkdir conftest.dir
  3974. # Copy depcomp to subdir because otherwise we won't find it if we're
  3975. # using a relative directory.
  3976. cp "$am_depcomp" conftest.dir
  3977. cd conftest.dir
  3978. # We will build objects and dependencies in a subdirectory because
  3979. # it helps to detect inapplicable dependency modes. For instance
  3980. # both Tru64's cc and ICC support -MD to output dependencies as a
  3981. # side effect of compilation, but ICC will put the dependencies in
  3982. # the current directory while Tru64 will put them in the object
  3983. # directory.
  3984. mkdir sub
  3985. am_cv_CC_dependencies_compiler_type=none
  3986. if test "$am_compiler_list" = ""; then
  3987. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3988. fi
  3989. am__universal=false
  3990. case " $depcc " in #(
  3991. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3992. esac
  3993. for depmode in $am_compiler_list; do
  3994. # Setup a source with many dependencies, because some compilers
  3995. # like to wrap large dependency lists on column 80 (with \), and
  3996. # we should not choose a depcomp mode which is confused by this.
  3997. #
  3998. # We need to recreate these files for each test, as the compiler may
  3999. # overwrite some of them when testing with obscure command lines.
  4000. # This happens at least with the AIX C compiler.
  4001. : > sub/conftest.c
  4002. for i in 1 2 3 4 5 6; do
  4003. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4004. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4005. # Solaris 10 /bin/sh.
  4006. echo '/* dummy */' > sub/conftst$i.h
  4007. done
  4008. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4009. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4010. # mode. It turns out that the SunPro C++ compiler does not properly
  4011. # handle '-M -o', and we need to detect this. Also, some Intel
  4012. # versions had trouble with output in subdirs.
  4013. am__obj=sub/conftest.${OBJEXT-o}
  4014. am__minus_obj="-o $am__obj"
  4015. case $depmode in
  4016. gcc)
  4017. # This depmode causes a compiler race in universal mode.
  4018. test "$am__universal" = false || continue
  4019. ;;
  4020. nosideeffect)
  4021. # After this tag, mechanisms are not by side-effect, so they'll
  4022. # only be used when explicitly requested.
  4023. if test "x$enable_dependency_tracking" = xyes; then
  4024. continue
  4025. else
  4026. break
  4027. fi
  4028. ;;
  4029. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4030. # This compiler won't grok '-c -o', but also, the minuso test has
  4031. # not run yet. These depmodes are late enough in the game, and
  4032. # so weak that their functioning should not be impacted.
  4033. am__obj=conftest.${OBJEXT-o}
  4034. am__minus_obj=
  4035. ;;
  4036. none) break ;;
  4037. esac
  4038. if depmode=$depmode \
  4039. source=sub/conftest.c object=$am__obj \
  4040. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4041. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4042. >/dev/null 2>conftest.err &&
  4043. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4044. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4045. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4046. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4047. # icc doesn't choke on unknown options, it will just issue warnings
  4048. # or remarks (even with -Werror). So we grep stderr for any message
  4049. # that says an option was ignored or not supported.
  4050. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4051. # icc: Command line warning: ignoring option '-M'; no argument required
  4052. # The diagnosis changed in icc 8.0:
  4053. # icc: Command line remark: option '-MP' not supported
  4054. if (grep 'ignoring option' conftest.err ||
  4055. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4056. am_cv_CC_dependencies_compiler_type=$depmode
  4057. break
  4058. fi
  4059. fi
  4060. done
  4061. cd ..
  4062. rm -rf conftest.dir
  4063. else
  4064. am_cv_CC_dependencies_compiler_type=none
  4065. fi
  4066. fi
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4068. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4069. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4070. if
  4071. test "x$enable_dependency_tracking" != xno \
  4072. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4073. am__fastdepCC_TRUE=
  4074. am__fastdepCC_FALSE='#'
  4075. else
  4076. am__fastdepCC_TRUE='#'
  4077. am__fastdepCC_FALSE=
  4078. fi
  4079. if test -n "$ac_tool_prefix"; then
  4080. for ac_prog in ar lib "link -lib"
  4081. do
  4082. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4083. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4085. $as_echo_n "checking for $ac_word... " >&6; }
  4086. if ${ac_cv_prog_AR+:} false; then :
  4087. $as_echo_n "(cached) " >&6
  4088. else
  4089. if test -n "$AR"; then
  4090. ac_cv_prog_AR="$AR" # Let the user override the test.
  4091. else
  4092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4093. for as_dir in $PATH
  4094. do
  4095. IFS=$as_save_IFS
  4096. test -z "$as_dir" && as_dir=.
  4097. for ac_exec_ext in '' $ac_executable_extensions; do
  4098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4099. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4101. break 2
  4102. fi
  4103. done
  4104. done
  4105. IFS=$as_save_IFS
  4106. fi
  4107. fi
  4108. AR=$ac_cv_prog_AR
  4109. if test -n "$AR"; then
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4111. $as_echo "$AR" >&6; }
  4112. else
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4114. $as_echo "no" >&6; }
  4115. fi
  4116. test -n "$AR" && break
  4117. done
  4118. fi
  4119. if test -z "$AR"; then
  4120. ac_ct_AR=$AR
  4121. for ac_prog in ar lib "link -lib"
  4122. do
  4123. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4124. set dummy $ac_prog; ac_word=$2
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4126. $as_echo_n "checking for $ac_word... " >&6; }
  4127. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. if test -n "$ac_ct_AR"; then
  4131. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4132. else
  4133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4134. for as_dir in $PATH
  4135. do
  4136. IFS=$as_save_IFS
  4137. test -z "$as_dir" && as_dir=.
  4138. for ac_exec_ext in '' $ac_executable_extensions; do
  4139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4140. ac_cv_prog_ac_ct_AR="$ac_prog"
  4141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4142. break 2
  4143. fi
  4144. done
  4145. done
  4146. IFS=$as_save_IFS
  4147. fi
  4148. fi
  4149. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4150. if test -n "$ac_ct_AR"; then
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4152. $as_echo "$ac_ct_AR" >&6; }
  4153. else
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4155. $as_echo "no" >&6; }
  4156. fi
  4157. test -n "$ac_ct_AR" && break
  4158. done
  4159. if test "x$ac_ct_AR" = x; then
  4160. AR="false"
  4161. else
  4162. case $cross_compiling:$ac_tool_warned in
  4163. yes:)
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4165. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4166. ac_tool_warned=yes ;;
  4167. esac
  4168. AR=$ac_ct_AR
  4169. fi
  4170. fi
  4171. : ${AR=ar}
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4173. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4174. if ${am_cv_ar_interface+:} false; then :
  4175. $as_echo_n "(cached) " >&6
  4176. else
  4177. ac_ext=c
  4178. ac_cpp='$CPP $CPPFLAGS'
  4179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4182. am_cv_ar_interface=ar
  4183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4184. /* end confdefs.h. */
  4185. int some_variable = 0;
  4186. _ACEOF
  4187. if ac_fn_c_try_compile "$LINENO"; then :
  4188. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4189. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4190. (eval $am_ar_try) 2>&5
  4191. ac_status=$?
  4192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4193. test $ac_status = 0; }
  4194. if test "$ac_status" -eq 0; then
  4195. am_cv_ar_interface=ar
  4196. else
  4197. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4198. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4199. (eval $am_ar_try) 2>&5
  4200. ac_status=$?
  4201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4202. test $ac_status = 0; }
  4203. if test "$ac_status" -eq 0; then
  4204. am_cv_ar_interface=lib
  4205. else
  4206. am_cv_ar_interface=unknown
  4207. fi
  4208. fi
  4209. rm -f conftest.lib libconftest.a
  4210. fi
  4211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4212. ac_ext=c
  4213. ac_cpp='$CPP $CPPFLAGS'
  4214. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4215. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4216. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4219. $as_echo "$am_cv_ar_interface" >&6; }
  4220. case $am_cv_ar_interface in
  4221. ar)
  4222. ;;
  4223. lib)
  4224. # Microsoft lib, so override with the ar-lib wrapper script.
  4225. # FIXME: It is wrong to rewrite AR.
  4226. # But if we don't then we get into trouble of one sort or another.
  4227. # A longer-term fix would be to have automake use am__AR in this case,
  4228. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4229. # similar.
  4230. AR="$am_aux_dir/ar-lib $AR"
  4231. ;;
  4232. unknown)
  4233. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4234. ;;
  4235. esac
  4236. # This was added at the suggestion of libtoolize (03-Jan-10)
  4237. # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
  4238. # "-g" for any other compiler. There doesn't seem to be a standard way of
  4239. # getting rid of the -g (which I don't think is needed for a production
  4240. # library). This fudge seems to achieve the necessary. First, we remember the
  4241. # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
  4242. # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
  4243. # set, they will be set to Autoconf's defaults. Afterwards, if the original
  4244. # values were not set, remove the -g from the Autoconf defaults.
  4245. # (PH 02-May-07)
  4246. remember_set_CFLAGS="$CFLAGS"
  4247. remember_set_CXXFLAGS="$CXXFLAGS"
  4248. ac_ext=c
  4249. ac_cpp='$CPP $CPPFLAGS'
  4250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4253. if test -n "$ac_tool_prefix"; then
  4254. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4255. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4257. $as_echo_n "checking for $ac_word... " >&6; }
  4258. if ${ac_cv_prog_CC+:} false; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. if test -n "$CC"; then
  4262. ac_cv_prog_CC="$CC" # Let the user override the test.
  4263. else
  4264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4265. for as_dir in $PATH
  4266. do
  4267. IFS=$as_save_IFS
  4268. test -z "$as_dir" && as_dir=.
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4271. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. IFS=$as_save_IFS
  4278. fi
  4279. fi
  4280. CC=$ac_cv_prog_CC
  4281. if test -n "$CC"; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4283. $as_echo "$CC" >&6; }
  4284. else
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4286. $as_echo "no" >&6; }
  4287. fi
  4288. fi
  4289. if test -z "$ac_cv_prog_CC"; then
  4290. ac_ct_CC=$CC
  4291. # Extract the first word of "gcc", so it can be a program name with args.
  4292. set dummy gcc; ac_word=$2
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4294. $as_echo_n "checking for $ac_word... " >&6; }
  4295. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4296. $as_echo_n "(cached) " >&6
  4297. else
  4298. if test -n "$ac_ct_CC"; then
  4299. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4300. else
  4301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4302. for as_dir in $PATH
  4303. do
  4304. IFS=$as_save_IFS
  4305. test -z "$as_dir" && as_dir=.
  4306. for ac_exec_ext in '' $ac_executable_extensions; do
  4307. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4308. ac_cv_prog_ac_ct_CC="gcc"
  4309. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4310. break 2
  4311. fi
  4312. done
  4313. done
  4314. IFS=$as_save_IFS
  4315. fi
  4316. fi
  4317. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4318. if test -n "$ac_ct_CC"; then
  4319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4320. $as_echo "$ac_ct_CC" >&6; }
  4321. else
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4323. $as_echo "no" >&6; }
  4324. fi
  4325. if test "x$ac_ct_CC" = x; then
  4326. CC=""
  4327. else
  4328. case $cross_compiling:$ac_tool_warned in
  4329. yes:)
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4331. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4332. ac_tool_warned=yes ;;
  4333. esac
  4334. CC=$ac_ct_CC
  4335. fi
  4336. else
  4337. CC="$ac_cv_prog_CC"
  4338. fi
  4339. if test -z "$CC"; then
  4340. if test -n "$ac_tool_prefix"; then
  4341. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4342. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4344. $as_echo_n "checking for $ac_word... " >&6; }
  4345. if ${ac_cv_prog_CC+:} false; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. if test -n "$CC"; then
  4349. ac_cv_prog_CC="$CC" # Let the user override the test.
  4350. else
  4351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4352. for as_dir in $PATH
  4353. do
  4354. IFS=$as_save_IFS
  4355. test -z "$as_dir" && as_dir=.
  4356. for ac_exec_ext in '' $ac_executable_extensions; do
  4357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4358. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4360. break 2
  4361. fi
  4362. done
  4363. done
  4364. IFS=$as_save_IFS
  4365. fi
  4366. fi
  4367. CC=$ac_cv_prog_CC
  4368. if test -n "$CC"; then
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4370. $as_echo "$CC" >&6; }
  4371. else
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4373. $as_echo "no" >&6; }
  4374. fi
  4375. fi
  4376. fi
  4377. if test -z "$CC"; then
  4378. # Extract the first word of "cc", so it can be a program name with args.
  4379. set dummy cc; ac_word=$2
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4381. $as_echo_n "checking for $ac_word... " >&6; }
  4382. if ${ac_cv_prog_CC+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -n "$CC"; then
  4386. ac_cv_prog_CC="$CC" # Let the user override the test.
  4387. else
  4388. ac_prog_rejected=no
  4389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4390. for as_dir in $PATH
  4391. do
  4392. IFS=$as_save_IFS
  4393. test -z "$as_dir" && as_dir=.
  4394. for ac_exec_ext in '' $ac_executable_extensions; do
  4395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4396. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4397. ac_prog_rejected=yes
  4398. continue
  4399. fi
  4400. ac_cv_prog_CC="cc"
  4401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4402. break 2
  4403. fi
  4404. done
  4405. done
  4406. IFS=$as_save_IFS
  4407. if test $ac_prog_rejected = yes; then
  4408. # We found a bogon in the path, so make sure we never use it.
  4409. set dummy $ac_cv_prog_CC
  4410. shift
  4411. if test $# != 0; then
  4412. # We chose a different compiler from the bogus one.
  4413. # However, it has the same basename, so the bogon will be chosen
  4414. # first if we set CC to just the basename; use the full file name.
  4415. shift
  4416. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4417. fi
  4418. fi
  4419. fi
  4420. fi
  4421. CC=$ac_cv_prog_CC
  4422. if test -n "$CC"; then
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4424. $as_echo "$CC" >&6; }
  4425. else
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4427. $as_echo "no" >&6; }
  4428. fi
  4429. fi
  4430. if test -z "$CC"; then
  4431. if test -n "$ac_tool_prefix"; then
  4432. for ac_prog in cl.exe
  4433. do
  4434. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4435. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4437. $as_echo_n "checking for $ac_word... " >&6; }
  4438. if ${ac_cv_prog_CC+:} false; then :
  4439. $as_echo_n "(cached) " >&6
  4440. else
  4441. if test -n "$CC"; then
  4442. ac_cv_prog_CC="$CC" # Let the user override the test.
  4443. else
  4444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4445. for as_dir in $PATH
  4446. do
  4447. IFS=$as_save_IFS
  4448. test -z "$as_dir" && as_dir=.
  4449. for ac_exec_ext in '' $ac_executable_extensions; do
  4450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4451. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4453. break 2
  4454. fi
  4455. done
  4456. done
  4457. IFS=$as_save_IFS
  4458. fi
  4459. fi
  4460. CC=$ac_cv_prog_CC
  4461. if test -n "$CC"; then
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4463. $as_echo "$CC" >&6; }
  4464. else
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4466. $as_echo "no" >&6; }
  4467. fi
  4468. test -n "$CC" && break
  4469. done
  4470. fi
  4471. if test -z "$CC"; then
  4472. ac_ct_CC=$CC
  4473. for ac_prog in cl.exe
  4474. do
  4475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4476. set dummy $ac_prog; ac_word=$2
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4478. $as_echo_n "checking for $ac_word... " >&6; }
  4479. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. if test -n "$ac_ct_CC"; then
  4483. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4484. else
  4485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4486. for as_dir in $PATH
  4487. do
  4488. IFS=$as_save_IFS
  4489. test -z "$as_dir" && as_dir=.
  4490. for ac_exec_ext in '' $ac_executable_extensions; do
  4491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4492. ac_cv_prog_ac_ct_CC="$ac_prog"
  4493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4494. break 2
  4495. fi
  4496. done
  4497. done
  4498. IFS=$as_save_IFS
  4499. fi
  4500. fi
  4501. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4502. if test -n "$ac_ct_CC"; then
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4504. $as_echo "$ac_ct_CC" >&6; }
  4505. else
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4507. $as_echo "no" >&6; }
  4508. fi
  4509. test -n "$ac_ct_CC" && break
  4510. done
  4511. if test "x$ac_ct_CC" = x; then
  4512. CC=""
  4513. else
  4514. case $cross_compiling:$ac_tool_warned in
  4515. yes:)
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4517. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4518. ac_tool_warned=yes ;;
  4519. esac
  4520. CC=$ac_ct_CC
  4521. fi
  4522. fi
  4523. fi
  4524. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4525. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4526. as_fn_error $? "no acceptable C compiler found in \$PATH
  4527. See \`config.log' for more details" "$LINENO" 5; }
  4528. # Provide some information about the compiler.
  4529. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4530. set X $ac_compile
  4531. ac_compiler=$2
  4532. for ac_option in --version -v -V -qversion; do
  4533. { { ac_try="$ac_compiler $ac_option >&5"
  4534. case "(($ac_try" in
  4535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4536. *) ac_try_echo=$ac_try;;
  4537. esac
  4538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4539. $as_echo "$ac_try_echo"; } >&5
  4540. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4541. ac_status=$?
  4542. if test -s conftest.err; then
  4543. sed '10a\
  4544. ... rest of stderr output deleted ...
  4545. 10q' conftest.err >conftest.er1
  4546. cat conftest.er1 >&5
  4547. fi
  4548. rm -f conftest.er1 conftest.err
  4549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4550. test $ac_status = 0; }
  4551. done
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4553. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4554. if ${ac_cv_c_compiler_gnu+:} false; then :
  4555. $as_echo_n "(cached) " >&6
  4556. else
  4557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4558. /* end confdefs.h. */
  4559. int
  4560. main ()
  4561. {
  4562. #ifndef __GNUC__
  4563. choke me
  4564. #endif
  4565. ;
  4566. return 0;
  4567. }
  4568. _ACEOF
  4569. if ac_fn_c_try_compile "$LINENO"; then :
  4570. ac_compiler_gnu=yes
  4571. else
  4572. ac_compiler_gnu=no
  4573. fi
  4574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4575. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4576. fi
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4578. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4579. if test $ac_compiler_gnu = yes; then
  4580. GCC=yes
  4581. else
  4582. GCC=
  4583. fi
  4584. ac_test_CFLAGS=${CFLAGS+set}
  4585. ac_save_CFLAGS=$CFLAGS
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4587. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4588. if ${ac_cv_prog_cc_g+:} false; then :
  4589. $as_echo_n "(cached) " >&6
  4590. else
  4591. ac_save_c_werror_flag=$ac_c_werror_flag
  4592. ac_c_werror_flag=yes
  4593. ac_cv_prog_cc_g=no
  4594. CFLAGS="-g"
  4595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4596. /* end confdefs.h. */
  4597. int
  4598. main ()
  4599. {
  4600. ;
  4601. return 0;
  4602. }
  4603. _ACEOF
  4604. if ac_fn_c_try_compile "$LINENO"; then :
  4605. ac_cv_prog_cc_g=yes
  4606. else
  4607. CFLAGS=""
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. int
  4611. main ()
  4612. {
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. if ac_fn_c_try_compile "$LINENO"; then :
  4618. else
  4619. ac_c_werror_flag=$ac_save_c_werror_flag
  4620. CFLAGS="-g"
  4621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4622. /* end confdefs.h. */
  4623. int
  4624. main ()
  4625. {
  4626. ;
  4627. return 0;
  4628. }
  4629. _ACEOF
  4630. if ac_fn_c_try_compile "$LINENO"; then :
  4631. ac_cv_prog_cc_g=yes
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4634. fi
  4635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. fi
  4637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4638. ac_c_werror_flag=$ac_save_c_werror_flag
  4639. fi
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4641. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4642. if test "$ac_test_CFLAGS" = set; then
  4643. CFLAGS=$ac_save_CFLAGS
  4644. elif test $ac_cv_prog_cc_g = yes; then
  4645. if test "$GCC" = yes; then
  4646. CFLAGS="-g -O2"
  4647. else
  4648. CFLAGS="-g"
  4649. fi
  4650. else
  4651. if test "$GCC" = yes; then
  4652. CFLAGS="-O2"
  4653. else
  4654. CFLAGS=
  4655. fi
  4656. fi
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4658. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4659. if ${ac_cv_prog_cc_c89+:} false; then :
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. ac_cv_prog_cc_c89=no
  4663. ac_save_CC=$CC
  4664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end confdefs.h. */
  4666. #include <stdarg.h>
  4667. #include <stdio.h>
  4668. struct stat;
  4669. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4670. struct buf { int x; };
  4671. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4672. static char *e (p, i)
  4673. char **p;
  4674. int i;
  4675. {
  4676. return p[i];
  4677. }
  4678. static char *f (char * (*g) (char **, int), char **p, ...)
  4679. {
  4680. char *s;
  4681. va_list v;
  4682. va_start (v,p);
  4683. s = g (p, va_arg (v,int));
  4684. va_end (v);
  4685. return s;
  4686. }
  4687. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4688. function prototypes and stuff, but not '\xHH' hex character constants.
  4689. These don't provoke an error unfortunately, instead are silently treated
  4690. as 'x'. The following induces an error, until -std is added to get
  4691. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4692. array size at least. It's necessary to write '\x00'==0 to get something
  4693. that's true only with -std. */
  4694. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4695. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4696. inside strings and character constants. */
  4697. #define FOO(x) 'x'
  4698. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4699. int test (int i, double x);
  4700. struct s1 {int (*f) (int a);};
  4701. struct s2 {int (*f) (double a);};
  4702. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4703. int argc;
  4704. char **argv;
  4705. int
  4706. main ()
  4707. {
  4708. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4709. ;
  4710. return 0;
  4711. }
  4712. _ACEOF
  4713. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4714. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4715. do
  4716. CC="$ac_save_CC $ac_arg"
  4717. if ac_fn_c_try_compile "$LINENO"; then :
  4718. ac_cv_prog_cc_c89=$ac_arg
  4719. fi
  4720. rm -f core conftest.err conftest.$ac_objext
  4721. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4722. done
  4723. rm -f conftest.$ac_ext
  4724. CC=$ac_save_CC
  4725. fi
  4726. # AC_CACHE_VAL
  4727. case "x$ac_cv_prog_cc_c89" in
  4728. x)
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4730. $as_echo "none needed" >&6; } ;;
  4731. xno)
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4733. $as_echo "unsupported" >&6; } ;;
  4734. *)
  4735. CC="$CC $ac_cv_prog_cc_c89"
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4737. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4738. esac
  4739. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4740. fi
  4741. ac_ext=c
  4742. ac_cpp='$CPP $CPPFLAGS'
  4743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4746. ac_ext=c
  4747. ac_cpp='$CPP $CPPFLAGS'
  4748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4752. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4753. if ${am_cv_prog_cc_c_o+:} false; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4757. /* end confdefs.h. */
  4758. int
  4759. main ()
  4760. {
  4761. ;
  4762. return 0;
  4763. }
  4764. _ACEOF
  4765. # Make sure it works both with $CC and with simple cc.
  4766. # Following AC_PROG_CC_C_O, we do the test twice because some
  4767. # compilers refuse to overwrite an existing .o file with -o,
  4768. # though they will create one.
  4769. am_cv_prog_cc_c_o=yes
  4770. for am_i in 1 2; do
  4771. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4772. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4773. ac_status=$?
  4774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); } \
  4776. && test -f conftest2.$ac_objext; then
  4777. : OK
  4778. else
  4779. am_cv_prog_cc_c_o=no
  4780. break
  4781. fi
  4782. done
  4783. rm -f core conftest*
  4784. unset am_i
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4787. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4788. if test "$am_cv_prog_cc_c_o" != yes; then
  4789. # Losing compiler, so override with the script.
  4790. # FIXME: It is wrong to rewrite CC.
  4791. # But if we don't then we get into trouble of one sort or another.
  4792. # A longer-term fix would be to have automake use am__CC in this case,
  4793. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4794. CC="$am_aux_dir/compile $CC"
  4795. fi
  4796. ac_ext=c
  4797. ac_cpp='$CPP $CPPFLAGS'
  4798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4801. depcc="$CC" am_compiler_list=
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4803. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4804. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4805. $as_echo_n "(cached) " >&6
  4806. else
  4807. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4808. # We make a subdir and do the tests there. Otherwise we can end up
  4809. # making bogus files that we don't know about and never remove. For
  4810. # instance it was reported that on HP-UX the gcc test will end up
  4811. # making a dummy file named 'D' -- because '-MD' means "put the output
  4812. # in D".
  4813. rm -rf conftest.dir
  4814. mkdir conftest.dir
  4815. # Copy depcomp to subdir because otherwise we won't find it if we're
  4816. # using a relative directory.
  4817. cp "$am_depcomp" conftest.dir
  4818. cd conftest.dir
  4819. # We will build objects and dependencies in a subdirectory because
  4820. # it helps to detect inapplicable dependency modes. For instance
  4821. # both Tru64's cc and ICC support -MD to output dependencies as a
  4822. # side effect of compilation, but ICC will put the dependencies in
  4823. # the current directory while Tru64 will put them in the object
  4824. # directory.
  4825. mkdir sub
  4826. am_cv_CC_dependencies_compiler_type=none
  4827. if test "$am_compiler_list" = ""; then
  4828. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4829. fi
  4830. am__universal=false
  4831. case " $depcc " in #(
  4832. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4833. esac
  4834. for depmode in $am_compiler_list; do
  4835. # Setup a source with many dependencies, because some compilers
  4836. # like to wrap large dependency lists on column 80 (with \), and
  4837. # we should not choose a depcomp mode which is confused by this.
  4838. #
  4839. # We need to recreate these files for each test, as the compiler may
  4840. # overwrite some of them when testing with obscure command lines.
  4841. # This happens at least with the AIX C compiler.
  4842. : > sub/conftest.c
  4843. for i in 1 2 3 4 5 6; do
  4844. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4845. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4846. # Solaris 10 /bin/sh.
  4847. echo '/* dummy */' > sub/conftst$i.h
  4848. done
  4849. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4850. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4851. # mode. It turns out that the SunPro C++ compiler does not properly
  4852. # handle '-M -o', and we need to detect this. Also, some Intel
  4853. # versions had trouble with output in subdirs.
  4854. am__obj=sub/conftest.${OBJEXT-o}
  4855. am__minus_obj="-o $am__obj"
  4856. case $depmode in
  4857. gcc)
  4858. # This depmode causes a compiler race in universal mode.
  4859. test "$am__universal" = false || continue
  4860. ;;
  4861. nosideeffect)
  4862. # After this tag, mechanisms are not by side-effect, so they'll
  4863. # only be used when explicitly requested.
  4864. if test "x$enable_dependency_tracking" = xyes; then
  4865. continue
  4866. else
  4867. break
  4868. fi
  4869. ;;
  4870. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4871. # This compiler won't grok '-c -o', but also, the minuso test has
  4872. # not run yet. These depmodes are late enough in the game, and
  4873. # so weak that their functioning should not be impacted.
  4874. am__obj=conftest.${OBJEXT-o}
  4875. am__minus_obj=
  4876. ;;
  4877. none) break ;;
  4878. esac
  4879. if depmode=$depmode \
  4880. source=sub/conftest.c object=$am__obj \
  4881. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4882. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4883. >/dev/null 2>conftest.err &&
  4884. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4885. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4886. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4887. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4888. # icc doesn't choke on unknown options, it will just issue warnings
  4889. # or remarks (even with -Werror). So we grep stderr for any message
  4890. # that says an option was ignored or not supported.
  4891. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4892. # icc: Command line warning: ignoring option '-M'; no argument required
  4893. # The diagnosis changed in icc 8.0:
  4894. # icc: Command line remark: option '-MP' not supported
  4895. if (grep 'ignoring option' conftest.err ||
  4896. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4897. am_cv_CC_dependencies_compiler_type=$depmode
  4898. break
  4899. fi
  4900. fi
  4901. done
  4902. cd ..
  4903. rm -rf conftest.dir
  4904. else
  4905. am_cv_CC_dependencies_compiler_type=none
  4906. fi
  4907. fi
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4909. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4910. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4911. if
  4912. test "x$enable_dependency_tracking" != xno \
  4913. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4914. am__fastdepCC_TRUE=
  4915. am__fastdepCC_FALSE='#'
  4916. else
  4917. am__fastdepCC_TRUE='#'
  4918. am__fastdepCC_FALSE=
  4919. fi
  4920. ac_ext=cpp
  4921. ac_cpp='$CXXCPP $CPPFLAGS'
  4922. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4923. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4924. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4925. if test -z "$CXX"; then
  4926. if test -n "$CCC"; then
  4927. CXX=$CCC
  4928. else
  4929. if test -n "$ac_tool_prefix"; then
  4930. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4931. do
  4932. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4933. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4935. $as_echo_n "checking for $ac_word... " >&6; }
  4936. if ${ac_cv_prog_CXX+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if test -n "$CXX"; then
  4940. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4941. else
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_exec_ext in '' $ac_executable_extensions; do
  4948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4949. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4951. break 2
  4952. fi
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. fi
  4957. fi
  4958. CXX=$ac_cv_prog_CXX
  4959. if test -n "$CXX"; then
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4961. $as_echo "$CXX" >&6; }
  4962. else
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4964. $as_echo "no" >&6; }
  4965. fi
  4966. test -n "$CXX" && break
  4967. done
  4968. fi
  4969. if test -z "$CXX"; then
  4970. ac_ct_CXX=$CXX
  4971. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4972. do
  4973. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4974. set dummy $ac_prog; ac_word=$2
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4976. $as_echo_n "checking for $ac_word... " >&6; }
  4977. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. if test -n "$ac_ct_CXX"; then
  4981. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4982. else
  4983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4984. for as_dir in $PATH
  4985. do
  4986. IFS=$as_save_IFS
  4987. test -z "$as_dir" && as_dir=.
  4988. for ac_exec_ext in '' $ac_executable_extensions; do
  4989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4990. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4992. break 2
  4993. fi
  4994. done
  4995. done
  4996. IFS=$as_save_IFS
  4997. fi
  4998. fi
  4999. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5000. if test -n "$ac_ct_CXX"; then
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5002. $as_echo "$ac_ct_CXX" >&6; }
  5003. else
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5005. $as_echo "no" >&6; }
  5006. fi
  5007. test -n "$ac_ct_CXX" && break
  5008. done
  5009. if test "x$ac_ct_CXX" = x; then
  5010. CXX="g++"
  5011. else
  5012. case $cross_compiling:$ac_tool_warned in
  5013. yes:)
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5015. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5016. ac_tool_warned=yes ;;
  5017. esac
  5018. CXX=$ac_ct_CXX
  5019. fi
  5020. fi
  5021. fi
  5022. fi
  5023. # Provide some information about the compiler.
  5024. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5025. set X $ac_compile
  5026. ac_compiler=$2
  5027. for ac_option in --version -v -V -qversion; do
  5028. { { ac_try="$ac_compiler $ac_option >&5"
  5029. case "(($ac_try" in
  5030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5031. *) ac_try_echo=$ac_try;;
  5032. esac
  5033. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5034. $as_echo "$ac_try_echo"; } >&5
  5035. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5036. ac_status=$?
  5037. if test -s conftest.err; then
  5038. sed '10a\
  5039. ... rest of stderr output deleted ...
  5040. 10q' conftest.err >conftest.er1
  5041. cat conftest.er1 >&5
  5042. fi
  5043. rm -f conftest.er1 conftest.err
  5044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5045. test $ac_status = 0; }
  5046. done
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5048. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5049. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5053. /* end confdefs.h. */
  5054. int
  5055. main ()
  5056. {
  5057. #ifndef __GNUC__
  5058. choke me
  5059. #endif
  5060. ;
  5061. return 0;
  5062. }
  5063. _ACEOF
  5064. if ac_fn_cxx_try_compile "$LINENO"; then :
  5065. ac_compiler_gnu=yes
  5066. else
  5067. ac_compiler_gnu=no
  5068. fi
  5069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5070. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5071. fi
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5073. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5074. if test $ac_compiler_gnu = yes; then
  5075. GXX=yes
  5076. else
  5077. GXX=
  5078. fi
  5079. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5080. ac_save_CXXFLAGS=$CXXFLAGS
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5082. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5083. if ${ac_cv_prog_cxx_g+:} false; then :
  5084. $as_echo_n "(cached) " >&6
  5085. else
  5086. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5087. ac_cxx_werror_flag=yes
  5088. ac_cv_prog_cxx_g=no
  5089. CXXFLAGS="-g"
  5090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5091. /* end confdefs.h. */
  5092. int
  5093. main ()
  5094. {
  5095. ;
  5096. return 0;
  5097. }
  5098. _ACEOF
  5099. if ac_fn_cxx_try_compile "$LINENO"; then :
  5100. ac_cv_prog_cxx_g=yes
  5101. else
  5102. CXXFLAGS=""
  5103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h. */
  5105. int
  5106. main ()
  5107. {
  5108. ;
  5109. return 0;
  5110. }
  5111. _ACEOF
  5112. if ac_fn_cxx_try_compile "$LINENO"; then :
  5113. else
  5114. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5115. CXXFLAGS="-g"
  5116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5117. /* end confdefs.h. */
  5118. int
  5119. main ()
  5120. {
  5121. ;
  5122. return 0;
  5123. }
  5124. _ACEOF
  5125. if ac_fn_cxx_try_compile "$LINENO"; then :
  5126. ac_cv_prog_cxx_g=yes
  5127. fi
  5128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5129. fi
  5130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5131. fi
  5132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5133. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5136. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5137. if test "$ac_test_CXXFLAGS" = set; then
  5138. CXXFLAGS=$ac_save_CXXFLAGS
  5139. elif test $ac_cv_prog_cxx_g = yes; then
  5140. if test "$GXX" = yes; then
  5141. CXXFLAGS="-g -O2"
  5142. else
  5143. CXXFLAGS="-g"
  5144. fi
  5145. else
  5146. if test "$GXX" = yes; then
  5147. CXXFLAGS="-O2"
  5148. else
  5149. CXXFLAGS=
  5150. fi
  5151. fi
  5152. ac_ext=c
  5153. ac_cpp='$CPP $CPPFLAGS'
  5154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5157. depcc="$CXX" am_compiler_list=
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5159. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5160. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5164. # We make a subdir and do the tests there. Otherwise we can end up
  5165. # making bogus files that we don't know about and never remove. For
  5166. # instance it was reported that on HP-UX the gcc test will end up
  5167. # making a dummy file named 'D' -- because '-MD' means "put the output
  5168. # in D".
  5169. rm -rf conftest.dir
  5170. mkdir conftest.dir
  5171. # Copy depcomp to subdir because otherwise we won't find it if we're
  5172. # using a relative directory.
  5173. cp "$am_depcomp" conftest.dir
  5174. cd conftest.dir
  5175. # We will build objects and dependencies in a subdirectory because
  5176. # it helps to detect inapplicable dependency modes. For instance
  5177. # both Tru64's cc and ICC support -MD to output dependencies as a
  5178. # side effect of compilation, but ICC will put the dependencies in
  5179. # the current directory while Tru64 will put them in the object
  5180. # directory.
  5181. mkdir sub
  5182. am_cv_CXX_dependencies_compiler_type=none
  5183. if test "$am_compiler_list" = ""; then
  5184. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5185. fi
  5186. am__universal=false
  5187. case " $depcc " in #(
  5188. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5189. esac
  5190. for depmode in $am_compiler_list; do
  5191. # Setup a source with many dependencies, because some compilers
  5192. # like to wrap large dependency lists on column 80 (with \), and
  5193. # we should not choose a depcomp mode which is confused by this.
  5194. #
  5195. # We need to recreate these files for each test, as the compiler may
  5196. # overwrite some of them when testing with obscure command lines.
  5197. # This happens at least with the AIX C compiler.
  5198. : > sub/conftest.c
  5199. for i in 1 2 3 4 5 6; do
  5200. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5201. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5202. # Solaris 10 /bin/sh.
  5203. echo '/* dummy */' > sub/conftst$i.h
  5204. done
  5205. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5206. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5207. # mode. It turns out that the SunPro C++ compiler does not properly
  5208. # handle '-M -o', and we need to detect this. Also, some Intel
  5209. # versions had trouble with output in subdirs.
  5210. am__obj=sub/conftest.${OBJEXT-o}
  5211. am__minus_obj="-o $am__obj"
  5212. case $depmode in
  5213. gcc)
  5214. # This depmode causes a compiler race in universal mode.
  5215. test "$am__universal" = false || continue
  5216. ;;
  5217. nosideeffect)
  5218. # After this tag, mechanisms are not by side-effect, so they'll
  5219. # only be used when explicitly requested.
  5220. if test "x$enable_dependency_tracking" = xyes; then
  5221. continue
  5222. else
  5223. break
  5224. fi
  5225. ;;
  5226. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5227. # This compiler won't grok '-c -o', but also, the minuso test has
  5228. # not run yet. These depmodes are late enough in the game, and
  5229. # so weak that their functioning should not be impacted.
  5230. am__obj=conftest.${OBJEXT-o}
  5231. am__minus_obj=
  5232. ;;
  5233. none) break ;;
  5234. esac
  5235. if depmode=$depmode \
  5236. source=sub/conftest.c object=$am__obj \
  5237. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5238. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5239. >/dev/null 2>conftest.err &&
  5240. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5241. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5242. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5243. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5244. # icc doesn't choke on unknown options, it will just issue warnings
  5245. # or remarks (even with -Werror). So we grep stderr for any message
  5246. # that says an option was ignored or not supported.
  5247. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5248. # icc: Command line warning: ignoring option '-M'; no argument required
  5249. # The diagnosis changed in icc 8.0:
  5250. # icc: Command line remark: option '-MP' not supported
  5251. if (grep 'ignoring option' conftest.err ||
  5252. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5253. am_cv_CXX_dependencies_compiler_type=$depmode
  5254. break
  5255. fi
  5256. fi
  5257. done
  5258. cd ..
  5259. rm -rf conftest.dir
  5260. else
  5261. am_cv_CXX_dependencies_compiler_type=none
  5262. fi
  5263. fi
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5265. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5266. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5267. if
  5268. test "x$enable_dependency_tracking" != xno \
  5269. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5270. am__fastdepCXX_TRUE=
  5271. am__fastdepCXX_FALSE='#'
  5272. else
  5273. am__fastdepCXX_TRUE='#'
  5274. am__fastdepCXX_FALSE=
  5275. fi
  5276. if test "x$remember_set_CFLAGS" = "x"
  5277. then
  5278. if test "$CFLAGS" = "-g -O2"
  5279. then
  5280. CFLAGS="-O2"
  5281. elif test "$CFLAGS" = "-g"
  5282. then
  5283. CFLAGS=""
  5284. fi
  5285. fi
  5286. if test "x$remember_set_CXXFLAGS" = "x"
  5287. then
  5288. if test "$CXXFLAGS" = "-g -O2"
  5289. then
  5290. CXXFLAGS="-O2"
  5291. elif test "$CXXFLAGS" = "-g"
  5292. then
  5293. CXXFLAGS=""
  5294. fi
  5295. fi
  5296. # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
  5297. # Check for that case, and just disable c++ code if g++ doesn't run.
  5298. ac_ext=cpp
  5299. ac_cpp='$CXXCPP $CPPFLAGS'
  5300. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5301. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5302. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5304. /* end confdefs.h. */
  5305. int
  5306. main ()
  5307. {
  5308. ;
  5309. return 0;
  5310. }
  5311. _ACEOF
  5312. if ac_fn_cxx_try_compile "$LINENO"; then :
  5313. else
  5314. CXX=""; CXXCP=""; CXXFLAGS=""
  5315. fi
  5316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5317. ac_ext=c
  5318. ac_cpp='$CPP $CPPFLAGS'
  5319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5322. # Check for a 64-bit integer type
  5323. ac_ext=c
  5324. ac_cpp='$CPP $CPPFLAGS'
  5325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5329. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5330. # On Suns, sometimes $CPP names a directory.
  5331. if test -n "$CPP" && test -d "$CPP"; then
  5332. CPP=
  5333. fi
  5334. if test -z "$CPP"; then
  5335. if ${ac_cv_prog_CPP+:} false; then :
  5336. $as_echo_n "(cached) " >&6
  5337. else
  5338. # Double quotes because CPP needs to be expanded
  5339. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5340. do
  5341. ac_preproc_ok=false
  5342. for ac_c_preproc_warn_flag in '' yes
  5343. do
  5344. # Use a header file that comes with gcc, so configuring glibc
  5345. # with a fresh cross-compiler works.
  5346. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5347. # <limits.h> exists even on freestanding compilers.
  5348. # On the NeXT, cc -E runs the code through the compiler's parser,
  5349. # not just through cpp. "Syntax error" is here to catch this case.
  5350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5351. /* end confdefs.h. */
  5352. #ifdef __STDC__
  5353. # include <limits.h>
  5354. #else
  5355. # include <assert.h>
  5356. #endif
  5357. Syntax error
  5358. _ACEOF
  5359. if ac_fn_c_try_cpp "$LINENO"; then :
  5360. else
  5361. # Broken: fails on valid input.
  5362. continue
  5363. fi
  5364. rm -f conftest.err conftest.i conftest.$ac_ext
  5365. # OK, works on sane cases. Now check whether nonexistent headers
  5366. # can be detected and how.
  5367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5368. /* end confdefs.h. */
  5369. #include <ac_nonexistent.h>
  5370. _ACEOF
  5371. if ac_fn_c_try_cpp "$LINENO"; then :
  5372. # Broken: success on invalid input.
  5373. continue
  5374. else
  5375. # Passes both tests.
  5376. ac_preproc_ok=:
  5377. break
  5378. fi
  5379. rm -f conftest.err conftest.i conftest.$ac_ext
  5380. done
  5381. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5382. rm -f conftest.i conftest.err conftest.$ac_ext
  5383. if $ac_preproc_ok; then :
  5384. break
  5385. fi
  5386. done
  5387. ac_cv_prog_CPP=$CPP
  5388. fi
  5389. CPP=$ac_cv_prog_CPP
  5390. else
  5391. ac_cv_prog_CPP=$CPP
  5392. fi
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5394. $as_echo "$CPP" >&6; }
  5395. ac_preproc_ok=false
  5396. for ac_c_preproc_warn_flag in '' yes
  5397. do
  5398. # Use a header file that comes with gcc, so configuring glibc
  5399. # with a fresh cross-compiler works.
  5400. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5401. # <limits.h> exists even on freestanding compilers.
  5402. # On the NeXT, cc -E runs the code through the compiler's parser,
  5403. # not just through cpp. "Syntax error" is here to catch this case.
  5404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5405. /* end confdefs.h. */
  5406. #ifdef __STDC__
  5407. # include <limits.h>
  5408. #else
  5409. # include <assert.h>
  5410. #endif
  5411. Syntax error
  5412. _ACEOF
  5413. if ac_fn_c_try_cpp "$LINENO"; then :
  5414. else
  5415. # Broken: fails on valid input.
  5416. continue
  5417. fi
  5418. rm -f conftest.err conftest.i conftest.$ac_ext
  5419. # OK, works on sane cases. Now check whether nonexistent headers
  5420. # can be detected and how.
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. #include <ac_nonexistent.h>
  5424. _ACEOF
  5425. if ac_fn_c_try_cpp "$LINENO"; then :
  5426. # Broken: success on invalid input.
  5427. continue
  5428. else
  5429. # Passes both tests.
  5430. ac_preproc_ok=:
  5431. break
  5432. fi
  5433. rm -f conftest.err conftest.i conftest.$ac_ext
  5434. done
  5435. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5436. rm -f conftest.i conftest.err conftest.$ac_ext
  5437. if $ac_preproc_ok; then :
  5438. else
  5439. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5440. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5441. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5442. See \`config.log' for more details" "$LINENO" 5; }
  5443. fi
  5444. ac_ext=c
  5445. ac_cpp='$CPP $CPPFLAGS'
  5446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5450. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5451. if ${ac_cv_path_GREP+:} false; then :
  5452. $as_echo_n "(cached) " >&6
  5453. else
  5454. if test -z "$GREP"; then
  5455. ac_path_GREP_found=false
  5456. # Loop through the user's path and test for each of PROGNAME-LIST
  5457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5458. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5459. do
  5460. IFS=$as_save_IFS
  5461. test -z "$as_dir" && as_dir=.
  5462. for ac_prog in grep ggrep; do
  5463. for ac_exec_ext in '' $ac_executable_extensions; do
  5464. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5465. as_fn_executable_p "$ac_path_GREP" || continue
  5466. # Check for GNU ac_path_GREP and select it if it is found.
  5467. # Check for GNU $ac_path_GREP
  5468. case `"$ac_path_GREP" --version 2>&1` in
  5469. *GNU*)
  5470. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5471. *)
  5472. ac_count=0
  5473. $as_echo_n 0123456789 >"conftest.in"
  5474. while :
  5475. do
  5476. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5477. mv "conftest.tmp" "conftest.in"
  5478. cp "conftest.in" "conftest.nl"
  5479. $as_echo 'GREP' >> "conftest.nl"
  5480. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5481. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5482. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5483. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5484. # Best one so far, save it but keep looking for a better one
  5485. ac_cv_path_GREP="$ac_path_GREP"
  5486. ac_path_GREP_max=$ac_count
  5487. fi
  5488. # 10*(2^10) chars as input seems more than enough
  5489. test $ac_count -gt 10 && break
  5490. done
  5491. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5492. esac
  5493. $ac_path_GREP_found && break 3
  5494. done
  5495. done
  5496. done
  5497. IFS=$as_save_IFS
  5498. if test -z "$ac_cv_path_GREP"; then
  5499. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5500. fi
  5501. else
  5502. ac_cv_path_GREP=$GREP
  5503. fi
  5504. fi
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5506. $as_echo "$ac_cv_path_GREP" >&6; }
  5507. GREP="$ac_cv_path_GREP"
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5509. $as_echo_n "checking for egrep... " >&6; }
  5510. if ${ac_cv_path_EGREP+:} false; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5514. then ac_cv_path_EGREP="$GREP -E"
  5515. else
  5516. if test -z "$EGREP"; then
  5517. ac_path_EGREP_found=false
  5518. # Loop through the user's path and test for each of PROGNAME-LIST
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5521. do
  5522. IFS=$as_save_IFS
  5523. test -z "$as_dir" && as_dir=.
  5524. for ac_prog in egrep; do
  5525. for ac_exec_ext in '' $ac_executable_extensions; do
  5526. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5527. as_fn_executable_p "$ac_path_EGREP" || continue
  5528. # Check for GNU ac_path_EGREP and select it if it is found.
  5529. # Check for GNU $ac_path_EGREP
  5530. case `"$ac_path_EGREP" --version 2>&1` in
  5531. *GNU*)
  5532. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5533. *)
  5534. ac_count=0
  5535. $as_echo_n 0123456789 >"conftest.in"
  5536. while :
  5537. do
  5538. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5539. mv "conftest.tmp" "conftest.in"
  5540. cp "conftest.in" "conftest.nl"
  5541. $as_echo 'EGREP' >> "conftest.nl"
  5542. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5543. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5544. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5545. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5546. # Best one so far, save it but keep looking for a better one
  5547. ac_cv_path_EGREP="$ac_path_EGREP"
  5548. ac_path_EGREP_max=$ac_count
  5549. fi
  5550. # 10*(2^10) chars as input seems more than enough
  5551. test $ac_count -gt 10 && break
  5552. done
  5553. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5554. esac
  5555. $ac_path_EGREP_found && break 3
  5556. done
  5557. done
  5558. done
  5559. IFS=$as_save_IFS
  5560. if test -z "$ac_cv_path_EGREP"; then
  5561. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5562. fi
  5563. else
  5564. ac_cv_path_EGREP=$EGREP
  5565. fi
  5566. fi
  5567. fi
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5569. $as_echo "$ac_cv_path_EGREP" >&6; }
  5570. EGREP="$ac_cv_path_EGREP"
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5572. $as_echo_n "checking for ANSI C header files... " >&6; }
  5573. if ${ac_cv_header_stdc+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5577. /* end confdefs.h. */
  5578. #include <stdlib.h>
  5579. #include <stdarg.h>
  5580. #include <string.h>
  5581. #include <float.h>
  5582. int
  5583. main ()
  5584. {
  5585. ;
  5586. return 0;
  5587. }
  5588. _ACEOF
  5589. if ac_fn_c_try_compile "$LINENO"; then :
  5590. ac_cv_header_stdc=yes
  5591. else
  5592. ac_cv_header_stdc=no
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5595. if test $ac_cv_header_stdc = yes; then
  5596. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5598. /* end confdefs.h. */
  5599. #include <string.h>
  5600. _ACEOF
  5601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5602. $EGREP "memchr" >/dev/null 2>&1; then :
  5603. else
  5604. ac_cv_header_stdc=no
  5605. fi
  5606. rm -f conftest*
  5607. fi
  5608. if test $ac_cv_header_stdc = yes; then
  5609. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5611. /* end confdefs.h. */
  5612. #include <stdlib.h>
  5613. _ACEOF
  5614. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5615. $EGREP "free" >/dev/null 2>&1; then :
  5616. else
  5617. ac_cv_header_stdc=no
  5618. fi
  5619. rm -f conftest*
  5620. fi
  5621. if test $ac_cv_header_stdc = yes; then
  5622. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5623. if test "$cross_compiling" = yes; then :
  5624. :
  5625. else
  5626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5627. /* end confdefs.h. */
  5628. #include <ctype.h>
  5629. #include <stdlib.h>
  5630. #if ((' ' & 0x0FF) == 0x020)
  5631. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5632. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5633. #else
  5634. # define ISLOWER(c) \
  5635. (('a' <= (c) && (c) <= 'i') \
  5636. || ('j' <= (c) && (c) <= 'r') \
  5637. || ('s' <= (c) && (c) <= 'z'))
  5638. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5639. #endif
  5640. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5641. int
  5642. main ()
  5643. {
  5644. int i;
  5645. for (i = 0; i < 256; i++)
  5646. if (XOR (islower (i), ISLOWER (i))
  5647. || toupper (i) != TOUPPER (i))
  5648. return 2;
  5649. return 0;
  5650. }
  5651. _ACEOF
  5652. if ac_fn_c_try_run "$LINENO"; then :
  5653. else
  5654. ac_cv_header_stdc=no
  5655. fi
  5656. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5657. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5658. fi
  5659. fi
  5660. fi
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5662. $as_echo "$ac_cv_header_stdc" >&6; }
  5663. if test $ac_cv_header_stdc = yes; then
  5664. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5665. fi
  5666. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5667. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5668. inttypes.h stdint.h unistd.h
  5669. do :
  5670. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5671. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5672. "
  5673. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5674. cat >>confdefs.h <<_ACEOF
  5675. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5676. _ACEOF
  5677. fi
  5678. done
  5679. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  5680. case $ac_cv_c_int64_t in #(
  5681. no|yes) ;; #(
  5682. *)
  5683. cat >>confdefs.h <<_ACEOF
  5684. #define int64_t $ac_cv_c_int64_t
  5685. _ACEOF
  5686. ;;
  5687. esac
  5688. # Make sure we can run config.sub.
  5689. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5690. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5692. $as_echo_n "checking build system type... " >&6; }
  5693. if ${ac_cv_build+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. ac_build_alias=$build_alias
  5697. test "x$ac_build_alias" = x &&
  5698. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5699. test "x$ac_build_alias" = x &&
  5700. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5701. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5702. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5703. fi
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5705. $as_echo "$ac_cv_build" >&6; }
  5706. case $ac_cv_build in
  5707. *-*-*) ;;
  5708. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5709. esac
  5710. build=$ac_cv_build
  5711. ac_save_IFS=$IFS; IFS='-'
  5712. set x $ac_cv_build
  5713. shift
  5714. build_cpu=$1
  5715. build_vendor=$2
  5716. shift; shift
  5717. # Remember, the first character of IFS is used to create $*,
  5718. # except with old shells:
  5719. build_os=$*
  5720. IFS=$ac_save_IFS
  5721. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5723. $as_echo_n "checking host system type... " >&6; }
  5724. if ${ac_cv_host+:} false; then :
  5725. $as_echo_n "(cached) " >&6
  5726. else
  5727. if test "x$host_alias" = x; then
  5728. ac_cv_host=$ac_cv_build
  5729. else
  5730. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5731. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5732. fi
  5733. fi
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5735. $as_echo "$ac_cv_host" >&6; }
  5736. case $ac_cv_host in
  5737. *-*-*) ;;
  5738. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5739. esac
  5740. host=$ac_cv_host
  5741. ac_save_IFS=$IFS; IFS='-'
  5742. set x $ac_cv_host
  5743. shift
  5744. host_cpu=$1
  5745. host_vendor=$2
  5746. shift; shift
  5747. # Remember, the first character of IFS is used to create $*,
  5748. # except with old shells:
  5749. host_os=$*
  5750. IFS=$ac_save_IFS
  5751. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5752. enable_win32_dll=yes
  5753. case $host in
  5754. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  5755. if test -n "$ac_tool_prefix"; then
  5756. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5757. set dummy ${ac_tool_prefix}as; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_AS+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$AS"; then
  5764. ac_cv_prog_AS="$AS" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_AS="${ac_tool_prefix}as"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. AS=$ac_cv_prog_AS
  5783. if test -n "$AS"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5785. $as_echo "$AS" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. fi
  5791. if test -z "$ac_cv_prog_AS"; then
  5792. ac_ct_AS=$AS
  5793. # Extract the first word of "as", so it can be a program name with args.
  5794. set dummy as; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$ac_ct_AS"; then
  5801. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_ac_ct_AS="as"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5820. if test -n "$ac_ct_AS"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5822. $as_echo "$ac_ct_AS" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. if test "x$ac_ct_AS" = x; then
  5828. AS="false"
  5829. else
  5830. case $cross_compiling:$ac_tool_warned in
  5831. yes:)
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5834. ac_tool_warned=yes ;;
  5835. esac
  5836. AS=$ac_ct_AS
  5837. fi
  5838. else
  5839. AS="$ac_cv_prog_AS"
  5840. fi
  5841. if test -n "$ac_tool_prefix"; then
  5842. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5843. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$DLLTOOL"; then
  5850. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. DLLTOOL=$ac_cv_prog_DLLTOOL
  5869. if test -n "$DLLTOOL"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5871. $as_echo "$DLLTOOL" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. fi
  5877. if test -z "$ac_cv_prog_DLLTOOL"; then
  5878. ac_ct_DLLTOOL=$DLLTOOL
  5879. # Extract the first word of "dlltool", so it can be a program name with args.
  5880. set dummy dlltool; ac_word=$2
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. $as_echo_n "checking for $ac_word... " >&6; }
  5883. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. if test -n "$ac_ct_DLLTOOL"; then
  5887. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5888. else
  5889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5890. for as_dir in $PATH
  5891. do
  5892. IFS=$as_save_IFS
  5893. test -z "$as_dir" && as_dir=.
  5894. for ac_exec_ext in '' $ac_executable_extensions; do
  5895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5896. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5898. break 2
  5899. fi
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. fi
  5904. fi
  5905. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5906. if test -n "$ac_ct_DLLTOOL"; then
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5908. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5909. else
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5911. $as_echo "no" >&6; }
  5912. fi
  5913. if test "x$ac_ct_DLLTOOL" = x; then
  5914. DLLTOOL="false"
  5915. else
  5916. case $cross_compiling:$ac_tool_warned in
  5917. yes:)
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5920. ac_tool_warned=yes ;;
  5921. esac
  5922. DLLTOOL=$ac_ct_DLLTOOL
  5923. fi
  5924. else
  5925. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5926. fi
  5927. if test -n "$ac_tool_prefix"; then
  5928. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5929. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$OBJDUMP"; then
  5936. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. OBJDUMP=$ac_cv_prog_OBJDUMP
  5955. if test -n "$OBJDUMP"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5957. $as_echo "$OBJDUMP" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. fi
  5963. if test -z "$ac_cv_prog_OBJDUMP"; then
  5964. ac_ct_OBJDUMP=$OBJDUMP
  5965. # Extract the first word of "objdump", so it can be a program name with args.
  5966. set dummy objdump; ac_word=$2
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5968. $as_echo_n "checking for $ac_word... " >&6; }
  5969. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test -n "$ac_ct_OBJDUMP"; then
  5973. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5974. else
  5975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5976. for as_dir in $PATH
  5977. do
  5978. IFS=$as_save_IFS
  5979. test -z "$as_dir" && as_dir=.
  5980. for ac_exec_ext in '' $ac_executable_extensions; do
  5981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5982. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5984. break 2
  5985. fi
  5986. done
  5987. done
  5988. IFS=$as_save_IFS
  5989. fi
  5990. fi
  5991. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5992. if test -n "$ac_ct_OBJDUMP"; then
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5994. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5997. $as_echo "no" >&6; }
  5998. fi
  5999. if test "x$ac_ct_OBJDUMP" = x; then
  6000. OBJDUMP="false"
  6001. else
  6002. case $cross_compiling:$ac_tool_warned in
  6003. yes:)
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6006. ac_tool_warned=yes ;;
  6007. esac
  6008. OBJDUMP=$ac_ct_OBJDUMP
  6009. fi
  6010. else
  6011. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6012. fi
  6013. ;;
  6014. esac
  6015. test -z "$AS" && AS=as
  6016. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6017. test -z "$OBJDUMP" && OBJDUMP=objdump
  6018. case `pwd` in
  6019. *\ * | *\ *)
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6021. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6022. esac
  6023. macro_version='2.4.6.42-b88ce'
  6024. macro_revision='2.4.6.42'
  6025. ltmain=$ac_aux_dir/ltmain.sh
  6026. # Backslashify metacharacters that are still active within
  6027. # double-quoted strings.
  6028. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6029. # Same as above, but do not quote variable references.
  6030. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6031. # Sed substitution to delay expansion of an escaped shell variable in a
  6032. # double_quote_subst'ed string.
  6033. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6034. # Sed substitution to delay expansion of an escaped single quote.
  6035. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6036. # Sed substitution to avoid accidental globbing in evaled expressions
  6037. no_glob_subst='s/\*/\\\*/g'
  6038. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6039. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6040. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6042. $as_echo_n "checking how to print strings... " >&6; }
  6043. # Test print first, because it will be a builtin if present.
  6044. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6045. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6046. ECHO='print -r --'
  6047. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6048. ECHO='printf %s\n'
  6049. else
  6050. # Use this function as a fallback that always works.
  6051. func_fallback_echo ()
  6052. {
  6053. eval 'cat <<_LTECHO_EOF
  6054. $1
  6055. _LTECHO_EOF'
  6056. }
  6057. ECHO='func_fallback_echo'
  6058. fi
  6059. # func_echo_all arg...
  6060. # Invoke $ECHO with all args, space-separated.
  6061. func_echo_all ()
  6062. {
  6063. $ECHO ""
  6064. }
  6065. case $ECHO in
  6066. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6067. $as_echo "printf" >&6; } ;;
  6068. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6069. $as_echo "print -r" >&6; } ;;
  6070. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6071. $as_echo "cat" >&6; } ;;
  6072. esac
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6074. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6075. if ${ac_cv_path_SED+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6079. for ac_i in 1 2 3 4 5 6 7; do
  6080. ac_script="$ac_script$as_nl$ac_script"
  6081. done
  6082. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6083. { ac_script=; unset ac_script;}
  6084. if test -z "$SED"; then
  6085. ac_path_SED_found=false
  6086. # Loop through the user's path and test for each of PROGNAME-LIST
  6087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6088. for as_dir in $PATH
  6089. do
  6090. IFS=$as_save_IFS
  6091. test -z "$as_dir" && as_dir=.
  6092. for ac_prog in sed gsed; do
  6093. for ac_exec_ext in '' $ac_executable_extensions; do
  6094. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6095. as_fn_executable_p "$ac_path_SED" || continue
  6096. # Check for GNU ac_path_SED and select it if it is found.
  6097. # Check for GNU $ac_path_SED
  6098. case `"$ac_path_SED" --version 2>&1` in
  6099. *GNU*)
  6100. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6101. *)
  6102. ac_count=0
  6103. $as_echo_n 0123456789 >"conftest.in"
  6104. while :
  6105. do
  6106. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6107. mv "conftest.tmp" "conftest.in"
  6108. cp "conftest.in" "conftest.nl"
  6109. $as_echo '' >> "conftest.nl"
  6110. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6111. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6112. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6113. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6114. # Best one so far, save it but keep looking for a better one
  6115. ac_cv_path_SED="$ac_path_SED"
  6116. ac_path_SED_max=$ac_count
  6117. fi
  6118. # 10*(2^10) chars as input seems more than enough
  6119. test $ac_count -gt 10 && break
  6120. done
  6121. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6122. esac
  6123. $ac_path_SED_found && break 3
  6124. done
  6125. done
  6126. done
  6127. IFS=$as_save_IFS
  6128. if test -z "$ac_cv_path_SED"; then
  6129. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6130. fi
  6131. else
  6132. ac_cv_path_SED=$SED
  6133. fi
  6134. fi
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6136. $as_echo "$ac_cv_path_SED" >&6; }
  6137. SED="$ac_cv_path_SED"
  6138. rm -f conftest.sed
  6139. test -z "$SED" && SED=sed
  6140. Xsed="$SED -e 1s/^X//"
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6142. $as_echo_n "checking for fgrep... " >&6; }
  6143. if ${ac_cv_path_FGREP+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6147. then ac_cv_path_FGREP="$GREP -F"
  6148. else
  6149. if test -z "$FGREP"; then
  6150. ac_path_FGREP_found=false
  6151. # Loop through the user's path and test for each of PROGNAME-LIST
  6152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6153. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6154. do
  6155. IFS=$as_save_IFS
  6156. test -z "$as_dir" && as_dir=.
  6157. for ac_prog in fgrep; do
  6158. for ac_exec_ext in '' $ac_executable_extensions; do
  6159. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6160. as_fn_executable_p "$ac_path_FGREP" || continue
  6161. # Check for GNU ac_path_FGREP and select it if it is found.
  6162. # Check for GNU $ac_path_FGREP
  6163. case `"$ac_path_FGREP" --version 2>&1` in
  6164. *GNU*)
  6165. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6166. *)
  6167. ac_count=0
  6168. $as_echo_n 0123456789 >"conftest.in"
  6169. while :
  6170. do
  6171. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6172. mv "conftest.tmp" "conftest.in"
  6173. cp "conftest.in" "conftest.nl"
  6174. $as_echo 'FGREP' >> "conftest.nl"
  6175. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6176. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6177. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6178. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6179. # Best one so far, save it but keep looking for a better one
  6180. ac_cv_path_FGREP="$ac_path_FGREP"
  6181. ac_path_FGREP_max=$ac_count
  6182. fi
  6183. # 10*(2^10) chars as input seems more than enough
  6184. test $ac_count -gt 10 && break
  6185. done
  6186. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6187. esac
  6188. $ac_path_FGREP_found && break 3
  6189. done
  6190. done
  6191. done
  6192. IFS=$as_save_IFS
  6193. if test -z "$ac_cv_path_FGREP"; then
  6194. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6195. fi
  6196. else
  6197. ac_cv_path_FGREP=$FGREP
  6198. fi
  6199. fi
  6200. fi
  6201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6202. $as_echo "$ac_cv_path_FGREP" >&6; }
  6203. FGREP="$ac_cv_path_FGREP"
  6204. test -z "$GREP" && GREP=grep
  6205. # Check whether --with-gnu-ld was given.
  6206. if test "${with_gnu_ld+set}" = set; then :
  6207. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6208. else
  6209. with_gnu_ld=no
  6210. fi
  6211. ac_prog=ld
  6212. if test yes = "$GCC"; then
  6213. # Check if gcc -print-prog-name=ld gives a path.
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6215. $as_echo_n "checking for ld used by $CC... " >&6; }
  6216. case $host in
  6217. *-*-mingw*)
  6218. # gcc leaves a trailing carriage return, which upsets mingw
  6219. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6220. *)
  6221. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6222. esac
  6223. case $ac_prog in
  6224. # Accept absolute paths.
  6225. [\\/]* | ?:[\\/]*)
  6226. re_direlt='/[^/][^/]*/\.\./'
  6227. # Canonicalize the pathname of ld
  6228. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6229. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6230. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6231. done
  6232. test -z "$LD" && LD=$ac_prog
  6233. ;;
  6234. "")
  6235. # If it fails, then pretend we aren't using GCC.
  6236. ac_prog=ld
  6237. ;;
  6238. *)
  6239. # If it is relative, then search for the first ld in PATH.
  6240. with_gnu_ld=unknown
  6241. ;;
  6242. esac
  6243. elif test yes = "$with_gnu_ld"; then
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6245. $as_echo_n "checking for GNU ld... " >&6; }
  6246. else
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6248. $as_echo_n "checking for non-GNU ld... " >&6; }
  6249. fi
  6250. if ${lt_cv_path_LD+:} false; then :
  6251. $as_echo_n "(cached) " >&6
  6252. else
  6253. if test -z "$LD"; then
  6254. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6255. for ac_dir in $PATH; do
  6256. IFS=$lt_save_ifs
  6257. test -z "$ac_dir" && ac_dir=.
  6258. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6259. lt_cv_path_LD=$ac_dir/$ac_prog
  6260. # Check to see if the program is GNU ld. I'd rather use --version,
  6261. # but apparently some variants of GNU ld only accept -v.
  6262. # Break only if it was the GNU/non-GNU ld that we prefer.
  6263. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6264. *GNU* | *'with BFD'*)
  6265. test no != "$with_gnu_ld" && break
  6266. ;;
  6267. *)
  6268. test yes != "$with_gnu_ld" && break
  6269. ;;
  6270. esac
  6271. fi
  6272. done
  6273. IFS=$lt_save_ifs
  6274. else
  6275. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6276. fi
  6277. fi
  6278. LD=$lt_cv_path_LD
  6279. if test -n "$LD"; then
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6281. $as_echo "$LD" >&6; }
  6282. else
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6284. $as_echo "no" >&6; }
  6285. fi
  6286. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6288. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6289. if ${lt_cv_prog_gnu_ld+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6293. case `$LD -v 2>&1 </dev/null` in
  6294. *GNU* | *'with BFD'*)
  6295. lt_cv_prog_gnu_ld=yes
  6296. ;;
  6297. *)
  6298. lt_cv_prog_gnu_ld=no
  6299. ;;
  6300. esac
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6303. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6304. with_gnu_ld=$lt_cv_prog_gnu_ld
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6306. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6307. if ${lt_cv_path_NM+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test -n "$NM"; then
  6311. # Let the user override the test.
  6312. lt_cv_path_NM=$NM
  6313. else
  6314. lt_nm_to_check=${ac_tool_prefix}nm
  6315. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6316. lt_nm_to_check="$lt_nm_to_check nm"
  6317. fi
  6318. for lt_tmp_nm in $lt_nm_to_check; do
  6319. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6320. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6321. IFS=$lt_save_ifs
  6322. test -z "$ac_dir" && ac_dir=.
  6323. tmp_nm=$ac_dir/$lt_tmp_nm
  6324. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6325. # Check to see if the nm accepts a BSD-compat flag.
  6326. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6327. # nm: unknown option "B" ignored
  6328. # Tru64's nm complains that /dev/null is an invalid object file
  6329. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6330. case $build_os in
  6331. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6332. *) lt_bad_file=/dev/null ;;
  6333. esac
  6334. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6335. *$lt_bad_file* | *'Invalid file or object type'*)
  6336. lt_cv_path_NM="$tmp_nm -B"
  6337. break 2
  6338. ;;
  6339. *)
  6340. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6341. */dev/null*)
  6342. lt_cv_path_NM="$tmp_nm -p"
  6343. break 2
  6344. ;;
  6345. *)
  6346. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6347. continue # so that we can try to find one that supports BSD flags
  6348. ;;
  6349. esac
  6350. ;;
  6351. esac
  6352. fi
  6353. done
  6354. IFS=$lt_save_ifs
  6355. done
  6356. : ${lt_cv_path_NM=no}
  6357. fi
  6358. fi
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6360. $as_echo "$lt_cv_path_NM" >&6; }
  6361. if test no != "$lt_cv_path_NM"; then
  6362. NM=$lt_cv_path_NM
  6363. else
  6364. # Didn't find any BSD compatible name lister, look for dumpbin.
  6365. if test -n "$DUMPBIN"; then :
  6366. # Let the user override the test.
  6367. else
  6368. if test -n "$ac_tool_prefix"; then
  6369. for ac_prog in dumpbin "link -dump"
  6370. do
  6371. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6372. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6374. $as_echo_n "checking for $ac_word... " >&6; }
  6375. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. if test -n "$DUMPBIN"; then
  6379. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6380. else
  6381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6382. for as_dir in $PATH
  6383. do
  6384. IFS=$as_save_IFS
  6385. test -z "$as_dir" && as_dir=.
  6386. for ac_exec_ext in '' $ac_executable_extensions; do
  6387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6388. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6390. break 2
  6391. fi
  6392. done
  6393. done
  6394. IFS=$as_save_IFS
  6395. fi
  6396. fi
  6397. DUMPBIN=$ac_cv_prog_DUMPBIN
  6398. if test -n "$DUMPBIN"; then
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6400. $as_echo "$DUMPBIN" >&6; }
  6401. else
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6403. $as_echo "no" >&6; }
  6404. fi
  6405. test -n "$DUMPBIN" && break
  6406. done
  6407. fi
  6408. if test -z "$DUMPBIN"; then
  6409. ac_ct_DUMPBIN=$DUMPBIN
  6410. for ac_prog in dumpbin "link -dump"
  6411. do
  6412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6413. set dummy $ac_prog; ac_word=$2
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6415. $as_echo_n "checking for $ac_word... " >&6; }
  6416. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. if test -n "$ac_ct_DUMPBIN"; then
  6420. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6421. else
  6422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6423. for as_dir in $PATH
  6424. do
  6425. IFS=$as_save_IFS
  6426. test -z "$as_dir" && as_dir=.
  6427. for ac_exec_ext in '' $ac_executable_extensions; do
  6428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6429. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6431. break 2
  6432. fi
  6433. done
  6434. done
  6435. IFS=$as_save_IFS
  6436. fi
  6437. fi
  6438. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6439. if test -n "$ac_ct_DUMPBIN"; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6441. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6442. else
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6444. $as_echo "no" >&6; }
  6445. fi
  6446. test -n "$ac_ct_DUMPBIN" && break
  6447. done
  6448. if test "x$ac_ct_DUMPBIN" = x; then
  6449. DUMPBIN=":"
  6450. else
  6451. case $cross_compiling:$ac_tool_warned in
  6452. yes:)
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6454. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6455. ac_tool_warned=yes ;;
  6456. esac
  6457. DUMPBIN=$ac_ct_DUMPBIN
  6458. fi
  6459. fi
  6460. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6461. *COFF*)
  6462. DUMPBIN="$DUMPBIN -symbols -headers"
  6463. ;;
  6464. *)
  6465. DUMPBIN=:
  6466. ;;
  6467. esac
  6468. fi
  6469. if test : != "$DUMPBIN"; then
  6470. NM=$DUMPBIN
  6471. fi
  6472. fi
  6473. test -z "$NM" && NM=nm
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6475. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6476. if ${lt_cv_nm_interface+:} false; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. lt_cv_nm_interface="BSD nm"
  6480. echo "int some_variable = 0;" > conftest.$ac_ext
  6481. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6482. (eval "$ac_compile" 2>conftest.err)
  6483. cat conftest.err >&5
  6484. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6485. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6486. cat conftest.err >&5
  6487. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6488. cat conftest.out >&5
  6489. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6490. lt_cv_nm_interface="MS dumpbin"
  6491. fi
  6492. rm -f conftest*
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6495. $as_echo "$lt_cv_nm_interface" >&6; }
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6497. $as_echo_n "checking whether ln -s works... " >&6; }
  6498. LN_S=$as_ln_s
  6499. if test "$LN_S" = "ln -s"; then
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6501. $as_echo "yes" >&6; }
  6502. else
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6504. $as_echo "no, using $LN_S" >&6; }
  6505. fi
  6506. # find the maximum length of command line arguments
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6508. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6509. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. i=0
  6513. teststring=ABCD
  6514. case $build_os in
  6515. msdosdjgpp*)
  6516. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6517. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6518. # during glob expansion). Even if it were fixed, the result of this
  6519. # check would be larger than it should be.
  6520. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6521. ;;
  6522. gnu*)
  6523. # Under GNU Hurd, this test is not required because there is
  6524. # no limit to the length of command line arguments.
  6525. # Libtool will interpret -1 as no limit whatsoever
  6526. lt_cv_sys_max_cmd_len=-1;
  6527. ;;
  6528. cygwin* | mingw* | cegcc*)
  6529. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6530. # about 5 minutes as the teststring grows exponentially.
  6531. # Worse, since 9x/ME are not pre-emptively multitasking,
  6532. # you end up with a "frozen" computer, even though with patience
  6533. # the test eventually succeeds (with a max line length of 256k).
  6534. # Instead, let's just punt: use the minimum linelength reported by
  6535. # all of the supported platforms: 8192 (on NT/2K/XP).
  6536. lt_cv_sys_max_cmd_len=8192;
  6537. ;;
  6538. mint*)
  6539. # On MiNT this can take a long time and run out of memory.
  6540. lt_cv_sys_max_cmd_len=8192;
  6541. ;;
  6542. amigaos*)
  6543. # On AmigaOS with pdksh, this test takes hours, literally.
  6544. # So we just punt and use a minimum line length of 8192.
  6545. lt_cv_sys_max_cmd_len=8192;
  6546. ;;
  6547. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6548. # This has been around since 386BSD, at least. Likely further.
  6549. if test -x /sbin/sysctl; then
  6550. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6551. elif test -x /usr/sbin/sysctl; then
  6552. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6553. else
  6554. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6555. fi
  6556. # And add a safety zone
  6557. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6558. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6559. ;;
  6560. interix*)
  6561. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6562. lt_cv_sys_max_cmd_len=196608
  6563. ;;
  6564. os2*)
  6565. # The test takes a long time on OS/2.
  6566. lt_cv_sys_max_cmd_len=8192
  6567. ;;
  6568. osf*)
  6569. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6570. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6571. # nice to cause kernel panics so lets avoid the loop below.
  6572. # First set a reasonable default.
  6573. lt_cv_sys_max_cmd_len=16384
  6574. #
  6575. if test -x /sbin/sysconfig; then
  6576. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6577. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6578. esac
  6579. fi
  6580. ;;
  6581. sco3.2v5*)
  6582. lt_cv_sys_max_cmd_len=102400
  6583. ;;
  6584. sysv5* | sco5v6* | sysv4.2uw2*)
  6585. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6586. if test -n "$kargmax"; then
  6587. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6588. else
  6589. lt_cv_sys_max_cmd_len=32768
  6590. fi
  6591. ;;
  6592. *)
  6593. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6594. if test -n "$lt_cv_sys_max_cmd_len" && \
  6595. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6596. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6597. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6598. else
  6599. # Make teststring a little bigger before we do anything with it.
  6600. # a 1K string should be a reasonable start.
  6601. for i in 1 2 3 4 5 6 7 8; do
  6602. teststring=$teststring$teststring
  6603. done
  6604. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6605. # If test is not a shell built-in, we'll probably end up computing a
  6606. # maximum length that is only half of the actual maximum length, but
  6607. # we can't tell.
  6608. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6609. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6610. test 17 != "$i" # 1/2 MB should be enough
  6611. do
  6612. i=`expr $i + 1`
  6613. teststring=$teststring$teststring
  6614. done
  6615. # Only check the string length outside the loop.
  6616. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6617. teststring=
  6618. # Add a significant safety factor because C++ compilers can tack on
  6619. # massive amounts of additional arguments before passing them to the
  6620. # linker. It appears as though 1/2 is a usable value.
  6621. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6622. fi
  6623. ;;
  6624. esac
  6625. fi
  6626. if test -n "$lt_cv_sys_max_cmd_len"; then
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6628. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6629. else
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6631. $as_echo "none" >&6; }
  6632. fi
  6633. max_cmd_len=$lt_cv_sys_max_cmd_len
  6634. : ${CP="cp -f"}
  6635. : ${MV="mv -f"}
  6636. : ${RM="rm -f"}
  6637. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6638. lt_unset=unset
  6639. else
  6640. lt_unset=false
  6641. fi
  6642. # test EBCDIC or ASCII
  6643. case `echo X|tr X '\101'` in
  6644. A) # ASCII based system
  6645. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6646. lt_SP2NL='tr \040 \012'
  6647. lt_NL2SP='tr \015\012 \040\040'
  6648. ;;
  6649. *) # EBCDIC based system
  6650. lt_SP2NL='tr \100 \n'
  6651. lt_NL2SP='tr \r\n \100\100'
  6652. ;;
  6653. esac
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6655. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  6656. if ${lt_cv_to_host_file_cmd+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. case $host in
  6660. *-*-mingw* )
  6661. case $build in
  6662. *-*-mingw* ) # actually msys
  6663. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6664. ;;
  6665. *-*-cygwin* )
  6666. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6667. ;;
  6668. * ) # otherwise, assume *nix
  6669. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6670. ;;
  6671. esac
  6672. ;;
  6673. *-*-cygwin* )
  6674. case $build in
  6675. *-*-mingw* ) # actually msys
  6676. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6677. ;;
  6678. *-*-cygwin* )
  6679. lt_cv_to_host_file_cmd=func_convert_file_noop
  6680. ;;
  6681. * ) # otherwise, assume *nix
  6682. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6683. ;;
  6684. esac
  6685. ;;
  6686. * ) # unhandled hosts (and "normal" native builds)
  6687. lt_cv_to_host_file_cmd=func_convert_file_noop
  6688. ;;
  6689. esac
  6690. fi
  6691. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6693. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6695. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  6696. if ${lt_cv_to_tool_file_cmd+:} false; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. #assume ordinary cross tools, or native build.
  6700. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6701. case $host in
  6702. *-*-mingw* )
  6703. case $build in
  6704. *-*-mingw* ) # actually msys
  6705. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6706. ;;
  6707. esac
  6708. ;;
  6709. esac
  6710. fi
  6711. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6713. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6715. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6716. if ${lt_cv_ld_reload_flag+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. lt_cv_ld_reload_flag='-r'
  6720. fi
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6722. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6723. reload_flag=$lt_cv_ld_reload_flag
  6724. case $reload_flag in
  6725. "" | " "*) ;;
  6726. *) reload_flag=" $reload_flag" ;;
  6727. esac
  6728. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6729. case $host_os in
  6730. cygwin* | mingw* | pw32* | cegcc*)
  6731. if test yes != "$GCC"; then
  6732. reload_cmds=false
  6733. fi
  6734. ;;
  6735. darwin*)
  6736. if test yes = "$GCC"; then
  6737. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6738. else
  6739. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6740. fi
  6741. ;;
  6742. esac
  6743. if test -n "$ac_tool_prefix"; then
  6744. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6745. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6747. $as_echo_n "checking for $ac_word... " >&6; }
  6748. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. if test -n "$OBJDUMP"; then
  6752. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6753. else
  6754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6755. for as_dir in $PATH
  6756. do
  6757. IFS=$as_save_IFS
  6758. test -z "$as_dir" && as_dir=.
  6759. for ac_exec_ext in '' $ac_executable_extensions; do
  6760. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6761. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6763. break 2
  6764. fi
  6765. done
  6766. done
  6767. IFS=$as_save_IFS
  6768. fi
  6769. fi
  6770. OBJDUMP=$ac_cv_prog_OBJDUMP
  6771. if test -n "$OBJDUMP"; then
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6773. $as_echo "$OBJDUMP" >&6; }
  6774. else
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6776. $as_echo "no" >&6; }
  6777. fi
  6778. fi
  6779. if test -z "$ac_cv_prog_OBJDUMP"; then
  6780. ac_ct_OBJDUMP=$OBJDUMP
  6781. # Extract the first word of "objdump", so it can be a program name with args.
  6782. set dummy objdump; ac_word=$2
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6784. $as_echo_n "checking for $ac_word... " >&6; }
  6785. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6786. $as_echo_n "(cached) " >&6
  6787. else
  6788. if test -n "$ac_ct_OBJDUMP"; then
  6789. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6790. else
  6791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6792. for as_dir in $PATH
  6793. do
  6794. IFS=$as_save_IFS
  6795. test -z "$as_dir" && as_dir=.
  6796. for ac_exec_ext in '' $ac_executable_extensions; do
  6797. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6798. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6800. break 2
  6801. fi
  6802. done
  6803. done
  6804. IFS=$as_save_IFS
  6805. fi
  6806. fi
  6807. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6808. if test -n "$ac_ct_OBJDUMP"; then
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6810. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6811. else
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6813. $as_echo "no" >&6; }
  6814. fi
  6815. if test "x$ac_ct_OBJDUMP" = x; then
  6816. OBJDUMP="false"
  6817. else
  6818. case $cross_compiling:$ac_tool_warned in
  6819. yes:)
  6820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6821. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6822. ac_tool_warned=yes ;;
  6823. esac
  6824. OBJDUMP=$ac_ct_OBJDUMP
  6825. fi
  6826. else
  6827. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6828. fi
  6829. test -z "$OBJDUMP" && OBJDUMP=objdump
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6831. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6832. if ${lt_cv_deplibs_check_method+:} false; then :
  6833. $as_echo_n "(cached) " >&6
  6834. else
  6835. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6836. lt_cv_file_magic_test_file=
  6837. lt_cv_deplibs_check_method='unknown'
  6838. # Need to set the preceding variable on all platforms that support
  6839. # interlibrary dependencies.
  6840. # 'none' -- dependencies not supported.
  6841. # 'unknown' -- same as none, but documents that we really don't know.
  6842. # 'pass_all' -- all dependencies passed with no checks.
  6843. # 'test_compile' -- check by making test program.
  6844. # 'file_magic [[regex]]' -- check by looking for files in library path
  6845. # that responds to the $file_magic_cmd with a given extended regex.
  6846. # If you have 'file' or equivalent on your system and you're not sure
  6847. # whether 'pass_all' will *always* work, you probably want this one.
  6848. case $host_os in
  6849. aix[4-9]*)
  6850. lt_cv_deplibs_check_method=pass_all
  6851. ;;
  6852. beos*)
  6853. lt_cv_deplibs_check_method=pass_all
  6854. ;;
  6855. bsdi[45]*)
  6856. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6857. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6858. lt_cv_file_magic_test_file=/shlib/libc.so
  6859. ;;
  6860. cygwin*)
  6861. # func_win32_libid is a shell function defined in ltmain.sh
  6862. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6863. lt_cv_file_magic_cmd='func_win32_libid'
  6864. ;;
  6865. mingw* | pw32*)
  6866. # Base MSYS/MinGW do not provide the 'file' command needed by
  6867. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6868. # unless we find 'file', for example because we are cross-compiling.
  6869. if ( file / ) >/dev/null 2>&1; then
  6870. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6871. lt_cv_file_magic_cmd='func_win32_libid'
  6872. else
  6873. # Keep this pattern in sync with the one in func_win32_libid.
  6874. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6875. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6876. fi
  6877. ;;
  6878. cegcc*)
  6879. # use the weaker test based on 'objdump'. See mingw*.
  6880. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6881. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6882. ;;
  6883. darwin* | rhapsody*)
  6884. lt_cv_deplibs_check_method=pass_all
  6885. ;;
  6886. freebsd* | dragonfly*)
  6887. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6888. case $host_cpu in
  6889. i*86 )
  6890. # Not sure whether the presence of OpenBSD here was a mistake.
  6891. # Let's accept both of them until this is cleared up.
  6892. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6893. lt_cv_file_magic_cmd=/usr/bin/file
  6894. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6895. ;;
  6896. esac
  6897. else
  6898. lt_cv_deplibs_check_method=pass_all
  6899. fi
  6900. ;;
  6901. haiku*)
  6902. lt_cv_deplibs_check_method=pass_all
  6903. ;;
  6904. hpux10.20* | hpux11*)
  6905. lt_cv_file_magic_cmd=/usr/bin/file
  6906. case $host_cpu in
  6907. ia64*)
  6908. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6909. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6910. ;;
  6911. hppa*64*)
  6912. 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]'
  6913. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6914. ;;
  6915. *)
  6916. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6917. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6918. ;;
  6919. esac
  6920. ;;
  6921. interix[3-9]*)
  6922. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6923. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6924. ;;
  6925. irix5* | irix6* | nonstopux*)
  6926. case $LD in
  6927. *-32|*"-32 ") libmagic=32-bit;;
  6928. *-n32|*"-n32 ") libmagic=N32;;
  6929. *-64|*"-64 ") libmagic=64-bit;;
  6930. *) libmagic=never-match;;
  6931. esac
  6932. lt_cv_deplibs_check_method=pass_all
  6933. ;;
  6934. # This must be glibc/ELF.
  6935. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6936. lt_cv_deplibs_check_method=pass_all
  6937. ;;
  6938. netbsd*)
  6939. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6940. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6941. else
  6942. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6943. fi
  6944. ;;
  6945. newos6*)
  6946. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6947. lt_cv_file_magic_cmd=/usr/bin/file
  6948. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6949. ;;
  6950. *nto* | *qnx*)
  6951. lt_cv_deplibs_check_method=pass_all
  6952. ;;
  6953. openbsd* | bitrig*)
  6954. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6955. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6956. else
  6957. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6958. fi
  6959. ;;
  6960. osf3* | osf4* | osf5*)
  6961. lt_cv_deplibs_check_method=pass_all
  6962. ;;
  6963. rdos*)
  6964. lt_cv_deplibs_check_method=pass_all
  6965. ;;
  6966. solaris*)
  6967. lt_cv_deplibs_check_method=pass_all
  6968. ;;
  6969. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6970. lt_cv_deplibs_check_method=pass_all
  6971. ;;
  6972. sysv4 | sysv4.3*)
  6973. case $host_vendor in
  6974. motorola)
  6975. 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]'
  6976. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6977. ;;
  6978. ncr)
  6979. lt_cv_deplibs_check_method=pass_all
  6980. ;;
  6981. sequent)
  6982. lt_cv_file_magic_cmd='/bin/file'
  6983. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6984. ;;
  6985. sni)
  6986. lt_cv_file_magic_cmd='/bin/file'
  6987. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6988. lt_cv_file_magic_test_file=/lib/libc.so
  6989. ;;
  6990. siemens)
  6991. lt_cv_deplibs_check_method=pass_all
  6992. ;;
  6993. pc)
  6994. lt_cv_deplibs_check_method=pass_all
  6995. ;;
  6996. esac
  6997. ;;
  6998. tpf*)
  6999. lt_cv_deplibs_check_method=pass_all
  7000. ;;
  7001. os2*)
  7002. lt_cv_deplibs_check_method=pass_all
  7003. ;;
  7004. esac
  7005. fi
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7007. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7008. file_magic_glob=
  7009. want_nocaseglob=no
  7010. if test "$build" = "$host"; then
  7011. case $host_os in
  7012. mingw* | pw32*)
  7013. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7014. want_nocaseglob=yes
  7015. else
  7016. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7017. fi
  7018. ;;
  7019. esac
  7020. fi
  7021. file_magic_cmd=$lt_cv_file_magic_cmd
  7022. deplibs_check_method=$lt_cv_deplibs_check_method
  7023. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7024. if test -n "$ac_tool_prefix"; then
  7025. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7026. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7028. $as_echo_n "checking for $ac_word... " >&6; }
  7029. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7030. $as_echo_n "(cached) " >&6
  7031. else
  7032. if test -n "$DLLTOOL"; then
  7033. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7034. else
  7035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7036. for as_dir in $PATH
  7037. do
  7038. IFS=$as_save_IFS
  7039. test -z "$as_dir" && as_dir=.
  7040. for ac_exec_ext in '' $ac_executable_extensions; do
  7041. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7042. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7044. break 2
  7045. fi
  7046. done
  7047. done
  7048. IFS=$as_save_IFS
  7049. fi
  7050. fi
  7051. DLLTOOL=$ac_cv_prog_DLLTOOL
  7052. if test -n "$DLLTOOL"; then
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7054. $as_echo "$DLLTOOL" >&6; }
  7055. else
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7057. $as_echo "no" >&6; }
  7058. fi
  7059. fi
  7060. if test -z "$ac_cv_prog_DLLTOOL"; then
  7061. ac_ct_DLLTOOL=$DLLTOOL
  7062. # Extract the first word of "dlltool", so it can be a program name with args.
  7063. set dummy dlltool; ac_word=$2
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7065. $as_echo_n "checking for $ac_word... " >&6; }
  7066. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. if test -n "$ac_ct_DLLTOOL"; then
  7070. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7071. else
  7072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7073. for as_dir in $PATH
  7074. do
  7075. IFS=$as_save_IFS
  7076. test -z "$as_dir" && as_dir=.
  7077. for ac_exec_ext in '' $ac_executable_extensions; do
  7078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7079. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7081. break 2
  7082. fi
  7083. done
  7084. done
  7085. IFS=$as_save_IFS
  7086. fi
  7087. fi
  7088. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7089. if test -n "$ac_ct_DLLTOOL"; then
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7091. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7092. else
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7094. $as_echo "no" >&6; }
  7095. fi
  7096. if test "x$ac_ct_DLLTOOL" = x; then
  7097. DLLTOOL="false"
  7098. else
  7099. case $cross_compiling:$ac_tool_warned in
  7100. yes:)
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7102. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7103. ac_tool_warned=yes ;;
  7104. esac
  7105. DLLTOOL=$ac_ct_DLLTOOL
  7106. fi
  7107. else
  7108. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7109. fi
  7110. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7112. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7113. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7117. case $host_os in
  7118. cygwin* | mingw* | pw32* | cegcc*)
  7119. # two different shell functions defined in ltmain.sh;
  7120. # decide which one to use based on capabilities of $DLLTOOL
  7121. case `$DLLTOOL --help 2>&1` in
  7122. *--identify-strict*)
  7123. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7124. ;;
  7125. *)
  7126. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7127. ;;
  7128. esac
  7129. ;;
  7130. *)
  7131. # fallback: assume linklib IS sharedlib
  7132. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7133. ;;
  7134. esac
  7135. fi
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7137. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7138. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7139. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7140. if test -n "$ac_tool_prefix"; then
  7141. for ac_prog in ar
  7142. do
  7143. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7144. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7146. $as_echo_n "checking for $ac_word... " >&6; }
  7147. if ${ac_cv_prog_AR+:} false; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. if test -n "$AR"; then
  7151. ac_cv_prog_AR="$AR" # Let the user override the test.
  7152. else
  7153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7154. for as_dir in $PATH
  7155. do
  7156. IFS=$as_save_IFS
  7157. test -z "$as_dir" && as_dir=.
  7158. for ac_exec_ext in '' $ac_executable_extensions; do
  7159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7160. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7162. break 2
  7163. fi
  7164. done
  7165. done
  7166. IFS=$as_save_IFS
  7167. fi
  7168. fi
  7169. AR=$ac_cv_prog_AR
  7170. if test -n "$AR"; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7172. $as_echo "$AR" >&6; }
  7173. else
  7174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7175. $as_echo "no" >&6; }
  7176. fi
  7177. test -n "$AR" && break
  7178. done
  7179. fi
  7180. if test -z "$AR"; then
  7181. ac_ct_AR=$AR
  7182. for ac_prog in ar
  7183. do
  7184. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7185. set dummy $ac_prog; ac_word=$2
  7186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7187. $as_echo_n "checking for $ac_word... " >&6; }
  7188. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7189. $as_echo_n "(cached) " >&6
  7190. else
  7191. if test -n "$ac_ct_AR"; then
  7192. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7193. else
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. test -z "$as_dir" && as_dir=.
  7199. for ac_exec_ext in '' $ac_executable_extensions; do
  7200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7201. ac_cv_prog_ac_ct_AR="$ac_prog"
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7203. break 2
  7204. fi
  7205. done
  7206. done
  7207. IFS=$as_save_IFS
  7208. fi
  7209. fi
  7210. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7211. if test -n "$ac_ct_AR"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7213. $as_echo "$ac_ct_AR" >&6; }
  7214. else
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7216. $as_echo "no" >&6; }
  7217. fi
  7218. test -n "$ac_ct_AR" && break
  7219. done
  7220. if test "x$ac_ct_AR" = x; then
  7221. AR="false"
  7222. else
  7223. case $cross_compiling:$ac_tool_warned in
  7224. yes:)
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7226. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7227. ac_tool_warned=yes ;;
  7228. esac
  7229. AR=$ac_ct_AR
  7230. fi
  7231. fi
  7232. : ${AR=ar}
  7233. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  7234. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  7235. # higher priority because thats what people were doing historically (setting
  7236. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  7237. # variable obsoleted/removed.
  7238. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  7239. lt_ar_flags=$AR_FLAGS
  7240. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  7241. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7243. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7244. if ${lt_cv_ar_at_file+:} false; then :
  7245. $as_echo_n "(cached) " >&6
  7246. else
  7247. lt_cv_ar_at_file=no
  7248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7249. /* end confdefs.h. */
  7250. int
  7251. main ()
  7252. {
  7253. ;
  7254. return 0;
  7255. }
  7256. _ACEOF
  7257. if ac_fn_c_try_compile "$LINENO"; then :
  7258. echo conftest.$ac_objext > conftest.lst
  7259. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7260. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7261. (eval $lt_ar_try) 2>&5
  7262. ac_status=$?
  7263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7264. test $ac_status = 0; }
  7265. if test 0 -eq "$ac_status"; then
  7266. # Ensure the archiver fails upon bogus file names.
  7267. rm -f conftest.$ac_objext libconftest.a
  7268. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7269. (eval $lt_ar_try) 2>&5
  7270. ac_status=$?
  7271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7272. test $ac_status = 0; }
  7273. if test 0 -ne "$ac_status"; then
  7274. lt_cv_ar_at_file=@
  7275. fi
  7276. fi
  7277. rm -f conftest.* libconftest.a
  7278. fi
  7279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7280. fi
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7282. $as_echo "$lt_cv_ar_at_file" >&6; }
  7283. if test no = "$lt_cv_ar_at_file"; then
  7284. archiver_list_spec=
  7285. else
  7286. archiver_list_spec=$lt_cv_ar_at_file
  7287. fi
  7288. if test -n "$ac_tool_prefix"; then
  7289. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7290. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7292. $as_echo_n "checking for $ac_word... " >&6; }
  7293. if ${ac_cv_prog_STRIP+:} false; then :
  7294. $as_echo_n "(cached) " >&6
  7295. else
  7296. if test -n "$STRIP"; then
  7297. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7298. else
  7299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7300. for as_dir in $PATH
  7301. do
  7302. IFS=$as_save_IFS
  7303. test -z "$as_dir" && as_dir=.
  7304. for ac_exec_ext in '' $ac_executable_extensions; do
  7305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7306. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7308. break 2
  7309. fi
  7310. done
  7311. done
  7312. IFS=$as_save_IFS
  7313. fi
  7314. fi
  7315. STRIP=$ac_cv_prog_STRIP
  7316. if test -n "$STRIP"; then
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7318. $as_echo "$STRIP" >&6; }
  7319. else
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7321. $as_echo "no" >&6; }
  7322. fi
  7323. fi
  7324. if test -z "$ac_cv_prog_STRIP"; then
  7325. ac_ct_STRIP=$STRIP
  7326. # Extract the first word of "strip", so it can be a program name with args.
  7327. set dummy strip; ac_word=$2
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7329. $as_echo_n "checking for $ac_word... " >&6; }
  7330. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. if test -n "$ac_ct_STRIP"; then
  7334. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7335. else
  7336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339. IFS=$as_save_IFS
  7340. test -z "$as_dir" && as_dir=.
  7341. for ac_exec_ext in '' $ac_executable_extensions; do
  7342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7343. ac_cv_prog_ac_ct_STRIP="strip"
  7344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7345. break 2
  7346. fi
  7347. done
  7348. done
  7349. IFS=$as_save_IFS
  7350. fi
  7351. fi
  7352. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7353. if test -n "$ac_ct_STRIP"; then
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7355. $as_echo "$ac_ct_STRIP" >&6; }
  7356. else
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7358. $as_echo "no" >&6; }
  7359. fi
  7360. if test "x$ac_ct_STRIP" = x; then
  7361. STRIP=":"
  7362. else
  7363. case $cross_compiling:$ac_tool_warned in
  7364. yes:)
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7367. ac_tool_warned=yes ;;
  7368. esac
  7369. STRIP=$ac_ct_STRIP
  7370. fi
  7371. else
  7372. STRIP="$ac_cv_prog_STRIP"
  7373. fi
  7374. test -z "$STRIP" && STRIP=:
  7375. if test -n "$ac_tool_prefix"; then
  7376. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7377. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7379. $as_echo_n "checking for $ac_word... " >&6; }
  7380. if ${ac_cv_prog_RANLIB+:} false; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. if test -n "$RANLIB"; then
  7384. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7385. else
  7386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7387. for as_dir in $PATH
  7388. do
  7389. IFS=$as_save_IFS
  7390. test -z "$as_dir" && as_dir=.
  7391. for ac_exec_ext in '' $ac_executable_extensions; do
  7392. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7393. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7395. break 2
  7396. fi
  7397. done
  7398. done
  7399. IFS=$as_save_IFS
  7400. fi
  7401. fi
  7402. RANLIB=$ac_cv_prog_RANLIB
  7403. if test -n "$RANLIB"; then
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7405. $as_echo "$RANLIB" >&6; }
  7406. else
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7408. $as_echo "no" >&6; }
  7409. fi
  7410. fi
  7411. if test -z "$ac_cv_prog_RANLIB"; then
  7412. ac_ct_RANLIB=$RANLIB
  7413. # Extract the first word of "ranlib", so it can be a program name with args.
  7414. set dummy ranlib; ac_word=$2
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7416. $as_echo_n "checking for $ac_word... " >&6; }
  7417. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7418. $as_echo_n "(cached) " >&6
  7419. else
  7420. if test -n "$ac_ct_RANLIB"; then
  7421. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7422. else
  7423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7424. for as_dir in $PATH
  7425. do
  7426. IFS=$as_save_IFS
  7427. test -z "$as_dir" && as_dir=.
  7428. for ac_exec_ext in '' $ac_executable_extensions; do
  7429. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7430. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7432. break 2
  7433. fi
  7434. done
  7435. done
  7436. IFS=$as_save_IFS
  7437. fi
  7438. fi
  7439. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7440. if test -n "$ac_ct_RANLIB"; then
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7442. $as_echo "$ac_ct_RANLIB" >&6; }
  7443. else
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7445. $as_echo "no" >&6; }
  7446. fi
  7447. if test "x$ac_ct_RANLIB" = x; then
  7448. RANLIB=":"
  7449. else
  7450. case $cross_compiling:$ac_tool_warned in
  7451. yes:)
  7452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7454. ac_tool_warned=yes ;;
  7455. esac
  7456. RANLIB=$ac_ct_RANLIB
  7457. fi
  7458. else
  7459. RANLIB="$ac_cv_prog_RANLIB"
  7460. fi
  7461. test -z "$RANLIB" && RANLIB=:
  7462. # Determine commands to create old-style static archives.
  7463. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7464. old_postinstall_cmds='chmod 644 $oldlib'
  7465. old_postuninstall_cmds=
  7466. if test -n "$RANLIB"; then
  7467. case $host_os in
  7468. bitrig* | openbsd*)
  7469. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7470. ;;
  7471. *)
  7472. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7473. ;;
  7474. esac
  7475. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7476. fi
  7477. case $host_os in
  7478. darwin*)
  7479. lock_old_archive_extraction=yes ;;
  7480. *)
  7481. lock_old_archive_extraction=no ;;
  7482. esac
  7483. # If no C compiler was specified, use CC.
  7484. LTCC=${LTCC-"$CC"}
  7485. # If no C compiler flags were specified, use CFLAGS.
  7486. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7487. # Allow CC to be a program name with arguments.
  7488. compiler=$CC
  7489. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7491. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  7492. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  7493. $as_echo_n "(cached) " >&6
  7494. else
  7495. # These are sane defaults that work on at least a few old systems.
  7496. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7497. # Character class describing NM global symbol codes.
  7498. symcode='[BCDEGRST]'
  7499. # Regexp to match symbols that can be accessed directly from C.
  7500. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7501. # Define system-specific variables.
  7502. case $host_os in
  7503. aix*)
  7504. symcode='[BCDT]'
  7505. ;;
  7506. cygwin* | mingw* | pw32* | cegcc*)
  7507. symcode='[ABCDGISTW]'
  7508. ;;
  7509. hpux*)
  7510. if test ia64 = "$host_cpu"; then
  7511. symcode='[ABCDEGRST]'
  7512. fi
  7513. ;;
  7514. irix* | nonstopux*)
  7515. symcode='[BCDEGRST]'
  7516. ;;
  7517. osf*)
  7518. symcode='[BCDEGQRST]'
  7519. ;;
  7520. solaris*)
  7521. symcode='[BDRT]'
  7522. ;;
  7523. sco3.2v5*)
  7524. symcode='[DT]'
  7525. ;;
  7526. sysv4.2uw2*)
  7527. symcode='[DT]'
  7528. ;;
  7529. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7530. symcode='[ABDT]'
  7531. ;;
  7532. sysv4)
  7533. symcode='[DFNSTU]'
  7534. ;;
  7535. esac
  7536. # If we're using GNU nm, then use its standard symbol codes.
  7537. case `$NM -V 2>&1` in
  7538. *GNU* | *'with BFD'*)
  7539. symcode='[ABCDGIRSTW]' ;;
  7540. esac
  7541. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7542. # Gets list of data symbols to import.
  7543. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7544. # Adjust the below global symbol transforms to fixup imported variables.
  7545. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7546. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7547. lt_c_name_lib_hook="\
  7548. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7549. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7550. else
  7551. # Disable hooks by default.
  7552. lt_cv_sys_global_symbol_to_import=
  7553. lt_cdecl_hook=
  7554. lt_c_name_hook=
  7555. lt_c_name_lib_hook=
  7556. fi
  7557. # Transform an extracted symbol line into a proper C declaration.
  7558. # Some systems (esp. on ia64) link data and code symbols differently,
  7559. # so use this general approach.
  7560. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7561. $lt_cdecl_hook\
  7562. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7563. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7564. # Transform an extracted symbol line into symbol name and symbol address
  7565. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7566. $lt_c_name_hook\
  7567. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7568. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7569. # Transform an extracted symbol line into symbol name with lib prefix and
  7570. # symbol address.
  7571. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7572. $lt_c_name_lib_hook\
  7573. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7574. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7575. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7576. # Handle CRLF in mingw tool chain
  7577. opt_cr=
  7578. case $build_os in
  7579. mingw*)
  7580. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7581. ;;
  7582. esac
  7583. # Try without a prefix underscore, then with it.
  7584. for ac_symprfx in "" "_"; do
  7585. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7586. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7587. # Write the raw and C identifiers.
  7588. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7589. # Fake it for dumpbin and say T for any non-static function,
  7590. # D for any global variable and I for any imported variable.
  7591. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  7592. # which start with @ or ?.
  7593. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7594. " {last_section=section; section=\$ 3};"\
  7595. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7596. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7597. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7598. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7599. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7600. " \$ 0!~/External *\|/{next};"\
  7601. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7602. " {if(hide[section]) next};"\
  7603. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7604. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7605. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7606. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7607. " ' prfx=^$ac_symprfx"
  7608. else
  7609. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7610. fi
  7611. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7612. # Check to see that the pipe works correctly.
  7613. pipe_works=no
  7614. rm -f conftest*
  7615. cat > conftest.$ac_ext <<_LT_EOF
  7616. #ifdef __cplusplus
  7617. extern "C" {
  7618. #endif
  7619. char nm_test_var;
  7620. void nm_test_func(void);
  7621. void nm_test_func(void){}
  7622. #ifdef __cplusplus
  7623. }
  7624. #endif
  7625. int main(){nm_test_var='a';nm_test_func();return(0);}
  7626. _LT_EOF
  7627. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7628. (eval $ac_compile) 2>&5
  7629. ac_status=$?
  7630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7631. test $ac_status = 0; }; then
  7632. # Now try to grab the symbols.
  7633. nlist=conftest.nm
  7634. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7635. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7636. ac_status=$?
  7637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7638. test $ac_status = 0; } && test -s "$nlist"; then
  7639. # Try sorting and uniquifying the output.
  7640. if sort "$nlist" | uniq > "$nlist"T; then
  7641. mv -f "$nlist"T "$nlist"
  7642. else
  7643. rm -f "$nlist"T
  7644. fi
  7645. # Make sure that we snagged all the symbols we need.
  7646. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7647. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7648. cat <<_LT_EOF > conftest.$ac_ext
  7649. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7650. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7651. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7652. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7653. # define LT_DLSYM_CONST
  7654. #elif defined __osf__
  7655. /* This system does not cope well with relocations in const data. */
  7656. # define LT_DLSYM_CONST
  7657. #else
  7658. # define LT_DLSYM_CONST const
  7659. #endif
  7660. #ifdef __cplusplus
  7661. extern "C" {
  7662. #endif
  7663. _LT_EOF
  7664. # Now generate the symbol file.
  7665. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7666. cat <<_LT_EOF >> conftest.$ac_ext
  7667. /* The mapping between symbol names and symbols. */
  7668. LT_DLSYM_CONST struct {
  7669. const char *name;
  7670. void *address;
  7671. }
  7672. lt__PROGRAM__LTX_preloaded_symbols[] =
  7673. {
  7674. { "@PROGRAM@", (void *) 0 },
  7675. _LT_EOF
  7676. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7677. cat <<\_LT_EOF >> conftest.$ac_ext
  7678. {0, (void *) 0}
  7679. };
  7680. /* This works around a problem in FreeBSD linker */
  7681. #ifdef FREEBSD_WORKAROUND
  7682. static const void *lt_preloaded_setup() {
  7683. return lt__PROGRAM__LTX_preloaded_symbols;
  7684. }
  7685. #endif
  7686. #ifdef __cplusplus
  7687. }
  7688. #endif
  7689. _LT_EOF
  7690. # Now try linking the two files.
  7691. mv conftest.$ac_objext conftstm.$ac_objext
  7692. lt_globsym_save_LIBS=$LIBS
  7693. lt_globsym_save_CFLAGS=$CFLAGS
  7694. LIBS=conftstm.$ac_objext
  7695. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7696. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7697. (eval $ac_link) 2>&5
  7698. ac_status=$?
  7699. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7700. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7701. pipe_works=yes
  7702. fi
  7703. LIBS=$lt_globsym_save_LIBS
  7704. CFLAGS=$lt_globsym_save_CFLAGS
  7705. else
  7706. echo "cannot find nm_test_func in $nlist" >&5
  7707. fi
  7708. else
  7709. echo "cannot find nm_test_var in $nlist" >&5
  7710. fi
  7711. else
  7712. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7713. fi
  7714. else
  7715. echo "$progname: failed program was:" >&5
  7716. cat conftest.$ac_ext >&5
  7717. fi
  7718. rm -rf conftest* conftst*
  7719. # Do not use the global_symbol_pipe unless it works.
  7720. if test yes = "$pipe_works"; then
  7721. break
  7722. else
  7723. lt_cv_sys_global_symbol_pipe=
  7724. fi
  7725. done
  7726. fi
  7727. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7728. lt_cv_sys_global_symbol_to_cdecl=
  7729. fi
  7730. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7732. $as_echo "failed" >&6; }
  7733. else
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7735. $as_echo "ok" >&6; }
  7736. fi
  7737. # Response file support.
  7738. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7739. nm_file_list_spec='@'
  7740. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7741. nm_file_list_spec='@'
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7744. $as_echo_n "checking for sysroot... " >&6; }
  7745. # Check whether --with-sysroot was given.
  7746. if test "${with_sysroot+set}" = set; then :
  7747. withval=$with_sysroot;
  7748. else
  7749. with_sysroot=no
  7750. fi
  7751. lt_sysroot=
  7752. case $with_sysroot in #(
  7753. yes)
  7754. if test yes = "$GCC"; then
  7755. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7756. fi
  7757. ;; #(
  7758. /*)
  7759. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7760. ;; #(
  7761. no|'')
  7762. ;; #(
  7763. *)
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7765. $as_echo "$with_sysroot" >&6; }
  7766. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7767. ;;
  7768. esac
  7769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7770. $as_echo "${lt_sysroot:-no}" >&6; }
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7772. $as_echo_n "checking for a working dd... " >&6; }
  7773. if ${ac_cv_path_lt_DD+:} false; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. printf 0123456789abcdef0123456789abcdef >conftest.i
  7777. cat conftest.i conftest.i >conftest2.i
  7778. : ${lt_DD:=$DD}
  7779. if test -z "$lt_DD"; then
  7780. ac_path_lt_DD_found=false
  7781. # Loop through the user's path and test for each of PROGNAME-LIST
  7782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7783. for as_dir in $PATH
  7784. do
  7785. IFS=$as_save_IFS
  7786. test -z "$as_dir" && as_dir=.
  7787. for ac_prog in dd; do
  7788. for ac_exec_ext in '' $ac_executable_extensions; do
  7789. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  7790. as_fn_executable_p "$ac_path_lt_DD" || continue
  7791. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7792. cmp -s conftest.i conftest.out \
  7793. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7794. fi
  7795. $ac_path_lt_DD_found && break 3
  7796. done
  7797. done
  7798. done
  7799. IFS=$as_save_IFS
  7800. if test -z "$ac_cv_path_lt_DD"; then
  7801. :
  7802. fi
  7803. else
  7804. ac_cv_path_lt_DD=$lt_DD
  7805. fi
  7806. rm -f conftest.i conftest2.i conftest.out
  7807. fi
  7808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7809. $as_echo "$ac_cv_path_lt_DD" >&6; }
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7811. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  7812. if ${lt_cv_truncate_bin+:} false; then :
  7813. $as_echo_n "(cached) " >&6
  7814. else
  7815. printf 0123456789abcdef0123456789abcdef >conftest.i
  7816. cat conftest.i conftest.i >conftest2.i
  7817. lt_cv_truncate_bin=
  7818. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7819. cmp -s conftest.i conftest.out \
  7820. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7821. fi
  7822. rm -f conftest.i conftest2.i conftest.out
  7823. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7824. fi
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7826. $as_echo "$lt_cv_truncate_bin" >&6; }
  7827. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7828. func_cc_basename ()
  7829. {
  7830. for cc_temp in $*""; do
  7831. case $cc_temp in
  7832. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7833. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7834. \-*) ;;
  7835. *) break;;
  7836. esac
  7837. done
  7838. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7839. }
  7840. # Check whether --enable-libtool-lock was given.
  7841. if test "${enable_libtool_lock+set}" = set; then :
  7842. enableval=$enable_libtool_lock;
  7843. fi
  7844. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7845. # Some flags need to be propagated to the compiler or linker for good
  7846. # libtool support.
  7847. case $host in
  7848. ia64-*-hpux*)
  7849. # Find out what ABI is being produced by ac_compile, and set mode
  7850. # options accordingly.
  7851. echo 'int i;' > conftest.$ac_ext
  7852. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7853. (eval $ac_compile) 2>&5
  7854. ac_status=$?
  7855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7856. test $ac_status = 0; }; then
  7857. case `/usr/bin/file conftest.$ac_objext` in
  7858. *ELF-32*)
  7859. HPUX_IA64_MODE=32
  7860. ;;
  7861. *ELF-64*)
  7862. HPUX_IA64_MODE=64
  7863. ;;
  7864. esac
  7865. fi
  7866. rm -rf conftest*
  7867. ;;
  7868. *-*-irix6*)
  7869. # Find out what ABI is being produced by ac_compile, and set linker
  7870. # options accordingly.
  7871. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7872. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7873. (eval $ac_compile) 2>&5
  7874. ac_status=$?
  7875. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7876. test $ac_status = 0; }; then
  7877. if test yes = "$lt_cv_prog_gnu_ld"; then
  7878. case `/usr/bin/file conftest.$ac_objext` in
  7879. *32-bit*)
  7880. LD="${LD-ld} -melf32bsmip"
  7881. ;;
  7882. *N32*)
  7883. LD="${LD-ld} -melf32bmipn32"
  7884. ;;
  7885. *64-bit*)
  7886. LD="${LD-ld} -melf64bmip"
  7887. ;;
  7888. esac
  7889. else
  7890. case `/usr/bin/file conftest.$ac_objext` in
  7891. *32-bit*)
  7892. LD="${LD-ld} -32"
  7893. ;;
  7894. *N32*)
  7895. LD="${LD-ld} -n32"
  7896. ;;
  7897. *64-bit*)
  7898. LD="${LD-ld} -64"
  7899. ;;
  7900. esac
  7901. fi
  7902. fi
  7903. rm -rf conftest*
  7904. ;;
  7905. mips64*-*linux*)
  7906. # Find out what ABI is being produced by ac_compile, and set linker
  7907. # options accordingly.
  7908. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7909. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7910. (eval $ac_compile) 2>&5
  7911. ac_status=$?
  7912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7913. test $ac_status = 0; }; then
  7914. emul=elf
  7915. case `/usr/bin/file conftest.$ac_objext` in
  7916. *32-bit*)
  7917. emul="${emul}32"
  7918. ;;
  7919. *64-bit*)
  7920. emul="${emul}64"
  7921. ;;
  7922. esac
  7923. case `/usr/bin/file conftest.$ac_objext` in
  7924. *MSB*)
  7925. emul="${emul}btsmip"
  7926. ;;
  7927. *LSB*)
  7928. emul="${emul}ltsmip"
  7929. ;;
  7930. esac
  7931. case `/usr/bin/file conftest.$ac_objext` in
  7932. *N32*)
  7933. emul="${emul}n32"
  7934. ;;
  7935. esac
  7936. LD="${LD-ld} -m $emul"
  7937. fi
  7938. rm -rf conftest*
  7939. ;;
  7940. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7941. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7942. # Find out what ABI is being produced by ac_compile, and set linker
  7943. # options accordingly. Note that the listed cases only cover the
  7944. # situations where additional linker options are needed (such as when
  7945. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7946. # vice versa); the common cases where no linker options are needed do
  7947. # not appear in the list.
  7948. echo 'int i;' > conftest.$ac_ext
  7949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7950. (eval $ac_compile) 2>&5
  7951. ac_status=$?
  7952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7953. test $ac_status = 0; }; then
  7954. case `/usr/bin/file conftest.o` in
  7955. *32-bit*)
  7956. case $host in
  7957. x86_64-*kfreebsd*-gnu)
  7958. LD="${LD-ld} -m elf_i386_fbsd"
  7959. ;;
  7960. x86_64-*linux*)
  7961. case `/usr/bin/file conftest.o` in
  7962. *x86-64*)
  7963. LD="${LD-ld} -m elf32_x86_64"
  7964. ;;
  7965. *)
  7966. LD="${LD-ld} -m elf_i386"
  7967. ;;
  7968. esac
  7969. ;;
  7970. powerpc64le-*linux*)
  7971. LD="${LD-ld} -m elf32lppclinux"
  7972. ;;
  7973. powerpc64-*linux*)
  7974. LD="${LD-ld} -m elf32ppclinux"
  7975. ;;
  7976. s390x-*linux*)
  7977. LD="${LD-ld} -m elf_s390"
  7978. ;;
  7979. sparc64-*linux*)
  7980. LD="${LD-ld} -m elf32_sparc"
  7981. ;;
  7982. esac
  7983. ;;
  7984. *64-bit*)
  7985. case $host in
  7986. x86_64-*kfreebsd*-gnu)
  7987. LD="${LD-ld} -m elf_x86_64_fbsd"
  7988. ;;
  7989. x86_64-*linux*)
  7990. LD="${LD-ld} -m elf_x86_64"
  7991. ;;
  7992. powerpcle-*linux*)
  7993. LD="${LD-ld} -m elf64lppc"
  7994. ;;
  7995. powerpc-*linux*)
  7996. LD="${LD-ld} -m elf64ppc"
  7997. ;;
  7998. s390*-*linux*|s390*-*tpf*)
  7999. LD="${LD-ld} -m elf64_s390"
  8000. ;;
  8001. sparc*-*linux*)
  8002. LD="${LD-ld} -m elf64_sparc"
  8003. ;;
  8004. esac
  8005. ;;
  8006. esac
  8007. fi
  8008. rm -rf conftest*
  8009. ;;
  8010. *-*-sco3.2v5*)
  8011. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8012. SAVE_CFLAGS=$CFLAGS
  8013. CFLAGS="$CFLAGS -belf"
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8015. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8016. if ${lt_cv_cc_needs_belf+:} false; then :
  8017. $as_echo_n "(cached) " >&6
  8018. else
  8019. ac_ext=c
  8020. ac_cpp='$CPP $CPPFLAGS'
  8021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8025. /* end confdefs.h. */
  8026. int
  8027. main ()
  8028. {
  8029. ;
  8030. return 0;
  8031. }
  8032. _ACEOF
  8033. if ac_fn_c_try_link "$LINENO"; then :
  8034. lt_cv_cc_needs_belf=yes
  8035. else
  8036. lt_cv_cc_needs_belf=no
  8037. fi
  8038. rm -f core conftest.err conftest.$ac_objext \
  8039. conftest$ac_exeext conftest.$ac_ext
  8040. ac_ext=c
  8041. ac_cpp='$CPP $CPPFLAGS'
  8042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8047. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8048. if test yes != "$lt_cv_cc_needs_belf"; then
  8049. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8050. CFLAGS=$SAVE_CFLAGS
  8051. fi
  8052. ;;
  8053. *-*solaris*)
  8054. # Find out what ABI is being produced by ac_compile, and set linker
  8055. # options accordingly.
  8056. echo 'int i;' > conftest.$ac_ext
  8057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8058. (eval $ac_compile) 2>&5
  8059. ac_status=$?
  8060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8061. test $ac_status = 0; }; then
  8062. case `/usr/bin/file conftest.o` in
  8063. *64-bit*)
  8064. case $lt_cv_prog_gnu_ld in
  8065. yes*)
  8066. case $host in
  8067. i?86-*-solaris*|x86_64-*-solaris*)
  8068. LD="${LD-ld} -m elf_x86_64"
  8069. ;;
  8070. sparc*-*-solaris*)
  8071. LD="${LD-ld} -m elf64_sparc"
  8072. ;;
  8073. esac
  8074. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8075. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8076. LD=${LD-ld}_sol2
  8077. fi
  8078. ;;
  8079. *)
  8080. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8081. LD="${LD-ld} -64"
  8082. fi
  8083. ;;
  8084. esac
  8085. ;;
  8086. esac
  8087. fi
  8088. rm -rf conftest*
  8089. ;;
  8090. esac
  8091. need_locks=$enable_libtool_lock
  8092. if test -n "$ac_tool_prefix"; then
  8093. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8094. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8096. $as_echo_n "checking for $ac_word... " >&6; }
  8097. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8098. $as_echo_n "(cached) " >&6
  8099. else
  8100. if test -n "$MANIFEST_TOOL"; then
  8101. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8102. else
  8103. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8104. for as_dir in $PATH
  8105. do
  8106. IFS=$as_save_IFS
  8107. test -z "$as_dir" && as_dir=.
  8108. for ac_exec_ext in '' $ac_executable_extensions; do
  8109. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8110. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8111. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8112. break 2
  8113. fi
  8114. done
  8115. done
  8116. IFS=$as_save_IFS
  8117. fi
  8118. fi
  8119. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8120. if test -n "$MANIFEST_TOOL"; then
  8121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8122. $as_echo "$MANIFEST_TOOL" >&6; }
  8123. else
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8125. $as_echo "no" >&6; }
  8126. fi
  8127. fi
  8128. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8129. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8130. # Extract the first word of "mt", so it can be a program name with args.
  8131. set dummy mt; ac_word=$2
  8132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8133. $as_echo_n "checking for $ac_word... " >&6; }
  8134. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8135. $as_echo_n "(cached) " >&6
  8136. else
  8137. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8138. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8139. else
  8140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8141. for as_dir in $PATH
  8142. do
  8143. IFS=$as_save_IFS
  8144. test -z "$as_dir" && as_dir=.
  8145. for ac_exec_ext in '' $ac_executable_extensions; do
  8146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8147. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8149. break 2
  8150. fi
  8151. done
  8152. done
  8153. IFS=$as_save_IFS
  8154. fi
  8155. fi
  8156. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8157. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8159. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8160. else
  8161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8162. $as_echo "no" >&6; }
  8163. fi
  8164. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8165. MANIFEST_TOOL=":"
  8166. else
  8167. case $cross_compiling:$ac_tool_warned in
  8168. yes:)
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8170. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8171. ac_tool_warned=yes ;;
  8172. esac
  8173. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8174. fi
  8175. else
  8176. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8177. fi
  8178. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8180. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8181. if ${lt_cv_path_mainfest_tool+:} false; then :
  8182. $as_echo_n "(cached) " >&6
  8183. else
  8184. lt_cv_path_mainfest_tool=no
  8185. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8186. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8187. cat conftest.err >&5
  8188. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8189. lt_cv_path_mainfest_tool=yes
  8190. fi
  8191. rm -f conftest*
  8192. fi
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8194. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8195. if test yes != "$lt_cv_path_mainfest_tool"; then
  8196. MANIFEST_TOOL=:
  8197. fi
  8198. case $host_os in
  8199. rhapsody* | darwin*)
  8200. if test -n "$ac_tool_prefix"; then
  8201. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8202. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8204. $as_echo_n "checking for $ac_word... " >&6; }
  8205. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8206. $as_echo_n "(cached) " >&6
  8207. else
  8208. if test -n "$DSYMUTIL"; then
  8209. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8210. else
  8211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8212. for as_dir in $PATH
  8213. do
  8214. IFS=$as_save_IFS
  8215. test -z "$as_dir" && as_dir=.
  8216. for ac_exec_ext in '' $ac_executable_extensions; do
  8217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8218. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8220. break 2
  8221. fi
  8222. done
  8223. done
  8224. IFS=$as_save_IFS
  8225. fi
  8226. fi
  8227. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8228. if test -n "$DSYMUTIL"; then
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8230. $as_echo "$DSYMUTIL" >&6; }
  8231. else
  8232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8233. $as_echo "no" >&6; }
  8234. fi
  8235. fi
  8236. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8237. ac_ct_DSYMUTIL=$DSYMUTIL
  8238. # Extract the first word of "dsymutil", so it can be a program name with args.
  8239. set dummy dsymutil; ac_word=$2
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8241. $as_echo_n "checking for $ac_word... " >&6; }
  8242. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8243. $as_echo_n "(cached) " >&6
  8244. else
  8245. if test -n "$ac_ct_DSYMUTIL"; then
  8246. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8247. else
  8248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8249. for as_dir in $PATH
  8250. do
  8251. IFS=$as_save_IFS
  8252. test -z "$as_dir" && as_dir=.
  8253. for ac_exec_ext in '' $ac_executable_extensions; do
  8254. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8255. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8257. break 2
  8258. fi
  8259. done
  8260. done
  8261. IFS=$as_save_IFS
  8262. fi
  8263. fi
  8264. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8265. if test -n "$ac_ct_DSYMUTIL"; then
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8267. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8268. else
  8269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8270. $as_echo "no" >&6; }
  8271. fi
  8272. if test "x$ac_ct_DSYMUTIL" = x; then
  8273. DSYMUTIL=":"
  8274. else
  8275. case $cross_compiling:$ac_tool_warned in
  8276. yes:)
  8277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8278. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8279. ac_tool_warned=yes ;;
  8280. esac
  8281. DSYMUTIL=$ac_ct_DSYMUTIL
  8282. fi
  8283. else
  8284. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8285. fi
  8286. if test -n "$ac_tool_prefix"; then
  8287. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8288. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8290. $as_echo_n "checking for $ac_word... " >&6; }
  8291. if ${ac_cv_prog_NMEDIT+:} false; then :
  8292. $as_echo_n "(cached) " >&6
  8293. else
  8294. if test -n "$NMEDIT"; then
  8295. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8296. else
  8297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8298. for as_dir in $PATH
  8299. do
  8300. IFS=$as_save_IFS
  8301. test -z "$as_dir" && as_dir=.
  8302. for ac_exec_ext in '' $ac_executable_extensions; do
  8303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8304. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8306. break 2
  8307. fi
  8308. done
  8309. done
  8310. IFS=$as_save_IFS
  8311. fi
  8312. fi
  8313. NMEDIT=$ac_cv_prog_NMEDIT
  8314. if test -n "$NMEDIT"; then
  8315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8316. $as_echo "$NMEDIT" >&6; }
  8317. else
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8319. $as_echo "no" >&6; }
  8320. fi
  8321. fi
  8322. if test -z "$ac_cv_prog_NMEDIT"; then
  8323. ac_ct_NMEDIT=$NMEDIT
  8324. # Extract the first word of "nmedit", so it can be a program name with args.
  8325. set dummy nmedit; ac_word=$2
  8326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8327. $as_echo_n "checking for $ac_word... " >&6; }
  8328. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8329. $as_echo_n "(cached) " >&6
  8330. else
  8331. if test -n "$ac_ct_NMEDIT"; then
  8332. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8333. else
  8334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8335. for as_dir in $PATH
  8336. do
  8337. IFS=$as_save_IFS
  8338. test -z "$as_dir" && as_dir=.
  8339. for ac_exec_ext in '' $ac_executable_extensions; do
  8340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8341. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8343. break 2
  8344. fi
  8345. done
  8346. done
  8347. IFS=$as_save_IFS
  8348. fi
  8349. fi
  8350. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8351. if test -n "$ac_ct_NMEDIT"; then
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8353. $as_echo "$ac_ct_NMEDIT" >&6; }
  8354. else
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8356. $as_echo "no" >&6; }
  8357. fi
  8358. if test "x$ac_ct_NMEDIT" = x; then
  8359. NMEDIT=":"
  8360. else
  8361. case $cross_compiling:$ac_tool_warned in
  8362. yes:)
  8363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8364. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8365. ac_tool_warned=yes ;;
  8366. esac
  8367. NMEDIT=$ac_ct_NMEDIT
  8368. fi
  8369. else
  8370. NMEDIT="$ac_cv_prog_NMEDIT"
  8371. fi
  8372. if test -n "$ac_tool_prefix"; then
  8373. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8374. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8376. $as_echo_n "checking for $ac_word... " >&6; }
  8377. if ${ac_cv_prog_LIPO+:} false; then :
  8378. $as_echo_n "(cached) " >&6
  8379. else
  8380. if test -n "$LIPO"; then
  8381. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8382. else
  8383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8384. for as_dir in $PATH
  8385. do
  8386. IFS=$as_save_IFS
  8387. test -z "$as_dir" && as_dir=.
  8388. for ac_exec_ext in '' $ac_executable_extensions; do
  8389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8390. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8392. break 2
  8393. fi
  8394. done
  8395. done
  8396. IFS=$as_save_IFS
  8397. fi
  8398. fi
  8399. LIPO=$ac_cv_prog_LIPO
  8400. if test -n "$LIPO"; then
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8402. $as_echo "$LIPO" >&6; }
  8403. else
  8404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8405. $as_echo "no" >&6; }
  8406. fi
  8407. fi
  8408. if test -z "$ac_cv_prog_LIPO"; then
  8409. ac_ct_LIPO=$LIPO
  8410. # Extract the first word of "lipo", so it can be a program name with args.
  8411. set dummy lipo; ac_word=$2
  8412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8413. $as_echo_n "checking for $ac_word... " >&6; }
  8414. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8415. $as_echo_n "(cached) " >&6
  8416. else
  8417. if test -n "$ac_ct_LIPO"; then
  8418. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8419. else
  8420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8421. for as_dir in $PATH
  8422. do
  8423. IFS=$as_save_IFS
  8424. test -z "$as_dir" && as_dir=.
  8425. for ac_exec_ext in '' $ac_executable_extensions; do
  8426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8427. ac_cv_prog_ac_ct_LIPO="lipo"
  8428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8429. break 2
  8430. fi
  8431. done
  8432. done
  8433. IFS=$as_save_IFS
  8434. fi
  8435. fi
  8436. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8437. if test -n "$ac_ct_LIPO"; then
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8439. $as_echo "$ac_ct_LIPO" >&6; }
  8440. else
  8441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8442. $as_echo "no" >&6; }
  8443. fi
  8444. if test "x$ac_ct_LIPO" = x; then
  8445. LIPO=":"
  8446. else
  8447. case $cross_compiling:$ac_tool_warned in
  8448. yes:)
  8449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8451. ac_tool_warned=yes ;;
  8452. esac
  8453. LIPO=$ac_ct_LIPO
  8454. fi
  8455. else
  8456. LIPO="$ac_cv_prog_LIPO"
  8457. fi
  8458. if test -n "$ac_tool_prefix"; then
  8459. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8460. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8462. $as_echo_n "checking for $ac_word... " >&6; }
  8463. if ${ac_cv_prog_OTOOL+:} false; then :
  8464. $as_echo_n "(cached) " >&6
  8465. else
  8466. if test -n "$OTOOL"; then
  8467. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8468. else
  8469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8470. for as_dir in $PATH
  8471. do
  8472. IFS=$as_save_IFS
  8473. test -z "$as_dir" && as_dir=.
  8474. for ac_exec_ext in '' $ac_executable_extensions; do
  8475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8476. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8478. break 2
  8479. fi
  8480. done
  8481. done
  8482. IFS=$as_save_IFS
  8483. fi
  8484. fi
  8485. OTOOL=$ac_cv_prog_OTOOL
  8486. if test -n "$OTOOL"; then
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8488. $as_echo "$OTOOL" >&6; }
  8489. else
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8491. $as_echo "no" >&6; }
  8492. fi
  8493. fi
  8494. if test -z "$ac_cv_prog_OTOOL"; then
  8495. ac_ct_OTOOL=$OTOOL
  8496. # Extract the first word of "otool", so it can be a program name with args.
  8497. set dummy otool; ac_word=$2
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8499. $as_echo_n "checking for $ac_word... " >&6; }
  8500. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  8501. $as_echo_n "(cached) " >&6
  8502. else
  8503. if test -n "$ac_ct_OTOOL"; then
  8504. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8505. else
  8506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8507. for as_dir in $PATH
  8508. do
  8509. IFS=$as_save_IFS
  8510. test -z "$as_dir" && as_dir=.
  8511. for ac_exec_ext in '' $ac_executable_extensions; do
  8512. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8513. ac_cv_prog_ac_ct_OTOOL="otool"
  8514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8515. break 2
  8516. fi
  8517. done
  8518. done
  8519. IFS=$as_save_IFS
  8520. fi
  8521. fi
  8522. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8523. if test -n "$ac_ct_OTOOL"; then
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8525. $as_echo "$ac_ct_OTOOL" >&6; }
  8526. else
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8528. $as_echo "no" >&6; }
  8529. fi
  8530. if test "x$ac_ct_OTOOL" = x; then
  8531. OTOOL=":"
  8532. else
  8533. case $cross_compiling:$ac_tool_warned in
  8534. yes:)
  8535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8537. ac_tool_warned=yes ;;
  8538. esac
  8539. OTOOL=$ac_ct_OTOOL
  8540. fi
  8541. else
  8542. OTOOL="$ac_cv_prog_OTOOL"
  8543. fi
  8544. if test -n "$ac_tool_prefix"; then
  8545. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8546. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8548. $as_echo_n "checking for $ac_word... " >&6; }
  8549. if ${ac_cv_prog_OTOOL64+:} false; then :
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. if test -n "$OTOOL64"; then
  8553. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8554. else
  8555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8556. for as_dir in $PATH
  8557. do
  8558. IFS=$as_save_IFS
  8559. test -z "$as_dir" && as_dir=.
  8560. for ac_exec_ext in '' $ac_executable_extensions; do
  8561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8562. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8564. break 2
  8565. fi
  8566. done
  8567. done
  8568. IFS=$as_save_IFS
  8569. fi
  8570. fi
  8571. OTOOL64=$ac_cv_prog_OTOOL64
  8572. if test -n "$OTOOL64"; then
  8573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8574. $as_echo "$OTOOL64" >&6; }
  8575. else
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8577. $as_echo "no" >&6; }
  8578. fi
  8579. fi
  8580. if test -z "$ac_cv_prog_OTOOL64"; then
  8581. ac_ct_OTOOL64=$OTOOL64
  8582. # Extract the first word of "otool64", so it can be a program name with args.
  8583. set dummy otool64; ac_word=$2
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8585. $as_echo_n "checking for $ac_word... " >&6; }
  8586. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  8587. $as_echo_n "(cached) " >&6
  8588. else
  8589. if test -n "$ac_ct_OTOOL64"; then
  8590. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8591. else
  8592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8593. for as_dir in $PATH
  8594. do
  8595. IFS=$as_save_IFS
  8596. test -z "$as_dir" && as_dir=.
  8597. for ac_exec_ext in '' $ac_executable_extensions; do
  8598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8599. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8601. break 2
  8602. fi
  8603. done
  8604. done
  8605. IFS=$as_save_IFS
  8606. fi
  8607. fi
  8608. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8609. if test -n "$ac_ct_OTOOL64"; then
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8611. $as_echo "$ac_ct_OTOOL64" >&6; }
  8612. else
  8613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8614. $as_echo "no" >&6; }
  8615. fi
  8616. if test "x$ac_ct_OTOOL64" = x; then
  8617. OTOOL64=":"
  8618. else
  8619. case $cross_compiling:$ac_tool_warned in
  8620. yes:)
  8621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8623. ac_tool_warned=yes ;;
  8624. esac
  8625. OTOOL64=$ac_ct_OTOOL64
  8626. fi
  8627. else
  8628. OTOOL64="$ac_cv_prog_OTOOL64"
  8629. fi
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8631. $as_echo_n "checking for -single_module linker flag... " >&6; }
  8632. if ${lt_cv_apple_cc_single_mod+:} false; then :
  8633. $as_echo_n "(cached) " >&6
  8634. else
  8635. lt_cv_apple_cc_single_mod=no
  8636. if test -z "$LT_MULTI_MODULE"; then
  8637. # By default we will add the -single_module flag. You can override
  8638. # by either setting the environment variable LT_MULTI_MODULE
  8639. # non-empty at configure time, or by adding -multi_module to the
  8640. # link flags.
  8641. rm -rf libconftest.dylib*
  8642. echo "int foo(void){return 1;}" > conftest.c
  8643. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8644. -dynamiclib -Wl,-single_module conftest.c" >&5
  8645. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8646. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8647. _lt_result=$?
  8648. # If there is a non-empty error log, and "single_module"
  8649. # appears in it, assume the flag caused a linker warning
  8650. if test -s conftest.err && $GREP single_module conftest.err; then
  8651. cat conftest.err >&5
  8652. # Otherwise, if the output was created with a 0 exit code from
  8653. # the compiler, it worked.
  8654. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8655. lt_cv_apple_cc_single_mod=yes
  8656. else
  8657. cat conftest.err >&5
  8658. fi
  8659. rm -rf libconftest.dylib*
  8660. rm -f conftest.*
  8661. fi
  8662. fi
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8664. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8666. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  8667. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  8668. $as_echo_n "(cached) " >&6
  8669. else
  8670. lt_cv_ld_exported_symbols_list=no
  8671. save_LDFLAGS=$LDFLAGS
  8672. echo "_main" > conftest.sym
  8673. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8675. /* end confdefs.h. */
  8676. int
  8677. main ()
  8678. {
  8679. ;
  8680. return 0;
  8681. }
  8682. _ACEOF
  8683. if ac_fn_c_try_link "$LINENO"; then :
  8684. lt_cv_ld_exported_symbols_list=yes
  8685. else
  8686. lt_cv_ld_exported_symbols_list=no
  8687. fi
  8688. rm -f core conftest.err conftest.$ac_objext \
  8689. conftest$ac_exeext conftest.$ac_ext
  8690. LDFLAGS=$save_LDFLAGS
  8691. fi
  8692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8693. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8695. $as_echo_n "checking for -force_load linker flag... " >&6; }
  8696. if ${lt_cv_ld_force_load+:} false; then :
  8697. $as_echo_n "(cached) " >&6
  8698. else
  8699. lt_cv_ld_force_load=no
  8700. cat > conftest.c << _LT_EOF
  8701. int forced_loaded() { return 2;}
  8702. _LT_EOF
  8703. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8704. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8705. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  8706. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  8707. echo "$RANLIB libconftest.a" >&5
  8708. $RANLIB libconftest.a 2>&5
  8709. cat > conftest.c << _LT_EOF
  8710. int main() { return 0;}
  8711. _LT_EOF
  8712. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8713. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8714. _lt_result=$?
  8715. if test -s conftest.err && $GREP force_load conftest.err; then
  8716. cat conftest.err >&5
  8717. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8718. lt_cv_ld_force_load=yes
  8719. else
  8720. cat conftest.err >&5
  8721. fi
  8722. rm -f conftest.err libconftest.a conftest conftest.c
  8723. rm -rf conftest.dSYM
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8726. $as_echo "$lt_cv_ld_force_load" >&6; }
  8727. case $host_os in
  8728. rhapsody* | darwin1.[012])
  8729. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8730. darwin1.*)
  8731. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8732. darwin*) # darwin 5.x on
  8733. # if running on 10.5 or later, the deployment target defaults
  8734. # to the OS version, if on x86, and 10.4, the deployment
  8735. # target defaults to 10.4. Don't you love it?
  8736. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8737. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  8738. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8739. 10.[012][,.]*)
  8740. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8741. 10.*)
  8742. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8743. esac
  8744. ;;
  8745. esac
  8746. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8747. _lt_dar_single_mod='$single_module'
  8748. fi
  8749. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8750. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8751. else
  8752. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8753. fi
  8754. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8755. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8756. else
  8757. _lt_dsymutil=
  8758. fi
  8759. ;;
  8760. esac
  8761. # func_munge_path_list VARIABLE PATH
  8762. # -----------------------------------
  8763. # VARIABLE is name of variable containing _space_ separated list of
  8764. # directories to be munged by the contents of PATH, which is string
  8765. # having a format:
  8766. # "DIR[:DIR]:"
  8767. # string "DIR[ DIR]" will be prepended to VARIABLE
  8768. # ":DIR[:DIR]"
  8769. # string "DIR[ DIR]" will be appended to VARIABLE
  8770. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8771. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8772. # "DIRA[ DIRA]" will be appended to VARIABLE
  8773. # "DIR[:DIR]"
  8774. # VARIABLE will be replaced by "DIR[ DIR]"
  8775. func_munge_path_list ()
  8776. {
  8777. case x$2 in
  8778. x)
  8779. ;;
  8780. *:)
  8781. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8782. ;;
  8783. x:*)
  8784. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8785. ;;
  8786. *::*)
  8787. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8788. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8789. ;;
  8790. *)
  8791. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8792. ;;
  8793. esac
  8794. }
  8795. for ac_header in dlfcn.h
  8796. do :
  8797. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8798. "
  8799. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  8800. cat >>confdefs.h <<_ACEOF
  8801. #define HAVE_DLFCN_H 1
  8802. _ACEOF
  8803. fi
  8804. done
  8805. func_stripname_cnf ()
  8806. {
  8807. case $2 in
  8808. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  8809. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  8810. esac
  8811. } # func_stripname_cnf
  8812. # Set options
  8813. enable_dlopen=no
  8814. # Check whether --enable-shared was given.
  8815. if test "${enable_shared+set}" = set; then :
  8816. enableval=$enable_shared; p=${PACKAGE-default}
  8817. case $enableval in
  8818. yes) enable_shared=yes ;;
  8819. no) enable_shared=no ;;
  8820. *)
  8821. enable_shared=no
  8822. # Look at the argument we got. We use all the common list separators.
  8823. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8824. for pkg in $enableval; do
  8825. IFS=$lt_save_ifs
  8826. if test "X$pkg" = "X$p"; then
  8827. enable_shared=yes
  8828. fi
  8829. done
  8830. IFS=$lt_save_ifs
  8831. ;;
  8832. esac
  8833. else
  8834. enable_shared=yes
  8835. fi
  8836. # Check whether --enable-static was given.
  8837. if test "${enable_static+set}" = set; then :
  8838. enableval=$enable_static; p=${PACKAGE-default}
  8839. case $enableval in
  8840. yes) enable_static=yes ;;
  8841. no) enable_static=no ;;
  8842. *)
  8843. enable_static=no
  8844. # Look at the argument we got. We use all the common list separators.
  8845. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8846. for pkg in $enableval; do
  8847. IFS=$lt_save_ifs
  8848. if test "X$pkg" = "X$p"; then
  8849. enable_static=yes
  8850. fi
  8851. done
  8852. IFS=$lt_save_ifs
  8853. ;;
  8854. esac
  8855. else
  8856. enable_static=yes
  8857. fi
  8858. # Check whether --with-pic was given.
  8859. if test "${with_pic+set}" = set; then :
  8860. withval=$with_pic; lt_p=${PACKAGE-default}
  8861. case $withval in
  8862. yes|no) pic_mode=$withval ;;
  8863. *)
  8864. pic_mode=default
  8865. # Look at the argument we got. We use all the common list separators.
  8866. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8867. for lt_pkg in $withval; do
  8868. IFS=$lt_save_ifs
  8869. if test "X$lt_pkg" = "X$lt_p"; then
  8870. pic_mode=yes
  8871. fi
  8872. done
  8873. IFS=$lt_save_ifs
  8874. ;;
  8875. esac
  8876. else
  8877. pic_mode=default
  8878. fi
  8879. # Check whether --enable-fast-install was given.
  8880. if test "${enable_fast_install+set}" = set; then :
  8881. enableval=$enable_fast_install; p=${PACKAGE-default}
  8882. case $enableval in
  8883. yes) enable_fast_install=yes ;;
  8884. no) enable_fast_install=no ;;
  8885. *)
  8886. enable_fast_install=no
  8887. # Look at the argument we got. We use all the common list separators.
  8888. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8889. for pkg in $enableval; do
  8890. IFS=$lt_save_ifs
  8891. if test "X$pkg" = "X$p"; then
  8892. enable_fast_install=yes
  8893. fi
  8894. done
  8895. IFS=$lt_save_ifs
  8896. ;;
  8897. esac
  8898. else
  8899. enable_fast_install=yes
  8900. fi
  8901. shared_archive_member_spec=
  8902. case $host,$enable_shared in
  8903. power*-*-aix[5-9]*,yes)
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8905. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  8906. # Check whether --with-aix-soname was given.
  8907. if test "${with_aix_soname+set}" = set; then :
  8908. withval=$with_aix_soname; case $withval in
  8909. aix|svr4|both)
  8910. ;;
  8911. *)
  8912. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8913. ;;
  8914. esac
  8915. lt_cv_with_aix_soname=$with_aix_soname
  8916. else
  8917. if ${lt_cv_with_aix_soname+:} false; then :
  8918. $as_echo_n "(cached) " >&6
  8919. else
  8920. lt_cv_with_aix_soname=aix
  8921. fi
  8922. with_aix_soname=$lt_cv_with_aix_soname
  8923. fi
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8925. $as_echo "$with_aix_soname" >&6; }
  8926. if test aix != "$with_aix_soname"; then
  8927. # For the AIX way of multilib, we name the shared archive member
  8928. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8929. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8930. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8931. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8932. if test 64 = "${OBJECT_MODE-32}"; then
  8933. shared_archive_member_spec=shr_64
  8934. else
  8935. shared_archive_member_spec=shr
  8936. fi
  8937. fi
  8938. ;;
  8939. *)
  8940. with_aix_soname=aix
  8941. ;;
  8942. esac
  8943. # This can be used to rebuild libtool when needed
  8944. LIBTOOL_DEPS=$ltmain
  8945. # Always use our own libtool.
  8946. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8947. test -z "$LN_S" && LN_S="ln -s"
  8948. if test -n "${ZSH_VERSION+set}"; then
  8949. setopt NO_GLOB_SUBST
  8950. fi
  8951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8952. $as_echo_n "checking for objdir... " >&6; }
  8953. if ${lt_cv_objdir+:} false; then :
  8954. $as_echo_n "(cached) " >&6
  8955. else
  8956. rm -f .libs 2>/dev/null
  8957. mkdir .libs 2>/dev/null
  8958. if test -d .libs; then
  8959. lt_cv_objdir=.libs
  8960. else
  8961. # MS-DOS does not allow filenames that begin with a dot.
  8962. lt_cv_objdir=_libs
  8963. fi
  8964. rmdir .libs 2>/dev/null
  8965. fi
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8967. $as_echo "$lt_cv_objdir" >&6; }
  8968. objdir=$lt_cv_objdir
  8969. cat >>confdefs.h <<_ACEOF
  8970. #define LT_OBJDIR "$lt_cv_objdir/"
  8971. _ACEOF
  8972. case $host_os in
  8973. aix3*)
  8974. # AIX sometimes has problems with the GCC collect2 program. For some
  8975. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8976. # vanish in a puff of smoke.
  8977. if test set != "${COLLECT_NAMES+set}"; then
  8978. COLLECT_NAMES=
  8979. export COLLECT_NAMES
  8980. fi
  8981. ;;
  8982. esac
  8983. # Global variables:
  8984. ofile=libtool
  8985. can_build_shared=yes
  8986. # All known linkers require a '.a' archive for static linking (except MSVC and
  8987. # ICC, which need '.lib').
  8988. libext=a
  8989. with_gnu_ld=$lt_cv_prog_gnu_ld
  8990. old_CC=$CC
  8991. old_CFLAGS=$CFLAGS
  8992. # Set sane defaults for various variables
  8993. test -z "$CC" && CC=cc
  8994. test -z "$LTCC" && LTCC=$CC
  8995. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8996. test -z "$LD" && LD=ld
  8997. test -z "$ac_objext" && ac_objext=o
  8998. func_cc_basename $compiler
  8999. cc_basename=$func_cc_basename_result
  9000. # Only perform the check for file, if the check method requires it
  9001. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9002. case $deplibs_check_method in
  9003. file_magic*)
  9004. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9006. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9007. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9008. $as_echo_n "(cached) " >&6
  9009. else
  9010. case $MAGIC_CMD in
  9011. [\\/*] | ?:[\\/]*)
  9012. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9013. ;;
  9014. *)
  9015. lt_save_MAGIC_CMD=$MAGIC_CMD
  9016. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9017. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9018. for ac_dir in $ac_dummy; do
  9019. IFS=$lt_save_ifs
  9020. test -z "$ac_dir" && ac_dir=.
  9021. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9022. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9023. if test -n "$file_magic_test_file"; then
  9024. case $deplibs_check_method in
  9025. "file_magic "*)
  9026. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9027. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9028. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9029. $EGREP "$file_magic_regex" > /dev/null; then
  9030. :
  9031. else
  9032. cat <<_LT_EOF 1>&2
  9033. *** Warning: the command libtool uses to detect shared libraries,
  9034. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9035. *** The result is that libtool may fail to recognize shared libraries
  9036. *** as such. This will affect the creation of libtool libraries that
  9037. *** depend on shared libraries, but programs linked with such libtool
  9038. *** libraries will work regardless of this problem. Nevertheless, you
  9039. *** may want to report the problem to your system manager and/or to
  9040. *** bug-libtool@gnu.org
  9041. _LT_EOF
  9042. fi ;;
  9043. esac
  9044. fi
  9045. break
  9046. fi
  9047. done
  9048. IFS=$lt_save_ifs
  9049. MAGIC_CMD=$lt_save_MAGIC_CMD
  9050. ;;
  9051. esac
  9052. fi
  9053. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9054. if test -n "$MAGIC_CMD"; then
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9056. $as_echo "$MAGIC_CMD" >&6; }
  9057. else
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9059. $as_echo "no" >&6; }
  9060. fi
  9061. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9062. if test -n "$ac_tool_prefix"; then
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9064. $as_echo_n "checking for file... " >&6; }
  9065. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9066. $as_echo_n "(cached) " >&6
  9067. else
  9068. case $MAGIC_CMD in
  9069. [\\/*] | ?:[\\/]*)
  9070. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9071. ;;
  9072. *)
  9073. lt_save_MAGIC_CMD=$MAGIC_CMD
  9074. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9075. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9076. for ac_dir in $ac_dummy; do
  9077. IFS=$lt_save_ifs
  9078. test -z "$ac_dir" && ac_dir=.
  9079. if test -f "$ac_dir/file"; then
  9080. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  9081. if test -n "$file_magic_test_file"; then
  9082. case $deplibs_check_method in
  9083. "file_magic "*)
  9084. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9085. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9086. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9087. $EGREP "$file_magic_regex" > /dev/null; then
  9088. :
  9089. else
  9090. cat <<_LT_EOF 1>&2
  9091. *** Warning: the command libtool uses to detect shared libraries,
  9092. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9093. *** The result is that libtool may fail to recognize shared libraries
  9094. *** as such. This will affect the creation of libtool libraries that
  9095. *** depend on shared libraries, but programs linked with such libtool
  9096. *** libraries will work regardless of this problem. Nevertheless, you
  9097. *** may want to report the problem to your system manager and/or to
  9098. *** bug-libtool@gnu.org
  9099. _LT_EOF
  9100. fi ;;
  9101. esac
  9102. fi
  9103. break
  9104. fi
  9105. done
  9106. IFS=$lt_save_ifs
  9107. MAGIC_CMD=$lt_save_MAGIC_CMD
  9108. ;;
  9109. esac
  9110. fi
  9111. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9112. if test -n "$MAGIC_CMD"; then
  9113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9114. $as_echo "$MAGIC_CMD" >&6; }
  9115. else
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9117. $as_echo "no" >&6; }
  9118. fi
  9119. else
  9120. MAGIC_CMD=:
  9121. fi
  9122. fi
  9123. fi
  9124. ;;
  9125. esac
  9126. # Use C for the default configuration in the libtool script
  9127. lt_save_CC=$CC
  9128. ac_ext=c
  9129. ac_cpp='$CPP $CPPFLAGS'
  9130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9133. # Source file extension for C test sources.
  9134. ac_ext=c
  9135. # Object file extension for compiled C test sources.
  9136. objext=o
  9137. objext=$objext
  9138. # Code to be used in simple compile tests
  9139. lt_simple_compile_test_code="int some_variable = 0;"
  9140. # Code to be used in simple link tests
  9141. lt_simple_link_test_code='int main(){return(0);}'
  9142. # If no C compiler was specified, use CC.
  9143. LTCC=${LTCC-"$CC"}
  9144. # If no C compiler flags were specified, use CFLAGS.
  9145. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9146. # Allow CC to be a program name with arguments.
  9147. compiler=$CC
  9148. # Save the default compiler, since it gets overwritten when the other
  9149. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9150. compiler_DEFAULT=$CC
  9151. # save warnings/boilerplate of simple test code
  9152. ac_outfile=conftest.$ac_objext
  9153. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9154. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9155. _lt_compiler_boilerplate=`cat conftest.err`
  9156. $RM conftest*
  9157. ac_outfile=conftest.$ac_objext
  9158. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9159. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9160. _lt_linker_boilerplate=`cat conftest.err`
  9161. $RM -r conftest*
  9162. ## CAVEAT EMPTOR:
  9163. ## There is no encapsulation within the following macros, do not change
  9164. ## the running order or otherwise move them around unless you know exactly
  9165. ## what you are doing...
  9166. if test -n "$compiler"; then
  9167. lt_prog_compiler_no_builtin_flag=
  9168. if test yes = "$GCC"; then
  9169. case $cc_basename in
  9170. nvcc*)
  9171. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  9172. *)
  9173. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  9174. esac
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9176. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9177. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  9178. $as_echo_n "(cached) " >&6
  9179. else
  9180. lt_cv_prog_compiler_rtti_exceptions=no
  9181. ac_outfile=conftest.$ac_objext
  9182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9183. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  9184. # Insert the option either (1) after the last *FLAGS variable, or
  9185. # (2) before a word containing "conftest.", or (3) at the end.
  9186. # Note that $ac_compile itself does not contain backslashes and begins
  9187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9188. # The option is referenced via a variable to avoid confusing sed.
  9189. lt_compile=`echo "$ac_compile" | $SED \
  9190. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9191. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9192. -e 's:$: $lt_compiler_flag:'`
  9193. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9194. (eval "$lt_compile" 2>conftest.err)
  9195. ac_status=$?
  9196. cat conftest.err >&5
  9197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9198. if (exit $ac_status) && test -s "$ac_outfile"; then
  9199. # The compiler can only warn and ignore the option if not recognized
  9200. # So say no if there are warnings other than the usual output.
  9201. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9202. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9203. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9204. lt_cv_prog_compiler_rtti_exceptions=yes
  9205. fi
  9206. fi
  9207. $RM conftest*
  9208. fi
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9210. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9211. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  9212. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9213. else
  9214. :
  9215. fi
  9216. fi
  9217. lt_prog_compiler_wl=
  9218. lt_prog_compiler_pic=
  9219. lt_prog_compiler_static=
  9220. if test yes = "$GCC"; then
  9221. lt_prog_compiler_wl='-Wl,'
  9222. lt_prog_compiler_static='-static'
  9223. case $host_os in
  9224. aix*)
  9225. # All AIX code is PIC.
  9226. if test ia64 = "$host_cpu"; then
  9227. # AIX 5 now supports IA64 processor
  9228. lt_prog_compiler_static='-Bstatic'
  9229. fi
  9230. lt_prog_compiler_pic='-fPIC'
  9231. ;;
  9232. amigaos*)
  9233. case $host_cpu in
  9234. powerpc)
  9235. # see comment about AmigaOS4 .so support
  9236. lt_prog_compiler_pic='-fPIC'
  9237. ;;
  9238. m68k)
  9239. # FIXME: we need at least 68020 code to build shared libraries, but
  9240. # adding the '-m68020' flag to GCC prevents building anything better,
  9241. # like '-m68040'.
  9242. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9243. ;;
  9244. esac
  9245. ;;
  9246. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9247. # PIC is the default for these OSes.
  9248. ;;
  9249. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9250. # This hack is so that the source file can tell whether it is being
  9251. # built for inclusion in a dll (and should export symbols for example).
  9252. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9253. # (--disable-auto-import) libraries
  9254. lt_prog_compiler_pic='-DDLL_EXPORT'
  9255. case $host_os in
  9256. os2*)
  9257. lt_prog_compiler_static='$wl-static'
  9258. ;;
  9259. esac
  9260. ;;
  9261. darwin* | rhapsody*)
  9262. # PIC is the default on this platform
  9263. # Common symbols not allowed in MH_DYLIB files
  9264. lt_prog_compiler_pic='-fno-common'
  9265. ;;
  9266. haiku*)
  9267. # PIC is the default for Haiku.
  9268. # The "-static" flag exists, but is broken.
  9269. lt_prog_compiler_static=
  9270. ;;
  9271. hpux*)
  9272. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  9273. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  9274. # sets the default TLS model and affects inlining.
  9275. case $host_cpu in
  9276. hppa*64*)
  9277. # +Z the default
  9278. ;;
  9279. *)
  9280. lt_prog_compiler_pic='-fPIC'
  9281. ;;
  9282. esac
  9283. ;;
  9284. interix[3-9]*)
  9285. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9286. # Instead, we relocate shared libraries at runtime.
  9287. ;;
  9288. msdosdjgpp*)
  9289. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9290. # on systems that don't support them.
  9291. lt_prog_compiler_can_build_shared=no
  9292. enable_shared=no
  9293. ;;
  9294. *nto* | *qnx*)
  9295. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9296. # it will coredump.
  9297. lt_prog_compiler_pic='-fPIC -shared'
  9298. ;;
  9299. sysv4*MP*)
  9300. if test -d /usr/nec; then
  9301. lt_prog_compiler_pic=-Kconform_pic
  9302. fi
  9303. ;;
  9304. *)
  9305. lt_prog_compiler_pic='-fPIC'
  9306. ;;
  9307. esac
  9308. case $cc_basename in
  9309. nvcc*) # Cuda Compiler Driver 2.2
  9310. lt_prog_compiler_wl='-Xlinker '
  9311. if test -n "$lt_prog_compiler_pic"; then
  9312. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  9313. fi
  9314. ;;
  9315. esac
  9316. else
  9317. # PORTME Check for flag to pass linker flags through the system compiler.
  9318. case $host_os in
  9319. aix*)
  9320. lt_prog_compiler_wl='-Wl,'
  9321. if test ia64 = "$host_cpu"; then
  9322. # AIX 5 now supports IA64 processor
  9323. lt_prog_compiler_static='-Bstatic'
  9324. else
  9325. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9326. fi
  9327. ;;
  9328. darwin* | rhapsody*)
  9329. # PIC is the default on this platform
  9330. # Common symbols not allowed in MH_DYLIB files
  9331. lt_prog_compiler_pic='-fno-common'
  9332. case $cc_basename in
  9333. nagfor*)
  9334. # NAG Fortran compiler
  9335. lt_prog_compiler_wl='-Wl,-Wl,,'
  9336. lt_prog_compiler_pic='-PIC'
  9337. lt_prog_compiler_static='-Bstatic'
  9338. ;;
  9339. esac
  9340. ;;
  9341. mingw* | cygwin* | pw32* | os2* | cegcc*)
  9342. # This hack is so that the source file can tell whether it is being
  9343. # built for inclusion in a dll (and should export symbols for example).
  9344. lt_prog_compiler_pic='-DDLL_EXPORT'
  9345. case $host_os in
  9346. os2*)
  9347. lt_prog_compiler_static='$wl-static'
  9348. ;;
  9349. esac
  9350. ;;
  9351. hpux9* | hpux10* | hpux11*)
  9352. lt_prog_compiler_wl='-Wl,'
  9353. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9354. # not for PA HP-UX.
  9355. case $host_cpu in
  9356. hppa*64*|ia64*)
  9357. # +Z the default
  9358. ;;
  9359. *)
  9360. lt_prog_compiler_pic='+Z'
  9361. ;;
  9362. esac
  9363. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9364. lt_prog_compiler_static='$wl-a ${wl}archive'
  9365. ;;
  9366. irix5* | irix6* | nonstopux*)
  9367. lt_prog_compiler_wl='-Wl,'
  9368. # PIC (with -KPIC) is the default.
  9369. lt_prog_compiler_static='-non_shared'
  9370. ;;
  9371. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9372. case $cc_basename in
  9373. # old Intel for x86_64, which still supported -KPIC.
  9374. ecc*)
  9375. lt_prog_compiler_wl='-Wl,'
  9376. lt_prog_compiler_pic='-KPIC'
  9377. lt_prog_compiler_static='-static'
  9378. ;;
  9379. # icc used to be incompatible with GCC.
  9380. # ICC 10 doesn't accept -KPIC any more.
  9381. icc* | ifort*)
  9382. lt_prog_compiler_wl='-Wl,'
  9383. lt_prog_compiler_pic='-fPIC'
  9384. lt_prog_compiler_static='-static'
  9385. ;;
  9386. # Lahey Fortran 8.1.
  9387. lf95*)
  9388. lt_prog_compiler_wl='-Wl,'
  9389. lt_prog_compiler_pic='--shared'
  9390. lt_prog_compiler_static='--static'
  9391. ;;
  9392. nagfor*)
  9393. # NAG Fortran compiler
  9394. lt_prog_compiler_wl='-Wl,-Wl,,'
  9395. lt_prog_compiler_pic='-PIC'
  9396. lt_prog_compiler_static='-Bstatic'
  9397. ;;
  9398. tcc*)
  9399. # Fabrice Bellard et al's Tiny C Compiler
  9400. lt_prog_compiler_wl='-Wl,'
  9401. lt_prog_compiler_pic='-fPIC'
  9402. lt_prog_compiler_static='-static'
  9403. ;;
  9404. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9405. # Portland Group compilers (*not* the Pentium gcc compiler,
  9406. # which looks to be a dead project)
  9407. lt_prog_compiler_wl='-Wl,'
  9408. lt_prog_compiler_pic='-fpic'
  9409. lt_prog_compiler_static='-Bstatic'
  9410. ;;
  9411. ccc*)
  9412. lt_prog_compiler_wl='-Wl,'
  9413. # All Alpha code is PIC.
  9414. lt_prog_compiler_static='-non_shared'
  9415. ;;
  9416. xl* | bgxl* | bgf* | mpixl*)
  9417. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9418. lt_prog_compiler_wl='-Wl,'
  9419. lt_prog_compiler_pic='-qpic'
  9420. lt_prog_compiler_static='-qstaticlink'
  9421. ;;
  9422. *)
  9423. case `$CC -V 2>&1 | sed 5q` in
  9424. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9425. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9426. lt_prog_compiler_pic='-KPIC'
  9427. lt_prog_compiler_static='-Bstatic'
  9428. lt_prog_compiler_wl=''
  9429. ;;
  9430. *Sun\ F* | *Sun*Fortran*)
  9431. lt_prog_compiler_pic='-KPIC'
  9432. lt_prog_compiler_static='-Bstatic'
  9433. lt_prog_compiler_wl='-Qoption ld '
  9434. ;;
  9435. *Sun\ C*)
  9436. # Sun C 5.9
  9437. lt_prog_compiler_pic='-KPIC'
  9438. lt_prog_compiler_static='-Bstatic'
  9439. lt_prog_compiler_wl='-Wl,'
  9440. ;;
  9441. *Intel*\ [CF]*Compiler*)
  9442. lt_prog_compiler_wl='-Wl,'
  9443. lt_prog_compiler_pic='-fPIC'
  9444. lt_prog_compiler_static='-static'
  9445. ;;
  9446. *Portland\ Group*)
  9447. lt_prog_compiler_wl='-Wl,'
  9448. lt_prog_compiler_pic='-fpic'
  9449. lt_prog_compiler_static='-Bstatic'
  9450. ;;
  9451. esac
  9452. ;;
  9453. esac
  9454. ;;
  9455. newsos6)
  9456. lt_prog_compiler_pic='-KPIC'
  9457. lt_prog_compiler_static='-Bstatic'
  9458. ;;
  9459. *nto* | *qnx*)
  9460. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9461. # it will coredump.
  9462. lt_prog_compiler_pic='-fPIC -shared'
  9463. ;;
  9464. osf3* | osf4* | osf5*)
  9465. lt_prog_compiler_wl='-Wl,'
  9466. # All OSF/1 code is PIC.
  9467. lt_prog_compiler_static='-non_shared'
  9468. ;;
  9469. rdos*)
  9470. lt_prog_compiler_static='-non_shared'
  9471. ;;
  9472. solaris*)
  9473. lt_prog_compiler_pic='-KPIC'
  9474. lt_prog_compiler_static='-Bstatic'
  9475. case $cc_basename in
  9476. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9477. lt_prog_compiler_wl='-Qoption ld ';;
  9478. *)
  9479. lt_prog_compiler_wl='-Wl,';;
  9480. esac
  9481. ;;
  9482. sunos4*)
  9483. lt_prog_compiler_wl='-Qoption ld '
  9484. lt_prog_compiler_pic='-PIC'
  9485. lt_prog_compiler_static='-Bstatic'
  9486. ;;
  9487. sysv4 | sysv4.2uw2* | sysv4.3*)
  9488. lt_prog_compiler_wl='-Wl,'
  9489. lt_prog_compiler_pic='-KPIC'
  9490. lt_prog_compiler_static='-Bstatic'
  9491. ;;
  9492. sysv4*MP*)
  9493. if test -d /usr/nec; then
  9494. lt_prog_compiler_pic='-Kconform_pic'
  9495. lt_prog_compiler_static='-Bstatic'
  9496. fi
  9497. ;;
  9498. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9499. lt_prog_compiler_wl='-Wl,'
  9500. lt_prog_compiler_pic='-KPIC'
  9501. lt_prog_compiler_static='-Bstatic'
  9502. ;;
  9503. unicos*)
  9504. lt_prog_compiler_wl='-Wl,'
  9505. lt_prog_compiler_can_build_shared=no
  9506. ;;
  9507. uts4*)
  9508. lt_prog_compiler_pic='-pic'
  9509. lt_prog_compiler_static='-Bstatic'
  9510. ;;
  9511. *)
  9512. lt_prog_compiler_can_build_shared=no
  9513. ;;
  9514. esac
  9515. fi
  9516. case $host_os in
  9517. # For platforms that do not support PIC, -DPIC is meaningless:
  9518. *djgpp*)
  9519. lt_prog_compiler_pic=
  9520. ;;
  9521. *)
  9522. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9523. ;;
  9524. esac
  9525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9526. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9527. if ${lt_cv_prog_compiler_pic+:} false; then :
  9528. $as_echo_n "(cached) " >&6
  9529. else
  9530. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9531. fi
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9533. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  9534. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9535. #
  9536. # Check to make sure the PIC flag actually works.
  9537. #
  9538. if test -n "$lt_prog_compiler_pic"; then
  9539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9540. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9541. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  9542. $as_echo_n "(cached) " >&6
  9543. else
  9544. lt_cv_prog_compiler_pic_works=no
  9545. ac_outfile=conftest.$ac_objext
  9546. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9547. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9548. # Insert the option either (1) after the last *FLAGS variable, or
  9549. # (2) before a word containing "conftest.", or (3) at the end.
  9550. # Note that $ac_compile itself does not contain backslashes and begins
  9551. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9552. # The option is referenced via a variable to avoid confusing sed.
  9553. lt_compile=`echo "$ac_compile" | $SED \
  9554. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9555. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9556. -e 's:$: $lt_compiler_flag:'`
  9557. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9558. (eval "$lt_compile" 2>conftest.err)
  9559. ac_status=$?
  9560. cat conftest.err >&5
  9561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9562. if (exit $ac_status) && test -s "$ac_outfile"; then
  9563. # The compiler can only warn and ignore the option if not recognized
  9564. # So say no if there are warnings other than the usual output.
  9565. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9566. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9567. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9568. lt_cv_prog_compiler_pic_works=yes
  9569. fi
  9570. fi
  9571. $RM conftest*
  9572. fi
  9573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9574. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  9575. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9576. case $lt_prog_compiler_pic in
  9577. "" | " "*) ;;
  9578. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9579. esac
  9580. else
  9581. lt_prog_compiler_pic=
  9582. lt_prog_compiler_can_build_shared=no
  9583. fi
  9584. fi
  9585. #
  9586. # Check to make sure the static flag actually works.
  9587. #
  9588. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9590. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9591. if ${lt_cv_prog_compiler_static_works+:} false; then :
  9592. $as_echo_n "(cached) " >&6
  9593. else
  9594. lt_cv_prog_compiler_static_works=no
  9595. save_LDFLAGS=$LDFLAGS
  9596. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9597. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9598. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9599. # The linker can only warn and ignore the option if not recognized
  9600. # So say no if there are warnings
  9601. if test -s conftest.err; then
  9602. # Append any errors to the config.log.
  9603. cat conftest.err 1>&5
  9604. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9605. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9606. if diff conftest.exp conftest.er2 >/dev/null; then
  9607. lt_cv_prog_compiler_static_works=yes
  9608. fi
  9609. else
  9610. lt_cv_prog_compiler_static_works=yes
  9611. fi
  9612. fi
  9613. $RM -r conftest*
  9614. LDFLAGS=$save_LDFLAGS
  9615. fi
  9616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9617. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  9618. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9619. :
  9620. else
  9621. lt_prog_compiler_static=
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9624. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9625. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9626. $as_echo_n "(cached) " >&6
  9627. else
  9628. lt_cv_prog_compiler_c_o=no
  9629. $RM -r conftest 2>/dev/null
  9630. mkdir conftest
  9631. cd conftest
  9632. mkdir out
  9633. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9634. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9635. # Insert the option either (1) after the last *FLAGS variable, or
  9636. # (2) before a word containing "conftest.", or (3) at the end.
  9637. # Note that $ac_compile itself does not contain backslashes and begins
  9638. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9639. lt_compile=`echo "$ac_compile" | $SED \
  9640. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9641. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9642. -e 's:$: $lt_compiler_flag:'`
  9643. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9644. (eval "$lt_compile" 2>out/conftest.err)
  9645. ac_status=$?
  9646. cat out/conftest.err >&5
  9647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9648. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9649. then
  9650. # The compiler can only warn and ignore the option if not recognized
  9651. # So say no if there are warnings
  9652. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9653. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9654. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9655. lt_cv_prog_compiler_c_o=yes
  9656. fi
  9657. fi
  9658. chmod u+w . 2>&5
  9659. $RM conftest*
  9660. # SGI C++ compiler will create directory out/ii_files/ for
  9661. # template instantiation
  9662. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9663. $RM out/* && rmdir out
  9664. cd ..
  9665. $RM -r conftest
  9666. $RM conftest*
  9667. fi
  9668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9669. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9671. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9672. if ${lt_cv_prog_compiler_c_o+:} false; then :
  9673. $as_echo_n "(cached) " >&6
  9674. else
  9675. lt_cv_prog_compiler_c_o=no
  9676. $RM -r conftest 2>/dev/null
  9677. mkdir conftest
  9678. cd conftest
  9679. mkdir out
  9680. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9681. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9682. # Insert the option either (1) after the last *FLAGS variable, or
  9683. # (2) before a word containing "conftest.", or (3) at the end.
  9684. # Note that $ac_compile itself does not contain backslashes and begins
  9685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9686. lt_compile=`echo "$ac_compile" | $SED \
  9687. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9688. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9689. -e 's:$: $lt_compiler_flag:'`
  9690. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9691. (eval "$lt_compile" 2>out/conftest.err)
  9692. ac_status=$?
  9693. cat out/conftest.err >&5
  9694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9695. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9696. then
  9697. # The compiler can only warn and ignore the option if not recognized
  9698. # So say no if there are warnings
  9699. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9700. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9701. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9702. lt_cv_prog_compiler_c_o=yes
  9703. fi
  9704. fi
  9705. chmod u+w . 2>&5
  9706. $RM conftest*
  9707. # SGI C++ compiler will create directory out/ii_files/ for
  9708. # template instantiation
  9709. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9710. $RM out/* && rmdir out
  9711. cd ..
  9712. $RM -r conftest
  9713. $RM conftest*
  9714. fi
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9716. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9717. hard_links=nottested
  9718. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9719. # do not overwrite the value of need_locks provided by the user
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9721. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9722. hard_links=yes
  9723. $RM conftest*
  9724. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9725. touch conftest.a
  9726. ln conftest.a conftest.b 2>&5 || hard_links=no
  9727. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9729. $as_echo "$hard_links" >&6; }
  9730. if test no = "$hard_links"; then
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9732. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9733. need_locks=warn
  9734. fi
  9735. else
  9736. need_locks=no
  9737. fi
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9739. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9740. runpath_var=
  9741. allow_undefined_flag=
  9742. always_export_symbols=no
  9743. archive_cmds=
  9744. archive_expsym_cmds=
  9745. compiler_needs_object=no
  9746. enable_shared_with_static_runtimes=no
  9747. export_dynamic_flag_spec=
  9748. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9749. hardcode_automatic=no
  9750. hardcode_direct=no
  9751. hardcode_direct_absolute=no
  9752. hardcode_libdir_flag_spec=
  9753. hardcode_libdir_separator=
  9754. hardcode_minus_L=no
  9755. hardcode_shlibpath_var=unsupported
  9756. inherit_rpath=no
  9757. link_all_deplibs=unknown
  9758. module_cmds=
  9759. module_expsym_cmds=
  9760. old_archive_from_new_cmds=
  9761. old_archive_from_expsyms_cmds=
  9762. thread_safe_flag_spec=
  9763. whole_archive_flag_spec=
  9764. # include_expsyms should be a list of space-separated symbols to be *always*
  9765. # included in the symbol list
  9766. include_expsyms=
  9767. # exclude_expsyms can be an extended regexp of symbols to exclude
  9768. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9769. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9770. # as well as any symbol that contains 'd'.
  9771. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9772. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9773. # platforms (ab)use it in PIC code, but their linkers get confused if
  9774. # the symbol is explicitly referenced. Since portable code cannot
  9775. # rely on this symbol name, it's probably fine to never include it in
  9776. # preloaded symbol tables.
  9777. # Exclude shared library initialization/finalization symbols.
  9778. extract_expsyms_cmds=
  9779. case $host_os in
  9780. cygwin* | mingw* | pw32* | cegcc*)
  9781. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9782. # When not using gcc, we currently assume that we are using
  9783. # Microsoft Visual C++ or Intel C++ Compiler.
  9784. if test yes != "$GCC"; then
  9785. with_gnu_ld=no
  9786. fi
  9787. ;;
  9788. interix*)
  9789. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9790. with_gnu_ld=yes
  9791. ;;
  9792. openbsd* | bitrig*)
  9793. with_gnu_ld=no
  9794. ;;
  9795. esac
  9796. ld_shlibs=yes
  9797. # On some targets, GNU ld is compatible enough with the native linker
  9798. # that we're better off using the native interface for both.
  9799. lt_use_gnu_ld_interface=no
  9800. if test yes = "$with_gnu_ld"; then
  9801. case $host_os in
  9802. aix*)
  9803. # The AIX port of GNU ld has always aspired to compatibility
  9804. # with the native linker. However, as the warning in the GNU ld
  9805. # block says, versions before 2.19.5* couldn't really create working
  9806. # shared libraries, regardless of the interface used.
  9807. case `$LD -v 2>&1` in
  9808. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9809. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9810. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9811. *)
  9812. lt_use_gnu_ld_interface=yes
  9813. ;;
  9814. esac
  9815. ;;
  9816. *)
  9817. lt_use_gnu_ld_interface=yes
  9818. ;;
  9819. esac
  9820. fi
  9821. if test yes = "$lt_use_gnu_ld_interface"; then
  9822. # If archive_cmds runs LD, not CC, wlarc should be empty
  9823. wlarc='$wl'
  9824. # Set some defaults for GNU ld with shared library support. These
  9825. # are reset later if shared libraries are not supported. Putting them
  9826. # here allows them to be overridden if necessary.
  9827. runpath_var=LD_RUN_PATH
  9828. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9829. export_dynamic_flag_spec='$wl--export-dynamic'
  9830. # ancient GNU ld didn't support --whole-archive et. al.
  9831. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9832. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9833. else
  9834. whole_archive_flag_spec=
  9835. fi
  9836. supports_anon_versioning=no
  9837. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9838. *GNU\ gold*) supports_anon_versioning=yes ;;
  9839. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9840. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9841. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9842. *\ 2.11.*) ;; # other 2.11 versions
  9843. *) supports_anon_versioning=yes ;;
  9844. esac
  9845. # See if GNU ld supports shared libraries.
  9846. case $host_os in
  9847. aix[3-9]*)
  9848. # On AIX/PPC, the GNU linker is very broken
  9849. if test ia64 != "$host_cpu"; then
  9850. ld_shlibs=no
  9851. cat <<_LT_EOF 1>&2
  9852. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9853. *** to be unable to reliably create shared libraries on AIX.
  9854. *** Therefore, libtool is disabling shared libraries support. If you
  9855. *** really care for shared libraries, you may want to install binutils
  9856. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9857. *** You will then need to restart the configuration process.
  9858. _LT_EOF
  9859. fi
  9860. ;;
  9861. amigaos*)
  9862. case $host_cpu in
  9863. powerpc)
  9864. # see comment about AmigaOS4 .so support
  9865. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9866. archive_expsym_cmds=''
  9867. ;;
  9868. m68k)
  9869. 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)'
  9870. hardcode_libdir_flag_spec='-L$libdir'
  9871. hardcode_minus_L=yes
  9872. ;;
  9873. esac
  9874. ;;
  9875. beos*)
  9876. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9877. allow_undefined_flag=unsupported
  9878. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9879. # support --undefined. This deserves some investigation. FIXME
  9880. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9881. else
  9882. ld_shlibs=no
  9883. fi
  9884. ;;
  9885. cygwin* | mingw* | pw32* | cegcc*)
  9886. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9887. # as there is no search path for DLLs.
  9888. hardcode_libdir_flag_spec='-L$libdir'
  9889. export_dynamic_flag_spec='$wl--export-all-symbols'
  9890. allow_undefined_flag=unsupported
  9891. always_export_symbols=no
  9892. enable_shared_with_static_runtimes=yes
  9893. 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'
  9894. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9895. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9896. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9897. # If the export-symbols file already is a .def file, use it as
  9898. # is; otherwise, prepend EXPORTS...
  9899. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9900. cp $export_symbols $output_objdir/$soname.def;
  9901. else
  9902. echo EXPORTS > $output_objdir/$soname.def;
  9903. cat $export_symbols >> $output_objdir/$soname.def;
  9904. fi~
  9905. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9906. else
  9907. ld_shlibs=no
  9908. fi
  9909. ;;
  9910. haiku*)
  9911. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9912. link_all_deplibs=yes
  9913. ;;
  9914. os2*)
  9915. hardcode_libdir_flag_spec='-L$libdir'
  9916. hardcode_minus_L=yes
  9917. allow_undefined_flag=unsupported
  9918. shrext_cmds=.dll
  9919. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9920. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9921. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9922. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9923. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9924. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9925. emximp -o $lib $output_objdir/$libname.def'
  9926. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9927. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9928. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9929. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9930. prefix_cmds="$SED"~
  9931. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9932. prefix_cmds="$prefix_cmds -e 1d";
  9933. fi~
  9934. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9935. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9936. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9937. emximp -o $lib $output_objdir/$libname.def'
  9938. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9939. enable_shared_with_static_runtimes=yes
  9940. file_list_spec='@'
  9941. ;;
  9942. interix[3-9]*)
  9943. hardcode_direct=no
  9944. hardcode_shlibpath_var=no
  9945. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9946. export_dynamic_flag_spec='$wl-E'
  9947. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9948. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9949. # default) and relocated if they conflict, which is a slow very memory
  9950. # consuming and fragmenting process. To avoid this, we pick a random,
  9951. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9952. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9953. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9954. 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'
  9955. ;;
  9956. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9957. tmp_diet=no
  9958. if test linux-dietlibc = "$host_os"; then
  9959. case $cc_basename in
  9960. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9961. esac
  9962. fi
  9963. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9964. && test no = "$tmp_diet"
  9965. then
  9966. tmp_addflag=' $pic_flag'
  9967. tmp_sharedflag='-shared'
  9968. case $cc_basename,$host_cpu in
  9969. pgcc*) # Portland Group C compiler
  9970. 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'
  9971. tmp_addflag=' $pic_flag'
  9972. ;;
  9973. pgf77* | pgf90* | pgf95* | pgfortran*)
  9974. # Portland Group f77 and f90 compilers
  9975. 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'
  9976. tmp_addflag=' $pic_flag -Mnomain' ;;
  9977. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9978. tmp_addflag=' -i_dynamic' ;;
  9979. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9980. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9981. ifc* | ifort*) # Intel Fortran compiler
  9982. tmp_addflag=' -nofor_main' ;;
  9983. lf95*) # Lahey Fortran 8.1
  9984. whole_archive_flag_spec=
  9985. tmp_sharedflag='--shared' ;;
  9986. nagfor*) # NAGFOR 5.3
  9987. tmp_sharedflag='-Wl,-shared' ;;
  9988. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9989. tmp_sharedflag='-qmkshrobj'
  9990. tmp_addflag= ;;
  9991. nvcc*) # Cuda Compiler Driver 2.2
  9992. 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'
  9993. compiler_needs_object=yes
  9994. ;;
  9995. esac
  9996. case `$CC -V 2>&1 | sed 5q` in
  9997. *Sun\ C*) # Sun C 5.9
  9998. 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'
  9999. compiler_needs_object=yes
  10000. tmp_sharedflag='-G' ;;
  10001. *Sun\ F*) # Sun Fortran 8.3
  10002. tmp_sharedflag='-G' ;;
  10003. esac
  10004. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10005. if test yes = "$supports_anon_versioning"; then
  10006. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10007. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10008. echo "local: *; };" >> $output_objdir/$libname.ver~
  10009. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10010. fi
  10011. case $cc_basename in
  10012. tcc*)
  10013. export_dynamic_flag_spec='-rdynamic'
  10014. ;;
  10015. xlf* | bgf* | bgxlf* | mpixlf*)
  10016. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10017. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10018. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10019. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10020. if test yes = "$supports_anon_versioning"; then
  10021. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10022. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10023. echo "local: *; };" >> $output_objdir/$libname.ver~
  10024. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10025. fi
  10026. ;;
  10027. esac
  10028. else
  10029. ld_shlibs=no
  10030. fi
  10031. ;;
  10032. netbsd*)
  10033. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10034. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10035. wlarc=
  10036. else
  10037. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10038. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10039. fi
  10040. ;;
  10041. solaris*)
  10042. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10043. ld_shlibs=no
  10044. cat <<_LT_EOF 1>&2
  10045. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10046. *** create shared libraries on Solaris systems. Therefore, libtool
  10047. *** is disabling shared libraries support. We urge you to upgrade GNU
  10048. *** binutils to release 2.9.1 or newer. Another option is to modify
  10049. *** your PATH or compiler configuration so that the native linker is
  10050. *** used, and then restart.
  10051. _LT_EOF
  10052. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10053. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10054. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10055. else
  10056. ld_shlibs=no
  10057. fi
  10058. ;;
  10059. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10060. case `$LD -v 2>&1` in
  10061. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10062. ld_shlibs=no
  10063. cat <<_LT_EOF 1>&2
  10064. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  10065. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10066. *** is disabling shared libraries support. We urge you to upgrade GNU
  10067. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10068. *** your PATH or compiler configuration so that the native linker is
  10069. *** used, and then restart.
  10070. _LT_EOF
  10071. ;;
  10072. *)
  10073. # For security reasons, it is highly recommended that you always
  10074. # use absolute paths for naming shared libraries, and exclude the
  10075. # DT_RUNPATH tag from executables and libraries. But doing so
  10076. # requires that you compile everything twice, which is a pain.
  10077. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10078. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10079. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10080. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10081. else
  10082. ld_shlibs=no
  10083. fi
  10084. ;;
  10085. esac
  10086. ;;
  10087. sunos4*)
  10088. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10089. wlarc=
  10090. hardcode_direct=yes
  10091. hardcode_shlibpath_var=no
  10092. ;;
  10093. *)
  10094. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10095. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10096. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  10097. else
  10098. ld_shlibs=no
  10099. fi
  10100. ;;
  10101. esac
  10102. if test no = "$ld_shlibs"; then
  10103. runpath_var=
  10104. hardcode_libdir_flag_spec=
  10105. export_dynamic_flag_spec=
  10106. whole_archive_flag_spec=
  10107. fi
  10108. else
  10109. # PORTME fill in a description of your system's linker (not GNU ld)
  10110. case $host_os in
  10111. aix3*)
  10112. allow_undefined_flag=unsupported
  10113. always_export_symbols=yes
  10114. 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'
  10115. # Note: this linker hardcodes the directories in LIBPATH if there
  10116. # are no directories specified by -L.
  10117. hardcode_minus_L=yes
  10118. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  10119. # Neither direct hardcoding nor static linking is supported with a
  10120. # broken collect2.
  10121. hardcode_direct=unsupported
  10122. fi
  10123. ;;
  10124. aix[4-9]*)
  10125. if test ia64 = "$host_cpu"; then
  10126. # On IA64, the linker does run time linking by default, so we don't
  10127. # have to do anything special.
  10128. aix_use_runtimelinking=no
  10129. exp_sym_flag='-Bexport'
  10130. no_entry_flag=
  10131. else
  10132. # If we're using GNU nm, then we don't want the "-C" option.
  10133. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  10134. # Without the "-l" option, or with the "-B" option, AIX nm treats
  10135. # weak defined symbols like other global defined symbols, whereas
  10136. # GNU nm marks them as "W".
  10137. # While the 'weak' keyword is ignored in the Export File, we need
  10138. # it in the Import File for the 'aix-soname' feature, so we have
  10139. # to replace the "-B" option with "-P" for AIX nm.
  10140. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10141. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  10142. else
  10143. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  10144. fi
  10145. aix_use_runtimelinking=no
  10146. # Test if we are trying to use run time linking or normal
  10147. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10148. # have runtime linking enabled, and use it for executables.
  10149. # For shared libraries, we enable/disable runtime linking
  10150. # depending on the kind of the shared library created -
  10151. # when "with_aix_soname,aix_use_runtimelinking" is:
  10152. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  10153. # "aix,yes" lib.so shared, rtl:yes, for executables
  10154. # lib.a static archive
  10155. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  10156. # lib.a(lib.so.V) shared, rtl:no, for executables
  10157. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  10158. # lib.a(lib.so.V) shared, rtl:no
  10159. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  10160. # lib.a static archive
  10161. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10162. for ld_flag in $LDFLAGS; do
  10163. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  10164. aix_use_runtimelinking=yes
  10165. break
  10166. fi
  10167. done
  10168. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  10169. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  10170. # so we don't have lib.a shared libs to link our executables.
  10171. # We have to force runtime linking in this case.
  10172. aix_use_runtimelinking=yes
  10173. LDFLAGS="$LDFLAGS -Wl,-brtl"
  10174. fi
  10175. ;;
  10176. esac
  10177. exp_sym_flag='-bexport'
  10178. no_entry_flag='-bnoentry'
  10179. fi
  10180. # When large executables or shared objects are built, AIX ld can
  10181. # have problems creating the table of contents. If linking a library
  10182. # or program results in "error TOC overflow" add -mminimal-toc to
  10183. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10184. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10185. archive_cmds=''
  10186. hardcode_direct=yes
  10187. hardcode_direct_absolute=yes
  10188. hardcode_libdir_separator=':'
  10189. link_all_deplibs=yes
  10190. file_list_spec='$wl-f,'
  10191. case $with_aix_soname,$aix_use_runtimelinking in
  10192. aix,*) ;; # traditional, no import file
  10193. svr4,* | *,yes) # use import file
  10194. # The Import File defines what to hardcode.
  10195. hardcode_direct=no
  10196. hardcode_direct_absolute=no
  10197. ;;
  10198. esac
  10199. if test yes = "$GCC"; then
  10200. case $host_os in aix4.[012]|aix4.[012].*)
  10201. # We only want to do this on AIX 4.2 and lower, the check
  10202. # below for broken collect2 doesn't work under 4.3+
  10203. collect2name=`$CC -print-prog-name=collect2`
  10204. if test -f "$collect2name" &&
  10205. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10206. then
  10207. # We have reworked collect2
  10208. :
  10209. else
  10210. # We have old collect2
  10211. hardcode_direct=unsupported
  10212. # It fails to find uninstalled libraries when the uninstalled
  10213. # path is not listed in the libpath. Setting hardcode_minus_L
  10214. # to unsupported forces relinking
  10215. hardcode_minus_L=yes
  10216. hardcode_libdir_flag_spec='-L$libdir'
  10217. hardcode_libdir_separator=
  10218. fi
  10219. ;;
  10220. esac
  10221. shared_flag='-shared'
  10222. if test yes = "$aix_use_runtimelinking"; then
  10223. shared_flag="$shared_flag "'$wl-G'
  10224. fi
  10225. # Need to ensure runtime linking is disabled for the traditional
  10226. # shared library, or the linker may eventually find shared libraries
  10227. # /with/ Import File - we do not want to mix them.
  10228. shared_flag_aix='-shared'
  10229. shared_flag_svr4='-shared $wl-G'
  10230. else
  10231. # not using gcc
  10232. if test ia64 = "$host_cpu"; then
  10233. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10234. # chokes on -Wl,-G. The following line is correct:
  10235. shared_flag='-G'
  10236. else
  10237. if test yes = "$aix_use_runtimelinking"; then
  10238. shared_flag='$wl-G'
  10239. else
  10240. shared_flag='$wl-bM:SRE'
  10241. fi
  10242. shared_flag_aix='$wl-bM:SRE'
  10243. shared_flag_svr4='$wl-G'
  10244. fi
  10245. fi
  10246. export_dynamic_flag_spec='$wl-bexpall'
  10247. # It seems that -bexpall does not export symbols beginning with
  10248. # underscore (_), so it is better to generate a list of symbols to export.
  10249. always_export_symbols=yes
  10250. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  10251. # Warning - without using the other runtime loading flags (-brtl),
  10252. # -berok will link without error, but may produce a broken library.
  10253. allow_undefined_flag='-berok'
  10254. # Determine the default libpath from the value encoded in an
  10255. # empty executable.
  10256. if test set = "${lt_cv_aix_libpath+set}"; then
  10257. aix_libpath=$lt_cv_aix_libpath
  10258. else
  10259. if ${lt_cv_aix_libpath_+:} false; then :
  10260. $as_echo_n "(cached) " >&6
  10261. else
  10262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10263. /* end confdefs.h. */
  10264. int
  10265. main ()
  10266. {
  10267. ;
  10268. return 0;
  10269. }
  10270. _ACEOF
  10271. if ac_fn_c_try_link "$LINENO"; then :
  10272. lt_aix_libpath_sed='
  10273. /Import File Strings/,/^$/ {
  10274. /^0/ {
  10275. s/^0 *\([^ ]*\) *$/\1/
  10276. p
  10277. }
  10278. }'
  10279. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10280. # Check for a 64-bit object if we didn't find anything.
  10281. if test -z "$lt_cv_aix_libpath_"; then
  10282. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10283. fi
  10284. fi
  10285. rm -f core conftest.err conftest.$ac_objext \
  10286. conftest$ac_exeext conftest.$ac_ext
  10287. if test -z "$lt_cv_aix_libpath_"; then
  10288. lt_cv_aix_libpath_=/usr/lib:/lib
  10289. fi
  10290. fi
  10291. aix_libpath=$lt_cv_aix_libpath_
  10292. fi
  10293. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10294. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  10295. else
  10296. if test ia64 = "$host_cpu"; then
  10297. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  10298. allow_undefined_flag="-z nodefs"
  10299. 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"
  10300. else
  10301. # Determine the default libpath from the value encoded in an
  10302. # empty executable.
  10303. if test set = "${lt_cv_aix_libpath+set}"; then
  10304. aix_libpath=$lt_cv_aix_libpath
  10305. else
  10306. if ${lt_cv_aix_libpath_+:} false; then :
  10307. $as_echo_n "(cached) " >&6
  10308. else
  10309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10310. /* end confdefs.h. */
  10311. int
  10312. main ()
  10313. {
  10314. ;
  10315. return 0;
  10316. }
  10317. _ACEOF
  10318. if ac_fn_c_try_link "$LINENO"; then :
  10319. lt_aix_libpath_sed='
  10320. /Import File Strings/,/^$/ {
  10321. /^0/ {
  10322. s/^0 *\([^ ]*\) *$/\1/
  10323. p
  10324. }
  10325. }'
  10326. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10327. # Check for a 64-bit object if we didn't find anything.
  10328. if test -z "$lt_cv_aix_libpath_"; then
  10329. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10330. fi
  10331. fi
  10332. rm -f core conftest.err conftest.$ac_objext \
  10333. conftest$ac_exeext conftest.$ac_ext
  10334. if test -z "$lt_cv_aix_libpath_"; then
  10335. lt_cv_aix_libpath_=/usr/lib:/lib
  10336. fi
  10337. fi
  10338. aix_libpath=$lt_cv_aix_libpath_
  10339. fi
  10340. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  10341. # Warning - without using the other run time loading flags,
  10342. # -berok will link without error, but may produce a broken library.
  10343. no_undefined_flag=' $wl-bernotok'
  10344. allow_undefined_flag=' $wl-berok'
  10345. if test yes = "$with_gnu_ld"; then
  10346. # We only use this code for GNU lds that support --whole-archive.
  10347. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  10348. else
  10349. # Exported symbols can be pulled into shared objects from archives
  10350. whole_archive_flag_spec='$convenience'
  10351. fi
  10352. archive_cmds_need_lc=yes
  10353. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10354. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10355. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10356. if test svr4 != "$with_aix_soname"; then
  10357. # This is similar to how AIX traditionally builds its shared libraries.
  10358. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  10359. fi
  10360. if test aix != "$with_aix_soname"; then
  10361. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  10362. else
  10363. # used by -dlpreopen to get the symbols
  10364. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10365. fi
  10366. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10367. fi
  10368. fi
  10369. ;;
  10370. amigaos*)
  10371. case $host_cpu in
  10372. powerpc)
  10373. # see comment about AmigaOS4 .so support
  10374. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10375. archive_expsym_cmds=''
  10376. ;;
  10377. m68k)
  10378. 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)'
  10379. hardcode_libdir_flag_spec='-L$libdir'
  10380. hardcode_minus_L=yes
  10381. ;;
  10382. esac
  10383. ;;
  10384. bsdi[45]*)
  10385. export_dynamic_flag_spec=-rdynamic
  10386. ;;
  10387. cygwin* | mingw* | pw32* | cegcc*)
  10388. # When not using gcc, we currently assume that we are using
  10389. # Microsoft Visual C++ or Intel C++ Compiler.
  10390. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10391. # no search path for DLLs.
  10392. case $cc_basename in
  10393. cl* | icl*)
  10394. # Native MSVC or ICC
  10395. hardcode_libdir_flag_spec=' '
  10396. allow_undefined_flag=unsupported
  10397. always_export_symbols=yes
  10398. file_list_spec='@'
  10399. # Tell ltmain to make .lib files, not .a files.
  10400. libext=lib
  10401. # Tell ltmain to make .dll files, not .so files.
  10402. shrext_cmds=.dll
  10403. # FIXME: Setting linknames here is a bad hack.
  10404. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10405. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10406. cp "$export_symbols" "$output_objdir/$soname.def";
  10407. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10408. else
  10409. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10410. fi~
  10411. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10412. linknames='
  10413. # The linker will not automatically build a static lib if we build a DLL.
  10414. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10415. enable_shared_with_static_runtimes=yes
  10416. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10417. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10418. # Don't use ranlib
  10419. old_postinstall_cmds='chmod 644 $oldlib'
  10420. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10421. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10422. case $lt_outputfile in
  10423. *.exe|*.EXE) ;;
  10424. *)
  10425. lt_outputfile=$lt_outputfile.exe
  10426. lt_tool_outputfile=$lt_tool_outputfile.exe
  10427. ;;
  10428. esac~
  10429. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10430. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10431. $RM "$lt_outputfile.manifest";
  10432. fi'
  10433. ;;
  10434. *)
  10435. # Assume MSVC and ICC wrapper
  10436. hardcode_libdir_flag_spec=' '
  10437. allow_undefined_flag=unsupported
  10438. # Tell ltmain to make .lib files, not .a files.
  10439. libext=lib
  10440. # Tell ltmain to make .dll files, not .so files.
  10441. shrext_cmds=.dll
  10442. # FIXME: Setting linknames here is a bad hack.
  10443. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10444. # The linker will automatically build a .lib file if we build a DLL.
  10445. old_archive_from_new_cmds='true'
  10446. # FIXME: Should let the user specify the lib program.
  10447. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10448. enable_shared_with_static_runtimes=yes
  10449. ;;
  10450. esac
  10451. ;;
  10452. darwin* | rhapsody*)
  10453. archive_cmds_need_lc=no
  10454. hardcode_direct=no
  10455. hardcode_automatic=yes
  10456. hardcode_shlibpath_var=unsupported
  10457. if test yes = "$lt_cv_ld_force_load"; then
  10458. 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\"`'
  10459. else
  10460. whole_archive_flag_spec=''
  10461. fi
  10462. link_all_deplibs=yes
  10463. allow_undefined_flag=$_lt_dar_allow_undefined
  10464. case $cc_basename in
  10465. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10466. *) _lt_dar_can_shared=$GCC ;;
  10467. esac
  10468. if test yes = "$_lt_dar_can_shared"; then
  10469. output_verbose_link_cmd=func_echo_all
  10470. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10471. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10472. 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"
  10473. 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"
  10474. else
  10475. ld_shlibs=no
  10476. fi
  10477. ;;
  10478. dgux*)
  10479. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10480. hardcode_libdir_flag_spec='-L$libdir'
  10481. hardcode_shlibpath_var=no
  10482. ;;
  10483. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10484. # support. Future versions do this automatically, but an explicit c++rt0.o
  10485. # does not break anything, and helps significantly (at the cost of a little
  10486. # extra space).
  10487. freebsd2.2*)
  10488. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10489. hardcode_libdir_flag_spec='-R$libdir'
  10490. hardcode_direct=yes
  10491. hardcode_shlibpath_var=no
  10492. ;;
  10493. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10494. freebsd2.*)
  10495. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10496. hardcode_direct=yes
  10497. hardcode_minus_L=yes
  10498. hardcode_shlibpath_var=no
  10499. ;;
  10500. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10501. freebsd* | dragonfly*)
  10502. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10503. hardcode_libdir_flag_spec='-R$libdir'
  10504. hardcode_direct=yes
  10505. hardcode_shlibpath_var=no
  10506. ;;
  10507. hpux9*)
  10508. if test yes = "$GCC"; then
  10509. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10510. else
  10511. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  10512. fi
  10513. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10514. hardcode_libdir_separator=:
  10515. hardcode_direct=yes
  10516. # hardcode_minus_L: Not really in the search PATH,
  10517. # but as the default location of the library.
  10518. hardcode_minus_L=yes
  10519. export_dynamic_flag_spec='$wl-E'
  10520. ;;
  10521. hpux10*)
  10522. if test yes,no = "$GCC,$with_gnu_ld"; then
  10523. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10524. else
  10525. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10526. fi
  10527. if test no = "$with_gnu_ld"; then
  10528. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10529. hardcode_libdir_separator=:
  10530. hardcode_direct=yes
  10531. hardcode_direct_absolute=yes
  10532. export_dynamic_flag_spec='$wl-E'
  10533. # hardcode_minus_L: Not really in the search PATH,
  10534. # but as the default location of the library.
  10535. hardcode_minus_L=yes
  10536. fi
  10537. ;;
  10538. hpux11*)
  10539. if test yes,no = "$GCC,$with_gnu_ld"; then
  10540. case $host_cpu in
  10541. hppa*64*)
  10542. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10543. ;;
  10544. ia64*)
  10545. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10546. ;;
  10547. *)
  10548. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10549. ;;
  10550. esac
  10551. else
  10552. case $host_cpu in
  10553. hppa*64*)
  10554. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10555. ;;
  10556. ia64*)
  10557. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10558. ;;
  10559. *)
  10560. # Older versions of the 11.00 compiler do not understand -b yet
  10561. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10563. $as_echo_n "checking if $CC understands -b... " >&6; }
  10564. if ${lt_cv_prog_compiler__b+:} false; then :
  10565. $as_echo_n "(cached) " >&6
  10566. else
  10567. lt_cv_prog_compiler__b=no
  10568. save_LDFLAGS=$LDFLAGS
  10569. LDFLAGS="$LDFLAGS -b"
  10570. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10571. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10572. # The linker can only warn and ignore the option if not recognized
  10573. # So say no if there are warnings
  10574. if test -s conftest.err; then
  10575. # Append any errors to the config.log.
  10576. cat conftest.err 1>&5
  10577. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10578. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10579. if diff conftest.exp conftest.er2 >/dev/null; then
  10580. lt_cv_prog_compiler__b=yes
  10581. fi
  10582. else
  10583. lt_cv_prog_compiler__b=yes
  10584. fi
  10585. fi
  10586. $RM -r conftest*
  10587. LDFLAGS=$save_LDFLAGS
  10588. fi
  10589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10590. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  10591. if test yes = "$lt_cv_prog_compiler__b"; then
  10592. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10593. else
  10594. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10595. fi
  10596. ;;
  10597. esac
  10598. fi
  10599. if test no = "$with_gnu_ld"; then
  10600. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10601. hardcode_libdir_separator=:
  10602. case $host_cpu in
  10603. hppa*64*|ia64*)
  10604. hardcode_direct=no
  10605. hardcode_shlibpath_var=no
  10606. ;;
  10607. *)
  10608. hardcode_direct=yes
  10609. hardcode_direct_absolute=yes
  10610. export_dynamic_flag_spec='$wl-E'
  10611. # hardcode_minus_L: Not really in the search PATH,
  10612. # but as the default location of the library.
  10613. hardcode_minus_L=yes
  10614. ;;
  10615. esac
  10616. fi
  10617. ;;
  10618. irix5* | irix6* | nonstopux*)
  10619. if test yes = "$GCC"; then
  10620. 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'
  10621. # Try to use the -exported_symbol ld option, if it does not
  10622. # work, assume that -exports_file does not work either and
  10623. # implicitly export all symbols.
  10624. # This should be the same for all languages, so no per-tag cache variable.
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10626. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10627. if ${lt_cv_irix_exported_symbol+:} false; then :
  10628. $as_echo_n "(cached) " >&6
  10629. else
  10630. save_LDFLAGS=$LDFLAGS
  10631. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10633. /* end confdefs.h. */
  10634. int foo (void) { return 0; }
  10635. _ACEOF
  10636. if ac_fn_c_try_link "$LINENO"; then :
  10637. lt_cv_irix_exported_symbol=yes
  10638. else
  10639. lt_cv_irix_exported_symbol=no
  10640. fi
  10641. rm -f core conftest.err conftest.$ac_objext \
  10642. conftest$ac_exeext conftest.$ac_ext
  10643. LDFLAGS=$save_LDFLAGS
  10644. fi
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10646. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  10647. if test yes = "$lt_cv_irix_exported_symbol"; then
  10648. 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'
  10649. fi
  10650. else
  10651. 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'
  10652. 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'
  10653. fi
  10654. archive_cmds_need_lc='no'
  10655. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10656. hardcode_libdir_separator=:
  10657. inherit_rpath=yes
  10658. link_all_deplibs=yes
  10659. ;;
  10660. linux*)
  10661. case $cc_basename in
  10662. tcc*)
  10663. # Fabrice Bellard et al's Tiny C Compiler
  10664. ld_shlibs=yes
  10665. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10666. ;;
  10667. esac
  10668. ;;
  10669. netbsd*)
  10670. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10671. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10672. else
  10673. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10674. fi
  10675. hardcode_libdir_flag_spec='-R$libdir'
  10676. hardcode_direct=yes
  10677. hardcode_shlibpath_var=no
  10678. ;;
  10679. newsos6)
  10680. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10681. hardcode_direct=yes
  10682. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10683. hardcode_libdir_separator=:
  10684. hardcode_shlibpath_var=no
  10685. ;;
  10686. *nto* | *qnx*)
  10687. ;;
  10688. openbsd* | bitrig*)
  10689. if test -f /usr/libexec/ld.so; then
  10690. hardcode_direct=yes
  10691. hardcode_shlibpath_var=no
  10692. hardcode_direct_absolute=yes
  10693. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10694. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10695. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10696. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10697. export_dynamic_flag_spec='$wl-E'
  10698. else
  10699. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10700. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10701. fi
  10702. else
  10703. ld_shlibs=no
  10704. fi
  10705. ;;
  10706. os2*)
  10707. hardcode_libdir_flag_spec='-L$libdir'
  10708. hardcode_minus_L=yes
  10709. allow_undefined_flag=unsupported
  10710. shrext_cmds=.dll
  10711. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10712. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10713. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10714. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10715. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10716. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10717. emximp -o $lib $output_objdir/$libname.def'
  10718. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10719. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10720. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10721. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10722. prefix_cmds="$SED"~
  10723. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10724. prefix_cmds="$prefix_cmds -e 1d";
  10725. fi~
  10726. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10727. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10728. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10729. emximp -o $lib $output_objdir/$libname.def'
  10730. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10731. enable_shared_with_static_runtimes=yes
  10732. file_list_spec='@'
  10733. ;;
  10734. osf3*)
  10735. if test yes = "$GCC"; then
  10736. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10737. 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'
  10738. else
  10739. allow_undefined_flag=' -expect_unresolved \*'
  10740. 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'
  10741. fi
  10742. archive_cmds_need_lc='no'
  10743. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10744. hardcode_libdir_separator=:
  10745. ;;
  10746. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10747. if test yes = "$GCC"; then
  10748. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10749. 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'
  10750. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10751. else
  10752. allow_undefined_flag=' -expect_unresolved \*'
  10753. 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'
  10754. 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~
  10755. $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'
  10756. # Both c and cxx compiler support -rpath directly
  10757. hardcode_libdir_flag_spec='-rpath $libdir'
  10758. fi
  10759. archive_cmds_need_lc='no'
  10760. hardcode_libdir_separator=:
  10761. ;;
  10762. solaris*)
  10763. no_undefined_flag=' -z defs'
  10764. if test yes = "$GCC"; then
  10765. wlarc='$wl'
  10766. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10767. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10768. $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'
  10769. else
  10770. case `$CC -V 2>&1` in
  10771. *"Compilers 5.0"*)
  10772. wlarc=''
  10773. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10774. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10775. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10776. ;;
  10777. *)
  10778. wlarc='$wl'
  10779. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10780. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10781. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10782. ;;
  10783. esac
  10784. fi
  10785. hardcode_libdir_flag_spec='-R$libdir'
  10786. hardcode_shlibpath_var=no
  10787. case $host_os in
  10788. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10789. *)
  10790. # The compiler driver will combine and reorder linker options,
  10791. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10792. # but is careful enough not to reorder.
  10793. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10794. if test yes = "$GCC"; then
  10795. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10796. else
  10797. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10798. fi
  10799. ;;
  10800. esac
  10801. link_all_deplibs=yes
  10802. ;;
  10803. sunos4*)
  10804. if test sequent = "$host_vendor"; then
  10805. # Use $CC to link under sequent, because it throws in some extra .o
  10806. # files that make .init and .fini sections work.
  10807. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10808. else
  10809. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10810. fi
  10811. hardcode_libdir_flag_spec='-L$libdir'
  10812. hardcode_direct=yes
  10813. hardcode_minus_L=yes
  10814. hardcode_shlibpath_var=no
  10815. ;;
  10816. sysv4)
  10817. case $host_vendor in
  10818. sni)
  10819. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10820. hardcode_direct=yes # is this really true???
  10821. ;;
  10822. siemens)
  10823. ## LD is ld it makes a PLAMLIB
  10824. ## CC just makes a GrossModule.
  10825. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10826. reload_cmds='$CC -r -o $output$reload_objs'
  10827. hardcode_direct=no
  10828. ;;
  10829. motorola)
  10830. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10831. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10832. ;;
  10833. esac
  10834. runpath_var='LD_RUN_PATH'
  10835. hardcode_shlibpath_var=no
  10836. ;;
  10837. sysv4.3*)
  10838. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10839. hardcode_shlibpath_var=no
  10840. export_dynamic_flag_spec='-Bexport'
  10841. ;;
  10842. sysv4*MP*)
  10843. if test -d /usr/nec; then
  10844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10845. hardcode_shlibpath_var=no
  10846. runpath_var=LD_RUN_PATH
  10847. hardcode_runpath_var=yes
  10848. ld_shlibs=yes
  10849. fi
  10850. ;;
  10851. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10852. no_undefined_flag='$wl-z,text'
  10853. archive_cmds_need_lc=no
  10854. hardcode_shlibpath_var=no
  10855. runpath_var='LD_RUN_PATH'
  10856. if test yes = "$GCC"; then
  10857. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10858. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10859. else
  10860. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10861. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10862. fi
  10863. ;;
  10864. sysv5* | sco3.2v5* | sco5v6*)
  10865. # Note: We CANNOT use -z defs as we might desire, because we do not
  10866. # link with -lc, and that would cause any symbols used from libc to
  10867. # always be unresolved, which means just about no library would
  10868. # ever link correctly. If we're not using GNU ld we use -z text
  10869. # though, which does catch some bad symbols but isn't as heavy-handed
  10870. # as -z defs.
  10871. no_undefined_flag='$wl-z,text'
  10872. allow_undefined_flag='$wl-z,nodefs'
  10873. archive_cmds_need_lc=no
  10874. hardcode_shlibpath_var=no
  10875. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10876. hardcode_libdir_separator=':'
  10877. link_all_deplibs=yes
  10878. export_dynamic_flag_spec='$wl-Bexport'
  10879. runpath_var='LD_RUN_PATH'
  10880. if test yes = "$GCC"; then
  10881. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10882. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10883. else
  10884. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10885. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10886. fi
  10887. ;;
  10888. uts4*)
  10889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10890. hardcode_libdir_flag_spec='-L$libdir'
  10891. hardcode_shlibpath_var=no
  10892. ;;
  10893. *)
  10894. ld_shlibs=no
  10895. ;;
  10896. esac
  10897. if test sni = "$host_vendor"; then
  10898. case $host in
  10899. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10900. export_dynamic_flag_spec='$wl-Blargedynsym'
  10901. ;;
  10902. esac
  10903. fi
  10904. fi
  10905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10906. $as_echo "$ld_shlibs" >&6; }
  10907. test no = "$ld_shlibs" && can_build_shared=no
  10908. with_gnu_ld=$with_gnu_ld
  10909. #
  10910. # Do we need to explicitly link libc?
  10911. #
  10912. case "x$archive_cmds_need_lc" in
  10913. x|xyes)
  10914. # Assume -lc should be added
  10915. archive_cmds_need_lc=yes
  10916. if test yes,yes = "$GCC,$enable_shared"; then
  10917. case $archive_cmds in
  10918. *'~'*)
  10919. # FIXME: we may have to deal with multi-command sequences.
  10920. ;;
  10921. '$CC '*)
  10922. # Test whether the compiler implicitly links with -lc since on some
  10923. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10924. # to ld, don't add -lc before -lgcc.
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10926. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10927. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  10928. $as_echo_n "(cached) " >&6
  10929. else
  10930. $RM conftest*
  10931. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10932. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10933. (eval $ac_compile) 2>&5
  10934. ac_status=$?
  10935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10936. test $ac_status = 0; } 2>conftest.err; then
  10937. soname=conftest
  10938. lib=conftest
  10939. libobjs=conftest.$ac_objext
  10940. deplibs=
  10941. wl=$lt_prog_compiler_wl
  10942. pic_flag=$lt_prog_compiler_pic
  10943. compiler_flags=-v
  10944. linker_flags=-v
  10945. verstring=
  10946. output_objdir=.
  10947. libname=conftest
  10948. lt_save_allow_undefined_flag=$allow_undefined_flag
  10949. allow_undefined_flag=
  10950. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10951. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10952. ac_status=$?
  10953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10954. test $ac_status = 0; }
  10955. then
  10956. lt_cv_archive_cmds_need_lc=no
  10957. else
  10958. lt_cv_archive_cmds_need_lc=yes
  10959. fi
  10960. allow_undefined_flag=$lt_save_allow_undefined_flag
  10961. else
  10962. cat conftest.err 1>&5
  10963. fi
  10964. $RM conftest*
  10965. fi
  10966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10967. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  10968. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10969. ;;
  10970. esac
  10971. fi
  10972. ;;
  10973. esac
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10975. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10976. if test yes = "$GCC"; then
  10977. case $host_os in
  10978. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10979. *) lt_awk_arg='/^libraries:/' ;;
  10980. esac
  10981. case $host_os in
  10982. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10983. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10984. esac
  10985. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10986. case $lt_search_path_spec in
  10987. *\;*)
  10988. # if the path contains ";" then we assume it to be the separator
  10989. # otherwise default to the standard path separator (i.e. ":") - it is
  10990. # assumed that no part of a normal pathname contains ";" but that should
  10991. # okay in the real world where ";" in dirpaths is itself problematic.
  10992. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10993. ;;
  10994. *)
  10995. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10996. ;;
  10997. esac
  10998. # Ok, now we have the path, separated by spaces, we can step through it
  10999. # and add multilib dir if necessary...
  11000. lt_tmp_lt_search_path_spec=
  11001. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11002. # ...but if some path component already ends with the multilib dir we assume
  11003. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11004. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11005. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11006. lt_multi_os_dir=
  11007. ;;
  11008. esac
  11009. for lt_sys_path in $lt_search_path_spec; do
  11010. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11011. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11012. elif test -n "$lt_multi_os_dir"; then
  11013. test -d "$lt_sys_path" && \
  11014. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11015. fi
  11016. done
  11017. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11018. BEGIN {RS = " "; FS = "/|\n";} {
  11019. lt_foo = "";
  11020. lt_count = 0;
  11021. for (lt_i = NF; lt_i > 0; lt_i--) {
  11022. if ($lt_i != "" && $lt_i != ".") {
  11023. if ($lt_i == "..") {
  11024. lt_count++;
  11025. } else {
  11026. if (lt_count == 0) {
  11027. lt_foo = "/" $lt_i lt_foo;
  11028. } else {
  11029. lt_count--;
  11030. }
  11031. }
  11032. }
  11033. }
  11034. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11035. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11036. }'`
  11037. # AWK program above erroneously prepends '/' to C:/dos/paths
  11038. # for these hosts.
  11039. case $host_os in
  11040. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11041. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  11042. esac
  11043. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11044. else
  11045. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11046. fi
  11047. library_names_spec=
  11048. libname_spec='lib$name'
  11049. soname_spec=
  11050. shrext_cmds=.so
  11051. postinstall_cmds=
  11052. postuninstall_cmds=
  11053. finish_cmds=
  11054. finish_eval=
  11055. shlibpath_var=
  11056. shlibpath_overrides_runpath=unknown
  11057. version_type=none
  11058. dynamic_linker="$host_os ld.so"
  11059. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11060. need_lib_prefix=unknown
  11061. hardcode_into_libs=no
  11062. # when you set need_version to no, make sure it does not cause -set_version
  11063. # flags to be left without arguments
  11064. need_version=unknown
  11065. case $host_os in
  11066. aix3*)
  11067. version_type=linux # correct to gnu/linux during the next big refactor
  11068. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  11069. shlibpath_var=LIBPATH
  11070. # AIX 3 has no versioning support, so we append a major version to the name.
  11071. soname_spec='$libname$release$shared_ext$major'
  11072. ;;
  11073. aix[4-9]*)
  11074. version_type=linux # correct to gnu/linux during the next big refactor
  11075. need_lib_prefix=no
  11076. need_version=no
  11077. hardcode_into_libs=yes
  11078. if test ia64 = "$host_cpu"; then
  11079. # AIX 5 supports IA64
  11080. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  11081. shlibpath_var=LD_LIBRARY_PATH
  11082. else
  11083. # With GCC up to 2.95.x, collect2 would create an import file
  11084. # for dependence libraries. The import file would start with
  11085. # the line '#! .'. This would cause the generated library to
  11086. # depend on '.', always an invalid library. This was fixed in
  11087. # development snapshots of GCC prior to 3.0.
  11088. case $host_os in
  11089. aix4 | aix4.[01] | aix4.[01].*)
  11090. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11091. echo ' yes '
  11092. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  11093. :
  11094. else
  11095. can_build_shared=no
  11096. fi
  11097. ;;
  11098. esac
  11099. # Using Import Files as archive members, it is possible to support
  11100. # filename-based versioning of shared library archives on AIX. While
  11101. # this would work for both with and without runtime linking, it will
  11102. # prevent static linking of such archives. So we do filename-based
  11103. # shared library versioning with .so extension only, which is used
  11104. # when both runtime linking and shared linking is enabled.
  11105. # Unfortunately, runtime linking may impact performance, so we do
  11106. # not want this to be the default eventually. Also, we use the
  11107. # versioned .so libs for executables only if there is the -brtl
  11108. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  11109. # To allow for filename-based versioning support, we need to create
  11110. # libNAME.so.V as an archive file, containing:
  11111. # *) an Import File, referring to the versioned filename of the
  11112. # archive as well as the shared archive member, telling the
  11113. # bitwidth (32 or 64) of that shared object, and providing the
  11114. # list of exported symbols of that shared object, eventually
  11115. # decorated with the 'weak' keyword
  11116. # *) the shared object with the F_LOADONLY flag set, to really avoid
  11117. # it being seen by the linker.
  11118. # At run time we better use the real file rather than another symlink,
  11119. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  11120. case $with_aix_soname,$aix_use_runtimelinking in
  11121. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  11122. # soname into executable. Probably we can add versioning support to
  11123. # collect2, so additional links can be useful in future.
  11124. aix,yes) # traditional libtool
  11125. dynamic_linker='AIX unversionable lib.so'
  11126. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11127. # instead of lib<name>.a to let people know that these are not
  11128. # typical AIX shared libraries.
  11129. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11130. ;;
  11131. aix,no) # traditional AIX only
  11132. dynamic_linker='AIX lib.a(lib.so.V)'
  11133. # We preserve .a as extension for shared libraries through AIX4.2
  11134. # and later when we are not doing run time linking.
  11135. library_names_spec='$libname$release.a $libname.a'
  11136. soname_spec='$libname$release$shared_ext$major'
  11137. ;;
  11138. svr4,*) # full svr4 only
  11139. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  11140. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11141. # We do not specify a path in Import Files, so LIBPATH fires.
  11142. shlibpath_overrides_runpath=yes
  11143. ;;
  11144. *,yes) # both, prefer svr4
  11145. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  11146. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  11147. # unpreferred sharedlib libNAME.a needs extra handling
  11148. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  11149. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  11150. # We do not specify a path in Import Files, so LIBPATH fires.
  11151. shlibpath_overrides_runpath=yes
  11152. ;;
  11153. *,no) # both, prefer aix
  11154. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  11155. library_names_spec='$libname$release.a $libname.a'
  11156. soname_spec='$libname$release$shared_ext$major'
  11157. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  11158. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  11159. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  11160. ;;
  11161. esac
  11162. shlibpath_var=LIBPATH
  11163. fi
  11164. ;;
  11165. amigaos*)
  11166. case $host_cpu in
  11167. powerpc)
  11168. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11169. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11170. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11171. ;;
  11172. m68k)
  11173. library_names_spec='$libname.ixlibrary $libname.a'
  11174. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11175. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  11176. ;;
  11177. esac
  11178. ;;
  11179. beos*)
  11180. library_names_spec='$libname$shared_ext'
  11181. dynamic_linker="$host_os ld.so"
  11182. shlibpath_var=LIBRARY_PATH
  11183. ;;
  11184. bsdi[45]*)
  11185. version_type=linux # correct to gnu/linux during the next big refactor
  11186. need_version=no
  11187. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11188. soname_spec='$libname$release$shared_ext$major'
  11189. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11190. shlibpath_var=LD_LIBRARY_PATH
  11191. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11192. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11193. # the default ld.so.conf also contains /usr/contrib/lib and
  11194. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11195. # libtool to hard-code these into programs
  11196. ;;
  11197. cygwin* | mingw* | pw32* | cegcc*)
  11198. version_type=windows
  11199. shrext_cmds=.dll
  11200. need_version=no
  11201. need_lib_prefix=no
  11202. case $GCC,$cc_basename in
  11203. yes,*)
  11204. # gcc
  11205. library_names_spec='$libname.dll.a'
  11206. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11207. postinstall_cmds='base_file=`basename \$file`~
  11208. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11209. dldir=$destdir/`dirname \$dlpath`~
  11210. test -d \$dldir || mkdir -p \$dldir~
  11211. $install_prog $dir/$dlname \$dldir/$dlname~
  11212. chmod a+x \$dldir/$dlname~
  11213. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11214. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11215. fi'
  11216. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11217. dlpath=$dir/\$dldll~
  11218. $RM \$dlpath'
  11219. shlibpath_overrides_runpath=yes
  11220. case $host_os in
  11221. cygwin*)
  11222. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11223. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11224. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11225. ;;
  11226. mingw* | cegcc*)
  11227. # MinGW DLLs use traditional 'lib' prefix
  11228. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11229. ;;
  11230. pw32*)
  11231. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11232. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11233. ;;
  11234. esac
  11235. dynamic_linker='Win32 ld.exe'
  11236. ;;
  11237. *,cl* | *,icl*)
  11238. # Native MSVC or ICC
  11239. libname_spec='$name'
  11240. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  11241. library_names_spec='$libname.dll.lib'
  11242. case $build_os in
  11243. mingw*)
  11244. sys_lib_search_path_spec=
  11245. lt_save_ifs=$IFS
  11246. IFS=';'
  11247. for lt_path in $LIB
  11248. do
  11249. IFS=$lt_save_ifs
  11250. # Let DOS variable expansion print the short 8.3 style file name.
  11251. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11252. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11253. done
  11254. IFS=$lt_save_ifs
  11255. # Convert to MSYS style.
  11256. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11257. ;;
  11258. cygwin*)
  11259. # Convert to unix form, then to dos form, then back to unix form
  11260. # but this time dos style (no spaces!) so that the unix form looks
  11261. # like /cygdrive/c/PROGRA~1:/cygdr...
  11262. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11263. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11264. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11265. ;;
  11266. *)
  11267. sys_lib_search_path_spec=$LIB
  11268. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11269. # It is most probably a Windows format PATH.
  11270. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11271. else
  11272. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11273. fi
  11274. # FIXME: find the short name or the path components, as spaces are
  11275. # common. (e.g. "Program Files" -> "PROGRA~1")
  11276. ;;
  11277. esac
  11278. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11279. postinstall_cmds='base_file=`basename \$file`~
  11280. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  11281. dldir=$destdir/`dirname \$dlpath`~
  11282. test -d \$dldir || mkdir -p \$dldir~
  11283. $install_prog $dir/$dlname \$dldir/$dlname'
  11284. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11285. dlpath=$dir/\$dldll~
  11286. $RM \$dlpath'
  11287. shlibpath_overrides_runpath=yes
  11288. dynamic_linker='Win32 link.exe'
  11289. ;;
  11290. *)
  11291. # Assume MSVC and ICC wrapper
  11292. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  11293. dynamic_linker='Win32 ld.exe'
  11294. ;;
  11295. esac
  11296. # FIXME: first we should search . and the directory the executable is in
  11297. shlibpath_var=PATH
  11298. ;;
  11299. darwin* | rhapsody*)
  11300. dynamic_linker="$host_os dyld"
  11301. version_type=darwin
  11302. need_lib_prefix=no
  11303. need_version=no
  11304. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  11305. soname_spec='$libname$release$major$shared_ext'
  11306. shlibpath_overrides_runpath=yes
  11307. shlibpath_var=DYLD_LIBRARY_PATH
  11308. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11309. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  11310. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11311. ;;
  11312. dgux*)
  11313. version_type=linux # correct to gnu/linux during the next big refactor
  11314. need_lib_prefix=no
  11315. need_version=no
  11316. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11317. soname_spec='$libname$release$shared_ext$major'
  11318. shlibpath_var=LD_LIBRARY_PATH
  11319. ;;
  11320. freebsd* | dragonfly*)
  11321. # DragonFly does not have aout. When/if they implement a new
  11322. # versioning mechanism, adjust this.
  11323. if test -x /usr/bin/objformat; then
  11324. objformat=`/usr/bin/objformat`
  11325. else
  11326. case $host_os in
  11327. freebsd[23].*) objformat=aout ;;
  11328. *) objformat=elf ;;
  11329. esac
  11330. fi
  11331. version_type=freebsd-$objformat
  11332. case $version_type in
  11333. freebsd-elf*)
  11334. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11335. soname_spec='$libname$release$shared_ext$major'
  11336. need_version=no
  11337. need_lib_prefix=no
  11338. ;;
  11339. freebsd-*)
  11340. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11341. need_version=yes
  11342. ;;
  11343. esac
  11344. shlibpath_var=LD_LIBRARY_PATH
  11345. case $host_os in
  11346. freebsd2.*)
  11347. shlibpath_overrides_runpath=yes
  11348. ;;
  11349. freebsd3.[01]* | freebsdelf3.[01]*)
  11350. shlibpath_overrides_runpath=yes
  11351. hardcode_into_libs=yes
  11352. ;;
  11353. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11354. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11355. shlibpath_overrides_runpath=no
  11356. hardcode_into_libs=yes
  11357. ;;
  11358. *) # from 4.6 on, and DragonFly
  11359. shlibpath_overrides_runpath=yes
  11360. hardcode_into_libs=yes
  11361. ;;
  11362. esac
  11363. ;;
  11364. haiku*)
  11365. version_type=linux # correct to gnu/linux during the next big refactor
  11366. need_lib_prefix=no
  11367. need_version=no
  11368. dynamic_linker="$host_os runtime_loader"
  11369. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11370. soname_spec='$libname$release$shared_ext$major'
  11371. shlibpath_var=LIBRARY_PATH
  11372. shlibpath_overrides_runpath=no
  11373. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11374. hardcode_into_libs=yes
  11375. ;;
  11376. hpux9* | hpux10* | hpux11*)
  11377. # Give a soname corresponding to the major version so that dld.sl refuses to
  11378. # link against other versions.
  11379. version_type=sunos
  11380. need_lib_prefix=no
  11381. need_version=no
  11382. case $host_cpu in
  11383. ia64*)
  11384. shrext_cmds='.so'
  11385. hardcode_into_libs=yes
  11386. dynamic_linker="$host_os dld.so"
  11387. shlibpath_var=LD_LIBRARY_PATH
  11388. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11389. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11390. soname_spec='$libname$release$shared_ext$major'
  11391. if test 32 = "$HPUX_IA64_MODE"; then
  11392. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11393. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11394. else
  11395. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11396. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11397. fi
  11398. ;;
  11399. hppa*64*)
  11400. shrext_cmds='.sl'
  11401. hardcode_into_libs=yes
  11402. dynamic_linker="$host_os dld.sl"
  11403. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11404. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11405. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11406. soname_spec='$libname$release$shared_ext$major'
  11407. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11408. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11409. ;;
  11410. *)
  11411. shrext_cmds='.sl'
  11412. dynamic_linker="$host_os dld.sl"
  11413. shlibpath_var=SHLIB_PATH
  11414. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11415. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11416. soname_spec='$libname$release$shared_ext$major'
  11417. ;;
  11418. esac
  11419. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11420. postinstall_cmds='chmod 555 $lib'
  11421. # or fails outright, so override atomically:
  11422. install_override_mode=555
  11423. ;;
  11424. interix[3-9]*)
  11425. version_type=linux # correct to gnu/linux during the next big refactor
  11426. need_lib_prefix=no
  11427. need_version=no
  11428. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11429. soname_spec='$libname$release$shared_ext$major'
  11430. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11431. shlibpath_var=LD_LIBRARY_PATH
  11432. shlibpath_overrides_runpath=no
  11433. hardcode_into_libs=yes
  11434. ;;
  11435. irix5* | irix6* | nonstopux*)
  11436. case $host_os in
  11437. nonstopux*) version_type=nonstopux ;;
  11438. *)
  11439. if test yes = "$lt_cv_prog_gnu_ld"; then
  11440. version_type=linux # correct to gnu/linux during the next big refactor
  11441. else
  11442. version_type=irix
  11443. fi ;;
  11444. esac
  11445. need_lib_prefix=no
  11446. need_version=no
  11447. soname_spec='$libname$release$shared_ext$major'
  11448. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11449. case $host_os in
  11450. irix5* | nonstopux*)
  11451. libsuff= shlibsuff=
  11452. ;;
  11453. *)
  11454. case $LD in # libtool.m4 will add one of these switches to LD
  11455. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11456. libsuff= shlibsuff= libmagic=32-bit;;
  11457. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11458. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11459. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11460. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11461. *) libsuff= shlibsuff= libmagic=never-match;;
  11462. esac
  11463. ;;
  11464. esac
  11465. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11466. shlibpath_overrides_runpath=no
  11467. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11468. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11469. hardcode_into_libs=yes
  11470. ;;
  11471. # No shared lib support for Linux oldld, aout, or coff.
  11472. linux*oldld* | linux*aout* | linux*coff*)
  11473. dynamic_linker=no
  11474. ;;
  11475. linux*android*)
  11476. version_type=none # Android doesn't support versioned libraries.
  11477. need_lib_prefix=no
  11478. need_version=no
  11479. library_names_spec='$libname$release$shared_ext'
  11480. soname_spec='$libname$release$shared_ext'
  11481. finish_cmds=
  11482. shlibpath_var=LD_LIBRARY_PATH
  11483. shlibpath_overrides_runpath=yes
  11484. # This implies no fast_install, which is unacceptable.
  11485. # Some rework will be needed to allow for fast_install
  11486. # before this can be enabled.
  11487. hardcode_into_libs=yes
  11488. dynamic_linker='Android linker'
  11489. # Don't embed -rpath directories since the linker doesn't support them.
  11490. hardcode_libdir_flag_spec='-L$libdir'
  11491. ;;
  11492. # This must be glibc/ELF.
  11493. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11494. version_type=linux # correct to gnu/linux during the next big refactor
  11495. need_lib_prefix=no
  11496. need_version=no
  11497. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11498. soname_spec='$libname$release$shared_ext$major'
  11499. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11500. shlibpath_var=LD_LIBRARY_PATH
  11501. shlibpath_overrides_runpath=no
  11502. # Some binutils ld are patched to set DT_RUNPATH
  11503. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  11504. $as_echo_n "(cached) " >&6
  11505. else
  11506. lt_cv_shlibpath_overrides_runpath=no
  11507. save_LDFLAGS=$LDFLAGS
  11508. save_libdir=$libdir
  11509. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11510. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11512. /* end confdefs.h. */
  11513. int
  11514. main ()
  11515. {
  11516. ;
  11517. return 0;
  11518. }
  11519. _ACEOF
  11520. if ac_fn_c_try_link "$LINENO"; then :
  11521. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11522. lt_cv_shlibpath_overrides_runpath=yes
  11523. fi
  11524. fi
  11525. rm -f core conftest.err conftest.$ac_objext \
  11526. conftest$ac_exeext conftest.$ac_ext
  11527. LDFLAGS=$save_LDFLAGS
  11528. libdir=$save_libdir
  11529. fi
  11530. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11531. # This implies no fast_install, which is unacceptable.
  11532. # Some rework will be needed to allow for fast_install
  11533. # before this can be enabled.
  11534. hardcode_into_libs=yes
  11535. # Ideally, we could use ldconfig to report *all* directores which are
  11536. # searched for libraries, however this is still not possible. Aside from not
  11537. # being certain /sbin/ldconfig is available, command
  11538. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11539. # even though it is searched at run-time. Try to do the best guess by
  11540. # appending ld.so.conf contents (and includes) to the search path.
  11541. if test -f /etc/ld.so.conf; then
  11542. 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' ' '`
  11543. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11544. fi
  11545. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11546. # powerpc, because MkLinux only supported shared libraries with the
  11547. # GNU dynamic linker. Since this was broken with cross compilers,
  11548. # most powerpc-linux boxes support dynamic linking these days and
  11549. # people can always --disable-shared, the test was removed, and we
  11550. # assume the GNU/Linux dynamic linker is in use.
  11551. dynamic_linker='GNU/Linux ld.so'
  11552. ;;
  11553. netbsd*)
  11554. version_type=sunos
  11555. need_lib_prefix=no
  11556. need_version=no
  11557. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11558. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11559. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11560. dynamic_linker='NetBSD (a.out) ld.so'
  11561. else
  11562. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11563. soname_spec='$libname$release$shared_ext$major'
  11564. dynamic_linker='NetBSD ld.elf_so'
  11565. fi
  11566. shlibpath_var=LD_LIBRARY_PATH
  11567. shlibpath_overrides_runpath=yes
  11568. hardcode_into_libs=yes
  11569. ;;
  11570. newsos6)
  11571. version_type=linux # correct to gnu/linux during the next big refactor
  11572. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11573. shlibpath_var=LD_LIBRARY_PATH
  11574. shlibpath_overrides_runpath=yes
  11575. ;;
  11576. *nto* | *qnx*)
  11577. version_type=qnx
  11578. need_lib_prefix=no
  11579. need_version=no
  11580. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11581. soname_spec='$libname$release$shared_ext$major'
  11582. shlibpath_var=LD_LIBRARY_PATH
  11583. shlibpath_overrides_runpath=no
  11584. hardcode_into_libs=yes
  11585. dynamic_linker='ldqnx.so'
  11586. ;;
  11587. openbsd* | bitrig*)
  11588. version_type=sunos
  11589. sys_lib_dlsearch_path_spec=/usr/lib
  11590. need_lib_prefix=no
  11591. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11592. need_version=no
  11593. else
  11594. need_version=yes
  11595. fi
  11596. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11597. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11598. shlibpath_var=LD_LIBRARY_PATH
  11599. shlibpath_overrides_runpath=yes
  11600. ;;
  11601. os2*)
  11602. libname_spec='$name'
  11603. version_type=windows
  11604. shrext_cmds=.dll
  11605. need_version=no
  11606. need_lib_prefix=no
  11607. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11608. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11609. v=$($ECHO $release$versuffix | tr -d .-);
  11610. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11611. $ECHO $n$v`$shared_ext'
  11612. library_names_spec='${libname}_dll.$libext'
  11613. dynamic_linker='OS/2 ld.exe'
  11614. shlibpath_var=BEGINLIBPATH
  11615. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11616. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11617. postinstall_cmds='base_file=`basename \$file`~
  11618. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11619. dldir=$destdir/`dirname \$dlpath`~
  11620. test -d \$dldir || mkdir -p \$dldir~
  11621. $install_prog $dir/$dlname \$dldir/$dlname~
  11622. chmod a+x \$dldir/$dlname~
  11623. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11624. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11625. fi'
  11626. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11627. dlpath=$dir/\$dldll~
  11628. $RM \$dlpath'
  11629. ;;
  11630. osf3* | osf4* | osf5*)
  11631. version_type=osf
  11632. need_lib_prefix=no
  11633. need_version=no
  11634. soname_spec='$libname$release$shared_ext$major'
  11635. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11636. shlibpath_var=LD_LIBRARY_PATH
  11637. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11638. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11639. ;;
  11640. rdos*)
  11641. dynamic_linker=no
  11642. ;;
  11643. solaris*)
  11644. version_type=linux # correct to gnu/linux during the next big refactor
  11645. need_lib_prefix=no
  11646. need_version=no
  11647. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11648. soname_spec='$libname$release$shared_ext$major'
  11649. shlibpath_var=LD_LIBRARY_PATH
  11650. shlibpath_overrides_runpath=yes
  11651. hardcode_into_libs=yes
  11652. # ldd complains unless libraries are executable
  11653. postinstall_cmds='chmod +x $lib'
  11654. ;;
  11655. sunos4*)
  11656. version_type=sunos
  11657. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11658. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11659. shlibpath_var=LD_LIBRARY_PATH
  11660. shlibpath_overrides_runpath=yes
  11661. if test yes = "$with_gnu_ld"; then
  11662. need_lib_prefix=no
  11663. fi
  11664. need_version=yes
  11665. ;;
  11666. sysv4 | sysv4.3*)
  11667. version_type=linux # correct to gnu/linux during the next big refactor
  11668. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11669. soname_spec='$libname$release$shared_ext$major'
  11670. shlibpath_var=LD_LIBRARY_PATH
  11671. case $host_vendor in
  11672. sni)
  11673. shlibpath_overrides_runpath=no
  11674. need_lib_prefix=no
  11675. runpath_var=LD_RUN_PATH
  11676. ;;
  11677. siemens)
  11678. need_lib_prefix=no
  11679. ;;
  11680. motorola)
  11681. need_lib_prefix=no
  11682. need_version=no
  11683. shlibpath_overrides_runpath=no
  11684. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11685. ;;
  11686. esac
  11687. ;;
  11688. sysv4*MP*)
  11689. if test -d /usr/nec; then
  11690. version_type=linux # correct to gnu/linux during the next big refactor
  11691. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11692. soname_spec='$libname$shared_ext.$major'
  11693. shlibpath_var=LD_LIBRARY_PATH
  11694. fi
  11695. ;;
  11696. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11697. version_type=sco
  11698. need_lib_prefix=no
  11699. need_version=no
  11700. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11701. soname_spec='$libname$release$shared_ext$major'
  11702. shlibpath_var=LD_LIBRARY_PATH
  11703. shlibpath_overrides_runpath=yes
  11704. hardcode_into_libs=yes
  11705. if test yes = "$with_gnu_ld"; then
  11706. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11707. else
  11708. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11709. case $host_os in
  11710. sco3.2v5*)
  11711. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11712. ;;
  11713. esac
  11714. fi
  11715. sys_lib_dlsearch_path_spec='/usr/lib'
  11716. ;;
  11717. tpf*)
  11718. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11719. version_type=linux # correct to gnu/linux during the next big refactor
  11720. need_lib_prefix=no
  11721. need_version=no
  11722. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11723. shlibpath_var=LD_LIBRARY_PATH
  11724. shlibpath_overrides_runpath=no
  11725. hardcode_into_libs=yes
  11726. ;;
  11727. uts4*)
  11728. version_type=linux # correct to gnu/linux during the next big refactor
  11729. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11730. soname_spec='$libname$release$shared_ext$major'
  11731. shlibpath_var=LD_LIBRARY_PATH
  11732. ;;
  11733. *)
  11734. dynamic_linker=no
  11735. ;;
  11736. esac
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11738. $as_echo "$dynamic_linker" >&6; }
  11739. test no = "$dynamic_linker" && can_build_shared=no
  11740. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11741. if test yes = "$GCC"; then
  11742. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11743. fi
  11744. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11745. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11746. fi
  11747. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11748. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11749. fi
  11750. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11751. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11752. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11753. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11754. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11755. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11757. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  11758. hardcode_action=
  11759. if test -n "$hardcode_libdir_flag_spec" ||
  11760. test -n "$runpath_var" ||
  11761. test yes = "$hardcode_automatic"; then
  11762. # We can hardcode non-existent directories.
  11763. if test no != "$hardcode_direct" &&
  11764. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11765. # have to relink, otherwise we might link with an installed library
  11766. # when we should be linking with a yet-to-be-installed one
  11767. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11768. test no != "$hardcode_minus_L"; then
  11769. # Linking always hardcodes the temporary library directory.
  11770. hardcode_action=relink
  11771. else
  11772. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11773. hardcode_action=immediate
  11774. fi
  11775. else
  11776. # We cannot hardcode anything, or else we can only hardcode existing
  11777. # directories.
  11778. hardcode_action=unsupported
  11779. fi
  11780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11781. $as_echo "$hardcode_action" >&6; }
  11782. if test relink = "$hardcode_action" ||
  11783. test yes = "$inherit_rpath"; then
  11784. # Fast installation is not supported
  11785. enable_fast_install=no
  11786. elif test yes = "$shlibpath_overrides_runpath" ||
  11787. test no = "$enable_shared"; then
  11788. # Fast installation is not necessary
  11789. enable_fast_install=needless
  11790. fi
  11791. if test yes != "$enable_dlopen"; then
  11792. enable_dlopen=unknown
  11793. enable_dlopen_self=unknown
  11794. enable_dlopen_self_static=unknown
  11795. else
  11796. lt_cv_dlopen=no
  11797. lt_cv_dlopen_libs=
  11798. case $host_os in
  11799. beos*)
  11800. lt_cv_dlopen=load_add_on
  11801. lt_cv_dlopen_libs=
  11802. lt_cv_dlopen_self=yes
  11803. ;;
  11804. mingw* | pw32* | cegcc*)
  11805. lt_cv_dlopen=LoadLibrary
  11806. lt_cv_dlopen_libs=
  11807. ;;
  11808. cygwin*)
  11809. lt_cv_dlopen=dlopen
  11810. lt_cv_dlopen_libs=
  11811. ;;
  11812. darwin*)
  11813. # if libdl is installed we need to link against it
  11814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11815. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11816. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11817. $as_echo_n "(cached) " >&6
  11818. else
  11819. ac_check_lib_save_LIBS=$LIBS
  11820. LIBS="-ldl $LIBS"
  11821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11822. /* end confdefs.h. */
  11823. /* Override any GCC internal prototype to avoid an error.
  11824. Use char because int might match the return type of a GCC
  11825. builtin and then its argument prototype would still apply. */
  11826. #ifdef __cplusplus
  11827. extern "C"
  11828. #endif
  11829. char dlopen ();
  11830. int
  11831. main ()
  11832. {
  11833. return dlopen ();
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_c_try_link "$LINENO"; then :
  11839. ac_cv_lib_dl_dlopen=yes
  11840. else
  11841. ac_cv_lib_dl_dlopen=no
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext \
  11844. conftest$ac_exeext conftest.$ac_ext
  11845. LIBS=$ac_check_lib_save_LIBS
  11846. fi
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11848. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11849. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11850. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11851. else
  11852. lt_cv_dlopen=dyld
  11853. lt_cv_dlopen_libs=
  11854. lt_cv_dlopen_self=yes
  11855. fi
  11856. ;;
  11857. tpf*)
  11858. # Don't try to run any link tests for TPF. We know it's impossible
  11859. # because TPF is a cross-compiler, and we know how we open DSOs.
  11860. lt_cv_dlopen=dlopen
  11861. lt_cv_dlopen_libs=
  11862. lt_cv_dlopen_self=no
  11863. ;;
  11864. *)
  11865. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11866. if test "x$ac_cv_func_shl_load" = xyes; then :
  11867. lt_cv_dlopen=shl_load
  11868. else
  11869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11870. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  11871. if ${ac_cv_lib_dld_shl_load+:} false; then :
  11872. $as_echo_n "(cached) " >&6
  11873. else
  11874. ac_check_lib_save_LIBS=$LIBS
  11875. LIBS="-ldld $LIBS"
  11876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11877. /* end confdefs.h. */
  11878. /* Override any GCC internal prototype to avoid an error.
  11879. Use char because int might match the return type of a GCC
  11880. builtin and then its argument prototype would still apply. */
  11881. #ifdef __cplusplus
  11882. extern "C"
  11883. #endif
  11884. char shl_load ();
  11885. int
  11886. main ()
  11887. {
  11888. return shl_load ();
  11889. ;
  11890. return 0;
  11891. }
  11892. _ACEOF
  11893. if ac_fn_c_try_link "$LINENO"; then :
  11894. ac_cv_lib_dld_shl_load=yes
  11895. else
  11896. ac_cv_lib_dld_shl_load=no
  11897. fi
  11898. rm -f core conftest.err conftest.$ac_objext \
  11899. conftest$ac_exeext conftest.$ac_ext
  11900. LIBS=$ac_check_lib_save_LIBS
  11901. fi
  11902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11903. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  11904. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  11905. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11906. else
  11907. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11908. if test "x$ac_cv_func_dlopen" = xyes; then :
  11909. lt_cv_dlopen=dlopen
  11910. else
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11912. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  11913. if ${ac_cv_lib_dl_dlopen+:} false; then :
  11914. $as_echo_n "(cached) " >&6
  11915. else
  11916. ac_check_lib_save_LIBS=$LIBS
  11917. LIBS="-ldl $LIBS"
  11918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11919. /* end confdefs.h. */
  11920. /* Override any GCC internal prototype to avoid an error.
  11921. Use char because int might match the return type of a GCC
  11922. builtin and then its argument prototype would still apply. */
  11923. #ifdef __cplusplus
  11924. extern "C"
  11925. #endif
  11926. char dlopen ();
  11927. int
  11928. main ()
  11929. {
  11930. return dlopen ();
  11931. ;
  11932. return 0;
  11933. }
  11934. _ACEOF
  11935. if ac_fn_c_try_link "$LINENO"; then :
  11936. ac_cv_lib_dl_dlopen=yes
  11937. else
  11938. ac_cv_lib_dl_dlopen=no
  11939. fi
  11940. rm -f core conftest.err conftest.$ac_objext \
  11941. conftest$ac_exeext conftest.$ac_ext
  11942. LIBS=$ac_check_lib_save_LIBS
  11943. fi
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11945. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11946. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  11947. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11948. else
  11949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11950. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11951. if ${ac_cv_lib_svld_dlopen+:} false; then :
  11952. $as_echo_n "(cached) " >&6
  11953. else
  11954. ac_check_lib_save_LIBS=$LIBS
  11955. LIBS="-lsvld $LIBS"
  11956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11957. /* end confdefs.h. */
  11958. /* Override any GCC internal prototype to avoid an error.
  11959. Use char because int might match the return type of a GCC
  11960. builtin and then its argument prototype would still apply. */
  11961. #ifdef __cplusplus
  11962. extern "C"
  11963. #endif
  11964. char dlopen ();
  11965. int
  11966. main ()
  11967. {
  11968. return dlopen ();
  11969. ;
  11970. return 0;
  11971. }
  11972. _ACEOF
  11973. if ac_fn_c_try_link "$LINENO"; then :
  11974. ac_cv_lib_svld_dlopen=yes
  11975. else
  11976. ac_cv_lib_svld_dlopen=no
  11977. fi
  11978. rm -f core conftest.err conftest.$ac_objext \
  11979. conftest$ac_exeext conftest.$ac_ext
  11980. LIBS=$ac_check_lib_save_LIBS
  11981. fi
  11982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11983. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11984. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  11985. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11986. else
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11988. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11989. if ${ac_cv_lib_dld_dld_link+:} false; then :
  11990. $as_echo_n "(cached) " >&6
  11991. else
  11992. ac_check_lib_save_LIBS=$LIBS
  11993. LIBS="-ldld $LIBS"
  11994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11995. /* end confdefs.h. */
  11996. /* Override any GCC internal prototype to avoid an error.
  11997. Use char because int might match the return type of a GCC
  11998. builtin and then its argument prototype would still apply. */
  11999. #ifdef __cplusplus
  12000. extern "C"
  12001. #endif
  12002. char dld_link ();
  12003. int
  12004. main ()
  12005. {
  12006. return dld_link ();
  12007. ;
  12008. return 0;
  12009. }
  12010. _ACEOF
  12011. if ac_fn_c_try_link "$LINENO"; then :
  12012. ac_cv_lib_dld_dld_link=yes
  12013. else
  12014. ac_cv_lib_dld_dld_link=no
  12015. fi
  12016. rm -f core conftest.err conftest.$ac_objext \
  12017. conftest$ac_exeext conftest.$ac_ext
  12018. LIBS=$ac_check_lib_save_LIBS
  12019. fi
  12020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12021. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12022. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12023. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12024. fi
  12025. fi
  12026. fi
  12027. fi
  12028. fi
  12029. fi
  12030. ;;
  12031. esac
  12032. if test no = "$lt_cv_dlopen"; then
  12033. enable_dlopen=no
  12034. else
  12035. enable_dlopen=yes
  12036. fi
  12037. case $lt_cv_dlopen in
  12038. dlopen)
  12039. save_CPPFLAGS=$CPPFLAGS
  12040. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12041. save_LDFLAGS=$LDFLAGS
  12042. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12043. save_LIBS=$LIBS
  12044. LIBS="$lt_cv_dlopen_libs $LIBS"
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12046. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12047. if ${lt_cv_dlopen_self+:} false; then :
  12048. $as_echo_n "(cached) " >&6
  12049. else
  12050. if test yes = "$cross_compiling"; then :
  12051. lt_cv_dlopen_self=cross
  12052. else
  12053. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12054. lt_status=$lt_dlunknown
  12055. cat > conftest.$ac_ext <<_LT_EOF
  12056. #line $LINENO "configure"
  12057. #include "confdefs.h"
  12058. #if HAVE_DLFCN_H
  12059. #include <dlfcn.h>
  12060. #endif
  12061. #include <stdio.h>
  12062. #ifdef RTLD_GLOBAL
  12063. # define LT_DLGLOBAL RTLD_GLOBAL
  12064. #else
  12065. # ifdef DL_GLOBAL
  12066. # define LT_DLGLOBAL DL_GLOBAL
  12067. # else
  12068. # define LT_DLGLOBAL 0
  12069. # endif
  12070. #endif
  12071. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12072. find out it does not work in some platform. */
  12073. #ifndef LT_DLLAZY_OR_NOW
  12074. # ifdef RTLD_LAZY
  12075. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12076. # else
  12077. # ifdef DL_LAZY
  12078. # define LT_DLLAZY_OR_NOW DL_LAZY
  12079. # else
  12080. # ifdef RTLD_NOW
  12081. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12082. # else
  12083. # ifdef DL_NOW
  12084. # define LT_DLLAZY_OR_NOW DL_NOW
  12085. # else
  12086. # define LT_DLLAZY_OR_NOW 0
  12087. # endif
  12088. # endif
  12089. # endif
  12090. # endif
  12091. #endif
  12092. /* When -fvisibility=hidden is used, assume the code has been annotated
  12093. correspondingly for the symbols needed. */
  12094. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12095. int fnord () __attribute__((visibility("default")));
  12096. #endif
  12097. int fnord () { return 42; }
  12098. int main ()
  12099. {
  12100. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12101. int status = $lt_dlunknown;
  12102. if (self)
  12103. {
  12104. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12105. else
  12106. {
  12107. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12108. else puts (dlerror ());
  12109. }
  12110. /* dlclose (self); */
  12111. }
  12112. else
  12113. puts (dlerror ());
  12114. return status;
  12115. }
  12116. _LT_EOF
  12117. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12118. (eval $ac_link) 2>&5
  12119. ac_status=$?
  12120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12121. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12122. (./conftest; exit; ) >&5 2>/dev/null
  12123. lt_status=$?
  12124. case x$lt_status in
  12125. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12126. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12127. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12128. esac
  12129. else :
  12130. # compilation failed
  12131. lt_cv_dlopen_self=no
  12132. fi
  12133. fi
  12134. rm -fr conftest*
  12135. fi
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12137. $as_echo "$lt_cv_dlopen_self" >&6; }
  12138. if test yes = "$lt_cv_dlopen_self"; then
  12139. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12141. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12142. if ${lt_cv_dlopen_self_static+:} false; then :
  12143. $as_echo_n "(cached) " >&6
  12144. else
  12145. if test yes = "$cross_compiling"; then :
  12146. lt_cv_dlopen_self_static=cross
  12147. else
  12148. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12149. lt_status=$lt_dlunknown
  12150. cat > conftest.$ac_ext <<_LT_EOF
  12151. #line $LINENO "configure"
  12152. #include "confdefs.h"
  12153. #if HAVE_DLFCN_H
  12154. #include <dlfcn.h>
  12155. #endif
  12156. #include <stdio.h>
  12157. #ifdef RTLD_GLOBAL
  12158. # define LT_DLGLOBAL RTLD_GLOBAL
  12159. #else
  12160. # ifdef DL_GLOBAL
  12161. # define LT_DLGLOBAL DL_GLOBAL
  12162. # else
  12163. # define LT_DLGLOBAL 0
  12164. # endif
  12165. #endif
  12166. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12167. find out it does not work in some platform. */
  12168. #ifndef LT_DLLAZY_OR_NOW
  12169. # ifdef RTLD_LAZY
  12170. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12171. # else
  12172. # ifdef DL_LAZY
  12173. # define LT_DLLAZY_OR_NOW DL_LAZY
  12174. # else
  12175. # ifdef RTLD_NOW
  12176. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12177. # else
  12178. # ifdef DL_NOW
  12179. # define LT_DLLAZY_OR_NOW DL_NOW
  12180. # else
  12181. # define LT_DLLAZY_OR_NOW 0
  12182. # endif
  12183. # endif
  12184. # endif
  12185. # endif
  12186. #endif
  12187. /* When -fvisibility=hidden is used, assume the code has been annotated
  12188. correspondingly for the symbols needed. */
  12189. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12190. int fnord () __attribute__((visibility("default")));
  12191. #endif
  12192. int fnord () { return 42; }
  12193. int main ()
  12194. {
  12195. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12196. int status = $lt_dlunknown;
  12197. if (self)
  12198. {
  12199. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12200. else
  12201. {
  12202. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12203. else puts (dlerror ());
  12204. }
  12205. /* dlclose (self); */
  12206. }
  12207. else
  12208. puts (dlerror ());
  12209. return status;
  12210. }
  12211. _LT_EOF
  12212. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12213. (eval $ac_link) 2>&5
  12214. ac_status=$?
  12215. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12216. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  12217. (./conftest; exit; ) >&5 2>/dev/null
  12218. lt_status=$?
  12219. case x$lt_status in
  12220. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12221. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12222. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12223. esac
  12224. else :
  12225. # compilation failed
  12226. lt_cv_dlopen_self_static=no
  12227. fi
  12228. fi
  12229. rm -fr conftest*
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12232. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12233. fi
  12234. CPPFLAGS=$save_CPPFLAGS
  12235. LDFLAGS=$save_LDFLAGS
  12236. LIBS=$save_LIBS
  12237. ;;
  12238. esac
  12239. case $lt_cv_dlopen_self in
  12240. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12241. *) enable_dlopen_self=unknown ;;
  12242. esac
  12243. case $lt_cv_dlopen_self_static in
  12244. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12245. *) enable_dlopen_self_static=unknown ;;
  12246. esac
  12247. fi
  12248. striplib=
  12249. old_striplib=
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12251. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12252. if test -z "$STRIP"; then
  12253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12254. $as_echo "no" >&6; }
  12255. else
  12256. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12257. old_striplib="$STRIP --strip-debug"
  12258. striplib="$STRIP --strip-unneeded"
  12259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12260. $as_echo "yes" >&6; }
  12261. else
  12262. case $host_os in
  12263. darwin*)
  12264. # FIXME - insert some real tests, host_os isn't really good enough
  12265. striplib="$STRIP -x"
  12266. old_striplib="$STRIP -S"
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12268. $as_echo "yes" >&6; }
  12269. ;;
  12270. freebsd*)
  12271. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  12272. old_striplib="$STRIP --strip-debug"
  12273. striplib="$STRIP --strip-unneeded"
  12274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12275. $as_echo "yes" >&6; }
  12276. else
  12277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12278. $as_echo "no" >&6; }
  12279. fi
  12280. ;;
  12281. *)
  12282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12283. $as_echo "no" >&6; }
  12284. ;;
  12285. esac
  12286. fi
  12287. fi
  12288. # Report what library types will actually be built
  12289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12290. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12292. $as_echo "$can_build_shared" >&6; }
  12293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12294. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12295. test no = "$can_build_shared" && enable_shared=no
  12296. # On AIX, shared libraries and static libraries use the same namespace, and
  12297. # are all built from PIC.
  12298. case $host_os in
  12299. aix3*)
  12300. test yes = "$enable_shared" && enable_static=no
  12301. if test -n "$RANLIB"; then
  12302. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12303. postinstall_cmds='$RANLIB $lib'
  12304. fi
  12305. ;;
  12306. aix[4-9]*)
  12307. if test ia64 != "$host_cpu"; then
  12308. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  12309. yes,aix,yes) ;; # shared object as lib.so file only
  12310. yes,svr4,*) ;; # shared object as lib.so archive member only
  12311. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  12312. esac
  12313. fi
  12314. ;;
  12315. esac
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12317. $as_echo "$enable_shared" >&6; }
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12319. $as_echo_n "checking whether to build static libraries... " >&6; }
  12320. # Make sure either enable_shared or enable_static is yes.
  12321. test yes = "$enable_shared" || enable_static=yes
  12322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12323. $as_echo "$enable_static" >&6; }
  12324. fi
  12325. ac_ext=c
  12326. ac_cpp='$CPP $CPPFLAGS'
  12327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12330. CC=$lt_save_CC
  12331. if test -n "$CXX" && ( test no != "$CXX" &&
  12332. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12333. (test g++ != "$CXX"))); then
  12334. ac_ext=cpp
  12335. ac_cpp='$CXXCPP $CPPFLAGS'
  12336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12340. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  12341. if test -z "$CXXCPP"; then
  12342. if ${ac_cv_prog_CXXCPP+:} false; then :
  12343. $as_echo_n "(cached) " >&6
  12344. else
  12345. # Double quotes because CXXCPP needs to be expanded
  12346. for CXXCPP in "$CXX -E" "/lib/cpp"
  12347. do
  12348. ac_preproc_ok=false
  12349. for ac_cxx_preproc_warn_flag in '' yes
  12350. do
  12351. # Use a header file that comes with gcc, so configuring glibc
  12352. # with a fresh cross-compiler works.
  12353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12354. # <limits.h> exists even on freestanding compilers.
  12355. # On the NeXT, cc -E runs the code through the compiler's parser,
  12356. # not just through cpp. "Syntax error" is here to catch this case.
  12357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12358. /* end confdefs.h. */
  12359. #ifdef __STDC__
  12360. # include <limits.h>
  12361. #else
  12362. # include <assert.h>
  12363. #endif
  12364. Syntax error
  12365. _ACEOF
  12366. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12367. else
  12368. # Broken: fails on valid input.
  12369. continue
  12370. fi
  12371. rm -f conftest.err conftest.i conftest.$ac_ext
  12372. # OK, works on sane cases. Now check whether nonexistent headers
  12373. # can be detected and how.
  12374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12375. /* end confdefs.h. */
  12376. #include <ac_nonexistent.h>
  12377. _ACEOF
  12378. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12379. # Broken: success on invalid input.
  12380. continue
  12381. else
  12382. # Passes both tests.
  12383. ac_preproc_ok=:
  12384. break
  12385. fi
  12386. rm -f conftest.err conftest.i conftest.$ac_ext
  12387. done
  12388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12389. rm -f conftest.i conftest.err conftest.$ac_ext
  12390. if $ac_preproc_ok; then :
  12391. break
  12392. fi
  12393. done
  12394. ac_cv_prog_CXXCPP=$CXXCPP
  12395. fi
  12396. CXXCPP=$ac_cv_prog_CXXCPP
  12397. else
  12398. ac_cv_prog_CXXCPP=$CXXCPP
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12401. $as_echo "$CXXCPP" >&6; }
  12402. ac_preproc_ok=false
  12403. for ac_cxx_preproc_warn_flag in '' yes
  12404. do
  12405. # Use a header file that comes with gcc, so configuring glibc
  12406. # with a fresh cross-compiler works.
  12407. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12408. # <limits.h> exists even on freestanding compilers.
  12409. # On the NeXT, cc -E runs the code through the compiler's parser,
  12410. # not just through cpp. "Syntax error" is here to catch this case.
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. #ifdef __STDC__
  12414. # include <limits.h>
  12415. #else
  12416. # include <assert.h>
  12417. #endif
  12418. Syntax error
  12419. _ACEOF
  12420. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12421. else
  12422. # Broken: fails on valid input.
  12423. continue
  12424. fi
  12425. rm -f conftest.err conftest.i conftest.$ac_ext
  12426. # OK, works on sane cases. Now check whether nonexistent headers
  12427. # can be detected and how.
  12428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. /* end confdefs.h. */
  12430. #include <ac_nonexistent.h>
  12431. _ACEOF
  12432. if ac_fn_cxx_try_cpp "$LINENO"; then :
  12433. # Broken: success on invalid input.
  12434. continue
  12435. else
  12436. # Passes both tests.
  12437. ac_preproc_ok=:
  12438. break
  12439. fi
  12440. rm -f conftest.err conftest.i conftest.$ac_ext
  12441. done
  12442. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12443. rm -f conftest.i conftest.err conftest.$ac_ext
  12444. if $ac_preproc_ok; then :
  12445. else
  12446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12448. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12449. See \`config.log' for more details" "$LINENO" 5; }
  12450. fi
  12451. ac_ext=c
  12452. ac_cpp='$CPP $CPPFLAGS'
  12453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12456. else
  12457. _lt_caught_CXX_error=yes
  12458. fi
  12459. ac_ext=cpp
  12460. ac_cpp='$CXXCPP $CPPFLAGS'
  12461. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12462. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12463. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12464. archive_cmds_need_lc_CXX=no
  12465. allow_undefined_flag_CXX=
  12466. always_export_symbols_CXX=no
  12467. archive_expsym_cmds_CXX=
  12468. compiler_needs_object_CXX=no
  12469. export_dynamic_flag_spec_CXX=
  12470. hardcode_direct_CXX=no
  12471. hardcode_direct_absolute_CXX=no
  12472. hardcode_libdir_flag_spec_CXX=
  12473. hardcode_libdir_separator_CXX=
  12474. hardcode_minus_L_CXX=no
  12475. hardcode_shlibpath_var_CXX=unsupported
  12476. hardcode_automatic_CXX=no
  12477. inherit_rpath_CXX=no
  12478. module_cmds_CXX=
  12479. module_expsym_cmds_CXX=
  12480. link_all_deplibs_CXX=unknown
  12481. old_archive_cmds_CXX=$old_archive_cmds
  12482. reload_flag_CXX=$reload_flag
  12483. reload_cmds_CXX=$reload_cmds
  12484. no_undefined_flag_CXX=
  12485. whole_archive_flag_spec_CXX=
  12486. enable_shared_with_static_runtimes_CXX=no
  12487. # Source file extension for C++ test sources.
  12488. ac_ext=cpp
  12489. # Object file extension for compiled C++ test sources.
  12490. objext=o
  12491. objext_CXX=$objext
  12492. # No sense in running all these tests if we already determined that
  12493. # the CXX compiler isn't working. Some variables (like enable_shared)
  12494. # are currently assumed to apply to all compilers on this platform,
  12495. # and will be corrupted by setting them based on a non-working compiler.
  12496. if test yes != "$_lt_caught_CXX_error"; then
  12497. # Code to be used in simple compile tests
  12498. lt_simple_compile_test_code="int some_variable = 0;"
  12499. # Code to be used in simple link tests
  12500. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12501. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12502. # If no C compiler was specified, use CC.
  12503. LTCC=${LTCC-"$CC"}
  12504. # If no C compiler flags were specified, use CFLAGS.
  12505. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12506. # Allow CC to be a program name with arguments.
  12507. compiler=$CC
  12508. # save warnings/boilerplate of simple test code
  12509. ac_outfile=conftest.$ac_objext
  12510. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12511. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12512. _lt_compiler_boilerplate=`cat conftest.err`
  12513. $RM conftest*
  12514. ac_outfile=conftest.$ac_objext
  12515. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12516. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12517. _lt_linker_boilerplate=`cat conftest.err`
  12518. $RM -r conftest*
  12519. # Allow CC to be a program name with arguments.
  12520. lt_save_CC=$CC
  12521. lt_save_CFLAGS=$CFLAGS
  12522. lt_save_LD=$LD
  12523. lt_save_GCC=$GCC
  12524. GCC=$GXX
  12525. lt_save_with_gnu_ld=$with_gnu_ld
  12526. lt_save_path_LD=$lt_cv_path_LD
  12527. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12528. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12529. else
  12530. $as_unset lt_cv_prog_gnu_ld
  12531. fi
  12532. if test -n "${lt_cv_path_LDCXX+set}"; then
  12533. lt_cv_path_LD=$lt_cv_path_LDCXX
  12534. else
  12535. $as_unset lt_cv_path_LD
  12536. fi
  12537. test -z "${LDCXX+set}" || LD=$LDCXX
  12538. CC=${CXX-"c++"}
  12539. CFLAGS=$CXXFLAGS
  12540. compiler=$CC
  12541. compiler_CXX=$CC
  12542. func_cc_basename $compiler
  12543. cc_basename=$func_cc_basename_result
  12544. if test -n "$compiler"; then
  12545. # We don't want -fno-exception when compiling C++ code, so set the
  12546. # no_builtin_flag separately
  12547. if test yes = "$GXX"; then
  12548. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12549. else
  12550. lt_prog_compiler_no_builtin_flag_CXX=
  12551. fi
  12552. if test yes = "$GXX"; then
  12553. # Set up default GNU C++ configuration
  12554. # Check whether --with-gnu-ld was given.
  12555. if test "${with_gnu_ld+set}" = set; then :
  12556. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12557. else
  12558. with_gnu_ld=no
  12559. fi
  12560. ac_prog=ld
  12561. if test yes = "$GCC"; then
  12562. # Check if gcc -print-prog-name=ld gives a path.
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12564. $as_echo_n "checking for ld used by $CC... " >&6; }
  12565. case $host in
  12566. *-*-mingw*)
  12567. # gcc leaves a trailing carriage return, which upsets mingw
  12568. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12569. *)
  12570. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12571. esac
  12572. case $ac_prog in
  12573. # Accept absolute paths.
  12574. [\\/]* | ?:[\\/]*)
  12575. re_direlt='/[^/][^/]*/\.\./'
  12576. # Canonicalize the pathname of ld
  12577. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12578. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12579. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12580. done
  12581. test -z "$LD" && LD=$ac_prog
  12582. ;;
  12583. "")
  12584. # If it fails, then pretend we aren't using GCC.
  12585. ac_prog=ld
  12586. ;;
  12587. *)
  12588. # If it is relative, then search for the first ld in PATH.
  12589. with_gnu_ld=unknown
  12590. ;;
  12591. esac
  12592. elif test yes = "$with_gnu_ld"; then
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12594. $as_echo_n "checking for GNU ld... " >&6; }
  12595. else
  12596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12597. $as_echo_n "checking for non-GNU ld... " >&6; }
  12598. fi
  12599. if ${lt_cv_path_LD+:} false; then :
  12600. $as_echo_n "(cached) " >&6
  12601. else
  12602. if test -z "$LD"; then
  12603. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12604. for ac_dir in $PATH; do
  12605. IFS=$lt_save_ifs
  12606. test -z "$ac_dir" && ac_dir=.
  12607. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12608. lt_cv_path_LD=$ac_dir/$ac_prog
  12609. # Check to see if the program is GNU ld. I'd rather use --version,
  12610. # but apparently some variants of GNU ld only accept -v.
  12611. # Break only if it was the GNU/non-GNU ld that we prefer.
  12612. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12613. *GNU* | *'with BFD'*)
  12614. test no != "$with_gnu_ld" && break
  12615. ;;
  12616. *)
  12617. test yes != "$with_gnu_ld" && break
  12618. ;;
  12619. esac
  12620. fi
  12621. done
  12622. IFS=$lt_save_ifs
  12623. else
  12624. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12625. fi
  12626. fi
  12627. LD=$lt_cv_path_LD
  12628. if test -n "$LD"; then
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12630. $as_echo "$LD" >&6; }
  12631. else
  12632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12633. $as_echo "no" >&6; }
  12634. fi
  12635. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12637. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12638. if ${lt_cv_prog_gnu_ld+:} false; then :
  12639. $as_echo_n "(cached) " >&6
  12640. else
  12641. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12642. case `$LD -v 2>&1 </dev/null` in
  12643. *GNU* | *'with BFD'*)
  12644. lt_cv_prog_gnu_ld=yes
  12645. ;;
  12646. *)
  12647. lt_cv_prog_gnu_ld=no
  12648. ;;
  12649. esac
  12650. fi
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12652. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12653. with_gnu_ld=$lt_cv_prog_gnu_ld
  12654. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12655. # archiving commands below assume that GNU ld is being used.
  12656. if test yes = "$with_gnu_ld"; then
  12657. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12658. 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'
  12659. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12660. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12661. # If archive_cmds runs LD, not CC, wlarc should be empty
  12662. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12663. # investigate it a little bit more. (MM)
  12664. wlarc='$wl'
  12665. # ancient GNU ld didn't support --whole-archive et. al.
  12666. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12667. $GREP 'no-whole-archive' > /dev/null; then
  12668. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12669. else
  12670. whole_archive_flag_spec_CXX=
  12671. fi
  12672. else
  12673. with_gnu_ld=no
  12674. wlarc=
  12675. # A generic and very simple default shared library creation
  12676. # command for GNU C++ for the case where it uses the native
  12677. # linker, instead of GNU ld. If possible, this setting should
  12678. # overridden to take advantage of the native linker features on
  12679. # the platform it is being used on.
  12680. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12681. fi
  12682. # Commands to make compiler produce verbose output that lists
  12683. # what "hidden" libraries, object files and flags are used when
  12684. # linking a shared library.
  12685. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12686. else
  12687. GXX=no
  12688. with_gnu_ld=no
  12689. wlarc=
  12690. fi
  12691. # PORTME: fill in a description of your system's C++ link characteristics
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12693. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12694. ld_shlibs_CXX=yes
  12695. case $host_os in
  12696. aix3*)
  12697. # FIXME: insert proper C++ library support
  12698. ld_shlibs_CXX=no
  12699. ;;
  12700. aix[4-9]*)
  12701. if test ia64 = "$host_cpu"; then
  12702. # On IA64, the linker does run time linking by default, so we don't
  12703. # have to do anything special.
  12704. aix_use_runtimelinking=no
  12705. exp_sym_flag='-Bexport'
  12706. no_entry_flag=
  12707. else
  12708. aix_use_runtimelinking=no
  12709. # Test if we are trying to use run time linking or normal
  12710. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12711. # have runtime linking enabled, and use it for executables.
  12712. # For shared libraries, we enable/disable runtime linking
  12713. # depending on the kind of the shared library created -
  12714. # when "with_aix_soname,aix_use_runtimelinking" is:
  12715. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12716. # "aix,yes" lib.so shared, rtl:yes, for executables
  12717. # lib.a static archive
  12718. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12719. # lib.a(lib.so.V) shared, rtl:no, for executables
  12720. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12721. # lib.a(lib.so.V) shared, rtl:no
  12722. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12723. # lib.a static archive
  12724. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12725. for ld_flag in $LDFLAGS; do
  12726. case $ld_flag in
  12727. *-brtl*)
  12728. aix_use_runtimelinking=yes
  12729. break
  12730. ;;
  12731. esac
  12732. done
  12733. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12734. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12735. # so we don't have lib.a shared libs to link our executables.
  12736. # We have to force runtime linking in this case.
  12737. aix_use_runtimelinking=yes
  12738. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12739. fi
  12740. ;;
  12741. esac
  12742. exp_sym_flag='-bexport'
  12743. no_entry_flag='-bnoentry'
  12744. fi
  12745. # When large executables or shared objects are built, AIX ld can
  12746. # have problems creating the table of contents. If linking a library
  12747. # or program results in "error TOC overflow" add -mminimal-toc to
  12748. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12749. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12750. archive_cmds_CXX=''
  12751. hardcode_direct_CXX=yes
  12752. hardcode_direct_absolute_CXX=yes
  12753. hardcode_libdir_separator_CXX=':'
  12754. link_all_deplibs_CXX=yes
  12755. file_list_spec_CXX='$wl-f,'
  12756. case $with_aix_soname,$aix_use_runtimelinking in
  12757. aix,*) ;; # no import file
  12758. svr4,* | *,yes) # use import file
  12759. # The Import File defines what to hardcode.
  12760. hardcode_direct_CXX=no
  12761. hardcode_direct_absolute_CXX=no
  12762. ;;
  12763. esac
  12764. if test yes = "$GXX"; then
  12765. case $host_os in aix4.[012]|aix4.[012].*)
  12766. # We only want to do this on AIX 4.2 and lower, the check
  12767. # below for broken collect2 doesn't work under 4.3+
  12768. collect2name=`$CC -print-prog-name=collect2`
  12769. if test -f "$collect2name" &&
  12770. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12771. then
  12772. # We have reworked collect2
  12773. :
  12774. else
  12775. # We have old collect2
  12776. hardcode_direct_CXX=unsupported
  12777. # It fails to find uninstalled libraries when the uninstalled
  12778. # path is not listed in the libpath. Setting hardcode_minus_L
  12779. # to unsupported forces relinking
  12780. hardcode_minus_L_CXX=yes
  12781. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12782. hardcode_libdir_separator_CXX=
  12783. fi
  12784. esac
  12785. shared_flag='-shared'
  12786. if test yes = "$aix_use_runtimelinking"; then
  12787. shared_flag=$shared_flag' $wl-G'
  12788. fi
  12789. # Need to ensure runtime linking is disabled for the traditional
  12790. # shared library, or the linker may eventually find shared libraries
  12791. # /with/ Import File - we do not want to mix them.
  12792. shared_flag_aix='-shared'
  12793. shared_flag_svr4='-shared $wl-G'
  12794. else
  12795. # not using gcc
  12796. if test ia64 = "$host_cpu"; then
  12797. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12798. # chokes on -Wl,-G. The following line is correct:
  12799. shared_flag='-G'
  12800. else
  12801. if test yes = "$aix_use_runtimelinking"; then
  12802. shared_flag='$wl-G'
  12803. else
  12804. shared_flag='$wl-bM:SRE'
  12805. fi
  12806. shared_flag_aix='$wl-bM:SRE'
  12807. shared_flag_svr4='$wl-G'
  12808. fi
  12809. fi
  12810. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12811. # It seems that -bexpall does not export symbols beginning with
  12812. # underscore (_), so it is better to generate a list of symbols to
  12813. # export.
  12814. always_export_symbols_CXX=yes
  12815. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12816. # Warning - without using the other runtime loading flags (-brtl),
  12817. # -berok will link without error, but may produce a broken library.
  12818. # The "-G" linker flag allows undefined symbols.
  12819. no_undefined_flag_CXX='-bernotok'
  12820. # Determine the default libpath from the value encoded in an empty
  12821. # executable.
  12822. if test set = "${lt_cv_aix_libpath+set}"; then
  12823. aix_libpath=$lt_cv_aix_libpath
  12824. else
  12825. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12826. $as_echo_n "(cached) " >&6
  12827. else
  12828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12829. /* end confdefs.h. */
  12830. int
  12831. main ()
  12832. {
  12833. ;
  12834. return 0;
  12835. }
  12836. _ACEOF
  12837. if ac_fn_cxx_try_link "$LINENO"; then :
  12838. lt_aix_libpath_sed='
  12839. /Import File Strings/,/^$/ {
  12840. /^0/ {
  12841. s/^0 *\([^ ]*\) *$/\1/
  12842. p
  12843. }
  12844. }'
  12845. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12846. # Check for a 64-bit object if we didn't find anything.
  12847. if test -z "$lt_cv_aix_libpath__CXX"; then
  12848. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12849. fi
  12850. fi
  12851. rm -f core conftest.err conftest.$ac_objext \
  12852. conftest$ac_exeext conftest.$ac_ext
  12853. if test -z "$lt_cv_aix_libpath__CXX"; then
  12854. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12855. fi
  12856. fi
  12857. aix_libpath=$lt_cv_aix_libpath__CXX
  12858. fi
  12859. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12860. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12861. else
  12862. if test ia64 = "$host_cpu"; then
  12863. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12864. allow_undefined_flag_CXX="-z nodefs"
  12865. 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"
  12866. else
  12867. # Determine the default libpath from the value encoded in an
  12868. # empty executable.
  12869. if test set = "${lt_cv_aix_libpath+set}"; then
  12870. aix_libpath=$lt_cv_aix_libpath
  12871. else
  12872. if ${lt_cv_aix_libpath__CXX+:} false; then :
  12873. $as_echo_n "(cached) " >&6
  12874. else
  12875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12876. /* end confdefs.h. */
  12877. int
  12878. main ()
  12879. {
  12880. ;
  12881. return 0;
  12882. }
  12883. _ACEOF
  12884. if ac_fn_cxx_try_link "$LINENO"; then :
  12885. lt_aix_libpath_sed='
  12886. /Import File Strings/,/^$/ {
  12887. /^0/ {
  12888. s/^0 *\([^ ]*\) *$/\1/
  12889. p
  12890. }
  12891. }'
  12892. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12893. # Check for a 64-bit object if we didn't find anything.
  12894. if test -z "$lt_cv_aix_libpath__CXX"; then
  12895. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12896. fi
  12897. fi
  12898. rm -f core conftest.err conftest.$ac_objext \
  12899. conftest$ac_exeext conftest.$ac_ext
  12900. if test -z "$lt_cv_aix_libpath__CXX"; then
  12901. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12902. fi
  12903. fi
  12904. aix_libpath=$lt_cv_aix_libpath__CXX
  12905. fi
  12906. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12907. # Warning - without using the other run time loading flags,
  12908. # -berok will link without error, but may produce a broken library.
  12909. no_undefined_flag_CXX=' $wl-bernotok'
  12910. allow_undefined_flag_CXX=' $wl-berok'
  12911. if test yes = "$with_gnu_ld"; then
  12912. # We only use this code for GNU lds that support --whole-archive.
  12913. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12914. else
  12915. # Exported symbols can be pulled into shared objects from archives
  12916. whole_archive_flag_spec_CXX='$convenience'
  12917. fi
  12918. archive_cmds_need_lc_CXX=yes
  12919. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12920. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12921. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12922. if test svr4 != "$with_aix_soname"; then
  12923. # This is similar to how AIX traditionally builds its shared
  12924. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12925. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12926. fi
  12927. if test aix != "$with_aix_soname"; then
  12928. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12929. else
  12930. # used by -dlpreopen to get the symbols
  12931. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12932. fi
  12933. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12934. fi
  12935. fi
  12936. ;;
  12937. beos*)
  12938. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12939. allow_undefined_flag_CXX=unsupported
  12940. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12941. # support --undefined. This deserves some investigation. FIXME
  12942. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12943. else
  12944. ld_shlibs_CXX=no
  12945. fi
  12946. ;;
  12947. chorus*)
  12948. case $cc_basename in
  12949. *)
  12950. # FIXME: insert proper C++ library support
  12951. ld_shlibs_CXX=no
  12952. ;;
  12953. esac
  12954. ;;
  12955. cygwin* | mingw* | pw32* | cegcc*)
  12956. case $GXX,$cc_basename in
  12957. ,cl* | no,cl* | ,icl* | no,icl*)
  12958. # Native MSVC or ICC
  12959. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12960. # no search path for DLLs.
  12961. hardcode_libdir_flag_spec_CXX=' '
  12962. allow_undefined_flag_CXX=unsupported
  12963. always_export_symbols_CXX=yes
  12964. file_list_spec_CXX='@'
  12965. # Tell ltmain to make .lib files, not .a files.
  12966. libext=lib
  12967. # Tell ltmain to make .dll files, not .so files.
  12968. shrext_cmds=.dll
  12969. # FIXME: Setting linknames here is a bad hack.
  12970. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12971. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12972. cp "$export_symbols" "$output_objdir/$soname.def";
  12973. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12974. else
  12975. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12976. fi~
  12977. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12978. linknames='
  12979. # The linker will not automatically build a static lib if we build a DLL.
  12980. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12981. enable_shared_with_static_runtimes_CXX=yes
  12982. # Don't use ranlib
  12983. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12984. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12985. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12986. case $lt_outputfile in
  12987. *.exe|*.EXE) ;;
  12988. *)
  12989. lt_outputfile=$lt_outputfile.exe
  12990. lt_tool_outputfile=$lt_tool_outputfile.exe
  12991. ;;
  12992. esac~
  12993. func_to_tool_file "$lt_outputfile"~
  12994. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12995. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12996. $RM "$lt_outputfile.manifest";
  12997. fi'
  12998. ;;
  12999. *)
  13000. # g++
  13001. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13002. # as there is no search path for DLLs.
  13003. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13004. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13005. allow_undefined_flag_CXX=unsupported
  13006. always_export_symbols_CXX=no
  13007. enable_shared_with_static_runtimes_CXX=yes
  13008. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13009. 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'
  13010. # If the export-symbols file already is a .def file, use it as
  13011. # is; otherwise, prepend EXPORTS...
  13012. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13013. cp $export_symbols $output_objdir/$soname.def;
  13014. else
  13015. echo EXPORTS > $output_objdir/$soname.def;
  13016. cat $export_symbols >> $output_objdir/$soname.def;
  13017. fi~
  13018. $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'
  13019. else
  13020. ld_shlibs_CXX=no
  13021. fi
  13022. ;;
  13023. esac
  13024. ;;
  13025. darwin* | rhapsody*)
  13026. archive_cmds_need_lc_CXX=no
  13027. hardcode_direct_CXX=no
  13028. hardcode_automatic_CXX=yes
  13029. hardcode_shlibpath_var_CXX=unsupported
  13030. if test yes = "$lt_cv_ld_force_load"; then
  13031. 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\"`'
  13032. else
  13033. whole_archive_flag_spec_CXX=''
  13034. fi
  13035. link_all_deplibs_CXX=yes
  13036. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13037. case $cc_basename in
  13038. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13039. *) _lt_dar_can_shared=$GCC ;;
  13040. esac
  13041. if test yes = "$_lt_dar_can_shared"; then
  13042. output_verbose_link_cmd=func_echo_all
  13043. 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"
  13044. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13045. 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"
  13046. 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"
  13047. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13048. 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"
  13049. 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"
  13050. fi
  13051. else
  13052. ld_shlibs_CXX=no
  13053. fi
  13054. ;;
  13055. os2*)
  13056. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13057. hardcode_minus_L_CXX=yes
  13058. allow_undefined_flag_CXX=unsupported
  13059. shrext_cmds=.dll
  13060. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13061. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13062. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13063. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13064. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13065. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13066. emximp -o $lib $output_objdir/$libname.def'
  13067. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13068. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13069. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13070. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13071. prefix_cmds="$SED"~
  13072. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13073. prefix_cmds="$prefix_cmds -e 1d";
  13074. fi~
  13075. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13076. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13077. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13078. emximp -o $lib $output_objdir/$libname.def'
  13079. old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13080. enable_shared_with_static_runtimes_CXX=yes
  13081. file_list_spec_CXX='@'
  13082. ;;
  13083. dgux*)
  13084. case $cc_basename in
  13085. ec++*)
  13086. # FIXME: insert proper C++ library support
  13087. ld_shlibs_CXX=no
  13088. ;;
  13089. ghcx*)
  13090. # Green Hills C++ Compiler
  13091. # FIXME: insert proper C++ library support
  13092. ld_shlibs_CXX=no
  13093. ;;
  13094. *)
  13095. # FIXME: insert proper C++ library support
  13096. ld_shlibs_CXX=no
  13097. ;;
  13098. esac
  13099. ;;
  13100. freebsd2.*)
  13101. # C++ shared libraries reported to be fairly broken before
  13102. # switch to ELF
  13103. ld_shlibs_CXX=no
  13104. ;;
  13105. freebsd-elf*)
  13106. archive_cmds_need_lc_CXX=no
  13107. ;;
  13108. freebsd* | dragonfly*)
  13109. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13110. # conventions
  13111. ld_shlibs_CXX=yes
  13112. ;;
  13113. haiku*)
  13114. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13115. link_all_deplibs_CXX=yes
  13116. ;;
  13117. hpux9*)
  13118. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13119. hardcode_libdir_separator_CXX=:
  13120. export_dynamic_flag_spec_CXX='$wl-E'
  13121. hardcode_direct_CXX=yes
  13122. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13123. # but as the default
  13124. # location of the library.
  13125. case $cc_basename in
  13126. CC*)
  13127. # FIXME: insert proper C++ library support
  13128. ld_shlibs_CXX=no
  13129. ;;
  13130. aCC*)
  13131. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13132. # Commands to make compiler produce verbose output that lists
  13133. # what "hidden" libraries, object files and flags are used when
  13134. # linking a shared library.
  13135. #
  13136. # There doesn't appear to be a way to prevent this compiler from
  13137. # explicitly linking system object files so we need to strip them
  13138. # from the output so that they don't get included in the library
  13139. # dependencies.
  13140. 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"'
  13141. ;;
  13142. *)
  13143. if test yes = "$GXX"; then
  13144. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13145. else
  13146. # FIXME: insert proper C++ library support
  13147. ld_shlibs_CXX=no
  13148. fi
  13149. ;;
  13150. esac
  13151. ;;
  13152. hpux10*|hpux11*)
  13153. if test no = "$with_gnu_ld"; then
  13154. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13155. hardcode_libdir_separator_CXX=:
  13156. case $host_cpu in
  13157. hppa*64*|ia64*)
  13158. ;;
  13159. *)
  13160. export_dynamic_flag_spec_CXX='$wl-E'
  13161. ;;
  13162. esac
  13163. fi
  13164. case $host_cpu in
  13165. hppa*64*|ia64*)
  13166. hardcode_direct_CXX=no
  13167. hardcode_shlibpath_var_CXX=no
  13168. ;;
  13169. *)
  13170. hardcode_direct_CXX=yes
  13171. hardcode_direct_absolute_CXX=yes
  13172. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13173. # but as the default
  13174. # location of the library.
  13175. ;;
  13176. esac
  13177. case $cc_basename in
  13178. CC*)
  13179. # FIXME: insert proper C++ library support
  13180. ld_shlibs_CXX=no
  13181. ;;
  13182. aCC*)
  13183. case $host_cpu in
  13184. hppa*64*)
  13185. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13186. ;;
  13187. ia64*)
  13188. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13189. ;;
  13190. *)
  13191. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13192. ;;
  13193. esac
  13194. # Commands to make compiler produce verbose output that lists
  13195. # what "hidden" libraries, object files and flags are used when
  13196. # linking a shared library.
  13197. #
  13198. # There doesn't appear to be a way to prevent this compiler from
  13199. # explicitly linking system object files so we need to strip them
  13200. # from the output so that they don't get included in the library
  13201. # dependencies.
  13202. 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"'
  13203. ;;
  13204. *)
  13205. if test yes = "$GXX"; then
  13206. if test no = "$with_gnu_ld"; then
  13207. case $host_cpu in
  13208. hppa*64*)
  13209. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13210. ;;
  13211. ia64*)
  13212. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13213. ;;
  13214. *)
  13215. 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'
  13216. ;;
  13217. esac
  13218. fi
  13219. else
  13220. # FIXME: insert proper C++ library support
  13221. ld_shlibs_CXX=no
  13222. fi
  13223. ;;
  13224. esac
  13225. ;;
  13226. interix[3-9]*)
  13227. hardcode_direct_CXX=no
  13228. hardcode_shlibpath_var_CXX=no
  13229. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13230. export_dynamic_flag_spec_CXX='$wl-E'
  13231. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13232. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13233. # default) and relocated if they conflict, which is a slow very memory
  13234. # consuming and fragmenting process. To avoid this, we pick a random,
  13235. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13236. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13237. 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'
  13238. 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'
  13239. ;;
  13240. irix5* | irix6*)
  13241. case $cc_basename in
  13242. CC*)
  13243. # SGI C++
  13244. 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'
  13245. # Archives containing C++ object files must be created using
  13246. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13247. # necessary to make sure instantiated templates are included
  13248. # in the archive.
  13249. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13250. ;;
  13251. *)
  13252. if test yes = "$GXX"; then
  13253. if test no = "$with_gnu_ld"; then
  13254. 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'
  13255. else
  13256. 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'
  13257. fi
  13258. fi
  13259. link_all_deplibs_CXX=yes
  13260. ;;
  13261. esac
  13262. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13263. hardcode_libdir_separator_CXX=:
  13264. inherit_rpath_CXX=yes
  13265. ;;
  13266. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13267. case $cc_basename in
  13268. KCC*)
  13269. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13270. # KCC will only create a shared library if the output file
  13271. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13272. # to its proper name (with version) after linking.
  13273. 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'
  13274. 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'
  13275. # Commands to make compiler produce verbose output that lists
  13276. # what "hidden" libraries, object files and flags are used when
  13277. # linking a shared library.
  13278. #
  13279. # There doesn't appear to be a way to prevent this compiler from
  13280. # explicitly linking system object files so we need to strip them
  13281. # from the output so that they don't get included in the library
  13282. # dependencies.
  13283. 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"'
  13284. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13285. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13286. # Archives containing C++ object files must be created using
  13287. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13288. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13289. ;;
  13290. icpc* | ecpc* )
  13291. # Intel C++
  13292. with_gnu_ld=yes
  13293. # version 8.0 and above of icpc choke on multiply defined symbols
  13294. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13295. # earlier do not add the objects themselves.
  13296. case `$CC -V 2>&1` in
  13297. *"Version 7."*)
  13298. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13299. 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'
  13300. ;;
  13301. *) # Version 8.0 or newer
  13302. tmp_idyn=
  13303. case $host_cpu in
  13304. ia64*) tmp_idyn=' -i_dynamic';;
  13305. esac
  13306. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13307. 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'
  13308. ;;
  13309. esac
  13310. archive_cmds_need_lc_CXX=no
  13311. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13312. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13313. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13314. ;;
  13315. pgCC* | pgcpp*)
  13316. # Portland Group C++ compiler
  13317. case `$CC -V` in
  13318. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13319. prelink_cmds_CXX='tpldir=Template.dir~
  13320. rm -rf $tpldir~
  13321. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13322. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13323. old_archive_cmds_CXX='tpldir=Template.dir~
  13324. rm -rf $tpldir~
  13325. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13326. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13327. $RANLIB $oldlib'
  13328. archive_cmds_CXX='tpldir=Template.dir~
  13329. rm -rf $tpldir~
  13330. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13331. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13332. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13333. rm -rf $tpldir~
  13334. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13335. $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'
  13336. ;;
  13337. *) # Version 6 and above use weak symbols
  13338. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13339. 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'
  13340. ;;
  13341. esac
  13342. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13343. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13344. 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'
  13345. ;;
  13346. cxx*)
  13347. # Compaq C++
  13348. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13349. 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'
  13350. runpath_var=LD_RUN_PATH
  13351. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13352. hardcode_libdir_separator_CXX=:
  13353. # Commands to make compiler produce verbose output that lists
  13354. # what "hidden" libraries, object files and flags are used when
  13355. # linking a shared library.
  13356. #
  13357. # There doesn't appear to be a way to prevent this compiler from
  13358. # explicitly linking system object files so we need to strip them
  13359. # from the output so that they don't get included in the library
  13360. # dependencies.
  13361. 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'
  13362. ;;
  13363. xl* | mpixl* | bgxl*)
  13364. # IBM XL 8.0 on PPC, with GNU ld
  13365. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13366. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13367. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13368. if test yes = "$supports_anon_versioning"; then
  13369. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13370. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13371. echo "local: *; };" >> $output_objdir/$libname.ver~
  13372. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13373. fi
  13374. ;;
  13375. *)
  13376. case `$CC -V 2>&1 | sed 5q` in
  13377. *Sun\ C*)
  13378. # Sun C++ 5.9
  13379. no_undefined_flag_CXX=' -zdefs'
  13380. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13381. 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'
  13382. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13383. 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'
  13384. compiler_needs_object_CXX=yes
  13385. # Not sure whether something based on
  13386. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13387. # would be better.
  13388. output_verbose_link_cmd='func_echo_all'
  13389. # Archives containing C++ object files must be created using
  13390. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13391. # necessary to make sure instantiated templates are included
  13392. # in the archive.
  13393. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13394. ;;
  13395. esac
  13396. ;;
  13397. esac
  13398. ;;
  13399. lynxos*)
  13400. # FIXME: insert proper C++ library support
  13401. ld_shlibs_CXX=no
  13402. ;;
  13403. m88k*)
  13404. # FIXME: insert proper C++ library support
  13405. ld_shlibs_CXX=no
  13406. ;;
  13407. mvs*)
  13408. case $cc_basename in
  13409. cxx*)
  13410. # FIXME: insert proper C++ library support
  13411. ld_shlibs_CXX=no
  13412. ;;
  13413. *)
  13414. # FIXME: insert proper C++ library support
  13415. ld_shlibs_CXX=no
  13416. ;;
  13417. esac
  13418. ;;
  13419. netbsd*)
  13420. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13421. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13422. wlarc=
  13423. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13424. hardcode_direct_CXX=yes
  13425. hardcode_shlibpath_var_CXX=no
  13426. fi
  13427. # Workaround some broken pre-1.5 toolchains
  13428. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13429. ;;
  13430. *nto* | *qnx*)
  13431. ld_shlibs_CXX=yes
  13432. ;;
  13433. openbsd* | bitrig*)
  13434. if test -f /usr/libexec/ld.so; then
  13435. hardcode_direct_CXX=yes
  13436. hardcode_shlibpath_var_CXX=no
  13437. hardcode_direct_absolute_CXX=yes
  13438. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13439. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13440. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13441. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13442. export_dynamic_flag_spec_CXX='$wl-E'
  13443. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13444. fi
  13445. output_verbose_link_cmd=func_echo_all
  13446. else
  13447. ld_shlibs_CXX=no
  13448. fi
  13449. ;;
  13450. osf3* | osf4* | osf5*)
  13451. case $cc_basename in
  13452. KCC*)
  13453. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13454. # KCC will only create a shared library if the output file
  13455. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13456. # to its proper name (with version) after linking.
  13457. 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'
  13458. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13459. hardcode_libdir_separator_CXX=:
  13460. # Archives containing C++ object files must be created using
  13461. # the KAI C++ compiler.
  13462. case $host in
  13463. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13464. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13465. esac
  13466. ;;
  13467. RCC*)
  13468. # Rational C++ 2.4.1
  13469. # FIXME: insert proper C++ library support
  13470. ld_shlibs_CXX=no
  13471. ;;
  13472. cxx*)
  13473. case $host in
  13474. osf3*)
  13475. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13476. 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'
  13477. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13478. ;;
  13479. *)
  13480. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13481. 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'
  13482. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13483. echo "-hidden">> $lib.exp~
  13484. $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~
  13485. $RM $lib.exp'
  13486. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13487. ;;
  13488. esac
  13489. hardcode_libdir_separator_CXX=:
  13490. # Commands to make compiler produce verbose output that lists
  13491. # what "hidden" libraries, object files and flags are used when
  13492. # linking a shared library.
  13493. #
  13494. # There doesn't appear to be a way to prevent this compiler from
  13495. # explicitly linking system object files so we need to strip them
  13496. # from the output so that they don't get included in the library
  13497. # dependencies.
  13498. 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"'
  13499. ;;
  13500. *)
  13501. if test yes,no = "$GXX,$with_gnu_ld"; then
  13502. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13503. case $host in
  13504. osf3*)
  13505. 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'
  13506. ;;
  13507. *)
  13508. 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'
  13509. ;;
  13510. esac
  13511. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13512. hardcode_libdir_separator_CXX=:
  13513. # Commands to make compiler produce verbose output that lists
  13514. # what "hidden" libraries, object files and flags are used when
  13515. # linking a shared library.
  13516. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13517. else
  13518. # FIXME: insert proper C++ library support
  13519. ld_shlibs_CXX=no
  13520. fi
  13521. ;;
  13522. esac
  13523. ;;
  13524. psos*)
  13525. # FIXME: insert proper C++ library support
  13526. ld_shlibs_CXX=no
  13527. ;;
  13528. sunos4*)
  13529. case $cc_basename in
  13530. CC*)
  13531. # Sun C++ 4.x
  13532. # FIXME: insert proper C++ library support
  13533. ld_shlibs_CXX=no
  13534. ;;
  13535. lcc*)
  13536. # Lucid
  13537. # FIXME: insert proper C++ library support
  13538. ld_shlibs_CXX=no
  13539. ;;
  13540. *)
  13541. # FIXME: insert proper C++ library support
  13542. ld_shlibs_CXX=no
  13543. ;;
  13544. esac
  13545. ;;
  13546. solaris*)
  13547. case $cc_basename in
  13548. CC* | sunCC*)
  13549. # Sun C++ 4.2, 5.x and Centerline C++
  13550. archive_cmds_need_lc_CXX=yes
  13551. no_undefined_flag_CXX=' -zdefs'
  13552. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13553. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13554. $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'
  13555. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13556. hardcode_shlibpath_var_CXX=no
  13557. case $host_os in
  13558. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13559. *)
  13560. # The compiler driver will combine and reorder linker options,
  13561. # but understands '-z linker_flag'.
  13562. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13563. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13564. ;;
  13565. esac
  13566. link_all_deplibs_CXX=yes
  13567. output_verbose_link_cmd='func_echo_all'
  13568. # Archives containing C++ object files must be created using
  13569. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13570. # necessary to make sure instantiated templates are included
  13571. # in the archive.
  13572. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13573. ;;
  13574. gcx*)
  13575. # Green Hills C++ Compiler
  13576. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13577. # The C++ compiler must be used to create the archive.
  13578. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13579. ;;
  13580. *)
  13581. # GNU C++ compiler with Solaris linker
  13582. if test yes,no = "$GXX,$with_gnu_ld"; then
  13583. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13584. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13585. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13586. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13587. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13588. # Commands to make compiler produce verbose output that lists
  13589. # what "hidden" libraries, object files and flags are used when
  13590. # linking a shared library.
  13591. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13592. else
  13593. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13594. # platform.
  13595. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13596. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13597. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13598. # Commands to make compiler produce verbose output that lists
  13599. # what "hidden" libraries, object files and flags are used when
  13600. # linking a shared library.
  13601. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13602. fi
  13603. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13604. case $host_os in
  13605. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13606. *)
  13607. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13608. ;;
  13609. esac
  13610. fi
  13611. ;;
  13612. esac
  13613. ;;
  13614. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13615. no_undefined_flag_CXX='$wl-z,text'
  13616. archive_cmds_need_lc_CXX=no
  13617. hardcode_shlibpath_var_CXX=no
  13618. runpath_var='LD_RUN_PATH'
  13619. case $cc_basename in
  13620. CC*)
  13621. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13622. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13623. ;;
  13624. *)
  13625. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13626. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13627. ;;
  13628. esac
  13629. ;;
  13630. sysv5* | sco3.2v5* | sco5v6*)
  13631. # Note: We CANNOT use -z defs as we might desire, because we do not
  13632. # link with -lc, and that would cause any symbols used from libc to
  13633. # always be unresolved, which means just about no library would
  13634. # ever link correctly. If we're not using GNU ld we use -z text
  13635. # though, which does catch some bad symbols but isn't as heavy-handed
  13636. # as -z defs.
  13637. no_undefined_flag_CXX='$wl-z,text'
  13638. allow_undefined_flag_CXX='$wl-z,nodefs'
  13639. archive_cmds_need_lc_CXX=no
  13640. hardcode_shlibpath_var_CXX=no
  13641. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13642. hardcode_libdir_separator_CXX=':'
  13643. link_all_deplibs_CXX=yes
  13644. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13645. runpath_var='LD_RUN_PATH'
  13646. case $cc_basename in
  13647. CC*)
  13648. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13649. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13650. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13651. '"$old_archive_cmds_CXX"
  13652. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13653. '"$reload_cmds_CXX"
  13654. ;;
  13655. *)
  13656. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13657. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13658. ;;
  13659. esac
  13660. ;;
  13661. tandem*)
  13662. case $cc_basename in
  13663. NCC*)
  13664. # NonStop-UX NCC 3.20
  13665. # FIXME: insert proper C++ library support
  13666. ld_shlibs_CXX=no
  13667. ;;
  13668. *)
  13669. # FIXME: insert proper C++ library support
  13670. ld_shlibs_CXX=no
  13671. ;;
  13672. esac
  13673. ;;
  13674. vxworks*)
  13675. # FIXME: insert proper C++ library support
  13676. ld_shlibs_CXX=no
  13677. ;;
  13678. *)
  13679. # FIXME: insert proper C++ library support
  13680. ld_shlibs_CXX=no
  13681. ;;
  13682. esac
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13684. $as_echo "$ld_shlibs_CXX" >&6; }
  13685. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13686. GCC_CXX=$GXX
  13687. LD_CXX=$LD
  13688. ## CAVEAT EMPTOR:
  13689. ## There is no encapsulation within the following macros, do not change
  13690. ## the running order or otherwise move them around unless you know exactly
  13691. ## what you are doing...
  13692. # Dependencies to place before and after the object being linked:
  13693. predep_objects_CXX=
  13694. postdep_objects_CXX=
  13695. predeps_CXX=
  13696. postdeps_CXX=
  13697. compiler_lib_search_path_CXX=
  13698. cat > conftest.$ac_ext <<_LT_EOF
  13699. class Foo
  13700. {
  13701. public:
  13702. Foo (void) { a = 0; }
  13703. private:
  13704. int a;
  13705. };
  13706. _LT_EOF
  13707. _lt_libdeps_save_CFLAGS=$CFLAGS
  13708. case "$CC $CFLAGS " in #(
  13709. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13710. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13711. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13712. esac
  13713. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13714. (eval $ac_compile) 2>&5
  13715. ac_status=$?
  13716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13717. test $ac_status = 0; }; then
  13718. # Parse the compiler output and extract the necessary
  13719. # objects, libraries and library flags.
  13720. # Sentinel used to keep track of whether or not we are before
  13721. # the conftest object file.
  13722. pre_test_object_deps_done=no
  13723. for p in `eval "$output_verbose_link_cmd"`; do
  13724. case $prev$p in
  13725. -L* | -R* | -l*)
  13726. # Some compilers place space between "-{L,R}" and the path.
  13727. # Remove the space.
  13728. if test x-L = "$p" ||
  13729. test x-R = "$p"; then
  13730. prev=$p
  13731. continue
  13732. fi
  13733. # Expand the sysroot to ease extracting the directories later.
  13734. if test -z "$prev"; then
  13735. case $p in
  13736. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13737. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13738. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13739. esac
  13740. fi
  13741. case $p in
  13742. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13743. esac
  13744. if test no = "$pre_test_object_deps_done"; then
  13745. case $prev in
  13746. -L | -R)
  13747. # Internal compiler library paths should come after those
  13748. # provided the user. The postdeps already come after the
  13749. # user supplied libs so there is no need to process them.
  13750. if test -z "$compiler_lib_search_path_CXX"; then
  13751. compiler_lib_search_path_CXX=$prev$p
  13752. else
  13753. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13754. fi
  13755. ;;
  13756. # The "-l" case would never come before the object being
  13757. # linked, so don't bother handling this case.
  13758. esac
  13759. else
  13760. if test -z "$postdeps_CXX"; then
  13761. postdeps_CXX=$prev$p
  13762. else
  13763. postdeps_CXX="${postdeps_CXX} $prev$p"
  13764. fi
  13765. fi
  13766. prev=
  13767. ;;
  13768. *.lto.$objext) ;; # Ignore GCC LTO objects
  13769. *.$objext)
  13770. # This assumes that the test object file only shows up
  13771. # once in the compiler output.
  13772. if test "$p" = "conftest.$objext"; then
  13773. pre_test_object_deps_done=yes
  13774. continue
  13775. fi
  13776. if test no = "$pre_test_object_deps_done"; then
  13777. if test -z "$predep_objects_CXX"; then
  13778. predep_objects_CXX=$p
  13779. else
  13780. predep_objects_CXX="$predep_objects_CXX $p"
  13781. fi
  13782. else
  13783. if test -z "$postdep_objects_CXX"; then
  13784. postdep_objects_CXX=$p
  13785. else
  13786. postdep_objects_CXX="$postdep_objects_CXX $p"
  13787. fi
  13788. fi
  13789. ;;
  13790. *) ;; # Ignore the rest.
  13791. esac
  13792. done
  13793. # Clean up.
  13794. rm -f a.out a.exe
  13795. else
  13796. echo "libtool.m4: error: problem compiling CXX test program"
  13797. fi
  13798. $RM -f confest.$objext
  13799. CFLAGS=$_lt_libdeps_save_CFLAGS
  13800. # PORTME: override above test on systems where it is broken
  13801. case $host_os in
  13802. interix[3-9]*)
  13803. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13804. # hack all around it, let's just trust "g++" to DTRT.
  13805. predep_objects_CXX=
  13806. postdep_objects_CXX=
  13807. postdeps_CXX=
  13808. ;;
  13809. esac
  13810. case " $postdeps_CXX " in
  13811. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13812. esac
  13813. compiler_lib_search_dirs_CXX=
  13814. if test -n "${compiler_lib_search_path_CXX}"; then
  13815. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13816. fi
  13817. lt_prog_compiler_wl_CXX=
  13818. lt_prog_compiler_pic_CXX=
  13819. lt_prog_compiler_static_CXX=
  13820. # C++ specific cases for pic, static, wl, etc.
  13821. if test yes = "$GXX"; then
  13822. lt_prog_compiler_wl_CXX='-Wl,'
  13823. lt_prog_compiler_static_CXX='-static'
  13824. case $host_os in
  13825. aix*)
  13826. # All AIX code is PIC.
  13827. if test ia64 = "$host_cpu"; then
  13828. # AIX 5 now supports IA64 processor
  13829. lt_prog_compiler_static_CXX='-Bstatic'
  13830. fi
  13831. lt_prog_compiler_pic_CXX='-fPIC'
  13832. ;;
  13833. amigaos*)
  13834. case $host_cpu in
  13835. powerpc)
  13836. # see comment about AmigaOS4 .so support
  13837. lt_prog_compiler_pic_CXX='-fPIC'
  13838. ;;
  13839. m68k)
  13840. # FIXME: we need at least 68020 code to build shared libraries, but
  13841. # adding the '-m68020' flag to GCC prevents building anything better,
  13842. # like '-m68040'.
  13843. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13844. ;;
  13845. esac
  13846. ;;
  13847. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13848. # PIC is the default for these OSes.
  13849. ;;
  13850. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13851. # This hack is so that the source file can tell whether it is being
  13852. # built for inclusion in a dll (and should export symbols for example).
  13853. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13854. # (--disable-auto-import) libraries
  13855. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13856. case $host_os in
  13857. os2*)
  13858. lt_prog_compiler_static_CXX='$wl-static'
  13859. ;;
  13860. esac
  13861. ;;
  13862. darwin* | rhapsody*)
  13863. # PIC is the default on this platform
  13864. # Common symbols not allowed in MH_DYLIB files
  13865. lt_prog_compiler_pic_CXX='-fno-common'
  13866. ;;
  13867. *djgpp*)
  13868. # DJGPP does not support shared libraries at all
  13869. lt_prog_compiler_pic_CXX=
  13870. ;;
  13871. haiku*)
  13872. # PIC is the default for Haiku.
  13873. # The "-static" flag exists, but is broken.
  13874. lt_prog_compiler_static_CXX=
  13875. ;;
  13876. interix[3-9]*)
  13877. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13878. # Instead, we relocate shared libraries at runtime.
  13879. ;;
  13880. sysv4*MP*)
  13881. if test -d /usr/nec; then
  13882. lt_prog_compiler_pic_CXX=-Kconform_pic
  13883. fi
  13884. ;;
  13885. hpux*)
  13886. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13887. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13888. # sets the default TLS model and affects inlining.
  13889. case $host_cpu in
  13890. hppa*64*)
  13891. ;;
  13892. *)
  13893. lt_prog_compiler_pic_CXX='-fPIC'
  13894. ;;
  13895. esac
  13896. ;;
  13897. *qnx* | *nto*)
  13898. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13899. # it will coredump.
  13900. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13901. ;;
  13902. *)
  13903. lt_prog_compiler_pic_CXX='-fPIC'
  13904. ;;
  13905. esac
  13906. else
  13907. case $host_os in
  13908. aix[4-9]*)
  13909. # All AIX code is PIC.
  13910. if test ia64 = "$host_cpu"; then
  13911. # AIX 5 now supports IA64 processor
  13912. lt_prog_compiler_static_CXX='-Bstatic'
  13913. else
  13914. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13915. fi
  13916. ;;
  13917. chorus*)
  13918. case $cc_basename in
  13919. cxch68*)
  13920. # Green Hills C++ Compiler
  13921. # _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"
  13922. ;;
  13923. esac
  13924. ;;
  13925. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13926. # This hack is so that the source file can tell whether it is being
  13927. # built for inclusion in a dll (and should export symbols for example).
  13928. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13929. ;;
  13930. dgux*)
  13931. case $cc_basename in
  13932. ec++*)
  13933. lt_prog_compiler_pic_CXX='-KPIC'
  13934. ;;
  13935. ghcx*)
  13936. # Green Hills C++ Compiler
  13937. lt_prog_compiler_pic_CXX='-pic'
  13938. ;;
  13939. *)
  13940. ;;
  13941. esac
  13942. ;;
  13943. freebsd* | dragonfly*)
  13944. # FreeBSD uses GNU C++
  13945. ;;
  13946. hpux9* | hpux10* | hpux11*)
  13947. case $cc_basename in
  13948. CC*)
  13949. lt_prog_compiler_wl_CXX='-Wl,'
  13950. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13951. if test ia64 != "$host_cpu"; then
  13952. lt_prog_compiler_pic_CXX='+Z'
  13953. fi
  13954. ;;
  13955. aCC*)
  13956. lt_prog_compiler_wl_CXX='-Wl,'
  13957. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13958. case $host_cpu in
  13959. hppa*64*|ia64*)
  13960. # +Z the default
  13961. ;;
  13962. *)
  13963. lt_prog_compiler_pic_CXX='+Z'
  13964. ;;
  13965. esac
  13966. ;;
  13967. *)
  13968. ;;
  13969. esac
  13970. ;;
  13971. interix*)
  13972. # This is c89, which is MS Visual C++ (no shared libs)
  13973. # Anyone wants to do a port?
  13974. ;;
  13975. irix5* | irix6* | nonstopux*)
  13976. case $cc_basename in
  13977. CC*)
  13978. lt_prog_compiler_wl_CXX='-Wl,'
  13979. lt_prog_compiler_static_CXX='-non_shared'
  13980. # CC pic flag -KPIC is the default.
  13981. ;;
  13982. *)
  13983. ;;
  13984. esac
  13985. ;;
  13986. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13987. case $cc_basename in
  13988. KCC*)
  13989. # KAI C++ Compiler
  13990. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13991. lt_prog_compiler_pic_CXX='-fPIC'
  13992. ;;
  13993. ecpc* )
  13994. # old Intel C++ for x86_64, which still supported -KPIC.
  13995. lt_prog_compiler_wl_CXX='-Wl,'
  13996. lt_prog_compiler_pic_CXX='-KPIC'
  13997. lt_prog_compiler_static_CXX='-static'
  13998. ;;
  13999. icpc* )
  14000. # Intel C++, used to be incompatible with GCC.
  14001. # ICC 10 doesn't accept -KPIC any more.
  14002. lt_prog_compiler_wl_CXX='-Wl,'
  14003. lt_prog_compiler_pic_CXX='-fPIC'
  14004. lt_prog_compiler_static_CXX='-static'
  14005. ;;
  14006. pgCC* | pgcpp*)
  14007. # Portland Group C++ compiler
  14008. lt_prog_compiler_wl_CXX='-Wl,'
  14009. lt_prog_compiler_pic_CXX='-fpic'
  14010. lt_prog_compiler_static_CXX='-Bstatic'
  14011. ;;
  14012. cxx*)
  14013. # Compaq C++
  14014. # Make sure the PIC flag is empty. It appears that all Alpha
  14015. # Linux and Compaq Tru64 Unix objects are PIC.
  14016. lt_prog_compiler_pic_CXX=
  14017. lt_prog_compiler_static_CXX='-non_shared'
  14018. ;;
  14019. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14020. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14021. lt_prog_compiler_wl_CXX='-Wl,'
  14022. lt_prog_compiler_pic_CXX='-qpic'
  14023. lt_prog_compiler_static_CXX='-qstaticlink'
  14024. ;;
  14025. *)
  14026. case `$CC -V 2>&1 | sed 5q` in
  14027. *Sun\ C*)
  14028. # Sun C++ 5.9
  14029. lt_prog_compiler_pic_CXX='-KPIC'
  14030. lt_prog_compiler_static_CXX='-Bstatic'
  14031. lt_prog_compiler_wl_CXX='-Qoption ld '
  14032. ;;
  14033. esac
  14034. ;;
  14035. esac
  14036. ;;
  14037. lynxos*)
  14038. ;;
  14039. m88k*)
  14040. ;;
  14041. mvs*)
  14042. case $cc_basename in
  14043. cxx*)
  14044. lt_prog_compiler_pic_CXX='-W c,exportall'
  14045. ;;
  14046. *)
  14047. ;;
  14048. esac
  14049. ;;
  14050. netbsd*)
  14051. ;;
  14052. *qnx* | *nto*)
  14053. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14054. # it will coredump.
  14055. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14056. ;;
  14057. osf3* | osf4* | osf5*)
  14058. case $cc_basename in
  14059. KCC*)
  14060. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14061. ;;
  14062. RCC*)
  14063. # Rational C++ 2.4.1
  14064. lt_prog_compiler_pic_CXX='-pic'
  14065. ;;
  14066. cxx*)
  14067. # Digital/Compaq C++
  14068. lt_prog_compiler_wl_CXX='-Wl,'
  14069. # Make sure the PIC flag is empty. It appears that all Alpha
  14070. # Linux and Compaq Tru64 Unix objects are PIC.
  14071. lt_prog_compiler_pic_CXX=
  14072. lt_prog_compiler_static_CXX='-non_shared'
  14073. ;;
  14074. *)
  14075. ;;
  14076. esac
  14077. ;;
  14078. psos*)
  14079. ;;
  14080. solaris*)
  14081. case $cc_basename in
  14082. CC* | sunCC*)
  14083. # Sun C++ 4.2, 5.x and Centerline C++
  14084. lt_prog_compiler_pic_CXX='-KPIC'
  14085. lt_prog_compiler_static_CXX='-Bstatic'
  14086. lt_prog_compiler_wl_CXX='-Qoption ld '
  14087. ;;
  14088. gcx*)
  14089. # Green Hills C++ Compiler
  14090. lt_prog_compiler_pic_CXX='-PIC'
  14091. ;;
  14092. *)
  14093. ;;
  14094. esac
  14095. ;;
  14096. sunos4*)
  14097. case $cc_basename in
  14098. CC*)
  14099. # Sun C++ 4.x
  14100. lt_prog_compiler_pic_CXX='-pic'
  14101. lt_prog_compiler_static_CXX='-Bstatic'
  14102. ;;
  14103. lcc*)
  14104. # Lucid
  14105. lt_prog_compiler_pic_CXX='-pic'
  14106. ;;
  14107. *)
  14108. ;;
  14109. esac
  14110. ;;
  14111. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14112. case $cc_basename in
  14113. CC*)
  14114. lt_prog_compiler_wl_CXX='-Wl,'
  14115. lt_prog_compiler_pic_CXX='-KPIC'
  14116. lt_prog_compiler_static_CXX='-Bstatic'
  14117. ;;
  14118. esac
  14119. ;;
  14120. tandem*)
  14121. case $cc_basename in
  14122. NCC*)
  14123. # NonStop-UX NCC 3.20
  14124. lt_prog_compiler_pic_CXX='-KPIC'
  14125. ;;
  14126. *)
  14127. ;;
  14128. esac
  14129. ;;
  14130. vxworks*)
  14131. ;;
  14132. *)
  14133. lt_prog_compiler_can_build_shared_CXX=no
  14134. ;;
  14135. esac
  14136. fi
  14137. case $host_os in
  14138. # For platforms that do not support PIC, -DPIC is meaningless:
  14139. *djgpp*)
  14140. lt_prog_compiler_pic_CXX=
  14141. ;;
  14142. *)
  14143. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14144. ;;
  14145. esac
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14147. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  14148. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14152. fi
  14153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14154. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14155. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14156. #
  14157. # Check to make sure the PIC flag actually works.
  14158. #
  14159. if test -n "$lt_prog_compiler_pic_CXX"; then
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14161. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14162. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  14163. $as_echo_n "(cached) " >&6
  14164. else
  14165. lt_cv_prog_compiler_pic_works_CXX=no
  14166. ac_outfile=conftest.$ac_objext
  14167. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14168. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14169. # Insert the option either (1) after the last *FLAGS variable, or
  14170. # (2) before a word containing "conftest.", or (3) at the end.
  14171. # Note that $ac_compile itself does not contain backslashes and begins
  14172. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14173. # The option is referenced via a variable to avoid confusing sed.
  14174. lt_compile=`echo "$ac_compile" | $SED \
  14175. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14176. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14177. -e 's:$: $lt_compiler_flag:'`
  14178. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14179. (eval "$lt_compile" 2>conftest.err)
  14180. ac_status=$?
  14181. cat conftest.err >&5
  14182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14183. if (exit $ac_status) && test -s "$ac_outfile"; then
  14184. # The compiler can only warn and ignore the option if not recognized
  14185. # So say no if there are warnings other than the usual output.
  14186. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14187. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14188. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14189. lt_cv_prog_compiler_pic_works_CXX=yes
  14190. fi
  14191. fi
  14192. $RM conftest*
  14193. fi
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14195. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14196. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14197. case $lt_prog_compiler_pic_CXX in
  14198. "" | " "*) ;;
  14199. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14200. esac
  14201. else
  14202. lt_prog_compiler_pic_CXX=
  14203. lt_prog_compiler_can_build_shared_CXX=no
  14204. fi
  14205. fi
  14206. #
  14207. # Check to make sure the static flag actually works.
  14208. #
  14209. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14211. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14212. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  14213. $as_echo_n "(cached) " >&6
  14214. else
  14215. lt_cv_prog_compiler_static_works_CXX=no
  14216. save_LDFLAGS=$LDFLAGS
  14217. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14218. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14219. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14220. # The linker can only warn and ignore the option if not recognized
  14221. # So say no if there are warnings
  14222. if test -s conftest.err; then
  14223. # Append any errors to the config.log.
  14224. cat conftest.err 1>&5
  14225. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14226. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14227. if diff conftest.exp conftest.er2 >/dev/null; then
  14228. lt_cv_prog_compiler_static_works_CXX=yes
  14229. fi
  14230. else
  14231. lt_cv_prog_compiler_static_works_CXX=yes
  14232. fi
  14233. fi
  14234. $RM -r conftest*
  14235. LDFLAGS=$save_LDFLAGS
  14236. fi
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14238. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14239. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14240. :
  14241. else
  14242. lt_prog_compiler_static_CXX=
  14243. fi
  14244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14245. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14246. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14247. $as_echo_n "(cached) " >&6
  14248. else
  14249. lt_cv_prog_compiler_c_o_CXX=no
  14250. $RM -r conftest 2>/dev/null
  14251. mkdir conftest
  14252. cd conftest
  14253. mkdir out
  14254. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14255. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14256. # Insert the option either (1) after the last *FLAGS variable, or
  14257. # (2) before a word containing "conftest.", or (3) at the end.
  14258. # Note that $ac_compile itself does not contain backslashes and begins
  14259. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14260. lt_compile=`echo "$ac_compile" | $SED \
  14261. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14262. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14263. -e 's:$: $lt_compiler_flag:'`
  14264. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14265. (eval "$lt_compile" 2>out/conftest.err)
  14266. ac_status=$?
  14267. cat out/conftest.err >&5
  14268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14269. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14270. then
  14271. # The compiler can only warn and ignore the option if not recognized
  14272. # So say no if there are warnings
  14273. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14274. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14275. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14276. lt_cv_prog_compiler_c_o_CXX=yes
  14277. fi
  14278. fi
  14279. chmod u+w . 2>&5
  14280. $RM conftest*
  14281. # SGI C++ compiler will create directory out/ii_files/ for
  14282. # template instantiation
  14283. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14284. $RM out/* && rmdir out
  14285. cd ..
  14286. $RM -r conftest
  14287. $RM conftest*
  14288. fi
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14290. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14292. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14293. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  14294. $as_echo_n "(cached) " >&6
  14295. else
  14296. lt_cv_prog_compiler_c_o_CXX=no
  14297. $RM -r conftest 2>/dev/null
  14298. mkdir conftest
  14299. cd conftest
  14300. mkdir out
  14301. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14302. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14303. # Insert the option either (1) after the last *FLAGS variable, or
  14304. # (2) before a word containing "conftest.", or (3) at the end.
  14305. # Note that $ac_compile itself does not contain backslashes and begins
  14306. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14307. lt_compile=`echo "$ac_compile" | $SED \
  14308. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14309. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14310. -e 's:$: $lt_compiler_flag:'`
  14311. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14312. (eval "$lt_compile" 2>out/conftest.err)
  14313. ac_status=$?
  14314. cat out/conftest.err >&5
  14315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14316. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14317. then
  14318. # The compiler can only warn and ignore the option if not recognized
  14319. # So say no if there are warnings
  14320. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14321. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14322. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14323. lt_cv_prog_compiler_c_o_CXX=yes
  14324. fi
  14325. fi
  14326. chmod u+w . 2>&5
  14327. $RM conftest*
  14328. # SGI C++ compiler will create directory out/ii_files/ for
  14329. # template instantiation
  14330. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14331. $RM out/* && rmdir out
  14332. cd ..
  14333. $RM -r conftest
  14334. $RM conftest*
  14335. fi
  14336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14337. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14338. hard_links=nottested
  14339. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14340. # do not overwrite the value of need_locks provided by the user
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14342. $as_echo_n "checking if we can lock with hard links... " >&6; }
  14343. hard_links=yes
  14344. $RM conftest*
  14345. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14346. touch conftest.a
  14347. ln conftest.a conftest.b 2>&5 || hard_links=no
  14348. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14350. $as_echo "$hard_links" >&6; }
  14351. if test no = "$hard_links"; then
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14353. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14354. need_locks=warn
  14355. fi
  14356. else
  14357. need_locks=no
  14358. fi
  14359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14360. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14361. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14362. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14363. case $host_os in
  14364. aix[4-9]*)
  14365. # If we're using GNU nm, then we don't want the "-C" option.
  14366. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14367. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14368. # weak defined symbols like other global defined symbols, whereas
  14369. # GNU nm marks them as "W".
  14370. # While the 'weak' keyword is ignored in the Export File, we need
  14371. # it in the Import File for the 'aix-soname' feature, so we have
  14372. # to replace the "-B" option with "-P" for AIX nm.
  14373. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14374. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14375. else
  14376. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14377. fi
  14378. ;;
  14379. pw32*)
  14380. export_symbols_cmds_CXX=$ltdll_cmds
  14381. ;;
  14382. cygwin* | mingw* | cegcc*)
  14383. case $cc_basename in
  14384. cl* | icl*)
  14385. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14386. ;;
  14387. *)
  14388. 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'
  14389. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14390. ;;
  14391. esac
  14392. ;;
  14393. *)
  14394. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14395. ;;
  14396. esac
  14397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14398. $as_echo "$ld_shlibs_CXX" >&6; }
  14399. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14400. with_gnu_ld_CXX=$with_gnu_ld
  14401. #
  14402. # Do we need to explicitly link libc?
  14403. #
  14404. case "x$archive_cmds_need_lc_CXX" in
  14405. x|xyes)
  14406. # Assume -lc should be added
  14407. archive_cmds_need_lc_CXX=yes
  14408. if test yes,yes = "$GCC,$enable_shared"; then
  14409. case $archive_cmds_CXX in
  14410. *'~'*)
  14411. # FIXME: we may have to deal with multi-command sequences.
  14412. ;;
  14413. '$CC '*)
  14414. # Test whether the compiler implicitly links with -lc since on some
  14415. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14416. # to ld, don't add -lc before -lgcc.
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14418. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14419. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  14420. $as_echo_n "(cached) " >&6
  14421. else
  14422. $RM conftest*
  14423. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14425. (eval $ac_compile) 2>&5
  14426. ac_status=$?
  14427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14428. test $ac_status = 0; } 2>conftest.err; then
  14429. soname=conftest
  14430. lib=conftest
  14431. libobjs=conftest.$ac_objext
  14432. deplibs=
  14433. wl=$lt_prog_compiler_wl_CXX
  14434. pic_flag=$lt_prog_compiler_pic_CXX
  14435. compiler_flags=-v
  14436. linker_flags=-v
  14437. verstring=
  14438. output_objdir=.
  14439. libname=conftest
  14440. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14441. allow_undefined_flag_CXX=
  14442. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14443. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14444. ac_status=$?
  14445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14446. test $ac_status = 0; }
  14447. then
  14448. lt_cv_archive_cmds_need_lc_CXX=no
  14449. else
  14450. lt_cv_archive_cmds_need_lc_CXX=yes
  14451. fi
  14452. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14453. else
  14454. cat conftest.err 1>&5
  14455. fi
  14456. $RM conftest*
  14457. fi
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14459. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14460. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14461. ;;
  14462. esac
  14463. fi
  14464. ;;
  14465. esac
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14467. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14468. library_names_spec=
  14469. libname_spec='lib$name'
  14470. soname_spec=
  14471. shrext_cmds=.so
  14472. postinstall_cmds=
  14473. postuninstall_cmds=
  14474. finish_cmds=
  14475. finish_eval=
  14476. shlibpath_var=
  14477. shlibpath_overrides_runpath=unknown
  14478. version_type=none
  14479. dynamic_linker="$host_os ld.so"
  14480. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14481. need_lib_prefix=unknown
  14482. hardcode_into_libs=no
  14483. # when you set need_version to no, make sure it does not cause -set_version
  14484. # flags to be left without arguments
  14485. need_version=unknown
  14486. case $host_os in
  14487. aix3*)
  14488. version_type=linux # correct to gnu/linux during the next big refactor
  14489. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14490. shlibpath_var=LIBPATH
  14491. # AIX 3 has no versioning support, so we append a major version to the name.
  14492. soname_spec='$libname$release$shared_ext$major'
  14493. ;;
  14494. aix[4-9]*)
  14495. version_type=linux # correct to gnu/linux during the next big refactor
  14496. need_lib_prefix=no
  14497. need_version=no
  14498. hardcode_into_libs=yes
  14499. if test ia64 = "$host_cpu"; then
  14500. # AIX 5 supports IA64
  14501. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14502. shlibpath_var=LD_LIBRARY_PATH
  14503. else
  14504. # With GCC up to 2.95.x, collect2 would create an import file
  14505. # for dependence libraries. The import file would start with
  14506. # the line '#! .'. This would cause the generated library to
  14507. # depend on '.', always an invalid library. This was fixed in
  14508. # development snapshots of GCC prior to 3.0.
  14509. case $host_os in
  14510. aix4 | aix4.[01] | aix4.[01].*)
  14511. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14512. echo ' yes '
  14513. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14514. :
  14515. else
  14516. can_build_shared=no
  14517. fi
  14518. ;;
  14519. esac
  14520. # Using Import Files as archive members, it is possible to support
  14521. # filename-based versioning of shared library archives on AIX. While
  14522. # this would work for both with and without runtime linking, it will
  14523. # prevent static linking of such archives. So we do filename-based
  14524. # shared library versioning with .so extension only, which is used
  14525. # when both runtime linking and shared linking is enabled.
  14526. # Unfortunately, runtime linking may impact performance, so we do
  14527. # not want this to be the default eventually. Also, we use the
  14528. # versioned .so libs for executables only if there is the -brtl
  14529. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14530. # To allow for filename-based versioning support, we need to create
  14531. # libNAME.so.V as an archive file, containing:
  14532. # *) an Import File, referring to the versioned filename of the
  14533. # archive as well as the shared archive member, telling the
  14534. # bitwidth (32 or 64) of that shared object, and providing the
  14535. # list of exported symbols of that shared object, eventually
  14536. # decorated with the 'weak' keyword
  14537. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14538. # it being seen by the linker.
  14539. # At run time we better use the real file rather than another symlink,
  14540. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14541. case $with_aix_soname,$aix_use_runtimelinking in
  14542. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14543. # soname into executable. Probably we can add versioning support to
  14544. # collect2, so additional links can be useful in future.
  14545. aix,yes) # traditional libtool
  14546. dynamic_linker='AIX unversionable lib.so'
  14547. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14548. # instead of lib<name>.a to let people know that these are not
  14549. # typical AIX shared libraries.
  14550. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14551. ;;
  14552. aix,no) # traditional AIX only
  14553. dynamic_linker='AIX lib.a(lib.so.V)'
  14554. # We preserve .a as extension for shared libraries through AIX4.2
  14555. # and later when we are not doing run time linking.
  14556. library_names_spec='$libname$release.a $libname.a'
  14557. soname_spec='$libname$release$shared_ext$major'
  14558. ;;
  14559. svr4,*) # full svr4 only
  14560. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14561. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14562. # We do not specify a path in Import Files, so LIBPATH fires.
  14563. shlibpath_overrides_runpath=yes
  14564. ;;
  14565. *,yes) # both, prefer svr4
  14566. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14567. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14568. # unpreferred sharedlib libNAME.a needs extra handling
  14569. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14570. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14571. # We do not specify a path in Import Files, so LIBPATH fires.
  14572. shlibpath_overrides_runpath=yes
  14573. ;;
  14574. *,no) # both, prefer aix
  14575. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14576. library_names_spec='$libname$release.a $libname.a'
  14577. soname_spec='$libname$release$shared_ext$major'
  14578. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14579. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14580. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14581. ;;
  14582. esac
  14583. shlibpath_var=LIBPATH
  14584. fi
  14585. ;;
  14586. amigaos*)
  14587. case $host_cpu in
  14588. powerpc)
  14589. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14590. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14591. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14592. ;;
  14593. m68k)
  14594. library_names_spec='$libname.ixlibrary $libname.a'
  14595. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14596. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14597. ;;
  14598. esac
  14599. ;;
  14600. beos*)
  14601. library_names_spec='$libname$shared_ext'
  14602. dynamic_linker="$host_os ld.so"
  14603. shlibpath_var=LIBRARY_PATH
  14604. ;;
  14605. bsdi[45]*)
  14606. version_type=linux # correct to gnu/linux during the next big refactor
  14607. need_version=no
  14608. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14609. soname_spec='$libname$release$shared_ext$major'
  14610. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14611. shlibpath_var=LD_LIBRARY_PATH
  14612. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14613. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14614. # the default ld.so.conf also contains /usr/contrib/lib and
  14615. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14616. # libtool to hard-code these into programs
  14617. ;;
  14618. cygwin* | mingw* | pw32* | cegcc*)
  14619. version_type=windows
  14620. shrext_cmds=.dll
  14621. need_version=no
  14622. need_lib_prefix=no
  14623. case $GCC,$cc_basename in
  14624. yes,*)
  14625. # gcc
  14626. library_names_spec='$libname.dll.a'
  14627. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14628. postinstall_cmds='base_file=`basename \$file`~
  14629. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14630. dldir=$destdir/`dirname \$dlpath`~
  14631. test -d \$dldir || mkdir -p \$dldir~
  14632. $install_prog $dir/$dlname \$dldir/$dlname~
  14633. chmod a+x \$dldir/$dlname~
  14634. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14635. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14636. fi'
  14637. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14638. dlpath=$dir/\$dldll~
  14639. $RM \$dlpath'
  14640. shlibpath_overrides_runpath=yes
  14641. case $host_os in
  14642. cygwin*)
  14643. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14644. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14645. ;;
  14646. mingw* | cegcc*)
  14647. # MinGW DLLs use traditional 'lib' prefix
  14648. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14649. ;;
  14650. pw32*)
  14651. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14652. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14653. ;;
  14654. esac
  14655. dynamic_linker='Win32 ld.exe'
  14656. ;;
  14657. *,cl* | *,icl*)
  14658. # Native MSVC or ICC
  14659. libname_spec='$name'
  14660. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14661. library_names_spec='$libname.dll.lib'
  14662. case $build_os in
  14663. mingw*)
  14664. sys_lib_search_path_spec=
  14665. lt_save_ifs=$IFS
  14666. IFS=';'
  14667. for lt_path in $LIB
  14668. do
  14669. IFS=$lt_save_ifs
  14670. # Let DOS variable expansion print the short 8.3 style file name.
  14671. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14672. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14673. done
  14674. IFS=$lt_save_ifs
  14675. # Convert to MSYS style.
  14676. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14677. ;;
  14678. cygwin*)
  14679. # Convert to unix form, then to dos form, then back to unix form
  14680. # but this time dos style (no spaces!) so that the unix form looks
  14681. # like /cygdrive/c/PROGRA~1:/cygdr...
  14682. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14683. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14684. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14685. ;;
  14686. *)
  14687. sys_lib_search_path_spec=$LIB
  14688. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14689. # It is most probably a Windows format PATH.
  14690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14691. else
  14692. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14693. fi
  14694. # FIXME: find the short name or the path components, as spaces are
  14695. # common. (e.g. "Program Files" -> "PROGRA~1")
  14696. ;;
  14697. esac
  14698. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14699. postinstall_cmds='base_file=`basename \$file`~
  14700. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14701. dldir=$destdir/`dirname \$dlpath`~
  14702. test -d \$dldir || mkdir -p \$dldir~
  14703. $install_prog $dir/$dlname \$dldir/$dlname'
  14704. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14705. dlpath=$dir/\$dldll~
  14706. $RM \$dlpath'
  14707. shlibpath_overrides_runpath=yes
  14708. dynamic_linker='Win32 link.exe'
  14709. ;;
  14710. *)
  14711. # Assume MSVC and ICC wrapper
  14712. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14713. dynamic_linker='Win32 ld.exe'
  14714. ;;
  14715. esac
  14716. # FIXME: first we should search . and the directory the executable is in
  14717. shlibpath_var=PATH
  14718. ;;
  14719. darwin* | rhapsody*)
  14720. dynamic_linker="$host_os dyld"
  14721. version_type=darwin
  14722. need_lib_prefix=no
  14723. need_version=no
  14724. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14725. soname_spec='$libname$release$major$shared_ext'
  14726. shlibpath_overrides_runpath=yes
  14727. shlibpath_var=DYLD_LIBRARY_PATH
  14728. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14729. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14730. ;;
  14731. dgux*)
  14732. version_type=linux # correct to gnu/linux during the next big refactor
  14733. need_lib_prefix=no
  14734. need_version=no
  14735. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14736. soname_spec='$libname$release$shared_ext$major'
  14737. shlibpath_var=LD_LIBRARY_PATH
  14738. ;;
  14739. freebsd* | dragonfly*)
  14740. # DragonFly does not have aout. When/if they implement a new
  14741. # versioning mechanism, adjust this.
  14742. if test -x /usr/bin/objformat; then
  14743. objformat=`/usr/bin/objformat`
  14744. else
  14745. case $host_os in
  14746. freebsd[23].*) objformat=aout ;;
  14747. *) objformat=elf ;;
  14748. esac
  14749. fi
  14750. version_type=freebsd-$objformat
  14751. case $version_type in
  14752. freebsd-elf*)
  14753. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14754. soname_spec='$libname$release$shared_ext$major'
  14755. need_version=no
  14756. need_lib_prefix=no
  14757. ;;
  14758. freebsd-*)
  14759. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14760. need_version=yes
  14761. ;;
  14762. esac
  14763. shlibpath_var=LD_LIBRARY_PATH
  14764. case $host_os in
  14765. freebsd2.*)
  14766. shlibpath_overrides_runpath=yes
  14767. ;;
  14768. freebsd3.[01]* | freebsdelf3.[01]*)
  14769. shlibpath_overrides_runpath=yes
  14770. hardcode_into_libs=yes
  14771. ;;
  14772. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14773. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14774. shlibpath_overrides_runpath=no
  14775. hardcode_into_libs=yes
  14776. ;;
  14777. *) # from 4.6 on, and DragonFly
  14778. shlibpath_overrides_runpath=yes
  14779. hardcode_into_libs=yes
  14780. ;;
  14781. esac
  14782. ;;
  14783. haiku*)
  14784. version_type=linux # correct to gnu/linux during the next big refactor
  14785. need_lib_prefix=no
  14786. need_version=no
  14787. dynamic_linker="$host_os runtime_loader"
  14788. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14789. soname_spec='$libname$release$shared_ext$major'
  14790. shlibpath_var=LIBRARY_PATH
  14791. shlibpath_overrides_runpath=no
  14792. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14793. hardcode_into_libs=yes
  14794. ;;
  14795. hpux9* | hpux10* | hpux11*)
  14796. # Give a soname corresponding to the major version so that dld.sl refuses to
  14797. # link against other versions.
  14798. version_type=sunos
  14799. need_lib_prefix=no
  14800. need_version=no
  14801. case $host_cpu in
  14802. ia64*)
  14803. shrext_cmds='.so'
  14804. hardcode_into_libs=yes
  14805. dynamic_linker="$host_os dld.so"
  14806. shlibpath_var=LD_LIBRARY_PATH
  14807. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14808. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14809. soname_spec='$libname$release$shared_ext$major'
  14810. if test 32 = "$HPUX_IA64_MODE"; then
  14811. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14812. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14813. else
  14814. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14815. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14816. fi
  14817. ;;
  14818. hppa*64*)
  14819. shrext_cmds='.sl'
  14820. hardcode_into_libs=yes
  14821. dynamic_linker="$host_os dld.sl"
  14822. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14823. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14824. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14825. soname_spec='$libname$release$shared_ext$major'
  14826. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14827. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14828. ;;
  14829. *)
  14830. shrext_cmds='.sl'
  14831. dynamic_linker="$host_os dld.sl"
  14832. shlibpath_var=SHLIB_PATH
  14833. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14835. soname_spec='$libname$release$shared_ext$major'
  14836. ;;
  14837. esac
  14838. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14839. postinstall_cmds='chmod 555 $lib'
  14840. # or fails outright, so override atomically:
  14841. install_override_mode=555
  14842. ;;
  14843. interix[3-9]*)
  14844. version_type=linux # correct to gnu/linux during the next big refactor
  14845. need_lib_prefix=no
  14846. need_version=no
  14847. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14848. soname_spec='$libname$release$shared_ext$major'
  14849. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14850. shlibpath_var=LD_LIBRARY_PATH
  14851. shlibpath_overrides_runpath=no
  14852. hardcode_into_libs=yes
  14853. ;;
  14854. irix5* | irix6* | nonstopux*)
  14855. case $host_os in
  14856. nonstopux*) version_type=nonstopux ;;
  14857. *)
  14858. if test yes = "$lt_cv_prog_gnu_ld"; then
  14859. version_type=linux # correct to gnu/linux during the next big refactor
  14860. else
  14861. version_type=irix
  14862. fi ;;
  14863. esac
  14864. need_lib_prefix=no
  14865. need_version=no
  14866. soname_spec='$libname$release$shared_ext$major'
  14867. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14868. case $host_os in
  14869. irix5* | nonstopux*)
  14870. libsuff= shlibsuff=
  14871. ;;
  14872. *)
  14873. case $LD in # libtool.m4 will add one of these switches to LD
  14874. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14875. libsuff= shlibsuff= libmagic=32-bit;;
  14876. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14877. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14878. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14879. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14880. *) libsuff= shlibsuff= libmagic=never-match;;
  14881. esac
  14882. ;;
  14883. esac
  14884. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14885. shlibpath_overrides_runpath=no
  14886. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14887. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14888. hardcode_into_libs=yes
  14889. ;;
  14890. # No shared lib support for Linux oldld, aout, or coff.
  14891. linux*oldld* | linux*aout* | linux*coff*)
  14892. dynamic_linker=no
  14893. ;;
  14894. linux*android*)
  14895. version_type=none # Android doesn't support versioned libraries.
  14896. need_lib_prefix=no
  14897. need_version=no
  14898. library_names_spec='$libname$release$shared_ext'
  14899. soname_spec='$libname$release$shared_ext'
  14900. finish_cmds=
  14901. shlibpath_var=LD_LIBRARY_PATH
  14902. shlibpath_overrides_runpath=yes
  14903. # This implies no fast_install, which is unacceptable.
  14904. # Some rework will be needed to allow for fast_install
  14905. # before this can be enabled.
  14906. hardcode_into_libs=yes
  14907. dynamic_linker='Android linker'
  14908. # Don't embed -rpath directories since the linker doesn't support them.
  14909. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14910. ;;
  14911. # This must be glibc/ELF.
  14912. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14913. version_type=linux # correct to gnu/linux during the next big refactor
  14914. need_lib_prefix=no
  14915. need_version=no
  14916. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14917. soname_spec='$libname$release$shared_ext$major'
  14918. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14919. shlibpath_var=LD_LIBRARY_PATH
  14920. shlibpath_overrides_runpath=no
  14921. # Some binutils ld are patched to set DT_RUNPATH
  14922. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14923. $as_echo_n "(cached) " >&6
  14924. else
  14925. lt_cv_shlibpath_overrides_runpath=no
  14926. save_LDFLAGS=$LDFLAGS
  14927. save_libdir=$libdir
  14928. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14929. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14931. /* end confdefs.h. */
  14932. int
  14933. main ()
  14934. {
  14935. ;
  14936. return 0;
  14937. }
  14938. _ACEOF
  14939. if ac_fn_cxx_try_link "$LINENO"; then :
  14940. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14941. lt_cv_shlibpath_overrides_runpath=yes
  14942. fi
  14943. fi
  14944. rm -f core conftest.err conftest.$ac_objext \
  14945. conftest$ac_exeext conftest.$ac_ext
  14946. LDFLAGS=$save_LDFLAGS
  14947. libdir=$save_libdir
  14948. fi
  14949. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14950. # This implies no fast_install, which is unacceptable.
  14951. # Some rework will be needed to allow for fast_install
  14952. # before this can be enabled.
  14953. hardcode_into_libs=yes
  14954. # Ideally, we could use ldconfig to report *all* directores which are
  14955. # searched for libraries, however this is still not possible. Aside from not
  14956. # being certain /sbin/ldconfig is available, command
  14957. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14958. # even though it is searched at run-time. Try to do the best guess by
  14959. # appending ld.so.conf contents (and includes) to the search path.
  14960. if test -f /etc/ld.so.conf; then
  14961. 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' ' '`
  14962. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14963. fi
  14964. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14965. # powerpc, because MkLinux only supported shared libraries with the
  14966. # GNU dynamic linker. Since this was broken with cross compilers,
  14967. # most powerpc-linux boxes support dynamic linking these days and
  14968. # people can always --disable-shared, the test was removed, and we
  14969. # assume the GNU/Linux dynamic linker is in use.
  14970. dynamic_linker='GNU/Linux ld.so'
  14971. ;;
  14972. netbsd*)
  14973. version_type=sunos
  14974. need_lib_prefix=no
  14975. need_version=no
  14976. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14977. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14978. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14979. dynamic_linker='NetBSD (a.out) ld.so'
  14980. else
  14981. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14982. soname_spec='$libname$release$shared_ext$major'
  14983. dynamic_linker='NetBSD ld.elf_so'
  14984. fi
  14985. shlibpath_var=LD_LIBRARY_PATH
  14986. shlibpath_overrides_runpath=yes
  14987. hardcode_into_libs=yes
  14988. ;;
  14989. newsos6)
  14990. version_type=linux # correct to gnu/linux during the next big refactor
  14991. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14992. shlibpath_var=LD_LIBRARY_PATH
  14993. shlibpath_overrides_runpath=yes
  14994. ;;
  14995. *nto* | *qnx*)
  14996. version_type=qnx
  14997. need_lib_prefix=no
  14998. need_version=no
  14999. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15000. soname_spec='$libname$release$shared_ext$major'
  15001. shlibpath_var=LD_LIBRARY_PATH
  15002. shlibpath_overrides_runpath=no
  15003. hardcode_into_libs=yes
  15004. dynamic_linker='ldqnx.so'
  15005. ;;
  15006. openbsd* | bitrig*)
  15007. version_type=sunos
  15008. sys_lib_dlsearch_path_spec=/usr/lib
  15009. need_lib_prefix=no
  15010. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15011. need_version=no
  15012. else
  15013. need_version=yes
  15014. fi
  15015. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15016. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15017. shlibpath_var=LD_LIBRARY_PATH
  15018. shlibpath_overrides_runpath=yes
  15019. ;;
  15020. os2*)
  15021. libname_spec='$name'
  15022. version_type=windows
  15023. shrext_cmds=.dll
  15024. need_version=no
  15025. need_lib_prefix=no
  15026. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15027. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15028. v=$($ECHO $release$versuffix | tr -d .-);
  15029. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15030. $ECHO $n$v`$shared_ext'
  15031. library_names_spec='${libname}_dll.$libext'
  15032. dynamic_linker='OS/2 ld.exe'
  15033. shlibpath_var=BEGINLIBPATH
  15034. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15035. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15036. postinstall_cmds='base_file=`basename \$file`~
  15037. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15038. dldir=$destdir/`dirname \$dlpath`~
  15039. test -d \$dldir || mkdir -p \$dldir~
  15040. $install_prog $dir/$dlname \$dldir/$dlname~
  15041. chmod a+x \$dldir/$dlname~
  15042. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15043. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15044. fi'
  15045. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15046. dlpath=$dir/\$dldll~
  15047. $RM \$dlpath'
  15048. ;;
  15049. osf3* | osf4* | osf5*)
  15050. version_type=osf
  15051. need_lib_prefix=no
  15052. need_version=no
  15053. soname_spec='$libname$release$shared_ext$major'
  15054. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15055. shlibpath_var=LD_LIBRARY_PATH
  15056. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15057. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15058. ;;
  15059. rdos*)
  15060. dynamic_linker=no
  15061. ;;
  15062. solaris*)
  15063. version_type=linux # correct to gnu/linux during the next big refactor
  15064. need_lib_prefix=no
  15065. need_version=no
  15066. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15067. soname_spec='$libname$release$shared_ext$major'
  15068. shlibpath_var=LD_LIBRARY_PATH
  15069. shlibpath_overrides_runpath=yes
  15070. hardcode_into_libs=yes
  15071. # ldd complains unless libraries are executable
  15072. postinstall_cmds='chmod +x $lib'
  15073. ;;
  15074. sunos4*)
  15075. version_type=sunos
  15076. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15077. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15078. shlibpath_var=LD_LIBRARY_PATH
  15079. shlibpath_overrides_runpath=yes
  15080. if test yes = "$with_gnu_ld"; then
  15081. need_lib_prefix=no
  15082. fi
  15083. need_version=yes
  15084. ;;
  15085. sysv4 | sysv4.3*)
  15086. version_type=linux # correct to gnu/linux during the next big refactor
  15087. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15088. soname_spec='$libname$release$shared_ext$major'
  15089. shlibpath_var=LD_LIBRARY_PATH
  15090. case $host_vendor in
  15091. sni)
  15092. shlibpath_overrides_runpath=no
  15093. need_lib_prefix=no
  15094. runpath_var=LD_RUN_PATH
  15095. ;;
  15096. siemens)
  15097. need_lib_prefix=no
  15098. ;;
  15099. motorola)
  15100. need_lib_prefix=no
  15101. need_version=no
  15102. shlibpath_overrides_runpath=no
  15103. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15104. ;;
  15105. esac
  15106. ;;
  15107. sysv4*MP*)
  15108. if test -d /usr/nec; then
  15109. version_type=linux # correct to gnu/linux during the next big refactor
  15110. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15111. soname_spec='$libname$shared_ext.$major'
  15112. shlibpath_var=LD_LIBRARY_PATH
  15113. fi
  15114. ;;
  15115. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15116. version_type=sco
  15117. need_lib_prefix=no
  15118. need_version=no
  15119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15120. soname_spec='$libname$release$shared_ext$major'
  15121. shlibpath_var=LD_LIBRARY_PATH
  15122. shlibpath_overrides_runpath=yes
  15123. hardcode_into_libs=yes
  15124. if test yes = "$with_gnu_ld"; then
  15125. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15126. else
  15127. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15128. case $host_os in
  15129. sco3.2v5*)
  15130. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15131. ;;
  15132. esac
  15133. fi
  15134. sys_lib_dlsearch_path_spec='/usr/lib'
  15135. ;;
  15136. tpf*)
  15137. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15138. version_type=linux # correct to gnu/linux during the next big refactor
  15139. need_lib_prefix=no
  15140. need_version=no
  15141. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. shlibpath_overrides_runpath=no
  15144. hardcode_into_libs=yes
  15145. ;;
  15146. uts4*)
  15147. version_type=linux # correct to gnu/linux during the next big refactor
  15148. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15149. soname_spec='$libname$release$shared_ext$major'
  15150. shlibpath_var=LD_LIBRARY_PATH
  15151. ;;
  15152. *)
  15153. dynamic_linker=no
  15154. ;;
  15155. esac
  15156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15157. $as_echo "$dynamic_linker" >&6; }
  15158. test no = "$dynamic_linker" && can_build_shared=no
  15159. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15160. if test yes = "$GCC"; then
  15161. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15162. fi
  15163. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15164. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15165. fi
  15166. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15167. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15168. fi
  15169. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15170. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15171. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15172. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15173. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15174. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15176. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  15177. hardcode_action_CXX=
  15178. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15179. test -n "$runpath_var_CXX" ||
  15180. test yes = "$hardcode_automatic_CXX"; then
  15181. # We can hardcode non-existent directories.
  15182. if test no != "$hardcode_direct_CXX" &&
  15183. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15184. # have to relink, otherwise we might link with an installed library
  15185. # when we should be linking with a yet-to-be-installed one
  15186. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15187. test no != "$hardcode_minus_L_CXX"; then
  15188. # Linking always hardcodes the temporary library directory.
  15189. hardcode_action_CXX=relink
  15190. else
  15191. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15192. hardcode_action_CXX=immediate
  15193. fi
  15194. else
  15195. # We cannot hardcode anything, or else we can only hardcode existing
  15196. # directories.
  15197. hardcode_action_CXX=unsupported
  15198. fi
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15200. $as_echo "$hardcode_action_CXX" >&6; }
  15201. if test relink = "$hardcode_action_CXX" ||
  15202. test yes = "$inherit_rpath_CXX"; then
  15203. # Fast installation is not supported
  15204. enable_fast_install=no
  15205. elif test yes = "$shlibpath_overrides_runpath" ||
  15206. test no = "$enable_shared"; then
  15207. # Fast installation is not necessary
  15208. enable_fast_install=needless
  15209. fi
  15210. fi # test -n "$compiler"
  15211. CC=$lt_save_CC
  15212. CFLAGS=$lt_save_CFLAGS
  15213. LDCXX=$LD
  15214. LD=$lt_save_LD
  15215. GCC=$lt_save_GCC
  15216. with_gnu_ld=$lt_save_with_gnu_ld
  15217. lt_cv_path_LDCXX=$lt_cv_path_LD
  15218. lt_cv_path_LD=$lt_save_path_LD
  15219. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15220. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15221. fi # test yes != "$_lt_caught_CXX_error"
  15222. ac_ext=c
  15223. ac_cpp='$CPP $CPPFLAGS'
  15224. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15225. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15226. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15227. ac_config_commands="$ac_config_commands libtool"
  15228. # Only expand once:
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  15230. $as_echo_n "checking whether ln -s works... " >&6; }
  15231. LN_S=$as_ln_s
  15232. if test "$LN_S" = "ln -s"; then
  15233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15234. $as_echo "yes" >&6; }
  15235. else
  15236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  15237. $as_echo "no, using $LN_S" >&6; }
  15238. fi
  15239. # Check for GCC visibility feature
  15240. VISIBILITY_CFLAGS=
  15241. VISIBILITY_CXXFLAGS=
  15242. HAVE_VISIBILITY=0
  15243. if test -n "$GCC"; then
  15244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  15245. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  15246. if ${pcre_cv_cc_vis_werror+:} false; then :
  15247. $as_echo_n "(cached) " >&6
  15248. else
  15249. pcre_save_CFLAGS="$CFLAGS"
  15250. CFLAGS="$CFLAGS -Werror"
  15251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15252. /* end confdefs.h. */
  15253. int
  15254. main ()
  15255. {
  15256. ;
  15257. return 0;
  15258. }
  15259. _ACEOF
  15260. if ac_fn_c_try_compile "$LINENO"; then :
  15261. pcre_cv_cc_vis_werror=yes
  15262. else
  15263. pcre_cv_cc_vis_werror=no
  15264. fi
  15265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15266. CFLAGS="$pcre_save_CFLAGS"
  15267. fi
  15268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
  15269. $as_echo "$pcre_cv_cc_vis_werror" >&6; }
  15270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  15271. $as_echo_n "checking for simple visibility declarations... " >&6; }
  15272. if ${pcre_cv_cc_visibility+:} false; then :
  15273. $as_echo_n "(cached) " >&6
  15274. else
  15275. pcre_save_CFLAGS="$CFLAGS"
  15276. CFLAGS="$CFLAGS -fvisibility=hidden"
  15277. if test $pcre_cv_cc_vis_werror = yes; then
  15278. CFLAGS="$CFLAGS -Werror"
  15279. fi
  15280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15281. /* end confdefs.h. */
  15282. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  15283. extern __attribute__((__visibility__("default"))) int exportedvar;
  15284. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  15285. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  15286. void dummyfunc (void) {}
  15287. int
  15288. main ()
  15289. {
  15290. ;
  15291. return 0;
  15292. }
  15293. _ACEOF
  15294. if ac_fn_c_try_compile "$LINENO"; then :
  15295. pcre_cv_cc_visibility=yes
  15296. else
  15297. pcre_cv_cc_visibility=no
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15300. CFLAGS="$pcre_save_CFLAGS"
  15301. fi
  15302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
  15303. $as_echo "$pcre_cv_cc_visibility" >&6; }
  15304. if test $pcre_cv_cc_visibility = yes; then
  15305. VISIBILITY_CFLAGS="-fvisibility=hidden"
  15306. VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
  15307. HAVE_VISIBILITY=1
  15308. $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15309. $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15310. $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15311. $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15312. $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15313. $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15314. $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
  15315. fi
  15316. fi
  15317. cat >>confdefs.h <<_ACEOF
  15318. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  15319. _ACEOF
  15320. # Versioning
  15321. PCRE_MAJOR="8"
  15322. PCRE_MINOR="43"
  15323. PCRE_PRERELEASE=""
  15324. PCRE_DATE="2019-02-23"
  15325. if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
  15326. then
  15327. echo "***"
  15328. echo "*** Minor version number $PCRE_MINOR must not be used. ***"
  15329. echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
  15330. echo "***"
  15331. exit 1
  15332. fi
  15333. # Set a more sensible default value for $(htmldir).
  15334. if test "x$htmldir" = 'x${docdir}'
  15335. then
  15336. htmldir='${docdir}/html'
  15337. fi
  15338. # Handle --disable-pcre8 (enabled by default)
  15339. # Check whether --enable-pcre8 was given.
  15340. if test "${enable_pcre8+set}" = set; then :
  15341. enableval=$enable_pcre8;
  15342. else
  15343. enable_pcre8=unset
  15344. fi
  15345. # Handle --enable-pcre16 (disabled by default)
  15346. # Check whether --enable-pcre16 was given.
  15347. if test "${enable_pcre16+set}" = set; then :
  15348. enableval=$enable_pcre16;
  15349. else
  15350. enable_pcre16=unset
  15351. fi
  15352. # Handle --enable-pcre32 (disabled by default)
  15353. # Check whether --enable-pcre32 was given.
  15354. if test "${enable_pcre32+set}" = set; then :
  15355. enableval=$enable_pcre32;
  15356. else
  15357. enable_pcre32=unset
  15358. fi
  15359. # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
  15360. # pcre-config.
  15361. # Check whether --enable-cpp was given.
  15362. if test "${enable_cpp+set}" = set; then :
  15363. enableval=$enable_cpp;
  15364. else
  15365. enable_cpp=unset
  15366. fi
  15367. # Handle --enable-jit (disabled by default)
  15368. # Check whether --enable-jit was given.
  15369. if test "${enable_jit+set}" = set; then :
  15370. enableval=$enable_jit;
  15371. else
  15372. enable_jit=no
  15373. fi
  15374. # This code enables JIT if the hardware supports it.
  15375. if test "$enable_jit" = "auto"; then
  15376. ac_ext=c
  15377. ac_cpp='$CPP $CPPFLAGS'
  15378. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15379. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15380. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15382. /* end confdefs.h. */
  15383. #define SLJIT_CONFIG_AUTO 1
  15384. #include "sljit/sljitConfigInternal.h"
  15385. #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
  15386. #error unsupported
  15387. #endif
  15388. _ACEOF
  15389. if ac_fn_c_try_compile "$LINENO"; then :
  15390. enable_jit=yes
  15391. else
  15392. enable_jit=no
  15393. fi
  15394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15395. fi
  15396. # Handle --disable-pcregrep-jit (enabled by default)
  15397. # Check whether --enable-pcregrep-jit was given.
  15398. if test "${enable_pcregrep_jit+set}" = set; then :
  15399. enableval=$enable_pcregrep_jit;
  15400. else
  15401. enable_pcregrep_jit=yes
  15402. fi
  15403. # Handle --enable-rebuild-chartables
  15404. # Check whether --enable-rebuild-chartables was given.
  15405. if test "${enable_rebuild_chartables+set}" = set; then :
  15406. enableval=$enable_rebuild_chartables;
  15407. else
  15408. enable_rebuild_chartables=no
  15409. fi
  15410. # Handle --enable-utf8 (disabled by default)
  15411. # Check whether --enable-utf8 was given.
  15412. if test "${enable_utf8+set}" = set; then :
  15413. enableval=$enable_utf8;
  15414. else
  15415. enable_utf8=unset
  15416. fi
  15417. # Handle --enable-utf (disabled by default)
  15418. # Check whether --enable-utf was given.
  15419. if test "${enable_utf+set}" = set; then :
  15420. enableval=$enable_utf;
  15421. else
  15422. enable_utf=unset
  15423. fi
  15424. # Handle --enable-unicode-properties
  15425. # Check whether --enable-unicode-properties was given.
  15426. if test "${enable_unicode_properties+set}" = set; then :
  15427. enableval=$enable_unicode_properties;
  15428. else
  15429. enable_unicode_properties=no
  15430. fi
  15431. # Handle newline options
  15432. ac_pcre_newline=lf
  15433. # Check whether --enable-newline-is-cr was given.
  15434. if test "${enable_newline_is_cr+set}" = set; then :
  15435. enableval=$enable_newline_is_cr; ac_pcre_newline=cr
  15436. fi
  15437. # Check whether --enable-newline-is-lf was given.
  15438. if test "${enable_newline_is_lf+set}" = set; then :
  15439. enableval=$enable_newline_is_lf; ac_pcre_newline=lf
  15440. fi
  15441. # Check whether --enable-newline-is-crlf was given.
  15442. if test "${enable_newline_is_crlf+set}" = set; then :
  15443. enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
  15444. fi
  15445. # Check whether --enable-newline-is-anycrlf was given.
  15446. if test "${enable_newline_is_anycrlf+set}" = set; then :
  15447. enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
  15448. fi
  15449. # Check whether --enable-newline-is-any was given.
  15450. if test "${enable_newline_is_any+set}" = set; then :
  15451. enableval=$enable_newline_is_any; ac_pcre_newline=any
  15452. fi
  15453. enable_newline="$ac_pcre_newline"
  15454. # Handle --enable-bsr-anycrlf
  15455. # Check whether --enable-bsr-anycrlf was given.
  15456. if test "${enable_bsr_anycrlf+set}" = set; then :
  15457. enableval=$enable_bsr_anycrlf;
  15458. else
  15459. enable_bsr_anycrlf=no
  15460. fi
  15461. # Handle --enable-ebcdic
  15462. # Check whether --enable-ebcdic was given.
  15463. if test "${enable_ebcdic+set}" = set; then :
  15464. enableval=$enable_ebcdic;
  15465. else
  15466. enable_ebcdic=no
  15467. fi
  15468. # Handle --enable-ebcdic-nl25
  15469. # Check whether --enable-ebcdic-nl25 was given.
  15470. if test "${enable_ebcdic_nl25+set}" = set; then :
  15471. enableval=$enable_ebcdic_nl25;
  15472. else
  15473. enable_ebcdic_nl25=no
  15474. fi
  15475. # Handle --disable-stack-for-recursion
  15476. # Check whether --enable-stack-for-recursion was given.
  15477. if test "${enable_stack_for_recursion+set}" = set; then :
  15478. enableval=$enable_stack_for_recursion;
  15479. else
  15480. enable_stack_for_recursion=yes
  15481. fi
  15482. # Handle --enable-pcregrep-libz
  15483. # Check whether --enable-pcregrep-libz was given.
  15484. if test "${enable_pcregrep_libz+set}" = set; then :
  15485. enableval=$enable_pcregrep_libz;
  15486. else
  15487. enable_pcregrep_libz=no
  15488. fi
  15489. # Handle --enable-pcregrep-libbz2
  15490. # Check whether --enable-pcregrep-libbz2 was given.
  15491. if test "${enable_pcregrep_libbz2+set}" = set; then :
  15492. enableval=$enable_pcregrep_libbz2;
  15493. else
  15494. enable_pcregrep_libbz2=no
  15495. fi
  15496. # Handle --with-pcregrep-bufsize=N
  15497. # Check whether --with-pcregrep-bufsize was given.
  15498. if test "${with_pcregrep_bufsize+set}" = set; then :
  15499. withval=$with_pcregrep_bufsize;
  15500. else
  15501. with_pcregrep_bufsize=20480
  15502. fi
  15503. # Handle --enable-pcretest-libedit
  15504. # Check whether --enable-pcretest-libedit was given.
  15505. if test "${enable_pcretest_libedit+set}" = set; then :
  15506. enableval=$enable_pcretest_libedit;
  15507. else
  15508. enable_pcretest_libedit=no
  15509. fi
  15510. # Handle --enable-pcretest-libreadline
  15511. # Check whether --enable-pcretest-libreadline was given.
  15512. if test "${enable_pcretest_libreadline+set}" = set; then :
  15513. enableval=$enable_pcretest_libreadline;
  15514. else
  15515. enable_pcretest_libreadline=no
  15516. fi
  15517. # Handle --with-posix-malloc-threshold=NBYTES
  15518. # Check whether --with-posix-malloc-threshold was given.
  15519. if test "${with_posix_malloc_threshold+set}" = set; then :
  15520. withval=$with_posix_malloc_threshold;
  15521. else
  15522. with_posix_malloc_threshold=10
  15523. fi
  15524. # Handle --with-link-size=N
  15525. # Check whether --with-link-size was given.
  15526. if test "${with_link_size+set}" = set; then :
  15527. withval=$with_link_size;
  15528. else
  15529. with_link_size=2
  15530. fi
  15531. # Handle --with-parens-nest-limit=N
  15532. # Check whether --with-parens-nest-limit was given.
  15533. if test "${with_parens_nest_limit+set}" = set; then :
  15534. withval=$with_parens_nest_limit;
  15535. else
  15536. with_parens_nest_limit=250
  15537. fi
  15538. # Handle --with-match-limit=N
  15539. # Check whether --with-match-limit was given.
  15540. if test "${with_match_limit+set}" = set; then :
  15541. withval=$with_match_limit;
  15542. else
  15543. with_match_limit=10000000
  15544. fi
  15545. # Handle --with-match-limit_recursion=N
  15546. #
  15547. # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
  15548. # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
  15549. # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
  15550. # different numeric value (or even the same numeric value as MATCH_LIMIT,
  15551. # though no longer defined in terms of the latter).
  15552. #
  15553. # Check whether --with-match-limit-recursion was given.
  15554. if test "${with_match_limit_recursion+set}" = set; then :
  15555. withval=$with_match_limit_recursion;
  15556. else
  15557. with_match_limit_recursion=MATCH_LIMIT
  15558. fi
  15559. # Handle --enable-valgrind
  15560. # Check whether --enable-valgrind was given.
  15561. if test "${enable_valgrind+set}" = set; then :
  15562. enableval=$enable_valgrind;
  15563. else
  15564. enable_valgrind=no
  15565. fi
  15566. # Enable code coverage reports using gcov
  15567. # Check whether --enable-coverage was given.
  15568. if test "${enable_coverage+set}" = set; then :
  15569. enableval=$enable_coverage;
  15570. else
  15571. enable_coverage=no
  15572. fi
  15573. # Copy enable_utf8 value to enable_utf for compatibility reasons
  15574. if test "x$enable_utf8" != "xunset"
  15575. then
  15576. if test "x$enable_utf" != "xunset"
  15577. then
  15578. as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
  15579. fi
  15580. enable_utf=$enable_utf8
  15581. fi
  15582. # Set the default value for pcre8
  15583. if test "x$enable_pcre8" = "xunset"
  15584. then
  15585. enable_pcre8=yes
  15586. fi
  15587. # Set the default value for pcre16
  15588. if test "x$enable_pcre16" = "xunset"
  15589. then
  15590. enable_pcre16=no
  15591. fi
  15592. # Set the default value for pcre32
  15593. if test "x$enable_pcre32" = "xunset"
  15594. then
  15595. enable_pcre32=no
  15596. fi
  15597. # Make sure enable_pcre8 or enable_pcre16 was set
  15598. if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
  15599. then
  15600. as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
  15601. fi
  15602. # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
  15603. if test "x$enable_unicode_properties" = "xyes"
  15604. then
  15605. if test "x$enable_utf" = "xno"
  15606. then
  15607. as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
  15608. fi
  15609. enable_utf=yes
  15610. fi
  15611. # enable_utf is disabled by default.
  15612. if test "x$enable_utf" = "xunset"
  15613. then
  15614. enable_utf=no
  15615. fi
  15616. # enable_cpp copies the value of enable_pcre8 by default
  15617. if test "x$enable_cpp" = "xunset"
  15618. then
  15619. enable_cpp=$enable_pcre8
  15620. fi
  15621. # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
  15622. if test "x$enable_cpp" = "xyes"
  15623. then
  15624. if test "x$enable_pcre8" = "xno"
  15625. then
  15626. as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
  15627. fi
  15628. fi
  15629. # Convert the newline identifier into the appropriate integer value. The first
  15630. # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
  15631. # are changed below.
  15632. case "$enable_newline" in
  15633. lf) ac_pcre_newline_value=10 ;;
  15634. cr) ac_pcre_newline_value=13 ;;
  15635. crlf) ac_pcre_newline_value=3338 ;;
  15636. anycrlf) ac_pcre_newline_value=-2 ;;
  15637. any) ac_pcre_newline_value=-1 ;;
  15638. *)
  15639. as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
  15640. ;;
  15641. esac
  15642. # --enable-ebcdic-nl25 implies --enable-ebcdic
  15643. if test "x$enable_ebcdic_nl25" = "xyes"; then
  15644. enable_ebcdic=yes
  15645. fi
  15646. # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
  15647. # and the newline value is adjusted appropriately (CR is still 13, but LF is
  15648. # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
  15649. # handle EBCDIC and UTF in the same build. To do so it would need to use
  15650. # different character constants depending on the mode.
  15651. #
  15652. if test "x$enable_ebcdic" = "xyes"; then
  15653. enable_rebuild_chartables=yes
  15654. if test "x$enable_utf" = "xyes"; then
  15655. as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
  15656. fi
  15657. if test "x$enable_ebcdic_nl25" = "xno"; then
  15658. case "$ac_pcre_newline_value" in
  15659. 10) ac_pcre_newline_value=21 ;;
  15660. 3338) ac_pcre_newline_value=3349 ;;
  15661. esac
  15662. else
  15663. case "$ac_pcre_newline_value" in
  15664. 10) ac_pcre_newline_value=37 ;;
  15665. 3338) ac_pcre_newline_value=3365 ;;
  15666. esac
  15667. fi
  15668. fi
  15669. # Check argument to --with-link-size
  15670. case "$with_link_size" in
  15671. 2|3|4) ;;
  15672. *)
  15673. as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
  15674. ;;
  15675. esac
  15676. # Checks for header files.
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15678. $as_echo_n "checking for ANSI C header files... " >&6; }
  15679. if ${ac_cv_header_stdc+:} false; then :
  15680. $as_echo_n "(cached) " >&6
  15681. else
  15682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15683. /* end confdefs.h. */
  15684. #include <stdlib.h>
  15685. #include <stdarg.h>
  15686. #include <string.h>
  15687. #include <float.h>
  15688. int
  15689. main ()
  15690. {
  15691. ;
  15692. return 0;
  15693. }
  15694. _ACEOF
  15695. if ac_fn_c_try_compile "$LINENO"; then :
  15696. ac_cv_header_stdc=yes
  15697. else
  15698. ac_cv_header_stdc=no
  15699. fi
  15700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15701. if test $ac_cv_header_stdc = yes; then
  15702. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15704. /* end confdefs.h. */
  15705. #include <string.h>
  15706. _ACEOF
  15707. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15708. $EGREP "memchr" >/dev/null 2>&1; then :
  15709. else
  15710. ac_cv_header_stdc=no
  15711. fi
  15712. rm -f conftest*
  15713. fi
  15714. if test $ac_cv_header_stdc = yes; then
  15715. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15717. /* end confdefs.h. */
  15718. #include <stdlib.h>
  15719. _ACEOF
  15720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15721. $EGREP "free" >/dev/null 2>&1; then :
  15722. else
  15723. ac_cv_header_stdc=no
  15724. fi
  15725. rm -f conftest*
  15726. fi
  15727. if test $ac_cv_header_stdc = yes; then
  15728. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15729. if test "$cross_compiling" = yes; then :
  15730. :
  15731. else
  15732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15733. /* end confdefs.h. */
  15734. #include <ctype.h>
  15735. #include <stdlib.h>
  15736. #if ((' ' & 0x0FF) == 0x020)
  15737. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15738. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15739. #else
  15740. # define ISLOWER(c) \
  15741. (('a' <= (c) && (c) <= 'i') \
  15742. || ('j' <= (c) && (c) <= 'r') \
  15743. || ('s' <= (c) && (c) <= 'z'))
  15744. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15745. #endif
  15746. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15747. int
  15748. main ()
  15749. {
  15750. int i;
  15751. for (i = 0; i < 256; i++)
  15752. if (XOR (islower (i), ISLOWER (i))
  15753. || toupper (i) != TOUPPER (i))
  15754. return 2;
  15755. return 0;
  15756. }
  15757. _ACEOF
  15758. if ac_fn_c_try_run "$LINENO"; then :
  15759. else
  15760. ac_cv_header_stdc=no
  15761. fi
  15762. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15763. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15764. fi
  15765. fi
  15766. fi
  15767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15768. $as_echo "$ac_cv_header_stdc" >&6; }
  15769. if test $ac_cv_header_stdc = yes; then
  15770. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15771. fi
  15772. for ac_header in limits.h sys/types.h sys/stat.h dirent.h
  15773. do :
  15774. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15775. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15776. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15777. cat >>confdefs.h <<_ACEOF
  15778. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15779. _ACEOF
  15780. fi
  15781. done
  15782. for ac_header in windows.h
  15783. do :
  15784. ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  15785. if test "x$ac_cv_header_windows_h" = xyes; then :
  15786. cat >>confdefs.h <<_ACEOF
  15787. #define HAVE_WINDOWS_H 1
  15788. _ACEOF
  15789. HAVE_WINDOWS_H=1
  15790. fi
  15791. done
  15792. # The files below are C++ header files.
  15793. pcre_have_type_traits="0"
  15794. pcre_have_bits_type_traits="0"
  15795. if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
  15796. as_fn_error $? "Invalid C++ compiler or C++ compiler flags" "$LINENO" 5
  15797. fi
  15798. if test "x$enable_cpp" = "xyes" -a -n "$CXX"
  15799. then
  15800. ac_ext=cpp
  15801. ac_cpp='$CXXCPP $CPPFLAGS'
  15802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15805. # Older versions of pcre defined pcrecpp::no_arg, but in new versions
  15806. # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
  15807. # we want to make one an alias for the other. Different systems do
  15808. # this in different ways. Some systems, for instance, can do it via
  15809. # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
  15810. OLD_LDFLAGS="$LDFLAGS"
  15811. for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
  15812. "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
  15813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
  15814. $as_echo_n "checking for alias support in the linker... " >&6; }
  15815. LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
  15816. # We try to run the linker with this new ld flag. If the link fails,
  15817. # we give up and remove the new flag from LDFLAGS.
  15818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15819. /* end confdefs.h. */
  15820. namespace pcrecpp {
  15821. class RE { static int no_arg; };
  15822. int RE::no_arg;
  15823. }
  15824. int
  15825. main ()
  15826. {
  15827. ;
  15828. return 0;
  15829. }
  15830. _ACEOF
  15831. if ac_fn_cxx_try_link "$LINENO"; then :
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15833. $as_echo "yes" >&6; };
  15834. EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
  15835. break;
  15836. else
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15838. $as_echo "no" >&6; }
  15839. fi
  15840. rm -f core conftest.err conftest.$ac_objext \
  15841. conftest$ac_exeext conftest.$ac_ext
  15842. done
  15843. LDFLAGS="$OLD_LDFLAGS"
  15844. # We could be more clever here, given we're doing AC_SUBST with this
  15845. # (eg set a var to be the name of the include file we want). But we're not
  15846. # so it's easy to change back to 'regular' autoconf vars if we needed to.
  15847. for ac_header in string
  15848. do :
  15849. ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
  15850. if test "x$ac_cv_header_string" = xyes; then :
  15851. cat >>confdefs.h <<_ACEOF
  15852. #define HAVE_STRING 1
  15853. _ACEOF
  15854. pcre_have_cpp_headers="1"
  15855. else
  15856. pcre_have_cpp_headers="0"
  15857. fi
  15858. done
  15859. for ac_header in bits/type_traits.h
  15860. do :
  15861. ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
  15862. if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
  15863. cat >>confdefs.h <<_ACEOF
  15864. #define HAVE_BITS_TYPE_TRAITS_H 1
  15865. _ACEOF
  15866. pcre_have_bits_type_traits="1"
  15867. else
  15868. pcre_have_bits_type_traits="0"
  15869. fi
  15870. done
  15871. for ac_header in type_traits.h
  15872. do :
  15873. ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
  15874. if test "x$ac_cv_header_type_traits_h" = xyes; then :
  15875. cat >>confdefs.h <<_ACEOF
  15876. #define HAVE_TYPE_TRAITS_H 1
  15877. _ACEOF
  15878. pcre_have_type_traits="1"
  15879. else
  15880. pcre_have_type_traits="0"
  15881. fi
  15882. done
  15883. # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
  15884. # in a c++ context. This matters becuase strtoimax is C99 and may not
  15885. # be supported by the C++ compiler.)
  15886. # Figure out how to create a longlong from a string: strtoll and
  15887. # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
  15888. # strtoll, for instance, but it only takes 2 args instead of 3!
  15889. # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
  15890. have_strto_fn=0
  15891. for fn in strtoq strtoll _strtoi64 strtoimax; do
  15892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
  15893. $as_echo_n "checking for $fn... " >&6; }
  15894. if test "$fn" = strtoimax; then
  15895. include=stdint.h
  15896. else
  15897. include=stdlib.h
  15898. fi
  15899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15900. /* end confdefs.h. */
  15901. #include <$include>
  15902. int
  15903. main ()
  15904. {
  15905. char* e; return $fn("100", &e, 10)
  15906. ;
  15907. return 0;
  15908. }
  15909. _ACEOF
  15910. if ac_fn_cxx_try_compile "$LINENO"; then :
  15911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15912. $as_echo "yes" >&6; }
  15913. cat >>confdefs.h <<_ACEOF
  15914. #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
  15915. _ACEOF
  15916. have_strto_fn=1
  15917. break
  15918. else
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15920. $as_echo "no" >&6; }
  15921. fi
  15922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15923. done
  15924. if test "$have_strto_fn" = 1; then
  15925. ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  15926. if test "x$ac_cv_type_long_long" = xyes; then :
  15927. cat >>confdefs.h <<_ACEOF
  15928. #define HAVE_LONG_LONG 1
  15929. _ACEOF
  15930. pcre_have_long_long="1"
  15931. else
  15932. pcre_have_long_long="0"
  15933. fi
  15934. ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
  15935. if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
  15936. cat >>confdefs.h <<_ACEOF
  15937. #define HAVE_UNSIGNED_LONG_LONG 1
  15938. _ACEOF
  15939. pcre_have_ulong_long="1"
  15940. else
  15941. pcre_have_ulong_long="0"
  15942. fi
  15943. else
  15944. pcre_have_long_long="0"
  15945. pcre_have_ulong_long="0"
  15946. fi
  15947. ac_ext=c
  15948. ac_cpp='$CPP $CPPFLAGS'
  15949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15952. fi
  15953. # Using AC_SUBST eliminates the need to include config.h in a public .h file
  15954. # Conditional compilation
  15955. if test "x$enable_pcre8" = "xyes"; then
  15956. WITH_PCRE8_TRUE=
  15957. WITH_PCRE8_FALSE='#'
  15958. else
  15959. WITH_PCRE8_TRUE='#'
  15960. WITH_PCRE8_FALSE=
  15961. fi
  15962. if test "x$enable_pcre16" = "xyes"; then
  15963. WITH_PCRE16_TRUE=
  15964. WITH_PCRE16_FALSE='#'
  15965. else
  15966. WITH_PCRE16_TRUE='#'
  15967. WITH_PCRE16_FALSE=
  15968. fi
  15969. if test "x$enable_pcre32" = "xyes"; then
  15970. WITH_PCRE32_TRUE=
  15971. WITH_PCRE32_FALSE='#'
  15972. else
  15973. WITH_PCRE32_TRUE='#'
  15974. WITH_PCRE32_FALSE=
  15975. fi
  15976. if test "x$enable_cpp" = "xyes"; then
  15977. WITH_PCRE_CPP_TRUE=
  15978. WITH_PCRE_CPP_FALSE='#'
  15979. else
  15980. WITH_PCRE_CPP_TRUE='#'
  15981. WITH_PCRE_CPP_FALSE=
  15982. fi
  15983. if test "x$enable_rebuild_chartables" = "xyes"; then
  15984. WITH_REBUILD_CHARTABLES_TRUE=
  15985. WITH_REBUILD_CHARTABLES_FALSE='#'
  15986. else
  15987. WITH_REBUILD_CHARTABLES_TRUE='#'
  15988. WITH_REBUILD_CHARTABLES_FALSE=
  15989. fi
  15990. if test "x$enable_jit" = "xyes"; then
  15991. WITH_JIT_TRUE=
  15992. WITH_JIT_FALSE='#'
  15993. else
  15994. WITH_JIT_TRUE='#'
  15995. WITH_JIT_FALSE=
  15996. fi
  15997. if test "x$enable_utf" = "xyes"; then
  15998. WITH_UTF_TRUE=
  15999. WITH_UTF_FALSE='#'
  16000. else
  16001. WITH_UTF_TRUE='#'
  16002. WITH_UTF_FALSE=
  16003. fi
  16004. if test "x$enable_valgrind" = "xyes"; then
  16005. WITH_VALGRIND_TRUE=
  16006. WITH_VALGRIND_FALSE='#'
  16007. else
  16008. WITH_VALGRIND_TRUE='#'
  16009. WITH_VALGRIND_FALSE=
  16010. fi
  16011. # Checks for typedefs, structures, and compiler characteristics.
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16013. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16014. if ${ac_cv_c_const+:} false; then :
  16015. $as_echo_n "(cached) " >&6
  16016. else
  16017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16018. /* end confdefs.h. */
  16019. int
  16020. main ()
  16021. {
  16022. #ifndef __cplusplus
  16023. /* Ultrix mips cc rejects this sort of thing. */
  16024. typedef int charset[2];
  16025. const charset cs = { 0, 0 };
  16026. /* SunOS 4.1.1 cc rejects this. */
  16027. char const *const *pcpcc;
  16028. char **ppc;
  16029. /* NEC SVR4.0.2 mips cc rejects this. */
  16030. struct point {int x, y;};
  16031. static struct point const zero = {0,0};
  16032. /* AIX XL C 1.02.0.0 rejects this.
  16033. It does not let you subtract one const X* pointer from another in
  16034. an arm of an if-expression whose if-part is not a constant
  16035. expression */
  16036. const char *g = "string";
  16037. pcpcc = &g + (g ? g-g : 0);
  16038. /* HPUX 7.0 cc rejects these. */
  16039. ++pcpcc;
  16040. ppc = (char**) pcpcc;
  16041. pcpcc = (char const *const *) ppc;
  16042. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16043. char tx;
  16044. char *t = &tx;
  16045. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16046. *t++ = 0;
  16047. if (s) return 0;
  16048. }
  16049. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16050. int x[] = {25, 17};
  16051. const int *foo = &x[0];
  16052. ++foo;
  16053. }
  16054. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16055. typedef const int *iptr;
  16056. iptr p = 0;
  16057. ++p;
  16058. }
  16059. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  16060. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16061. struct s { int j; const int *ap[3]; } bx;
  16062. struct s *b = &bx; b->j = 5;
  16063. }
  16064. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16065. const int foo = 10;
  16066. if (!foo) return 0;
  16067. }
  16068. return !cs[0] && !zero.x;
  16069. #endif
  16070. ;
  16071. return 0;
  16072. }
  16073. _ACEOF
  16074. if ac_fn_c_try_compile "$LINENO"; then :
  16075. ac_cv_c_const=yes
  16076. else
  16077. ac_cv_c_const=no
  16078. fi
  16079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16080. fi
  16081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16082. $as_echo "$ac_cv_c_const" >&6; }
  16083. if test $ac_cv_c_const = no; then
  16084. $as_echo "#define const /**/" >>confdefs.h
  16085. fi
  16086. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16087. if test "x$ac_cv_type_size_t" = xyes; then :
  16088. else
  16089. cat >>confdefs.h <<_ACEOF
  16090. #define size_t unsigned int
  16091. _ACEOF
  16092. fi
  16093. # Checks for library functions.
  16094. for ac_func in bcopy memmove strerror
  16095. do :
  16096. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16097. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16098. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  16099. cat >>confdefs.h <<_ACEOF
  16100. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16101. _ACEOF
  16102. fi
  16103. done
  16104. # Check for the availability of libz (aka zlib)
  16105. for ac_header in zlib.h
  16106. do :
  16107. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  16108. if test "x$ac_cv_header_zlib_h" = xyes; then :
  16109. cat >>confdefs.h <<_ACEOF
  16110. #define HAVE_ZLIB_H 1
  16111. _ACEOF
  16112. HAVE_ZLIB_H=1
  16113. fi
  16114. done
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  16116. $as_echo_n "checking for gzopen in -lz... " >&6; }
  16117. if ${ac_cv_lib_z_gzopen+:} false; then :
  16118. $as_echo_n "(cached) " >&6
  16119. else
  16120. ac_check_lib_save_LIBS=$LIBS
  16121. LIBS="-lz $LIBS"
  16122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16123. /* end confdefs.h. */
  16124. /* Override any GCC internal prototype to avoid an error.
  16125. Use char because int might match the return type of a GCC
  16126. builtin and then its argument prototype would still apply. */
  16127. #ifdef __cplusplus
  16128. extern "C"
  16129. #endif
  16130. char gzopen ();
  16131. int
  16132. main ()
  16133. {
  16134. return gzopen ();
  16135. ;
  16136. return 0;
  16137. }
  16138. _ACEOF
  16139. if ac_fn_c_try_link "$LINENO"; then :
  16140. ac_cv_lib_z_gzopen=yes
  16141. else
  16142. ac_cv_lib_z_gzopen=no
  16143. fi
  16144. rm -f core conftest.err conftest.$ac_objext \
  16145. conftest$ac_exeext conftest.$ac_ext
  16146. LIBS=$ac_check_lib_save_LIBS
  16147. fi
  16148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  16149. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  16150. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  16151. HAVE_LIBZ=1
  16152. fi
  16153. # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
  16154. # as for libz. However, this had the following problem, diagnosed and fixed by
  16155. # a user:
  16156. #
  16157. # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
  16158. # under Win32.
  16159. # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
  16160. # therefore missing the function definition.
  16161. # - The compiler thus generates a "C" signature for the test function.
  16162. # - The linker fails to find the "C" function.
  16163. # - PCRE fails to configure if asked to do so against libbz2.
  16164. #
  16165. # Solution:
  16166. #
  16167. # - Replace the AC_CHECK_LIB test with a custom test.
  16168. for ac_header in bzlib.h
  16169. do :
  16170. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  16171. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  16172. cat >>confdefs.h <<_ACEOF
  16173. #define HAVE_BZLIB_H 1
  16174. _ACEOF
  16175. HAVE_BZLIB_H=1
  16176. fi
  16177. done
  16178. # Original test
  16179. # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
  16180. #
  16181. # Custom test follows
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
  16183. $as_echo_n "checking for libbz2... " >&6; }
  16184. OLD_LIBS="$LIBS"
  16185. LIBS="$LIBS -lbz2"
  16186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16187. /* end confdefs.h. */
  16188. #ifdef HAVE_BZLIB_H
  16189. #include <bzlib.h>
  16190. #endif
  16191. int
  16192. main ()
  16193. {
  16194. return (int)BZ2_bzopen("conftest", "rb");
  16195. ;
  16196. return 0;
  16197. }
  16198. _ACEOF
  16199. if ac_fn_c_try_link "$LINENO"; then :
  16200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16201. $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
  16202. else
  16203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16204. $as_echo "no" >&6; }
  16205. fi
  16206. rm -f core conftest.err conftest.$ac_objext \
  16207. conftest$ac_exeext conftest.$ac_ext
  16208. LIBS="$OLD_LIBS"
  16209. # Check for the availabiity of libreadline
  16210. if test "$enable_pcretest_libreadline" = "yes"; then
  16211. for ac_header in readline/readline.h
  16212. do :
  16213. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  16214. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  16215. cat >>confdefs.h <<_ACEOF
  16216. #define HAVE_READLINE_READLINE_H 1
  16217. _ACEOF
  16218. HAVE_READLINE_H=1
  16219. fi
  16220. done
  16221. for ac_header in readline/history.h
  16222. do :
  16223. ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  16224. if test "x$ac_cv_header_readline_history_h" = xyes; then :
  16225. cat >>confdefs.h <<_ACEOF
  16226. #define HAVE_READLINE_HISTORY_H 1
  16227. _ACEOF
  16228. HAVE_HISTORY_H=1
  16229. fi
  16230. done
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16232. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16233. if ${ac_cv_lib_readline_readline+:} false; then :
  16234. $as_echo_n "(cached) " >&6
  16235. else
  16236. ac_check_lib_save_LIBS=$LIBS
  16237. LIBS="-lreadline $LIBS"
  16238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16239. /* end confdefs.h. */
  16240. /* Override any GCC internal prototype to avoid an error.
  16241. Use char because int might match the return type of a GCC
  16242. builtin and then its argument prototype would still apply. */
  16243. #ifdef __cplusplus
  16244. extern "C"
  16245. #endif
  16246. char readline ();
  16247. int
  16248. main ()
  16249. {
  16250. return readline ();
  16251. ;
  16252. return 0;
  16253. }
  16254. _ACEOF
  16255. if ac_fn_c_try_link "$LINENO"; then :
  16256. ac_cv_lib_readline_readline=yes
  16257. else
  16258. ac_cv_lib_readline_readline=no
  16259. fi
  16260. rm -f core conftest.err conftest.$ac_objext \
  16261. conftest$ac_exeext conftest.$ac_ext
  16262. LIBS=$ac_check_lib_save_LIBS
  16263. fi
  16264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16265. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16266. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16267. LIBREADLINE="-lreadline"
  16268. else
  16269. unset ac_cv_lib_readline_readline;
  16270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16271. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16272. if ${ac_cv_lib_readline_readline+:} false; then :
  16273. $as_echo_n "(cached) " >&6
  16274. else
  16275. ac_check_lib_save_LIBS=$LIBS
  16276. LIBS="-lreadline -ltinfo $LIBS"
  16277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16278. /* end confdefs.h. */
  16279. /* Override any GCC internal prototype to avoid an error.
  16280. Use char because int might match the return type of a GCC
  16281. builtin and then its argument prototype would still apply. */
  16282. #ifdef __cplusplus
  16283. extern "C"
  16284. #endif
  16285. char readline ();
  16286. int
  16287. main ()
  16288. {
  16289. return readline ();
  16290. ;
  16291. return 0;
  16292. }
  16293. _ACEOF
  16294. if ac_fn_c_try_link "$LINENO"; then :
  16295. ac_cv_lib_readline_readline=yes
  16296. else
  16297. ac_cv_lib_readline_readline=no
  16298. fi
  16299. rm -f core conftest.err conftest.$ac_objext \
  16300. conftest$ac_exeext conftest.$ac_ext
  16301. LIBS=$ac_check_lib_save_LIBS
  16302. fi
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16304. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16305. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16306. LIBREADLINE="-ltinfo"
  16307. else
  16308. unset ac_cv_lib_readline_readline;
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16310. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16311. if ${ac_cv_lib_readline_readline+:} false; then :
  16312. $as_echo_n "(cached) " >&6
  16313. else
  16314. ac_check_lib_save_LIBS=$LIBS
  16315. LIBS="-lreadline -lcurses $LIBS"
  16316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16317. /* end confdefs.h. */
  16318. /* Override any GCC internal prototype to avoid an error.
  16319. Use char because int might match the return type of a GCC
  16320. builtin and then its argument prototype would still apply. */
  16321. #ifdef __cplusplus
  16322. extern "C"
  16323. #endif
  16324. char readline ();
  16325. int
  16326. main ()
  16327. {
  16328. return readline ();
  16329. ;
  16330. return 0;
  16331. }
  16332. _ACEOF
  16333. if ac_fn_c_try_link "$LINENO"; then :
  16334. ac_cv_lib_readline_readline=yes
  16335. else
  16336. ac_cv_lib_readline_readline=no
  16337. fi
  16338. rm -f core conftest.err conftest.$ac_objext \
  16339. conftest$ac_exeext conftest.$ac_ext
  16340. LIBS=$ac_check_lib_save_LIBS
  16341. fi
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16343. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16344. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16345. LIBREADLINE="-lcurses"
  16346. else
  16347. unset ac_cv_lib_readline_readline;
  16348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16349. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16350. if ${ac_cv_lib_readline_readline+:} false; then :
  16351. $as_echo_n "(cached) " >&6
  16352. else
  16353. ac_check_lib_save_LIBS=$LIBS
  16354. LIBS="-lreadline -lncurses $LIBS"
  16355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16356. /* end confdefs.h. */
  16357. /* Override any GCC internal prototype to avoid an error.
  16358. Use char because int might match the return type of a GCC
  16359. builtin and then its argument prototype would still apply. */
  16360. #ifdef __cplusplus
  16361. extern "C"
  16362. #endif
  16363. char readline ();
  16364. int
  16365. main ()
  16366. {
  16367. return readline ();
  16368. ;
  16369. return 0;
  16370. }
  16371. _ACEOF
  16372. if ac_fn_c_try_link "$LINENO"; then :
  16373. ac_cv_lib_readline_readline=yes
  16374. else
  16375. ac_cv_lib_readline_readline=no
  16376. fi
  16377. rm -f core conftest.err conftest.$ac_objext \
  16378. conftest$ac_exeext conftest.$ac_ext
  16379. LIBS=$ac_check_lib_save_LIBS
  16380. fi
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16382. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16383. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16384. LIBREADLINE="-lncurses"
  16385. else
  16386. unset ac_cv_lib_readline_readline;
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16388. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16389. if ${ac_cv_lib_readline_readline+:} false; then :
  16390. $as_echo_n "(cached) " >&6
  16391. else
  16392. ac_check_lib_save_LIBS=$LIBS
  16393. LIBS="-lreadline -lncursesw $LIBS"
  16394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16395. /* end confdefs.h. */
  16396. /* Override any GCC internal prototype to avoid an error.
  16397. Use char because int might match the return type of a GCC
  16398. builtin and then its argument prototype would still apply. */
  16399. #ifdef __cplusplus
  16400. extern "C"
  16401. #endif
  16402. char readline ();
  16403. int
  16404. main ()
  16405. {
  16406. return readline ();
  16407. ;
  16408. return 0;
  16409. }
  16410. _ACEOF
  16411. if ac_fn_c_try_link "$LINENO"; then :
  16412. ac_cv_lib_readline_readline=yes
  16413. else
  16414. ac_cv_lib_readline_readline=no
  16415. fi
  16416. rm -f core conftest.err conftest.$ac_objext \
  16417. conftest$ac_exeext conftest.$ac_ext
  16418. LIBS=$ac_check_lib_save_LIBS
  16419. fi
  16420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16421. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16422. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16423. LIBREADLINE="-lncursesw"
  16424. else
  16425. unset ac_cv_lib_readline_readline;
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  16427. $as_echo_n "checking for readline in -lreadline... " >&6; }
  16428. if ${ac_cv_lib_readline_readline+:} false; then :
  16429. $as_echo_n "(cached) " >&6
  16430. else
  16431. ac_check_lib_save_LIBS=$LIBS
  16432. LIBS="-lreadline -ltermcap $LIBS"
  16433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16434. /* end confdefs.h. */
  16435. /* Override any GCC internal prototype to avoid an error.
  16436. Use char because int might match the return type of a GCC
  16437. builtin and then its argument prototype would still apply. */
  16438. #ifdef __cplusplus
  16439. extern "C"
  16440. #endif
  16441. char readline ();
  16442. int
  16443. main ()
  16444. {
  16445. return readline ();
  16446. ;
  16447. return 0;
  16448. }
  16449. _ACEOF
  16450. if ac_fn_c_try_link "$LINENO"; then :
  16451. ac_cv_lib_readline_readline=yes
  16452. else
  16453. ac_cv_lib_readline_readline=no
  16454. fi
  16455. rm -f core conftest.err conftest.$ac_objext \
  16456. conftest$ac_exeext conftest.$ac_ext
  16457. LIBS=$ac_check_lib_save_LIBS
  16458. fi
  16459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  16460. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  16461. if test "x$ac_cv_lib_readline_readline" = xyes; then :
  16462. LIBREADLINE="-ltermcap"
  16463. else
  16464. LIBREADLINE=""
  16465. fi
  16466. fi
  16467. fi
  16468. fi
  16469. fi
  16470. fi
  16471. if test -n "$LIBREADLINE"; then
  16472. if test "$LIBREADLINE" != "-lreadline"; then
  16473. echo "-lreadline needs $LIBREADLINE"
  16474. LIBREADLINE="-lreadline $LIBREADLINE"
  16475. fi
  16476. fi
  16477. fi
  16478. # Check for the availability of libedit. Different distributions put its
  16479. # headers in different places. Try to cover the most common ones.
  16480. if test "$enable_pcretest_libedit" = "yes"; then
  16481. for ac_header in editline/readline.h
  16482. do :
  16483. ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
  16484. if test "x$ac_cv_header_editline_readline_h" = xyes; then :
  16485. cat >>confdefs.h <<_ACEOF
  16486. #define HAVE_EDITLINE_READLINE_H 1
  16487. _ACEOF
  16488. HAVE_EDITLINE_READLINE_H=1
  16489. else
  16490. for ac_header in edit/readline/readline.h
  16491. do :
  16492. ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
  16493. if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
  16494. cat >>confdefs.h <<_ACEOF
  16495. #define HAVE_EDIT_READLINE_READLINE_H 1
  16496. _ACEOF
  16497. HAVE_READLINE_READLINE_H=1
  16498. else
  16499. for ac_header in readline/readline.h
  16500. do :
  16501. ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  16502. if test "x$ac_cv_header_readline_readline_h" = xyes; then :
  16503. cat >>confdefs.h <<_ACEOF
  16504. #define HAVE_READLINE_READLINE_H 1
  16505. _ACEOF
  16506. HAVE_READLINE_READLINE_H=1
  16507. fi
  16508. done
  16509. fi
  16510. done
  16511. fi
  16512. done
  16513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
  16514. $as_echo_n "checking for readline in -ledit... " >&6; }
  16515. if ${ac_cv_lib_edit_readline+:} false; then :
  16516. $as_echo_n "(cached) " >&6
  16517. else
  16518. ac_check_lib_save_LIBS=$LIBS
  16519. LIBS="-ledit $LIBS"
  16520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16521. /* end confdefs.h. */
  16522. /* Override any GCC internal prototype to avoid an error.
  16523. Use char because int might match the return type of a GCC
  16524. builtin and then its argument prototype would still apply. */
  16525. #ifdef __cplusplus
  16526. extern "C"
  16527. #endif
  16528. char readline ();
  16529. int
  16530. main ()
  16531. {
  16532. return readline ();
  16533. ;
  16534. return 0;
  16535. }
  16536. _ACEOF
  16537. if ac_fn_c_try_link "$LINENO"; then :
  16538. ac_cv_lib_edit_readline=yes
  16539. else
  16540. ac_cv_lib_edit_readline=no
  16541. fi
  16542. rm -f core conftest.err conftest.$ac_objext \
  16543. conftest$ac_exeext conftest.$ac_ext
  16544. LIBS=$ac_check_lib_save_LIBS
  16545. fi
  16546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
  16547. $as_echo "$ac_cv_lib_edit_readline" >&6; }
  16548. if test "x$ac_cv_lib_edit_readline" = xyes; then :
  16549. LIBEDIT="-ledit"
  16550. fi
  16551. fi
  16552. # This facilitates -ansi builds under Linux
  16553. PCRE_STATIC_CFLAG=""
  16554. if test "x$enable_shared" = "xno" ; then
  16555. $as_echo "#define PCRE_STATIC 1" >>confdefs.h
  16556. PCRE_STATIC_CFLAG="-DPCRE_STATIC"
  16557. fi
  16558. # Here is where pcre specific defines are handled
  16559. if test "$enable_pcre8" = "yes"; then
  16560. $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
  16561. fi
  16562. if test "$enable_pcre16" = "yes"; then
  16563. $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
  16564. fi
  16565. if test "$enable_pcre32" = "yes"; then
  16566. $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
  16567. fi
  16568. # Unless running under Windows, JIT support requires pthreads.
  16569. if test "$enable_jit" = "yes"; then
  16570. if test "$HAVE_WINDOWS_H" != "1"; then
  16571. ac_ext=c
  16572. ac_cpp='$CPP $CPPFLAGS'
  16573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16576. ax_pthread_ok=no
  16577. # We used to check for pthread.h first, but this fails if pthread.h
  16578. # requires special compiler flags (e.g. on True64 or Sequent).
  16579. # It gets checked for in the link test anyway.
  16580. # First of all, check if the user has set any of the PTHREAD_LIBS,
  16581. # etcetera environment variables, and if threads linking works using
  16582. # them:
  16583. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  16584. save_CFLAGS="$CFLAGS"
  16585. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16586. save_LIBS="$LIBS"
  16587. LIBS="$PTHREAD_LIBS $LIBS"
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  16589. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  16590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16591. /* end confdefs.h. */
  16592. /* Override any GCC internal prototype to avoid an error.
  16593. Use char because int might match the return type of a GCC
  16594. builtin and then its argument prototype would still apply. */
  16595. #ifdef __cplusplus
  16596. extern "C"
  16597. #endif
  16598. char pthread_join ();
  16599. int
  16600. main ()
  16601. {
  16602. return pthread_join ();
  16603. ;
  16604. return 0;
  16605. }
  16606. _ACEOF
  16607. if ac_fn_c_try_link "$LINENO"; then :
  16608. ax_pthread_ok=yes
  16609. fi
  16610. rm -f core conftest.err conftest.$ac_objext \
  16611. conftest$ac_exeext conftest.$ac_ext
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  16613. $as_echo "$ax_pthread_ok" >&6; }
  16614. if test x"$ax_pthread_ok" = xno; then
  16615. PTHREAD_LIBS=""
  16616. PTHREAD_CFLAGS=""
  16617. fi
  16618. LIBS="$save_LIBS"
  16619. CFLAGS="$save_CFLAGS"
  16620. fi
  16621. # We must check for the threads library under a number of different
  16622. # names; the ordering is very important because some systems
  16623. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  16624. # libraries is broken (non-POSIX).
  16625. # Create a list of thread flags to try. Items starting with a "-" are
  16626. # C compiler flags, and other items are library names, except for "none"
  16627. # which indicates that we try without any flags at all, and "pthread-config"
  16628. # which is a program returning the flags for the Pth emulation library.
  16629. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  16630. # The ordering *is* (sometimes) important. Some notes on the
  16631. # individual items follow:
  16632. # pthreads: AIX (must check this before -lpthread)
  16633. # none: in case threads are in libc; should be tried before -Kthread and
  16634. # other compiler flags to prevent continual compiler warnings
  16635. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  16636. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  16637. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  16638. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  16639. # -pthreads: Solaris/gcc
  16640. # -mthreads: Mingw32/gcc, Lynx/gcc
  16641. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  16642. # doesn't hurt to check since this sometimes defines pthreads too;
  16643. # also defines -D_REENTRANT)
  16644. # ... -mt is also the pthreads flag for HP/aCC
  16645. # pthread: Linux, etcetera
  16646. # --thread-safe: KAI C++
  16647. # pthread-config: use pthread-config program (for GNU Pth library)
  16648. case ${host_os} in
  16649. solaris*)
  16650. # On Solaris (at least, for some versions), libc contains stubbed
  16651. # (non-functional) versions of the pthreads routines, so link-based
  16652. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  16653. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  16654. # a function called by this macro, so we could check for that, but
  16655. # who knows whether they'll stub that too in a future libc.) So,
  16656. # we'll just look for -pthreads and -lpthread first:
  16657. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  16658. ;;
  16659. darwin*)
  16660. ax_pthread_flags="-pthread $ax_pthread_flags"
  16661. ;;
  16662. esac
  16663. if test x"$ax_pthread_ok" = xno; then
  16664. for flag in $ax_pthread_flags; do
  16665. case $flag in
  16666. none)
  16667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  16668. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  16669. ;;
  16670. -*)
  16671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  16672. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  16673. PTHREAD_CFLAGS="$flag"
  16674. ;;
  16675. pthread-config)
  16676. # Extract the first word of "pthread-config", so it can be a program name with args.
  16677. set dummy pthread-config; ac_word=$2
  16678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16679. $as_echo_n "checking for $ac_word... " >&6; }
  16680. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  16681. $as_echo_n "(cached) " >&6
  16682. else
  16683. if test -n "$ax_pthread_config"; then
  16684. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  16685. else
  16686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16687. for as_dir in $PATH
  16688. do
  16689. IFS=$as_save_IFS
  16690. test -z "$as_dir" && as_dir=.
  16691. for ac_exec_ext in '' $ac_executable_extensions; do
  16692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16693. ac_cv_prog_ax_pthread_config="yes"
  16694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16695. break 2
  16696. fi
  16697. done
  16698. done
  16699. IFS=$as_save_IFS
  16700. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  16701. fi
  16702. fi
  16703. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  16704. if test -n "$ax_pthread_config"; then
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  16706. $as_echo "$ax_pthread_config" >&6; }
  16707. else
  16708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16709. $as_echo "no" >&6; }
  16710. fi
  16711. if test x"$ax_pthread_config" = xno; then continue; fi
  16712. PTHREAD_CFLAGS="`pthread-config --cflags`"
  16713. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  16714. ;;
  16715. *)
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  16717. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  16718. PTHREAD_LIBS="-l$flag"
  16719. ;;
  16720. esac
  16721. save_LIBS="$LIBS"
  16722. save_CFLAGS="$CFLAGS"
  16723. LIBS="$PTHREAD_LIBS $LIBS"
  16724. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16725. # Check for various functions. We must include pthread.h,
  16726. # since some functions may be macros. (On the Sequent, we
  16727. # need a special flag -Kthread to make this header compile.)
  16728. # We check for pthread_join because it is in -lpthread on IRIX
  16729. # while pthread_create is in libc. We check for pthread_attr_init
  16730. # due to DEC craziness with -lpthreads. We check for
  16731. # pthread_cleanup_push because it is one of the few pthread
  16732. # functions on Solaris that doesn't have a non-functional libc stub.
  16733. # We try pthread_create on general principles.
  16734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16735. /* end confdefs.h. */
  16736. #include <pthread.h>
  16737. static void routine(void *a) { a = 0; }
  16738. static void *start_routine(void *a) { return a; }
  16739. int
  16740. main ()
  16741. {
  16742. pthread_t th; pthread_attr_t attr;
  16743. pthread_create(&th, 0, start_routine, 0);
  16744. pthread_join(th, 0);
  16745. pthread_attr_init(&attr);
  16746. pthread_cleanup_push(routine, 0);
  16747. pthread_cleanup_pop(0) /* ; */
  16748. ;
  16749. return 0;
  16750. }
  16751. _ACEOF
  16752. if ac_fn_c_try_link "$LINENO"; then :
  16753. ax_pthread_ok=yes
  16754. fi
  16755. rm -f core conftest.err conftest.$ac_objext \
  16756. conftest$ac_exeext conftest.$ac_ext
  16757. LIBS="$save_LIBS"
  16758. CFLAGS="$save_CFLAGS"
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  16760. $as_echo "$ax_pthread_ok" >&6; }
  16761. if test "x$ax_pthread_ok" = xyes; then
  16762. break;
  16763. fi
  16764. PTHREAD_LIBS=""
  16765. PTHREAD_CFLAGS=""
  16766. done
  16767. fi
  16768. # Various other checks:
  16769. if test "x$ax_pthread_ok" = xyes; then
  16770. save_LIBS="$LIBS"
  16771. LIBS="$PTHREAD_LIBS $LIBS"
  16772. save_CFLAGS="$CFLAGS"
  16773. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16774. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  16775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  16776. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  16777. attr_name=unknown
  16778. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  16779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16780. /* end confdefs.h. */
  16781. #include <pthread.h>
  16782. int
  16783. main ()
  16784. {
  16785. int attr = $attr; return attr /* ; */
  16786. ;
  16787. return 0;
  16788. }
  16789. _ACEOF
  16790. if ac_fn_c_try_link "$LINENO"; then :
  16791. attr_name=$attr; break
  16792. fi
  16793. rm -f core conftest.err conftest.$ac_objext \
  16794. conftest$ac_exeext conftest.$ac_ext
  16795. done
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  16797. $as_echo "$attr_name" >&6; }
  16798. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  16799. cat >>confdefs.h <<_ACEOF
  16800. #define PTHREAD_CREATE_JOINABLE $attr_name
  16801. _ACEOF
  16802. fi
  16803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  16804. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  16805. flag=no
  16806. case ${host_os} in
  16807. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  16808. osf* | hpux*) flag="-D_REENTRANT";;
  16809. solaris*)
  16810. if test "$GCC" = "yes"; then
  16811. flag="-D_REENTRANT"
  16812. else
  16813. flag="-mt -D_REENTRANT"
  16814. fi
  16815. ;;
  16816. esac
  16817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  16818. $as_echo "${flag}" >&6; }
  16819. if test "x$flag" != xno; then
  16820. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  16821. fi
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  16823. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  16824. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  16825. $as_echo_n "(cached) " >&6
  16826. else
  16827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16828. /* end confdefs.h. */
  16829. #include <pthread.h>
  16830. int
  16831. main ()
  16832. {
  16833. int i = PTHREAD_PRIO_INHERIT;
  16834. ;
  16835. return 0;
  16836. }
  16837. _ACEOF
  16838. if ac_fn_c_try_link "$LINENO"; then :
  16839. ax_cv_PTHREAD_PRIO_INHERIT=yes
  16840. else
  16841. ax_cv_PTHREAD_PRIO_INHERIT=no
  16842. fi
  16843. rm -f core conftest.err conftest.$ac_objext \
  16844. conftest$ac_exeext conftest.$ac_ext
  16845. fi
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  16847. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  16848. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  16849. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  16850. fi
  16851. LIBS="$save_LIBS"
  16852. CFLAGS="$save_CFLAGS"
  16853. # More AIX lossage: must compile with xlc_r or cc_r
  16854. if test x"$GCC" != xyes; then
  16855. for ac_prog in xlc_r cc_r
  16856. do
  16857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  16858. set dummy $ac_prog; ac_word=$2
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16860. $as_echo_n "checking for $ac_word... " >&6; }
  16861. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  16862. $as_echo_n "(cached) " >&6
  16863. else
  16864. if test -n "$PTHREAD_CC"; then
  16865. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  16866. else
  16867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16868. for as_dir in $PATH
  16869. do
  16870. IFS=$as_save_IFS
  16871. test -z "$as_dir" && as_dir=.
  16872. for ac_exec_ext in '' $ac_executable_extensions; do
  16873. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16874. ac_cv_prog_PTHREAD_CC="$ac_prog"
  16875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16876. break 2
  16877. fi
  16878. done
  16879. done
  16880. IFS=$as_save_IFS
  16881. fi
  16882. fi
  16883. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  16884. if test -n "$PTHREAD_CC"; then
  16885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  16886. $as_echo "$PTHREAD_CC" >&6; }
  16887. else
  16888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16889. $as_echo "no" >&6; }
  16890. fi
  16891. test -n "$PTHREAD_CC" && break
  16892. done
  16893. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  16894. else
  16895. PTHREAD_CC=$CC
  16896. fi
  16897. else
  16898. PTHREAD_CC="$CC"
  16899. fi
  16900. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  16901. if test x"$ax_pthread_ok" = xyes; then
  16902. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  16903. :
  16904. else
  16905. ax_pthread_ok=no
  16906. as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
  16907. fi
  16908. ac_ext=c
  16909. ac_cpp='$CPP $CPPFLAGS'
  16910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16913. CC="$PTHREAD_CC"
  16914. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  16915. LIBS="$PTHREAD_LIBS $LIBS"
  16916. fi
  16917. $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
  16918. else
  16919. enable_pcregrep_jit="no"
  16920. fi
  16921. if test "$enable_pcregrep_jit" = "yes"; then
  16922. $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
  16923. fi
  16924. if test "$enable_utf" = "yes"; then
  16925. $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
  16926. fi
  16927. if test "$enable_unicode_properties" = "yes"; then
  16928. $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
  16929. fi
  16930. if test "$enable_stack_for_recursion" = "no"; then
  16931. $as_echo "#define NO_RECURSE /**/" >>confdefs.h
  16932. fi
  16933. if test "$enable_pcregrep_libz" = "yes"; then
  16934. $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
  16935. fi
  16936. if test "$enable_pcregrep_libbz2" = "yes"; then
  16937. $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
  16938. fi
  16939. if test $with_pcregrep_bufsize -lt 8192 ; then
  16940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&5
  16941. $as_echo "$as_me: WARNING: $with_pcregrep_bufsize is too small for --with-pcregrep-bufsize; using 8192" >&2;}
  16942. with_pcregrep_bufsize="8192"
  16943. else
  16944. if test $? -gt 1 ; then
  16945. as_fn_error $? "Bad value for --with-pcregrep-bufsize" "$LINENO" 5
  16946. fi
  16947. fi
  16948. cat >>confdefs.h <<_ACEOF
  16949. #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
  16950. _ACEOF
  16951. if test "$enable_pcretest_libedit" = "yes"; then
  16952. $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
  16953. LIBREADLINE="$LIBEDIT"
  16954. elif test "$enable_pcretest_libreadline" = "yes"; then
  16955. $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
  16956. fi
  16957. cat >>confdefs.h <<_ACEOF
  16958. #define NEWLINE $ac_pcre_newline_value
  16959. _ACEOF
  16960. if test "$enable_bsr_anycrlf" = "yes"; then
  16961. $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
  16962. fi
  16963. cat >>confdefs.h <<_ACEOF
  16964. #define LINK_SIZE $with_link_size
  16965. _ACEOF
  16966. cat >>confdefs.h <<_ACEOF
  16967. #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
  16968. _ACEOF
  16969. cat >>confdefs.h <<_ACEOF
  16970. #define PARENS_NEST_LIMIT $with_parens_nest_limit
  16971. _ACEOF
  16972. cat >>confdefs.h <<_ACEOF
  16973. #define MATCH_LIMIT $with_match_limit
  16974. _ACEOF
  16975. cat >>confdefs.h <<_ACEOF
  16976. #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
  16977. _ACEOF
  16978. $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
  16979. $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
  16980. if test "$enable_ebcdic" = "yes"; then
  16981. cat >>confdefs.h <<_ACEOF
  16982. #define EBCDIC /**/
  16983. _ACEOF
  16984. fi
  16985. if test "$enable_ebcdic_nl25" = "yes"; then
  16986. cat >>confdefs.h <<_ACEOF
  16987. #define EBCDIC_NL25 /**/
  16988. _ACEOF
  16989. fi
  16990. if test "$enable_valgrind" = "yes"; then
  16991. cat >>confdefs.h <<_ACEOF
  16992. #define SUPPORT_VALGRIND /**/
  16993. _ACEOF
  16994. fi
  16995. # Platform specific issues
  16996. NO_UNDEFINED=
  16997. EXPORT_ALL_SYMBOLS=
  16998. case $host_os in
  16999. cygwin* | mingw* )
  17000. if test X"$enable_shared" = Xyes; then
  17001. NO_UNDEFINED="-no-undefined"
  17002. EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
  17003. fi
  17004. ;;
  17005. esac
  17006. # The extra LDFLAGS for each particular library
  17007. # (Note: The libpcre*_version bits are m4 variables, assigned above)
  17008. EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
  17009. $NO_UNDEFINED -version-info 3:11:2"
  17010. EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
  17011. $NO_UNDEFINED -version-info 2:11:2"
  17012. EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
  17013. $NO_UNDEFINED -version-info 0:11:0"
  17014. EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
  17015. $NO_UNDEFINED -version-info 0:6:0"
  17016. EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
  17017. $NO_UNDEFINED -version-info 0:1:0 \
  17018. $EXPORT_ALL_SYMBOLS"
  17019. # When we run 'make distcheck', use these arguments. Turning off compiler
  17020. # optimization makes it run faster.
  17021. DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
  17022. # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
  17023. # specified, the relevant library is available.
  17024. if test "$enable_pcregrep_libz" = "yes"; then
  17025. if test "$HAVE_ZLIB_H" != "1"; then
  17026. echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
  17027. exit 1
  17028. fi
  17029. if test "$HAVE_LIBZ" != "1"; then
  17030. echo "** Cannot --enable-pcregrep-libz because libz was not found"
  17031. exit 1
  17032. fi
  17033. LIBZ="-lz"
  17034. fi
  17035. if test "$enable_pcregrep_libbz2" = "yes"; then
  17036. if test "$HAVE_BZLIB_H" != "1"; then
  17037. echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
  17038. exit 1
  17039. fi
  17040. if test "$HAVE_LIBBZ2" != "1"; then
  17041. echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
  17042. exit 1
  17043. fi
  17044. LIBBZ2="-lbz2"
  17045. fi
  17046. # Similarly for --enable-pcretest-readline
  17047. if test "$enable_pcretest_libedit" = "yes"; then
  17048. if test "$enable_pcretest_libreadline" = "yes"; then
  17049. echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
  17050. exit 1
  17051. fi
  17052. if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
  17053. "$HAVE_READLINE_READLINE_H" != "1"; then
  17054. echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
  17055. echo "** nor readline/readline.h was found."
  17056. exit 1
  17057. fi
  17058. if test -z "$LIBEDIT"; then
  17059. echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
  17060. exit 1
  17061. fi
  17062. fi
  17063. if test "$enable_pcretest_libreadline" = "yes"; then
  17064. if test "$HAVE_READLINE_H" != "1"; then
  17065. echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
  17066. exit 1
  17067. fi
  17068. if test "$HAVE_HISTORY_H" != "1"; then
  17069. echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
  17070. exit 1
  17071. fi
  17072. if test -z "$LIBREADLINE"; then
  17073. echo "** Cannot --enable-pcretest-readline because readline library was not found."
  17074. exit 1
  17075. fi
  17076. fi
  17077. # Handle valgrind support
  17078. if test "$enable_valgrind" = "yes"; then
  17079. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  17080. if test -n "$ac_tool_prefix"; then
  17081. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17082. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17084. $as_echo_n "checking for $ac_word... " >&6; }
  17085. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  17086. $as_echo_n "(cached) " >&6
  17087. else
  17088. case $PKG_CONFIG in
  17089. [\\/]* | ?:[\\/]*)
  17090. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  17091. ;;
  17092. *)
  17093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17094. for as_dir in $PATH
  17095. do
  17096. IFS=$as_save_IFS
  17097. test -z "$as_dir" && as_dir=.
  17098. for ac_exec_ext in '' $ac_executable_extensions; do
  17099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17100. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17102. break 2
  17103. fi
  17104. done
  17105. done
  17106. IFS=$as_save_IFS
  17107. ;;
  17108. esac
  17109. fi
  17110. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  17111. if test -n "$PKG_CONFIG"; then
  17112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  17113. $as_echo "$PKG_CONFIG" >&6; }
  17114. else
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17116. $as_echo "no" >&6; }
  17117. fi
  17118. fi
  17119. if test -z "$ac_cv_path_PKG_CONFIG"; then
  17120. ac_pt_PKG_CONFIG=$PKG_CONFIG
  17121. # Extract the first word of "pkg-config", so it can be a program name with args.
  17122. set dummy pkg-config; ac_word=$2
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17124. $as_echo_n "checking for $ac_word... " >&6; }
  17125. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  17126. $as_echo_n "(cached) " >&6
  17127. else
  17128. case $ac_pt_PKG_CONFIG in
  17129. [\\/]* | ?:[\\/]*)
  17130. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  17131. ;;
  17132. *)
  17133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17134. for as_dir in $PATH
  17135. do
  17136. IFS=$as_save_IFS
  17137. test -z "$as_dir" && as_dir=.
  17138. for ac_exec_ext in '' $ac_executable_extensions; do
  17139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17140. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  17141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17142. break 2
  17143. fi
  17144. done
  17145. done
  17146. IFS=$as_save_IFS
  17147. ;;
  17148. esac
  17149. fi
  17150. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  17151. if test -n "$ac_pt_PKG_CONFIG"; then
  17152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  17153. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  17154. else
  17155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17156. $as_echo "no" >&6; }
  17157. fi
  17158. if test "x$ac_pt_PKG_CONFIG" = x; then
  17159. PKG_CONFIG=""
  17160. else
  17161. case $cross_compiling:$ac_tool_warned in
  17162. yes:)
  17163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17165. ac_tool_warned=yes ;;
  17166. esac
  17167. PKG_CONFIG=$ac_pt_PKG_CONFIG
  17168. fi
  17169. else
  17170. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  17171. fi
  17172. fi
  17173. if test -n "$PKG_CONFIG"; then
  17174. _pkg_min_version=0.9.0
  17175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  17176. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  17177. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  17178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17179. $as_echo "yes" >&6; }
  17180. else
  17181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17182. $as_echo "no" >&6; }
  17183. PKG_CONFIG=""
  17184. fi
  17185. fi
  17186. pkg_failed=no
  17187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
  17188. $as_echo_n "checking for VALGRIND... " >&6; }
  17189. if test -n "$VALGRIND_CFLAGS"; then
  17190. pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
  17191. elif test -n "$PKG_CONFIG"; then
  17192. if test -n "$PKG_CONFIG" && \
  17193. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  17194. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  17195. ac_status=$?
  17196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17197. test $ac_status = 0; }; then
  17198. pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
  17199. test "x$?" != "x0" && pkg_failed=yes
  17200. else
  17201. pkg_failed=yes
  17202. fi
  17203. else
  17204. pkg_failed=untried
  17205. fi
  17206. if test -n "$VALGRIND_LIBS"; then
  17207. pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
  17208. elif test -n "$PKG_CONFIG"; then
  17209. if test -n "$PKG_CONFIG" && \
  17210. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  17211. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  17212. ac_status=$?
  17213. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17214. test $ac_status = 0; }; then
  17215. pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
  17216. test "x$?" != "x0" && pkg_failed=yes
  17217. else
  17218. pkg_failed=yes
  17219. fi
  17220. else
  17221. pkg_failed=untried
  17222. fi
  17223. if test $pkg_failed = yes; then
  17224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17225. $as_echo "no" >&6; }
  17226. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17227. _pkg_short_errors_supported=yes
  17228. else
  17229. _pkg_short_errors_supported=no
  17230. fi
  17231. if test $_pkg_short_errors_supported = yes; then
  17232. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
  17233. else
  17234. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
  17235. fi
  17236. # Put the nasty error message in config.log where it belongs
  17237. echo "$VALGRIND_PKG_ERRORS" >&5
  17238. as_fn_error $? "Package requirements (valgrind) were not met:
  17239. $VALGRIND_PKG_ERRORS
  17240. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  17241. installed software in a non-standard prefix.
  17242. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  17243. and VALGRIND_LIBS to avoid the need to call pkg-config.
  17244. See the pkg-config man page for more details." "$LINENO" 5
  17245. elif test $pkg_failed = untried; then
  17246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17247. $as_echo "no" >&6; }
  17248. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17249. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17250. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  17251. is in your PATH or set the PKG_CONFIG environment variable to the full
  17252. path to pkg-config.
  17253. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  17254. and VALGRIND_LIBS to avoid the need to call pkg-config.
  17255. See the pkg-config man page for more details.
  17256. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  17257. See \`config.log' for more details" "$LINENO" 5; }
  17258. else
  17259. VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
  17260. VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
  17261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17262. $as_echo "yes" >&6; }
  17263. fi
  17264. fi
  17265. # Handle code coverage reporting support
  17266. if test "$enable_coverage" = "yes"; then
  17267. if test "x$GCC" != "xyes"; then
  17268. as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
  17269. fi
  17270. # ccache is incompatible with gcov
  17271. # Extract the first word of "shtool", so it can be a program name with args.
  17272. set dummy shtool; ac_word=$2
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17274. $as_echo_n "checking for $ac_word... " >&6; }
  17275. if ${ac_cv_path_SHTOOL+:} false; then :
  17276. $as_echo_n "(cached) " >&6
  17277. else
  17278. case $SHTOOL in
  17279. [\\/]* | ?:[\\/]*)
  17280. ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
  17281. ;;
  17282. *)
  17283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17284. for as_dir in $PATH
  17285. do
  17286. IFS=$as_save_IFS
  17287. test -z "$as_dir" && as_dir=.
  17288. for ac_exec_ext in '' $ac_executable_extensions; do
  17289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17290. ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
  17291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17292. break 2
  17293. fi
  17294. done
  17295. done
  17296. IFS=$as_save_IFS
  17297. test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
  17298. ;;
  17299. esac
  17300. fi
  17301. SHTOOL=$ac_cv_path_SHTOOL
  17302. if test -n "$SHTOOL"; then
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
  17304. $as_echo "$SHTOOL" >&6; }
  17305. else
  17306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17307. $as_echo "no" >&6; }
  17308. fi
  17309. case `$SHTOOL path $CC` in
  17310. *ccache*) cc_ccache=yes;;
  17311. *) cc_ccache=no;;
  17312. esac
  17313. if test "$cc_ccache" = "yes"; then
  17314. if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
  17315. as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
  17316. fi
  17317. fi
  17318. # Extract the first word of "lcov", so it can be a program name with args.
  17319. set dummy lcov; ac_word=$2
  17320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17321. $as_echo_n "checking for $ac_word... " >&6; }
  17322. if ${ac_cv_path_LCOV+:} false; then :
  17323. $as_echo_n "(cached) " >&6
  17324. else
  17325. case $LCOV in
  17326. [\\/]* | ?:[\\/]*)
  17327. ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
  17328. ;;
  17329. *)
  17330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17331. for as_dir in $PATH
  17332. do
  17333. IFS=$as_save_IFS
  17334. test -z "$as_dir" && as_dir=.
  17335. for ac_exec_ext in '' $ac_executable_extensions; do
  17336. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17337. ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
  17338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17339. break 2
  17340. fi
  17341. done
  17342. done
  17343. IFS=$as_save_IFS
  17344. test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
  17345. ;;
  17346. esac
  17347. fi
  17348. LCOV=$ac_cv_path_LCOV
  17349. if test -n "$LCOV"; then
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  17351. $as_echo "$LCOV" >&6; }
  17352. else
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17354. $as_echo "no" >&6; }
  17355. fi
  17356. if test "x$LCOV" = "xfalse"; then
  17357. as_fn_error $? "lcov not found" "$LINENO" 5
  17358. fi
  17359. # Extract the first word of "genhtml", so it can be a program name with args.
  17360. set dummy genhtml; ac_word=$2
  17361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17362. $as_echo_n "checking for $ac_word... " >&6; }
  17363. if ${ac_cv_path_GENHTML+:} false; then :
  17364. $as_echo_n "(cached) " >&6
  17365. else
  17366. case $GENHTML in
  17367. [\\/]* | ?:[\\/]*)
  17368. ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
  17369. ;;
  17370. *)
  17371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17372. for as_dir in $PATH
  17373. do
  17374. IFS=$as_save_IFS
  17375. test -z "$as_dir" && as_dir=.
  17376. for ac_exec_ext in '' $ac_executable_extensions; do
  17377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17378. ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
  17379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17380. break 2
  17381. fi
  17382. done
  17383. done
  17384. IFS=$as_save_IFS
  17385. test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
  17386. ;;
  17387. esac
  17388. fi
  17389. GENHTML=$ac_cv_path_GENHTML
  17390. if test -n "$GENHTML"; then
  17391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  17392. $as_echo "$GENHTML" >&6; }
  17393. else
  17394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17395. $as_echo "no" >&6; }
  17396. fi
  17397. if test "x$GENHTML" = "xfalse"; then
  17398. as_fn_error $? "genhtml not found" "$LINENO" 5
  17399. fi
  17400. # Set flags needed for gcov
  17401. GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  17402. GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  17403. GCOV_LIBS="-lgcov"
  17404. fi # enable_coverage
  17405. if test "x$enable_coverage" = "xyes"; then
  17406. WITH_GCOV_TRUE=
  17407. WITH_GCOV_FALSE='#'
  17408. else
  17409. WITH_GCOV_TRUE='#'
  17410. WITH_GCOV_FALSE=
  17411. fi
  17412. # Produce these files, in addition to config.h.
  17413. ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
  17414. # Make the generated script files executable.
  17415. ac_config_commands="$ac_config_commands script-chmod"
  17416. # Make sure that pcre_chartables.c is removed in case the method for
  17417. # creating it was changed by reconfiguration.
  17418. ac_config_commands="$ac_config_commands delete-old-chartables"
  17419. cat >confcache <<\_ACEOF
  17420. # This file is a shell script that caches the results of configure
  17421. # tests run on this system so they can be shared between configure
  17422. # scripts and configure runs, see configure's option --config-cache.
  17423. # It is not useful on other systems. If it contains results you don't
  17424. # want to keep, you may remove or edit it.
  17425. #
  17426. # config.status only pays attention to the cache file if you give it
  17427. # the --recheck option to rerun configure.
  17428. #
  17429. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  17430. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  17431. # following values.
  17432. _ACEOF
  17433. # The following way of writing the cache mishandles newlines in values,
  17434. # but we know of no workaround that is simple, portable, and efficient.
  17435. # So, we kill variables containing newlines.
  17436. # Ultrix sh set writes to stderr and can't be redirected directly,
  17437. # and sets the high bit in the cache file unless we assign to the vars.
  17438. (
  17439. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  17440. eval ac_val=\$$ac_var
  17441. case $ac_val in #(
  17442. *${as_nl}*)
  17443. case $ac_var in #(
  17444. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  17445. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  17446. esac
  17447. case $ac_var in #(
  17448. _ | IFS | as_nl) ;; #(
  17449. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  17450. *) { eval $ac_var=; unset $ac_var;} ;;
  17451. esac ;;
  17452. esac
  17453. done
  17454. (set) 2>&1 |
  17455. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  17456. *${as_nl}ac_space=\ *)
  17457. # `set' does not quote correctly, so add quotes: double-quote
  17458. # substitution turns \\\\ into \\, and sed turns \\ into \.
  17459. sed -n \
  17460. "s/'/'\\\\''/g;
  17461. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  17462. ;; #(
  17463. *)
  17464. # `set' quotes correctly as required by POSIX, so do not add quotes.
  17465. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  17466. ;;
  17467. esac |
  17468. sort
  17469. ) |
  17470. sed '
  17471. /^ac_cv_env_/b end
  17472. t clear
  17473. :clear
  17474. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  17475. t end
  17476. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  17477. :end' >>confcache
  17478. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  17479. if test -w "$cache_file"; then
  17480. if test "x$cache_file" != "x/dev/null"; then
  17481. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  17482. $as_echo "$as_me: updating cache $cache_file" >&6;}
  17483. if test ! -f "$cache_file" || test -h "$cache_file"; then
  17484. cat confcache >"$cache_file"
  17485. else
  17486. case $cache_file in #(
  17487. */* | ?:*)
  17488. mv -f confcache "$cache_file"$$ &&
  17489. mv -f "$cache_file"$$ "$cache_file" ;; #(
  17490. *)
  17491. mv -f confcache "$cache_file" ;;
  17492. esac
  17493. fi
  17494. fi
  17495. else
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  17497. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  17498. fi
  17499. fi
  17500. rm -f confcache
  17501. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  17502. # Let make expand exec_prefix.
  17503. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  17504. DEFS=-DHAVE_CONFIG_H
  17505. ac_libobjs=
  17506. ac_ltlibobjs=
  17507. U=
  17508. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  17509. # 1. Remove the extension, and $U if already installed.
  17510. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  17511. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  17512. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  17513. # will be set to the directory where LIBOBJS objects are built.
  17514. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  17515. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  17516. done
  17517. LIBOBJS=$ac_libobjs
  17518. LTLIBOBJS=$ac_ltlibobjs
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  17520. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  17521. if test -n "$am_sleep_pid"; then
  17522. # Hide warnings about reused PIDs.
  17523. wait $am_sleep_pid 2>/dev/null
  17524. fi
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  17526. $as_echo "done" >&6; }
  17527. if test -n "$EXEEXT"; then
  17528. am__EXEEXT_TRUE=
  17529. am__EXEEXT_FALSE='#'
  17530. else
  17531. am__EXEEXT_TRUE='#'
  17532. am__EXEEXT_FALSE=
  17533. fi
  17534. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  17535. as_fn_error $? "conditional \"AMDEP\" was never defined.
  17536. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17537. fi
  17538. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17539. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17540. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17541. fi
  17542. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  17543. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  17544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17545. fi
  17546. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  17547. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  17548. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17549. fi
  17550. if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
  17551. as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
  17552. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17553. fi
  17554. if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
  17555. as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
  17556. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17557. fi
  17558. if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
  17559. as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
  17560. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17561. fi
  17562. if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
  17563. as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
  17564. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17565. fi
  17566. if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
  17567. as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
  17568. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17569. fi
  17570. if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
  17571. as_fn_error $? "conditional \"WITH_JIT\" was never defined.
  17572. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17573. fi
  17574. if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
  17575. as_fn_error $? "conditional \"WITH_UTF\" was never defined.
  17576. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17577. fi
  17578. if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
  17579. as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
  17580. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17581. fi
  17582. if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
  17583. as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
  17584. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  17585. fi
  17586. : "${CONFIG_STATUS=./config.status}"
  17587. ac_write_fail=0
  17588. ac_clean_files_save=$ac_clean_files
  17589. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17590. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  17591. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17592. as_write_fail=0
  17593. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  17594. #! $SHELL
  17595. # Generated by $as_me.
  17596. # Run this file to recreate the current configuration.
  17597. # Compiler output produced by configure, useful for debugging
  17598. # configure, is in config.log if it exists.
  17599. debug=false
  17600. ac_cs_recheck=false
  17601. ac_cs_silent=false
  17602. SHELL=\${CONFIG_SHELL-$SHELL}
  17603. export SHELL
  17604. _ASEOF
  17605. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  17606. ## -------------------- ##
  17607. ## M4sh Initialization. ##
  17608. ## -------------------- ##
  17609. # Be more Bourne compatible
  17610. DUALCASE=1; export DUALCASE # for MKS sh
  17611. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17612. emulate sh
  17613. NULLCMD=:
  17614. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  17615. # is contrary to our usage. Disable this feature.
  17616. alias -g '${1+"$@"}'='"$@"'
  17617. setopt NO_GLOB_SUBST
  17618. else
  17619. case `(set -o) 2>/dev/null` in #(
  17620. *posix*) :
  17621. set -o posix ;; #(
  17622. *) :
  17623. ;;
  17624. esac
  17625. fi
  17626. as_nl='
  17627. '
  17628. export as_nl
  17629. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  17630. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  17631. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  17632. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  17633. # Prefer a ksh shell builtin over an external printf program on Solaris,
  17634. # but without wasting forks for bash or zsh.
  17635. if test -z "$BASH_VERSION$ZSH_VERSION" \
  17636. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  17637. as_echo='print -r --'
  17638. as_echo_n='print -rn --'
  17639. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  17640. as_echo='printf %s\n'
  17641. as_echo_n='printf %s'
  17642. else
  17643. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  17644. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  17645. as_echo_n='/usr/ucb/echo -n'
  17646. else
  17647. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  17648. as_echo_n_body='eval
  17649. arg=$1;
  17650. case $arg in #(
  17651. *"$as_nl"*)
  17652. expr "X$arg" : "X\\(.*\\)$as_nl";
  17653. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  17654. esac;
  17655. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  17656. '
  17657. export as_echo_n_body
  17658. as_echo_n='sh -c $as_echo_n_body as_echo'
  17659. fi
  17660. export as_echo_body
  17661. as_echo='sh -c $as_echo_body as_echo'
  17662. fi
  17663. # The user is always right.
  17664. if test "${PATH_SEPARATOR+set}" != set; then
  17665. PATH_SEPARATOR=:
  17666. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  17667. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  17668. PATH_SEPARATOR=';'
  17669. }
  17670. fi
  17671. # IFS
  17672. # We need space, tab and new line, in precisely that order. Quoting is
  17673. # there to prevent editors from complaining about space-tab.
  17674. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17675. # splitting by setting IFS to empty value.)
  17676. IFS=" "" $as_nl"
  17677. # Find who we are. Look in the path if we contain no directory separator.
  17678. as_myself=
  17679. case $0 in #((
  17680. *[\\/]* ) as_myself=$0 ;;
  17681. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17682. for as_dir in $PATH
  17683. do
  17684. IFS=$as_save_IFS
  17685. test -z "$as_dir" && as_dir=.
  17686. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17687. done
  17688. IFS=$as_save_IFS
  17689. ;;
  17690. esac
  17691. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17692. # in which case we are not to be found in the path.
  17693. if test "x$as_myself" = x; then
  17694. as_myself=$0
  17695. fi
  17696. if test ! -f "$as_myself"; then
  17697. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17698. exit 1
  17699. fi
  17700. # Unset variables that we do not need and which cause bugs (e.g. in
  17701. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  17702. # suppresses any "Segmentation fault" message there. '((' could
  17703. # trigger a bug in pdksh 5.2.14.
  17704. for as_var in BASH_ENV ENV MAIL MAILPATH
  17705. do eval test x\${$as_var+set} = xset \
  17706. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  17707. done
  17708. PS1='$ '
  17709. PS2='> '
  17710. PS4='+ '
  17711. # NLS nuisances.
  17712. LC_ALL=C
  17713. export LC_ALL
  17714. LANGUAGE=C
  17715. export LANGUAGE
  17716. # CDPATH.
  17717. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  17718. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  17719. # ----------------------------------------
  17720. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  17721. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  17722. # script with STATUS, using 1 if that was 0.
  17723. as_fn_error ()
  17724. {
  17725. as_status=$1; test $as_status -eq 0 && as_status=1
  17726. if test "$4"; then
  17727. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17728. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  17729. fi
  17730. $as_echo "$as_me: error: $2" >&2
  17731. as_fn_exit $as_status
  17732. } # as_fn_error
  17733. # as_fn_set_status STATUS
  17734. # -----------------------
  17735. # Set $? to STATUS, without forking.
  17736. as_fn_set_status ()
  17737. {
  17738. return $1
  17739. } # as_fn_set_status
  17740. # as_fn_exit STATUS
  17741. # -----------------
  17742. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  17743. as_fn_exit ()
  17744. {
  17745. set +e
  17746. as_fn_set_status $1
  17747. exit $1
  17748. } # as_fn_exit
  17749. # as_fn_unset VAR
  17750. # ---------------
  17751. # Portably unset VAR.
  17752. as_fn_unset ()
  17753. {
  17754. { eval $1=; unset $1;}
  17755. }
  17756. as_unset=as_fn_unset
  17757. # as_fn_append VAR VALUE
  17758. # ----------------------
  17759. # Append the text in VALUE to the end of the definition contained in VAR. Take
  17760. # advantage of any shell optimizations that allow amortized linear growth over
  17761. # repeated appends, instead of the typical quadratic growth present in naive
  17762. # implementations.
  17763. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  17764. eval 'as_fn_append ()
  17765. {
  17766. eval $1+=\$2
  17767. }'
  17768. else
  17769. as_fn_append ()
  17770. {
  17771. eval $1=\$$1\$2
  17772. }
  17773. fi # as_fn_append
  17774. # as_fn_arith ARG...
  17775. # ------------------
  17776. # Perform arithmetic evaluation on the ARGs, and store the result in the
  17777. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  17778. # must be portable across $(()) and expr.
  17779. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  17780. eval 'as_fn_arith ()
  17781. {
  17782. as_val=$(( $* ))
  17783. }'
  17784. else
  17785. as_fn_arith ()
  17786. {
  17787. as_val=`expr "$@" || test $? -eq 1`
  17788. }
  17789. fi # as_fn_arith
  17790. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17791. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17792. as_expr=expr
  17793. else
  17794. as_expr=false
  17795. fi
  17796. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17797. as_basename=basename
  17798. else
  17799. as_basename=false
  17800. fi
  17801. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17802. as_dirname=dirname
  17803. else
  17804. as_dirname=false
  17805. fi
  17806. as_me=`$as_basename -- "$0" ||
  17807. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17808. X"$0" : 'X\(//\)$' \| \
  17809. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17810. $as_echo X/"$0" |
  17811. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17812. s//\1/
  17813. q
  17814. }
  17815. /^X\/\(\/\/\)$/{
  17816. s//\1/
  17817. q
  17818. }
  17819. /^X\/\(\/\).*/{
  17820. s//\1/
  17821. q
  17822. }
  17823. s/.*/./; q'`
  17824. # Avoid depending upon Character Ranges.
  17825. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17826. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17827. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17828. as_cr_digits='0123456789'
  17829. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17830. ECHO_C= ECHO_N= ECHO_T=
  17831. case `echo -n x` in #(((((
  17832. -n*)
  17833. case `echo 'xy\c'` in
  17834. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17835. xy) ECHO_C='\c';;
  17836. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  17837. ECHO_T=' ';;
  17838. esac;;
  17839. *)
  17840. ECHO_N='-n';;
  17841. esac
  17842. rm -f conf$$ conf$$.exe conf$$.file
  17843. if test -d conf$$.dir; then
  17844. rm -f conf$$.dir/conf$$.file
  17845. else
  17846. rm -f conf$$.dir
  17847. mkdir conf$$.dir 2>/dev/null
  17848. fi
  17849. if (echo >conf$$.file) 2>/dev/null; then
  17850. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17851. as_ln_s='ln -s'
  17852. # ... but there are two gotchas:
  17853. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17854. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17855. # In both cases, we have to default to `cp -pR'.
  17856. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17857. as_ln_s='cp -pR'
  17858. elif ln conf$$.file conf$$ 2>/dev/null; then
  17859. as_ln_s=ln
  17860. else
  17861. as_ln_s='cp -pR'
  17862. fi
  17863. else
  17864. as_ln_s='cp -pR'
  17865. fi
  17866. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17867. rmdir conf$$.dir 2>/dev/null
  17868. # as_fn_mkdir_p
  17869. # -------------
  17870. # Create "$as_dir" as a directory, including parents if necessary.
  17871. as_fn_mkdir_p ()
  17872. {
  17873. case $as_dir in #(
  17874. -*) as_dir=./$as_dir;;
  17875. esac
  17876. test -d "$as_dir" || eval $as_mkdir_p || {
  17877. as_dirs=
  17878. while :; do
  17879. case $as_dir in #(
  17880. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  17881. *) as_qdir=$as_dir;;
  17882. esac
  17883. as_dirs="'$as_qdir' $as_dirs"
  17884. as_dir=`$as_dirname -- "$as_dir" ||
  17885. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17886. X"$as_dir" : 'X\(//\)[^/]' \| \
  17887. X"$as_dir" : 'X\(//\)$' \| \
  17888. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17889. $as_echo X"$as_dir" |
  17890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17891. s//\1/
  17892. q
  17893. }
  17894. /^X\(\/\/\)[^/].*/{
  17895. s//\1/
  17896. q
  17897. }
  17898. /^X\(\/\/\)$/{
  17899. s//\1/
  17900. q
  17901. }
  17902. /^X\(\/\).*/{
  17903. s//\1/
  17904. q
  17905. }
  17906. s/.*/./; q'`
  17907. test -d "$as_dir" && break
  17908. done
  17909. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17910. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  17911. } # as_fn_mkdir_p
  17912. if mkdir -p . 2>/dev/null; then
  17913. as_mkdir_p='mkdir -p "$as_dir"'
  17914. else
  17915. test -d ./-p && rmdir ./-p
  17916. as_mkdir_p=false
  17917. fi
  17918. # as_fn_executable_p FILE
  17919. # -----------------------
  17920. # Test if FILE is an executable regular file.
  17921. as_fn_executable_p ()
  17922. {
  17923. test -f "$1" && test -x "$1"
  17924. } # as_fn_executable_p
  17925. as_test_x='test -x'
  17926. as_executable_p=as_fn_executable_p
  17927. # Sed expression to map a string onto a valid CPP name.
  17928. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17929. # Sed expression to map a string onto a valid variable name.
  17930. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17931. exec 6>&1
  17932. ## ----------------------------------- ##
  17933. ## Main body of $CONFIG_STATUS script. ##
  17934. ## ----------------------------------- ##
  17935. _ASEOF
  17936. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  17937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17938. # Save the log message, to keep $0 and so on meaningful, and to
  17939. # report actual input values of CONFIG_FILES etc. instead of their
  17940. # values after options handling.
  17941. ac_log="
  17942. This file was extended by PCRE $as_me 8.43, which was
  17943. generated by GNU Autoconf 2.69. Invocation command line was
  17944. CONFIG_FILES = $CONFIG_FILES
  17945. CONFIG_HEADERS = $CONFIG_HEADERS
  17946. CONFIG_LINKS = $CONFIG_LINKS
  17947. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17948. $ $0 $@
  17949. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17950. "
  17951. _ACEOF
  17952. case $ac_config_files in *"
  17953. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  17954. esac
  17955. case $ac_config_headers in *"
  17956. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  17957. esac
  17958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17959. # Files that config.status was made for.
  17960. config_files="$ac_config_files"
  17961. config_headers="$ac_config_headers"
  17962. config_commands="$ac_config_commands"
  17963. _ACEOF
  17964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17965. ac_cs_usage="\
  17966. \`$as_me' instantiates files and other configuration actions
  17967. from templates according to the current configuration. Unless the files
  17968. and actions are specified as TAGs, all are instantiated by default.
  17969. Usage: $0 [OPTION]... [TAG]...
  17970. -h, --help print this help, then exit
  17971. -V, --version print version number and configuration settings, then exit
  17972. --config print configuration, then exit
  17973. -q, --quiet, --silent
  17974. do not print progress messages
  17975. -d, --debug don't remove temporary files
  17976. --recheck update $as_me by reconfiguring in the same conditions
  17977. --file=FILE[:TEMPLATE]
  17978. instantiate the configuration file FILE
  17979. --header=FILE[:TEMPLATE]
  17980. instantiate the configuration header FILE
  17981. Configuration files:
  17982. $config_files
  17983. Configuration headers:
  17984. $config_headers
  17985. Configuration commands:
  17986. $config_commands
  17987. Report bugs to the package provider."
  17988. _ACEOF
  17989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17990. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  17991. ac_cs_version="\\
  17992. PCRE config.status 8.43
  17993. configured by $0, generated by GNU Autoconf 2.69,
  17994. with options \\"\$ac_cs_config\\"
  17995. Copyright (C) 2012 Free Software Foundation, Inc.
  17996. This config.status script is free software; the Free Software Foundation
  17997. gives unlimited permission to copy, distribute and modify it."
  17998. ac_pwd='$ac_pwd'
  17999. srcdir='$srcdir'
  18000. INSTALL='$INSTALL'
  18001. MKDIR_P='$MKDIR_P'
  18002. AWK='$AWK'
  18003. test -n "\$AWK" || AWK=awk
  18004. _ACEOF
  18005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18006. # The default lists apply if the user does not specify any file.
  18007. ac_need_defaults=:
  18008. while test $# != 0
  18009. do
  18010. case $1 in
  18011. --*=?*)
  18012. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18013. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18014. ac_shift=:
  18015. ;;
  18016. --*=)
  18017. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18018. ac_optarg=
  18019. ac_shift=:
  18020. ;;
  18021. *)
  18022. ac_option=$1
  18023. ac_optarg=$2
  18024. ac_shift=shift
  18025. ;;
  18026. esac
  18027. case $ac_option in
  18028. # Handling of the options.
  18029. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18030. ac_cs_recheck=: ;;
  18031. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18032. $as_echo "$ac_cs_version"; exit ;;
  18033. --config | --confi | --conf | --con | --co | --c )
  18034. $as_echo "$ac_cs_config"; exit ;;
  18035. --debug | --debu | --deb | --de | --d | -d )
  18036. debug=: ;;
  18037. --file | --fil | --fi | --f )
  18038. $ac_shift
  18039. case $ac_optarg in
  18040. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18041. '') as_fn_error $? "missing file argument" ;;
  18042. esac
  18043. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18044. ac_need_defaults=false;;
  18045. --header | --heade | --head | --hea )
  18046. $ac_shift
  18047. case $ac_optarg in
  18048. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18049. esac
  18050. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18051. ac_need_defaults=false;;
  18052. --he | --h)
  18053. # Conflict between --help and --header
  18054. as_fn_error $? "ambiguous option: \`$1'
  18055. Try \`$0 --help' for more information.";;
  18056. --help | --hel | -h )
  18057. $as_echo "$ac_cs_usage"; exit ;;
  18058. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18059. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18060. ac_cs_silent=: ;;
  18061. # This is an error.
  18062. -*) as_fn_error $? "unrecognized option: \`$1'
  18063. Try \`$0 --help' for more information." ;;
  18064. *) as_fn_append ac_config_targets " $1"
  18065. ac_need_defaults=false ;;
  18066. esac
  18067. shift
  18068. done
  18069. ac_configure_extra_args=
  18070. if $ac_cs_silent; then
  18071. exec 6>/dev/null
  18072. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18073. fi
  18074. _ACEOF
  18075. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18076. if \$ac_cs_recheck; then
  18077. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18078. shift
  18079. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18080. CONFIG_SHELL='$SHELL'
  18081. export CONFIG_SHELL
  18082. exec "\$@"
  18083. fi
  18084. _ACEOF
  18085. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18086. exec 5>>config.log
  18087. {
  18088. echo
  18089. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18090. ## Running $as_me. ##
  18091. _ASBOX
  18092. $as_echo "$ac_log"
  18093. } >&5
  18094. _ACEOF
  18095. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18096. #
  18097. # INIT-COMMANDS
  18098. #
  18099. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  18100. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18101. # if CDPATH is set.
  18102. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18103. sed_quote_subst='$sed_quote_subst'
  18104. double_quote_subst='$double_quote_subst'
  18105. delay_variable_subst='$delay_variable_subst'
  18106. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18107. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18108. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18109. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18110. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18111. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18112. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18113. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18114. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18115. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  18116. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18117. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18118. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18119. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18120. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18121. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18122. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18123. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18124. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18125. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18126. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18127. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18128. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18129. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18130. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18131. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18132. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18133. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18134. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18135. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18136. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18137. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18138. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18139. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18140. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18141. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18142. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18143. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18144. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18145. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18146. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18147. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18148. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18149. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  18150. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18151. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18152. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18153. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18154. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18155. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18156. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18157. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18158. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18159. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18160. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18161. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18162. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18163. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18164. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  18165. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18166. 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"`'
  18167. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  18168. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18169. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18170. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  18171. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18172. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18173. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18174. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18175. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18176. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18177. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18178. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18179. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18180. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18181. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18182. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18183. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18184. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18185. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18186. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18187. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18188. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18189. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18190. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  18191. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  18192. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  18193. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  18194. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18195. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  18196. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18197. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  18198. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  18199. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  18200. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18201. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  18202. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  18203. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  18204. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  18205. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  18206. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  18207. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18208. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  18209. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  18210. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  18211. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  18212. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  18213. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  18214. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  18215. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  18216. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  18217. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  18218. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  18219. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18220. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  18221. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  18222. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  18223. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  18224. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  18225. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  18226. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  18227. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  18228. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  18229. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18230. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18231. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  18232. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  18233. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  18234. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  18235. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  18236. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  18237. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  18238. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  18239. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  18240. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  18241. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  18242. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  18243. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  18244. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  18245. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  18246. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  18247. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  18248. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  18249. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  18250. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18251. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18252. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18253. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  18254. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  18255. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18256. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  18257. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  18258. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  18259. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  18260. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  18261. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  18262. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18263. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18264. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  18265. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18266. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18267. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18268. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18269. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18270. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18271. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  18272. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18273. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  18274. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18275. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  18276. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  18277. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  18278. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  18279. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  18280. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  18281. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  18282. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  18283. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  18284. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18285. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18286. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  18287. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18288. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  18289. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  18290. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  18291. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  18292. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18293. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  18294. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  18295. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  18296. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  18297. LTCC='$LTCC'
  18298. LTCFLAGS='$LTCFLAGS'
  18299. compiler='$compiler_DEFAULT'
  18300. # A function that is used when there is no print builtin or printf.
  18301. func_fallback_echo ()
  18302. {
  18303. eval 'cat <<_LTECHO_EOF
  18304. \$1
  18305. _LTECHO_EOF'
  18306. }
  18307. # Quote evaled strings.
  18308. for var in AS \
  18309. DLLTOOL \
  18310. OBJDUMP \
  18311. SHELL \
  18312. ECHO \
  18313. PATH_SEPARATOR \
  18314. SED \
  18315. GREP \
  18316. EGREP \
  18317. FGREP \
  18318. LD \
  18319. NM \
  18320. LN_S \
  18321. lt_SP2NL \
  18322. lt_NL2SP \
  18323. reload_flag \
  18324. deplibs_check_method \
  18325. file_magic_cmd \
  18326. file_magic_glob \
  18327. want_nocaseglob \
  18328. sharedlib_from_linklib_cmd \
  18329. AR \
  18330. archiver_list_spec \
  18331. STRIP \
  18332. RANLIB \
  18333. CC \
  18334. CFLAGS \
  18335. compiler \
  18336. lt_cv_sys_global_symbol_pipe \
  18337. lt_cv_sys_global_symbol_to_cdecl \
  18338. lt_cv_sys_global_symbol_to_import \
  18339. lt_cv_sys_global_symbol_to_c_name_address \
  18340. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  18341. lt_cv_nm_interface \
  18342. nm_file_list_spec \
  18343. lt_cv_truncate_bin \
  18344. lt_prog_compiler_no_builtin_flag \
  18345. lt_prog_compiler_pic \
  18346. lt_prog_compiler_wl \
  18347. lt_prog_compiler_static \
  18348. lt_cv_prog_compiler_c_o \
  18349. need_locks \
  18350. MANIFEST_TOOL \
  18351. DSYMUTIL \
  18352. NMEDIT \
  18353. LIPO \
  18354. OTOOL \
  18355. OTOOL64 \
  18356. shrext_cmds \
  18357. export_dynamic_flag_spec \
  18358. whole_archive_flag_spec \
  18359. compiler_needs_object \
  18360. with_gnu_ld \
  18361. allow_undefined_flag \
  18362. no_undefined_flag \
  18363. hardcode_libdir_flag_spec \
  18364. hardcode_libdir_separator \
  18365. exclude_expsyms \
  18366. include_expsyms \
  18367. file_list_spec \
  18368. variables_saved_for_relink \
  18369. libname_spec \
  18370. library_names_spec \
  18371. soname_spec \
  18372. install_override_mode \
  18373. finish_eval \
  18374. old_striplib \
  18375. striplib \
  18376. compiler_lib_search_dirs \
  18377. predep_objects \
  18378. postdep_objects \
  18379. predeps \
  18380. postdeps \
  18381. compiler_lib_search_path \
  18382. LD_CXX \
  18383. reload_flag_CXX \
  18384. compiler_CXX \
  18385. lt_prog_compiler_no_builtin_flag_CXX \
  18386. lt_prog_compiler_pic_CXX \
  18387. lt_prog_compiler_wl_CXX \
  18388. lt_prog_compiler_static_CXX \
  18389. lt_cv_prog_compiler_c_o_CXX \
  18390. export_dynamic_flag_spec_CXX \
  18391. whole_archive_flag_spec_CXX \
  18392. compiler_needs_object_CXX \
  18393. with_gnu_ld_CXX \
  18394. allow_undefined_flag_CXX \
  18395. no_undefined_flag_CXX \
  18396. hardcode_libdir_flag_spec_CXX \
  18397. hardcode_libdir_separator_CXX \
  18398. exclude_expsyms_CXX \
  18399. include_expsyms_CXX \
  18400. file_list_spec_CXX \
  18401. compiler_lib_search_dirs_CXX \
  18402. predep_objects_CXX \
  18403. postdep_objects_CXX \
  18404. predeps_CXX \
  18405. postdeps_CXX \
  18406. compiler_lib_search_path_CXX; do
  18407. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18408. *[\\\\\\\`\\"\\\$]*)
  18409. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18410. ;;
  18411. *)
  18412. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18413. ;;
  18414. esac
  18415. done
  18416. # Double-quote double-evaled strings.
  18417. for var in reload_cmds \
  18418. old_postinstall_cmds \
  18419. old_postuninstall_cmds \
  18420. old_archive_cmds \
  18421. extract_expsyms_cmds \
  18422. old_archive_from_new_cmds \
  18423. old_archive_from_expsyms_cmds \
  18424. archive_cmds \
  18425. archive_expsym_cmds \
  18426. module_cmds \
  18427. module_expsym_cmds \
  18428. export_symbols_cmds \
  18429. prelink_cmds \
  18430. postlink_cmds \
  18431. postinstall_cmds \
  18432. postuninstall_cmds \
  18433. finish_cmds \
  18434. sys_lib_search_path_spec \
  18435. configure_time_dlsearch_path \
  18436. configure_time_lt_sys_library_path \
  18437. reload_cmds_CXX \
  18438. old_archive_cmds_CXX \
  18439. old_archive_from_new_cmds_CXX \
  18440. old_archive_from_expsyms_cmds_CXX \
  18441. archive_cmds_CXX \
  18442. archive_expsym_cmds_CXX \
  18443. module_cmds_CXX \
  18444. module_expsym_cmds_CXX \
  18445. export_symbols_cmds_CXX \
  18446. prelink_cmds_CXX \
  18447. postlink_cmds_CXX; do
  18448. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  18449. *[\\\\\\\`\\"\\\$]*)
  18450. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  18451. ;;
  18452. *)
  18453. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  18454. ;;
  18455. esac
  18456. done
  18457. ac_aux_dir='$ac_aux_dir'
  18458. # See if we are running on zsh, and set the options that allow our
  18459. # commands through without removal of \ escapes INIT.
  18460. if test -n "\${ZSH_VERSION+set}"; then
  18461. setopt NO_GLOB_SUBST
  18462. fi
  18463. PACKAGE='$PACKAGE'
  18464. VERSION='$VERSION'
  18465. RM='$RM'
  18466. ofile='$ofile'
  18467. _ACEOF
  18468. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18469. # Handling of arguments.
  18470. for ac_config_target in $ac_config_targets
  18471. do
  18472. case $ac_config_target in
  18473. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  18474. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  18475. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  18476. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  18477. "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
  18478. "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
  18479. "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
  18480. "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
  18481. "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
  18482. "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
  18483. "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
  18484. "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
  18485. "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
  18486. "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
  18487. "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
  18488. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  18489. esac
  18490. done
  18491. # If the user did not use the arguments to specify the items to instantiate,
  18492. # then the envvar interface is used. Set only those that are not.
  18493. # We use the long form for the default assignment because of an extremely
  18494. # bizarre bug on SunOS 4.1.3.
  18495. if $ac_need_defaults; then
  18496. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  18497. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  18498. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  18499. fi
  18500. # Have a temporary directory for convenience. Make it in the build tree
  18501. # simply because there is no reason against having it here, and in addition,
  18502. # creating and moving files from /tmp can sometimes cause problems.
  18503. # Hook for its removal unless debugging.
  18504. # Note that there is a small window in which the directory will not be cleaned:
  18505. # after its creation but before its name has been assigned to `$tmp'.
  18506. $debug ||
  18507. {
  18508. tmp= ac_tmp=
  18509. trap 'exit_status=$?
  18510. : "${ac_tmp:=$tmp}"
  18511. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  18512. ' 0
  18513. trap 'as_fn_exit 1' 1 2 13 15
  18514. }
  18515. # Create a (secure) tmp directory for tmp files.
  18516. {
  18517. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  18518. test -d "$tmp"
  18519. } ||
  18520. {
  18521. tmp=./conf$$-$RANDOM
  18522. (umask 077 && mkdir "$tmp")
  18523. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  18524. ac_tmp=$tmp
  18525. # Set up the scripts for CONFIG_FILES section.
  18526. # No need to generate them if there are no CONFIG_FILES.
  18527. # This happens for instance with `./config.status config.h'.
  18528. if test -n "$CONFIG_FILES"; then
  18529. ac_cr=`echo X | tr X '\015'`
  18530. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  18531. # But we know of no other shell where ac_cr would be empty at this
  18532. # point, so we can use a bashism as a fallback.
  18533. if test "x$ac_cr" = x; then
  18534. eval ac_cr=\$\'\\r\'
  18535. fi
  18536. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  18537. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  18538. ac_cs_awk_cr='\\r'
  18539. else
  18540. ac_cs_awk_cr=$ac_cr
  18541. fi
  18542. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  18543. _ACEOF
  18544. {
  18545. echo "cat >conf$$subs.awk <<_ACEOF" &&
  18546. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  18547. echo "_ACEOF"
  18548. } >conf$$subs.sh ||
  18549. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18550. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  18551. ac_delim='%!_!# '
  18552. for ac_last_try in false false false false false :; do
  18553. . ./conf$$subs.sh ||
  18554. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18555. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  18556. if test $ac_delim_n = $ac_delim_num; then
  18557. break
  18558. elif $ac_last_try; then
  18559. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  18560. else
  18561. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18562. fi
  18563. done
  18564. rm -f conf$$subs.sh
  18565. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18566. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  18567. _ACEOF
  18568. sed -n '
  18569. h
  18570. s/^/S["/; s/!.*/"]=/
  18571. p
  18572. g
  18573. s/^[^!]*!//
  18574. :repl
  18575. t repl
  18576. s/'"$ac_delim"'$//
  18577. t delim
  18578. :nl
  18579. h
  18580. s/\(.\{148\}\)..*/\1/
  18581. t more1
  18582. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  18583. p
  18584. n
  18585. b repl
  18586. :more1
  18587. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18588. p
  18589. g
  18590. s/.\{148\}//
  18591. t nl
  18592. :delim
  18593. h
  18594. s/\(.\{148\}\)..*/\1/
  18595. t more2
  18596. s/["\\]/\\&/g; s/^/"/; s/$/"/
  18597. p
  18598. b
  18599. :more2
  18600. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  18601. p
  18602. g
  18603. s/.\{148\}//
  18604. t delim
  18605. ' <conf$$subs.awk | sed '
  18606. /^[^""]/{
  18607. N
  18608. s/\n//
  18609. }
  18610. ' >>$CONFIG_STATUS || ac_write_fail=1
  18611. rm -f conf$$subs.awk
  18612. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18613. _ACAWK
  18614. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  18615. for (key in S) S_is_set[key] = 1
  18616. FS = ""
  18617. }
  18618. {
  18619. line = $ 0
  18620. nfields = split(line, field, "@")
  18621. substed = 0
  18622. len = length(field[1])
  18623. for (i = 2; i < nfields; i++) {
  18624. key = field[i]
  18625. keylen = length(key)
  18626. if (S_is_set[key]) {
  18627. value = S[key]
  18628. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  18629. len += length(value) + length(field[++i])
  18630. substed = 1
  18631. } else
  18632. len += 1 + keylen
  18633. }
  18634. print line
  18635. }
  18636. _ACAWK
  18637. _ACEOF
  18638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18639. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  18640. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  18641. else
  18642. cat
  18643. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  18644. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  18645. _ACEOF
  18646. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  18647. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  18648. # trailing colons and then remove the whole line if VPATH becomes empty
  18649. # (actually we leave an empty line to preserve line numbers).
  18650. if test "x$srcdir" = x.; then
  18651. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  18652. h
  18653. s///
  18654. s/^/:/
  18655. s/[ ]*$/:/
  18656. s/:\$(srcdir):/:/g
  18657. s/:\${srcdir}:/:/g
  18658. s/:@srcdir@:/:/g
  18659. s/^:*//
  18660. s/:*$//
  18661. x
  18662. s/\(=[ ]*\).*/\1/
  18663. G
  18664. s/\n//
  18665. s/^[^=]*=[ ]*$//
  18666. }'
  18667. fi
  18668. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18669. fi # test -n "$CONFIG_FILES"
  18670. # Set up the scripts for CONFIG_HEADERS section.
  18671. # No need to generate them if there are no CONFIG_HEADERS.
  18672. # This happens for instance with `./config.status Makefile'.
  18673. if test -n "$CONFIG_HEADERS"; then
  18674. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  18675. BEGIN {
  18676. _ACEOF
  18677. # Transform confdefs.h into an awk script `defines.awk', embedded as
  18678. # here-document in config.status, that substitutes the proper values into
  18679. # config.h.in to produce config.h.
  18680. # Create a delimiter string that does not exist in confdefs.h, to ease
  18681. # handling of long lines.
  18682. ac_delim='%!_!# '
  18683. for ac_last_try in false false :; do
  18684. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  18685. if test -z "$ac_tt"; then
  18686. break
  18687. elif $ac_last_try; then
  18688. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  18689. else
  18690. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  18691. fi
  18692. done
  18693. # For the awk script, D is an array of macro values keyed by name,
  18694. # likewise P contains macro parameters if any. Preserve backslash
  18695. # newline sequences.
  18696. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18697. sed -n '
  18698. s/.\{148\}/&'"$ac_delim"'/g
  18699. t rset
  18700. :rset
  18701. s/^[ ]*#[ ]*define[ ][ ]*/ /
  18702. t def
  18703. d
  18704. :def
  18705. s/\\$//
  18706. t bsnl
  18707. s/["\\]/\\&/g
  18708. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18709. D["\1"]=" \3"/p
  18710. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  18711. d
  18712. :bsnl
  18713. s/["\\]/\\&/g
  18714. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  18715. D["\1"]=" \3\\\\\\n"\\/p
  18716. t cont
  18717. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  18718. t cont
  18719. d
  18720. :cont
  18721. n
  18722. s/.\{148\}/&'"$ac_delim"'/g
  18723. t clear
  18724. :clear
  18725. s/\\$//
  18726. t bsnlc
  18727. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  18728. d
  18729. :bsnlc
  18730. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  18731. b cont
  18732. ' <confdefs.h | sed '
  18733. s/'"$ac_delim"'/"\\\
  18734. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  18735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18736. for (key in D) D_is_set[key] = 1
  18737. FS = ""
  18738. }
  18739. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  18740. line = \$ 0
  18741. split(line, arg, " ")
  18742. if (arg[1] == "#") {
  18743. defundef = arg[2]
  18744. mac1 = arg[3]
  18745. } else {
  18746. defundef = substr(arg[1], 2)
  18747. mac1 = arg[2]
  18748. }
  18749. split(mac1, mac2, "(") #)
  18750. macro = mac2[1]
  18751. prefix = substr(line, 1, index(line, defundef) - 1)
  18752. if (D_is_set[macro]) {
  18753. # Preserve the white space surrounding the "#".
  18754. print prefix "define", macro P[macro] D[macro]
  18755. next
  18756. } else {
  18757. # Replace #undef with comments. This is necessary, for example,
  18758. # in the case of _POSIX_SOURCE, which is predefined and required
  18759. # on some systems where configure will not decide to define it.
  18760. if (defundef == "undef") {
  18761. print "/*", prefix defundef, macro, "*/"
  18762. next
  18763. }
  18764. }
  18765. }
  18766. { print }
  18767. _ACAWK
  18768. _ACEOF
  18769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18770. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  18771. fi # test -n "$CONFIG_HEADERS"
  18772. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  18773. shift
  18774. for ac_tag
  18775. do
  18776. case $ac_tag in
  18777. :[FHLC]) ac_mode=$ac_tag; continue;;
  18778. esac
  18779. case $ac_mode$ac_tag in
  18780. :[FHL]*:*);;
  18781. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  18782. :[FH]-) ac_tag=-:-;;
  18783. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  18784. esac
  18785. ac_save_IFS=$IFS
  18786. IFS=:
  18787. set x $ac_tag
  18788. IFS=$ac_save_IFS
  18789. shift
  18790. ac_file=$1
  18791. shift
  18792. case $ac_mode in
  18793. :L) ac_source=$1;;
  18794. :[FH])
  18795. ac_file_inputs=
  18796. for ac_f
  18797. do
  18798. case $ac_f in
  18799. -) ac_f="$ac_tmp/stdin";;
  18800. *) # Look for the file first in the build tree, then in the source tree
  18801. # (if the path is not absolute). The absolute path cannot be DOS-style,
  18802. # because $ac_f cannot contain `:'.
  18803. test -f "$ac_f" ||
  18804. case $ac_f in
  18805. [\\/$]*) false;;
  18806. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  18807. esac ||
  18808. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  18809. esac
  18810. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  18811. as_fn_append ac_file_inputs " '$ac_f'"
  18812. done
  18813. # Let's still pretend it is `configure' which instantiates (i.e., don't
  18814. # use $as_me), people would be surprised to read:
  18815. # /* config.h. Generated by config.status. */
  18816. configure_input='Generated from '`
  18817. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  18818. `' by configure.'
  18819. if test x"$ac_file" != x-; then
  18820. configure_input="$ac_file. $configure_input"
  18821. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  18822. $as_echo "$as_me: creating $ac_file" >&6;}
  18823. fi
  18824. # Neutralize special characters interpreted by sed in replacement strings.
  18825. case $configure_input in #(
  18826. *\&* | *\|* | *\\* )
  18827. ac_sed_conf_input=`$as_echo "$configure_input" |
  18828. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  18829. *) ac_sed_conf_input=$configure_input;;
  18830. esac
  18831. case $ac_tag in
  18832. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  18833. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  18834. esac
  18835. ;;
  18836. esac
  18837. ac_dir=`$as_dirname -- "$ac_file" ||
  18838. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18839. X"$ac_file" : 'X\(//\)[^/]' \| \
  18840. X"$ac_file" : 'X\(//\)$' \| \
  18841. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  18842. $as_echo X"$ac_file" |
  18843. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18844. s//\1/
  18845. q
  18846. }
  18847. /^X\(\/\/\)[^/].*/{
  18848. s//\1/
  18849. q
  18850. }
  18851. /^X\(\/\/\)$/{
  18852. s//\1/
  18853. q
  18854. }
  18855. /^X\(\/\).*/{
  18856. s//\1/
  18857. q
  18858. }
  18859. s/.*/./; q'`
  18860. as_dir="$ac_dir"; as_fn_mkdir_p
  18861. ac_builddir=.
  18862. case "$ac_dir" in
  18863. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18864. *)
  18865. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  18866. # A ".." for each directory in $ac_dir_suffix.
  18867. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  18868. case $ac_top_builddir_sub in
  18869. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  18870. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  18871. esac ;;
  18872. esac
  18873. ac_abs_top_builddir=$ac_pwd
  18874. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  18875. # for backward compatibility:
  18876. ac_top_builddir=$ac_top_build_prefix
  18877. case $srcdir in
  18878. .) # We are building in place.
  18879. ac_srcdir=.
  18880. ac_top_srcdir=$ac_top_builddir_sub
  18881. ac_abs_top_srcdir=$ac_pwd ;;
  18882. [\\/]* | ?:[\\/]* ) # Absolute name.
  18883. ac_srcdir=$srcdir$ac_dir_suffix;
  18884. ac_top_srcdir=$srcdir
  18885. ac_abs_top_srcdir=$srcdir ;;
  18886. *) # Relative name.
  18887. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  18888. ac_top_srcdir=$ac_top_build_prefix$srcdir
  18889. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  18890. esac
  18891. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  18892. case $ac_mode in
  18893. :F)
  18894. #
  18895. # CONFIG_FILE
  18896. #
  18897. case $INSTALL in
  18898. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  18899. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  18900. esac
  18901. ac_MKDIR_P=$MKDIR_P
  18902. case $MKDIR_P in
  18903. [\\/$]* | ?:[\\/]* ) ;;
  18904. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  18905. esac
  18906. _ACEOF
  18907. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18908. # If the template does not know about datarootdir, expand it.
  18909. # FIXME: This hack should be removed a few years after 2.60.
  18910. ac_datarootdir_hack=; ac_datarootdir_seen=
  18911. ac_sed_dataroot='
  18912. /datarootdir/ {
  18913. p
  18914. q
  18915. }
  18916. /@datadir@/p
  18917. /@docdir@/p
  18918. /@infodir@/p
  18919. /@localedir@/p
  18920. /@mandir@/p'
  18921. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  18922. *datarootdir*) ac_datarootdir_seen=yes;;
  18923. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  18924. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  18925. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  18926. _ACEOF
  18927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18928. ac_datarootdir_hack='
  18929. s&@datadir@&$datadir&g
  18930. s&@docdir@&$docdir&g
  18931. s&@infodir@&$infodir&g
  18932. s&@localedir@&$localedir&g
  18933. s&@mandir@&$mandir&g
  18934. s&\\\${datarootdir}&$datarootdir&g' ;;
  18935. esac
  18936. _ACEOF
  18937. # Neutralize VPATH when `$srcdir' = `.'.
  18938. # Shell code in configure.ac might set extrasub.
  18939. # FIXME: do we really want to maintain this feature?
  18940. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18941. ac_sed_extra="$ac_vpsub
  18942. $extrasub
  18943. _ACEOF
  18944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18945. :t
  18946. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18947. s|@configure_input@|$ac_sed_conf_input|;t t
  18948. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18949. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  18950. s&@srcdir@&$ac_srcdir&;t t
  18951. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18952. s&@top_srcdir@&$ac_top_srcdir&;t t
  18953. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18954. s&@builddir@&$ac_builddir&;t t
  18955. s&@abs_builddir@&$ac_abs_builddir&;t t
  18956. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18957. s&@INSTALL@&$ac_INSTALL&;t t
  18958. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  18959. $ac_datarootdir_hack
  18960. "
  18961. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  18962. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18963. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18964. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  18965. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  18966. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18968. which seems to be undefined. Please make sure it is defined" >&5
  18969. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18970. which seems to be undefined. Please make sure it is defined" >&2;}
  18971. rm -f "$ac_tmp/stdin"
  18972. case $ac_file in
  18973. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  18974. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  18975. esac \
  18976. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18977. ;;
  18978. :H)
  18979. #
  18980. # CONFIG_HEADER
  18981. #
  18982. if test x"$ac_file" != x-; then
  18983. {
  18984. $as_echo "/* $configure_input */" \
  18985. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  18986. } >"$ac_tmp/config.h" \
  18987. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18988. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  18990. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  18991. else
  18992. rm -f "$ac_file"
  18993. mv "$ac_tmp/config.h" "$ac_file" \
  18994. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  18995. fi
  18996. else
  18997. $as_echo "/* $configure_input */" \
  18998. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  18999. || as_fn_error $? "could not create -" "$LINENO" 5
  19000. fi
  19001. # Compute "$ac_file"'s index in $config_headers.
  19002. _am_arg="$ac_file"
  19003. _am_stamp_count=1
  19004. for _am_header in $config_headers :; do
  19005. case $_am_header in
  19006. $_am_arg | $_am_arg:* )
  19007. break ;;
  19008. * )
  19009. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19010. esac
  19011. done
  19012. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19013. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19014. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19015. X"$_am_arg" : 'X\(//\)$' \| \
  19016. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19017. $as_echo X"$_am_arg" |
  19018. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19019. s//\1/
  19020. q
  19021. }
  19022. /^X\(\/\/\)[^/].*/{
  19023. s//\1/
  19024. q
  19025. }
  19026. /^X\(\/\/\)$/{
  19027. s//\1/
  19028. q
  19029. }
  19030. /^X\(\/\).*/{
  19031. s//\1/
  19032. q
  19033. }
  19034. s/.*/./; q'`/stamp-h$_am_stamp_count
  19035. ;;
  19036. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19037. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19038. ;;
  19039. esac
  19040. case $ac_file$ac_mode in
  19041. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19042. # Older Autoconf quotes --file arguments for eval, but not when files
  19043. # are listed without --file. Let's play safe and only enable the eval
  19044. # if we detect the quoting.
  19045. # TODO: see whether this extra hack can be removed once we start
  19046. # requiring Autoconf 2.70 or later.
  19047. case $CONFIG_FILES in #(
  19048. *\'*) :
  19049. eval set x "$CONFIG_FILES" ;; #(
  19050. *) :
  19051. set x $CONFIG_FILES ;; #(
  19052. *) :
  19053. ;;
  19054. esac
  19055. shift
  19056. # Used to flag and report bootstrapping failures.
  19057. am_rc=0
  19058. for am_mf
  19059. do
  19060. # Strip MF so we end up with the name of the file.
  19061. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  19062. # Check whether this is an Automake generated Makefile which includes
  19063. # dependency-tracking related rules and includes.
  19064. # Grep'ing the whole file directly is not great: AIX grep has a line
  19065. # limit of 2048, but all sed's we know have understand at least 4000.
  19066. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  19067. || continue
  19068. am_dirpart=`$as_dirname -- "$am_mf" ||
  19069. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19070. X"$am_mf" : 'X\(//\)[^/]' \| \
  19071. X"$am_mf" : 'X\(//\)$' \| \
  19072. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19073. $as_echo X"$am_mf" |
  19074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19075. s//\1/
  19076. q
  19077. }
  19078. /^X\(\/\/\)[^/].*/{
  19079. s//\1/
  19080. q
  19081. }
  19082. /^X\(\/\/\)$/{
  19083. s//\1/
  19084. q
  19085. }
  19086. /^X\(\/\).*/{
  19087. s//\1/
  19088. q
  19089. }
  19090. s/.*/./; q'`
  19091. am_filepart=`$as_basename -- "$am_mf" ||
  19092. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  19093. X"$am_mf" : 'X\(//\)$' \| \
  19094. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  19095. $as_echo X/"$am_mf" |
  19096. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19097. s//\1/
  19098. q
  19099. }
  19100. /^X\/\(\/\/\)$/{
  19101. s//\1/
  19102. q
  19103. }
  19104. /^X\/\(\/\).*/{
  19105. s//\1/
  19106. q
  19107. }
  19108. s/.*/./; q'`
  19109. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  19110. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19111. | $MAKE -f - am--depfiles" >&5
  19112. (cd "$am_dirpart" \
  19113. && sed -e '/# am--include-marker/d' "$am_filepart" \
  19114. | $MAKE -f - am--depfiles) >&5 2>&5
  19115. ac_status=$?
  19116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19117. (exit $ac_status); } || am_rc=$?
  19118. done
  19119. if test $am_rc -ne 0; then
  19120. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19121. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19122. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  19123. for automatic dependency tracking. Try re-running configure with the
  19124. '--disable-dependency-tracking' option to at least be able to build
  19125. the package (albeit without support for automatic dependency tracking).
  19126. See \`config.log' for more details" "$LINENO" 5; }
  19127. fi
  19128. { am_dirpart=; unset am_dirpart;}
  19129. { am_filepart=; unset am_filepart;}
  19130. { am_mf=; unset am_mf;}
  19131. { am_rc=; unset am_rc;}
  19132. rm -f conftest-deps.mk
  19133. }
  19134. ;;
  19135. "libtool":C)
  19136. # See if we are running on zsh, and set the options that allow our
  19137. # commands through without removal of \ escapes.
  19138. if test -n "${ZSH_VERSION+set}"; then
  19139. setopt NO_GLOB_SUBST
  19140. fi
  19141. cfgfile=${ofile}T
  19142. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19143. $RM "$cfgfile"
  19144. cat <<_LT_EOF >> "$cfgfile"
  19145. #! $SHELL
  19146. # Generated automatically by $as_me ($PACKAGE) $VERSION
  19147. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19148. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19149. # Provide generalized library-building support services.
  19150. # Written by Gordon Matzigkeit, 1996
  19151. # Copyright (C) 2014 Free Software Foundation, Inc.
  19152. # This is free software; see the source for copying conditions. There is NO
  19153. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19154. # GNU Libtool is free software; you can redistribute it and/or modify
  19155. # it under the terms of the GNU General Public License as published by
  19156. # the Free Software Foundation; either version 2 of of the License, or
  19157. # (at your option) any later version.
  19158. #
  19159. # As a special exception to the GNU General Public License, if you
  19160. # distribute this file as part of a program or library that is built
  19161. # using GNU Libtool, you may include this file under the same
  19162. # distribution terms that you use for the rest of that program.
  19163. #
  19164. # GNU Libtool is distributed in the hope that it will be useful, but
  19165. # WITHOUT ANY WARRANTY; without even the implied warranty of
  19166. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19167. # GNU General Public License for more details.
  19168. #
  19169. # You should have received a copy of the GNU General Public License
  19170. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19171. # The names of the tagged configurations supported by this script.
  19172. available_tags='CXX '
  19173. # Configured defaults for sys_lib_dlsearch_path munging.
  19174. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  19175. # ### BEGIN LIBTOOL CONFIG
  19176. # Assembler program.
  19177. AS=$lt_AS
  19178. # DLL creation program.
  19179. DLLTOOL=$lt_DLLTOOL
  19180. # Object dumper program.
  19181. OBJDUMP=$lt_OBJDUMP
  19182. # Which release of libtool.m4 was used?
  19183. macro_version=$macro_version
  19184. macro_revision=$macro_revision
  19185. # Whether or not to build shared libraries.
  19186. build_libtool_libs=$enable_shared
  19187. # Whether or not to build static libraries.
  19188. build_old_libs=$enable_static
  19189. # What type of objects to build.
  19190. pic_mode=$pic_mode
  19191. # Whether or not to optimize for fast installation.
  19192. fast_install=$enable_fast_install
  19193. # Shared archive member basename,for filename based shared library versioning on AIX.
  19194. shared_archive_member_spec=$shared_archive_member_spec
  19195. # Shell to use when invoking shell scripts.
  19196. SHELL=$lt_SHELL
  19197. # An echo program that protects backslashes.
  19198. ECHO=$lt_ECHO
  19199. # The PATH separator for the build system.
  19200. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  19201. # The host system.
  19202. host_alias=$host_alias
  19203. host=$host
  19204. host_os=$host_os
  19205. # The build system.
  19206. build_alias=$build_alias
  19207. build=$build
  19208. build_os=$build_os
  19209. # A sed program that does not truncate output.
  19210. SED=$lt_SED
  19211. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  19212. Xsed="\$SED -e 1s/^X//"
  19213. # A grep program that handles long lines.
  19214. GREP=$lt_GREP
  19215. # An ERE matcher.
  19216. EGREP=$lt_EGREP
  19217. # A literal string matcher.
  19218. FGREP=$lt_FGREP
  19219. # A BSD- or MS-compatible name lister.
  19220. NM=$lt_NM
  19221. # Whether we need soft or hard links.
  19222. LN_S=$lt_LN_S
  19223. # What is the maximum length of a command?
  19224. max_cmd_len=$max_cmd_len
  19225. # Object file suffix (normally "o").
  19226. objext=$ac_objext
  19227. # Executable file suffix (normally "").
  19228. exeext=$exeext
  19229. # whether the shell understands "unset".
  19230. lt_unset=$lt_unset
  19231. # turn spaces into newlines.
  19232. SP2NL=$lt_lt_SP2NL
  19233. # turn newlines into spaces.
  19234. NL2SP=$lt_lt_NL2SP
  19235. # convert \$build file names to \$host format.
  19236. to_host_file_cmd=$lt_cv_to_host_file_cmd
  19237. # convert \$build files to toolchain format.
  19238. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  19239. # Method to check whether dependent libraries are shared objects.
  19240. deplibs_check_method=$lt_deplibs_check_method
  19241. # Command to use when deplibs_check_method = "file_magic".
  19242. file_magic_cmd=$lt_file_magic_cmd
  19243. # How to find potential files when deplibs_check_method = "file_magic".
  19244. file_magic_glob=$lt_file_magic_glob
  19245. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  19246. want_nocaseglob=$lt_want_nocaseglob
  19247. # Command to associate shared and link libraries.
  19248. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  19249. # The archiver.
  19250. AR=$lt_AR
  19251. # Flags to create an archive (by configure).
  19252. lt_ar_flags=$lt_ar_flags
  19253. # Flags to create an archive.
  19254. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  19255. # How to feed a file listing to the archiver.
  19256. archiver_list_spec=$lt_archiver_list_spec
  19257. # A symbol stripping program.
  19258. STRIP=$lt_STRIP
  19259. # Commands used to install an old-style archive.
  19260. RANLIB=$lt_RANLIB
  19261. old_postinstall_cmds=$lt_old_postinstall_cmds
  19262. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  19263. # Whether to use a lock for old archive extraction.
  19264. lock_old_archive_extraction=$lock_old_archive_extraction
  19265. # A C compiler.
  19266. LTCC=$lt_CC
  19267. # LTCC compiler flags.
  19268. LTCFLAGS=$lt_CFLAGS
  19269. # Take the output of nm and produce a listing of raw symbols and C names.
  19270. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  19271. # Transform the output of nm in a proper C declaration.
  19272. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  19273. # Transform the output of nm into a list of symbols to manually relocate.
  19274. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  19275. # Transform the output of nm in a C name address pair.
  19276. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  19277. # Transform the output of nm in a C name address pair when lib prefix is needed.
  19278. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  19279. # The name lister interface.
  19280. nm_interface=$lt_lt_cv_nm_interface
  19281. # Specify filename containing input files for \$NM.
  19282. nm_file_list_spec=$lt_nm_file_list_spec
  19283. # The root where to search for dependent libraries,and where our libraries should be installed.
  19284. lt_sysroot=$lt_sysroot
  19285. # Command to truncate a binary pipe.
  19286. lt_truncate_bin=$lt_lt_cv_truncate_bin
  19287. # The name of the directory that contains temporary libtool files.
  19288. objdir=$objdir
  19289. # Used to examine libraries when file_magic_cmd begins with "file".
  19290. MAGIC_CMD=$MAGIC_CMD
  19291. # Must we lock files when doing compilation?
  19292. need_locks=$lt_need_locks
  19293. # Manifest tool.
  19294. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  19295. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  19296. DSYMUTIL=$lt_DSYMUTIL
  19297. # Tool to change global to local symbols on Mac OS X.
  19298. NMEDIT=$lt_NMEDIT
  19299. # Tool to manipulate fat objects and archives on Mac OS X.
  19300. LIPO=$lt_LIPO
  19301. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  19302. OTOOL=$lt_OTOOL
  19303. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  19304. OTOOL64=$lt_OTOOL64
  19305. # Old archive suffix (normally "a").
  19306. libext=$libext
  19307. # Shared library suffix (normally ".so").
  19308. shrext_cmds=$lt_shrext_cmds
  19309. # The commands to extract the exported symbol list from a shared archive.
  19310. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  19311. # Variables whose values should be saved in libtool wrapper scripts and
  19312. # restored at link time.
  19313. variables_saved_for_relink=$lt_variables_saved_for_relink
  19314. # Do we need the "lib" prefix for modules?
  19315. need_lib_prefix=$need_lib_prefix
  19316. # Do we need a version for libraries?
  19317. need_version=$need_version
  19318. # Library versioning type.
  19319. version_type=$version_type
  19320. # Shared library runtime path variable.
  19321. runpath_var=$runpath_var
  19322. # Shared library path variable.
  19323. shlibpath_var=$shlibpath_var
  19324. # Is shlibpath searched before the hard-coded library search path?
  19325. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  19326. # Format of library name prefix.
  19327. libname_spec=$lt_libname_spec
  19328. # List of archive names. First name is the real one, the rest are links.
  19329. # The last name is the one that the linker finds with -lNAME
  19330. library_names_spec=$lt_library_names_spec
  19331. # The coded name of the library, if different from the real name.
  19332. soname_spec=$lt_soname_spec
  19333. # Permission mode override for installation of shared libraries.
  19334. install_override_mode=$lt_install_override_mode
  19335. # Command to use after installation of a shared archive.
  19336. postinstall_cmds=$lt_postinstall_cmds
  19337. # Command to use after uninstallation of a shared archive.
  19338. postuninstall_cmds=$lt_postuninstall_cmds
  19339. # Commands used to finish a libtool library installation in a directory.
  19340. finish_cmds=$lt_finish_cmds
  19341. # As "finish_cmds", except a single script fragment to be evaled but
  19342. # not shown.
  19343. finish_eval=$lt_finish_eval
  19344. # Whether we should hardcode library paths into libraries.
  19345. hardcode_into_libs=$hardcode_into_libs
  19346. # Compile-time system search path for libraries.
  19347. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  19348. # Detected run-time system search path for libraries.
  19349. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  19350. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  19351. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  19352. # Whether dlopen is supported.
  19353. dlopen_support=$enable_dlopen
  19354. # Whether dlopen of programs is supported.
  19355. dlopen_self=$enable_dlopen_self
  19356. # Whether dlopen of statically linked programs is supported.
  19357. dlopen_self_static=$enable_dlopen_self_static
  19358. # Commands to strip libraries.
  19359. old_striplib=$lt_old_striplib
  19360. striplib=$lt_striplib
  19361. # The linker used to build libraries.
  19362. LD=$lt_LD
  19363. # How to create reloadable object files.
  19364. reload_flag=$lt_reload_flag
  19365. reload_cmds=$lt_reload_cmds
  19366. # Commands used to build an old-style archive.
  19367. old_archive_cmds=$lt_old_archive_cmds
  19368. # A language specific compiler.
  19369. CC=$lt_compiler
  19370. # Is the compiler the GNU compiler?
  19371. with_gcc=$GCC
  19372. # Compiler flag to turn off builtin functions.
  19373. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  19374. # Additional compiler flags for building library objects.
  19375. pic_flag=$lt_lt_prog_compiler_pic
  19376. # How to pass a linker flag through the compiler.
  19377. wl=$lt_lt_prog_compiler_wl
  19378. # Compiler flag to prevent dynamic linking.
  19379. link_static_flag=$lt_lt_prog_compiler_static
  19380. # Does compiler simultaneously support -c and -o options?
  19381. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  19382. # Whether or not to add -lc for building shared libraries.
  19383. build_libtool_need_lc=$archive_cmds_need_lc
  19384. # Whether or not to disallow shared libs when runtime libs are static.
  19385. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  19386. # Compiler flag to allow reflexive dlopens.
  19387. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  19388. # Compiler flag to generate shared objects directly from archives.
  19389. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  19390. # Whether the compiler copes with passing no objects directly.
  19391. compiler_needs_object=$lt_compiler_needs_object
  19392. # Create an old-style archive from a shared archive.
  19393. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  19394. # Create a temporary old-style archive to link instead of a shared archive.
  19395. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  19396. # Commands used to build a shared archive.
  19397. archive_cmds=$lt_archive_cmds
  19398. archive_expsym_cmds=$lt_archive_expsym_cmds
  19399. # Commands used to build a loadable module if different from building
  19400. # a shared archive.
  19401. module_cmds=$lt_module_cmds
  19402. module_expsym_cmds=$lt_module_expsym_cmds
  19403. # Whether we are building with GNU ld or not.
  19404. with_gnu_ld=$lt_with_gnu_ld
  19405. # Flag that allows shared libraries with undefined symbols to be built.
  19406. allow_undefined_flag=$lt_allow_undefined_flag
  19407. # Flag that enforces no undefined symbols.
  19408. no_undefined_flag=$lt_no_undefined_flag
  19409. # Flag to hardcode \$libdir into a binary during linking.
  19410. # This must work even if \$libdir does not exist
  19411. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  19412. # Whether we need a single "-rpath" flag with a separated argument.
  19413. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  19414. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19415. # DIR into the resulting binary.
  19416. hardcode_direct=$hardcode_direct
  19417. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19418. # DIR into the resulting binary and the resulting library dependency is
  19419. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19420. # library is relocated.
  19421. hardcode_direct_absolute=$hardcode_direct_absolute
  19422. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19423. # into the resulting binary.
  19424. hardcode_minus_L=$hardcode_minus_L
  19425. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19426. # into the resulting binary.
  19427. hardcode_shlibpath_var=$hardcode_shlibpath_var
  19428. # Set to "yes" if building a shared library automatically hardcodes DIR
  19429. # into the library and all subsequent libraries and executables linked
  19430. # against it.
  19431. hardcode_automatic=$hardcode_automatic
  19432. # Set to yes if linker adds runtime paths of dependent libraries
  19433. # to runtime path list.
  19434. inherit_rpath=$inherit_rpath
  19435. # Whether libtool must link a program against all its dependency libraries.
  19436. link_all_deplibs=$link_all_deplibs
  19437. # Set to "yes" if exported symbols are required.
  19438. always_export_symbols=$always_export_symbols
  19439. # The commands to list exported symbols.
  19440. export_symbols_cmds=$lt_export_symbols_cmds
  19441. # Symbols that should not be listed in the preloaded symbols.
  19442. exclude_expsyms=$lt_exclude_expsyms
  19443. # Symbols that must always be exported.
  19444. include_expsyms=$lt_include_expsyms
  19445. # Commands necessary for linking programs (against libraries) with templates.
  19446. prelink_cmds=$lt_prelink_cmds
  19447. # Commands necessary for finishing linking programs.
  19448. postlink_cmds=$lt_postlink_cmds
  19449. # Specify filename containing input files.
  19450. file_list_spec=$lt_file_list_spec
  19451. # How to hardcode a shared library path into an executable.
  19452. hardcode_action=$hardcode_action
  19453. # The directories searched by this compiler when creating a shared library.
  19454. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  19455. # Dependencies to place before and after the objects being linked to
  19456. # create a shared library.
  19457. predep_objects=$lt_predep_objects
  19458. postdep_objects=$lt_postdep_objects
  19459. predeps=$lt_predeps
  19460. postdeps=$lt_postdeps
  19461. # The library search path used internally by the compiler when linking
  19462. # a shared library.
  19463. compiler_lib_search_path=$lt_compiler_lib_search_path
  19464. # ### END LIBTOOL CONFIG
  19465. _LT_EOF
  19466. cat <<'_LT_EOF' >> "$cfgfile"
  19467. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  19468. # func_munge_path_list VARIABLE PATH
  19469. # -----------------------------------
  19470. # VARIABLE is name of variable containing _space_ separated list of
  19471. # directories to be munged by the contents of PATH, which is string
  19472. # having a format:
  19473. # "DIR[:DIR]:"
  19474. # string "DIR[ DIR]" will be prepended to VARIABLE
  19475. # ":DIR[:DIR]"
  19476. # string "DIR[ DIR]" will be appended to VARIABLE
  19477. # "DIRP[:DIRP]::[DIRA:]DIRA"
  19478. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  19479. # "DIRA[ DIRA]" will be appended to VARIABLE
  19480. # "DIR[:DIR]"
  19481. # VARIABLE will be replaced by "DIR[ DIR]"
  19482. func_munge_path_list ()
  19483. {
  19484. case x$2 in
  19485. x)
  19486. ;;
  19487. *:)
  19488. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  19489. ;;
  19490. x:*)
  19491. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  19492. ;;
  19493. *::*)
  19494. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  19495. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  19496. ;;
  19497. *)
  19498. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  19499. ;;
  19500. esac
  19501. }
  19502. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  19503. func_cc_basename ()
  19504. {
  19505. for cc_temp in $*""; do
  19506. case $cc_temp in
  19507. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19508. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19509. \-*) ;;
  19510. *) break;;
  19511. esac
  19512. done
  19513. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  19514. }
  19515. # ### END FUNCTIONS SHARED WITH CONFIGURE
  19516. _LT_EOF
  19517. case $host_os in
  19518. aix3*)
  19519. cat <<\_LT_EOF >> "$cfgfile"
  19520. # AIX sometimes has problems with the GCC collect2 program. For some
  19521. # reason, if we set the COLLECT_NAMES environment variable, the problems
  19522. # vanish in a puff of smoke.
  19523. if test set != "${COLLECT_NAMES+set}"; then
  19524. COLLECT_NAMES=
  19525. export COLLECT_NAMES
  19526. fi
  19527. _LT_EOF
  19528. ;;
  19529. esac
  19530. ltmain=$ac_aux_dir/ltmain.sh
  19531. # We use sed instead of cat because bash on DJGPP gets confused if
  19532. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  19533. # text mode, it properly converts lines to CR/LF. This bash problem
  19534. # is reportedly fixed, but why not run on old versions too?
  19535. sed '$q' "$ltmain" >> "$cfgfile" \
  19536. || (rm -f "$cfgfile"; exit 1)
  19537. mv -f "$cfgfile" "$ofile" ||
  19538. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  19539. chmod +x "$ofile"
  19540. cat <<_LT_EOF >> "$ofile"
  19541. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  19542. # The linker used to build libraries.
  19543. LD=$lt_LD_CXX
  19544. # How to create reloadable object files.
  19545. reload_flag=$lt_reload_flag_CXX
  19546. reload_cmds=$lt_reload_cmds_CXX
  19547. # Commands used to build an old-style archive.
  19548. old_archive_cmds=$lt_old_archive_cmds_CXX
  19549. # A language specific compiler.
  19550. CC=$lt_compiler_CXX
  19551. # Is the compiler the GNU compiler?
  19552. with_gcc=$GCC_CXX
  19553. # Compiler flag to turn off builtin functions.
  19554. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  19555. # Additional compiler flags for building library objects.
  19556. pic_flag=$lt_lt_prog_compiler_pic_CXX
  19557. # How to pass a linker flag through the compiler.
  19558. wl=$lt_lt_prog_compiler_wl_CXX
  19559. # Compiler flag to prevent dynamic linking.
  19560. link_static_flag=$lt_lt_prog_compiler_static_CXX
  19561. # Does compiler simultaneously support -c and -o options?
  19562. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  19563. # Whether or not to add -lc for building shared libraries.
  19564. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  19565. # Whether or not to disallow shared libs when runtime libs are static.
  19566. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  19567. # Compiler flag to allow reflexive dlopens.
  19568. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  19569. # Compiler flag to generate shared objects directly from archives.
  19570. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  19571. # Whether the compiler copes with passing no objects directly.
  19572. compiler_needs_object=$lt_compiler_needs_object_CXX
  19573. # Create an old-style archive from a shared archive.
  19574. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  19575. # Create a temporary old-style archive to link instead of a shared archive.
  19576. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  19577. # Commands used to build a shared archive.
  19578. archive_cmds=$lt_archive_cmds_CXX
  19579. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  19580. # Commands used to build a loadable module if different from building
  19581. # a shared archive.
  19582. module_cmds=$lt_module_cmds_CXX
  19583. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  19584. # Whether we are building with GNU ld or not.
  19585. with_gnu_ld=$lt_with_gnu_ld_CXX
  19586. # Flag that allows shared libraries with undefined symbols to be built.
  19587. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  19588. # Flag that enforces no undefined symbols.
  19589. no_undefined_flag=$lt_no_undefined_flag_CXX
  19590. # Flag to hardcode \$libdir into a binary during linking.
  19591. # This must work even if \$libdir does not exist
  19592. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  19593. # Whether we need a single "-rpath" flag with a separated argument.
  19594. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  19595. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19596. # DIR into the resulting binary.
  19597. hardcode_direct=$hardcode_direct_CXX
  19598. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  19599. # DIR into the resulting binary and the resulting library dependency is
  19600. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  19601. # library is relocated.
  19602. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  19603. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  19604. # into the resulting binary.
  19605. hardcode_minus_L=$hardcode_minus_L_CXX
  19606. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  19607. # into the resulting binary.
  19608. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  19609. # Set to "yes" if building a shared library automatically hardcodes DIR
  19610. # into the library and all subsequent libraries and executables linked
  19611. # against it.
  19612. hardcode_automatic=$hardcode_automatic_CXX
  19613. # Set to yes if linker adds runtime paths of dependent libraries
  19614. # to runtime path list.
  19615. inherit_rpath=$inherit_rpath_CXX
  19616. # Whether libtool must link a program against all its dependency libraries.
  19617. link_all_deplibs=$link_all_deplibs_CXX
  19618. # Set to "yes" if exported symbols are required.
  19619. always_export_symbols=$always_export_symbols_CXX
  19620. # The commands to list exported symbols.
  19621. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  19622. # Symbols that should not be listed in the preloaded symbols.
  19623. exclude_expsyms=$lt_exclude_expsyms_CXX
  19624. # Symbols that must always be exported.
  19625. include_expsyms=$lt_include_expsyms_CXX
  19626. # Commands necessary for linking programs (against libraries) with templates.
  19627. prelink_cmds=$lt_prelink_cmds_CXX
  19628. # Commands necessary for finishing linking programs.
  19629. postlink_cmds=$lt_postlink_cmds_CXX
  19630. # Specify filename containing input files.
  19631. file_list_spec=$lt_file_list_spec_CXX
  19632. # How to hardcode a shared library path into an executable.
  19633. hardcode_action=$hardcode_action_CXX
  19634. # The directories searched by this compiler when creating a shared library.
  19635. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  19636. # Dependencies to place before and after the objects being linked to
  19637. # create a shared library.
  19638. predep_objects=$lt_predep_objects_CXX
  19639. postdep_objects=$lt_postdep_objects_CXX
  19640. predeps=$lt_predeps_CXX
  19641. postdeps=$lt_postdeps_CXX
  19642. # The library search path used internally by the compiler when linking
  19643. # a shared library.
  19644. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  19645. # ### END LIBTOOL TAG CONFIG: CXX
  19646. _LT_EOF
  19647. ;;
  19648. "script-chmod":C) chmod a+x pcre-config ;;
  19649. "delete-old-chartables":C) rm -f pcre_chartables.c ;;
  19650. esac
  19651. done # for ac_tag
  19652. as_fn_exit 0
  19653. _ACEOF
  19654. ac_clean_files=$ac_clean_files_save
  19655. test $ac_write_fail = 0 ||
  19656. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  19657. # configure is writing to config.log, and then calls config.status.
  19658. # config.status does its own redirection, appending to config.log.
  19659. # Unfortunately, on DOS this fails, as config.log is still kept open
  19660. # by configure, so config.status won't be able to write to it; its
  19661. # output is simply discarded. So we exec the FD to /dev/null,
  19662. # effectively closing config.log, so it can be properly (re)opened and
  19663. # appended to by config.status. When coming back to configure, we
  19664. # need to make the FD available again.
  19665. if test "$no_create" != yes; then
  19666. ac_cs_success=:
  19667. ac_config_status_args=
  19668. test "$silent" = yes &&
  19669. ac_config_status_args="$ac_config_status_args --quiet"
  19670. exec 5>/dev/null
  19671. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  19672. exec 5>>config.log
  19673. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  19674. # would make configure fail if this is the last instruction.
  19675. $ac_cs_success || as_fn_exit 1
  19676. fi
  19677. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  19678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  19679. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  19680. fi
  19681. # Print out a nice little message after configure is run displaying the
  19682. # chosen options.
  19683. ebcdic_nl_code=n/a
  19684. if test "$enable_ebcdic_nl25" = "yes"; then
  19685. ebcdic_nl_code=0x25
  19686. elif test "$enable_ebcdic" = "yes"; then
  19687. ebcdic_nl_code=0x15
  19688. fi
  19689. cat <<EOF
  19690. $PACKAGE-$VERSION configuration summary:
  19691. Install prefix .................. : ${prefix}
  19692. C preprocessor .................. : ${CPP}
  19693. C compiler ...................... : ${CC}
  19694. C++ preprocessor ................ : ${CXXCPP}
  19695. C++ compiler .................... : ${CXX}
  19696. Linker .......................... : ${LD}
  19697. C preprocessor flags ............ : ${CPPFLAGS}
  19698. C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
  19699. C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
  19700. Linker flags .................... : ${LDFLAGS}
  19701. Extra libraries ................. : ${LIBS}
  19702. Build 8 bit pcre library ........ : ${enable_pcre8}
  19703. Build 16 bit pcre library ....... : ${enable_pcre16}
  19704. Build 32 bit pcre library ....... : ${enable_pcre32}
  19705. Build C++ library ............... : ${enable_cpp}
  19706. Enable JIT compiling support .... : ${enable_jit}
  19707. Enable UTF-8/16/32 support ...... : ${enable_utf}
  19708. Unicode properties .............. : ${enable_unicode_properties}
  19709. Newline char/sequence ........... : ${enable_newline}
  19710. \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
  19711. EBCDIC coding ................... : ${enable_ebcdic}
  19712. EBCDIC code for NL .............. : ${ebcdic_nl_code}
  19713. Rebuild char tables ............. : ${enable_rebuild_chartables}
  19714. Use stack recursion ............. : ${enable_stack_for_recursion}
  19715. POSIX mem threshold ............. : ${with_posix_malloc_threshold}
  19716. Internal link size .............. : ${with_link_size}
  19717. Nested parentheses limit ........ : ${with_parens_nest_limit}
  19718. Match limit ..................... : ${with_match_limit}
  19719. Match limit recursion ........... : ${with_match_limit_recursion}
  19720. Build shared libs ............... : ${enable_shared}
  19721. Build static libs ............... : ${enable_static}
  19722. Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
  19723. Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
  19724. Link pcregrep with libz ......... : ${enable_pcregrep_libz}
  19725. Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
  19726. Link pcretest with libedit ...... : ${enable_pcretest_libedit}
  19727. Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
  19728. Valgrind support ................ : ${enable_valgrind}
  19729. Code coverage ................... : ${enable_coverage}
  19730. EOF