configure 550 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.72 for PCRE2 10.43.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  18. then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else case e in #(
  26. e) case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed 'exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  127. then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else case e in #(
  135. e) case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else case e in #(
  157. e) exitcode=1; echo positional parameters were not saved. ;;
  158. esac
  159. fi
  160. test x\$exitcode = x0 || exit 1
  161. blah=\$(echo \$(echo blah))
  162. test x\"\$blah\" = xblah || exit 1
  163. test -x / || exit 1"
  164. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  165. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  166. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  167. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  168. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  169. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. PATH=/empty FPATH=/empty; export PATH FPATH
  173. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  174. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  175. test \$(( 1 + 1 )) = 2 || exit 1"
  176. if (eval "$as_required") 2>/dev/null
  177. then :
  178. as_have_required=yes
  179. else case e in #(
  180. e) as_have_required=no ;;
  181. esac
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else case e in #(
  186. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  187. as_found=false
  188. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  189. do
  190. IFS=$as_save_IFS
  191. case $as_dir in #(((
  192. '') as_dir=./ ;;
  193. */) ;;
  194. *) as_dir=$as_dir/ ;;
  195. esac
  196. as_found=:
  197. case $as_dir in #(
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. # Try only shells that exist, to save several forks.
  201. as_shell=$as_dir$as_base
  202. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  203. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  204. then :
  205. CONFIG_SHELL=$as_shell as_have_required=yes
  206. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  207. then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. IFS=$as_save_IFS
  216. if $as_found
  217. then :
  218. else case e in #(
  219. e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  221. then :
  222. CONFIG_SHELL=$SHELL as_have_required=yes
  223. fi ;;
  224. esac
  225. fi
  226. if test "x$CONFIG_SHELL" != x
  227. then :
  228. export CONFIG_SHELL
  229. # We cannot yet assume a decent shell, so we have to provide a
  230. # neutralization value for shells without unset; and this also
  231. # works around shells that cannot unset nonexistent variables.
  232. # Preserve -v and -x to the replacement shell.
  233. BASH_ENV=/dev/null
  234. ENV=/dev/null
  235. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  236. case $- in # ((((
  237. *v*x* | *x*v* ) as_opts=-vx ;;
  238. *v* ) as_opts=-v ;;
  239. *x* ) as_opts=-x ;;
  240. * ) as_opts= ;;
  241. esac
  242. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  243. # Admittedly, this is quite paranoid, since all the known shells bail
  244. # out after a failed 'exec'.
  245. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  246. exit 255
  247. fi
  248. if test x$as_have_required = xno
  249. then :
  250. printf "%s\n" "$0: This script requires a shell more modern than all"
  251. printf "%s\n" "$0: the shells that I found on your system."
  252. if test ${ZSH_VERSION+y} ; then
  253. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. printf "%s\n" "$0: Please tell [email protected] 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. esac
  264. fi
  265. fi
  266. SHELL=${CONFIG_SHELL-/bin/sh}
  267. export SHELL
  268. # Unset more variables known to interfere with behavior of common tools.
  269. CLICOLOR_FORCE= GREP_OPTIONS=
  270. unset CLICOLOR_FORCE GREP_OPTIONS
  271. ## --------------------- ##
  272. ## M4sh Shell Functions. ##
  273. ## --------------------- ##
  274. # as_fn_unset VAR
  275. # ---------------
  276. # Portably unset VAR.
  277. as_fn_unset ()
  278. {
  279. { eval $1=; unset $1;}
  280. }
  281. as_unset=as_fn_unset
  282. # as_fn_set_status STATUS
  283. # -----------------------
  284. # Set $? to STATUS, without forking.
  285. as_fn_set_status ()
  286. {
  287. return $1
  288. } # as_fn_set_status
  289. # as_fn_exit STATUS
  290. # -----------------
  291. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  292. as_fn_exit ()
  293. {
  294. set +e
  295. as_fn_set_status $1
  296. exit $1
  297. } # as_fn_exit
  298. # as_fn_mkdir_p
  299. # -------------
  300. # Create "$as_dir" as a directory, including parents if necessary.
  301. as_fn_mkdir_p ()
  302. {
  303. case $as_dir in #(
  304. -*) as_dir=./$as_dir;;
  305. esac
  306. test -d "$as_dir" || eval $as_mkdir_p || {
  307. as_dirs=
  308. while :; do
  309. case $as_dir in #(
  310. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  311. *) as_qdir=$as_dir;;
  312. esac
  313. as_dirs="'$as_qdir' $as_dirs"
  314. as_dir=`$as_dirname -- "$as_dir" ||
  315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  316. X"$as_dir" : 'X\(//\)[^/]' \| \
  317. X"$as_dir" : 'X\(//\)$' \| \
  318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  319. printf "%s\n" X"$as_dir" |
  320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)[^/].*/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)$/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\).*/{
  333. s//\1/
  334. q
  335. }
  336. s/.*/./; q'`
  337. test -d "$as_dir" && break
  338. done
  339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  341. } # as_fn_mkdir_p
  342. # as_fn_executable_p FILE
  343. # -----------------------
  344. # Test if FILE is an executable regular file.
  345. as_fn_executable_p ()
  346. {
  347. test -f "$1" && test -x "$1"
  348. } # as_fn_executable_p
  349. # as_fn_append VAR VALUE
  350. # ----------------------
  351. # Append the text in VALUE to the end of the definition contained in VAR. Take
  352. # advantage of any shell optimizations that allow amortized linear growth over
  353. # repeated appends, instead of the typical quadratic growth present in naive
  354. # implementations.
  355. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  356. then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else case e in #(
  362. e) as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. } ;;
  366. esac
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  374. then :
  375. eval 'as_fn_arith ()
  376. {
  377. as_val=$(( $* ))
  378. }'
  379. else case e in #(
  380. e) as_fn_arith ()
  381. {
  382. as_val=`expr "$@" || test $? -eq 1`
  383. } ;;
  384. esac
  385. fi # as_fn_arith
  386. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  387. # ----------------------------------------
  388. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  389. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  390. # script with STATUS, using 1 if that was 0.
  391. as_fn_error ()
  392. {
  393. as_status=$1; test $as_status -eq 0 && as_status=1
  394. if test "$4"; then
  395. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  397. fi
  398. printf "%s\n" "$as_me: error: $2" >&2
  399. as_fn_exit $as_status
  400. } # as_fn_error
  401. if expr a : '\(a\)' >/dev/null 2>&1 &&
  402. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  403. as_expr=expr
  404. else
  405. as_expr=false
  406. fi
  407. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  408. as_basename=basename
  409. else
  410. as_basename=false
  411. fi
  412. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  413. as_dirname=dirname
  414. else
  415. as_dirname=false
  416. fi
  417. as_me=`$as_basename -- "$0" ||
  418. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  419. X"$0" : 'X\(//\)$' \| \
  420. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  421. printf "%s\n" X/"$0" |
  422. sed '/^.*\/\([^/][^/]*\)\/*$/{
  423. s//\1/
  424. q
  425. }
  426. /^X\/\(\/\/\)$/{
  427. s//\1/
  428. q
  429. }
  430. /^X\/\(\/\).*/{
  431. s//\1/
  432. q
  433. }
  434. s/.*/./; q'`
  435. # Avoid depending upon Character Ranges.
  436. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  437. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  438. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  439. as_cr_digits='0123456789'
  440. as_cr_alnum=$as_cr_Letters$as_cr_digits
  441. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  442. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  443. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  444. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  445. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  446. sed -n '
  447. p
  448. /[$]LINENO/=
  449. ' <$as_myself |
  450. sed '
  451. t clear
  452. :clear
  453. s/[$]LINENO.*/&-/
  454. t lineno
  455. b
  456. :lineno
  457. N
  458. :loop
  459. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  460. t loop
  461. s/-\n.*//
  462. ' >$as_me.lineno &&
  463. chmod +x "$as_me.lineno" ||
  464. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  465. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  466. # already done that, so ensure we don't try to do so again and fall
  467. # in an infinite loop. This has already happened in practice.
  468. _as_can_reexec=no; export _as_can_reexec
  469. # Don't try to exec as it changes $[0], causing all sort of problems
  470. # (the dirname of $[0] is not the place where we might find the
  471. # original and so on. Autoconf is especially sensitive to this).
  472. . "./$as_me.lineno"
  473. # Exit status is that of the last command.
  474. exit
  475. }
  476. # Determine whether it's possible to make 'echo' print without a newline.
  477. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  478. # for compatibility with existing Makefiles.
  479. ECHO_C= ECHO_N= ECHO_T=
  480. case `echo -n x` in #(((((
  481. -n*)
  482. case `echo 'xy\c'` in
  483. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  484. xy) ECHO_C='\c';;
  485. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  486. ECHO_T=' ';;
  487. esac;;
  488. *)
  489. ECHO_N='-n';;
  490. esac
  491. # For backward compatibility with old third-party macros, we provide
  492. # the shell variables $as_echo and $as_echo_n. New code should use
  493. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  494. as_echo='printf %s\n'
  495. as_echo_n='printf %s'
  496. rm -f conf$$ conf$$.exe conf$$.file
  497. if test -d conf$$.dir; then
  498. rm -f conf$$.dir/conf$$.file
  499. else
  500. rm -f conf$$.dir
  501. mkdir conf$$.dir 2>/dev/null
  502. fi
  503. if (echo >conf$$.file) 2>/dev/null; then
  504. if ln -s conf$$.file conf$$ 2>/dev/null; then
  505. as_ln_s='ln -s'
  506. # ... but there are two gotchas:
  507. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  508. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  509. # In both cases, we have to default to 'cp -pR'.
  510. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  511. as_ln_s='cp -pR'
  512. elif ln conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s=ln
  514. else
  515. as_ln_s='cp -pR'
  516. fi
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  521. rmdir conf$$.dir 2>/dev/null
  522. if mkdir -p . 2>/dev/null; then
  523. as_mkdir_p='mkdir -p "$as_dir"'
  524. else
  525. test -d ./-p && rmdir ./-p
  526. as_mkdir_p=false
  527. fi
  528. as_test_x='test -x'
  529. as_executable_p=as_fn_executable_p
  530. # Sed expression to map a string onto a valid CPP name.
  531. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  532. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  533. # Sed expression to map a string onto a valid variable name.
  534. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  535. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  536. SHELL=${CONFIG_SHELL-/bin/sh}
  537. test -n "$DJDIR" || exec 7<&0 </dev/null
  538. exec 6>&1
  539. # Name of the host.
  540. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  541. # so uname gets run too.
  542. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  543. #
  544. # Initializations.
  545. #
  546. ac_default_prefix=/usr/local
  547. ac_clean_files=
  548. ac_config_libobj_dir=.
  549. LIBOBJS=
  550. cross_compiling=no
  551. subdirs=
  552. MFLAGS=
  553. MAKEFLAGS=
  554. # Identity of this package.
  555. PACKAGE_NAME='PCRE2'
  556. PACKAGE_TARNAME='pcre2'
  557. PACKAGE_VERSION='10.43'
  558. PACKAGE_STRING='PCRE2 10.43'
  559. PACKAGE_BUGREPORT=''
  560. PACKAGE_URL=''
  561. ac_unique_file="src/pcre2.h.in"
  562. # Factoring default headers for most tests.
  563. ac_includes_default="\
  564. #include <stddef.h>
  565. #ifdef HAVE_STDIO_H
  566. # include <stdio.h>
  567. #endif
  568. #ifdef HAVE_STDLIB_H
  569. # include <stdlib.h>
  570. #endif
  571. #ifdef HAVE_STRING_H
  572. # include <string.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_STRINGS_H
  581. # include <strings.h>
  582. #endif
  583. #ifdef HAVE_SYS_TYPES_H
  584. # include <sys/types.h>
  585. #endif
  586. #ifdef HAVE_SYS_STAT_H
  587. # include <sys/stat.h>
  588. #endif
  589. #ifdef HAVE_UNISTD_H
  590. # include <unistd.h>
  591. #endif"
  592. ac_header_c_list=
  593. enable_year2038=no
  594. ac_subst_vars='am__EXEEXT_FALSE
  595. am__EXEEXT_TRUE
  596. LTLIBOBJS
  597. LIBOBJS
  598. LIB_POSTFIX
  599. CET_CFLAGS
  600. WITH_GCOV_FALSE
  601. WITH_GCOV_TRUE
  602. GCOV_LIBS
  603. GCOV_CXXFLAGS
  604. GCOV_CFLAGS
  605. GENHTML
  606. LCOV
  607. SHTOOL
  608. VALGRIND_LIBS
  609. VALGRIND_CFLAGS
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. LIBBZ2
  614. LIBZ
  615. DISTCHECK_CONFIGURE_FLAGS
  616. EXTRA_LIBPCRE2_POSIX_LDFLAGS
  617. EXTRA_LIBPCRE2_32_LDFLAGS
  618. EXTRA_LIBPCRE2_16_LDFLAGS
  619. EXTRA_LIBPCRE2_8_LDFLAGS
  620. PTHREAD_CFLAGS
  621. PTHREAD_LIBS
  622. PTHREAD_CC
  623. ax_pthread_config
  624. PCRE2POSIX_CFLAG
  625. PCRE2_STATIC_CFLAG
  626. LIBREADLINE
  627. WITH_DIFF_FUZZ_SUPPORT_FALSE
  628. WITH_DIFF_FUZZ_SUPPORT_TRUE
  629. WITH_FUZZ_SUPPORT_FALSE
  630. WITH_FUZZ_SUPPORT_TRUE
  631. WITH_VALGRIND_FALSE
  632. WITH_VALGRIND_TRUE
  633. WITH_UNICODE_FALSE
  634. WITH_UNICODE_TRUE
  635. WITH_JIT_FALSE
  636. WITH_JIT_TRUE
  637. WITH_REBUILD_CHARTABLES_FALSE
  638. WITH_REBUILD_CHARTABLES_TRUE
  639. WITH_DEBUG_FALSE
  640. WITH_DEBUG_TRUE
  641. WITH_PCRE2_32_FALSE
  642. WITH_PCRE2_32_TRUE
  643. WITH_PCRE2_16_FALSE
  644. WITH_PCRE2_16_TRUE
  645. WITH_PCRE2_8_FALSE
  646. WITH_PCRE2_8_TRUE
  647. enable_pcre2_32
  648. enable_pcre2_16
  649. enable_pcre2_8
  650. PCRE2_DATE
  651. PCRE2_PRERELEASE
  652. PCRE2_MINOR
  653. PCRE2_MAJOR
  654. HAVE_VISIBILITY
  655. VISIBILITY_CXXFLAGS
  656. VISIBILITY_CFLAGS
  657. LT_SYS_LIBRARY_PATH
  658. OTOOL64
  659. OTOOL
  660. LIPO
  661. NMEDIT
  662. DSYMUTIL
  663. MANIFEST_TOOL
  664. RANLIB
  665. FILECMD
  666. LN_S
  667. NM
  668. ac_ct_DUMPBIN
  669. DUMPBIN
  670. LD
  671. FGREP
  672. EGREP
  673. GREP
  674. SED
  675. host_os
  676. host_vendor
  677. host_cpu
  678. host
  679. build_os
  680. build_vendor
  681. build_cpu
  682. build
  683. LIBTOOL
  684. OBJDUMP
  685. DLLTOOL
  686. AS
  687. ac_ct_AR
  688. AR
  689. am__fastdepCC_FALSE
  690. am__fastdepCC_TRUE
  691. CCDEPMODE
  692. am__nodep
  693. AMDEPBACKSLASH
  694. AMDEP_FALSE
  695. AMDEP_TRUE
  696. am__include
  697. DEPDIR
  698. OBJEXT
  699. EXEEXT
  700. ac_ct_CC
  701. CPPFLAGS
  702. LDFLAGS
  703. CFLAGS
  704. CC
  705. AM_BACKSLASH
  706. AM_DEFAULT_VERBOSITY
  707. AM_DEFAULT_V
  708. AM_V
  709. CSCOPE
  710. ETAGS
  711. CTAGS
  712. am__untar
  713. am__tar
  714. AMTAR
  715. am__leading_dot
  716. SET_MAKE
  717. AWK
  718. mkdir_p
  719. MKDIR_P
  720. INSTALL_STRIP_PROGRAM
  721. STRIP
  722. install_sh
  723. MAKEINFO
  724. AUTOHEADER
  725. AUTOMAKE
  726. AUTOCONF
  727. ACLOCAL
  728. VERSION
  729. PACKAGE
  730. CYGPATH_W
  731. am__isrc
  732. INSTALL_DATA
  733. INSTALL_SCRIPT
  734. INSTALL_PROGRAM
  735. target_alias
  736. host_alias
  737. build_alias
  738. LIBS
  739. ECHO_T
  740. ECHO_N
  741. ECHO_C
  742. DEFS
  743. mandir
  744. localedir
  745. libdir
  746. psdir
  747. pdfdir
  748. dvidir
  749. htmldir
  750. infodir
  751. docdir
  752. oldincludedir
  753. includedir
  754. runstatedir
  755. localstatedir
  756. sharedstatedir
  757. sysconfdir
  758. datadir
  759. datarootdir
  760. libexecdir
  761. sbindir
  762. bindir
  763. program_transform_name
  764. prefix
  765. exec_prefix
  766. PACKAGE_URL
  767. PACKAGE_BUGREPORT
  768. PACKAGE_STRING
  769. PACKAGE_VERSION
  770. PACKAGE_TARNAME
  771. PACKAGE_NAME
  772. PATH_SEPARATOR
  773. SHELL
  774. am__quote'
  775. ac_subst_files=''
  776. ac_user_opts='
  777. enable_option_checking
  778. enable_silent_rules
  779. enable_dependency_tracking
  780. enable_shared
  781. enable_static
  782. with_pic
  783. enable_fast_install
  784. with_aix_soname
  785. with_gnu_ld
  786. with_sysroot
  787. enable_libtool_lock
  788. enable_largefile
  789. enable_pcre8
  790. enable_pcre16
  791. enable_pcre32
  792. enable_pcre2_8
  793. enable_pcre2_16
  794. enable_pcre2_32
  795. enable_debug
  796. enable_jit
  797. enable_jit_sealloc
  798. enable_pcre2grep_jit
  799. enable_pcre2grep_callout
  800. enable_pcre2grep_callout_fork
  801. enable_rebuild_chartables
  802. enable_unicode
  803. enable_newline_is_cr
  804. enable_newline_is_lf
  805. enable_newline_is_crlf
  806. enable_newline_is_anycrlf
  807. enable_newline_is_any
  808. enable_newline_is_nul
  809. enable_bsr_anycrlf
  810. enable_never_backslash_C
  811. enable_ebcdic
  812. enable_ebcdic_nl25
  813. enable_pcre2grep_libz
  814. enable_pcre2grep_libbz2
  815. with_pcre2grep_bufsize
  816. with_pcre2grep_max_bufsize
  817. enable_pcre2test_libedit
  818. enable_pcre2test_libreadline
  819. with_link_size
  820. with_max_varlookbehind
  821. with_parens_nest_limit
  822. with_heap_limit
  823. with_match_limit
  824. with_match_limit_depth
  825. with_match_limit_recursion
  826. enable_valgrind
  827. enable_coverage
  828. enable_fuzz_support
  829. enable_diff_fuzz_support
  830. enable_stack_for_recursion
  831. enable_percent_zt
  832. enable_year2038
  833. '
  834. ac_precious_vars='build_alias
  835. host_alias
  836. target_alias
  837. CC
  838. CFLAGS
  839. LDFLAGS
  840. LIBS
  841. CPPFLAGS
  842. LT_SYS_LIBRARY_PATH
  843. PKG_CONFIG
  844. PKG_CONFIG_PATH
  845. PKG_CONFIG_LIBDIR
  846. VALGRIND_CFLAGS
  847. VALGRIND_LIBS
  848. LCOV
  849. GENHTML'
  850. # Initialize some variables set by options.
  851. ac_init_help=
  852. ac_init_version=false
  853. ac_unrecognized_opts=
  854. ac_unrecognized_sep=
  855. # The variables have the same names as the options, with
  856. # dashes changed to underlines.
  857. cache_file=/dev/null
  858. exec_prefix=NONE
  859. no_create=
  860. no_recursion=
  861. prefix=NONE
  862. program_prefix=NONE
  863. program_suffix=NONE
  864. program_transform_name=s,x,x,
  865. silent=
  866. site=
  867. srcdir=
  868. verbose=
  869. x_includes=NONE
  870. x_libraries=NONE
  871. # Installation directory options.
  872. # These are left unexpanded so users can "make install exec_prefix=/foo"
  873. # and all the variables that are supposed to be based on exec_prefix
  874. # by default will actually change.
  875. # Use braces instead of parens because sh, perl, etc. also accept them.
  876. # (The list follows the same order as the GNU Coding Standards.)
  877. bindir='${exec_prefix}/bin'
  878. sbindir='${exec_prefix}/sbin'
  879. libexecdir='${exec_prefix}/libexec'
  880. datarootdir='${prefix}/share'
  881. datadir='${datarootdir}'
  882. sysconfdir='${prefix}/etc'
  883. sharedstatedir='${prefix}/com'
  884. localstatedir='${prefix}/var'
  885. runstatedir='${localstatedir}/run'
  886. includedir='${prefix}/include'
  887. oldincludedir='/usr/include'
  888. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  889. infodir='${datarootdir}/info'
  890. htmldir='${docdir}'
  891. dvidir='${docdir}'
  892. pdfdir='${docdir}'
  893. psdir='${docdir}'
  894. libdir='${exec_prefix}/lib'
  895. localedir='${datarootdir}/locale'
  896. mandir='${datarootdir}/man'
  897. ac_prev=
  898. ac_dashdash=
  899. for ac_option
  900. do
  901. # If the previous option needs an argument, assign it.
  902. if test -n "$ac_prev"; then
  903. eval $ac_prev=\$ac_option
  904. ac_prev=
  905. continue
  906. fi
  907. case $ac_option in
  908. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  909. *=) ac_optarg= ;;
  910. *) ac_optarg=yes ;;
  911. esac
  912. case $ac_dashdash$ac_option in
  913. --)
  914. ac_dashdash=yes ;;
  915. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  916. ac_prev=bindir ;;
  917. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  918. bindir=$ac_optarg ;;
  919. -build | --build | --buil | --bui | --bu)
  920. ac_prev=build_alias ;;
  921. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  922. build_alias=$ac_optarg ;;
  923. -cache-file | --cache-file | --cache-fil | --cache-fi \
  924. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  925. ac_prev=cache_file ;;
  926. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  927. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  928. cache_file=$ac_optarg ;;
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. -datadir | --datadir | --datadi | --datad)
  932. ac_prev=datadir ;;
  933. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  934. datadir=$ac_optarg ;;
  935. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  936. | --dataroo | --dataro | --datar)
  937. ac_prev=datarootdir ;;
  938. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  939. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  940. datarootdir=$ac_optarg ;;
  941. -disable-* | --disable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. as_fn_error $? "invalid feature name: '$ac_useropt'"
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=no ;;
  956. -docdir | --docdir | --docdi | --doc | --do)
  957. ac_prev=docdir ;;
  958. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959. docdir=$ac_optarg ;;
  960. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  961. ac_prev=dvidir ;;
  962. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  963. dvidir=$ac_optarg ;;
  964. -enable-* | --enable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid feature name: '$ac_useropt'"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=\$ac_optarg ;;
  979. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  980. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  981. | --exec | --exe | --ex)
  982. ac_prev=exec_prefix ;;
  983. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  984. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  985. | --exec=* | --exe=* | --ex=*)
  986. exec_prefix=$ac_optarg ;;
  987. -gas | --gas | --ga | --g)
  988. # Obsolete; use --with-gas.
  989. with_gas=yes ;;
  990. -help | --help | --hel | --he | -h)
  991. ac_init_help=long ;;
  992. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  993. ac_init_help=recursive ;;
  994. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  995. ac_init_help=short ;;
  996. -host | --host | --hos | --ho)
  997. ac_prev=host_alias ;;
  998. -host=* | --host=* | --hos=* | --ho=*)
  999. host_alias=$ac_optarg ;;
  1000. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1001. ac_prev=htmldir ;;
  1002. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1003. | --ht=*)
  1004. htmldir=$ac_optarg ;;
  1005. -includedir | --includedir | --includedi | --included | --include \
  1006. | --includ | --inclu | --incl | --inc)
  1007. ac_prev=includedir ;;
  1008. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1009. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1010. includedir=$ac_optarg ;;
  1011. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1012. ac_prev=infodir ;;
  1013. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1014. infodir=$ac_optarg ;;
  1015. -libdir | --libdir | --libdi | --libd)
  1016. ac_prev=libdir ;;
  1017. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1018. libdir=$ac_optarg ;;
  1019. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020. | --libexe | --libex | --libe)
  1021. ac_prev=libexecdir ;;
  1022. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023. | --libexe=* | --libex=* | --libe=*)
  1024. libexecdir=$ac_optarg ;;
  1025. -localedir | --localedir | --localedi | --localed | --locale)
  1026. ac_prev=localedir ;;
  1027. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1028. localedir=$ac_optarg ;;
  1029. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1030. | --localstate | --localstat | --localsta | --localst | --locals)
  1031. ac_prev=localstatedir ;;
  1032. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1033. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1034. localstatedir=$ac_optarg ;;
  1035. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1036. ac_prev=mandir ;;
  1037. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1038. mandir=$ac_optarg ;;
  1039. -nfp | --nfp | --nf)
  1040. # Obsolete; use --without-fp.
  1041. with_fp=no ;;
  1042. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043. | --no-cr | --no-c | -n)
  1044. no_create=yes ;;
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1049. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1050. | --oldin | --oldi | --old | --ol | --o)
  1051. ac_prev=oldincludedir ;;
  1052. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1053. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1054. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1055. oldincludedir=$ac_optarg ;;
  1056. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1057. ac_prev=prefix ;;
  1058. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1059. prefix=$ac_optarg ;;
  1060. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1061. | --program-pre | --program-pr | --program-p)
  1062. ac_prev=program_prefix ;;
  1063. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1064. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1065. program_prefix=$ac_optarg ;;
  1066. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1067. | --program-suf | --program-su | --program-s)
  1068. ac_prev=program_suffix ;;
  1069. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1070. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1071. program_suffix=$ac_optarg ;;
  1072. -program-transform-name | --program-transform-name \
  1073. | --program-transform-nam | --program-transform-na \
  1074. | --program-transform-n | --program-transform- \
  1075. | --program-transform | --program-transfor \
  1076. | --program-transfo | --program-transf \
  1077. | --program-trans | --program-tran \
  1078. | --progr-tra | --program-tr | --program-t)
  1079. ac_prev=program_transform_name ;;
  1080. -program-transform-name=* | --program-transform-name=* \
  1081. | --program-transform-nam=* | --program-transform-na=* \
  1082. | --program-transform-n=* | --program-transform-=* \
  1083. | --program-transform=* | --program-transfor=* \
  1084. | --program-transfo=* | --program-transf=* \
  1085. | --program-trans=* | --program-tran=* \
  1086. | --progr-tra=* | --program-tr=* | --program-t=*)
  1087. program_transform_name=$ac_optarg ;;
  1088. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1089. ac_prev=pdfdir ;;
  1090. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1091. pdfdir=$ac_optarg ;;
  1092. -psdir | --psdir | --psdi | --psd | --ps)
  1093. ac_prev=psdir ;;
  1094. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1095. psdir=$ac_optarg ;;
  1096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1097. | -silent | --silent | --silen | --sile | --sil)
  1098. silent=yes ;;
  1099. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1100. | --runstate | --runstat | --runsta | --runst | --runs \
  1101. | --run | --ru | --r)
  1102. ac_prev=runstatedir ;;
  1103. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1104. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1105. | --run=* | --ru=* | --r=*)
  1106. runstatedir=$ac_optarg ;;
  1107. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1108. ac_prev=sbindir ;;
  1109. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1110. | --sbi=* | --sb=*)
  1111. sbindir=$ac_optarg ;;
  1112. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1113. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1114. | --sharedst | --shareds | --shared | --share | --shar \
  1115. | --sha | --sh)
  1116. ac_prev=sharedstatedir ;;
  1117. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1118. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1119. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1120. | --sha=* | --sh=*)
  1121. sharedstatedir=$ac_optarg ;;
  1122. -site | --site | --sit)
  1123. ac_prev=site ;;
  1124. -site=* | --site=* | --sit=*)
  1125. site=$ac_optarg ;;
  1126. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1127. ac_prev=srcdir ;;
  1128. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1129. srcdir=$ac_optarg ;;
  1130. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1131. | --syscon | --sysco | --sysc | --sys | --sy)
  1132. ac_prev=sysconfdir ;;
  1133. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1134. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1135. sysconfdir=$ac_optarg ;;
  1136. -target | --target | --targe | --targ | --tar | --ta | --t)
  1137. ac_prev=target_alias ;;
  1138. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1139. target_alias=$ac_optarg ;;
  1140. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1141. verbose=yes ;;
  1142. -version | --version | --versio | --versi | --vers | -V)
  1143. ac_init_version=: ;;
  1144. -with-* | --with-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. as_fn_error $? "invalid package name: '$ac_useropt'"
  1149. ac_useropt_orig=$ac_useropt
  1150. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1151. case $ac_user_opts in
  1152. *"
  1153. "with_$ac_useropt"
  1154. "*) ;;
  1155. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1156. ac_unrecognized_sep=', ';;
  1157. esac
  1158. eval with_$ac_useropt=\$ac_optarg ;;
  1159. -without-* | --without-*)
  1160. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1161. # Reject names that are not valid shell variable names.
  1162. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1163. as_fn_error $? "invalid package name: '$ac_useropt'"
  1164. ac_useropt_orig=$ac_useropt
  1165. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1166. case $ac_user_opts in
  1167. *"
  1168. "with_$ac_useropt"
  1169. "*) ;;
  1170. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1171. ac_unrecognized_sep=', ';;
  1172. esac
  1173. eval with_$ac_useropt=no ;;
  1174. --x)
  1175. # Obsolete; use --with-x.
  1176. with_x=yes ;;
  1177. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1178. | --x-incl | --x-inc | --x-in | --x-i)
  1179. ac_prev=x_includes ;;
  1180. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1181. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1182. x_includes=$ac_optarg ;;
  1183. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1184. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1185. ac_prev=x_libraries ;;
  1186. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1187. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1188. x_libraries=$ac_optarg ;;
  1189. -*) as_fn_error $? "unrecognized option: '$ac_option'
  1190. Try '$0 --help' for more information"
  1191. ;;
  1192. *=*)
  1193. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1194. # Reject names that are not valid shell variable names.
  1195. case $ac_envvar in #(
  1196. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1197. as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
  1198. esac
  1199. eval $ac_envvar=\$ac_optarg
  1200. export $ac_envvar ;;
  1201. *)
  1202. # FIXME: should be removed in autoconf 3.0.
  1203. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1204. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1205. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1206. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1207. ;;
  1208. esac
  1209. done
  1210. if test -n "$ac_prev"; then
  1211. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1212. as_fn_error $? "missing argument to $ac_option"
  1213. fi
  1214. if test -n "$ac_unrecognized_opts"; then
  1215. case $enable_option_checking in
  1216. no) ;;
  1217. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1218. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1219. esac
  1220. fi
  1221. # Check all directory arguments for consistency.
  1222. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1223. datadir sysconfdir sharedstatedir localstatedir includedir \
  1224. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1225. libdir localedir mandir runstatedir
  1226. do
  1227. eval ac_val=\$$ac_var
  1228. # Remove trailing slashes.
  1229. case $ac_val in
  1230. */ )
  1231. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1232. eval $ac_var=\$ac_val;;
  1233. esac
  1234. # Be sure to have absolute directory names.
  1235. case $ac_val in
  1236. [\\/$]* | ?:[\\/]* ) continue;;
  1237. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1238. esac
  1239. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1240. done
  1241. # There might be people who depend on the old broken behavior: '$host'
  1242. # used to hold the argument of --host etc.
  1243. # FIXME: To remove some day.
  1244. build=$build_alias
  1245. host=$host_alias
  1246. target=$target_alias
  1247. # FIXME: To remove some day.
  1248. if test "x$host_alias" != x; then
  1249. if test "x$build_alias" = x; then
  1250. cross_compiling=maybe
  1251. elif test "x$build_alias" != "x$host_alias"; then
  1252. cross_compiling=yes
  1253. fi
  1254. fi
  1255. ac_tool_prefix=
  1256. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1257. test "$silent" = yes && exec 6>/dev/null
  1258. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1259. ac_ls_di=`ls -di .` &&
  1260. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1261. as_fn_error $? "working directory cannot be determined"
  1262. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1263. as_fn_error $? "pwd does not report name of working directory"
  1264. # Find the source files, if location was not specified.
  1265. if test -z "$srcdir"; then
  1266. ac_srcdir_defaulted=yes
  1267. # Try the directory containing this script, then the parent directory.
  1268. ac_confdir=`$as_dirname -- "$as_myself" ||
  1269. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1270. X"$as_myself" : 'X\(//\)[^/]' \| \
  1271. X"$as_myself" : 'X\(//\)$' \| \
  1272. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1273. printf "%s\n" X"$as_myself" |
  1274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\/\)[^/].*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. /^X\(\/\/\)$/{
  1283. s//\1/
  1284. q
  1285. }
  1286. /^X\(\/\).*/{
  1287. s//\1/
  1288. q
  1289. }
  1290. s/.*/./; q'`
  1291. srcdir=$ac_confdir
  1292. if test ! -r "$srcdir/$ac_unique_file"; then
  1293. srcdir=..
  1294. fi
  1295. else
  1296. ac_srcdir_defaulted=no
  1297. fi
  1298. if test ! -r "$srcdir/$ac_unique_file"; then
  1299. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1300. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1301. fi
  1302. ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
  1303. ac_abs_confdir=`(
  1304. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1305. pwd)`
  1306. # When building in place, set srcdir=.
  1307. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1308. srcdir=.
  1309. fi
  1310. # Remove unnecessary trailing slashes from srcdir.
  1311. # Double slashes in file names in object file debugging info
  1312. # mess up M-x gdb in Emacs.
  1313. case $srcdir in
  1314. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1315. esac
  1316. for ac_var in $ac_precious_vars; do
  1317. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_env_${ac_var}_value=\$${ac_var}
  1319. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1320. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1321. done
  1322. #
  1323. # Report the --help message.
  1324. #
  1325. if test "$ac_init_help" = "long"; then
  1326. # Omit some internal or obsolete options to make the list less imposing.
  1327. # This message is too long to be a string in the A/UX 3.1 sh.
  1328. cat <<_ACEOF
  1329. 'configure' configures PCRE2 10.43 to adapt to many kinds of systems.
  1330. Usage: $0 [OPTION]... [VAR=VALUE]...
  1331. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1332. VAR=VALUE. See below for descriptions of some of the useful variables.
  1333. Defaults for the options are specified in brackets.
  1334. Configuration:
  1335. -h, --help display this help and exit
  1336. --help=short display options specific to this package
  1337. --help=recursive display the short help of all the included packages
  1338. -V, --version display version information and exit
  1339. -q, --quiet, --silent do not print 'checking ...' messages
  1340. --cache-file=FILE cache test results in FILE [disabled]
  1341. -C, --config-cache alias for '--cache-file=config.cache'
  1342. -n, --no-create do not create output files
  1343. --srcdir=DIR find the sources in DIR [configure dir or '..']
  1344. Installation directories:
  1345. --prefix=PREFIX install architecture-independent files in PREFIX
  1346. [$ac_default_prefix]
  1347. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1348. [PREFIX]
  1349. By default, 'make install' will install all the files in
  1350. '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
  1351. an installation prefix other than '$ac_default_prefix' using '--prefix',
  1352. for instance '--prefix=\$HOME'.
  1353. For better control, use the options below.
  1354. Fine tuning of the installation directories:
  1355. --bindir=DIR user executables [EPREFIX/bin]
  1356. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1357. --libexecdir=DIR program executables [EPREFIX/libexec]
  1358. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1359. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1360. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1361. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1362. --libdir=DIR object code libraries [EPREFIX/lib]
  1363. --includedir=DIR C header files [PREFIX/include]
  1364. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1365. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1366. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1367. --infodir=DIR info documentation [DATAROOTDIR/info]
  1368. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1369. --mandir=DIR man documentation [DATAROOTDIR/man]
  1370. --docdir=DIR documentation root [DATAROOTDIR/doc/pcre2]
  1371. --htmldir=DIR html documentation [DOCDIR]
  1372. --dvidir=DIR dvi documentation [DOCDIR]
  1373. --pdfdir=DIR pdf documentation [DOCDIR]
  1374. --psdir=DIR ps documentation [DOCDIR]
  1375. _ACEOF
  1376. cat <<\_ACEOF
  1377. Program names:
  1378. --program-prefix=PREFIX prepend PREFIX to installed program names
  1379. --program-suffix=SUFFIX append SUFFIX to installed program names
  1380. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1381. System types:
  1382. --build=BUILD configure for building on BUILD [guessed]
  1383. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1384. _ACEOF
  1385. fi
  1386. if test -n "$ac_init_help"; then
  1387. case $ac_init_help in
  1388. short | recursive ) echo "Configuration of PCRE2 10.43:";;
  1389. esac
  1390. cat <<\_ACEOF
  1391. Optional Features:
  1392. --disable-option-checking ignore unrecognized --enable/--with options
  1393. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1394. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1395. --enable-silent-rules less verbose build output (undo: "make V=1")
  1396. --disable-silent-rules verbose build output (undo: "make V=0")
  1397. --enable-dependency-tracking
  1398. do not reject slow dependency extractors
  1399. --disable-dependency-tracking
  1400. speeds up one-time build
  1401. --enable-shared[=PKGS] build shared libraries [default=yes]
  1402. --enable-static[=PKGS] build static libraries [default=yes]
  1403. --enable-fast-install[=PKGS]
  1404. optimize for fast installation [default=yes]
  1405. --disable-libtool-lock avoid locking (might break parallel builds)
  1406. --disable-largefile omit support for large files
  1407. --disable-pcre2-8 disable 8 bit character support
  1408. --enable-pcre2-16 enable 16 bit character support
  1409. --enable-pcre2-32 enable 32 bit character support
  1410. --enable-debug enable debugging code
  1411. --enable-jit enable Just-In-Time compiling support
  1412. --enable-jit-sealloc enable SELinux compatible execmem allocator in JIT
  1413. (experimental)
  1414. --disable-pcre2grep-jit disable JIT support in pcre2grep
  1415. --disable-pcre2grep-callout
  1416. disable callout script support in pcre2grep
  1417. --disable-pcre2grep-callout-fork
  1418. disable callout script fork support in pcre2grep
  1419. --enable-rebuild-chartables
  1420. rebuild character tables in current locale
  1421. --disable-unicode disable Unicode support
  1422. --enable-newline-is-cr use CR as newline character
  1423. --enable-newline-is-lf use LF as newline character (default)
  1424. --enable-newline-is-crlf
  1425. use CRLF as newline sequence
  1426. --enable-newline-is-anycrlf
  1427. use CR, LF, or CRLF as newline sequence
  1428. --enable-newline-is-any use any valid Unicode newline sequence
  1429. --enable-newline-is-nul use NUL (binary zero) as newline character
  1430. --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
  1431. --enable-never-backslash-C
  1432. use of \C causes an error
  1433. --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
  1434. with --enable-utf; use only in (uncommon) EBCDIC
  1435. environments; it implies --enable-rebuild-chartables
  1436. --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
  1437. implies --enable-ebcdic
  1438. --enable-pcre2grep-libz link pcre2grep with libz to handle .gz files
  1439. --enable-pcre2grep-libbz2
  1440. link pcre2grep with libbz2 to handle .bz2 files
  1441. --enable-pcre2test-libedit
  1442. link pcre2test with libedit
  1443. --enable-pcre2test-libreadline
  1444. link pcre2test with libreadline
  1445. --enable-valgrind enable valgrind support
  1446. --enable-coverage enable code coverage reports using gcov
  1447. --enable-fuzz-support enable fuzzer support
  1448. --enable-diff-fuzz-support
  1449. enable differential fuzzer support
  1450. --disable-percent-zt disable the use of z and t formatting modifiers
  1451. --enable-year2038 support timestamps after 2038
  1452. Optional Packages:
  1453. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1454. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1455. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1456. both]
  1457. --with-aix-soname=aix|svr4|both
  1458. shared library versioning (aka "SONAME") variant to
  1459. provide on AIX, [default=aix].
  1460. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1461. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1462. compiler's sysroot if not specified).
  1463. --with-pcre2grep-bufsize=N
  1464. pcre2grep initial buffer size (default=20480,
  1465. minimum=8192)
  1466. --with-pcre2grep-max-bufsize=N
  1467. pcre2grep maximum buffer size (default=1048576,
  1468. minimum=8192)
  1469. --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
  1470. --with-max-varlookbehind=N
  1471. maximum length of variable lookbehind (default=255)
  1472. --with-parens-nest-limit=N
  1473. nested parentheses limit (default=250)
  1474. --with-heap-limit=N default limit on heap memory (kibibytes,
  1475. default=20000000)
  1476. --with-match-limit=N default limit on internal looping (default=10000000)
  1477. --with-match-limit-depth=N
  1478. default limit on match tree depth
  1479. (default=MATCH_LIMIT)
  1480. Some influential environment variables:
  1481. CC C compiler command
  1482. CFLAGS C compiler flags
  1483. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1484. nonstandard directory <lib dir>
  1485. LIBS libraries to pass to the linker, e.g. -l<library>
  1486. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1487. you have headers in a nonstandard directory <include dir>
  1488. LT_SYS_LIBRARY_PATH
  1489. User-defined run-time library search path.
  1490. PKG_CONFIG path to pkg-config utility
  1491. PKG_CONFIG_PATH
  1492. directories to add to pkg-config's search path
  1493. PKG_CONFIG_LIBDIR
  1494. path overriding pkg-config's built-in search path
  1495. VALGRIND_CFLAGS
  1496. C compiler flags for VALGRIND, overriding pkg-config
  1497. VALGRIND_LIBS
  1498. linker flags for VALGRIND, overriding pkg-config
  1499. LCOV the ltp lcov program
  1500. GENHTML the ltp genhtml program
  1501. Use these variables to override the choices made by 'configure' or to help
  1502. it to find libraries and programs with nonstandard names/locations.
  1503. Report bugs to the package provider.
  1504. _ACEOF
  1505. ac_status=$?
  1506. fi
  1507. if test "$ac_init_help" = "recursive"; then
  1508. # If there are subdirs, report their specific --help.
  1509. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1510. test -d "$ac_dir" ||
  1511. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1512. continue
  1513. ac_builddir=.
  1514. case "$ac_dir" in
  1515. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1516. *)
  1517. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1518. # A ".." for each directory in $ac_dir_suffix.
  1519. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1520. case $ac_top_builddir_sub in
  1521. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1522. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1523. esac ;;
  1524. esac
  1525. ac_abs_top_builddir=$ac_pwd
  1526. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1527. # for backward compatibility:
  1528. ac_top_builddir=$ac_top_build_prefix
  1529. case $srcdir in
  1530. .) # We are building in place.
  1531. ac_srcdir=.
  1532. ac_top_srcdir=$ac_top_builddir_sub
  1533. ac_abs_top_srcdir=$ac_pwd ;;
  1534. [\\/]* | ?:[\\/]* ) # Absolute name.
  1535. ac_srcdir=$srcdir$ac_dir_suffix;
  1536. ac_top_srcdir=$srcdir
  1537. ac_abs_top_srcdir=$srcdir ;;
  1538. *) # Relative name.
  1539. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1540. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1541. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1542. esac
  1543. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1544. cd "$ac_dir" || { ac_status=$?; continue; }
  1545. # Check for configure.gnu first; this name is used for a wrapper for
  1546. # Metaconfig's "Configure" on case-insensitive file systems.
  1547. if test -f "$ac_srcdir/configure.gnu"; then
  1548. echo &&
  1549. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1550. elif test -f "$ac_srcdir/configure"; then
  1551. echo &&
  1552. $SHELL "$ac_srcdir/configure" --help=recursive
  1553. else
  1554. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1555. fi || ac_status=$?
  1556. cd "$ac_pwd" || { ac_status=$?; break; }
  1557. done
  1558. fi
  1559. test -n "$ac_init_help" && exit $ac_status
  1560. if $ac_init_version; then
  1561. cat <<\_ACEOF
  1562. PCRE2 configure 10.43
  1563. generated by GNU Autoconf 2.72
  1564. Copyright (C) 2023 Free Software Foundation, Inc.
  1565. This configure script is free software; the Free Software Foundation
  1566. gives unlimited permission to copy, distribute and modify it.
  1567. _ACEOF
  1568. exit
  1569. fi
  1570. ## ------------------------ ##
  1571. ## Autoconf initialization. ##
  1572. ## ------------------------ ##
  1573. # ac_fn_c_try_compile LINENO
  1574. # --------------------------
  1575. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1576. ac_fn_c_try_compile ()
  1577. {
  1578. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1579. rm -f conftest.$ac_objext conftest.beam
  1580. if { { ac_try="$ac_compile"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. printf "%s\n" "$ac_try_echo"; } >&5
  1587. (eval "$ac_compile") 2>conftest.err
  1588. ac_status=$?
  1589. if test -s conftest.err; then
  1590. grep -v '^ *+' conftest.err >conftest.er1
  1591. cat conftest.er1 >&5
  1592. mv -f conftest.er1 conftest.err
  1593. fi
  1594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1595. test $ac_status = 0; } && {
  1596. test -z "$ac_c_werror_flag" ||
  1597. test ! -s conftest.err
  1598. } && test -s conftest.$ac_objext
  1599. then :
  1600. ac_retval=0
  1601. else case e in #(
  1602. e) printf "%s\n" "$as_me: failed program was:" >&5
  1603. sed 's/^/| /' conftest.$ac_ext >&5
  1604. ac_retval=1 ;;
  1605. esac
  1606. fi
  1607. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1608. as_fn_set_status $ac_retval
  1609. } # ac_fn_c_try_compile
  1610. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1611. # -------------------------------------------------------
  1612. # Tests whether HEADER exists and can be compiled using the include files in
  1613. # INCLUDES, setting the cache variable VAR accordingly.
  1614. ac_fn_c_check_header_compile ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1618. printf %s "checking for $2... " >&6; }
  1619. if eval test \${$3+y}
  1620. then :
  1621. printf %s "(cached) " >&6
  1622. else case e in #(
  1623. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h. */
  1625. $4
  1626. #include <$2>
  1627. _ACEOF
  1628. if ac_fn_c_try_compile "$LINENO"
  1629. then :
  1630. eval "$3=yes"
  1631. else case e in #(
  1632. e) eval "$3=no" ;;
  1633. esac
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1636. esac
  1637. fi
  1638. eval ac_res=\$$3
  1639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1640. printf "%s\n" "$ac_res" >&6; }
  1641. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1642. } # ac_fn_c_check_header_compile
  1643. # ac_fn_c_find_intX_t LINENO BITS VAR
  1644. # -----------------------------------
  1645. # Finds a signed integer type with width BITS, setting cache variable VAR
  1646. # accordingly.
  1647. ac_fn_c_find_intX_t ()
  1648. {
  1649. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1651. printf %s "checking for int$2_t... " >&6; }
  1652. if eval test \${$3+y}
  1653. then :
  1654. printf %s "(cached) " >&6
  1655. else case e in #(
  1656. e) eval "$3=no"
  1657. # Order is important - never check a type that is potentially smaller
  1658. # than half of the expected target width.
  1659. for ac_type in int$2_t 'int' 'long int' \
  1660. 'long long int' 'short int' 'signed char'; do
  1661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1662. /* end confdefs.h. */
  1663. $ac_includes_default
  1664. enum { N = $2 / 2 - 1 };
  1665. int
  1666. main (void)
  1667. {
  1668. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1669. test_array [0] = 0;
  1670. return test_array [0];
  1671. ;
  1672. return 0;
  1673. }
  1674. _ACEOF
  1675. if ac_fn_c_try_compile "$LINENO"
  1676. then :
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. $ac_includes_default
  1680. enum { N = $2 / 2 - 1 };
  1681. int
  1682. main (void)
  1683. {
  1684. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1685. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1686. test_array [0] = 0;
  1687. return test_array [0];
  1688. ;
  1689. return 0;
  1690. }
  1691. _ACEOF
  1692. if ac_fn_c_try_compile "$LINENO"
  1693. then :
  1694. else case e in #(
  1695. e) case $ac_type in #(
  1696. int$2_t) :
  1697. eval "$3=yes" ;; #(
  1698. *) :
  1699. eval "$3=\$ac_type" ;;
  1700. esac ;;
  1701. esac
  1702. fi
  1703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1706. if eval test \"x\$"$3"\" = x"no"
  1707. then :
  1708. else case e in #(
  1709. e) break ;;
  1710. esac
  1711. fi
  1712. done ;;
  1713. esac
  1714. fi
  1715. eval ac_res=\$$3
  1716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1717. printf "%s\n" "$ac_res" >&6; }
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. } # ac_fn_c_find_intX_t
  1720. # ac_fn_c_try_link LINENO
  1721. # -----------------------
  1722. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1723. ac_fn_c_try_link ()
  1724. {
  1725. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1726. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1727. if { { ac_try="$ac_link"
  1728. case "(($ac_try" in
  1729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1730. *) ac_try_echo=$ac_try;;
  1731. esac
  1732. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1733. printf "%s\n" "$ac_try_echo"; } >&5
  1734. (eval "$ac_link") 2>conftest.err
  1735. ac_status=$?
  1736. if test -s conftest.err; then
  1737. grep -v '^ *+' conftest.err >conftest.er1
  1738. cat conftest.er1 >&5
  1739. mv -f conftest.er1 conftest.err
  1740. fi
  1741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1742. test $ac_status = 0; } && {
  1743. test -z "$ac_c_werror_flag" ||
  1744. test ! -s conftest.err
  1745. } && test -s conftest$ac_exeext && {
  1746. test "$cross_compiling" = yes ||
  1747. test -x conftest$ac_exeext
  1748. }
  1749. then :
  1750. ac_retval=0
  1751. else case e in #(
  1752. e) printf "%s\n" "$as_me: failed program was:" >&5
  1753. sed 's/^/| /' conftest.$ac_ext >&5
  1754. ac_retval=1 ;;
  1755. esac
  1756. fi
  1757. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1758. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1759. # interfere with the next link command; also delete a directory that is
  1760. # left behind by Apple's compiler. We do this before executing the actions.
  1761. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1762. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1763. as_fn_set_status $ac_retval
  1764. } # ac_fn_c_try_link
  1765. # ac_fn_c_check_func LINENO FUNC VAR
  1766. # ----------------------------------
  1767. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1768. ac_fn_c_check_func ()
  1769. {
  1770. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1772. printf %s "checking for $2... " >&6; }
  1773. if eval test \${$3+y}
  1774. then :
  1775. printf %s "(cached) " >&6
  1776. else case e in #(
  1777. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1778. /* end confdefs.h. */
  1779. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1781. #define $2 innocuous_$2
  1782. /* System header to define __stub macros and hopefully few prototypes,
  1783. which can conflict with char $2 (void); below. */
  1784. #include <limits.h>
  1785. #undef $2
  1786. /* Override any GCC internal prototype to avoid an error.
  1787. Use char because int might match the return type of a GCC
  1788. builtin and then its argument prototype would still apply. */
  1789. #ifdef __cplusplus
  1790. extern "C"
  1791. #endif
  1792. char $2 (void);
  1793. /* The GNU C library defines this for functions which it implements
  1794. to always fail with ENOSYS. Some functions are actually named
  1795. something starting with __ and the normal name is an alias. */
  1796. #if defined __stub_$2 || defined __stub___$2
  1797. choke me
  1798. #endif
  1799. int
  1800. main (void)
  1801. {
  1802. return $2 ();
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_link "$LINENO"
  1808. then :
  1809. eval "$3=yes"
  1810. else case e in #(
  1811. e) eval "$3=no" ;;
  1812. esac
  1813. fi
  1814. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1815. conftest$ac_exeext conftest.$ac_ext ;;
  1816. esac
  1817. fi
  1818. eval ac_res=\$$3
  1819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1820. printf "%s\n" "$ac_res" >&6; }
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. } # ac_fn_c_check_func
  1823. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1824. # -------------------------------------------
  1825. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1826. # variable VAR accordingly.
  1827. ac_fn_c_check_type ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1831. printf %s "checking for $2... " >&6; }
  1832. if eval test \${$3+y}
  1833. then :
  1834. printf %s "(cached) " >&6
  1835. else case e in #(
  1836. e) eval "$3=no"
  1837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1838. /* end confdefs.h. */
  1839. $4
  1840. int
  1841. main (void)
  1842. {
  1843. if (sizeof ($2))
  1844. return 0;
  1845. ;
  1846. return 0;
  1847. }
  1848. _ACEOF
  1849. if ac_fn_c_try_compile "$LINENO"
  1850. then :
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. $4
  1854. int
  1855. main (void)
  1856. {
  1857. if (sizeof (($2)))
  1858. return 0;
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"
  1864. then :
  1865. else case e in #(
  1866. e) eval "$3=yes" ;;
  1867. esac
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1870. fi
  1871. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  1872. esac
  1873. fi
  1874. eval ac_res=\$$3
  1875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1876. printf "%s\n" "$ac_res" >&6; }
  1877. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1878. } # ac_fn_c_check_type
  1879. ac_configure_args_raw=
  1880. for ac_arg
  1881. do
  1882. case $ac_arg in
  1883. *\'*)
  1884. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1885. esac
  1886. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1887. done
  1888. case $ac_configure_args_raw in
  1889. *$as_nl*)
  1890. ac_safe_unquote= ;;
  1891. *)
  1892. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1893. ac_unsafe_a="$ac_unsafe_z#~"
  1894. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1895. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1896. esac
  1897. cat >config.log <<_ACEOF
  1898. This file contains any messages produced by compilers while
  1899. running configure, to aid debugging if configure makes a mistake.
  1900. It was created by PCRE2 $as_me 10.43, which was
  1901. generated by GNU Autoconf 2.72. Invocation command line was
  1902. $ $0$ac_configure_args_raw
  1903. _ACEOF
  1904. exec 5>>config.log
  1905. {
  1906. cat <<_ASUNAME
  1907. ## --------- ##
  1908. ## Platform. ##
  1909. ## --------- ##
  1910. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1911. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1912. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1913. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1914. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1915. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1916. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1917. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1918. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1919. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1920. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1921. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1922. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1923. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1924. _ASUNAME
  1925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1926. for as_dir in $PATH
  1927. do
  1928. IFS=$as_save_IFS
  1929. case $as_dir in #(((
  1930. '') as_dir=./ ;;
  1931. */) ;;
  1932. *) as_dir=$as_dir/ ;;
  1933. esac
  1934. printf "%s\n" "PATH: $as_dir"
  1935. done
  1936. IFS=$as_save_IFS
  1937. } >&5
  1938. cat >&5 <<_ACEOF
  1939. ## ----------- ##
  1940. ## Core tests. ##
  1941. ## ----------- ##
  1942. _ACEOF
  1943. # Keep a trace of the command line.
  1944. # Strip out --no-create and --no-recursion so they do not pile up.
  1945. # Strip out --silent because we don't want to record it for future runs.
  1946. # Also quote any args containing shell meta-characters.
  1947. # Make two passes to allow for proper duplicate-argument suppression.
  1948. ac_configure_args=
  1949. ac_configure_args0=
  1950. ac_configure_args1=
  1951. ac_must_keep_next=false
  1952. for ac_pass in 1 2
  1953. do
  1954. for ac_arg
  1955. do
  1956. case $ac_arg in
  1957. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1958. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1959. | -silent | --silent | --silen | --sile | --sil)
  1960. continue ;;
  1961. *\'*)
  1962. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1963. esac
  1964. case $ac_pass in
  1965. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1966. 2)
  1967. as_fn_append ac_configure_args1 " '$ac_arg'"
  1968. if test $ac_must_keep_next = true; then
  1969. ac_must_keep_next=false # Got value, back to normal.
  1970. else
  1971. case $ac_arg in
  1972. *=* | --config-cache | -C | -disable-* | --disable-* \
  1973. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1974. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1975. | -with-* | --with-* | -without-* | --without-* | --x)
  1976. case "$ac_configure_args0 " in
  1977. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1978. esac
  1979. ;;
  1980. -* ) ac_must_keep_next=true ;;
  1981. esac
  1982. fi
  1983. as_fn_append ac_configure_args " '$ac_arg'"
  1984. ;;
  1985. esac
  1986. done
  1987. done
  1988. { ac_configure_args0=; unset ac_configure_args0;}
  1989. { ac_configure_args1=; unset ac_configure_args1;}
  1990. # When interrupted or exit'd, cleanup temporary files, and complete
  1991. # config.log. We remove comments because anyway the quotes in there
  1992. # would cause problems or look ugly.
  1993. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1994. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1995. trap 'exit_status=$?
  1996. # Sanitize IFS.
  1997. IFS=" "" $as_nl"
  1998. # Save into config.log some information that might help in debugging.
  1999. {
  2000. echo
  2001. printf "%s\n" "## ---------------- ##
  2002. ## Cache variables. ##
  2003. ## ---------------- ##"
  2004. echo
  2005. # The following way of writing the cache mishandles newlines in values,
  2006. (
  2007. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2008. eval ac_val=\$$ac_var
  2009. case $ac_val in #(
  2010. *${as_nl}*)
  2011. case $ac_var in #(
  2012. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2013. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2014. esac
  2015. case $ac_var in #(
  2016. _ | IFS | as_nl) ;; #(
  2017. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2018. *) { eval $ac_var=; unset $ac_var;} ;;
  2019. esac ;;
  2020. esac
  2021. done
  2022. (set) 2>&1 |
  2023. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2024. *${as_nl}ac_space=\ *)
  2025. sed -n \
  2026. "s/'\''/'\''\\\\'\'''\''/g;
  2027. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2028. ;; #(
  2029. *)
  2030. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2031. ;;
  2032. esac |
  2033. sort
  2034. )
  2035. echo
  2036. printf "%s\n" "## ----------------- ##
  2037. ## Output variables. ##
  2038. ## ----------------- ##"
  2039. echo
  2040. for ac_var in $ac_subst_vars
  2041. do
  2042. eval ac_val=\$$ac_var
  2043. case $ac_val in
  2044. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2045. esac
  2046. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2047. done | sort
  2048. echo
  2049. if test -n "$ac_subst_files"; then
  2050. printf "%s\n" "## ------------------- ##
  2051. ## File substitutions. ##
  2052. ## ------------------- ##"
  2053. echo
  2054. for ac_var in $ac_subst_files
  2055. do
  2056. eval ac_val=\$$ac_var
  2057. case $ac_val in
  2058. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2059. esac
  2060. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2061. done | sort
  2062. echo
  2063. fi
  2064. if test -s confdefs.h; then
  2065. printf "%s\n" "## ----------- ##
  2066. ## confdefs.h. ##
  2067. ## ----------- ##"
  2068. echo
  2069. cat confdefs.h
  2070. echo
  2071. fi
  2072. test "$ac_signal" != 0 &&
  2073. printf "%s\n" "$as_me: caught signal $ac_signal"
  2074. printf "%s\n" "$as_me: exit $exit_status"
  2075. } >&5
  2076. rm -f core *.core core.conftest.* &&
  2077. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2078. exit $exit_status
  2079. ' 0
  2080. for ac_signal in 1 2 13 15; do
  2081. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2082. done
  2083. ac_signal=0
  2084. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2085. rm -f -r conftest* confdefs.h
  2086. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2087. # Predefined preprocessor variables.
  2088. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2089. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2090. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2091. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2092. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2093. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2094. # Let the site file select an alternate cache file if it wants to.
  2095. # Prefer an explicitly selected file to automatically selected ones.
  2096. if test -n "$CONFIG_SITE"; then
  2097. ac_site_files="$CONFIG_SITE"
  2098. elif test "x$prefix" != xNONE; then
  2099. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2100. else
  2101. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2102. fi
  2103. for ac_site_file in $ac_site_files
  2104. do
  2105. case $ac_site_file in #(
  2106. */*) :
  2107. ;; #(
  2108. *) :
  2109. ac_site_file=./$ac_site_file ;;
  2110. esac
  2111. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2113. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2114. sed 's/^/| /' "$ac_site_file" >&5
  2115. . "$ac_site_file" \
  2116. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2117. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2118. as_fn_error $? "failed to load site script $ac_site_file
  2119. See 'config.log' for more details" "$LINENO" 5; }
  2120. fi
  2121. done
  2122. if test -r "$cache_file"; then
  2123. # Some versions of bash will fail to source /dev/null (special files
  2124. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2125. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2127. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2128. case $cache_file in
  2129. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2130. *) . "./$cache_file";;
  2131. esac
  2132. fi
  2133. else
  2134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2135. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2136. >$cache_file
  2137. fi
  2138. # Test code for whether the C compiler supports C89 (global declarations)
  2139. ac_c_conftest_c89_globals='
  2140. /* Does the compiler advertise C89 conformance?
  2141. Do not test the value of __STDC__, because some compilers set it to 0
  2142. while being otherwise adequately conformant. */
  2143. #if !defined __STDC__
  2144. # error "Compiler does not advertise C89 conformance"
  2145. #endif
  2146. #include <stddef.h>
  2147. #include <stdarg.h>
  2148. struct stat;
  2149. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2150. struct buf { int x; };
  2151. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2152. static char *e (char **p, int i)
  2153. {
  2154. return p[i];
  2155. }
  2156. static char *f (char * (*g) (char **, int), char **p, ...)
  2157. {
  2158. char *s;
  2159. va_list v;
  2160. va_start (v,p);
  2161. s = g (p, va_arg (v,int));
  2162. va_end (v);
  2163. return s;
  2164. }
  2165. /* C89 style stringification. */
  2166. #define noexpand_stringify(a) #a
  2167. const char *stringified = noexpand_stringify(arbitrary+token=sequence);
  2168. /* C89 style token pasting. Exercises some of the corner cases that
  2169. e.g. old MSVC gets wrong, but not very hard. */
  2170. #define noexpand_concat(a,b) a##b
  2171. #define expand_concat(a,b) noexpand_concat(a,b)
  2172. extern int vA;
  2173. extern int vbee;
  2174. #define aye A
  2175. #define bee B
  2176. int *pvA = &expand_concat(v,aye);
  2177. int *pvbee = &noexpand_concat(v,bee);
  2178. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2179. function prototypes and stuff, but not \xHH hex character constants.
  2180. These do not provoke an error unfortunately, instead are silently treated
  2181. as an "x". The following induces an error, until -std is added to get
  2182. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2183. array size at least. It is necessary to write \x00 == 0 to get something
  2184. that is true only with -std. */
  2185. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2186. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2187. inside strings and character constants. */
  2188. #define FOO(x) '\''x'\''
  2189. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2190. int test (int i, double x);
  2191. struct s1 {int (*f) (int a);};
  2192. struct s2 {int (*f) (double a);};
  2193. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2194. int, int);'
  2195. # Test code for whether the C compiler supports C89 (body of main).
  2196. ac_c_conftest_c89_main='
  2197. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2198. '
  2199. # Test code for whether the C compiler supports C99 (global declarations)
  2200. ac_c_conftest_c99_globals='
  2201. /* Does the compiler advertise C99 conformance? */
  2202. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2203. # error "Compiler does not advertise C99 conformance"
  2204. #endif
  2205. // See if C++-style comments work.
  2206. #include <stdbool.h>
  2207. extern int puts (const char *);
  2208. extern int printf (const char *, ...);
  2209. extern int dprintf (int, const char *, ...);
  2210. extern void *malloc (size_t);
  2211. extern void free (void *);
  2212. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2213. // dprintf is used instead of fprintf to avoid needing to declare
  2214. // FILE and stderr.
  2215. #define debug(...) dprintf (2, __VA_ARGS__)
  2216. #define showlist(...) puts (#__VA_ARGS__)
  2217. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2218. static void
  2219. test_varargs_macros (void)
  2220. {
  2221. int x = 1234;
  2222. int y = 5678;
  2223. debug ("Flag");
  2224. debug ("X = %d\n", x);
  2225. showlist (The first, second, and third items.);
  2226. report (x>y, "x is %d but y is %d", x, y);
  2227. }
  2228. // Check long long types.
  2229. #define BIG64 18446744073709551615ull
  2230. #define BIG32 4294967295ul
  2231. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2232. #if !BIG_OK
  2233. #error "your preprocessor is broken"
  2234. #endif
  2235. #if BIG_OK
  2236. #else
  2237. #error "your preprocessor is broken"
  2238. #endif
  2239. static long long int bignum = -9223372036854775807LL;
  2240. static unsigned long long int ubignum = BIG64;
  2241. struct incomplete_array
  2242. {
  2243. int datasize;
  2244. double data[];
  2245. };
  2246. struct named_init {
  2247. int number;
  2248. const wchar_t *name;
  2249. double average;
  2250. };
  2251. typedef const char *ccp;
  2252. static inline int
  2253. test_restrict (ccp restrict text)
  2254. {
  2255. // Iterate through items via the restricted pointer.
  2256. // Also check for declarations in for loops.
  2257. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2258. continue;
  2259. return 0;
  2260. }
  2261. // Check varargs and va_copy.
  2262. static bool
  2263. test_varargs (const char *format, ...)
  2264. {
  2265. va_list args;
  2266. va_start (args, format);
  2267. va_list args_copy;
  2268. va_copy (args_copy, args);
  2269. const char *str = "";
  2270. int number = 0;
  2271. float fnumber = 0;
  2272. while (*format)
  2273. {
  2274. switch (*format++)
  2275. {
  2276. case '\''s'\'': // string
  2277. str = va_arg (args_copy, const char *);
  2278. break;
  2279. case '\''d'\'': // int
  2280. number = va_arg (args_copy, int);
  2281. break;
  2282. case '\''f'\'': // float
  2283. fnumber = va_arg (args_copy, double);
  2284. break;
  2285. default:
  2286. break;
  2287. }
  2288. }
  2289. va_end (args_copy);
  2290. va_end (args);
  2291. return *str && number && fnumber;
  2292. }
  2293. '
  2294. # Test code for whether the C compiler supports C99 (body of main).
  2295. ac_c_conftest_c99_main='
  2296. // Check bool.
  2297. _Bool success = false;
  2298. success |= (argc != 0);
  2299. // Check restrict.
  2300. if (test_restrict ("String literal") == 0)
  2301. success = true;
  2302. char *restrict newvar = "Another string";
  2303. // Check varargs.
  2304. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2305. test_varargs_macros ();
  2306. // Check flexible array members.
  2307. struct incomplete_array *ia =
  2308. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2309. ia->datasize = 10;
  2310. for (int i = 0; i < ia->datasize; ++i)
  2311. ia->data[i] = i * 1.234;
  2312. // Work around memory leak warnings.
  2313. free (ia);
  2314. // Check named initializers.
  2315. struct named_init ni = {
  2316. .number = 34,
  2317. .name = L"Test wide string",
  2318. .average = 543.34343,
  2319. };
  2320. ni.number = 58;
  2321. int dynamic_array[ni.number];
  2322. dynamic_array[0] = argv[0][0];
  2323. dynamic_array[ni.number - 1] = 543;
  2324. // work around unused variable warnings
  2325. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2326. || dynamic_array[ni.number - 1] != 543);
  2327. '
  2328. # Test code for whether the C compiler supports C11 (global declarations)
  2329. ac_c_conftest_c11_globals='
  2330. /* Does the compiler advertise C11 conformance? */
  2331. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2332. # error "Compiler does not advertise C11 conformance"
  2333. #endif
  2334. // Check _Alignas.
  2335. char _Alignas (double) aligned_as_double;
  2336. char _Alignas (0) no_special_alignment;
  2337. extern char aligned_as_int;
  2338. char _Alignas (0) _Alignas (int) aligned_as_int;
  2339. // Check _Alignof.
  2340. enum
  2341. {
  2342. int_alignment = _Alignof (int),
  2343. int_array_alignment = _Alignof (int[100]),
  2344. char_alignment = _Alignof (char)
  2345. };
  2346. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2347. // Check _Noreturn.
  2348. int _Noreturn does_not_return (void) { for (;;) continue; }
  2349. // Check _Static_assert.
  2350. struct test_static_assert
  2351. {
  2352. int x;
  2353. _Static_assert (sizeof (int) <= sizeof (long int),
  2354. "_Static_assert does not work in struct");
  2355. long int y;
  2356. };
  2357. // Check UTF-8 literals.
  2358. #define u8 syntax error!
  2359. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2360. // Check duplicate typedefs.
  2361. typedef long *long_ptr;
  2362. typedef long int *long_ptr;
  2363. typedef long_ptr long_ptr;
  2364. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2365. struct anonymous
  2366. {
  2367. union {
  2368. struct { int i; int j; };
  2369. struct { int k; long int l; } w;
  2370. };
  2371. int m;
  2372. } v1;
  2373. '
  2374. # Test code for whether the C compiler supports C11 (body of main).
  2375. ac_c_conftest_c11_main='
  2376. _Static_assert ((offsetof (struct anonymous, i)
  2377. == offsetof (struct anonymous, w.k)),
  2378. "Anonymous union alignment botch");
  2379. v1.i = 2;
  2380. v1.w.k = 5;
  2381. ok |= v1.i != 5;
  2382. '
  2383. # Test code for whether the C compiler supports C11 (complete).
  2384. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2385. ${ac_c_conftest_c99_globals}
  2386. ${ac_c_conftest_c11_globals}
  2387. int
  2388. main (int argc, char **argv)
  2389. {
  2390. int ok = 0;
  2391. ${ac_c_conftest_c89_main}
  2392. ${ac_c_conftest_c99_main}
  2393. ${ac_c_conftest_c11_main}
  2394. return ok;
  2395. }
  2396. "
  2397. # Test code for whether the C compiler supports C99 (complete).
  2398. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2399. ${ac_c_conftest_c99_globals}
  2400. int
  2401. main (int argc, char **argv)
  2402. {
  2403. int ok = 0;
  2404. ${ac_c_conftest_c89_main}
  2405. ${ac_c_conftest_c99_main}
  2406. return ok;
  2407. }
  2408. "
  2409. # Test code for whether the C compiler supports C89 (complete).
  2410. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2411. int
  2412. main (int argc, char **argv)
  2413. {
  2414. int ok = 0;
  2415. ${ac_c_conftest_c89_main}
  2416. return ok;
  2417. }
  2418. "
  2419. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2420. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2421. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2422. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2423. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2424. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2425. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2426. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2427. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2428. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2429. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2430. # Auxiliary files required by this configure script.
  2431. ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
  2432. # Locations in which to look for auxiliary files.
  2433. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  2434. # Search for a directory containing all of the required auxiliary files,
  2435. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2436. # If we don't find one directory that contains all the files we need,
  2437. # we report the set of missing files from the *first* directory in
  2438. # $ac_aux_dir_candidates and give up.
  2439. ac_missing_aux_files=""
  2440. ac_first_candidate=:
  2441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2443. as_found=false
  2444. for as_dir in $ac_aux_dir_candidates
  2445. do
  2446. IFS=$as_save_IFS
  2447. case $as_dir in #(((
  2448. '') as_dir=./ ;;
  2449. */) ;;
  2450. *) as_dir=$as_dir/ ;;
  2451. esac
  2452. as_found=:
  2453. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2454. ac_aux_dir_found=yes
  2455. ac_install_sh=
  2456. for ac_aux in $ac_aux_files
  2457. do
  2458. # As a special case, if "install-sh" is required, that requirement
  2459. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2460. # and $ac_install_sh is set appropriately for whichever one is found.
  2461. if test x"$ac_aux" = x"install-sh"
  2462. then
  2463. if test -f "${as_dir}install-sh"; then
  2464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2465. ac_install_sh="${as_dir}install-sh -c"
  2466. elif test -f "${as_dir}install.sh"; then
  2467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2468. ac_install_sh="${as_dir}install.sh -c"
  2469. elif test -f "${as_dir}shtool"; then
  2470. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2471. ac_install_sh="${as_dir}shtool install -c"
  2472. else
  2473. ac_aux_dir_found=no
  2474. if $ac_first_candidate; then
  2475. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2476. else
  2477. break
  2478. fi
  2479. fi
  2480. else
  2481. if test -f "${as_dir}${ac_aux}"; then
  2482. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2483. else
  2484. ac_aux_dir_found=no
  2485. if $ac_first_candidate; then
  2486. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2487. else
  2488. break
  2489. fi
  2490. fi
  2491. fi
  2492. done
  2493. if test "$ac_aux_dir_found" = yes; then
  2494. ac_aux_dir="$as_dir"
  2495. break
  2496. fi
  2497. ac_first_candidate=false
  2498. as_found=false
  2499. done
  2500. IFS=$as_save_IFS
  2501. if $as_found
  2502. then :
  2503. else case e in #(
  2504. e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
  2505. esac
  2506. fi
  2507. # These three variables are undocumented and unsupported,
  2508. # and are intended to be withdrawn in a future Autoconf release.
  2509. # They can cause serious problems if a builder's source tree is in a directory
  2510. # whose full name contains unusual characters.
  2511. if test -f "${ac_aux_dir}config.guess"; then
  2512. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2513. fi
  2514. if test -f "${ac_aux_dir}config.sub"; then
  2515. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2516. fi
  2517. if test -f "$ac_aux_dir/configure"; then
  2518. ac_configure="$SHELL ${ac_aux_dir}configure"
  2519. fi
  2520. # Check that the precious variables saved in the cache have kept the same
  2521. # value.
  2522. ac_cache_corrupted=false
  2523. for ac_var in $ac_precious_vars; do
  2524. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2525. eval ac_new_set=\$ac_env_${ac_var}_set
  2526. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2527. eval ac_new_val=\$ac_env_${ac_var}_value
  2528. case $ac_old_set,$ac_new_set in
  2529. set,)
  2530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
  2531. printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
  2532. ac_cache_corrupted=: ;;
  2533. ,set)
  2534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
  2535. printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
  2536. ac_cache_corrupted=: ;;
  2537. ,);;
  2538. *)
  2539. if test "x$ac_old_val" != "x$ac_new_val"; then
  2540. # differences in whitespace do not lead to failure.
  2541. ac_old_val_w=`echo x $ac_old_val`
  2542. ac_new_val_w=`echo x $ac_new_val`
  2543. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
  2545. printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
  2546. ac_cache_corrupted=:
  2547. else
  2548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
  2549. printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
  2550. eval $ac_var=\$ac_old_val
  2551. fi
  2552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
  2553. printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
  2554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
  2555. printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
  2556. fi;;
  2557. esac
  2558. # Pass precious variables to config.status.
  2559. if test "$ac_new_set" = set; then
  2560. case $ac_new_val in
  2561. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2562. *) ac_arg=$ac_var=$ac_new_val ;;
  2563. esac
  2564. case " $ac_configure_args " in
  2565. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2566. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2567. esac
  2568. fi
  2569. done
  2570. if $ac_cache_corrupted; then
  2571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  2572. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  2573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2574. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2575. as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
  2576. and start over" "$LINENO" 5
  2577. fi
  2578. ## -------------------- ##
  2579. ## Main body of script. ##
  2580. ## -------------------- ##
  2581. ac_ext=c
  2582. ac_cpp='$CPP $CPPFLAGS'
  2583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2586. am__api_version='1.16'
  2587. # Find a good install program. We prefer a C program (faster),
  2588. # so one script is as good as another. But avoid the broken or
  2589. # incompatible versions:
  2590. # SysV /etc/install, /usr/sbin/install
  2591. # SunOS /usr/etc/install
  2592. # IRIX /sbin/install
  2593. # AIX /bin/install
  2594. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2595. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2596. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2597. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2598. # OS/2's system install, which has a completely different semantic
  2599. # ./install, which can be erroneously created by make from ./install.sh.
  2600. # Reject install programs that cannot install multiple files.
  2601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2602. printf %s "checking for a BSD-compatible install... " >&6; }
  2603. if test -z "$INSTALL"; then
  2604. if test ${ac_cv_path_install+y}
  2605. then :
  2606. printf %s "(cached) " >&6
  2607. else case e in #(
  2608. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2609. for as_dir in $PATH
  2610. do
  2611. IFS=$as_save_IFS
  2612. case $as_dir in #(((
  2613. '') as_dir=./ ;;
  2614. */) ;;
  2615. *) as_dir=$as_dir/ ;;
  2616. esac
  2617. # Account for fact that we put trailing slashes in our PATH walk.
  2618. case $as_dir in #((
  2619. ./ | /[cC]/* | \
  2620. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2621. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2622. /usr/ucb/* ) ;;
  2623. *)
  2624. # OSF1 and SCO ODT 3.0 have their own names for install.
  2625. # Don't use installbsd from OSF since it installs stuff as root
  2626. # by default.
  2627. for ac_prog in ginstall scoinst install; do
  2628. for ac_exec_ext in '' $ac_executable_extensions; do
  2629. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2630. if test $ac_prog = install &&
  2631. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2632. # AIX install. It has an incompatible calling convention.
  2633. :
  2634. elif test $ac_prog = install &&
  2635. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2636. # program-specific install script used by HP pwplus--don't use.
  2637. :
  2638. else
  2639. rm -rf conftest.one conftest.two conftest.dir
  2640. echo one > conftest.one
  2641. echo two > conftest.two
  2642. mkdir conftest.dir
  2643. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2644. test -s conftest.one && test -s conftest.two &&
  2645. test -s conftest.dir/conftest.one &&
  2646. test -s conftest.dir/conftest.two
  2647. then
  2648. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2649. break 3
  2650. fi
  2651. fi
  2652. fi
  2653. done
  2654. done
  2655. ;;
  2656. esac
  2657. done
  2658. IFS=$as_save_IFS
  2659. rm -rf conftest.one conftest.two conftest.dir
  2660. ;;
  2661. esac
  2662. fi
  2663. if test ${ac_cv_path_install+y}; then
  2664. INSTALL=$ac_cv_path_install
  2665. else
  2666. # As a last resort, use the slow shell script. Don't cache a
  2667. # value for INSTALL within a source directory, because that will
  2668. # break other packages using the cache if that directory is
  2669. # removed, or if the value is a relative name.
  2670. INSTALL=$ac_install_sh
  2671. fi
  2672. fi
  2673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2674. printf "%s\n" "$INSTALL" >&6; }
  2675. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2676. # It thinks the first close brace ends the variable substitution.
  2677. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2678. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2679. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2681. printf %s "checking whether build environment is sane... " >&6; }
  2682. # Reject unsafe characters in $srcdir or the absolute working directory
  2683. # name. Accept space and tab only in the latter.
  2684. am_lf='
  2685. '
  2686. case `pwd` in
  2687. *[\\\"\#\$\&\'\`$am_lf]*)
  2688. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2689. esac
  2690. case $srcdir in
  2691. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2692. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2693. esac
  2694. # Do 'set' in a subshell so we don't clobber the current shell's
  2695. # arguments. Must try -L first in case configure is actually a
  2696. # symlink; some systems play weird games with the mod time of symlinks
  2697. # (eg FreeBSD returns the mod time of the symlink's containing
  2698. # directory).
  2699. if (
  2700. am_has_slept=no
  2701. for am_try in 1 2; do
  2702. echo "timestamp, slept: $am_has_slept" > conftest.file
  2703. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2704. if test "$*" = "X"; then
  2705. # -L didn't work.
  2706. set X `ls -t "$srcdir/configure" conftest.file`
  2707. fi
  2708. if test "$*" != "X $srcdir/configure conftest.file" \
  2709. && test "$*" != "X conftest.file $srcdir/configure"; then
  2710. # If neither matched, then we have a broken ls. This can happen
  2711. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2712. # broken ls alias from the environment. This has actually
  2713. # happened. Such a system could not be considered "sane".
  2714. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2715. alias in your environment" "$LINENO" 5
  2716. fi
  2717. if test "$2" = conftest.file || test $am_try -eq 2; then
  2718. break
  2719. fi
  2720. # Just in case.
  2721. sleep 1
  2722. am_has_slept=yes
  2723. done
  2724. test "$2" = conftest.file
  2725. )
  2726. then
  2727. # Ok.
  2728. :
  2729. else
  2730. as_fn_error $? "newly created file is older than distributed files!
  2731. Check your system clock" "$LINENO" 5
  2732. fi
  2733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2734. printf "%s\n" "yes" >&6; }
  2735. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2736. # generated files are strictly newer.
  2737. am_sleep_pid=
  2738. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2739. ( sleep 1 ) &
  2740. am_sleep_pid=$!
  2741. fi
  2742. rm -f conftest.file
  2743. test "$program_prefix" != NONE &&
  2744. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2745. # Use a double $ so make ignores it.
  2746. test "$program_suffix" != NONE &&
  2747. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2748. # Double any \ or $.
  2749. # By default was 's,x,x', remove it if useless.
  2750. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2751. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2752. # Expand $ac_aux_dir to an absolute path.
  2753. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2754. if test x"${MISSING+set}" != xset; then
  2755. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2756. fi
  2757. # Use eval to expand $SHELL
  2758. if eval "$MISSING --is-lightweight"; then
  2759. am_missing_run="$MISSING "
  2760. else
  2761. am_missing_run=
  2762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2763. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2764. fi
  2765. if test x"${install_sh+set}" != xset; then
  2766. case $am_aux_dir in
  2767. *\ * | *\ *)
  2768. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2769. *)
  2770. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2771. esac
  2772. fi
  2773. # Installed binaries are usually stripped using 'strip' when the user
  2774. # run "make install-strip". However 'strip' might not be the right
  2775. # tool to use in cross-compilation environments, therefore Automake
  2776. # will honor the 'STRIP' environment variable to overrule this program.
  2777. if test "$cross_compiling" != no; then
  2778. if test -n "$ac_tool_prefix"; then
  2779. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2780. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2782. printf %s "checking for $ac_word... " >&6; }
  2783. if test ${ac_cv_prog_STRIP+y}
  2784. then :
  2785. printf %s "(cached) " >&6
  2786. else case e in #(
  2787. e) if test -n "$STRIP"; then
  2788. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2789. else
  2790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2791. for as_dir in $PATH
  2792. do
  2793. IFS=$as_save_IFS
  2794. case $as_dir in #(((
  2795. '') as_dir=./ ;;
  2796. */) ;;
  2797. *) as_dir=$as_dir/ ;;
  2798. esac
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2801. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2802. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. IFS=$as_save_IFS
  2808. fi ;;
  2809. esac
  2810. fi
  2811. STRIP=$ac_cv_prog_STRIP
  2812. if test -n "$STRIP"; then
  2813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2814. printf "%s\n" "$STRIP" >&6; }
  2815. else
  2816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2817. printf "%s\n" "no" >&6; }
  2818. fi
  2819. fi
  2820. if test -z "$ac_cv_prog_STRIP"; then
  2821. ac_ct_STRIP=$STRIP
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2825. printf %s "checking for $ac_word... " >&6; }
  2826. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2827. then :
  2828. printf %s "(cached) " >&6
  2829. else case e in #(
  2830. e) if test -n "$ac_ct_STRIP"; then
  2831. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2832. else
  2833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2834. for as_dir in $PATH
  2835. do
  2836. IFS=$as_save_IFS
  2837. case $as_dir in #(((
  2838. '') as_dir=./ ;;
  2839. */) ;;
  2840. *) as_dir=$as_dir/ ;;
  2841. esac
  2842. for ac_exec_ext in '' $ac_executable_extensions; do
  2843. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2844. ac_cv_prog_ac_ct_STRIP="strip"
  2845. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2846. break 2
  2847. fi
  2848. done
  2849. done
  2850. IFS=$as_save_IFS
  2851. fi ;;
  2852. esac
  2853. fi
  2854. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2855. if test -n "$ac_ct_STRIP"; then
  2856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2857. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2858. else
  2859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. printf "%s\n" "no" >&6; }
  2861. fi
  2862. if test "x$ac_ct_STRIP" = x; then
  2863. STRIP=":"
  2864. else
  2865. case $cross_compiling:$ac_tool_warned in
  2866. yes:)
  2867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2868. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2869. ac_tool_warned=yes ;;
  2870. esac
  2871. STRIP=$ac_ct_STRIP
  2872. fi
  2873. else
  2874. STRIP="$ac_cv_prog_STRIP"
  2875. fi
  2876. fi
  2877. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2879. printf %s "checking for a race-free mkdir -p... " >&6; }
  2880. if test -z "$MKDIR_P"; then
  2881. if test ${ac_cv_path_mkdir+y}
  2882. then :
  2883. printf %s "(cached) " >&6
  2884. else case e in #(
  2885. e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2886. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2887. do
  2888. IFS=$as_save_IFS
  2889. case $as_dir in #(((
  2890. '') as_dir=./ ;;
  2891. */) ;;
  2892. *) as_dir=$as_dir/ ;;
  2893. esac
  2894. for ac_prog in mkdir gmkdir; do
  2895. for ac_exec_ext in '' $ac_executable_extensions; do
  2896. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2897. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2898. 'mkdir ('*'coreutils) '* | \
  2899. *'BusyBox '* | \
  2900. 'mkdir (fileutils) '4.1*)
  2901. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2902. break 3;;
  2903. esac
  2904. done
  2905. done
  2906. done
  2907. IFS=$as_save_IFS
  2908. ;;
  2909. esac
  2910. fi
  2911. test -d ./--version && rmdir ./--version
  2912. if test ${ac_cv_path_mkdir+y}; then
  2913. MKDIR_P="$ac_cv_path_mkdir -p"
  2914. else
  2915. # As a last resort, use plain mkdir -p,
  2916. # in the hope it doesn't have the bugs of ancient mkdir.
  2917. MKDIR_P='mkdir -p'
  2918. fi
  2919. fi
  2920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2921. printf "%s\n" "$MKDIR_P" >&6; }
  2922. for ac_prog in gawk mawk nawk awk
  2923. do
  2924. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2925. set dummy $ac_prog; ac_word=$2
  2926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2927. printf %s "checking for $ac_word... " >&6; }
  2928. if test ${ac_cv_prog_AWK+y}
  2929. then :
  2930. printf %s "(cached) " >&6
  2931. else case e in #(
  2932. e) if test -n "$AWK"; then
  2933. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2934. else
  2935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2936. for as_dir in $PATH
  2937. do
  2938. IFS=$as_save_IFS
  2939. case $as_dir in #(((
  2940. '') as_dir=./ ;;
  2941. */) ;;
  2942. *) as_dir=$as_dir/ ;;
  2943. esac
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2946. ac_cv_prog_AWK="$ac_prog"
  2947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2948. break 2
  2949. fi
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. fi ;;
  2954. esac
  2955. fi
  2956. AWK=$ac_cv_prog_AWK
  2957. if test -n "$AWK"; then
  2958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2959. printf "%s\n" "$AWK" >&6; }
  2960. else
  2961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. printf "%s\n" "no" >&6; }
  2963. fi
  2964. test -n "$AWK" && break
  2965. done
  2966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2967. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2968. set x ${MAKE-make}
  2969. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2970. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2971. then :
  2972. printf %s "(cached) " >&6
  2973. else case e in #(
  2974. e) cat >conftest.make <<\_ACEOF
  2975. SHELL = /bin/sh
  2976. all:
  2977. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2978. _ACEOF
  2979. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2980. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2981. *@@@%%%=?*=@@@%%%*)
  2982. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2983. *)
  2984. eval ac_cv_prog_make_${ac_make}_set=no;;
  2985. esac
  2986. rm -f conftest.make ;;
  2987. esac
  2988. fi
  2989. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2991. printf "%s\n" "yes" >&6; }
  2992. SET_MAKE=
  2993. else
  2994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2995. printf "%s\n" "no" >&6; }
  2996. SET_MAKE="MAKE=${MAKE-make}"
  2997. fi
  2998. rm -rf .tst 2>/dev/null
  2999. mkdir .tst 2>/dev/null
  3000. if test -d .tst; then
  3001. am__leading_dot=.
  3002. else
  3003. am__leading_dot=_
  3004. fi
  3005. rmdir .tst 2>/dev/null
  3006. # Check whether --enable-silent-rules was given.
  3007. if test ${enable_silent_rules+y}
  3008. then :
  3009. enableval=$enable_silent_rules;
  3010. fi
  3011. case $enable_silent_rules in # (((
  3012. yes) AM_DEFAULT_VERBOSITY=0;;
  3013. no) AM_DEFAULT_VERBOSITY=1;;
  3014. *) AM_DEFAULT_VERBOSITY=1;;
  3015. esac
  3016. am_make=${MAKE-make}
  3017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3018. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3019. if test ${am_cv_make_support_nested_variables+y}
  3020. then :
  3021. printf %s "(cached) " >&6
  3022. else case e in #(
  3023. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3024. BAR0=false
  3025. BAR1=true
  3026. V=1
  3027. am__doit:
  3028. @$(TRUE)
  3029. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3030. am_cv_make_support_nested_variables=yes
  3031. else
  3032. am_cv_make_support_nested_variables=no
  3033. fi ;;
  3034. esac
  3035. fi
  3036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3037. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3038. if test $am_cv_make_support_nested_variables = yes; then
  3039. AM_V='$(V)'
  3040. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3041. else
  3042. AM_V=$AM_DEFAULT_VERBOSITY
  3043. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3044. fi
  3045. AM_BACKSLASH='\'
  3046. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3047. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3048. # is not polluted with repeated "-I."
  3049. am__isrc=' -I$(srcdir)'
  3050. # test to see if srcdir already configured
  3051. if test -f $srcdir/config.status; then
  3052. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3053. fi
  3054. fi
  3055. # test whether we have cygpath
  3056. if test -z "$CYGPATH_W"; then
  3057. if (cygpath --version) >/dev/null 2>/dev/null; then
  3058. CYGPATH_W='cygpath -w'
  3059. else
  3060. CYGPATH_W=echo
  3061. fi
  3062. fi
  3063. # Define the identity of the package.
  3064. PACKAGE='pcre2'
  3065. VERSION='10.43'
  3066. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3067. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3068. # Some tools Automake needs.
  3069. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3070. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3071. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3072. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3073. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3074. # For better backward compatibility. To be removed once Automake 1.9.x
  3075. # dies out for good. For more background, see:
  3076. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3077. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3078. mkdir_p='$(MKDIR_P)'
  3079. # We need awk for the "check" target (and possibly the TAP driver). The
  3080. # system "awk" is bad on some platforms.
  3081. # Always define AMTAR for backward compatibility. Yes, it's still used
  3082. # in the wild :-( We should find a proper way to deprecate it ...
  3083. AMTAR='$${TAR-tar}'
  3084. # We'll loop over all known methods to create a tar archive until one works.
  3085. _am_tools='gnutar pax cpio none'
  3086. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3087. # Variables for tags utilities; see am/tags.am
  3088. if test -z "$CTAGS"; then
  3089. CTAGS=ctags
  3090. fi
  3091. if test -z "$ETAGS"; then
  3092. ETAGS=etags
  3093. fi
  3094. if test -z "$CSCOPE"; then
  3095. CSCOPE=cscope
  3096. fi
  3097. # POSIX will say in a future version that running "rm -f" with no argument
  3098. # is OK; and we want to be able to make that assumption in our Makefile
  3099. # recipes. So use an aggressive probe to check that the usage we want is
  3100. # actually supported "in the wild" to an acceptable degree.
  3101. # See automake bug#10828.
  3102. # To make any issue more visible, cause the running configure to be aborted
  3103. # by default if the 'rm' program in use doesn't match our expectations; the
  3104. # user can still override this though.
  3105. if rm -f && rm -fr && rm -rf; then : OK; else
  3106. cat >&2 <<'END'
  3107. Oops!
  3108. Your 'rm' program seems unable to run without file operands specified
  3109. on the command line, even when the '-f' option is present. This is contrary
  3110. to the behaviour of most rm programs out there, and not conforming with
  3111. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3112. Please tell [email protected] about your system, including the value
  3113. of your $PATH and any error possibly output before this message. This
  3114. can help us improve future automake versions.
  3115. END
  3116. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3117. echo 'Configuration will proceed anyway, since you have set the' >&2
  3118. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3119. echo >&2
  3120. else
  3121. cat >&2 <<'END'
  3122. Aborting the configuration process, to ensure you take notice of the issue.
  3123. You can download and install GNU coreutils to get an 'rm' implementation
  3124. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3125. If you want to complete the configuration process using your problematic
  3126. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3127. to "yes", and re-run configure.
  3128. END
  3129. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3130. fi
  3131. fi
  3132. # Check whether --enable-silent-rules was given.
  3133. if test ${enable_silent_rules+y}
  3134. then :
  3135. enableval=$enable_silent_rules;
  3136. fi
  3137. case $enable_silent_rules in # (((
  3138. yes) AM_DEFAULT_VERBOSITY=0;;
  3139. no) AM_DEFAULT_VERBOSITY=1;;
  3140. *) AM_DEFAULT_VERBOSITY=0;;
  3141. esac
  3142. am_make=${MAKE-make}
  3143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3144. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3145. if test ${am_cv_make_support_nested_variables+y}
  3146. then :
  3147. printf %s "(cached) " >&6
  3148. else case e in #(
  3149. e) if printf "%s\n" 'TRUE=$(BAR$(V))
  3150. BAR0=false
  3151. BAR1=true
  3152. V=1
  3153. am__doit:
  3154. @$(TRUE)
  3155. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3156. am_cv_make_support_nested_variables=yes
  3157. else
  3158. am_cv_make_support_nested_variables=no
  3159. fi ;;
  3160. esac
  3161. fi
  3162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3163. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3164. if test $am_cv_make_support_nested_variables = yes; then
  3165. AM_V='$(V)'
  3166. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3167. else
  3168. AM_V=$AM_DEFAULT_VERBOSITY
  3169. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3170. fi
  3171. AM_BACKSLASH='\'
  3172. ac_config_headers="$ac_config_headers src/config.h"
  3173. # This was added at the suggestion of libtoolize (03-Jan-10)
  3174. # The default CFLAGS in Autoconf are "-g -O2" for gcc and just "-g" for any
  3175. # other compiler. There doesn't seem to be a standard way of getting rid of the
  3176. # -g (which I don't think is needed for a production library). This fudge seems
  3177. # to achieve the necessary. First, we remember the externally set values of
  3178. # CFLAGS. Then call the AC_PROG_CC macro to find the compiler - if CFLAGS is
  3179. # not set, it will be set to Autoconf's defaults. Afterwards, if the original
  3180. # values were not set, remove the -g from the Autoconf defaults.
  3181. remember_set_CFLAGS="$CFLAGS"
  3182. ac_ext=c
  3183. ac_cpp='$CPP $CPPFLAGS'
  3184. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3185. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3186. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3187. if test -n "$ac_tool_prefix"; then
  3188. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3189. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3191. printf %s "checking for $ac_word... " >&6; }
  3192. if test ${ac_cv_prog_CC+y}
  3193. then :
  3194. printf %s "(cached) " >&6
  3195. else case e in #(
  3196. e) if test -n "$CC"; then
  3197. ac_cv_prog_CC="$CC" # Let the user override the test.
  3198. else
  3199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3200. for as_dir in $PATH
  3201. do
  3202. IFS=$as_save_IFS
  3203. case $as_dir in #(((
  3204. '') as_dir=./ ;;
  3205. */) ;;
  3206. *) as_dir=$as_dir/ ;;
  3207. esac
  3208. for ac_exec_ext in '' $ac_executable_extensions; do
  3209. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3210. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3211. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3212. break 2
  3213. fi
  3214. done
  3215. done
  3216. IFS=$as_save_IFS
  3217. fi ;;
  3218. esac
  3219. fi
  3220. CC=$ac_cv_prog_CC
  3221. if test -n "$CC"; then
  3222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3223. printf "%s\n" "$CC" >&6; }
  3224. else
  3225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3226. printf "%s\n" "no" >&6; }
  3227. fi
  3228. fi
  3229. if test -z "$ac_cv_prog_CC"; then
  3230. ac_ct_CC=$CC
  3231. # Extract the first word of "gcc", so it can be a program name with args.
  3232. set dummy gcc; ac_word=$2
  3233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3234. printf %s "checking for $ac_word... " >&6; }
  3235. if test ${ac_cv_prog_ac_ct_CC+y}
  3236. then :
  3237. printf %s "(cached) " >&6
  3238. else case e in #(
  3239. e) if test -n "$ac_ct_CC"; then
  3240. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3241. else
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH
  3244. do
  3245. IFS=$as_save_IFS
  3246. case $as_dir in #(((
  3247. '') as_dir=./ ;;
  3248. */) ;;
  3249. *) as_dir=$as_dir/ ;;
  3250. esac
  3251. for ac_exec_ext in '' $ac_executable_extensions; do
  3252. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3253. ac_cv_prog_ac_ct_CC="gcc"
  3254. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3255. break 2
  3256. fi
  3257. done
  3258. done
  3259. IFS=$as_save_IFS
  3260. fi ;;
  3261. esac
  3262. fi
  3263. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3264. if test -n "$ac_ct_CC"; then
  3265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3266. printf "%s\n" "$ac_ct_CC" >&6; }
  3267. else
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3269. printf "%s\n" "no" >&6; }
  3270. fi
  3271. if test "x$ac_ct_CC" = x; then
  3272. CC=""
  3273. else
  3274. case $cross_compiling:$ac_tool_warned in
  3275. yes:)
  3276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3277. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3278. ac_tool_warned=yes ;;
  3279. esac
  3280. CC=$ac_ct_CC
  3281. fi
  3282. else
  3283. CC="$ac_cv_prog_CC"
  3284. fi
  3285. if test -z "$CC"; then
  3286. if test -n "$ac_tool_prefix"; then
  3287. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3288. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3290. printf %s "checking for $ac_word... " >&6; }
  3291. if test ${ac_cv_prog_CC+y}
  3292. then :
  3293. printf %s "(cached) " >&6
  3294. else case e in #(
  3295. e) if test -n "$CC"; then
  3296. ac_cv_prog_CC="$CC" # Let the user override the test.
  3297. else
  3298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3299. for as_dir in $PATH
  3300. do
  3301. IFS=$as_save_IFS
  3302. case $as_dir in #(((
  3303. '') as_dir=./ ;;
  3304. */) ;;
  3305. *) as_dir=$as_dir/ ;;
  3306. esac
  3307. for ac_exec_ext in '' $ac_executable_extensions; do
  3308. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3309. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3311. break 2
  3312. fi
  3313. done
  3314. done
  3315. IFS=$as_save_IFS
  3316. fi ;;
  3317. esac
  3318. fi
  3319. CC=$ac_cv_prog_CC
  3320. if test -n "$CC"; then
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3322. printf "%s\n" "$CC" >&6; }
  3323. else
  3324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3325. printf "%s\n" "no" >&6; }
  3326. fi
  3327. fi
  3328. fi
  3329. if test -z "$CC"; then
  3330. # Extract the first word of "cc", so it can be a program name with args.
  3331. set dummy cc; ac_word=$2
  3332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3333. printf %s "checking for $ac_word... " >&6; }
  3334. if test ${ac_cv_prog_CC+y}
  3335. then :
  3336. printf %s "(cached) " >&6
  3337. else case e in #(
  3338. e) if test -n "$CC"; then
  3339. ac_cv_prog_CC="$CC" # Let the user override the test.
  3340. else
  3341. ac_prog_rejected=no
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. case $as_dir in #(((
  3347. '') as_dir=./ ;;
  3348. */) ;;
  3349. *) as_dir=$as_dir/ ;;
  3350. esac
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3353. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3354. ac_prog_rejected=yes
  3355. continue
  3356. fi
  3357. ac_cv_prog_CC="cc"
  3358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. if test $ac_prog_rejected = yes; then
  3365. # We found a bogon in the path, so make sure we never use it.
  3366. set dummy $ac_cv_prog_CC
  3367. shift
  3368. if test $# != 0; then
  3369. # We chose a different compiler from the bogus one.
  3370. # However, it has the same basename, so the bogon will be chosen
  3371. # first if we set CC to just the basename; use the full file name.
  3372. shift
  3373. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3374. fi
  3375. fi
  3376. fi ;;
  3377. esac
  3378. fi
  3379. CC=$ac_cv_prog_CC
  3380. if test -n "$CC"; then
  3381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3382. printf "%s\n" "$CC" >&6; }
  3383. else
  3384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3385. printf "%s\n" "no" >&6; }
  3386. fi
  3387. fi
  3388. if test -z "$CC"; then
  3389. if test -n "$ac_tool_prefix"; then
  3390. for ac_prog in cl.exe
  3391. do
  3392. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3393. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3395. printf %s "checking for $ac_word... " >&6; }
  3396. if test ${ac_cv_prog_CC+y}
  3397. then :
  3398. printf %s "(cached) " >&6
  3399. else case e in #(
  3400. e) if test -n "$CC"; then
  3401. ac_cv_prog_CC="$CC" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. case $as_dir in #(((
  3408. '') as_dir=./ ;;
  3409. */) ;;
  3410. *) as_dir=$as_dir/ ;;
  3411. esac
  3412. for ac_exec_ext in '' $ac_executable_extensions; do
  3413. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3414. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3415. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3416. break 2
  3417. fi
  3418. done
  3419. done
  3420. IFS=$as_save_IFS
  3421. fi ;;
  3422. esac
  3423. fi
  3424. CC=$ac_cv_prog_CC
  3425. if test -n "$CC"; then
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3427. printf "%s\n" "$CC" >&6; }
  3428. else
  3429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3430. printf "%s\n" "no" >&6; }
  3431. fi
  3432. test -n "$CC" && break
  3433. done
  3434. fi
  3435. if test -z "$CC"; then
  3436. ac_ct_CC=$CC
  3437. for ac_prog in cl.exe
  3438. do
  3439. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3440. set dummy $ac_prog; ac_word=$2
  3441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3442. printf %s "checking for $ac_word... " >&6; }
  3443. if test ${ac_cv_prog_ac_ct_CC+y}
  3444. then :
  3445. printf %s "(cached) " >&6
  3446. else case e in #(
  3447. e) if test -n "$ac_ct_CC"; then
  3448. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3449. else
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH
  3452. do
  3453. IFS=$as_save_IFS
  3454. case $as_dir in #(((
  3455. '') as_dir=./ ;;
  3456. */) ;;
  3457. *) as_dir=$as_dir/ ;;
  3458. esac
  3459. for ac_exec_ext in '' $ac_executable_extensions; do
  3460. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3461. ac_cv_prog_ac_ct_CC="$ac_prog"
  3462. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3463. break 2
  3464. fi
  3465. done
  3466. done
  3467. IFS=$as_save_IFS
  3468. fi ;;
  3469. esac
  3470. fi
  3471. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3472. if test -n "$ac_ct_CC"; then
  3473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3474. printf "%s\n" "$ac_ct_CC" >&6; }
  3475. else
  3476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3477. printf "%s\n" "no" >&6; }
  3478. fi
  3479. test -n "$ac_ct_CC" && break
  3480. done
  3481. if test "x$ac_ct_CC" = x; then
  3482. CC=""
  3483. else
  3484. case $cross_compiling:$ac_tool_warned in
  3485. yes:)
  3486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3487. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3488. ac_tool_warned=yes ;;
  3489. esac
  3490. CC=$ac_ct_CC
  3491. fi
  3492. fi
  3493. fi
  3494. if test -z "$CC"; then
  3495. if test -n "$ac_tool_prefix"; then
  3496. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3497. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3499. printf %s "checking for $ac_word... " >&6; }
  3500. if test ${ac_cv_prog_CC+y}
  3501. then :
  3502. printf %s "(cached) " >&6
  3503. else case e in #(
  3504. e) if test -n "$CC"; then
  3505. ac_cv_prog_CC="$CC" # Let the user override the test.
  3506. else
  3507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3508. for as_dir in $PATH
  3509. do
  3510. IFS=$as_save_IFS
  3511. case $as_dir in #(((
  3512. '') as_dir=./ ;;
  3513. */) ;;
  3514. *) as_dir=$as_dir/ ;;
  3515. esac
  3516. for ac_exec_ext in '' $ac_executable_extensions; do
  3517. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3518. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3520. break 2
  3521. fi
  3522. done
  3523. done
  3524. IFS=$as_save_IFS
  3525. fi ;;
  3526. esac
  3527. fi
  3528. CC=$ac_cv_prog_CC
  3529. if test -n "$CC"; then
  3530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3531. printf "%s\n" "$CC" >&6; }
  3532. else
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3534. printf "%s\n" "no" >&6; }
  3535. fi
  3536. fi
  3537. if test -z "$ac_cv_prog_CC"; then
  3538. ac_ct_CC=$CC
  3539. # Extract the first word of "clang", so it can be a program name with args.
  3540. set dummy clang; ac_word=$2
  3541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3542. printf %s "checking for $ac_word... " >&6; }
  3543. if test ${ac_cv_prog_ac_ct_CC+y}
  3544. then :
  3545. printf %s "(cached) " >&6
  3546. else case e in #(
  3547. e) if test -n "$ac_ct_CC"; then
  3548. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3549. else
  3550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551. for as_dir in $PATH
  3552. do
  3553. IFS=$as_save_IFS
  3554. case $as_dir in #(((
  3555. '') as_dir=./ ;;
  3556. */) ;;
  3557. *) as_dir=$as_dir/ ;;
  3558. esac
  3559. for ac_exec_ext in '' $ac_executable_extensions; do
  3560. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3561. ac_cv_prog_ac_ct_CC="clang"
  3562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3563. break 2
  3564. fi
  3565. done
  3566. done
  3567. IFS=$as_save_IFS
  3568. fi ;;
  3569. esac
  3570. fi
  3571. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3572. if test -n "$ac_ct_CC"; then
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3574. printf "%s\n" "$ac_ct_CC" >&6; }
  3575. else
  3576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3577. printf "%s\n" "no" >&6; }
  3578. fi
  3579. if test "x$ac_ct_CC" = x; then
  3580. CC=""
  3581. else
  3582. case $cross_compiling:$ac_tool_warned in
  3583. yes:)
  3584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3585. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3586. ac_tool_warned=yes ;;
  3587. esac
  3588. CC=$ac_ct_CC
  3589. fi
  3590. else
  3591. CC="$ac_cv_prog_CC"
  3592. fi
  3593. fi
  3594. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3595. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3596. as_fn_error $? "no acceptable C compiler found in \$PATH
  3597. See 'config.log' for more details" "$LINENO" 5; }
  3598. # Provide some information about the compiler.
  3599. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3600. set X $ac_compile
  3601. ac_compiler=$2
  3602. for ac_option in --version -v -V -qversion -version; do
  3603. { { ac_try="$ac_compiler $ac_option >&5"
  3604. case "(($ac_try" in
  3605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3606. *) ac_try_echo=$ac_try;;
  3607. esac
  3608. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3609. printf "%s\n" "$ac_try_echo"; } >&5
  3610. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3611. ac_status=$?
  3612. if test -s conftest.err; then
  3613. sed '10a\
  3614. ... rest of stderr output deleted ...
  3615. 10q' conftest.err >conftest.er1
  3616. cat conftest.er1 >&5
  3617. fi
  3618. rm -f conftest.er1 conftest.err
  3619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3620. test $ac_status = 0; }
  3621. done
  3622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3623. /* end confdefs.h. */
  3624. int
  3625. main (void)
  3626. {
  3627. ;
  3628. return 0;
  3629. }
  3630. _ACEOF
  3631. ac_clean_files_save=$ac_clean_files
  3632. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3633. # Try to create an executable without -o first, disregard a.out.
  3634. # It will help us diagnose broken compilers, and finding out an intuition
  3635. # of exeext.
  3636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3637. printf %s "checking whether the C compiler works... " >&6; }
  3638. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3639. # The possible output files:
  3640. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3641. ac_rmfiles=
  3642. for ac_file in $ac_files
  3643. do
  3644. case $ac_file in
  3645. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3646. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3647. esac
  3648. done
  3649. rm -f $ac_rmfiles
  3650. if { { ac_try="$ac_link_default"
  3651. case "(($ac_try" in
  3652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3653. *) ac_try_echo=$ac_try;;
  3654. esac
  3655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3656. printf "%s\n" "$ac_try_echo"; } >&5
  3657. (eval "$ac_link_default") 2>&5
  3658. ac_status=$?
  3659. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3660. test $ac_status = 0; }
  3661. then :
  3662. # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
  3663. # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
  3664. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3665. # so that the user can short-circuit this test for compilers unknown to
  3666. # Autoconf.
  3667. for ac_file in $ac_files ''
  3668. do
  3669. test -f "$ac_file" || continue
  3670. case $ac_file in
  3671. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3672. ;;
  3673. [ab].out )
  3674. # We found the default executable, but exeext='' is most
  3675. # certainly right.
  3676. break;;
  3677. *.* )
  3678. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3679. then :; else
  3680. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3681. fi
  3682. # We set ac_cv_exeext here because the later test for it is not
  3683. # safe: cross compilers may not add the suffix if given an '-o'
  3684. # argument, so we may need to know it at that point already.
  3685. # Even if this section looks crufty: it has the advantage of
  3686. # actually working.
  3687. break;;
  3688. * )
  3689. break;;
  3690. esac
  3691. done
  3692. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3693. else case e in #(
  3694. e) ac_file='' ;;
  3695. esac
  3696. fi
  3697. if test -z "$ac_file"
  3698. then :
  3699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3700. printf "%s\n" "no" >&6; }
  3701. printf "%s\n" "$as_me: failed program was:" >&5
  3702. sed 's/^/| /' conftest.$ac_ext >&5
  3703. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3704. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3705. as_fn_error 77 "C compiler cannot create executables
  3706. See 'config.log' for more details" "$LINENO" 5; }
  3707. else case e in #(
  3708. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3709. printf "%s\n" "yes" >&6; } ;;
  3710. esac
  3711. fi
  3712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3713. printf %s "checking for C compiler default output file name... " >&6; }
  3714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3715. printf "%s\n" "$ac_file" >&6; }
  3716. ac_exeext=$ac_cv_exeext
  3717. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3718. ac_clean_files=$ac_clean_files_save
  3719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3720. printf %s "checking for suffix of executables... " >&6; }
  3721. if { { ac_try="$ac_link"
  3722. case "(($ac_try" in
  3723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3724. *) ac_try_echo=$ac_try;;
  3725. esac
  3726. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3727. printf "%s\n" "$ac_try_echo"; } >&5
  3728. (eval "$ac_link") 2>&5
  3729. ac_status=$?
  3730. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3731. test $ac_status = 0; }
  3732. then :
  3733. # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
  3734. # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
  3735. # work properly (i.e., refer to 'conftest.exe'), while it won't with
  3736. # 'rm'.
  3737. for ac_file in conftest.exe conftest conftest.*; do
  3738. test -f "$ac_file" || continue
  3739. case $ac_file in
  3740. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3741. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3742. break;;
  3743. * ) break;;
  3744. esac
  3745. done
  3746. else case e in #(
  3747. e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3748. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3749. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3750. See 'config.log' for more details" "$LINENO" 5; } ;;
  3751. esac
  3752. fi
  3753. rm -f conftest conftest$ac_cv_exeext
  3754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3755. printf "%s\n" "$ac_cv_exeext" >&6; }
  3756. rm -f conftest.$ac_ext
  3757. EXEEXT=$ac_cv_exeext
  3758. ac_exeext=$EXEEXT
  3759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3760. /* end confdefs.h. */
  3761. #include <stdio.h>
  3762. int
  3763. main (void)
  3764. {
  3765. FILE *f = fopen ("conftest.out", "w");
  3766. if (!f)
  3767. return 1;
  3768. return ferror (f) || fclose (f) != 0;
  3769. ;
  3770. return 0;
  3771. }
  3772. _ACEOF
  3773. ac_clean_files="$ac_clean_files conftest.out"
  3774. # Check that the compiler produces executables we can run. If not, either
  3775. # the compiler is broken, or we cross compile.
  3776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3777. printf %s "checking whether we are cross compiling... " >&6; }
  3778. if test "$cross_compiling" != yes; then
  3779. { { ac_try="$ac_link"
  3780. case "(($ac_try" in
  3781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3782. *) ac_try_echo=$ac_try;;
  3783. esac
  3784. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3785. printf "%s\n" "$ac_try_echo"; } >&5
  3786. (eval "$ac_link") 2>&5
  3787. ac_status=$?
  3788. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3789. test $ac_status = 0; }
  3790. if { ac_try='./conftest$ac_cv_exeext'
  3791. { { case "(($ac_try" in
  3792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3793. *) ac_try_echo=$ac_try;;
  3794. esac
  3795. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3796. printf "%s\n" "$ac_try_echo"; } >&5
  3797. (eval "$ac_try") 2>&5
  3798. ac_status=$?
  3799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3800. test $ac_status = 0; }; }; then
  3801. cross_compiling=no
  3802. else
  3803. if test "$cross_compiling" = maybe; then
  3804. cross_compiling=yes
  3805. else
  3806. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3807. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3808. as_fn_error 77 "cannot run C compiled programs.
  3809. If you meant to cross compile, use '--host'.
  3810. See 'config.log' for more details" "$LINENO" 5; }
  3811. fi
  3812. fi
  3813. fi
  3814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3815. printf "%s\n" "$cross_compiling" >&6; }
  3816. rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  3817. conftest.o conftest.obj conftest.out
  3818. ac_clean_files=$ac_clean_files_save
  3819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3820. printf %s "checking for suffix of object files... " >&6; }
  3821. if test ${ac_cv_objext+y}
  3822. then :
  3823. printf %s "(cached) " >&6
  3824. else case e in #(
  3825. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3826. /* end confdefs.h. */
  3827. int
  3828. main (void)
  3829. {
  3830. ;
  3831. return 0;
  3832. }
  3833. _ACEOF
  3834. rm -f conftest.o conftest.obj
  3835. if { { ac_try="$ac_compile"
  3836. case "(($ac_try" in
  3837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3838. *) ac_try_echo=$ac_try;;
  3839. esac
  3840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3841. printf "%s\n" "$ac_try_echo"; } >&5
  3842. (eval "$ac_compile") 2>&5
  3843. ac_status=$?
  3844. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3845. test $ac_status = 0; }
  3846. then :
  3847. for ac_file in conftest.o conftest.obj conftest.*; do
  3848. test -f "$ac_file" || continue;
  3849. case $ac_file in
  3850. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3851. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3852. break;;
  3853. esac
  3854. done
  3855. else case e in #(
  3856. e) printf "%s\n" "$as_me: failed program was:" >&5
  3857. sed 's/^/| /' conftest.$ac_ext >&5
  3858. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  3859. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  3860. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3861. See 'config.log' for more details" "$LINENO" 5; } ;;
  3862. esac
  3863. fi
  3864. rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
  3865. esac
  3866. fi
  3867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3868. printf "%s\n" "$ac_cv_objext" >&6; }
  3869. OBJEXT=$ac_cv_objext
  3870. ac_objext=$OBJEXT
  3871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3872. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3873. if test ${ac_cv_c_compiler_gnu+y}
  3874. then :
  3875. printf %s "(cached) " >&6
  3876. else case e in #(
  3877. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3878. /* end confdefs.h. */
  3879. int
  3880. main (void)
  3881. {
  3882. #ifndef __GNUC__
  3883. choke me
  3884. #endif
  3885. ;
  3886. return 0;
  3887. }
  3888. _ACEOF
  3889. if ac_fn_c_try_compile "$LINENO"
  3890. then :
  3891. ac_compiler_gnu=yes
  3892. else case e in #(
  3893. e) ac_compiler_gnu=no ;;
  3894. esac
  3895. fi
  3896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3897. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3898. ;;
  3899. esac
  3900. fi
  3901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3902. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3904. if test $ac_compiler_gnu = yes; then
  3905. GCC=yes
  3906. else
  3907. GCC=
  3908. fi
  3909. ac_test_CFLAGS=${CFLAGS+y}
  3910. ac_save_CFLAGS=$CFLAGS
  3911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3912. printf %s "checking whether $CC accepts -g... " >&6; }
  3913. if test ${ac_cv_prog_cc_g+y}
  3914. then :
  3915. printf %s "(cached) " >&6
  3916. else case e in #(
  3917. e) ac_save_c_werror_flag=$ac_c_werror_flag
  3918. ac_c_werror_flag=yes
  3919. ac_cv_prog_cc_g=no
  3920. CFLAGS="-g"
  3921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3922. /* end confdefs.h. */
  3923. int
  3924. main (void)
  3925. {
  3926. ;
  3927. return 0;
  3928. }
  3929. _ACEOF
  3930. if ac_fn_c_try_compile "$LINENO"
  3931. then :
  3932. ac_cv_prog_cc_g=yes
  3933. else case e in #(
  3934. e) CFLAGS=""
  3935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3936. /* end confdefs.h. */
  3937. int
  3938. main (void)
  3939. {
  3940. ;
  3941. return 0;
  3942. }
  3943. _ACEOF
  3944. if ac_fn_c_try_compile "$LINENO"
  3945. then :
  3946. else case e in #(
  3947. e) ac_c_werror_flag=$ac_save_c_werror_flag
  3948. CFLAGS="-g"
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main (void)
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. if ac_fn_c_try_compile "$LINENO"
  3959. then :
  3960. ac_cv_prog_cc_g=yes
  3961. fi
  3962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3963. esac
  3964. fi
  3965. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  3966. esac
  3967. fi
  3968. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3969. ac_c_werror_flag=$ac_save_c_werror_flag ;;
  3970. esac
  3971. fi
  3972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3973. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3974. if test $ac_test_CFLAGS; then
  3975. CFLAGS=$ac_save_CFLAGS
  3976. elif test $ac_cv_prog_cc_g = yes; then
  3977. if test "$GCC" = yes; then
  3978. CFLAGS="-g -O2"
  3979. else
  3980. CFLAGS="-g"
  3981. fi
  3982. else
  3983. if test "$GCC" = yes; then
  3984. CFLAGS="-O2"
  3985. else
  3986. CFLAGS=
  3987. fi
  3988. fi
  3989. ac_prog_cc_stdc=no
  3990. if test x$ac_prog_cc_stdc = xno
  3991. then :
  3992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3993. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3994. if test ${ac_cv_prog_cc_c11+y}
  3995. then :
  3996. printf %s "(cached) " >&6
  3997. else case e in #(
  3998. e) ac_cv_prog_cc_c11=no
  3999. ac_save_CC=$CC
  4000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4001. /* end confdefs.h. */
  4002. $ac_c_conftest_c11_program
  4003. _ACEOF
  4004. for ac_arg in '' -std=gnu11
  4005. do
  4006. CC="$ac_save_CC $ac_arg"
  4007. if ac_fn_c_try_compile "$LINENO"
  4008. then :
  4009. ac_cv_prog_cc_c11=$ac_arg
  4010. fi
  4011. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4012. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4013. done
  4014. rm -f conftest.$ac_ext
  4015. CC=$ac_save_CC ;;
  4016. esac
  4017. fi
  4018. if test "x$ac_cv_prog_cc_c11" = xno
  4019. then :
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4021. printf "%s\n" "unsupported" >&6; }
  4022. else case e in #(
  4023. e) if test "x$ac_cv_prog_cc_c11" = x
  4024. then :
  4025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4026. printf "%s\n" "none needed" >&6; }
  4027. else case e in #(
  4028. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4029. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4030. CC="$CC $ac_cv_prog_cc_c11" ;;
  4031. esac
  4032. fi
  4033. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4034. ac_prog_cc_stdc=c11 ;;
  4035. esac
  4036. fi
  4037. fi
  4038. if test x$ac_prog_cc_stdc = xno
  4039. then :
  4040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4041. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4042. if test ${ac_cv_prog_cc_c99+y}
  4043. then :
  4044. printf %s "(cached) " >&6
  4045. else case e in #(
  4046. e) ac_cv_prog_cc_c99=no
  4047. ac_save_CC=$CC
  4048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4049. /* end confdefs.h. */
  4050. $ac_c_conftest_c99_program
  4051. _ACEOF
  4052. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4053. do
  4054. CC="$ac_save_CC $ac_arg"
  4055. if ac_fn_c_try_compile "$LINENO"
  4056. then :
  4057. ac_cv_prog_cc_c99=$ac_arg
  4058. fi
  4059. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4060. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4061. done
  4062. rm -f conftest.$ac_ext
  4063. CC=$ac_save_CC ;;
  4064. esac
  4065. fi
  4066. if test "x$ac_cv_prog_cc_c99" = xno
  4067. then :
  4068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4069. printf "%s\n" "unsupported" >&6; }
  4070. else case e in #(
  4071. e) if test "x$ac_cv_prog_cc_c99" = x
  4072. then :
  4073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4074. printf "%s\n" "none needed" >&6; }
  4075. else case e in #(
  4076. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4077. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4078. CC="$CC $ac_cv_prog_cc_c99" ;;
  4079. esac
  4080. fi
  4081. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4082. ac_prog_cc_stdc=c99 ;;
  4083. esac
  4084. fi
  4085. fi
  4086. if test x$ac_prog_cc_stdc = xno
  4087. then :
  4088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4089. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4090. if test ${ac_cv_prog_cc_c89+y}
  4091. then :
  4092. printf %s "(cached) " >&6
  4093. else case e in #(
  4094. e) ac_cv_prog_cc_c89=no
  4095. ac_save_CC=$CC
  4096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4097. /* end confdefs.h. */
  4098. $ac_c_conftest_c89_program
  4099. _ACEOF
  4100. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4101. do
  4102. CC="$ac_save_CC $ac_arg"
  4103. if ac_fn_c_try_compile "$LINENO"
  4104. then :
  4105. ac_cv_prog_cc_c89=$ac_arg
  4106. fi
  4107. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4108. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4109. done
  4110. rm -f conftest.$ac_ext
  4111. CC=$ac_save_CC ;;
  4112. esac
  4113. fi
  4114. if test "x$ac_cv_prog_cc_c89" = xno
  4115. then :
  4116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4117. printf "%s\n" "unsupported" >&6; }
  4118. else case e in #(
  4119. e) if test "x$ac_cv_prog_cc_c89" = x
  4120. then :
  4121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4122. printf "%s\n" "none needed" >&6; }
  4123. else case e in #(
  4124. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4125. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4126. CC="$CC $ac_cv_prog_cc_c89" ;;
  4127. esac
  4128. fi
  4129. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4130. ac_prog_cc_stdc=c89 ;;
  4131. esac
  4132. fi
  4133. fi
  4134. ac_ext=c
  4135. ac_cpp='$CPP $CPPFLAGS'
  4136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4139. ac_ext=c
  4140. ac_cpp='$CPP $CPPFLAGS'
  4141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4145. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4146. if test ${am_cv_prog_cc_c_o+y}
  4147. then :
  4148. printf %s "(cached) " >&6
  4149. else case e in #(
  4150. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4151. /* end confdefs.h. */
  4152. int
  4153. main (void)
  4154. {
  4155. ;
  4156. return 0;
  4157. }
  4158. _ACEOF
  4159. # Make sure it works both with $CC and with simple cc.
  4160. # Following AC_PROG_CC_C_O, we do the test twice because some
  4161. # compilers refuse to overwrite an existing .o file with -o,
  4162. # though they will create one.
  4163. am_cv_prog_cc_c_o=yes
  4164. for am_i in 1 2; do
  4165. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4166. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4167. ac_status=$?
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); } \
  4170. && test -f conftest2.$ac_objext; then
  4171. : OK
  4172. else
  4173. am_cv_prog_cc_c_o=no
  4174. break
  4175. fi
  4176. done
  4177. rm -f core conftest*
  4178. unset am_i ;;
  4179. esac
  4180. fi
  4181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4182. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4183. if test "$am_cv_prog_cc_c_o" != yes; then
  4184. # Losing compiler, so override with the script.
  4185. # FIXME: It is wrong to rewrite CC.
  4186. # But if we don't then we get into trouble of one sort or another.
  4187. # A longer-term fix would be to have automake use am__CC in this case,
  4188. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4189. CC="$am_aux_dir/compile $CC"
  4190. fi
  4191. ac_ext=c
  4192. ac_cpp='$CPP $CPPFLAGS'
  4193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4196. DEPDIR="${am__leading_dot}deps"
  4197. ac_config_commands="$ac_config_commands depfiles"
  4198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4199. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4200. cat > confinc.mk << 'END'
  4201. am__doit:
  4202. @echo this is the am__doit target >confinc.out
  4203. .PHONY: am__doit
  4204. END
  4205. am__include="#"
  4206. am__quote=
  4207. # BSD make does it like this.
  4208. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4209. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4210. echo 'include confinc.mk # ignored' > confmf.GNU
  4211. _am_result=no
  4212. for s in GNU BSD; do
  4213. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4214. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4215. ac_status=$?
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); }
  4218. case $?:`cat confinc.out 2>/dev/null` in #(
  4219. '0:this is the am__doit target') :
  4220. case $s in #(
  4221. BSD) :
  4222. am__include='.include' am__quote='"' ;; #(
  4223. *) :
  4224. am__include='include' am__quote='' ;;
  4225. esac ;; #(
  4226. *) :
  4227. ;;
  4228. esac
  4229. if test "$am__include" != "#"; then
  4230. _am_result="yes ($s style)"
  4231. break
  4232. fi
  4233. done
  4234. rm -f confinc.* confmf.*
  4235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4236. printf "%s\n" "${_am_result}" >&6; }
  4237. # Check whether --enable-dependency-tracking was given.
  4238. if test ${enable_dependency_tracking+y}
  4239. then :
  4240. enableval=$enable_dependency_tracking;
  4241. fi
  4242. if test "x$enable_dependency_tracking" != xno; then
  4243. am_depcomp="$ac_aux_dir/depcomp"
  4244. AMDEPBACKSLASH='\'
  4245. am__nodep='_no'
  4246. fi
  4247. if test "x$enable_dependency_tracking" != xno; then
  4248. AMDEP_TRUE=
  4249. AMDEP_FALSE='#'
  4250. else
  4251. AMDEP_TRUE='#'
  4252. AMDEP_FALSE=
  4253. fi
  4254. depcc="$CC" am_compiler_list=
  4255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4256. printf %s "checking dependency style of $depcc... " >&6; }
  4257. if test ${am_cv_CC_dependencies_compiler_type+y}
  4258. then :
  4259. printf %s "(cached) " >&6
  4260. else case e in #(
  4261. e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4262. # We make a subdir and do the tests there. Otherwise we can end up
  4263. # making bogus files that we don't know about and never remove. For
  4264. # instance it was reported that on HP-UX the gcc test will end up
  4265. # making a dummy file named 'D' -- because '-MD' means "put the output
  4266. # in D".
  4267. rm -rf conftest.dir
  4268. mkdir conftest.dir
  4269. # Copy depcomp to subdir because otherwise we won't find it if we're
  4270. # using a relative directory.
  4271. cp "$am_depcomp" conftest.dir
  4272. cd conftest.dir
  4273. # We will build objects and dependencies in a subdirectory because
  4274. # it helps to detect inapplicable dependency modes. For instance
  4275. # both Tru64's cc and ICC support -MD to output dependencies as a
  4276. # side effect of compilation, but ICC will put the dependencies in
  4277. # the current directory while Tru64 will put them in the object
  4278. # directory.
  4279. mkdir sub
  4280. am_cv_CC_dependencies_compiler_type=none
  4281. if test "$am_compiler_list" = ""; then
  4282. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4283. fi
  4284. am__universal=false
  4285. case " $depcc " in #(
  4286. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4287. esac
  4288. for depmode in $am_compiler_list; do
  4289. # Setup a source with many dependencies, because some compilers
  4290. # like to wrap large dependency lists on column 80 (with \), and
  4291. # we should not choose a depcomp mode which is confused by this.
  4292. #
  4293. # We need to recreate these files for each test, as the compiler may
  4294. # overwrite some of them when testing with obscure command lines.
  4295. # This happens at least with the AIX C compiler.
  4296. : > sub/conftest.c
  4297. for i in 1 2 3 4 5 6; do
  4298. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4299. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4300. # Solaris 10 /bin/sh.
  4301. echo '/* dummy */' > sub/conftst$i.h
  4302. done
  4303. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4304. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4305. # mode. It turns out that the SunPro C++ compiler does not properly
  4306. # handle '-M -o', and we need to detect this. Also, some Intel
  4307. # versions had trouble with output in subdirs.
  4308. am__obj=sub/conftest.${OBJEXT-o}
  4309. am__minus_obj="-o $am__obj"
  4310. case $depmode in
  4311. gcc)
  4312. # This depmode causes a compiler race in universal mode.
  4313. test "$am__universal" = false || continue
  4314. ;;
  4315. nosideeffect)
  4316. # After this tag, mechanisms are not by side-effect, so they'll
  4317. # only be used when explicitly requested.
  4318. if test "x$enable_dependency_tracking" = xyes; then
  4319. continue
  4320. else
  4321. break
  4322. fi
  4323. ;;
  4324. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4325. # This compiler won't grok '-c -o', but also, the minuso test has
  4326. # not run yet. These depmodes are late enough in the game, and
  4327. # so weak that their functioning should not be impacted.
  4328. am__obj=conftest.${OBJEXT-o}
  4329. am__minus_obj=
  4330. ;;
  4331. none) break ;;
  4332. esac
  4333. if depmode=$depmode \
  4334. source=sub/conftest.c object=$am__obj \
  4335. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4336. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4337. >/dev/null 2>conftest.err &&
  4338. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4339. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4340. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4341. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4342. # icc doesn't choke on unknown options, it will just issue warnings
  4343. # or remarks (even with -Werror). So we grep stderr for any message
  4344. # that says an option was ignored or not supported.
  4345. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4346. # icc: Command line warning: ignoring option '-M'; no argument required
  4347. # The diagnosis changed in icc 8.0:
  4348. # icc: Command line remark: option '-MP' not supported
  4349. if (grep 'ignoring option' conftest.err ||
  4350. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4351. am_cv_CC_dependencies_compiler_type=$depmode
  4352. break
  4353. fi
  4354. fi
  4355. done
  4356. cd ..
  4357. rm -rf conftest.dir
  4358. else
  4359. am_cv_CC_dependencies_compiler_type=none
  4360. fi
  4361. ;;
  4362. esac
  4363. fi
  4364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4365. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4366. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4367. if
  4368. test "x$enable_dependency_tracking" != xno \
  4369. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4370. am__fastdepCC_TRUE=
  4371. am__fastdepCC_FALSE='#'
  4372. else
  4373. am__fastdepCC_TRUE='#'
  4374. am__fastdepCC_FALSE=
  4375. fi
  4376. ac_header= ac_cache=
  4377. for ac_item in $ac_header_c_list
  4378. do
  4379. if test $ac_cache; then
  4380. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4381. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4382. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4383. fi
  4384. ac_header= ac_cache=
  4385. elif test $ac_header; then
  4386. ac_cache=$ac_item
  4387. else
  4388. ac_header=$ac_item
  4389. fi
  4390. done
  4391. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4392. then :
  4393. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4394. fi
  4395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4396. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4397. if test ${ac_cv_safe_to_define___extensions__+y}
  4398. then :
  4399. printf %s "(cached) " >&6
  4400. else case e in #(
  4401. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. # define __EXTENSIONS__ 1
  4404. $ac_includes_default
  4405. int
  4406. main (void)
  4407. {
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. if ac_fn_c_try_compile "$LINENO"
  4413. then :
  4414. ac_cv_safe_to_define___extensions__=yes
  4415. else case e in #(
  4416. e) ac_cv_safe_to_define___extensions__=no ;;
  4417. esac
  4418. fi
  4419. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4420. esac
  4421. fi
  4422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4423. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4425. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4426. if test ${ac_cv_should_define__xopen_source+y}
  4427. then :
  4428. printf %s "(cached) " >&6
  4429. else case e in #(
  4430. e) ac_cv_should_define__xopen_source=no
  4431. if test $ac_cv_header_wchar_h = yes
  4432. then :
  4433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4434. /* end confdefs.h. */
  4435. #include <wchar.h>
  4436. mbstate_t x;
  4437. int
  4438. main (void)
  4439. {
  4440. ;
  4441. return 0;
  4442. }
  4443. _ACEOF
  4444. if ac_fn_c_try_compile "$LINENO"
  4445. then :
  4446. else case e in #(
  4447. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4448. /* end confdefs.h. */
  4449. #define _XOPEN_SOURCE 500
  4450. #include <wchar.h>
  4451. mbstate_t x;
  4452. int
  4453. main (void)
  4454. {
  4455. ;
  4456. return 0;
  4457. }
  4458. _ACEOF
  4459. if ac_fn_c_try_compile "$LINENO"
  4460. then :
  4461. ac_cv_should_define__xopen_source=yes
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  4464. esac
  4465. fi
  4466. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4467. fi ;;
  4468. esac
  4469. fi
  4470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4471. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4472. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4473. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4474. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4475. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4476. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4477. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4478. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4479. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4480. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4481. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4482. printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
  4483. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4484. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4485. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4486. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4487. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4488. if test $ac_cv_header_minix_config_h = yes
  4489. then :
  4490. MINIX=yes
  4491. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4492. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4493. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4494. else case e in #(
  4495. e) MINIX= ;;
  4496. esac
  4497. fi
  4498. if test $ac_cv_safe_to_define___extensions__ = yes
  4499. then :
  4500. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4501. fi
  4502. if test $ac_cv_should_define__xopen_source = yes
  4503. then :
  4504. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4505. fi
  4506. if test "x$remember_set_CFLAGS" = "x"
  4507. then
  4508. if test "$CFLAGS" = "-g -O2"
  4509. then
  4510. CFLAGS="-O2"
  4511. elif test "$CFLAGS" = "-g"
  4512. then
  4513. CFLAGS=""
  4514. fi
  4515. fi
  4516. # This is a new thing required to stop a warning from automake 1.12
  4517. if test -n "$ac_tool_prefix"; then
  4518. for ac_prog in ar lib "link -lib"
  4519. do
  4520. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4521. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4523. printf %s "checking for $ac_word... " >&6; }
  4524. if test ${ac_cv_prog_AR+y}
  4525. then :
  4526. printf %s "(cached) " >&6
  4527. else case e in #(
  4528. e) if test -n "$AR"; then
  4529. ac_cv_prog_AR="$AR" # Let the user override the test.
  4530. else
  4531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4532. for as_dir in $PATH
  4533. do
  4534. IFS=$as_save_IFS
  4535. case $as_dir in #(((
  4536. '') as_dir=./ ;;
  4537. */) ;;
  4538. *) as_dir=$as_dir/ ;;
  4539. esac
  4540. for ac_exec_ext in '' $ac_executable_extensions; do
  4541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4542. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4544. break 2
  4545. fi
  4546. done
  4547. done
  4548. IFS=$as_save_IFS
  4549. fi ;;
  4550. esac
  4551. fi
  4552. AR=$ac_cv_prog_AR
  4553. if test -n "$AR"; then
  4554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4555. printf "%s\n" "$AR" >&6; }
  4556. else
  4557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4558. printf "%s\n" "no" >&6; }
  4559. fi
  4560. test -n "$AR" && break
  4561. done
  4562. fi
  4563. if test -z "$AR"; then
  4564. ac_ct_AR=$AR
  4565. for ac_prog in ar lib "link -lib"
  4566. do
  4567. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4568. set dummy $ac_prog; ac_word=$2
  4569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4570. printf %s "checking for $ac_word... " >&6; }
  4571. if test ${ac_cv_prog_ac_ct_AR+y}
  4572. then :
  4573. printf %s "(cached) " >&6
  4574. else case e in #(
  4575. e) if test -n "$ac_ct_AR"; then
  4576. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4577. else
  4578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4579. for as_dir in $PATH
  4580. do
  4581. IFS=$as_save_IFS
  4582. case $as_dir in #(((
  4583. '') as_dir=./ ;;
  4584. */) ;;
  4585. *) as_dir=$as_dir/ ;;
  4586. esac
  4587. for ac_exec_ext in '' $ac_executable_extensions; do
  4588. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4589. ac_cv_prog_ac_ct_AR="$ac_prog"
  4590. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4591. break 2
  4592. fi
  4593. done
  4594. done
  4595. IFS=$as_save_IFS
  4596. fi ;;
  4597. esac
  4598. fi
  4599. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4600. if test -n "$ac_ct_AR"; then
  4601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4602. printf "%s\n" "$ac_ct_AR" >&6; }
  4603. else
  4604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4605. printf "%s\n" "no" >&6; }
  4606. fi
  4607. test -n "$ac_ct_AR" && break
  4608. done
  4609. if test "x$ac_ct_AR" = x; then
  4610. AR="false"
  4611. else
  4612. case $cross_compiling:$ac_tool_warned in
  4613. yes:)
  4614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4615. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4616. ac_tool_warned=yes ;;
  4617. esac
  4618. AR=$ac_ct_AR
  4619. fi
  4620. fi
  4621. : ${AR=ar}
  4622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4623. printf %s "checking the archiver ($AR) interface... " >&6; }
  4624. if test ${am_cv_ar_interface+y}
  4625. then :
  4626. printf %s "(cached) " >&6
  4627. else case e in #(
  4628. e) ac_ext=c
  4629. ac_cpp='$CPP $CPPFLAGS'
  4630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4633. am_cv_ar_interface=ar
  4634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4635. /* end confdefs.h. */
  4636. int some_variable = 0;
  4637. _ACEOF
  4638. if ac_fn_c_try_compile "$LINENO"
  4639. then :
  4640. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4641. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4642. (eval $am_ar_try) 2>&5
  4643. ac_status=$?
  4644. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4645. test $ac_status = 0; }
  4646. if test "$ac_status" -eq 0; then
  4647. am_cv_ar_interface=ar
  4648. else
  4649. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4650. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4651. (eval $am_ar_try) 2>&5
  4652. ac_status=$?
  4653. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4654. test $ac_status = 0; }
  4655. if test "$ac_status" -eq 0; then
  4656. am_cv_ar_interface=lib
  4657. else
  4658. am_cv_ar_interface=unknown
  4659. fi
  4660. fi
  4661. rm -f conftest.lib libconftest.a
  4662. fi
  4663. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4664. ac_ext=c
  4665. ac_cpp='$CPP $CPPFLAGS'
  4666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4669. ;;
  4670. esac
  4671. fi
  4672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4673. printf "%s\n" "$am_cv_ar_interface" >&6; }
  4674. case $am_cv_ar_interface in
  4675. ar)
  4676. ;;
  4677. lib)
  4678. # Microsoft lib, so override with the ar-lib wrapper script.
  4679. # FIXME: It is wrong to rewrite AR.
  4680. # But if we don't then we get into trouble of one sort or another.
  4681. # A longer-term fix would be to have automake use am__AR in this case,
  4682. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4683. # similar.
  4684. AR="$am_aux_dir/ar-lib $AR"
  4685. ;;
  4686. unknown)
  4687. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4688. ;;
  4689. esac
  4690. # Check for a 64-bit integer type
  4691. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  4692. case $ac_cv_c_int64_t in #(
  4693. no|yes) ;; #(
  4694. *)
  4695. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  4696. ;;
  4697. esac
  4698. case `pwd` in
  4699. *\ * | *\ *)
  4700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4701. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4702. esac
  4703. macro_version='2.4.7.4-1ec8f-dirty'
  4704. macro_revision='2.4.7.4'
  4705. ltmain=$ac_aux_dir/ltmain.sh
  4706. # Make sure we can run config.sub.
  4707. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  4708. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  4709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4710. printf %s "checking build system type... " >&6; }
  4711. if test ${ac_cv_build+y}
  4712. then :
  4713. printf %s "(cached) " >&6
  4714. else case e in #(
  4715. e) ac_build_alias=$build_alias
  4716. test "x$ac_build_alias" = x &&
  4717. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  4718. test "x$ac_build_alias" = x &&
  4719. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4720. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  4721. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  4722. ;;
  4723. esac
  4724. fi
  4725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4726. printf "%s\n" "$ac_cv_build" >&6; }
  4727. case $ac_cv_build in
  4728. *-*-*) ;;
  4729. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4730. esac
  4731. build=$ac_cv_build
  4732. ac_save_IFS=$IFS; IFS='-'
  4733. set x $ac_cv_build
  4734. shift
  4735. build_cpu=$1
  4736. build_vendor=$2
  4737. shift; shift
  4738. # Remember, the first character of IFS is used to create $*,
  4739. # except with old shells:
  4740. build_os=$*
  4741. IFS=$ac_save_IFS
  4742. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4744. printf %s "checking host system type... " >&6; }
  4745. if test ${ac_cv_host+y}
  4746. then :
  4747. printf %s "(cached) " >&6
  4748. else case e in #(
  4749. e) if test "x$host_alias" = x; then
  4750. ac_cv_host=$ac_cv_build
  4751. else
  4752. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  4753. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  4754. fi
  4755. ;;
  4756. esac
  4757. fi
  4758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4759. printf "%s\n" "$ac_cv_host" >&6; }
  4760. case $ac_cv_host in
  4761. *-*-*) ;;
  4762. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4763. esac
  4764. host=$ac_cv_host
  4765. ac_save_IFS=$IFS; IFS='-'
  4766. set x $ac_cv_host
  4767. shift
  4768. host_cpu=$1
  4769. host_vendor=$2
  4770. shift; shift
  4771. # Remember, the first character of IFS is used to create $*,
  4772. # except with old shells:
  4773. host_os=$*
  4774. IFS=$ac_save_IFS
  4775. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4776. # Backslashify metacharacters that are still active within
  4777. # double-quoted strings.
  4778. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4779. # Same as above, but do not quote variable references.
  4780. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4781. # Sed substitution to delay expansion of an escaped shell variable in a
  4782. # double_quote_subst'ed string.
  4783. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4784. # Sed substitution to delay expansion of an escaped single quote.
  4785. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4786. # Sed substitution to avoid accidental globbing in evaled expressions
  4787. no_glob_subst='s/\*/\\\*/g'
  4788. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4789. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4790. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4792. printf %s "checking how to print strings... " >&6; }
  4793. # Test print first, because it will be a builtin if present.
  4794. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4795. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4796. ECHO='print -r --'
  4797. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4798. ECHO='printf %s\n'
  4799. else
  4800. # Use this function as a fallback that always works.
  4801. func_fallback_echo ()
  4802. {
  4803. eval 'cat <<_LTECHO_EOF
  4804. $1
  4805. _LTECHO_EOF'
  4806. }
  4807. ECHO='func_fallback_echo'
  4808. fi
  4809. # func_echo_all arg...
  4810. # Invoke $ECHO with all args, space-separated.
  4811. func_echo_all ()
  4812. {
  4813. $ECHO ""
  4814. }
  4815. case $ECHO in
  4816. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4817. printf "%s\n" "printf" >&6; } ;;
  4818. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4819. printf "%s\n" "print -r" >&6; } ;;
  4820. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4821. printf "%s\n" "cat" >&6; } ;;
  4822. esac
  4823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4824. printf %s "checking for a sed that does not truncate output... " >&6; }
  4825. if test ${ac_cv_path_SED+y}
  4826. then :
  4827. printf %s "(cached) " >&6
  4828. else case e in #(
  4829. e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4830. for ac_i in 1 2 3 4 5 6 7; do
  4831. ac_script="$ac_script$as_nl$ac_script"
  4832. done
  4833. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4834. { ac_script=; unset ac_script;}
  4835. if test -z "$SED"; then
  4836. ac_path_SED_found=false
  4837. # Loop through the user's path and test for each of PROGNAME-LIST
  4838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4839. for as_dir in $PATH
  4840. do
  4841. IFS=$as_save_IFS
  4842. case $as_dir in #(((
  4843. '') as_dir=./ ;;
  4844. */) ;;
  4845. *) as_dir=$as_dir/ ;;
  4846. esac
  4847. for ac_prog in sed gsed
  4848. do
  4849. for ac_exec_ext in '' $ac_executable_extensions; do
  4850. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4851. as_fn_executable_p "$ac_path_SED" || continue
  4852. # Check for GNU ac_path_SED and select it if it is found.
  4853. # Check for GNU $ac_path_SED
  4854. case `"$ac_path_SED" --version 2>&1` in #(
  4855. *GNU*)
  4856. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4857. #(
  4858. *)
  4859. ac_count=0
  4860. printf %s 0123456789 >"conftest.in"
  4861. while :
  4862. do
  4863. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4864. mv "conftest.tmp" "conftest.in"
  4865. cp "conftest.in" "conftest.nl"
  4866. printf "%s\n" '' >> "conftest.nl"
  4867. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4868. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4869. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4870. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4871. # Best one so far, save it but keep looking for a better one
  4872. ac_cv_path_SED="$ac_path_SED"
  4873. ac_path_SED_max=$ac_count
  4874. fi
  4875. # 10*(2^10) chars as input seems more than enough
  4876. test $ac_count -gt 10 && break
  4877. done
  4878. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4879. esac
  4880. $ac_path_SED_found && break 3
  4881. done
  4882. done
  4883. done
  4884. IFS=$as_save_IFS
  4885. if test -z "$ac_cv_path_SED"; then
  4886. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4887. fi
  4888. else
  4889. ac_cv_path_SED=$SED
  4890. fi
  4891. ;;
  4892. esac
  4893. fi
  4894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4895. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4896. SED="$ac_cv_path_SED"
  4897. rm -f conftest.sed
  4898. test -z "$SED" && SED=sed
  4899. Xsed="$SED -e 1s/^X//"
  4900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4901. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4902. if test ${ac_cv_path_GREP+y}
  4903. then :
  4904. printf %s "(cached) " >&6
  4905. else case e in #(
  4906. e) if test -z "$GREP"; then
  4907. ac_path_GREP_found=false
  4908. # Loop through the user's path and test for each of PROGNAME-LIST
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4911. do
  4912. IFS=$as_save_IFS
  4913. case $as_dir in #(((
  4914. '') as_dir=./ ;;
  4915. */) ;;
  4916. *) as_dir=$as_dir/ ;;
  4917. esac
  4918. for ac_prog in grep ggrep
  4919. do
  4920. for ac_exec_ext in '' $ac_executable_extensions; do
  4921. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4922. as_fn_executable_p "$ac_path_GREP" || continue
  4923. # Check for GNU ac_path_GREP and select it if it is found.
  4924. # Check for GNU $ac_path_GREP
  4925. case `"$ac_path_GREP" --version 2>&1` in #(
  4926. *GNU*)
  4927. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4928. #(
  4929. *)
  4930. ac_count=0
  4931. printf %s 0123456789 >"conftest.in"
  4932. while :
  4933. do
  4934. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4935. mv "conftest.tmp" "conftest.in"
  4936. cp "conftest.in" "conftest.nl"
  4937. printf "%s\n" 'GREP' >> "conftest.nl"
  4938. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4939. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4940. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4941. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4942. # Best one so far, save it but keep looking for a better one
  4943. ac_cv_path_GREP="$ac_path_GREP"
  4944. ac_path_GREP_max=$ac_count
  4945. fi
  4946. # 10*(2^10) chars as input seems more than enough
  4947. test $ac_count -gt 10 && break
  4948. done
  4949. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4950. esac
  4951. $ac_path_GREP_found && break 3
  4952. done
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. if test -z "$ac_cv_path_GREP"; then
  4957. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4958. fi
  4959. else
  4960. ac_cv_path_GREP=$GREP
  4961. fi
  4962. ;;
  4963. esac
  4964. fi
  4965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4966. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4967. GREP="$ac_cv_path_GREP"
  4968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4969. printf %s "checking for egrep... " >&6; }
  4970. if test ${ac_cv_path_EGREP+y}
  4971. then :
  4972. printf %s "(cached) " >&6
  4973. else case e in #(
  4974. e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4975. then ac_cv_path_EGREP="$GREP -E"
  4976. else
  4977. if test -z "$EGREP"; then
  4978. ac_path_EGREP_found=false
  4979. # Loop through the user's path and test for each of PROGNAME-LIST
  4980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4981. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4982. do
  4983. IFS=$as_save_IFS
  4984. case $as_dir in #(((
  4985. '') as_dir=./ ;;
  4986. */) ;;
  4987. *) as_dir=$as_dir/ ;;
  4988. esac
  4989. for ac_prog in egrep
  4990. do
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4993. as_fn_executable_p "$ac_path_EGREP" || continue
  4994. # Check for GNU ac_path_EGREP and select it if it is found.
  4995. # Check for GNU $ac_path_EGREP
  4996. case `"$ac_path_EGREP" --version 2>&1` in #(
  4997. *GNU*)
  4998. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4999. #(
  5000. *)
  5001. ac_count=0
  5002. printf %s 0123456789 >"conftest.in"
  5003. while :
  5004. do
  5005. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5006. mv "conftest.tmp" "conftest.in"
  5007. cp "conftest.in" "conftest.nl"
  5008. printf "%s\n" 'EGREP' >> "conftest.nl"
  5009. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5010. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5011. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5012. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5013. # Best one so far, save it but keep looking for a better one
  5014. ac_cv_path_EGREP="$ac_path_EGREP"
  5015. ac_path_EGREP_max=$ac_count
  5016. fi
  5017. # 10*(2^10) chars as input seems more than enough
  5018. test $ac_count -gt 10 && break
  5019. done
  5020. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5021. esac
  5022. $ac_path_EGREP_found && break 3
  5023. done
  5024. done
  5025. done
  5026. IFS=$as_save_IFS
  5027. if test -z "$ac_cv_path_EGREP"; then
  5028. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5029. fi
  5030. else
  5031. ac_cv_path_EGREP=$EGREP
  5032. fi
  5033. fi ;;
  5034. esac
  5035. fi
  5036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5037. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5038. EGREP="$ac_cv_path_EGREP"
  5039. EGREP_TRADITIONAL=$EGREP
  5040. ac_cv_path_EGREP_TRADITIONAL=$EGREP
  5041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5042. printf %s "checking for fgrep... " >&6; }
  5043. if test ${ac_cv_path_FGREP+y}
  5044. then :
  5045. printf %s "(cached) " >&6
  5046. else case e in #(
  5047. e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5048. then ac_cv_path_FGREP="$GREP -F"
  5049. else
  5050. if test -z "$FGREP"; then
  5051. ac_path_FGREP_found=false
  5052. # Loop through the user's path and test for each of PROGNAME-LIST
  5053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5054. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5055. do
  5056. IFS=$as_save_IFS
  5057. case $as_dir in #(((
  5058. '') as_dir=./ ;;
  5059. */) ;;
  5060. *) as_dir=$as_dir/ ;;
  5061. esac
  5062. for ac_prog in fgrep
  5063. do
  5064. for ac_exec_ext in '' $ac_executable_extensions; do
  5065. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5066. as_fn_executable_p "$ac_path_FGREP" || continue
  5067. # Check for GNU ac_path_FGREP and select it if it is found.
  5068. # Check for GNU $ac_path_FGREP
  5069. case `"$ac_path_FGREP" --version 2>&1` in #(
  5070. *GNU*)
  5071. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5072. #(
  5073. *)
  5074. ac_count=0
  5075. printf %s 0123456789 >"conftest.in"
  5076. while :
  5077. do
  5078. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5079. mv "conftest.tmp" "conftest.in"
  5080. cp "conftest.in" "conftest.nl"
  5081. printf "%s\n" 'FGREP' >> "conftest.nl"
  5082. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5083. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5084. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5085. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5086. # Best one so far, save it but keep looking for a better one
  5087. ac_cv_path_FGREP="$ac_path_FGREP"
  5088. ac_path_FGREP_max=$ac_count
  5089. fi
  5090. # 10*(2^10) chars as input seems more than enough
  5091. test $ac_count -gt 10 && break
  5092. done
  5093. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5094. esac
  5095. $ac_path_FGREP_found && break 3
  5096. done
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. if test -z "$ac_cv_path_FGREP"; then
  5101. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5102. fi
  5103. else
  5104. ac_cv_path_FGREP=$FGREP
  5105. fi
  5106. fi ;;
  5107. esac
  5108. fi
  5109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5110. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5111. FGREP="$ac_cv_path_FGREP"
  5112. test -z "$GREP" && GREP=grep
  5113. # Check whether --with-gnu-ld was given.
  5114. if test ${with_gnu_ld+y}
  5115. then :
  5116. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5117. else case e in #(
  5118. e) with_gnu_ld=no ;;
  5119. esac
  5120. fi
  5121. ac_prog=ld
  5122. if test yes = "$GCC"; then
  5123. # Check if gcc -print-prog-name=ld gives a path.
  5124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5125. printf %s "checking for ld used by $CC... " >&6; }
  5126. case $host in
  5127. *-*-mingw*)
  5128. # gcc leaves a trailing carriage return, which upsets mingw
  5129. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5130. *)
  5131. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5132. esac
  5133. case $ac_prog in
  5134. # Accept absolute paths.
  5135. [\\/]* | ?:[\\/]*)
  5136. re_direlt='/[^/][^/]*/\.\./'
  5137. # Canonicalize the pathname of ld
  5138. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5139. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5140. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5141. done
  5142. test -z "$LD" && LD=$ac_prog
  5143. ;;
  5144. "")
  5145. # If it fails, then pretend we aren't using GCC.
  5146. ac_prog=ld
  5147. ;;
  5148. *)
  5149. # If it is relative, then search for the first ld in PATH.
  5150. with_gnu_ld=unknown
  5151. ;;
  5152. esac
  5153. elif test yes = "$with_gnu_ld"; then
  5154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5155. printf %s "checking for GNU ld... " >&6; }
  5156. else
  5157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5158. printf %s "checking for non-GNU ld... " >&6; }
  5159. fi
  5160. if test ${lt_cv_path_LD+y}
  5161. then :
  5162. printf %s "(cached) " >&6
  5163. else case e in #(
  5164. e) if test -z "$LD"; then
  5165. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5166. for ac_dir in $PATH; do
  5167. IFS=$lt_save_ifs
  5168. test -z "$ac_dir" && ac_dir=.
  5169. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5170. lt_cv_path_LD=$ac_dir/$ac_prog
  5171. # Check to see if the program is GNU ld. I'd rather use --version,
  5172. # but apparently some variants of GNU ld only accept -v.
  5173. # Break only if it was the GNU/non-GNU ld that we prefer.
  5174. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5175. *GNU* | *'with BFD'*)
  5176. test no != "$with_gnu_ld" && break
  5177. ;;
  5178. *)
  5179. test yes != "$with_gnu_ld" && break
  5180. ;;
  5181. esac
  5182. fi
  5183. done
  5184. IFS=$lt_save_ifs
  5185. else
  5186. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5187. fi ;;
  5188. esac
  5189. fi
  5190. LD=$lt_cv_path_LD
  5191. if test -n "$LD"; then
  5192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5193. printf "%s\n" "$LD" >&6; }
  5194. else
  5195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. printf "%s\n" "no" >&6; }
  5197. fi
  5198. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5200. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5201. if test ${lt_cv_prog_gnu_ld+y}
  5202. then :
  5203. printf %s "(cached) " >&6
  5204. else case e in #(
  5205. e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5206. case `$LD -v 2>&1 </dev/null` in
  5207. *GNU* | *'with BFD'*)
  5208. lt_cv_prog_gnu_ld=yes
  5209. ;;
  5210. *)
  5211. lt_cv_prog_gnu_ld=no
  5212. ;;
  5213. esac ;;
  5214. esac
  5215. fi
  5216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5217. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5218. with_gnu_ld=$lt_cv_prog_gnu_ld
  5219. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5220. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5221. if test ${lt_cv_path_NM+y}
  5222. then :
  5223. printf %s "(cached) " >&6
  5224. else case e in #(
  5225. e) if test -n "$NM"; then
  5226. # Let the user override the test.
  5227. lt_cv_path_NM=$NM
  5228. else
  5229. lt_nm_to_check=${ac_tool_prefix}nm
  5230. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5231. lt_nm_to_check="$lt_nm_to_check nm"
  5232. fi
  5233. for lt_tmp_nm in $lt_nm_to_check; do
  5234. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5235. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5236. IFS=$lt_save_ifs
  5237. test -z "$ac_dir" && ac_dir=.
  5238. tmp_nm=$ac_dir/$lt_tmp_nm
  5239. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5240. # Check to see if the nm accepts a BSD-compat flag.
  5241. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5242. # nm: unknown option "B" ignored
  5243. # Tru64's nm complains that /dev/null is an invalid object file
  5244. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5245. case $build_os in
  5246. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5247. *) lt_bad_file=/dev/null ;;
  5248. esac
  5249. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  5250. *$lt_bad_file* | *'Invalid file or object type'*)
  5251. lt_cv_path_NM="$tmp_nm -B"
  5252. break 2
  5253. ;;
  5254. *)
  5255. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  5256. */dev/null*)
  5257. lt_cv_path_NM="$tmp_nm -p"
  5258. break 2
  5259. ;;
  5260. *)
  5261. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5262. continue # so that we can try to find one that supports BSD flags
  5263. ;;
  5264. esac
  5265. ;;
  5266. esac
  5267. fi
  5268. done
  5269. IFS=$lt_save_ifs
  5270. done
  5271. : ${lt_cv_path_NM=no}
  5272. fi ;;
  5273. esac
  5274. fi
  5275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5276. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5277. if test no != "$lt_cv_path_NM"; then
  5278. NM=$lt_cv_path_NM
  5279. else
  5280. # Didn't find any BSD compatible name lister, look for dumpbin.
  5281. if test -n "$DUMPBIN"; then :
  5282. # Let the user override the test.
  5283. else
  5284. if test -n "$ac_tool_prefix"; then
  5285. for ac_prog in dumpbin "link -dump"
  5286. do
  5287. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5288. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5290. printf %s "checking for $ac_word... " >&6; }
  5291. if test ${ac_cv_prog_DUMPBIN+y}
  5292. then :
  5293. printf %s "(cached) " >&6
  5294. else case e in #(
  5295. e) if test -n "$DUMPBIN"; then
  5296. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5297. else
  5298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5299. for as_dir in $PATH
  5300. do
  5301. IFS=$as_save_IFS
  5302. case $as_dir in #(((
  5303. '') as_dir=./ ;;
  5304. */) ;;
  5305. *) as_dir=$as_dir/ ;;
  5306. esac
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5309. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. fi ;;
  5317. esac
  5318. fi
  5319. DUMPBIN=$ac_cv_prog_DUMPBIN
  5320. if test -n "$DUMPBIN"; then
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5322. printf "%s\n" "$DUMPBIN" >&6; }
  5323. else
  5324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5325. printf "%s\n" "no" >&6; }
  5326. fi
  5327. test -n "$DUMPBIN" && break
  5328. done
  5329. fi
  5330. if test -z "$DUMPBIN"; then
  5331. ac_ct_DUMPBIN=$DUMPBIN
  5332. for ac_prog in dumpbin "link -dump"
  5333. do
  5334. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5335. set dummy $ac_prog; ac_word=$2
  5336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5337. printf %s "checking for $ac_word... " >&6; }
  5338. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5339. then :
  5340. printf %s "(cached) " >&6
  5341. else case e in #(
  5342. e) if test -n "$ac_ct_DUMPBIN"; then
  5343. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5344. else
  5345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5346. for as_dir in $PATH
  5347. do
  5348. IFS=$as_save_IFS
  5349. case $as_dir in #(((
  5350. '') as_dir=./ ;;
  5351. */) ;;
  5352. *) as_dir=$as_dir/ ;;
  5353. esac
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5356. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5357. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. fi ;;
  5364. esac
  5365. fi
  5366. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5367. if test -n "$ac_ct_DUMPBIN"; then
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5369. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5370. else
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5372. printf "%s\n" "no" >&6; }
  5373. fi
  5374. test -n "$ac_ct_DUMPBIN" && break
  5375. done
  5376. if test "x$ac_ct_DUMPBIN" = x; then
  5377. DUMPBIN=":"
  5378. else
  5379. case $cross_compiling:$ac_tool_warned in
  5380. yes:)
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5382. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5383. ac_tool_warned=yes ;;
  5384. esac
  5385. DUMPBIN=$ac_ct_DUMPBIN
  5386. fi
  5387. fi
  5388. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  5389. *COFF*)
  5390. DUMPBIN="$DUMPBIN -symbols -headers"
  5391. ;;
  5392. *)
  5393. DUMPBIN=:
  5394. ;;
  5395. esac
  5396. fi
  5397. if test : != "$DUMPBIN"; then
  5398. NM=$DUMPBIN
  5399. fi
  5400. fi
  5401. test -z "$NM" && NM=nm
  5402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5403. printf %s "checking the name lister ($NM) interface... " >&6; }
  5404. if test ${lt_cv_nm_interface+y}
  5405. then :
  5406. printf %s "(cached) " >&6
  5407. else case e in #(
  5408. e) lt_cv_nm_interface="BSD nm"
  5409. echo "int some_variable = 0;" > conftest.$ac_ext
  5410. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5411. (eval "$ac_compile" 2>conftest.err)
  5412. cat conftest.err >&5
  5413. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5414. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5415. cat conftest.err >&5
  5416. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5417. cat conftest.out >&5
  5418. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5419. lt_cv_nm_interface="MS dumpbin"
  5420. fi
  5421. rm -f conftest* ;;
  5422. esac
  5423. fi
  5424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5425. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  5426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5427. printf %s "checking whether ln -s works... " >&6; }
  5428. LN_S=$as_ln_s
  5429. if test "$LN_S" = "ln -s"; then
  5430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5431. printf "%s\n" "yes" >&6; }
  5432. else
  5433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5434. printf "%s\n" "no, using $LN_S" >&6; }
  5435. fi
  5436. # find the maximum length of command line arguments
  5437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5438. printf %s "checking the maximum length of command line arguments... " >&6; }
  5439. if test ${lt_cv_sys_max_cmd_len+y}
  5440. then :
  5441. printf %s "(cached) " >&6
  5442. else case e in #(
  5443. e) i=0
  5444. teststring=ABCD
  5445. case $build_os in
  5446. msdosdjgpp*)
  5447. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5448. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5449. # during glob expansion). Even if it were fixed, the result of this
  5450. # check would be larger than it should be.
  5451. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5452. ;;
  5453. gnu*)
  5454. # Under GNU Hurd, this test is not required because there is
  5455. # no limit to the length of command line arguments.
  5456. # Libtool will interpret -1 as no limit whatsoever
  5457. lt_cv_sys_max_cmd_len=-1;
  5458. ;;
  5459. cygwin* | mingw* | cegcc*)
  5460. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5461. # about 5 minutes as the teststring grows exponentially.
  5462. # Worse, since 9x/ME are not pre-emptively multitasking,
  5463. # you end up with a "frozen" computer, even though with patience
  5464. # the test eventually succeeds (with a max line length of 256k).
  5465. # Instead, let's just punt: use the minimum linelength reported by
  5466. # all of the supported platforms: 8192 (on NT/2K/XP).
  5467. lt_cv_sys_max_cmd_len=8192;
  5468. ;;
  5469. mint*)
  5470. # On MiNT this can take a long time and run out of memory.
  5471. lt_cv_sys_max_cmd_len=8192;
  5472. ;;
  5473. amigaos*)
  5474. # On AmigaOS with pdksh, this test takes hours, literally.
  5475. # So we just punt and use a minimum line length of 8192.
  5476. lt_cv_sys_max_cmd_len=8192;
  5477. ;;
  5478. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  5479. # This has been around since 386BSD, at least. Likely further.
  5480. if test -x /sbin/sysctl; then
  5481. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5482. elif test -x /usr/sbin/sysctl; then
  5483. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5484. else
  5485. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5486. fi
  5487. # And add a safety zone
  5488. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5489. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5490. ;;
  5491. interix*)
  5492. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5493. lt_cv_sys_max_cmd_len=196608
  5494. ;;
  5495. os2*)
  5496. # The test takes a long time on OS/2.
  5497. lt_cv_sys_max_cmd_len=8192
  5498. ;;
  5499. osf*)
  5500. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5501. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5502. # nice to cause kernel panics so lets avoid the loop below.
  5503. # First set a reasonable default.
  5504. lt_cv_sys_max_cmd_len=16384
  5505. #
  5506. if test -x /sbin/sysconfig; then
  5507. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5508. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5509. esac
  5510. fi
  5511. ;;
  5512. sco3.2v5*)
  5513. lt_cv_sys_max_cmd_len=102400
  5514. ;;
  5515. sysv5* | sco5v6* | sysv4.2uw2*)
  5516. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5517. if test -n "$kargmax"; then
  5518. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
  5519. else
  5520. lt_cv_sys_max_cmd_len=32768
  5521. fi
  5522. ;;
  5523. *)
  5524. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5525. if test -n "$lt_cv_sys_max_cmd_len" && \
  5526. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5527. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5528. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5529. else
  5530. # Make teststring a little bigger before we do anything with it.
  5531. # a 1K string should be a reasonable start.
  5532. for i in 1 2 3 4 5 6 7 8; do
  5533. teststring=$teststring$teststring
  5534. done
  5535. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5536. # If test is not a shell built-in, we'll probably end up computing a
  5537. # maximum length that is only half of the actual maximum length, but
  5538. # we can't tell.
  5539. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5540. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5541. test 17 != "$i" # 1/2 MB should be enough
  5542. do
  5543. i=`expr $i + 1`
  5544. teststring=$teststring$teststring
  5545. done
  5546. # Only check the string length outside the loop.
  5547. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5548. teststring=
  5549. # Add a significant safety factor because C++ compilers can tack on
  5550. # massive amounts of additional arguments before passing them to the
  5551. # linker. It appears as though 1/2 is a usable value.
  5552. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5553. fi
  5554. ;;
  5555. esac
  5556. ;;
  5557. esac
  5558. fi
  5559. if test -n "$lt_cv_sys_max_cmd_len"; then
  5560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5561. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  5562. else
  5563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5564. printf "%s\n" "none" >&6; }
  5565. fi
  5566. max_cmd_len=$lt_cv_sys_max_cmd_len
  5567. : ${CP="cp -f"}
  5568. : ${MV="mv -f"}
  5569. : ${RM="rm -f"}
  5570. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5571. lt_unset=unset
  5572. else
  5573. lt_unset=false
  5574. fi
  5575. # test EBCDIC or ASCII
  5576. case `echo X|tr X '\101'` in
  5577. A) # ASCII based system
  5578. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5579. lt_SP2NL='tr \040 \012'
  5580. lt_NL2SP='tr \015\012 \040\040'
  5581. ;;
  5582. *) # EBCDIC based system
  5583. lt_SP2NL='tr \100 \n'
  5584. lt_NL2SP='tr \r\n \100\100'
  5585. ;;
  5586. esac
  5587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5588. printf %s "checking how to convert $build file names to $host format... " >&6; }
  5589. if test ${lt_cv_to_host_file_cmd+y}
  5590. then :
  5591. printf %s "(cached) " >&6
  5592. else case e in #(
  5593. e) case $host in
  5594. *-*-mingw* )
  5595. case $build in
  5596. *-*-mingw* ) # actually msys
  5597. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5598. ;;
  5599. *-*-cygwin* )
  5600. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5601. ;;
  5602. * ) # otherwise, assume *nix
  5603. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5604. ;;
  5605. esac
  5606. ;;
  5607. *-*-cygwin* )
  5608. case $build in
  5609. *-*-mingw* ) # actually msys
  5610. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5611. ;;
  5612. *-*-cygwin* )
  5613. lt_cv_to_host_file_cmd=func_convert_file_noop
  5614. ;;
  5615. * ) # otherwise, assume *nix
  5616. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5617. ;;
  5618. esac
  5619. ;;
  5620. * ) # unhandled hosts (and "normal" native builds)
  5621. lt_cv_to_host_file_cmd=func_convert_file_noop
  5622. ;;
  5623. esac
  5624. ;;
  5625. esac
  5626. fi
  5627. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5629. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  5630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5631. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  5632. if test ${lt_cv_to_tool_file_cmd+y}
  5633. then :
  5634. printf %s "(cached) " >&6
  5635. else case e in #(
  5636. e) #assume ordinary cross tools, or native build.
  5637. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5638. case $host in
  5639. *-*-mingw* )
  5640. case $build in
  5641. *-*-mingw* ) # actually msys
  5642. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5643. ;;
  5644. esac
  5645. ;;
  5646. esac
  5647. ;;
  5648. esac
  5649. fi
  5650. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5652. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5654. printf %s "checking for $LD option to reload object files... " >&6; }
  5655. if test ${lt_cv_ld_reload_flag+y}
  5656. then :
  5657. printf %s "(cached) " >&6
  5658. else case e in #(
  5659. e) lt_cv_ld_reload_flag='-r' ;;
  5660. esac
  5661. fi
  5662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5663. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5664. reload_flag=$lt_cv_ld_reload_flag
  5665. case $reload_flag in
  5666. "" | " "*) ;;
  5667. *) reload_flag=" $reload_flag" ;;
  5668. esac
  5669. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5670. case $host_os in
  5671. cygwin* | mingw* | pw32* | cegcc*)
  5672. if test yes != "$GCC"; then
  5673. reload_cmds=false
  5674. fi
  5675. ;;
  5676. darwin*)
  5677. if test yes = "$GCC"; then
  5678. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5679. else
  5680. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5681. fi
  5682. ;;
  5683. esac
  5684. if test -n "$ac_tool_prefix"; then
  5685. # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
  5686. set dummy ${ac_tool_prefix}file; ac_word=$2
  5687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5688. printf %s "checking for $ac_word... " >&6; }
  5689. if test ${ac_cv_prog_FILECMD+y}
  5690. then :
  5691. printf %s "(cached) " >&6
  5692. else case e in #(
  5693. e) if test -n "$FILECMD"; then
  5694. ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
  5695. else
  5696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5697. for as_dir in $PATH
  5698. do
  5699. IFS=$as_save_IFS
  5700. case $as_dir in #(((
  5701. '') as_dir=./ ;;
  5702. */) ;;
  5703. *) as_dir=$as_dir/ ;;
  5704. esac
  5705. for ac_exec_ext in '' $ac_executable_extensions; do
  5706. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5707. ac_cv_prog_FILECMD="${ac_tool_prefix}file"
  5708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5709. break 2
  5710. fi
  5711. done
  5712. done
  5713. IFS=$as_save_IFS
  5714. fi ;;
  5715. esac
  5716. fi
  5717. FILECMD=$ac_cv_prog_FILECMD
  5718. if test -n "$FILECMD"; then
  5719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
  5720. printf "%s\n" "$FILECMD" >&6; }
  5721. else
  5722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5723. printf "%s\n" "no" >&6; }
  5724. fi
  5725. fi
  5726. if test -z "$ac_cv_prog_FILECMD"; then
  5727. ac_ct_FILECMD=$FILECMD
  5728. # Extract the first word of "file", so it can be a program name with args.
  5729. set dummy file; ac_word=$2
  5730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. printf %s "checking for $ac_word... " >&6; }
  5732. if test ${ac_cv_prog_ac_ct_FILECMD+y}
  5733. then :
  5734. printf %s "(cached) " >&6
  5735. else case e in #(
  5736. e) if test -n "$ac_ct_FILECMD"; then
  5737. ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
  5738. else
  5739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5740. for as_dir in $PATH
  5741. do
  5742. IFS=$as_save_IFS
  5743. case $as_dir in #(((
  5744. '') as_dir=./ ;;
  5745. */) ;;
  5746. *) as_dir=$as_dir/ ;;
  5747. esac
  5748. for ac_exec_ext in '' $ac_executable_extensions; do
  5749. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5750. ac_cv_prog_ac_ct_FILECMD="file"
  5751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5752. break 2
  5753. fi
  5754. done
  5755. done
  5756. IFS=$as_save_IFS
  5757. fi ;;
  5758. esac
  5759. fi
  5760. ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
  5761. if test -n "$ac_ct_FILECMD"; then
  5762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
  5763. printf "%s\n" "$ac_ct_FILECMD" >&6; }
  5764. else
  5765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5766. printf "%s\n" "no" >&6; }
  5767. fi
  5768. if test "x$ac_ct_FILECMD" = x; then
  5769. FILECMD=":"
  5770. else
  5771. case $cross_compiling:$ac_tool_warned in
  5772. yes:)
  5773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5774. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5775. ac_tool_warned=yes ;;
  5776. esac
  5777. FILECMD=$ac_ct_FILECMD
  5778. fi
  5779. else
  5780. FILECMD="$ac_cv_prog_FILECMD"
  5781. fi
  5782. if test -n "$ac_tool_prefix"; then
  5783. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5784. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5786. printf %s "checking for $ac_word... " >&6; }
  5787. if test ${ac_cv_prog_OBJDUMP+y}
  5788. then :
  5789. printf %s "(cached) " >&6
  5790. else case e in #(
  5791. e) if test -n "$OBJDUMP"; then
  5792. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. case $as_dir in #(((
  5799. '') as_dir=./ ;;
  5800. */) ;;
  5801. *) as_dir=$as_dir/ ;;
  5802. esac
  5803. for ac_exec_ext in '' $ac_executable_extensions; do
  5804. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5805. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5806. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5807. break 2
  5808. fi
  5809. done
  5810. done
  5811. IFS=$as_save_IFS
  5812. fi ;;
  5813. esac
  5814. fi
  5815. OBJDUMP=$ac_cv_prog_OBJDUMP
  5816. if test -n "$OBJDUMP"; then
  5817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5818. printf "%s\n" "$OBJDUMP" >&6; }
  5819. else
  5820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. printf "%s\n" "no" >&6; }
  5822. fi
  5823. fi
  5824. if test -z "$ac_cv_prog_OBJDUMP"; then
  5825. ac_ct_OBJDUMP=$OBJDUMP
  5826. # Extract the first word of "objdump", so it can be a program name with args.
  5827. set dummy objdump; ac_word=$2
  5828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5829. printf %s "checking for $ac_word... " >&6; }
  5830. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5831. then :
  5832. printf %s "(cached) " >&6
  5833. else case e in #(
  5834. e) if test -n "$ac_ct_OBJDUMP"; then
  5835. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5836. else
  5837. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5838. for as_dir in $PATH
  5839. do
  5840. IFS=$as_save_IFS
  5841. case $as_dir in #(((
  5842. '') as_dir=./ ;;
  5843. */) ;;
  5844. *) as_dir=$as_dir/ ;;
  5845. esac
  5846. for ac_exec_ext in '' $ac_executable_extensions; do
  5847. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5848. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5849. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5850. break 2
  5851. fi
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. fi ;;
  5856. esac
  5857. fi
  5858. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5859. if test -n "$ac_ct_OBJDUMP"; then
  5860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5861. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5862. else
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5864. printf "%s\n" "no" >&6; }
  5865. fi
  5866. if test "x$ac_ct_OBJDUMP" = x; then
  5867. OBJDUMP="false"
  5868. else
  5869. case $cross_compiling:$ac_tool_warned in
  5870. yes:)
  5871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5872. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5873. ac_tool_warned=yes ;;
  5874. esac
  5875. OBJDUMP=$ac_ct_OBJDUMP
  5876. fi
  5877. else
  5878. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5879. fi
  5880. test -z "$OBJDUMP" && OBJDUMP=objdump
  5881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5882. printf %s "checking how to recognize dependent libraries... " >&6; }
  5883. if test ${lt_cv_deplibs_check_method+y}
  5884. then :
  5885. printf %s "(cached) " >&6
  5886. else case e in #(
  5887. e) lt_cv_file_magic_cmd='$MAGIC_CMD'
  5888. lt_cv_file_magic_test_file=
  5889. lt_cv_deplibs_check_method='unknown'
  5890. # Need to set the preceding variable on all platforms that support
  5891. # interlibrary dependencies.
  5892. # 'none' -- dependencies not supported.
  5893. # 'unknown' -- same as none, but documents that we really don't know.
  5894. # 'pass_all' -- all dependencies passed with no checks.
  5895. # 'test_compile' -- check by making test program.
  5896. # 'file_magic [[regex]]' -- check by looking for files in library path
  5897. # that responds to the $file_magic_cmd with a given extended regex.
  5898. # If you have 'file' or equivalent on your system and you're not sure
  5899. # whether 'pass_all' will *always* work, you probably want this one.
  5900. case $host_os in
  5901. aix[4-9]*)
  5902. lt_cv_deplibs_check_method=pass_all
  5903. ;;
  5904. beos*)
  5905. lt_cv_deplibs_check_method=pass_all
  5906. ;;
  5907. bsdi[45]*)
  5908. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5909. lt_cv_file_magic_cmd='$FILECMD -L'
  5910. lt_cv_file_magic_test_file=/shlib/libc.so
  5911. ;;
  5912. cygwin*)
  5913. # func_win32_libid is a shell function defined in ltmain.sh
  5914. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5915. lt_cv_file_magic_cmd='func_win32_libid'
  5916. ;;
  5917. mingw* | pw32*)
  5918. # Base MSYS/MinGW do not provide the 'file' command needed by
  5919. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5920. # unless we find 'file', for example because we are cross-compiling.
  5921. if ( file / ) >/dev/null 2>&1; then
  5922. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5923. lt_cv_file_magic_cmd='func_win32_libid'
  5924. else
  5925. # Keep this pattern in sync with the one in func_win32_libid.
  5926. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5927. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5928. fi
  5929. ;;
  5930. cegcc*)
  5931. # use the weaker test based on 'objdump'. See mingw*.
  5932. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5933. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5934. ;;
  5935. darwin* | rhapsody*)
  5936. lt_cv_deplibs_check_method=pass_all
  5937. ;;
  5938. freebsd* | dragonfly* | midnightbsd*)
  5939. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5940. case $host_cpu in
  5941. i*86 )
  5942. # Not sure whether the presence of OpenBSD here was a mistake.
  5943. # Let's accept both of them until this is cleared up.
  5944. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5945. lt_cv_file_magic_cmd=$FILECMD
  5946. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5947. ;;
  5948. esac
  5949. else
  5950. lt_cv_deplibs_check_method=pass_all
  5951. fi
  5952. ;;
  5953. haiku*)
  5954. lt_cv_deplibs_check_method=pass_all
  5955. ;;
  5956. hpux10.20* | hpux11*)
  5957. lt_cv_file_magic_cmd=$FILECMD
  5958. case $host_cpu in
  5959. ia64*)
  5960. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5961. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5962. ;;
  5963. hppa*64*)
  5964. 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]'
  5965. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5966. ;;
  5967. *)
  5968. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5969. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5970. ;;
  5971. esac
  5972. ;;
  5973. interix[3-9]*)
  5974. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5975. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5976. ;;
  5977. irix5* | irix6* | nonstopux*)
  5978. case $LD in
  5979. *-32|*"-32 ") libmagic=32-bit;;
  5980. *-n32|*"-n32 ") libmagic=N32;;
  5981. *-64|*"-64 ") libmagic=64-bit;;
  5982. *) libmagic=never-match;;
  5983. esac
  5984. lt_cv_deplibs_check_method=pass_all
  5985. ;;
  5986. # This must be glibc/ELF.
  5987. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5988. lt_cv_deplibs_check_method=pass_all
  5989. ;;
  5990. netbsd*)
  5991. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5992. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5993. else
  5994. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5995. fi
  5996. ;;
  5997. newos6*)
  5998. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5999. lt_cv_file_magic_cmd=$FILECMD
  6000. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6001. ;;
  6002. *nto* | *qnx*)
  6003. lt_cv_deplibs_check_method=pass_all
  6004. ;;
  6005. openbsd* | bitrig*)
  6006. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6007. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6008. else
  6009. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6010. fi
  6011. ;;
  6012. osf3* | osf4* | osf5*)
  6013. lt_cv_deplibs_check_method=pass_all
  6014. ;;
  6015. rdos*)
  6016. lt_cv_deplibs_check_method=pass_all
  6017. ;;
  6018. solaris*)
  6019. lt_cv_deplibs_check_method=pass_all
  6020. ;;
  6021. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6022. lt_cv_deplibs_check_method=pass_all
  6023. ;;
  6024. sysv4 | sysv4.3*)
  6025. case $host_vendor in
  6026. motorola)
  6027. 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]'
  6028. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6029. ;;
  6030. ncr)
  6031. lt_cv_deplibs_check_method=pass_all
  6032. ;;
  6033. sequent)
  6034. lt_cv_file_magic_cmd='/bin/file'
  6035. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6036. ;;
  6037. sni)
  6038. lt_cv_file_magic_cmd='/bin/file'
  6039. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6040. lt_cv_file_magic_test_file=/lib/libc.so
  6041. ;;
  6042. siemens)
  6043. lt_cv_deplibs_check_method=pass_all
  6044. ;;
  6045. pc)
  6046. lt_cv_deplibs_check_method=pass_all
  6047. ;;
  6048. esac
  6049. ;;
  6050. tpf*)
  6051. lt_cv_deplibs_check_method=pass_all
  6052. ;;
  6053. os2*)
  6054. lt_cv_deplibs_check_method=pass_all
  6055. ;;
  6056. esac
  6057. ;;
  6058. esac
  6059. fi
  6060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6061. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6062. file_magic_glob=
  6063. want_nocaseglob=no
  6064. if test "$build" = "$host"; then
  6065. case $host_os in
  6066. mingw* | pw32*)
  6067. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6068. want_nocaseglob=yes
  6069. else
  6070. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6071. fi
  6072. ;;
  6073. esac
  6074. fi
  6075. file_magic_cmd=$lt_cv_file_magic_cmd
  6076. deplibs_check_method=$lt_cv_deplibs_check_method
  6077. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6078. if test -n "$ac_tool_prefix"; then
  6079. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6080. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6082. printf %s "checking for $ac_word... " >&6; }
  6083. if test ${ac_cv_prog_DLLTOOL+y}
  6084. then :
  6085. printf %s "(cached) " >&6
  6086. else case e in #(
  6087. e) if test -n "$DLLTOOL"; then
  6088. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6089. else
  6090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6091. for as_dir in $PATH
  6092. do
  6093. IFS=$as_save_IFS
  6094. case $as_dir in #(((
  6095. '') as_dir=./ ;;
  6096. */) ;;
  6097. *) as_dir=$as_dir/ ;;
  6098. esac
  6099. for ac_exec_ext in '' $ac_executable_extensions; do
  6100. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6101. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6102. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6103. break 2
  6104. fi
  6105. done
  6106. done
  6107. IFS=$as_save_IFS
  6108. fi ;;
  6109. esac
  6110. fi
  6111. DLLTOOL=$ac_cv_prog_DLLTOOL
  6112. if test -n "$DLLTOOL"; then
  6113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6114. printf "%s\n" "$DLLTOOL" >&6; }
  6115. else
  6116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6117. printf "%s\n" "no" >&6; }
  6118. fi
  6119. fi
  6120. if test -z "$ac_cv_prog_DLLTOOL"; then
  6121. ac_ct_DLLTOOL=$DLLTOOL
  6122. # Extract the first word of "dlltool", so it can be a program name with args.
  6123. set dummy dlltool; ac_word=$2
  6124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6125. printf %s "checking for $ac_word... " >&6; }
  6126. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6127. then :
  6128. printf %s "(cached) " >&6
  6129. else case e in #(
  6130. e) if test -n "$ac_ct_DLLTOOL"; then
  6131. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6132. else
  6133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6134. for as_dir in $PATH
  6135. do
  6136. IFS=$as_save_IFS
  6137. case $as_dir in #(((
  6138. '') as_dir=./ ;;
  6139. */) ;;
  6140. *) as_dir=$as_dir/ ;;
  6141. esac
  6142. for ac_exec_ext in '' $ac_executable_extensions; do
  6143. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6144. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6145. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. IFS=$as_save_IFS
  6151. fi ;;
  6152. esac
  6153. fi
  6154. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6155. if test -n "$ac_ct_DLLTOOL"; then
  6156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6157. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6158. else
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6160. printf "%s\n" "no" >&6; }
  6161. fi
  6162. if test "x$ac_ct_DLLTOOL" = x; then
  6163. DLLTOOL="false"
  6164. else
  6165. case $cross_compiling:$ac_tool_warned in
  6166. yes:)
  6167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6168. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6169. ac_tool_warned=yes ;;
  6170. esac
  6171. DLLTOOL=$ac_ct_DLLTOOL
  6172. fi
  6173. else
  6174. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6175. fi
  6176. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6178. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6179. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6180. then :
  6181. printf %s "(cached) " >&6
  6182. else case e in #(
  6183. e) lt_cv_sharedlib_from_linklib_cmd='unknown'
  6184. case $host_os in
  6185. cygwin* | mingw* | pw32* | cegcc*)
  6186. # two different shell functions defined in ltmain.sh;
  6187. # decide which one to use based on capabilities of $DLLTOOL
  6188. case `$DLLTOOL --help 2>&1` in
  6189. *--identify-strict*)
  6190. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6191. ;;
  6192. *)
  6193. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6194. ;;
  6195. esac
  6196. ;;
  6197. *)
  6198. # fallback: assume linklib IS sharedlib
  6199. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6200. ;;
  6201. esac
  6202. ;;
  6203. esac
  6204. fi
  6205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6206. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6207. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6208. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6209. if test -n "$ac_tool_prefix"; then
  6210. for ac_prog in ar
  6211. do
  6212. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6213. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6215. printf %s "checking for $ac_word... " >&6; }
  6216. if test ${ac_cv_prog_AR+y}
  6217. then :
  6218. printf %s "(cached) " >&6
  6219. else case e in #(
  6220. e) if test -n "$AR"; then
  6221. ac_cv_prog_AR="$AR" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. case $as_dir in #(((
  6228. '') as_dir=./ ;;
  6229. */) ;;
  6230. *) as_dir=$as_dir/ ;;
  6231. esac
  6232. for ac_exec_ext in '' $ac_executable_extensions; do
  6233. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6234. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6236. break 2
  6237. fi
  6238. done
  6239. done
  6240. IFS=$as_save_IFS
  6241. fi ;;
  6242. esac
  6243. fi
  6244. AR=$ac_cv_prog_AR
  6245. if test -n "$AR"; then
  6246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6247. printf "%s\n" "$AR" >&6; }
  6248. else
  6249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6250. printf "%s\n" "no" >&6; }
  6251. fi
  6252. test -n "$AR" && break
  6253. done
  6254. fi
  6255. if test -z "$AR"; then
  6256. ac_ct_AR=$AR
  6257. for ac_prog in ar
  6258. do
  6259. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6260. set dummy $ac_prog; ac_word=$2
  6261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6262. printf %s "checking for $ac_word... " >&6; }
  6263. if test ${ac_cv_prog_ac_ct_AR+y}
  6264. then :
  6265. printf %s "(cached) " >&6
  6266. else case e in #(
  6267. e) if test -n "$ac_ct_AR"; then
  6268. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6269. else
  6270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6271. for as_dir in $PATH
  6272. do
  6273. IFS=$as_save_IFS
  6274. case $as_dir in #(((
  6275. '') as_dir=./ ;;
  6276. */) ;;
  6277. *) as_dir=$as_dir/ ;;
  6278. esac
  6279. for ac_exec_ext in '' $ac_executable_extensions; do
  6280. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6281. ac_cv_prog_ac_ct_AR="$ac_prog"
  6282. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6283. break 2
  6284. fi
  6285. done
  6286. done
  6287. IFS=$as_save_IFS
  6288. fi ;;
  6289. esac
  6290. fi
  6291. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6292. if test -n "$ac_ct_AR"; then
  6293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6294. printf "%s\n" "$ac_ct_AR" >&6; }
  6295. else
  6296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6297. printf "%s\n" "no" >&6; }
  6298. fi
  6299. test -n "$ac_ct_AR" && break
  6300. done
  6301. if test "x$ac_ct_AR" = x; then
  6302. AR="false"
  6303. else
  6304. case $cross_compiling:$ac_tool_warned in
  6305. yes:)
  6306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6307. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6308. ac_tool_warned=yes ;;
  6309. esac
  6310. AR=$ac_ct_AR
  6311. fi
  6312. fi
  6313. : ${AR=ar}
  6314. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  6315. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  6316. # higher priority because thats what people were doing historically (setting
  6317. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  6318. # variable obsoleted/removed.
  6319. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  6320. lt_ar_flags=$AR_FLAGS
  6321. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  6322. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  6323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6324. printf %s "checking for archiver @FILE support... " >&6; }
  6325. if test ${lt_cv_ar_at_file+y}
  6326. then :
  6327. printf %s "(cached) " >&6
  6328. else case e in #(
  6329. e) lt_cv_ar_at_file=no
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. int
  6333. main (void)
  6334. {
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. if ac_fn_c_try_compile "$LINENO"
  6340. then :
  6341. echo conftest.$ac_objext > conftest.lst
  6342. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6343. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6344. (eval $lt_ar_try) 2>&5
  6345. ac_status=$?
  6346. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6347. test $ac_status = 0; }
  6348. if test 0 -eq "$ac_status"; then
  6349. # Ensure the archiver fails upon bogus file names.
  6350. rm -f conftest.$ac_objext libconftest.a
  6351. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6352. (eval $lt_ar_try) 2>&5
  6353. ac_status=$?
  6354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6355. test $ac_status = 0; }
  6356. if test 0 -ne "$ac_status"; then
  6357. lt_cv_ar_at_file=@
  6358. fi
  6359. fi
  6360. rm -f conftest.* libconftest.a
  6361. fi
  6362. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6363. ;;
  6364. esac
  6365. fi
  6366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6367. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6368. if test no = "$lt_cv_ar_at_file"; then
  6369. archiver_list_spec=
  6370. else
  6371. archiver_list_spec=$lt_cv_ar_at_file
  6372. fi
  6373. if test -n "$ac_tool_prefix"; then
  6374. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6375. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6377. printf %s "checking for $ac_word... " >&6; }
  6378. if test ${ac_cv_prog_STRIP+y}
  6379. then :
  6380. printf %s "(cached) " >&6
  6381. else case e in #(
  6382. e) if test -n "$STRIP"; then
  6383. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6384. else
  6385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6386. for as_dir in $PATH
  6387. do
  6388. IFS=$as_save_IFS
  6389. case $as_dir in #(((
  6390. '') as_dir=./ ;;
  6391. */) ;;
  6392. *) as_dir=$as_dir/ ;;
  6393. esac
  6394. for ac_exec_ext in '' $ac_executable_extensions; do
  6395. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6396. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6397. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6398. break 2
  6399. fi
  6400. done
  6401. done
  6402. IFS=$as_save_IFS
  6403. fi ;;
  6404. esac
  6405. fi
  6406. STRIP=$ac_cv_prog_STRIP
  6407. if test -n "$STRIP"; then
  6408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6409. printf "%s\n" "$STRIP" >&6; }
  6410. else
  6411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. printf "%s\n" "no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_STRIP"; then
  6416. ac_ct_STRIP=$STRIP
  6417. # Extract the first word of "strip", so it can be a program name with args.
  6418. set dummy strip; ac_word=$2
  6419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. printf %s "checking for $ac_word... " >&6; }
  6421. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6422. then :
  6423. printf %s "(cached) " >&6
  6424. else case e in #(
  6425. e) if test -n "$ac_ct_STRIP"; then
  6426. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6427. else
  6428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6429. for as_dir in $PATH
  6430. do
  6431. IFS=$as_save_IFS
  6432. case $as_dir in #(((
  6433. '') as_dir=./ ;;
  6434. */) ;;
  6435. *) as_dir=$as_dir/ ;;
  6436. esac
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6439. ac_cv_prog_ac_ct_STRIP="strip"
  6440. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi ;;
  6447. esac
  6448. fi
  6449. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6450. if test -n "$ac_ct_STRIP"; then
  6451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6452. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6453. else
  6454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6455. printf "%s\n" "no" >&6; }
  6456. fi
  6457. if test "x$ac_ct_STRIP" = x; then
  6458. STRIP=":"
  6459. else
  6460. case $cross_compiling:$ac_tool_warned in
  6461. yes:)
  6462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6463. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6464. ac_tool_warned=yes ;;
  6465. esac
  6466. STRIP=$ac_ct_STRIP
  6467. fi
  6468. else
  6469. STRIP="$ac_cv_prog_STRIP"
  6470. fi
  6471. test -z "$STRIP" && STRIP=:
  6472. if test -n "$ac_tool_prefix"; then
  6473. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6474. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. printf %s "checking for $ac_word... " >&6; }
  6477. if test ${ac_cv_prog_RANLIB+y}
  6478. then :
  6479. printf %s "(cached) " >&6
  6480. else case e in #(
  6481. e) if test -n "$RANLIB"; then
  6482. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6483. else
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. case $as_dir in #(((
  6489. '') as_dir=./ ;;
  6490. */) ;;
  6491. *) as_dir=$as_dir/ ;;
  6492. esac
  6493. for ac_exec_ext in '' $ac_executable_extensions; do
  6494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6495. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6497. break 2
  6498. fi
  6499. done
  6500. done
  6501. IFS=$as_save_IFS
  6502. fi ;;
  6503. esac
  6504. fi
  6505. RANLIB=$ac_cv_prog_RANLIB
  6506. if test -n "$RANLIB"; then
  6507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6508. printf "%s\n" "$RANLIB" >&6; }
  6509. else
  6510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6511. printf "%s\n" "no" >&6; }
  6512. fi
  6513. fi
  6514. if test -z "$ac_cv_prog_RANLIB"; then
  6515. ac_ct_RANLIB=$RANLIB
  6516. # Extract the first word of "ranlib", so it can be a program name with args.
  6517. set dummy ranlib; ac_word=$2
  6518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6519. printf %s "checking for $ac_word... " >&6; }
  6520. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6521. then :
  6522. printf %s "(cached) " >&6
  6523. else case e in #(
  6524. e) if test -n "$ac_ct_RANLIB"; then
  6525. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6526. else
  6527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6528. for as_dir in $PATH
  6529. do
  6530. IFS=$as_save_IFS
  6531. case $as_dir in #(((
  6532. '') as_dir=./ ;;
  6533. */) ;;
  6534. *) as_dir=$as_dir/ ;;
  6535. esac
  6536. for ac_exec_ext in '' $ac_executable_extensions; do
  6537. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6538. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6540. break 2
  6541. fi
  6542. done
  6543. done
  6544. IFS=$as_save_IFS
  6545. fi ;;
  6546. esac
  6547. fi
  6548. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6549. if test -n "$ac_ct_RANLIB"; then
  6550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6551. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6552. else
  6553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6554. printf "%s\n" "no" >&6; }
  6555. fi
  6556. if test "x$ac_ct_RANLIB" = x; then
  6557. RANLIB=":"
  6558. else
  6559. case $cross_compiling:$ac_tool_warned in
  6560. yes:)
  6561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6563. ac_tool_warned=yes ;;
  6564. esac
  6565. RANLIB=$ac_ct_RANLIB
  6566. fi
  6567. else
  6568. RANLIB="$ac_cv_prog_RANLIB"
  6569. fi
  6570. test -z "$RANLIB" && RANLIB=:
  6571. # Determine commands to create old-style static archives.
  6572. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6573. old_postinstall_cmds='chmod 644 $oldlib'
  6574. old_postuninstall_cmds=
  6575. if test -n "$RANLIB"; then
  6576. case $host_os in
  6577. bitrig* | openbsd*)
  6578. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6579. ;;
  6580. *)
  6581. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6582. ;;
  6583. esac
  6584. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6585. fi
  6586. case $host_os in
  6587. darwin*)
  6588. lock_old_archive_extraction=yes ;;
  6589. *)
  6590. lock_old_archive_extraction=no ;;
  6591. esac
  6592. # If no C compiler was specified, use CC.
  6593. LTCC=${LTCC-"$CC"}
  6594. # If no C compiler flags were specified, use CFLAGS.
  6595. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6596. # Allow CC to be a program name with arguments.
  6597. compiler=$CC
  6598. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6600. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  6601. if test ${lt_cv_sys_global_symbol_pipe+y}
  6602. then :
  6603. printf %s "(cached) " >&6
  6604. else case e in #(
  6605. e)
  6606. # These are sane defaults that work on at least a few old systems.
  6607. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6608. # Character class describing NM global symbol codes.
  6609. symcode='[BCDEGRST]'
  6610. # Regexp to match symbols that can be accessed directly from C.
  6611. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6612. # Define system-specific variables.
  6613. case $host_os in
  6614. aix*)
  6615. symcode='[BCDT]'
  6616. ;;
  6617. cygwin* | mingw* | pw32* | cegcc*)
  6618. symcode='[ABCDGISTW]'
  6619. ;;
  6620. hpux*)
  6621. if test ia64 = "$host_cpu"; then
  6622. symcode='[ABCDEGRST]'
  6623. fi
  6624. ;;
  6625. irix* | nonstopux*)
  6626. symcode='[BCDEGRST]'
  6627. ;;
  6628. osf*)
  6629. symcode='[BCDEGQRST]'
  6630. ;;
  6631. solaris*)
  6632. symcode='[BDRT]'
  6633. ;;
  6634. sco3.2v5*)
  6635. symcode='[DT]'
  6636. ;;
  6637. sysv4.2uw2*)
  6638. symcode='[DT]'
  6639. ;;
  6640. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6641. symcode='[ABDT]'
  6642. ;;
  6643. sysv4)
  6644. symcode='[DFNSTU]'
  6645. ;;
  6646. esac
  6647. # If we're using GNU nm, then use its standard symbol codes.
  6648. case `$NM -V 2>&1` in
  6649. *GNU* | *'with BFD'*)
  6650. symcode='[ABCDGIRSTW]' ;;
  6651. esac
  6652. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6653. # Gets list of data symbols to import.
  6654. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  6655. # Adjust the below global symbol transforms to fixup imported variables.
  6656. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6657. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6658. lt_c_name_lib_hook="\
  6659. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6660. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6661. else
  6662. # Disable hooks by default.
  6663. lt_cv_sys_global_symbol_to_import=
  6664. lt_cdecl_hook=
  6665. lt_c_name_hook=
  6666. lt_c_name_lib_hook=
  6667. fi
  6668. # Transform an extracted symbol line into a proper C declaration.
  6669. # Some systems (esp. on ia64) link data and code symbols differently,
  6670. # so use this general approach.
  6671. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  6672. $lt_cdecl_hook\
  6673. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6674. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6675. # Transform an extracted symbol line into symbol name and symbol address
  6676. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  6677. $lt_c_name_hook\
  6678. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6679. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6680. # Transform an extracted symbol line into symbol name with lib prefix and
  6681. # symbol address.
  6682. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  6683. $lt_c_name_lib_hook\
  6684. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6685. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6686. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6687. # Handle CRLF in mingw tool chain
  6688. opt_cr=
  6689. case $build_os in
  6690. mingw*)
  6691. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6692. ;;
  6693. esac
  6694. # Try without a prefix underscore, then with it.
  6695. for ac_symprfx in "" "_"; do
  6696. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6697. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6698. # Write the raw and C identifiers.
  6699. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6700. # Fake it for dumpbin and say T for any non-static function,
  6701. # D for any global variable and I for any imported variable.
  6702. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  6703. # which start with @ or ?.
  6704. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6705. " {last_section=section; section=\$ 3};"\
  6706. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6707. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6708. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6709. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6710. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6711. " \$ 0!~/External *\|/{next};"\
  6712. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6713. " {if(hide[section]) next};"\
  6714. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6715. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6716. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6717. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6718. " ' prfx=^$ac_symprfx"
  6719. else
  6720. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6721. fi
  6722. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  6723. # Check to see that the pipe works correctly.
  6724. pipe_works=no
  6725. rm -f conftest*
  6726. cat > conftest.$ac_ext <<_LT_EOF
  6727. #ifdef __cplusplus
  6728. extern "C" {
  6729. #endif
  6730. char nm_test_var;
  6731. void nm_test_func(void);
  6732. void nm_test_func(void){}
  6733. #ifdef __cplusplus
  6734. }
  6735. #endif
  6736. int main(){nm_test_var='a';nm_test_func();return(0);}
  6737. _LT_EOF
  6738. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6739. (eval $ac_compile) 2>&5
  6740. ac_status=$?
  6741. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6742. test $ac_status = 0; }; then
  6743. # Now try to grab the symbols.
  6744. nlist=conftest.nm
  6745. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6746. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6747. ac_status=$?
  6748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6749. test $ac_status = 0; } && test -s "$nlist"; then
  6750. # Try sorting and uniquifying the output.
  6751. if sort "$nlist" | uniq > "$nlist"T; then
  6752. mv -f "$nlist"T "$nlist"
  6753. else
  6754. rm -f "$nlist"T
  6755. fi
  6756. # Make sure that we snagged all the symbols we need.
  6757. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6758. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6759. cat <<_LT_EOF > conftest.$ac_ext
  6760. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6761. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6762. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6763. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6764. # define LT_DLSYM_CONST
  6765. #elif defined __osf__
  6766. /* This system does not cope well with relocations in const data. */
  6767. # define LT_DLSYM_CONST
  6768. #else
  6769. # define LT_DLSYM_CONST const
  6770. #endif
  6771. #ifdef __cplusplus
  6772. extern "C" {
  6773. #endif
  6774. _LT_EOF
  6775. # Now generate the symbol file.
  6776. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6777. cat <<_LT_EOF >> conftest.$ac_ext
  6778. /* The mapping between symbol names and symbols. */
  6779. LT_DLSYM_CONST struct {
  6780. const char *name;
  6781. void *address;
  6782. }
  6783. lt__PROGRAM__LTX_preloaded_symbols[] =
  6784. {
  6785. { "@PROGRAM@", (void *) 0 },
  6786. _LT_EOF
  6787. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6788. cat <<\_LT_EOF >> conftest.$ac_ext
  6789. {0, (void *) 0}
  6790. };
  6791. /* This works around a problem in FreeBSD linker */
  6792. #ifdef FREEBSD_WORKAROUND
  6793. static const void *lt_preloaded_setup() {
  6794. return lt__PROGRAM__LTX_preloaded_symbols;
  6795. }
  6796. #endif
  6797. #ifdef __cplusplus
  6798. }
  6799. #endif
  6800. _LT_EOF
  6801. # Now try linking the two files.
  6802. mv conftest.$ac_objext conftstm.$ac_objext
  6803. lt_globsym_save_LIBS=$LIBS
  6804. lt_globsym_save_CFLAGS=$CFLAGS
  6805. LIBS=conftstm.$ac_objext
  6806. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6807. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6808. (eval $ac_link) 2>&5
  6809. ac_status=$?
  6810. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6811. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6812. pipe_works=yes
  6813. fi
  6814. LIBS=$lt_globsym_save_LIBS
  6815. CFLAGS=$lt_globsym_save_CFLAGS
  6816. else
  6817. echo "cannot find nm_test_func in $nlist" >&5
  6818. fi
  6819. else
  6820. echo "cannot find nm_test_var in $nlist" >&5
  6821. fi
  6822. else
  6823. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6824. fi
  6825. else
  6826. echo "$progname: failed program was:" >&5
  6827. cat conftest.$ac_ext >&5
  6828. fi
  6829. rm -rf conftest* conftst*
  6830. # Do not use the global_symbol_pipe unless it works.
  6831. if test yes = "$pipe_works"; then
  6832. break
  6833. else
  6834. lt_cv_sys_global_symbol_pipe=
  6835. fi
  6836. done
  6837. ;;
  6838. esac
  6839. fi
  6840. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6841. lt_cv_sys_global_symbol_to_cdecl=
  6842. fi
  6843. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6845. printf "%s\n" "failed" >&6; }
  6846. else
  6847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6848. printf "%s\n" "ok" >&6; }
  6849. fi
  6850. # Response file support.
  6851. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6852. nm_file_list_spec='@'
  6853. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6854. nm_file_list_spec='@'
  6855. fi
  6856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6857. printf %s "checking for sysroot... " >&6; }
  6858. # Check whether --with-sysroot was given.
  6859. if test ${with_sysroot+y}
  6860. then :
  6861. withval=$with_sysroot;
  6862. else case e in #(
  6863. e) with_sysroot=no ;;
  6864. esac
  6865. fi
  6866. lt_sysroot=
  6867. case $with_sysroot in #(
  6868. yes)
  6869. if test yes = "$GCC"; then
  6870. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6871. fi
  6872. ;; #(
  6873. /*)
  6874. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  6875. ;; #(
  6876. no|'')
  6877. ;; #(
  6878. *)
  6879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6880. printf "%s\n" "$with_sysroot" >&6; }
  6881. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6882. ;;
  6883. esac
  6884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6885. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6887. printf %s "checking for a working dd... " >&6; }
  6888. if test ${ac_cv_path_lt_DD+y}
  6889. then :
  6890. printf %s "(cached) " >&6
  6891. else case e in #(
  6892. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  6893. cat conftest.i conftest.i >conftest2.i
  6894. : ${lt_DD:=$DD}
  6895. if test -z "$lt_DD"; then
  6896. ac_path_lt_DD_found=false
  6897. # Loop through the user's path and test for each of PROGNAME-LIST
  6898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6899. for as_dir in $PATH
  6900. do
  6901. IFS=$as_save_IFS
  6902. case $as_dir in #(((
  6903. '') as_dir=./ ;;
  6904. */) ;;
  6905. *) as_dir=$as_dir/ ;;
  6906. esac
  6907. for ac_prog in dd
  6908. do
  6909. for ac_exec_ext in '' $ac_executable_extensions; do
  6910. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6911. as_fn_executable_p "$ac_path_lt_DD" || continue
  6912. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6913. cmp -s conftest.i conftest.out \
  6914. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6915. fi
  6916. $ac_path_lt_DD_found && break 3
  6917. done
  6918. done
  6919. done
  6920. IFS=$as_save_IFS
  6921. if test -z "$ac_cv_path_lt_DD"; then
  6922. :
  6923. fi
  6924. else
  6925. ac_cv_path_lt_DD=$lt_DD
  6926. fi
  6927. rm -f conftest.i conftest2.i conftest.out ;;
  6928. esac
  6929. fi
  6930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6931. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6933. printf %s "checking how to truncate binary pipes... " >&6; }
  6934. if test ${lt_cv_truncate_bin+y}
  6935. then :
  6936. printf %s "(cached) " >&6
  6937. else case e in #(
  6938. e) printf 0123456789abcdef0123456789abcdef >conftest.i
  6939. cat conftest.i conftest.i >conftest2.i
  6940. lt_cv_truncate_bin=
  6941. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6942. cmp -s conftest.i conftest.out \
  6943. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6944. fi
  6945. rm -f conftest.i conftest2.i conftest.out
  6946. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
  6947. esac
  6948. fi
  6949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6950. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6951. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6952. func_cc_basename ()
  6953. {
  6954. for cc_temp in $*""; do
  6955. case $cc_temp in
  6956. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6957. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6958. \-*) ;;
  6959. *) break;;
  6960. esac
  6961. done
  6962. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6963. }
  6964. # Check whether --enable-libtool-lock was given.
  6965. if test ${enable_libtool_lock+y}
  6966. then :
  6967. enableval=$enable_libtool_lock;
  6968. fi
  6969. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6970. # Some flags need to be propagated to the compiler or linker for good
  6971. # libtool support.
  6972. case $host in
  6973. ia64-*-hpux*)
  6974. # Find out what ABI is being produced by ac_compile, and set mode
  6975. # options accordingly.
  6976. echo 'int i;' > conftest.$ac_ext
  6977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6978. (eval $ac_compile) 2>&5
  6979. ac_status=$?
  6980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6981. test $ac_status = 0; }; then
  6982. case `$FILECMD conftest.$ac_objext` in
  6983. *ELF-32*)
  6984. HPUX_IA64_MODE=32
  6985. ;;
  6986. *ELF-64*)
  6987. HPUX_IA64_MODE=64
  6988. ;;
  6989. esac
  6990. fi
  6991. rm -rf conftest*
  6992. ;;
  6993. *-*-irix6*)
  6994. # Find out what ABI is being produced by ac_compile, and set linker
  6995. # options accordingly.
  6996. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6997. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6998. (eval $ac_compile) 2>&5
  6999. ac_status=$?
  7000. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7001. test $ac_status = 0; }; then
  7002. if test yes = "$lt_cv_prog_gnu_ld"; then
  7003. case `$FILECMD conftest.$ac_objext` in
  7004. *32-bit*)
  7005. LD="${LD-ld} -melf32bsmip"
  7006. ;;
  7007. *N32*)
  7008. LD="${LD-ld} -melf32bmipn32"
  7009. ;;
  7010. *64-bit*)
  7011. LD="${LD-ld} -melf64bmip"
  7012. ;;
  7013. esac
  7014. else
  7015. case `$FILECMD conftest.$ac_objext` in
  7016. *32-bit*)
  7017. LD="${LD-ld} -32"
  7018. ;;
  7019. *N32*)
  7020. LD="${LD-ld} -n32"
  7021. ;;
  7022. *64-bit*)
  7023. LD="${LD-ld} -64"
  7024. ;;
  7025. esac
  7026. fi
  7027. fi
  7028. rm -rf conftest*
  7029. ;;
  7030. mips64*-*linux*)
  7031. # Find out what ABI is being produced by ac_compile, and set linker
  7032. # options accordingly.
  7033. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7034. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7035. (eval $ac_compile) 2>&5
  7036. ac_status=$?
  7037. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7038. test $ac_status = 0; }; then
  7039. emul=elf
  7040. case `$FILECMD conftest.$ac_objext` in
  7041. *32-bit*)
  7042. emul="${emul}32"
  7043. ;;
  7044. *64-bit*)
  7045. emul="${emul}64"
  7046. ;;
  7047. esac
  7048. case `$FILECMD conftest.$ac_objext` in
  7049. *MSB*)
  7050. emul="${emul}btsmip"
  7051. ;;
  7052. *LSB*)
  7053. emul="${emul}ltsmip"
  7054. ;;
  7055. esac
  7056. case `$FILECMD conftest.$ac_objext` in
  7057. *N32*)
  7058. emul="${emul}n32"
  7059. ;;
  7060. esac
  7061. LD="${LD-ld} -m $emul"
  7062. fi
  7063. rm -rf conftest*
  7064. ;;
  7065. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7066. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7067. # Find out what ABI is being produced by ac_compile, and set linker
  7068. # options accordingly. Note that the listed cases only cover the
  7069. # situations where additional linker options are needed (such as when
  7070. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7071. # vice versa); the common cases where no linker options are needed do
  7072. # not appear in the list.
  7073. echo 'int i;' > conftest.$ac_ext
  7074. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7075. (eval $ac_compile) 2>&5
  7076. ac_status=$?
  7077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7078. test $ac_status = 0; }; then
  7079. case `$FILECMD conftest.o` in
  7080. *32-bit*)
  7081. case $host in
  7082. x86_64-*kfreebsd*-gnu)
  7083. LD="${LD-ld} -m elf_i386_fbsd"
  7084. ;;
  7085. x86_64-*linux*)
  7086. case `$FILECMD conftest.o` in
  7087. *x86-64*)
  7088. LD="${LD-ld} -m elf32_x86_64"
  7089. ;;
  7090. *)
  7091. LD="${LD-ld} -m elf_i386"
  7092. ;;
  7093. esac
  7094. ;;
  7095. powerpc64le-*linux*)
  7096. LD="${LD-ld} -m elf32lppclinux"
  7097. ;;
  7098. powerpc64-*linux*)
  7099. LD="${LD-ld} -m elf32ppclinux"
  7100. ;;
  7101. s390x-*linux*)
  7102. LD="${LD-ld} -m elf_s390"
  7103. ;;
  7104. sparc64-*linux*)
  7105. LD="${LD-ld} -m elf32_sparc"
  7106. ;;
  7107. esac
  7108. ;;
  7109. *64-bit*)
  7110. case $host in
  7111. x86_64-*kfreebsd*-gnu)
  7112. LD="${LD-ld} -m elf_x86_64_fbsd"
  7113. ;;
  7114. x86_64-*linux*)
  7115. LD="${LD-ld} -m elf_x86_64"
  7116. ;;
  7117. powerpcle-*linux*)
  7118. LD="${LD-ld} -m elf64lppc"
  7119. ;;
  7120. powerpc-*linux*)
  7121. LD="${LD-ld} -m elf64ppc"
  7122. ;;
  7123. s390*-*linux*|s390*-*tpf*)
  7124. LD="${LD-ld} -m elf64_s390"
  7125. ;;
  7126. sparc*-*linux*)
  7127. LD="${LD-ld} -m elf64_sparc"
  7128. ;;
  7129. esac
  7130. ;;
  7131. esac
  7132. fi
  7133. rm -rf conftest*
  7134. ;;
  7135. *-*-sco3.2v5*)
  7136. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7137. SAVE_CFLAGS=$CFLAGS
  7138. CFLAGS="$CFLAGS -belf"
  7139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7140. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7141. if test ${lt_cv_cc_needs_belf+y}
  7142. then :
  7143. printf %s "(cached) " >&6
  7144. else case e in #(
  7145. e) ac_ext=c
  7146. ac_cpp='$CPP $CPPFLAGS'
  7147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7151. /* end confdefs.h. */
  7152. int
  7153. main (void)
  7154. {
  7155. ;
  7156. return 0;
  7157. }
  7158. _ACEOF
  7159. if ac_fn_c_try_link "$LINENO"
  7160. then :
  7161. lt_cv_cc_needs_belf=yes
  7162. else case e in #(
  7163. e) lt_cv_cc_needs_belf=no ;;
  7164. esac
  7165. fi
  7166. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7167. conftest$ac_exeext conftest.$ac_ext
  7168. ac_ext=c
  7169. ac_cpp='$CPP $CPPFLAGS'
  7170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7173. ;;
  7174. esac
  7175. fi
  7176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7177. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7178. if test yes != "$lt_cv_cc_needs_belf"; then
  7179. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7180. CFLAGS=$SAVE_CFLAGS
  7181. fi
  7182. ;;
  7183. *-*solaris*)
  7184. # Find out what ABI is being produced by ac_compile, and set linker
  7185. # options accordingly.
  7186. echo 'int i;' > conftest.$ac_ext
  7187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7188. (eval $ac_compile) 2>&5
  7189. ac_status=$?
  7190. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7191. test $ac_status = 0; }; then
  7192. case `$FILECMD conftest.o` in
  7193. *64-bit*)
  7194. case $lt_cv_prog_gnu_ld in
  7195. yes*)
  7196. case $host in
  7197. i?86-*-solaris*|x86_64-*-solaris*)
  7198. LD="${LD-ld} -m elf_x86_64"
  7199. ;;
  7200. sparc*-*-solaris*)
  7201. LD="${LD-ld} -m elf64_sparc"
  7202. ;;
  7203. esac
  7204. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7205. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7206. LD=${LD-ld}_sol2
  7207. fi
  7208. ;;
  7209. *)
  7210. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7211. LD="${LD-ld} -64"
  7212. fi
  7213. ;;
  7214. esac
  7215. ;;
  7216. esac
  7217. fi
  7218. rm -rf conftest*
  7219. ;;
  7220. esac
  7221. need_locks=$enable_libtool_lock
  7222. if test -n "$ac_tool_prefix"; then
  7223. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7224. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7226. printf %s "checking for $ac_word... " >&6; }
  7227. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7228. then :
  7229. printf %s "(cached) " >&6
  7230. else case e in #(
  7231. e) if test -n "$MANIFEST_TOOL"; then
  7232. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7233. else
  7234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7235. for as_dir in $PATH
  7236. do
  7237. IFS=$as_save_IFS
  7238. case $as_dir in #(((
  7239. '') as_dir=./ ;;
  7240. */) ;;
  7241. *) as_dir=$as_dir/ ;;
  7242. esac
  7243. for ac_exec_ext in '' $ac_executable_extensions; do
  7244. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7245. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7246. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7247. break 2
  7248. fi
  7249. done
  7250. done
  7251. IFS=$as_save_IFS
  7252. fi ;;
  7253. esac
  7254. fi
  7255. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7256. if test -n "$MANIFEST_TOOL"; then
  7257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7258. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7259. else
  7260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7261. printf "%s\n" "no" >&6; }
  7262. fi
  7263. fi
  7264. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7265. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7266. # Extract the first word of "mt", so it can be a program name with args.
  7267. set dummy mt; ac_word=$2
  7268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7269. printf %s "checking for $ac_word... " >&6; }
  7270. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7271. then :
  7272. printf %s "(cached) " >&6
  7273. else case e in #(
  7274. e) if test -n "$ac_ct_MANIFEST_TOOL"; then
  7275. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7276. else
  7277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7278. for as_dir in $PATH
  7279. do
  7280. IFS=$as_save_IFS
  7281. case $as_dir in #(((
  7282. '') as_dir=./ ;;
  7283. */) ;;
  7284. *) as_dir=$as_dir/ ;;
  7285. esac
  7286. for ac_exec_ext in '' $ac_executable_extensions; do
  7287. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7288. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7289. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7290. break 2
  7291. fi
  7292. done
  7293. done
  7294. IFS=$as_save_IFS
  7295. fi ;;
  7296. esac
  7297. fi
  7298. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7299. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7301. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7302. else
  7303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7304. printf "%s\n" "no" >&6; }
  7305. fi
  7306. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7307. MANIFEST_TOOL=":"
  7308. else
  7309. case $cross_compiling:$ac_tool_warned in
  7310. yes:)
  7311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7312. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7313. ac_tool_warned=yes ;;
  7314. esac
  7315. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7316. fi
  7317. else
  7318. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7319. fi
  7320. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7322. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7323. if test ${lt_cv_path_mainfest_tool+y}
  7324. then :
  7325. printf %s "(cached) " >&6
  7326. else case e in #(
  7327. e) lt_cv_path_mainfest_tool=no
  7328. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7329. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7330. cat conftest.err >&5
  7331. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7332. lt_cv_path_mainfest_tool=yes
  7333. fi
  7334. rm -f conftest* ;;
  7335. esac
  7336. fi
  7337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7338. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7339. if test yes != "$lt_cv_path_mainfest_tool"; then
  7340. MANIFEST_TOOL=:
  7341. fi
  7342. case $host_os in
  7343. rhapsody* | darwin*)
  7344. if test -n "$ac_tool_prefix"; then
  7345. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7346. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7348. printf %s "checking for $ac_word... " >&6; }
  7349. if test ${ac_cv_prog_DSYMUTIL+y}
  7350. then :
  7351. printf %s "(cached) " >&6
  7352. else case e in #(
  7353. e) if test -n "$DSYMUTIL"; then
  7354. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7355. else
  7356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7357. for as_dir in $PATH
  7358. do
  7359. IFS=$as_save_IFS
  7360. case $as_dir in #(((
  7361. '') as_dir=./ ;;
  7362. */) ;;
  7363. *) as_dir=$as_dir/ ;;
  7364. esac
  7365. for ac_exec_ext in '' $ac_executable_extensions; do
  7366. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7367. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7368. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7369. break 2
  7370. fi
  7371. done
  7372. done
  7373. IFS=$as_save_IFS
  7374. fi ;;
  7375. esac
  7376. fi
  7377. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7378. if test -n "$DSYMUTIL"; then
  7379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7380. printf "%s\n" "$DSYMUTIL" >&6; }
  7381. else
  7382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7383. printf "%s\n" "no" >&6; }
  7384. fi
  7385. fi
  7386. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7387. ac_ct_DSYMUTIL=$DSYMUTIL
  7388. # Extract the first word of "dsymutil", so it can be a program name with args.
  7389. set dummy dsymutil; ac_word=$2
  7390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7391. printf %s "checking for $ac_word... " >&6; }
  7392. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7393. then :
  7394. printf %s "(cached) " >&6
  7395. else case e in #(
  7396. e) if test -n "$ac_ct_DSYMUTIL"; then
  7397. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7398. else
  7399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7400. for as_dir in $PATH
  7401. do
  7402. IFS=$as_save_IFS
  7403. case $as_dir in #(((
  7404. '') as_dir=./ ;;
  7405. */) ;;
  7406. *) as_dir=$as_dir/ ;;
  7407. esac
  7408. for ac_exec_ext in '' $ac_executable_extensions; do
  7409. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7410. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7411. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7412. break 2
  7413. fi
  7414. done
  7415. done
  7416. IFS=$as_save_IFS
  7417. fi ;;
  7418. esac
  7419. fi
  7420. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7421. if test -n "$ac_ct_DSYMUTIL"; then
  7422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7423. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7424. else
  7425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7426. printf "%s\n" "no" >&6; }
  7427. fi
  7428. if test "x$ac_ct_DSYMUTIL" = x; then
  7429. DSYMUTIL=":"
  7430. else
  7431. case $cross_compiling:$ac_tool_warned in
  7432. yes:)
  7433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7434. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7435. ac_tool_warned=yes ;;
  7436. esac
  7437. DSYMUTIL=$ac_ct_DSYMUTIL
  7438. fi
  7439. else
  7440. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7441. fi
  7442. if test -n "$ac_tool_prefix"; then
  7443. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7444. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7446. printf %s "checking for $ac_word... " >&6; }
  7447. if test ${ac_cv_prog_NMEDIT+y}
  7448. then :
  7449. printf %s "(cached) " >&6
  7450. else case e in #(
  7451. e) if test -n "$NMEDIT"; then
  7452. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7453. else
  7454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7455. for as_dir in $PATH
  7456. do
  7457. IFS=$as_save_IFS
  7458. case $as_dir in #(((
  7459. '') as_dir=./ ;;
  7460. */) ;;
  7461. *) as_dir=$as_dir/ ;;
  7462. esac
  7463. for ac_exec_ext in '' $ac_executable_extensions; do
  7464. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7465. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7466. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7467. break 2
  7468. fi
  7469. done
  7470. done
  7471. IFS=$as_save_IFS
  7472. fi ;;
  7473. esac
  7474. fi
  7475. NMEDIT=$ac_cv_prog_NMEDIT
  7476. if test -n "$NMEDIT"; then
  7477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7478. printf "%s\n" "$NMEDIT" >&6; }
  7479. else
  7480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7481. printf "%s\n" "no" >&6; }
  7482. fi
  7483. fi
  7484. if test -z "$ac_cv_prog_NMEDIT"; then
  7485. ac_ct_NMEDIT=$NMEDIT
  7486. # Extract the first word of "nmedit", so it can be a program name with args.
  7487. set dummy nmedit; ac_word=$2
  7488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7489. printf %s "checking for $ac_word... " >&6; }
  7490. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7491. then :
  7492. printf %s "(cached) " >&6
  7493. else case e in #(
  7494. e) if test -n "$ac_ct_NMEDIT"; then
  7495. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7496. else
  7497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7498. for as_dir in $PATH
  7499. do
  7500. IFS=$as_save_IFS
  7501. case $as_dir in #(((
  7502. '') as_dir=./ ;;
  7503. */) ;;
  7504. *) as_dir=$as_dir/ ;;
  7505. esac
  7506. for ac_exec_ext in '' $ac_executable_extensions; do
  7507. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7508. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7510. break 2
  7511. fi
  7512. done
  7513. done
  7514. IFS=$as_save_IFS
  7515. fi ;;
  7516. esac
  7517. fi
  7518. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7519. if test -n "$ac_ct_NMEDIT"; then
  7520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7521. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7522. else
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7524. printf "%s\n" "no" >&6; }
  7525. fi
  7526. if test "x$ac_ct_NMEDIT" = x; then
  7527. NMEDIT=":"
  7528. else
  7529. case $cross_compiling:$ac_tool_warned in
  7530. yes:)
  7531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7532. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7533. ac_tool_warned=yes ;;
  7534. esac
  7535. NMEDIT=$ac_ct_NMEDIT
  7536. fi
  7537. else
  7538. NMEDIT="$ac_cv_prog_NMEDIT"
  7539. fi
  7540. if test -n "$ac_tool_prefix"; then
  7541. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7542. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7544. printf %s "checking for $ac_word... " >&6; }
  7545. if test ${ac_cv_prog_LIPO+y}
  7546. then :
  7547. printf %s "(cached) " >&6
  7548. else case e in #(
  7549. e) if test -n "$LIPO"; then
  7550. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7551. else
  7552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7553. for as_dir in $PATH
  7554. do
  7555. IFS=$as_save_IFS
  7556. case $as_dir in #(((
  7557. '') as_dir=./ ;;
  7558. */) ;;
  7559. *) as_dir=$as_dir/ ;;
  7560. esac
  7561. for ac_exec_ext in '' $ac_executable_extensions; do
  7562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7563. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7565. break 2
  7566. fi
  7567. done
  7568. done
  7569. IFS=$as_save_IFS
  7570. fi ;;
  7571. esac
  7572. fi
  7573. LIPO=$ac_cv_prog_LIPO
  7574. if test -n "$LIPO"; then
  7575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7576. printf "%s\n" "$LIPO" >&6; }
  7577. else
  7578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7579. printf "%s\n" "no" >&6; }
  7580. fi
  7581. fi
  7582. if test -z "$ac_cv_prog_LIPO"; then
  7583. ac_ct_LIPO=$LIPO
  7584. # Extract the first word of "lipo", so it can be a program name with args.
  7585. set dummy lipo; ac_word=$2
  7586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7587. printf %s "checking for $ac_word... " >&6; }
  7588. if test ${ac_cv_prog_ac_ct_LIPO+y}
  7589. then :
  7590. printf %s "(cached) " >&6
  7591. else case e in #(
  7592. e) if test -n "$ac_ct_LIPO"; then
  7593. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7594. else
  7595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7596. for as_dir in $PATH
  7597. do
  7598. IFS=$as_save_IFS
  7599. case $as_dir in #(((
  7600. '') as_dir=./ ;;
  7601. */) ;;
  7602. *) as_dir=$as_dir/ ;;
  7603. esac
  7604. for ac_exec_ext in '' $ac_executable_extensions; do
  7605. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7606. ac_cv_prog_ac_ct_LIPO="lipo"
  7607. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7608. break 2
  7609. fi
  7610. done
  7611. done
  7612. IFS=$as_save_IFS
  7613. fi ;;
  7614. esac
  7615. fi
  7616. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7617. if test -n "$ac_ct_LIPO"; then
  7618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7619. printf "%s\n" "$ac_ct_LIPO" >&6; }
  7620. else
  7621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7622. printf "%s\n" "no" >&6; }
  7623. fi
  7624. if test "x$ac_ct_LIPO" = x; then
  7625. LIPO=":"
  7626. else
  7627. case $cross_compiling:$ac_tool_warned in
  7628. yes:)
  7629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7631. ac_tool_warned=yes ;;
  7632. esac
  7633. LIPO=$ac_ct_LIPO
  7634. fi
  7635. else
  7636. LIPO="$ac_cv_prog_LIPO"
  7637. fi
  7638. if test -n "$ac_tool_prefix"; then
  7639. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7640. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7642. printf %s "checking for $ac_word... " >&6; }
  7643. if test ${ac_cv_prog_OTOOL+y}
  7644. then :
  7645. printf %s "(cached) " >&6
  7646. else case e in #(
  7647. e) if test -n "$OTOOL"; then
  7648. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7649. else
  7650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7651. for as_dir in $PATH
  7652. do
  7653. IFS=$as_save_IFS
  7654. case $as_dir in #(((
  7655. '') as_dir=./ ;;
  7656. */) ;;
  7657. *) as_dir=$as_dir/ ;;
  7658. esac
  7659. for ac_exec_ext in '' $ac_executable_extensions; do
  7660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7661. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7663. break 2
  7664. fi
  7665. done
  7666. done
  7667. IFS=$as_save_IFS
  7668. fi ;;
  7669. esac
  7670. fi
  7671. OTOOL=$ac_cv_prog_OTOOL
  7672. if test -n "$OTOOL"; then
  7673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7674. printf "%s\n" "$OTOOL" >&6; }
  7675. else
  7676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7677. printf "%s\n" "no" >&6; }
  7678. fi
  7679. fi
  7680. if test -z "$ac_cv_prog_OTOOL"; then
  7681. ac_ct_OTOOL=$OTOOL
  7682. # Extract the first word of "otool", so it can be a program name with args.
  7683. set dummy otool; ac_word=$2
  7684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7685. printf %s "checking for $ac_word... " >&6; }
  7686. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  7687. then :
  7688. printf %s "(cached) " >&6
  7689. else case e in #(
  7690. e) if test -n "$ac_ct_OTOOL"; then
  7691. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7692. else
  7693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7694. for as_dir in $PATH
  7695. do
  7696. IFS=$as_save_IFS
  7697. case $as_dir in #(((
  7698. '') as_dir=./ ;;
  7699. */) ;;
  7700. *) as_dir=$as_dir/ ;;
  7701. esac
  7702. for ac_exec_ext in '' $ac_executable_extensions; do
  7703. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7704. ac_cv_prog_ac_ct_OTOOL="otool"
  7705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7706. break 2
  7707. fi
  7708. done
  7709. done
  7710. IFS=$as_save_IFS
  7711. fi ;;
  7712. esac
  7713. fi
  7714. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7715. if test -n "$ac_ct_OTOOL"; then
  7716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7717. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  7718. else
  7719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7720. printf "%s\n" "no" >&6; }
  7721. fi
  7722. if test "x$ac_ct_OTOOL" = x; then
  7723. OTOOL=":"
  7724. else
  7725. case $cross_compiling:$ac_tool_warned in
  7726. yes:)
  7727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7728. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7729. ac_tool_warned=yes ;;
  7730. esac
  7731. OTOOL=$ac_ct_OTOOL
  7732. fi
  7733. else
  7734. OTOOL="$ac_cv_prog_OTOOL"
  7735. fi
  7736. if test -n "$ac_tool_prefix"; then
  7737. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7738. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7740. printf %s "checking for $ac_word... " >&6; }
  7741. if test ${ac_cv_prog_OTOOL64+y}
  7742. then :
  7743. printf %s "(cached) " >&6
  7744. else case e in #(
  7745. e) if test -n "$OTOOL64"; then
  7746. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7747. else
  7748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7749. for as_dir in $PATH
  7750. do
  7751. IFS=$as_save_IFS
  7752. case $as_dir in #(((
  7753. '') as_dir=./ ;;
  7754. */) ;;
  7755. *) as_dir=$as_dir/ ;;
  7756. esac
  7757. for ac_exec_ext in '' $ac_executable_extensions; do
  7758. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7759. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7761. break 2
  7762. fi
  7763. done
  7764. done
  7765. IFS=$as_save_IFS
  7766. fi ;;
  7767. esac
  7768. fi
  7769. OTOOL64=$ac_cv_prog_OTOOL64
  7770. if test -n "$OTOOL64"; then
  7771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7772. printf "%s\n" "$OTOOL64" >&6; }
  7773. else
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7775. printf "%s\n" "no" >&6; }
  7776. fi
  7777. fi
  7778. if test -z "$ac_cv_prog_OTOOL64"; then
  7779. ac_ct_OTOOL64=$OTOOL64
  7780. # Extract the first word of "otool64", so it can be a program name with args.
  7781. set dummy otool64; ac_word=$2
  7782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7783. printf %s "checking for $ac_word... " >&6; }
  7784. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7785. then :
  7786. printf %s "(cached) " >&6
  7787. else case e in #(
  7788. e) if test -n "$ac_ct_OTOOL64"; then
  7789. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7790. else
  7791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7792. for as_dir in $PATH
  7793. do
  7794. IFS=$as_save_IFS
  7795. case $as_dir in #(((
  7796. '') as_dir=./ ;;
  7797. */) ;;
  7798. *) as_dir=$as_dir/ ;;
  7799. esac
  7800. for ac_exec_ext in '' $ac_executable_extensions; do
  7801. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7802. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7804. break 2
  7805. fi
  7806. done
  7807. done
  7808. IFS=$as_save_IFS
  7809. fi ;;
  7810. esac
  7811. fi
  7812. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7813. if test -n "$ac_ct_OTOOL64"; then
  7814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7815. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7816. else
  7817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7818. printf "%s\n" "no" >&6; }
  7819. fi
  7820. if test "x$ac_ct_OTOOL64" = x; then
  7821. OTOOL64=":"
  7822. else
  7823. case $cross_compiling:$ac_tool_warned in
  7824. yes:)
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7826. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7827. ac_tool_warned=yes ;;
  7828. esac
  7829. OTOOL64=$ac_ct_OTOOL64
  7830. fi
  7831. else
  7832. OTOOL64="$ac_cv_prog_OTOOL64"
  7833. fi
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7835. printf %s "checking for -single_module linker flag... " >&6; }
  7836. if test ${lt_cv_apple_cc_single_mod+y}
  7837. then :
  7838. printf %s "(cached) " >&6
  7839. else case e in #(
  7840. e) lt_cv_apple_cc_single_mod=no
  7841. if test -z "$LT_MULTI_MODULE"; then
  7842. # By default we will add the -single_module flag. You can override
  7843. # by either setting the environment variable LT_MULTI_MODULE
  7844. # non-empty at configure time, or by adding -multi_module to the
  7845. # link flags.
  7846. rm -rf libconftest.dylib*
  7847. echo "int foo(void){return 1;}" > conftest.c
  7848. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7849. -dynamiclib -Wl,-single_module conftest.c" >&5
  7850. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7851. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7852. _lt_result=$?
  7853. # If there is a non-empty error log, and "single_module"
  7854. # appears in it, assume the flag caused a linker warning
  7855. if test -s conftest.err && $GREP single_module conftest.err; then
  7856. cat conftest.err >&5
  7857. # Otherwise, if the output was created with a 0 exit code from
  7858. # the compiler, it worked.
  7859. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7860. lt_cv_apple_cc_single_mod=yes
  7861. else
  7862. cat conftest.err >&5
  7863. fi
  7864. rm -rf libconftest.dylib*
  7865. rm -f conftest.*
  7866. fi ;;
  7867. esac
  7868. fi
  7869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7870. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7872. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7873. if test ${lt_cv_ld_exported_symbols_list+y}
  7874. then :
  7875. printf %s "(cached) " >&6
  7876. else case e in #(
  7877. e) lt_cv_ld_exported_symbols_list=no
  7878. save_LDFLAGS=$LDFLAGS
  7879. echo "_main" > conftest.sym
  7880. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7882. /* end confdefs.h. */
  7883. int
  7884. main (void)
  7885. {
  7886. ;
  7887. return 0;
  7888. }
  7889. _ACEOF
  7890. if ac_fn_c_try_link "$LINENO"
  7891. then :
  7892. lt_cv_ld_exported_symbols_list=yes
  7893. else case e in #(
  7894. e) lt_cv_ld_exported_symbols_list=no ;;
  7895. esac
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7898. conftest$ac_exeext conftest.$ac_ext
  7899. LDFLAGS=$save_LDFLAGS
  7900. ;;
  7901. esac
  7902. fi
  7903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7904. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7906. printf %s "checking for -force_load linker flag... " >&6; }
  7907. if test ${lt_cv_ld_force_load+y}
  7908. then :
  7909. printf %s "(cached) " >&6
  7910. else case e in #(
  7911. e) lt_cv_ld_force_load=no
  7912. cat > conftest.c << _LT_EOF
  7913. int forced_loaded() { return 2;}
  7914. _LT_EOF
  7915. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7916. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7917. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
  7918. $AR $AR_FLAGS libconftest.a conftest.o 2>&5
  7919. echo "$RANLIB libconftest.a" >&5
  7920. $RANLIB libconftest.a 2>&5
  7921. cat > conftest.c << _LT_EOF
  7922. int main() { return 0;}
  7923. _LT_EOF
  7924. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7925. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7926. _lt_result=$?
  7927. if test -s conftest.err && $GREP force_load conftest.err; then
  7928. cat conftest.err >&5
  7929. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7930. lt_cv_ld_force_load=yes
  7931. else
  7932. cat conftest.err >&5
  7933. fi
  7934. rm -f conftest.err libconftest.a conftest conftest.c
  7935. rm -rf conftest.dSYM
  7936. ;;
  7937. esac
  7938. fi
  7939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7940. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7941. case $host_os in
  7942. rhapsody* | darwin1.[012])
  7943. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7944. darwin1.*)
  7945. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7946. darwin*)
  7947. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7948. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7949. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7950. *)
  7951. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7952. esac
  7953. ;;
  7954. esac
  7955. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7956. _lt_dar_single_mod='$single_module'
  7957. fi
  7958. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7959. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7960. else
  7961. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7962. fi
  7963. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7964. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7965. else
  7966. _lt_dsymutil=
  7967. fi
  7968. ;;
  7969. esac
  7970. # func_munge_path_list VARIABLE PATH
  7971. # -----------------------------------
  7972. # VARIABLE is name of variable containing _space_ separated list of
  7973. # directories to be munged by the contents of PATH, which is string
  7974. # having a format:
  7975. # "DIR[:DIR]:"
  7976. # string "DIR[ DIR]" will be prepended to VARIABLE
  7977. # ":DIR[:DIR]"
  7978. # string "DIR[ DIR]" will be appended to VARIABLE
  7979. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7980. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7981. # "DIRA[ DIRA]" will be appended to VARIABLE
  7982. # "DIR[:DIR]"
  7983. # VARIABLE will be replaced by "DIR[ DIR]"
  7984. func_munge_path_list ()
  7985. {
  7986. case x$2 in
  7987. x)
  7988. ;;
  7989. *:)
  7990. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7991. ;;
  7992. x:*)
  7993. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7994. ;;
  7995. *::*)
  7996. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7997. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7998. ;;
  7999. *)
  8000. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8001. ;;
  8002. esac
  8003. }
  8004. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8005. "
  8006. if test "x$ac_cv_header_dlfcn_h" = xyes
  8007. then :
  8008. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8009. fi
  8010. # Set options
  8011. enable_win32_dll=yes
  8012. case $host in
  8013. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  8014. if test -n "$ac_tool_prefix"; then
  8015. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  8016. set dummy ${ac_tool_prefix}as; ac_word=$2
  8017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8018. printf %s "checking for $ac_word... " >&6; }
  8019. if test ${ac_cv_prog_AS+y}
  8020. then :
  8021. printf %s "(cached) " >&6
  8022. else case e in #(
  8023. e) if test -n "$AS"; then
  8024. ac_cv_prog_AS="$AS" # Let the user override the test.
  8025. else
  8026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8027. for as_dir in $PATH
  8028. do
  8029. IFS=$as_save_IFS
  8030. case $as_dir in #(((
  8031. '') as_dir=./ ;;
  8032. */) ;;
  8033. *) as_dir=$as_dir/ ;;
  8034. esac
  8035. for ac_exec_ext in '' $ac_executable_extensions; do
  8036. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8037. ac_cv_prog_AS="${ac_tool_prefix}as"
  8038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8039. break 2
  8040. fi
  8041. done
  8042. done
  8043. IFS=$as_save_IFS
  8044. fi ;;
  8045. esac
  8046. fi
  8047. AS=$ac_cv_prog_AS
  8048. if test -n "$AS"; then
  8049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  8050. printf "%s\n" "$AS" >&6; }
  8051. else
  8052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8053. printf "%s\n" "no" >&6; }
  8054. fi
  8055. fi
  8056. if test -z "$ac_cv_prog_AS"; then
  8057. ac_ct_AS=$AS
  8058. # Extract the first word of "as", so it can be a program name with args.
  8059. set dummy as; ac_word=$2
  8060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8061. printf %s "checking for $ac_word... " >&6; }
  8062. if test ${ac_cv_prog_ac_ct_AS+y}
  8063. then :
  8064. printf %s "(cached) " >&6
  8065. else case e in #(
  8066. e) if test -n "$ac_ct_AS"; then
  8067. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  8068. else
  8069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8070. for as_dir in $PATH
  8071. do
  8072. IFS=$as_save_IFS
  8073. case $as_dir in #(((
  8074. '') as_dir=./ ;;
  8075. */) ;;
  8076. *) as_dir=$as_dir/ ;;
  8077. esac
  8078. for ac_exec_ext in '' $ac_executable_extensions; do
  8079. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8080. ac_cv_prog_ac_ct_AS="as"
  8081. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8082. break 2
  8083. fi
  8084. done
  8085. done
  8086. IFS=$as_save_IFS
  8087. fi ;;
  8088. esac
  8089. fi
  8090. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  8091. if test -n "$ac_ct_AS"; then
  8092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  8093. printf "%s\n" "$ac_ct_AS" >&6; }
  8094. else
  8095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8096. printf "%s\n" "no" >&6; }
  8097. fi
  8098. if test "x$ac_ct_AS" = x; then
  8099. AS="false"
  8100. else
  8101. case $cross_compiling:$ac_tool_warned in
  8102. yes:)
  8103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8104. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8105. ac_tool_warned=yes ;;
  8106. esac
  8107. AS=$ac_ct_AS
  8108. fi
  8109. else
  8110. AS="$ac_cv_prog_AS"
  8111. fi
  8112. if test -n "$ac_tool_prefix"; then
  8113. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8114. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8116. printf %s "checking for $ac_word... " >&6; }
  8117. if test ${ac_cv_prog_DLLTOOL+y}
  8118. then :
  8119. printf %s "(cached) " >&6
  8120. else case e in #(
  8121. e) if test -n "$DLLTOOL"; then
  8122. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8123. else
  8124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8125. for as_dir in $PATH
  8126. do
  8127. IFS=$as_save_IFS
  8128. case $as_dir in #(((
  8129. '') as_dir=./ ;;
  8130. */) ;;
  8131. *) as_dir=$as_dir/ ;;
  8132. esac
  8133. for ac_exec_ext in '' $ac_executable_extensions; do
  8134. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8135. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8136. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8137. break 2
  8138. fi
  8139. done
  8140. done
  8141. IFS=$as_save_IFS
  8142. fi ;;
  8143. esac
  8144. fi
  8145. DLLTOOL=$ac_cv_prog_DLLTOOL
  8146. if test -n "$DLLTOOL"; then
  8147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8148. printf "%s\n" "$DLLTOOL" >&6; }
  8149. else
  8150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8151. printf "%s\n" "no" >&6; }
  8152. fi
  8153. fi
  8154. if test -z "$ac_cv_prog_DLLTOOL"; then
  8155. ac_ct_DLLTOOL=$DLLTOOL
  8156. # Extract the first word of "dlltool", so it can be a program name with args.
  8157. set dummy dlltool; ac_word=$2
  8158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8159. printf %s "checking for $ac_word... " >&6; }
  8160. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  8161. then :
  8162. printf %s "(cached) " >&6
  8163. else case e in #(
  8164. e) if test -n "$ac_ct_DLLTOOL"; then
  8165. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8166. else
  8167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8168. for as_dir in $PATH
  8169. do
  8170. IFS=$as_save_IFS
  8171. case $as_dir in #(((
  8172. '') as_dir=./ ;;
  8173. */) ;;
  8174. *) as_dir=$as_dir/ ;;
  8175. esac
  8176. for ac_exec_ext in '' $ac_executable_extensions; do
  8177. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8178. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8179. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8180. break 2
  8181. fi
  8182. done
  8183. done
  8184. IFS=$as_save_IFS
  8185. fi ;;
  8186. esac
  8187. fi
  8188. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8189. if test -n "$ac_ct_DLLTOOL"; then
  8190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8191. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  8192. else
  8193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8194. printf "%s\n" "no" >&6; }
  8195. fi
  8196. if test "x$ac_ct_DLLTOOL" = x; then
  8197. DLLTOOL="false"
  8198. else
  8199. case $cross_compiling:$ac_tool_warned in
  8200. yes:)
  8201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8202. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8203. ac_tool_warned=yes ;;
  8204. esac
  8205. DLLTOOL=$ac_ct_DLLTOOL
  8206. fi
  8207. else
  8208. DLLTOOL="$ac_cv_prog_DLLTOOL"
  8209. fi
  8210. if test -n "$ac_tool_prefix"; then
  8211. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8212. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8214. printf %s "checking for $ac_word... " >&6; }
  8215. if test ${ac_cv_prog_OBJDUMP+y}
  8216. then :
  8217. printf %s "(cached) " >&6
  8218. else case e in #(
  8219. e) if test -n "$OBJDUMP"; then
  8220. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8221. else
  8222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8223. for as_dir in $PATH
  8224. do
  8225. IFS=$as_save_IFS
  8226. case $as_dir in #(((
  8227. '') as_dir=./ ;;
  8228. */) ;;
  8229. *) as_dir=$as_dir/ ;;
  8230. esac
  8231. for ac_exec_ext in '' $ac_executable_extensions; do
  8232. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8233. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8234. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8235. break 2
  8236. fi
  8237. done
  8238. done
  8239. IFS=$as_save_IFS
  8240. fi ;;
  8241. esac
  8242. fi
  8243. OBJDUMP=$ac_cv_prog_OBJDUMP
  8244. if test -n "$OBJDUMP"; then
  8245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8246. printf "%s\n" "$OBJDUMP" >&6; }
  8247. else
  8248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8249. printf "%s\n" "no" >&6; }
  8250. fi
  8251. fi
  8252. if test -z "$ac_cv_prog_OBJDUMP"; then
  8253. ac_ct_OBJDUMP=$OBJDUMP
  8254. # Extract the first word of "objdump", so it can be a program name with args.
  8255. set dummy objdump; ac_word=$2
  8256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8257. printf %s "checking for $ac_word... " >&6; }
  8258. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  8259. then :
  8260. printf %s "(cached) " >&6
  8261. else case e in #(
  8262. e) if test -n "$ac_ct_OBJDUMP"; then
  8263. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8264. else
  8265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8266. for as_dir in $PATH
  8267. do
  8268. IFS=$as_save_IFS
  8269. case $as_dir in #(((
  8270. '') as_dir=./ ;;
  8271. */) ;;
  8272. *) as_dir=$as_dir/ ;;
  8273. esac
  8274. for ac_exec_ext in '' $ac_executable_extensions; do
  8275. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8276. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8277. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8278. break 2
  8279. fi
  8280. done
  8281. done
  8282. IFS=$as_save_IFS
  8283. fi ;;
  8284. esac
  8285. fi
  8286. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8287. if test -n "$ac_ct_OBJDUMP"; then
  8288. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8289. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  8290. else
  8291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8292. printf "%s\n" "no" >&6; }
  8293. fi
  8294. if test "x$ac_ct_OBJDUMP" = x; then
  8295. OBJDUMP="false"
  8296. else
  8297. case $cross_compiling:$ac_tool_warned in
  8298. yes:)
  8299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8300. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8301. ac_tool_warned=yes ;;
  8302. esac
  8303. OBJDUMP=$ac_ct_OBJDUMP
  8304. fi
  8305. else
  8306. OBJDUMP="$ac_cv_prog_OBJDUMP"
  8307. fi
  8308. ;;
  8309. esac
  8310. test -z "$AS" && AS=as
  8311. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8312. test -z "$OBJDUMP" && OBJDUMP=objdump
  8313. enable_dlopen=no
  8314. # Check whether --enable-shared was given.
  8315. if test ${enable_shared+y}
  8316. then :
  8317. enableval=$enable_shared; p=${PACKAGE-default}
  8318. case $enableval in
  8319. yes) enable_shared=yes ;;
  8320. no) enable_shared=no ;;
  8321. *)
  8322. enable_shared=no
  8323. # Look at the argument we got. We use all the common list separators.
  8324. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8325. for pkg in $enableval; do
  8326. IFS=$lt_save_ifs
  8327. if test "X$pkg" = "X$p"; then
  8328. enable_shared=yes
  8329. fi
  8330. done
  8331. IFS=$lt_save_ifs
  8332. ;;
  8333. esac
  8334. else case e in #(
  8335. e) enable_shared=yes ;;
  8336. esac
  8337. fi
  8338. # Check whether --enable-static was given.
  8339. if test ${enable_static+y}
  8340. then :
  8341. enableval=$enable_static; p=${PACKAGE-default}
  8342. case $enableval in
  8343. yes) enable_static=yes ;;
  8344. no) enable_static=no ;;
  8345. *)
  8346. enable_static=no
  8347. # Look at the argument we got. We use all the common list separators.
  8348. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8349. for pkg in $enableval; do
  8350. IFS=$lt_save_ifs
  8351. if test "X$pkg" = "X$p"; then
  8352. enable_static=yes
  8353. fi
  8354. done
  8355. IFS=$lt_save_ifs
  8356. ;;
  8357. esac
  8358. else case e in #(
  8359. e) enable_static=yes ;;
  8360. esac
  8361. fi
  8362. # Check whether --with-pic was given.
  8363. if test ${with_pic+y}
  8364. then :
  8365. withval=$with_pic; lt_p=${PACKAGE-default}
  8366. case $withval in
  8367. yes|no) pic_mode=$withval ;;
  8368. *)
  8369. pic_mode=default
  8370. # Look at the argument we got. We use all the common list separators.
  8371. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8372. for lt_pkg in $withval; do
  8373. IFS=$lt_save_ifs
  8374. if test "X$lt_pkg" = "X$lt_p"; then
  8375. pic_mode=yes
  8376. fi
  8377. done
  8378. IFS=$lt_save_ifs
  8379. ;;
  8380. esac
  8381. else case e in #(
  8382. e) pic_mode=default ;;
  8383. esac
  8384. fi
  8385. # Check whether --enable-fast-install was given.
  8386. if test ${enable_fast_install+y}
  8387. then :
  8388. enableval=$enable_fast_install; p=${PACKAGE-default}
  8389. case $enableval in
  8390. yes) enable_fast_install=yes ;;
  8391. no) enable_fast_install=no ;;
  8392. *)
  8393. enable_fast_install=no
  8394. # Look at the argument we got. We use all the common list separators.
  8395. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8396. for pkg in $enableval; do
  8397. IFS=$lt_save_ifs
  8398. if test "X$pkg" = "X$p"; then
  8399. enable_fast_install=yes
  8400. fi
  8401. done
  8402. IFS=$lt_save_ifs
  8403. ;;
  8404. esac
  8405. else case e in #(
  8406. e) enable_fast_install=yes ;;
  8407. esac
  8408. fi
  8409. shared_archive_member_spec=
  8410. case $host,$enable_shared in
  8411. power*-*-aix[5-9]*,yes)
  8412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8413. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8414. # Check whether --with-aix-soname was given.
  8415. if test ${with_aix_soname+y}
  8416. then :
  8417. withval=$with_aix_soname; case $withval in
  8418. aix|svr4|both)
  8419. ;;
  8420. *)
  8421. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8422. ;;
  8423. esac
  8424. lt_cv_with_aix_soname=$with_aix_soname
  8425. else case e in #(
  8426. e) if test ${lt_cv_with_aix_soname+y}
  8427. then :
  8428. printf %s "(cached) " >&6
  8429. else case e in #(
  8430. e) lt_cv_with_aix_soname=aix ;;
  8431. esac
  8432. fi
  8433. with_aix_soname=$lt_cv_with_aix_soname ;;
  8434. esac
  8435. fi
  8436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8437. printf "%s\n" "$with_aix_soname" >&6; }
  8438. if test aix != "$with_aix_soname"; then
  8439. # For the AIX way of multilib, we name the shared archive member
  8440. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8441. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8442. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8443. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8444. if test 64 = "${OBJECT_MODE-32}"; then
  8445. shared_archive_member_spec=shr_64
  8446. else
  8447. shared_archive_member_spec=shr
  8448. fi
  8449. fi
  8450. ;;
  8451. *)
  8452. with_aix_soname=aix
  8453. ;;
  8454. esac
  8455. # This can be used to rebuild libtool when needed
  8456. LIBTOOL_DEPS=$ltmain
  8457. # Always use our own libtool.
  8458. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8459. test -z "$LN_S" && LN_S="ln -s"
  8460. if test -n "${ZSH_VERSION+set}"; then
  8461. setopt NO_GLOB_SUBST
  8462. fi
  8463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8464. printf %s "checking for objdir... " >&6; }
  8465. if test ${lt_cv_objdir+y}
  8466. then :
  8467. printf %s "(cached) " >&6
  8468. else case e in #(
  8469. e) rm -f .libs 2>/dev/null
  8470. mkdir .libs 2>/dev/null
  8471. if test -d .libs; then
  8472. lt_cv_objdir=.libs
  8473. else
  8474. # MS-DOS does not allow filenames that begin with a dot.
  8475. lt_cv_objdir=_libs
  8476. fi
  8477. rmdir .libs 2>/dev/null ;;
  8478. esac
  8479. fi
  8480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8481. printf "%s\n" "$lt_cv_objdir" >&6; }
  8482. objdir=$lt_cv_objdir
  8483. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8484. case $host_os in
  8485. aix3*)
  8486. # AIX sometimes has problems with the GCC collect2 program. For some
  8487. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8488. # vanish in a puff of smoke.
  8489. if test set != "${COLLECT_NAMES+set}"; then
  8490. COLLECT_NAMES=
  8491. export COLLECT_NAMES
  8492. fi
  8493. ;;
  8494. esac
  8495. # Global variables:
  8496. ofile=libtool
  8497. can_build_shared=yes
  8498. # All known linkers require a '.a' archive for static linking (except MSVC and
  8499. # ICC, which need '.lib').
  8500. libext=a
  8501. with_gnu_ld=$lt_cv_prog_gnu_ld
  8502. old_CC=$CC
  8503. old_CFLAGS=$CFLAGS
  8504. # Set sane defaults for various variables
  8505. test -z "$CC" && CC=cc
  8506. test -z "$LTCC" && LTCC=$CC
  8507. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8508. test -z "$LD" && LD=ld
  8509. test -z "$ac_objext" && ac_objext=o
  8510. func_cc_basename $compiler
  8511. cc_basename=$func_cc_basename_result
  8512. # Only perform the check for file, if the check method requires it
  8513. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8514. case $deplibs_check_method in
  8515. file_magic*)
  8516. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8518. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8519. if test ${lt_cv_path_MAGIC_CMD+y}
  8520. then :
  8521. printf %s "(cached) " >&6
  8522. else case e in #(
  8523. e) case $MAGIC_CMD in
  8524. [\\/*] | ?:[\\/]*)
  8525. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8526. ;;
  8527. *)
  8528. lt_save_MAGIC_CMD=$MAGIC_CMD
  8529. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8530. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8531. for ac_dir in $ac_dummy; do
  8532. IFS=$lt_save_ifs
  8533. test -z "$ac_dir" && ac_dir=.
  8534. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8535. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8536. if test -n "$file_magic_test_file"; then
  8537. case $deplibs_check_method in
  8538. "file_magic "*)
  8539. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8540. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8541. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8542. $EGREP "$file_magic_regex" > /dev/null; then
  8543. :
  8544. else
  8545. cat <<_LT_EOF 1>&2
  8546. *** Warning: the command libtool uses to detect shared libraries,
  8547. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8548. *** The result is that libtool may fail to recognize shared libraries
  8549. *** as such. This will affect the creation of libtool libraries that
  8550. *** depend on shared libraries, but programs linked with such libtool
  8551. *** libraries will work regardless of this problem. Nevertheless, you
  8552. *** may want to report the problem to your system manager and/or to
  8553. *** [email protected]
  8554. _LT_EOF
  8555. fi ;;
  8556. esac
  8557. fi
  8558. break
  8559. fi
  8560. done
  8561. IFS=$lt_save_ifs
  8562. MAGIC_CMD=$lt_save_MAGIC_CMD
  8563. ;;
  8564. esac ;;
  8565. esac
  8566. fi
  8567. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8568. if test -n "$MAGIC_CMD"; then
  8569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8570. printf "%s\n" "$MAGIC_CMD" >&6; }
  8571. else
  8572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8573. printf "%s\n" "no" >&6; }
  8574. fi
  8575. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8576. if test -n "$ac_tool_prefix"; then
  8577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8578. printf %s "checking for file... " >&6; }
  8579. if test ${lt_cv_path_MAGIC_CMD+y}
  8580. then :
  8581. printf %s "(cached) " >&6
  8582. else case e in #(
  8583. e) case $MAGIC_CMD in
  8584. [\\/*] | ?:[\\/]*)
  8585. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8586. ;;
  8587. *)
  8588. lt_save_MAGIC_CMD=$MAGIC_CMD
  8589. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8590. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8591. for ac_dir in $ac_dummy; do
  8592. IFS=$lt_save_ifs
  8593. test -z "$ac_dir" && ac_dir=.
  8594. if test -f "$ac_dir/file"; then
  8595. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8596. if test -n "$file_magic_test_file"; then
  8597. case $deplibs_check_method in
  8598. "file_magic "*)
  8599. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8600. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8601. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8602. $EGREP "$file_magic_regex" > /dev/null; then
  8603. :
  8604. else
  8605. cat <<_LT_EOF 1>&2
  8606. *** Warning: the command libtool uses to detect shared libraries,
  8607. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8608. *** The result is that libtool may fail to recognize shared libraries
  8609. *** as such. This will affect the creation of libtool libraries that
  8610. *** depend on shared libraries, but programs linked with such libtool
  8611. *** libraries will work regardless of this problem. Nevertheless, you
  8612. *** may want to report the problem to your system manager and/or to
  8613. *** [email protected]
  8614. _LT_EOF
  8615. fi ;;
  8616. esac
  8617. fi
  8618. break
  8619. fi
  8620. done
  8621. IFS=$lt_save_ifs
  8622. MAGIC_CMD=$lt_save_MAGIC_CMD
  8623. ;;
  8624. esac ;;
  8625. esac
  8626. fi
  8627. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8628. if test -n "$MAGIC_CMD"; then
  8629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8630. printf "%s\n" "$MAGIC_CMD" >&6; }
  8631. else
  8632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8633. printf "%s\n" "no" >&6; }
  8634. fi
  8635. else
  8636. MAGIC_CMD=:
  8637. fi
  8638. fi
  8639. fi
  8640. ;;
  8641. esac
  8642. # Use C for the default configuration in the libtool script
  8643. lt_save_CC=$CC
  8644. ac_ext=c
  8645. ac_cpp='$CPP $CPPFLAGS'
  8646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8649. # Source file extension for C test sources.
  8650. ac_ext=c
  8651. # Object file extension for compiled C test sources.
  8652. objext=o
  8653. objext=$objext
  8654. # Code to be used in simple compile tests
  8655. lt_simple_compile_test_code="int some_variable = 0;"
  8656. # Code to be used in simple link tests
  8657. lt_simple_link_test_code='int main(){return(0);}'
  8658. # If no C compiler was specified, use CC.
  8659. LTCC=${LTCC-"$CC"}
  8660. # If no C compiler flags were specified, use CFLAGS.
  8661. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8662. # Allow CC to be a program name with arguments.
  8663. compiler=$CC
  8664. # Save the default compiler, since it gets overwritten when the other
  8665. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8666. compiler_DEFAULT=$CC
  8667. # save warnings/boilerplate of simple test code
  8668. ac_outfile=conftest.$ac_objext
  8669. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8670. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8671. _lt_compiler_boilerplate=`cat conftest.err`
  8672. $RM conftest*
  8673. ac_outfile=conftest.$ac_objext
  8674. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8675. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8676. _lt_linker_boilerplate=`cat conftest.err`
  8677. $RM -r conftest*
  8678. ## CAVEAT EMPTOR:
  8679. ## There is no encapsulation within the following macros, do not change
  8680. ## the running order or otherwise move them around unless you know exactly
  8681. ## what you are doing...
  8682. if test -n "$compiler"; then
  8683. lt_prog_compiler_no_builtin_flag=
  8684. if test yes = "$GCC"; then
  8685. case $cc_basename in
  8686. nvcc*)
  8687. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8688. *)
  8689. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8690. esac
  8691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8692. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8693. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8694. then :
  8695. printf %s "(cached) " >&6
  8696. else case e in #(
  8697. e) lt_cv_prog_compiler_rtti_exceptions=no
  8698. ac_outfile=conftest.$ac_objext
  8699. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8700. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8701. # Insert the option either (1) after the last *FLAGS variable, or
  8702. # (2) before a word containing "conftest.", or (3) at the end.
  8703. # Note that $ac_compile itself does not contain backslashes and begins
  8704. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8705. # The option is referenced via a variable to avoid confusing sed.
  8706. lt_compile=`echo "$ac_compile" | $SED \
  8707. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8708. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8709. -e 's:$: $lt_compiler_flag:'`
  8710. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8711. (eval "$lt_compile" 2>conftest.err)
  8712. ac_status=$?
  8713. cat conftest.err >&5
  8714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715. if (exit $ac_status) && test -s "$ac_outfile"; then
  8716. # The compiler can only warn and ignore the option if not recognized
  8717. # So say no if there are warnings other than the usual output.
  8718. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8719. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8720. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8721. lt_cv_prog_compiler_rtti_exceptions=yes
  8722. fi
  8723. fi
  8724. $RM conftest*
  8725. ;;
  8726. esac
  8727. fi
  8728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8729. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8730. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8731. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8732. else
  8733. :
  8734. fi
  8735. fi
  8736. lt_prog_compiler_wl=
  8737. lt_prog_compiler_pic=
  8738. lt_prog_compiler_static=
  8739. if test yes = "$GCC"; then
  8740. lt_prog_compiler_wl='-Wl,'
  8741. lt_prog_compiler_static='-static'
  8742. case $host_os in
  8743. aix*)
  8744. # All AIX code is PIC.
  8745. if test ia64 = "$host_cpu"; then
  8746. # AIX 5 now supports IA64 processor
  8747. lt_prog_compiler_static='-Bstatic'
  8748. fi
  8749. lt_prog_compiler_pic='-fPIC'
  8750. ;;
  8751. amigaos*)
  8752. case $host_cpu in
  8753. powerpc)
  8754. # see comment about AmigaOS4 .so support
  8755. lt_prog_compiler_pic='-fPIC'
  8756. ;;
  8757. m68k)
  8758. # FIXME: we need at least 68020 code to build shared libraries, but
  8759. # adding the '-m68020' flag to GCC prevents building anything better,
  8760. # like '-m68040'.
  8761. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8762. ;;
  8763. esac
  8764. ;;
  8765. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8766. # PIC is the default for these OSes.
  8767. ;;
  8768. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8769. # This hack is so that the source file can tell whether it is being
  8770. # built for inclusion in a dll (and should export symbols for example).
  8771. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8772. # (--disable-auto-import) libraries
  8773. lt_prog_compiler_pic='-DDLL_EXPORT'
  8774. case $host_os in
  8775. os2*)
  8776. lt_prog_compiler_static='$wl-static'
  8777. ;;
  8778. esac
  8779. ;;
  8780. darwin* | rhapsody*)
  8781. # PIC is the default on this platform
  8782. # Common symbols not allowed in MH_DYLIB files
  8783. lt_prog_compiler_pic='-fno-common'
  8784. ;;
  8785. haiku*)
  8786. # PIC is the default for Haiku.
  8787. # The "-static" flag exists, but is broken.
  8788. lt_prog_compiler_static=
  8789. ;;
  8790. hpux*)
  8791. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8792. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8793. # sets the default TLS model and affects inlining.
  8794. case $host_cpu in
  8795. hppa*64*)
  8796. # +Z the default
  8797. ;;
  8798. *)
  8799. lt_prog_compiler_pic='-fPIC'
  8800. ;;
  8801. esac
  8802. ;;
  8803. interix[3-9]*)
  8804. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8805. # Instead, we relocate shared libraries at runtime.
  8806. ;;
  8807. msdosdjgpp*)
  8808. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8809. # on systems that don't support them.
  8810. lt_prog_compiler_can_build_shared=no
  8811. enable_shared=no
  8812. ;;
  8813. *nto* | *qnx*)
  8814. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8815. # it will coredump.
  8816. lt_prog_compiler_pic='-fPIC -shared'
  8817. ;;
  8818. sysv4*MP*)
  8819. if test -d /usr/nec; then
  8820. lt_prog_compiler_pic=-Kconform_pic
  8821. fi
  8822. ;;
  8823. *)
  8824. lt_prog_compiler_pic='-fPIC'
  8825. ;;
  8826. esac
  8827. case $cc_basename in
  8828. nvcc*) # Cuda Compiler Driver 2.2
  8829. lt_prog_compiler_wl='-Xlinker '
  8830. if test -n "$lt_prog_compiler_pic"; then
  8831. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8832. fi
  8833. ;;
  8834. esac
  8835. else
  8836. # PORTME Check for flag to pass linker flags through the system compiler.
  8837. case $host_os in
  8838. aix*)
  8839. lt_prog_compiler_wl='-Wl,'
  8840. if test ia64 = "$host_cpu"; then
  8841. # AIX 5 now supports IA64 processor
  8842. lt_prog_compiler_static='-Bstatic'
  8843. else
  8844. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8845. fi
  8846. ;;
  8847. darwin* | rhapsody*)
  8848. # PIC is the default on this platform
  8849. # Common symbols not allowed in MH_DYLIB files
  8850. lt_prog_compiler_pic='-fno-common'
  8851. case $cc_basename in
  8852. nagfor*)
  8853. # NAG Fortran compiler
  8854. lt_prog_compiler_wl='-Wl,-Wl,,'
  8855. lt_prog_compiler_pic='-PIC'
  8856. lt_prog_compiler_static='-Bstatic'
  8857. ;;
  8858. esac
  8859. ;;
  8860. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8861. # This hack is so that the source file can tell whether it is being
  8862. # built for inclusion in a dll (and should export symbols for example).
  8863. lt_prog_compiler_pic='-DDLL_EXPORT'
  8864. case $host_os in
  8865. os2*)
  8866. lt_prog_compiler_static='$wl-static'
  8867. ;;
  8868. esac
  8869. ;;
  8870. hpux9* | hpux10* | hpux11*)
  8871. lt_prog_compiler_wl='-Wl,'
  8872. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8873. # not for PA HP-UX.
  8874. case $host_cpu in
  8875. hppa*64*|ia64*)
  8876. # +Z the default
  8877. ;;
  8878. *)
  8879. lt_prog_compiler_pic='+Z'
  8880. ;;
  8881. esac
  8882. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8883. lt_prog_compiler_static='$wl-a ${wl}archive'
  8884. ;;
  8885. irix5* | irix6* | nonstopux*)
  8886. lt_prog_compiler_wl='-Wl,'
  8887. # PIC (with -KPIC) is the default.
  8888. lt_prog_compiler_static='-non_shared'
  8889. ;;
  8890. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8891. case $cc_basename in
  8892. # old Intel for x86_64, which still supported -KPIC.
  8893. ecc*)
  8894. lt_prog_compiler_wl='-Wl,'
  8895. lt_prog_compiler_pic='-KPIC'
  8896. lt_prog_compiler_static='-static'
  8897. ;;
  8898. # icc used to be incompatible with GCC.
  8899. # ICC 10 doesn't accept -KPIC any more.
  8900. icc* | ifort*)
  8901. lt_prog_compiler_wl='-Wl,'
  8902. lt_prog_compiler_pic='-fPIC'
  8903. lt_prog_compiler_static='-static'
  8904. ;;
  8905. # Lahey Fortran 8.1.
  8906. lf95*)
  8907. lt_prog_compiler_wl='-Wl,'
  8908. lt_prog_compiler_pic='--shared'
  8909. lt_prog_compiler_static='--static'
  8910. ;;
  8911. nagfor*)
  8912. # NAG Fortran compiler
  8913. lt_prog_compiler_wl='-Wl,-Wl,,'
  8914. lt_prog_compiler_pic='-PIC'
  8915. lt_prog_compiler_static='-Bstatic'
  8916. ;;
  8917. tcc*)
  8918. # Fabrice Bellard et al's Tiny C Compiler
  8919. lt_prog_compiler_wl='-Wl,'
  8920. lt_prog_compiler_pic='-fPIC'
  8921. lt_prog_compiler_static='-static'
  8922. ;;
  8923. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8924. # Portland Group compilers (*not* the Pentium gcc compiler,
  8925. # which looks to be a dead project)
  8926. lt_prog_compiler_wl='-Wl,'
  8927. lt_prog_compiler_pic='-fpic'
  8928. lt_prog_compiler_static='-Bstatic'
  8929. ;;
  8930. ccc*)
  8931. lt_prog_compiler_wl='-Wl,'
  8932. # All Alpha code is PIC.
  8933. lt_prog_compiler_static='-non_shared'
  8934. ;;
  8935. xl* | bgxl* | bgf* | mpixl*)
  8936. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8937. lt_prog_compiler_wl='-Wl,'
  8938. lt_prog_compiler_pic='-qpic'
  8939. lt_prog_compiler_static='-qstaticlink'
  8940. ;;
  8941. *)
  8942. case `$CC -V 2>&1 | $SED 5q` in
  8943. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8944. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8945. lt_prog_compiler_pic='-KPIC'
  8946. lt_prog_compiler_static='-Bstatic'
  8947. lt_prog_compiler_wl=''
  8948. ;;
  8949. *Sun\ F* | *Sun*Fortran*)
  8950. lt_prog_compiler_pic='-KPIC'
  8951. lt_prog_compiler_static='-Bstatic'
  8952. lt_prog_compiler_wl='-Qoption ld '
  8953. ;;
  8954. *Sun\ C*)
  8955. # Sun C 5.9
  8956. lt_prog_compiler_pic='-KPIC'
  8957. lt_prog_compiler_static='-Bstatic'
  8958. lt_prog_compiler_wl='-Wl,'
  8959. ;;
  8960. *Intel*\ [CF]*Compiler*)
  8961. lt_prog_compiler_wl='-Wl,'
  8962. lt_prog_compiler_pic='-fPIC'
  8963. lt_prog_compiler_static='-static'
  8964. ;;
  8965. *Portland\ Group*)
  8966. lt_prog_compiler_wl='-Wl,'
  8967. lt_prog_compiler_pic='-fpic'
  8968. lt_prog_compiler_static='-Bstatic'
  8969. ;;
  8970. esac
  8971. ;;
  8972. esac
  8973. ;;
  8974. newsos6)
  8975. lt_prog_compiler_pic='-KPIC'
  8976. lt_prog_compiler_static='-Bstatic'
  8977. ;;
  8978. *nto* | *qnx*)
  8979. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8980. # it will coredump.
  8981. lt_prog_compiler_pic='-fPIC -shared'
  8982. ;;
  8983. osf3* | osf4* | osf5*)
  8984. lt_prog_compiler_wl='-Wl,'
  8985. # All OSF/1 code is PIC.
  8986. lt_prog_compiler_static='-non_shared'
  8987. ;;
  8988. rdos*)
  8989. lt_prog_compiler_static='-non_shared'
  8990. ;;
  8991. solaris*)
  8992. lt_prog_compiler_pic='-KPIC'
  8993. lt_prog_compiler_static='-Bstatic'
  8994. case $cc_basename in
  8995. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8996. lt_prog_compiler_wl='-Qoption ld ';;
  8997. *)
  8998. lt_prog_compiler_wl='-Wl,';;
  8999. esac
  9000. ;;
  9001. sunos4*)
  9002. lt_prog_compiler_wl='-Qoption ld '
  9003. lt_prog_compiler_pic='-PIC'
  9004. lt_prog_compiler_static='-Bstatic'
  9005. ;;
  9006. sysv4 | sysv4.2uw2* | sysv4.3*)
  9007. lt_prog_compiler_wl='-Wl,'
  9008. lt_prog_compiler_pic='-KPIC'
  9009. lt_prog_compiler_static='-Bstatic'
  9010. ;;
  9011. sysv4*MP*)
  9012. if test -d /usr/nec; then
  9013. lt_prog_compiler_pic='-Kconform_pic'
  9014. lt_prog_compiler_static='-Bstatic'
  9015. fi
  9016. ;;
  9017. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9018. lt_prog_compiler_wl='-Wl,'
  9019. lt_prog_compiler_pic='-KPIC'
  9020. lt_prog_compiler_static='-Bstatic'
  9021. ;;
  9022. unicos*)
  9023. lt_prog_compiler_wl='-Wl,'
  9024. lt_prog_compiler_can_build_shared=no
  9025. ;;
  9026. uts4*)
  9027. lt_prog_compiler_pic='-pic'
  9028. lt_prog_compiler_static='-Bstatic'
  9029. ;;
  9030. *)
  9031. lt_prog_compiler_can_build_shared=no
  9032. ;;
  9033. esac
  9034. fi
  9035. case $host_os in
  9036. # For platforms that do not support PIC, -DPIC is meaningless:
  9037. *djgpp*)
  9038. lt_prog_compiler_pic=
  9039. ;;
  9040. *)
  9041. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9042. ;;
  9043. esac
  9044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9045. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9046. if test ${lt_cv_prog_compiler_pic+y}
  9047. then :
  9048. printf %s "(cached) " >&6
  9049. else case e in #(
  9050. e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
  9051. esac
  9052. fi
  9053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9054. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9055. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9056. #
  9057. # Check to make sure the PIC flag actually works.
  9058. #
  9059. if test -n "$lt_prog_compiler_pic"; then
  9060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9061. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9062. if test ${lt_cv_prog_compiler_pic_works+y}
  9063. then :
  9064. printf %s "(cached) " >&6
  9065. else case e in #(
  9066. e) lt_cv_prog_compiler_pic_works=no
  9067. ac_outfile=conftest.$ac_objext
  9068. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9069. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9070. # Insert the option either (1) after the last *FLAGS variable, or
  9071. # (2) before a word containing "conftest.", or (3) at the end.
  9072. # Note that $ac_compile itself does not contain backslashes and begins
  9073. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9074. # The option is referenced via a variable to avoid confusing sed.
  9075. lt_compile=`echo "$ac_compile" | $SED \
  9076. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9077. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9078. -e 's:$: $lt_compiler_flag:'`
  9079. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9080. (eval "$lt_compile" 2>conftest.err)
  9081. ac_status=$?
  9082. cat conftest.err >&5
  9083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9084. if (exit $ac_status) && test -s "$ac_outfile"; then
  9085. # The compiler can only warn and ignore the option if not recognized
  9086. # So say no if there are warnings other than the usual output.
  9087. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9088. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9089. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9090. lt_cv_prog_compiler_pic_works=yes
  9091. fi
  9092. fi
  9093. $RM conftest*
  9094. ;;
  9095. esac
  9096. fi
  9097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9098. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9099. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9100. case $lt_prog_compiler_pic in
  9101. "" | " "*) ;;
  9102. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9103. esac
  9104. else
  9105. lt_prog_compiler_pic=
  9106. lt_prog_compiler_can_build_shared=no
  9107. fi
  9108. fi
  9109. #
  9110. # Check to make sure the static flag actually works.
  9111. #
  9112. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9114. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9115. if test ${lt_cv_prog_compiler_static_works+y}
  9116. then :
  9117. printf %s "(cached) " >&6
  9118. else case e in #(
  9119. e) lt_cv_prog_compiler_static_works=no
  9120. save_LDFLAGS=$LDFLAGS
  9121. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9122. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9123. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9124. # The linker can only warn and ignore the option if not recognized
  9125. # So say no if there are warnings
  9126. if test -s conftest.err; then
  9127. # Append any errors to the config.log.
  9128. cat conftest.err 1>&5
  9129. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9130. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9131. if diff conftest.exp conftest.er2 >/dev/null; then
  9132. lt_cv_prog_compiler_static_works=yes
  9133. fi
  9134. else
  9135. lt_cv_prog_compiler_static_works=yes
  9136. fi
  9137. fi
  9138. $RM -r conftest*
  9139. LDFLAGS=$save_LDFLAGS
  9140. ;;
  9141. esac
  9142. fi
  9143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9144. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9145. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9146. :
  9147. else
  9148. lt_prog_compiler_static=
  9149. fi
  9150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9151. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9152. if test ${lt_cv_prog_compiler_c_o+y}
  9153. then :
  9154. printf %s "(cached) " >&6
  9155. else case e in #(
  9156. e) lt_cv_prog_compiler_c_o=no
  9157. $RM -r conftest 2>/dev/null
  9158. mkdir conftest
  9159. cd conftest
  9160. mkdir out
  9161. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9162. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9163. # Insert the option either (1) after the last *FLAGS variable, or
  9164. # (2) before a word containing "conftest.", or (3) at the end.
  9165. # Note that $ac_compile itself does not contain backslashes and begins
  9166. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9167. lt_compile=`echo "$ac_compile" | $SED \
  9168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9170. -e 's:$: $lt_compiler_flag:'`
  9171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9172. (eval "$lt_compile" 2>out/conftest.err)
  9173. ac_status=$?
  9174. cat out/conftest.err >&5
  9175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9176. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9177. then
  9178. # The compiler can only warn and ignore the option if not recognized
  9179. # So say no if there are warnings
  9180. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9181. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9182. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9183. lt_cv_prog_compiler_c_o=yes
  9184. fi
  9185. fi
  9186. chmod u+w . 2>&5
  9187. $RM conftest*
  9188. # SGI C++ compiler will create directory out/ii_files/ for
  9189. # template instantiation
  9190. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9191. $RM out/* && rmdir out
  9192. cd ..
  9193. $RM -r conftest
  9194. $RM conftest*
  9195. ;;
  9196. esac
  9197. fi
  9198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9199. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9201. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9202. if test ${lt_cv_prog_compiler_c_o+y}
  9203. then :
  9204. printf %s "(cached) " >&6
  9205. else case e in #(
  9206. e) lt_cv_prog_compiler_c_o=no
  9207. $RM -r conftest 2>/dev/null
  9208. mkdir conftest
  9209. cd conftest
  9210. mkdir out
  9211. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9212. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9213. # Insert the option either (1) after the last *FLAGS variable, or
  9214. # (2) before a word containing "conftest.", or (3) at the end.
  9215. # Note that $ac_compile itself does not contain backslashes and begins
  9216. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9217. lt_compile=`echo "$ac_compile" | $SED \
  9218. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9219. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9220. -e 's:$: $lt_compiler_flag:'`
  9221. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9222. (eval "$lt_compile" 2>out/conftest.err)
  9223. ac_status=$?
  9224. cat out/conftest.err >&5
  9225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9227. then
  9228. # The compiler can only warn and ignore the option if not recognized
  9229. # So say no if there are warnings
  9230. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9231. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9232. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9233. lt_cv_prog_compiler_c_o=yes
  9234. fi
  9235. fi
  9236. chmod u+w . 2>&5
  9237. $RM conftest*
  9238. # SGI C++ compiler will create directory out/ii_files/ for
  9239. # template instantiation
  9240. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9241. $RM out/* && rmdir out
  9242. cd ..
  9243. $RM -r conftest
  9244. $RM conftest*
  9245. ;;
  9246. esac
  9247. fi
  9248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9249. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9250. hard_links=nottested
  9251. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9252. # do not overwrite the value of need_locks provided by the user
  9253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9254. printf %s "checking if we can lock with hard links... " >&6; }
  9255. hard_links=yes
  9256. $RM conftest*
  9257. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9258. touch conftest.a
  9259. ln conftest.a conftest.b 2>&5 || hard_links=no
  9260. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9262. printf "%s\n" "$hard_links" >&6; }
  9263. if test no = "$hard_links"; then
  9264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9265. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9266. need_locks=warn
  9267. fi
  9268. else
  9269. need_locks=no
  9270. fi
  9271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9272. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9273. runpath_var=
  9274. allow_undefined_flag=
  9275. always_export_symbols=no
  9276. archive_cmds=
  9277. archive_expsym_cmds=
  9278. compiler_needs_object=no
  9279. enable_shared_with_static_runtimes=no
  9280. export_dynamic_flag_spec=
  9281. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9282. hardcode_automatic=no
  9283. hardcode_direct=no
  9284. hardcode_direct_absolute=no
  9285. hardcode_libdir_flag_spec=
  9286. hardcode_libdir_separator=
  9287. hardcode_minus_L=no
  9288. hardcode_shlibpath_var=unsupported
  9289. inherit_rpath=no
  9290. link_all_deplibs=unknown
  9291. module_cmds=
  9292. module_expsym_cmds=
  9293. old_archive_from_new_cmds=
  9294. old_archive_from_expsyms_cmds=
  9295. thread_safe_flag_spec=
  9296. whole_archive_flag_spec=
  9297. # include_expsyms should be a list of space-separated symbols to be *always*
  9298. # included in the symbol list
  9299. include_expsyms=
  9300. # exclude_expsyms can be an extended regexp of symbols to exclude
  9301. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9302. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9303. # as well as any symbol that contains 'd'.
  9304. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9305. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9306. # platforms (ab)use it in PIC code, but their linkers get confused if
  9307. # the symbol is explicitly referenced. Since portable code cannot
  9308. # rely on this symbol name, it's probably fine to never include it in
  9309. # preloaded symbol tables.
  9310. # Exclude shared library initialization/finalization symbols.
  9311. extract_expsyms_cmds=
  9312. case $host_os in
  9313. cygwin* | mingw* | pw32* | cegcc*)
  9314. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  9315. # When not using gcc, we currently assume that we are using
  9316. # Microsoft Visual C++ or Intel C++ Compiler.
  9317. if test yes != "$GCC"; then
  9318. with_gnu_ld=no
  9319. fi
  9320. ;;
  9321. interix*)
  9322. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  9323. with_gnu_ld=yes
  9324. ;;
  9325. openbsd* | bitrig*)
  9326. with_gnu_ld=no
  9327. ;;
  9328. esac
  9329. ld_shlibs=yes
  9330. # On some targets, GNU ld is compatible enough with the native linker
  9331. # that we're better off using the native interface for both.
  9332. lt_use_gnu_ld_interface=no
  9333. if test yes = "$with_gnu_ld"; then
  9334. case $host_os in
  9335. aix*)
  9336. # The AIX port of GNU ld has always aspired to compatibility
  9337. # with the native linker. However, as the warning in the GNU ld
  9338. # block says, versions before 2.19.5* couldn't really create working
  9339. # shared libraries, regardless of the interface used.
  9340. case `$LD -v 2>&1` in
  9341. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9342. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9343. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9344. *)
  9345. lt_use_gnu_ld_interface=yes
  9346. ;;
  9347. esac
  9348. ;;
  9349. *)
  9350. lt_use_gnu_ld_interface=yes
  9351. ;;
  9352. esac
  9353. fi
  9354. if test yes = "$lt_use_gnu_ld_interface"; then
  9355. # If archive_cmds runs LD, not CC, wlarc should be empty
  9356. wlarc='$wl'
  9357. # Set some defaults for GNU ld with shared library support. These
  9358. # are reset later if shared libraries are not supported. Putting them
  9359. # here allows them to be overridden if necessary.
  9360. runpath_var=LD_RUN_PATH
  9361. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9362. export_dynamic_flag_spec='$wl--export-dynamic'
  9363. # ancient GNU ld didn't support --whole-archive et. al.
  9364. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9365. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9366. else
  9367. whole_archive_flag_spec=
  9368. fi
  9369. supports_anon_versioning=no
  9370. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  9371. *GNU\ gold*) supports_anon_versioning=yes ;;
  9372. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9373. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9374. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9375. *\ 2.11.*) ;; # other 2.11 versions
  9376. *) supports_anon_versioning=yes ;;
  9377. esac
  9378. # See if GNU ld supports shared libraries.
  9379. case $host_os in
  9380. aix[3-9]*)
  9381. # On AIX/PPC, the GNU linker is very broken
  9382. if test ia64 != "$host_cpu"; then
  9383. ld_shlibs=no
  9384. cat <<_LT_EOF 1>&2
  9385. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9386. *** to be unable to reliably create shared libraries on AIX.
  9387. *** Therefore, libtool is disabling shared libraries support. If you
  9388. *** really care for shared libraries, you may want to install binutils
  9389. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9390. *** You will then need to restart the configuration process.
  9391. _LT_EOF
  9392. fi
  9393. ;;
  9394. amigaos*)
  9395. case $host_cpu in
  9396. powerpc)
  9397. # see comment about AmigaOS4 .so support
  9398. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9399. archive_expsym_cmds=''
  9400. ;;
  9401. m68k)
  9402. 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)'
  9403. hardcode_libdir_flag_spec='-L$libdir'
  9404. hardcode_minus_L=yes
  9405. ;;
  9406. esac
  9407. ;;
  9408. beos*)
  9409. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9410. allow_undefined_flag=unsupported
  9411. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9412. # support --undefined. This deserves some investigation. FIXME
  9413. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9414. else
  9415. ld_shlibs=no
  9416. fi
  9417. ;;
  9418. cygwin* | mingw* | pw32* | cegcc*)
  9419. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9420. # as there is no search path for DLLs.
  9421. hardcode_libdir_flag_spec='-L$libdir'
  9422. export_dynamic_flag_spec='$wl--export-all-symbols'
  9423. allow_undefined_flag=unsupported
  9424. always_export_symbols=no
  9425. enable_shared_with_static_runtimes=yes
  9426. 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'
  9427. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9428. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9429. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9430. # If the export-symbols file already is a .def file, use it as
  9431. # is; otherwise, prepend EXPORTS...
  9432. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9433. cp $export_symbols $output_objdir/$soname.def;
  9434. else
  9435. echo EXPORTS > $output_objdir/$soname.def;
  9436. cat $export_symbols >> $output_objdir/$soname.def;
  9437. fi~
  9438. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9439. else
  9440. ld_shlibs=no
  9441. fi
  9442. ;;
  9443. haiku*)
  9444. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9445. link_all_deplibs=yes
  9446. ;;
  9447. os2*)
  9448. hardcode_libdir_flag_spec='-L$libdir'
  9449. hardcode_minus_L=yes
  9450. allow_undefined_flag=unsupported
  9451. shrext_cmds=.dll
  9452. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9453. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9454. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9455. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9456. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9457. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9458. emximp -o $lib $output_objdir/$libname.def'
  9459. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9460. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9461. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9462. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9463. prefix_cmds="$SED"~
  9464. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9465. prefix_cmds="$prefix_cmds -e 1d";
  9466. fi~
  9467. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9468. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9469. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9470. emximp -o $lib $output_objdir/$libname.def'
  9471. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9472. enable_shared_with_static_runtimes=yes
  9473. file_list_spec='@'
  9474. ;;
  9475. interix[3-9]*)
  9476. hardcode_direct=no
  9477. hardcode_shlibpath_var=no
  9478. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9479. export_dynamic_flag_spec='$wl-E'
  9480. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9481. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9482. # default) and relocated if they conflict, which is a slow very memory
  9483. # consuming and fragmenting process. To avoid this, we pick a random,
  9484. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9485. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9486. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9487. 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'
  9488. ;;
  9489. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9490. tmp_diet=no
  9491. if test linux-dietlibc = "$host_os"; then
  9492. case $cc_basename in
  9493. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9494. esac
  9495. fi
  9496. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9497. && test no = "$tmp_diet"
  9498. then
  9499. tmp_addflag=' $pic_flag'
  9500. tmp_sharedflag='-shared'
  9501. case $cc_basename,$host_cpu in
  9502. pgcc*) # Portland Group C compiler
  9503. 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'
  9504. tmp_addflag=' $pic_flag'
  9505. ;;
  9506. pgf77* | pgf90* | pgf95* | pgfortran*)
  9507. # Portland Group f77 and f90 compilers
  9508. 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'
  9509. tmp_addflag=' $pic_flag -Mnomain' ;;
  9510. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9511. tmp_addflag=' -i_dynamic' ;;
  9512. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9513. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9514. ifc* | ifort*) # Intel Fortran compiler
  9515. tmp_addflag=' -nofor_main' ;;
  9516. lf95*) # Lahey Fortran 8.1
  9517. whole_archive_flag_spec=
  9518. tmp_sharedflag='--shared' ;;
  9519. nagfor*) # NAGFOR 5.3
  9520. tmp_sharedflag='-Wl,-shared' ;;
  9521. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9522. tmp_sharedflag='-qmkshrobj'
  9523. tmp_addflag= ;;
  9524. nvcc*) # Cuda Compiler Driver 2.2
  9525. 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'
  9526. compiler_needs_object=yes
  9527. ;;
  9528. esac
  9529. case `$CC -V 2>&1 | $SED 5q` in
  9530. *Sun\ C*) # Sun C 5.9
  9531. 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'
  9532. compiler_needs_object=yes
  9533. tmp_sharedflag='-G' ;;
  9534. *Sun\ F*) # Sun Fortran 8.3
  9535. tmp_sharedflag='-G' ;;
  9536. esac
  9537. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9538. if test yes = "$supports_anon_versioning"; then
  9539. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9540. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9541. echo "local: *; };" >> $output_objdir/$libname.ver~
  9542. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9543. fi
  9544. case $cc_basename in
  9545. tcc*)
  9546. export_dynamic_flag_spec='-rdynamic'
  9547. ;;
  9548. xlf* | bgf* | bgxlf* | mpixlf*)
  9549. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9550. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9551. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9552. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9553. if test yes = "$supports_anon_versioning"; then
  9554. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9555. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9556. echo "local: *; };" >> $output_objdir/$libname.ver~
  9557. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9558. fi
  9559. ;;
  9560. esac
  9561. else
  9562. ld_shlibs=no
  9563. fi
  9564. ;;
  9565. netbsd*)
  9566. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9567. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9568. wlarc=
  9569. else
  9570. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9571. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9572. fi
  9573. ;;
  9574. solaris*)
  9575. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9576. ld_shlibs=no
  9577. cat <<_LT_EOF 1>&2
  9578. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9579. *** create shared libraries on Solaris systems. Therefore, libtool
  9580. *** is disabling shared libraries support. We urge you to upgrade GNU
  9581. *** binutils to release 2.9.1 or newer. Another option is to modify
  9582. *** your PATH or compiler configuration so that the native linker is
  9583. *** used, and then restart.
  9584. _LT_EOF
  9585. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9586. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9587. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9588. else
  9589. ld_shlibs=no
  9590. fi
  9591. ;;
  9592. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9593. case `$LD -v 2>&1` in
  9594. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9595. ld_shlibs=no
  9596. cat <<_LT_EOF 1>&2
  9597. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9598. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9599. *** is disabling shared libraries support. We urge you to upgrade GNU
  9600. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9601. *** your PATH or compiler configuration so that the native linker is
  9602. *** used, and then restart.
  9603. _LT_EOF
  9604. ;;
  9605. *)
  9606. # For security reasons, it is highly recommended that you always
  9607. # use absolute paths for naming shared libraries, and exclude the
  9608. # DT_RUNPATH tag from executables and libraries. But doing so
  9609. # requires that you compile everything twice, which is a pain.
  9610. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9611. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9613. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9614. else
  9615. ld_shlibs=no
  9616. fi
  9617. ;;
  9618. esac
  9619. ;;
  9620. sunos4*)
  9621. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9622. wlarc=
  9623. hardcode_direct=yes
  9624. hardcode_shlibpath_var=no
  9625. ;;
  9626. *)
  9627. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9628. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9629. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9630. else
  9631. ld_shlibs=no
  9632. fi
  9633. ;;
  9634. esac
  9635. if test no = "$ld_shlibs"; then
  9636. runpath_var=
  9637. hardcode_libdir_flag_spec=
  9638. export_dynamic_flag_spec=
  9639. whole_archive_flag_spec=
  9640. fi
  9641. else
  9642. # PORTME fill in a description of your system's linker (not GNU ld)
  9643. case $host_os in
  9644. aix3*)
  9645. allow_undefined_flag=unsupported
  9646. always_export_symbols=yes
  9647. 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'
  9648. # Note: this linker hardcodes the directories in LIBPATH if there
  9649. # are no directories specified by -L.
  9650. hardcode_minus_L=yes
  9651. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9652. # Neither direct hardcoding nor static linking is supported with a
  9653. # broken collect2.
  9654. hardcode_direct=unsupported
  9655. fi
  9656. ;;
  9657. aix[4-9]*)
  9658. if test ia64 = "$host_cpu"; then
  9659. # On IA64, the linker does run time linking by default, so we don't
  9660. # have to do anything special.
  9661. aix_use_runtimelinking=no
  9662. exp_sym_flag='-Bexport'
  9663. no_entry_flag=
  9664. else
  9665. # If we're using GNU nm, then we don't want the "-C" option.
  9666. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9667. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9668. # weak defined symbols like other global defined symbols, whereas
  9669. # GNU nm marks them as "W".
  9670. # While the 'weak' keyword is ignored in the Export File, we need
  9671. # it in the Import File for the 'aix-soname' feature, so we have
  9672. # to replace the "-B" option with "-P" for AIX nm.
  9673. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9674. 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'
  9675. else
  9676. 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'
  9677. fi
  9678. aix_use_runtimelinking=no
  9679. # Test if we are trying to use run time linking or normal
  9680. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9681. # have runtime linking enabled, and use it for executables.
  9682. # For shared libraries, we enable/disable runtime linking
  9683. # depending on the kind of the shared library created -
  9684. # when "with_aix_soname,aix_use_runtimelinking" is:
  9685. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9686. # "aix,yes" lib.so shared, rtl:yes, for executables
  9687. # lib.a static archive
  9688. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9689. # lib.a(lib.so.V) shared, rtl:no, for executables
  9690. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9691. # lib.a(lib.so.V) shared, rtl:no
  9692. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9693. # lib.a static archive
  9694. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9695. for ld_flag in $LDFLAGS; do
  9696. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9697. aix_use_runtimelinking=yes
  9698. break
  9699. fi
  9700. done
  9701. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9702. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9703. # so we don't have lib.a shared libs to link our executables.
  9704. # We have to force runtime linking in this case.
  9705. aix_use_runtimelinking=yes
  9706. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9707. fi
  9708. ;;
  9709. esac
  9710. exp_sym_flag='-bexport'
  9711. no_entry_flag='-bnoentry'
  9712. fi
  9713. # When large executables or shared objects are built, AIX ld can
  9714. # have problems creating the table of contents. If linking a library
  9715. # or program results in "error TOC overflow" add -mminimal-toc to
  9716. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9717. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9718. archive_cmds=''
  9719. hardcode_direct=yes
  9720. hardcode_direct_absolute=yes
  9721. hardcode_libdir_separator=':'
  9722. link_all_deplibs=yes
  9723. file_list_spec='$wl-f,'
  9724. case $with_aix_soname,$aix_use_runtimelinking in
  9725. aix,*) ;; # traditional, no import file
  9726. svr4,* | *,yes) # use import file
  9727. # The Import File defines what to hardcode.
  9728. hardcode_direct=no
  9729. hardcode_direct_absolute=no
  9730. ;;
  9731. esac
  9732. if test yes = "$GCC"; then
  9733. case $host_os in aix4.[012]|aix4.[012].*)
  9734. # We only want to do this on AIX 4.2 and lower, the check
  9735. # below for broken collect2 doesn't work under 4.3+
  9736. collect2name=`$CC -print-prog-name=collect2`
  9737. if test -f "$collect2name" &&
  9738. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9739. then
  9740. # We have reworked collect2
  9741. :
  9742. else
  9743. # We have old collect2
  9744. hardcode_direct=unsupported
  9745. # It fails to find uninstalled libraries when the uninstalled
  9746. # path is not listed in the libpath. Setting hardcode_minus_L
  9747. # to unsupported forces relinking
  9748. hardcode_minus_L=yes
  9749. hardcode_libdir_flag_spec='-L$libdir'
  9750. hardcode_libdir_separator=
  9751. fi
  9752. ;;
  9753. esac
  9754. shared_flag='-shared'
  9755. if test yes = "$aix_use_runtimelinking"; then
  9756. shared_flag="$shared_flag "'$wl-G'
  9757. fi
  9758. # Need to ensure runtime linking is disabled for the traditional
  9759. # shared library, or the linker may eventually find shared libraries
  9760. # /with/ Import File - we do not want to mix them.
  9761. shared_flag_aix='-shared'
  9762. shared_flag_svr4='-shared $wl-G'
  9763. else
  9764. # not using gcc
  9765. if test ia64 = "$host_cpu"; then
  9766. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9767. # chokes on -Wl,-G. The following line is correct:
  9768. shared_flag='-G'
  9769. else
  9770. if test yes = "$aix_use_runtimelinking"; then
  9771. shared_flag='$wl-G'
  9772. else
  9773. shared_flag='$wl-bM:SRE'
  9774. fi
  9775. shared_flag_aix='$wl-bM:SRE'
  9776. shared_flag_svr4='$wl-G'
  9777. fi
  9778. fi
  9779. export_dynamic_flag_spec='$wl-bexpall'
  9780. # It seems that -bexpall does not export symbols beginning with
  9781. # underscore (_), so it is better to generate a list of symbols to export.
  9782. always_export_symbols=yes
  9783. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9784. # Warning - without using the other runtime loading flags (-brtl),
  9785. # -berok will link without error, but may produce a broken library.
  9786. allow_undefined_flag='-berok'
  9787. # Determine the default libpath from the value encoded in an
  9788. # empty executable.
  9789. if test set = "${lt_cv_aix_libpath+set}"; then
  9790. aix_libpath=$lt_cv_aix_libpath
  9791. else
  9792. if test ${lt_cv_aix_libpath_+y}
  9793. then :
  9794. printf %s "(cached) " >&6
  9795. else case e in #(
  9796. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9797. /* end confdefs.h. */
  9798. int
  9799. main (void)
  9800. {
  9801. ;
  9802. return 0;
  9803. }
  9804. _ACEOF
  9805. if ac_fn_c_try_link "$LINENO"
  9806. then :
  9807. lt_aix_libpath_sed='
  9808. /Import File Strings/,/^$/ {
  9809. /^0/ {
  9810. s/^0 *\([^ ]*\) *$/\1/
  9811. p
  9812. }
  9813. }'
  9814. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9815. # Check for a 64-bit object if we didn't find anything.
  9816. if test -z "$lt_cv_aix_libpath_"; then
  9817. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9818. fi
  9819. fi
  9820. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9821. conftest$ac_exeext conftest.$ac_ext
  9822. if test -z "$lt_cv_aix_libpath_"; then
  9823. lt_cv_aix_libpath_=/usr/lib:/lib
  9824. fi
  9825. ;;
  9826. esac
  9827. fi
  9828. aix_libpath=$lt_cv_aix_libpath_
  9829. fi
  9830. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9831. 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
  9832. else
  9833. if test ia64 = "$host_cpu"; then
  9834. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9835. allow_undefined_flag="-z nodefs"
  9836. 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"
  9837. else
  9838. # Determine the default libpath from the value encoded in an
  9839. # empty executable.
  9840. if test set = "${lt_cv_aix_libpath+set}"; then
  9841. aix_libpath=$lt_cv_aix_libpath
  9842. else
  9843. if test ${lt_cv_aix_libpath_+y}
  9844. then :
  9845. printf %s "(cached) " >&6
  9846. else case e in #(
  9847. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9848. /* end confdefs.h. */
  9849. int
  9850. main (void)
  9851. {
  9852. ;
  9853. return 0;
  9854. }
  9855. _ACEOF
  9856. if ac_fn_c_try_link "$LINENO"
  9857. then :
  9858. lt_aix_libpath_sed='
  9859. /Import File Strings/,/^$/ {
  9860. /^0/ {
  9861. s/^0 *\([^ ]*\) *$/\1/
  9862. p
  9863. }
  9864. }'
  9865. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9866. # Check for a 64-bit object if we didn't find anything.
  9867. if test -z "$lt_cv_aix_libpath_"; then
  9868. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9869. fi
  9870. fi
  9871. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9872. conftest$ac_exeext conftest.$ac_ext
  9873. if test -z "$lt_cv_aix_libpath_"; then
  9874. lt_cv_aix_libpath_=/usr/lib:/lib
  9875. fi
  9876. ;;
  9877. esac
  9878. fi
  9879. aix_libpath=$lt_cv_aix_libpath_
  9880. fi
  9881. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9882. # Warning - without using the other run time loading flags,
  9883. # -berok will link without error, but may produce a broken library.
  9884. no_undefined_flag=' $wl-bernotok'
  9885. allow_undefined_flag=' $wl-berok'
  9886. if test yes = "$with_gnu_ld"; then
  9887. # We only use this code for GNU lds that support --whole-archive.
  9888. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9889. else
  9890. # Exported symbols can be pulled into shared objects from archives
  9891. whole_archive_flag_spec='$convenience'
  9892. fi
  9893. archive_cmds_need_lc=yes
  9894. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9895. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9896. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9897. if test svr4 != "$with_aix_soname"; then
  9898. # This is similar to how AIX traditionally builds its shared libraries.
  9899. 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'
  9900. fi
  9901. if test aix != "$with_aix_soname"; then
  9902. 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'
  9903. else
  9904. # used by -dlpreopen to get the symbols
  9905. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9906. fi
  9907. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9908. fi
  9909. fi
  9910. ;;
  9911. amigaos*)
  9912. case $host_cpu in
  9913. powerpc)
  9914. # see comment about AmigaOS4 .so support
  9915. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9916. archive_expsym_cmds=''
  9917. ;;
  9918. m68k)
  9919. 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)'
  9920. hardcode_libdir_flag_spec='-L$libdir'
  9921. hardcode_minus_L=yes
  9922. ;;
  9923. esac
  9924. ;;
  9925. bsdi[45]*)
  9926. export_dynamic_flag_spec=-rdynamic
  9927. ;;
  9928. cygwin* | mingw* | pw32* | cegcc*)
  9929. # When not using gcc, we currently assume that we are using
  9930. # Microsoft Visual C++ or Intel C++ Compiler.
  9931. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9932. # no search path for DLLs.
  9933. case $cc_basename in
  9934. cl* | icl*)
  9935. # Native MSVC or ICC
  9936. hardcode_libdir_flag_spec=' '
  9937. allow_undefined_flag=unsupported
  9938. always_export_symbols=yes
  9939. file_list_spec='@'
  9940. # Tell ltmain to make .lib files, not .a files.
  9941. libext=lib
  9942. # Tell ltmain to make .dll files, not .so files.
  9943. shrext_cmds=.dll
  9944. # FIXME: Setting linknames here is a bad hack.
  9945. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9946. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9947. cp "$export_symbols" "$output_objdir/$soname.def";
  9948. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9949. else
  9950. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9951. fi~
  9952. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9953. linknames='
  9954. # The linker will not automatically build a static lib if we build a DLL.
  9955. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9956. enable_shared_with_static_runtimes=yes
  9957. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9958. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9959. # Don't use ranlib
  9960. old_postinstall_cmds='chmod 644 $oldlib'
  9961. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9962. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9963. case $lt_outputfile in
  9964. *.exe|*.EXE) ;;
  9965. *)
  9966. lt_outputfile=$lt_outputfile.exe
  9967. lt_tool_outputfile=$lt_tool_outputfile.exe
  9968. ;;
  9969. esac~
  9970. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9971. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9972. $RM "$lt_outputfile.manifest";
  9973. fi'
  9974. ;;
  9975. *)
  9976. # Assume MSVC and ICC wrapper
  9977. hardcode_libdir_flag_spec=' '
  9978. allow_undefined_flag=unsupported
  9979. # Tell ltmain to make .lib files, not .a files.
  9980. libext=lib
  9981. # Tell ltmain to make .dll files, not .so files.
  9982. shrext_cmds=.dll
  9983. # FIXME: Setting linknames here is a bad hack.
  9984. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9985. # The linker will automatically build a .lib file if we build a DLL.
  9986. old_archive_from_new_cmds='true'
  9987. # FIXME: Should let the user specify the lib program.
  9988. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9989. enable_shared_with_static_runtimes=yes
  9990. ;;
  9991. esac
  9992. ;;
  9993. darwin* | rhapsody*)
  9994. archive_cmds_need_lc=no
  9995. hardcode_direct=no
  9996. hardcode_automatic=yes
  9997. hardcode_shlibpath_var=unsupported
  9998. if test yes = "$lt_cv_ld_force_load"; then
  9999. 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\"`'
  10000. else
  10001. whole_archive_flag_spec=''
  10002. fi
  10003. link_all_deplibs=yes
  10004. allow_undefined_flag=$_lt_dar_allow_undefined
  10005. case $cc_basename in
  10006. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10007. *) _lt_dar_can_shared=$GCC ;;
  10008. esac
  10009. if test yes = "$_lt_dar_can_shared"; then
  10010. output_verbose_link_cmd=func_echo_all
  10011. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10012. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10013. 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"
  10014. 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"
  10015. else
  10016. ld_shlibs=no
  10017. fi
  10018. ;;
  10019. dgux*)
  10020. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10021. hardcode_libdir_flag_spec='-L$libdir'
  10022. hardcode_shlibpath_var=no
  10023. ;;
  10024. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10025. # support. Future versions do this automatically, but an explicit c++rt0.o
  10026. # does not break anything, and helps significantly (at the cost of a little
  10027. # extra space).
  10028. freebsd2.2*)
  10029. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10030. hardcode_libdir_flag_spec='-R$libdir'
  10031. hardcode_direct=yes
  10032. hardcode_shlibpath_var=no
  10033. ;;
  10034. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10035. freebsd2.*)
  10036. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10037. hardcode_direct=yes
  10038. hardcode_minus_L=yes
  10039. hardcode_shlibpath_var=no
  10040. ;;
  10041. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10042. freebsd* | dragonfly* | midnightbsd*)
  10043. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10044. hardcode_libdir_flag_spec='-R$libdir'
  10045. hardcode_direct=yes
  10046. hardcode_shlibpath_var=no
  10047. ;;
  10048. hpux9*)
  10049. if test yes = "$GCC"; then
  10050. 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'
  10051. else
  10052. 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'
  10053. fi
  10054. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10055. hardcode_libdir_separator=:
  10056. hardcode_direct=yes
  10057. # hardcode_minus_L: Not really in the search PATH,
  10058. # but as the default location of the library.
  10059. hardcode_minus_L=yes
  10060. export_dynamic_flag_spec='$wl-E'
  10061. ;;
  10062. hpux10*)
  10063. if test yes,no = "$GCC,$with_gnu_ld"; then
  10064. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10065. else
  10066. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10067. fi
  10068. if test no = "$with_gnu_ld"; then
  10069. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10070. hardcode_libdir_separator=:
  10071. hardcode_direct=yes
  10072. hardcode_direct_absolute=yes
  10073. export_dynamic_flag_spec='$wl-E'
  10074. # hardcode_minus_L: Not really in the search PATH,
  10075. # but as the default location of the library.
  10076. hardcode_minus_L=yes
  10077. fi
  10078. ;;
  10079. hpux11*)
  10080. if test yes,no = "$GCC,$with_gnu_ld"; then
  10081. case $host_cpu in
  10082. hppa*64*)
  10083. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10084. ;;
  10085. ia64*)
  10086. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10087. ;;
  10088. *)
  10089. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10090. ;;
  10091. esac
  10092. else
  10093. case $host_cpu in
  10094. hppa*64*)
  10095. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10096. ;;
  10097. ia64*)
  10098. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10099. ;;
  10100. *)
  10101. # Older versions of the 11.00 compiler do not understand -b yet
  10102. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10104. printf %s "checking if $CC understands -b... " >&6; }
  10105. if test ${lt_cv_prog_compiler__b+y}
  10106. then :
  10107. printf %s "(cached) " >&6
  10108. else case e in #(
  10109. e) lt_cv_prog_compiler__b=no
  10110. save_LDFLAGS=$LDFLAGS
  10111. LDFLAGS="$LDFLAGS -b"
  10112. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10113. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10114. # The linker can only warn and ignore the option if not recognized
  10115. # So say no if there are warnings
  10116. if test -s conftest.err; then
  10117. # Append any errors to the config.log.
  10118. cat conftest.err 1>&5
  10119. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10120. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10121. if diff conftest.exp conftest.er2 >/dev/null; then
  10122. lt_cv_prog_compiler__b=yes
  10123. fi
  10124. else
  10125. lt_cv_prog_compiler__b=yes
  10126. fi
  10127. fi
  10128. $RM -r conftest*
  10129. LDFLAGS=$save_LDFLAGS
  10130. ;;
  10131. esac
  10132. fi
  10133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10134. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10135. if test yes = "$lt_cv_prog_compiler__b"; then
  10136. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10137. else
  10138. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10139. fi
  10140. ;;
  10141. esac
  10142. fi
  10143. if test no = "$with_gnu_ld"; then
  10144. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10145. hardcode_libdir_separator=:
  10146. case $host_cpu in
  10147. hppa*64*|ia64*)
  10148. hardcode_direct=no
  10149. hardcode_shlibpath_var=no
  10150. ;;
  10151. *)
  10152. hardcode_direct=yes
  10153. hardcode_direct_absolute=yes
  10154. export_dynamic_flag_spec='$wl-E'
  10155. # hardcode_minus_L: Not really in the search PATH,
  10156. # but as the default location of the library.
  10157. hardcode_minus_L=yes
  10158. ;;
  10159. esac
  10160. fi
  10161. ;;
  10162. irix5* | irix6* | nonstopux*)
  10163. if test yes = "$GCC"; then
  10164. 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'
  10165. # Try to use the -exported_symbol ld option, if it does not
  10166. # work, assume that -exports_file does not work either and
  10167. # implicitly export all symbols.
  10168. # This should be the same for all languages, so no per-tag cache variable.
  10169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10170. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10171. if test ${lt_cv_irix_exported_symbol+y}
  10172. then :
  10173. printf %s "(cached) " >&6
  10174. else case e in #(
  10175. e) save_LDFLAGS=$LDFLAGS
  10176. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10178. /* end confdefs.h. */
  10179. int foo (void) { return 0; }
  10180. _ACEOF
  10181. if ac_fn_c_try_link "$LINENO"
  10182. then :
  10183. lt_cv_irix_exported_symbol=yes
  10184. else case e in #(
  10185. e) lt_cv_irix_exported_symbol=no ;;
  10186. esac
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10189. conftest$ac_exeext conftest.$ac_ext
  10190. LDFLAGS=$save_LDFLAGS ;;
  10191. esac
  10192. fi
  10193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10194. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10195. if test yes = "$lt_cv_irix_exported_symbol"; then
  10196. 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'
  10197. fi
  10198. else
  10199. 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'
  10200. 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'
  10201. fi
  10202. archive_cmds_need_lc='no'
  10203. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10204. hardcode_libdir_separator=:
  10205. inherit_rpath=yes
  10206. link_all_deplibs=yes
  10207. ;;
  10208. linux*)
  10209. case $cc_basename in
  10210. tcc*)
  10211. # Fabrice Bellard et al's Tiny C Compiler
  10212. ld_shlibs=yes
  10213. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10214. ;;
  10215. esac
  10216. ;;
  10217. netbsd*)
  10218. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10220. else
  10221. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10222. fi
  10223. hardcode_libdir_flag_spec='-R$libdir'
  10224. hardcode_direct=yes
  10225. hardcode_shlibpath_var=no
  10226. ;;
  10227. newsos6)
  10228. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10229. hardcode_direct=yes
  10230. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10231. hardcode_libdir_separator=:
  10232. hardcode_shlibpath_var=no
  10233. ;;
  10234. *nto* | *qnx*)
  10235. ;;
  10236. openbsd* | bitrig*)
  10237. if test -f /usr/libexec/ld.so; then
  10238. hardcode_direct=yes
  10239. hardcode_shlibpath_var=no
  10240. hardcode_direct_absolute=yes
  10241. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10242. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10243. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10244. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10245. export_dynamic_flag_spec='$wl-E'
  10246. else
  10247. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10248. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10249. fi
  10250. else
  10251. ld_shlibs=no
  10252. fi
  10253. ;;
  10254. os2*)
  10255. hardcode_libdir_flag_spec='-L$libdir'
  10256. hardcode_minus_L=yes
  10257. allow_undefined_flag=unsupported
  10258. shrext_cmds=.dll
  10259. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10260. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10261. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10262. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10263. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10264. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10265. emximp -o $lib $output_objdir/$libname.def'
  10266. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10267. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10268. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10269. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10270. prefix_cmds="$SED"~
  10271. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10272. prefix_cmds="$prefix_cmds -e 1d";
  10273. fi~
  10274. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10275. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10276. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10277. emximp -o $lib $output_objdir/$libname.def'
  10278. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10279. enable_shared_with_static_runtimes=yes
  10280. file_list_spec='@'
  10281. ;;
  10282. osf3*)
  10283. if test yes = "$GCC"; then
  10284. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10285. 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'
  10286. else
  10287. allow_undefined_flag=' -expect_unresolved \*'
  10288. 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'
  10289. fi
  10290. archive_cmds_need_lc='no'
  10291. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10292. hardcode_libdir_separator=:
  10293. ;;
  10294. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10295. if test yes = "$GCC"; then
  10296. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10297. 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'
  10298. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10299. else
  10300. allow_undefined_flag=' -expect_unresolved \*'
  10301. 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'
  10302. 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~
  10303. $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'
  10304. # Both c and cxx compiler support -rpath directly
  10305. hardcode_libdir_flag_spec='-rpath $libdir'
  10306. fi
  10307. archive_cmds_need_lc='no'
  10308. hardcode_libdir_separator=:
  10309. ;;
  10310. solaris*)
  10311. no_undefined_flag=' -z defs'
  10312. if test yes = "$GCC"; then
  10313. wlarc='$wl'
  10314. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10315. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10316. $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'
  10317. else
  10318. case `$CC -V 2>&1` in
  10319. *"Compilers 5.0"*)
  10320. wlarc=''
  10321. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10322. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10323. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10324. ;;
  10325. *)
  10326. wlarc='$wl'
  10327. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10328. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10329. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10330. ;;
  10331. esac
  10332. fi
  10333. hardcode_libdir_flag_spec='-R$libdir'
  10334. hardcode_shlibpath_var=no
  10335. case $host_os in
  10336. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10337. *)
  10338. # The compiler driver will combine and reorder linker options,
  10339. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10340. # but is careful enough not to reorder.
  10341. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10342. if test yes = "$GCC"; then
  10343. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10344. else
  10345. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10346. fi
  10347. ;;
  10348. esac
  10349. link_all_deplibs=yes
  10350. ;;
  10351. sunos4*)
  10352. if test sequent = "$host_vendor"; then
  10353. # Use $CC to link under sequent, because it throws in some extra .o
  10354. # files that make .init and .fini sections work.
  10355. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10356. else
  10357. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10358. fi
  10359. hardcode_libdir_flag_spec='-L$libdir'
  10360. hardcode_direct=yes
  10361. hardcode_minus_L=yes
  10362. hardcode_shlibpath_var=no
  10363. ;;
  10364. sysv4)
  10365. case $host_vendor in
  10366. sni)
  10367. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10368. hardcode_direct=yes # is this really true???
  10369. ;;
  10370. siemens)
  10371. ## LD is ld it makes a PLAMLIB
  10372. ## CC just makes a GrossModule.
  10373. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10374. reload_cmds='$CC -r -o $output$reload_objs'
  10375. hardcode_direct=no
  10376. ;;
  10377. motorola)
  10378. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10379. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10380. ;;
  10381. esac
  10382. runpath_var='LD_RUN_PATH'
  10383. hardcode_shlibpath_var=no
  10384. ;;
  10385. sysv4.3*)
  10386. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10387. hardcode_shlibpath_var=no
  10388. export_dynamic_flag_spec='-Bexport'
  10389. ;;
  10390. sysv4*MP*)
  10391. if test -d /usr/nec; then
  10392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10393. hardcode_shlibpath_var=no
  10394. runpath_var=LD_RUN_PATH
  10395. hardcode_runpath_var=yes
  10396. ld_shlibs=yes
  10397. fi
  10398. ;;
  10399. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10400. no_undefined_flag='$wl-z,text'
  10401. archive_cmds_need_lc=no
  10402. hardcode_shlibpath_var=no
  10403. runpath_var='LD_RUN_PATH'
  10404. if test yes = "$GCC"; then
  10405. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10406. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10407. else
  10408. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10409. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10410. fi
  10411. ;;
  10412. sysv5* | sco3.2v5* | sco5v6*)
  10413. # Note: We CANNOT use -z defs as we might desire, because we do not
  10414. # link with -lc, and that would cause any symbols used from libc to
  10415. # always be unresolved, which means just about no library would
  10416. # ever link correctly. If we're not using GNU ld we use -z text
  10417. # though, which does catch some bad symbols but isn't as heavy-handed
  10418. # as -z defs.
  10419. no_undefined_flag='$wl-z,text'
  10420. allow_undefined_flag='$wl-z,nodefs'
  10421. archive_cmds_need_lc=no
  10422. hardcode_shlibpath_var=no
  10423. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10424. hardcode_libdir_separator=':'
  10425. link_all_deplibs=yes
  10426. export_dynamic_flag_spec='$wl-Bexport'
  10427. runpath_var='LD_RUN_PATH'
  10428. if test yes = "$GCC"; then
  10429. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10430. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10431. else
  10432. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10433. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10434. fi
  10435. ;;
  10436. uts4*)
  10437. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10438. hardcode_libdir_flag_spec='-L$libdir'
  10439. hardcode_shlibpath_var=no
  10440. ;;
  10441. *)
  10442. ld_shlibs=no
  10443. ;;
  10444. esac
  10445. if test sni = "$host_vendor"; then
  10446. case $host in
  10447. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10448. export_dynamic_flag_spec='$wl-Blargedynsym'
  10449. ;;
  10450. esac
  10451. fi
  10452. fi
  10453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10454. printf "%s\n" "$ld_shlibs" >&6; }
  10455. test no = "$ld_shlibs" && can_build_shared=no
  10456. with_gnu_ld=$with_gnu_ld
  10457. #
  10458. # Do we need to explicitly link libc?
  10459. #
  10460. case "x$archive_cmds_need_lc" in
  10461. x|xyes)
  10462. # Assume -lc should be added
  10463. archive_cmds_need_lc=yes
  10464. if test yes,yes = "$GCC,$enable_shared"; then
  10465. case $archive_cmds in
  10466. *'~'*)
  10467. # FIXME: we may have to deal with multi-command sequences.
  10468. ;;
  10469. '$CC '*)
  10470. # Test whether the compiler implicitly links with -lc since on some
  10471. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10472. # to ld, don't add -lc before -lgcc.
  10473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10474. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10475. if test ${lt_cv_archive_cmds_need_lc+y}
  10476. then :
  10477. printf %s "(cached) " >&6
  10478. else case e in #(
  10479. e) $RM conftest*
  10480. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10482. (eval $ac_compile) 2>&5
  10483. ac_status=$?
  10484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10485. test $ac_status = 0; } 2>conftest.err; then
  10486. soname=conftest
  10487. lib=conftest
  10488. libobjs=conftest.$ac_objext
  10489. deplibs=
  10490. wl=$lt_prog_compiler_wl
  10491. pic_flag=$lt_prog_compiler_pic
  10492. compiler_flags=-v
  10493. linker_flags=-v
  10494. verstring=
  10495. output_objdir=.
  10496. libname=conftest
  10497. lt_save_allow_undefined_flag=$allow_undefined_flag
  10498. allow_undefined_flag=
  10499. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10500. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10501. ac_status=$?
  10502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10503. test $ac_status = 0; }
  10504. then
  10505. lt_cv_archive_cmds_need_lc=no
  10506. else
  10507. lt_cv_archive_cmds_need_lc=yes
  10508. fi
  10509. allow_undefined_flag=$lt_save_allow_undefined_flag
  10510. else
  10511. cat conftest.err 1>&5
  10512. fi
  10513. $RM conftest*
  10514. ;;
  10515. esac
  10516. fi
  10517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10518. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10519. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10520. ;;
  10521. esac
  10522. fi
  10523. ;;
  10524. esac
  10525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10526. printf %s "checking dynamic linker characteristics... " >&6; }
  10527. if test yes = "$GCC"; then
  10528. case $host_os in
  10529. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10530. *) lt_awk_arg='/^libraries:/' ;;
  10531. esac
  10532. case $host_os in
  10533. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10534. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10535. esac
  10536. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10537. case $lt_search_path_spec in
  10538. *\;*)
  10539. # if the path contains ";" then we assume it to be the separator
  10540. # otherwise default to the standard path separator (i.e. ":") - it is
  10541. # assumed that no part of a normal pathname contains ";" but that should
  10542. # okay in the real world where ";" in dirpaths is itself problematic.
  10543. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10544. ;;
  10545. *)
  10546. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10547. ;;
  10548. esac
  10549. # Ok, now we have the path, separated by spaces, we can step through it
  10550. # and add multilib dir if necessary...
  10551. lt_tmp_lt_search_path_spec=
  10552. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10553. # ...but if some path component already ends with the multilib dir we assume
  10554. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10555. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10556. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10557. lt_multi_os_dir=
  10558. ;;
  10559. esac
  10560. for lt_sys_path in $lt_search_path_spec; do
  10561. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10562. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10563. elif test -n "$lt_multi_os_dir"; then
  10564. test -d "$lt_sys_path" && \
  10565. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10566. fi
  10567. done
  10568. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10569. BEGIN {RS = " "; FS = "/|\n";} {
  10570. lt_foo = "";
  10571. lt_count = 0;
  10572. for (lt_i = NF; lt_i > 0; lt_i--) {
  10573. if ($lt_i != "" && $lt_i != ".") {
  10574. if ($lt_i == "..") {
  10575. lt_count++;
  10576. } else {
  10577. if (lt_count == 0) {
  10578. lt_foo = "/" $lt_i lt_foo;
  10579. } else {
  10580. lt_count--;
  10581. }
  10582. }
  10583. }
  10584. }
  10585. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10586. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10587. }'`
  10588. # AWK program above erroneously prepends '/' to C:/dos/paths
  10589. # for these hosts.
  10590. case $host_os in
  10591. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10592. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10593. esac
  10594. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10595. else
  10596. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10597. fi
  10598. library_names_spec=
  10599. libname_spec='lib$name'
  10600. soname_spec=
  10601. shrext_cmds=.so
  10602. postinstall_cmds=
  10603. postuninstall_cmds=
  10604. finish_cmds=
  10605. finish_eval=
  10606. shlibpath_var=
  10607. shlibpath_overrides_runpath=unknown
  10608. version_type=none
  10609. dynamic_linker="$host_os ld.so"
  10610. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10611. need_lib_prefix=unknown
  10612. hardcode_into_libs=no
  10613. # when you set need_version to no, make sure it does not cause -set_version
  10614. # flags to be left without arguments
  10615. need_version=unknown
  10616. case $host_os in
  10617. aix3*)
  10618. version_type=linux # correct to gnu/linux during the next big refactor
  10619. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10620. shlibpath_var=LIBPATH
  10621. # AIX 3 has no versioning support, so we append a major version to the name.
  10622. soname_spec='$libname$release$shared_ext$major'
  10623. ;;
  10624. aix[4-9]*)
  10625. version_type=linux # correct to gnu/linux during the next big refactor
  10626. need_lib_prefix=no
  10627. need_version=no
  10628. hardcode_into_libs=yes
  10629. if test ia64 = "$host_cpu"; then
  10630. # AIX 5 supports IA64
  10631. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10632. shlibpath_var=LD_LIBRARY_PATH
  10633. else
  10634. # With GCC up to 2.95.x, collect2 would create an import file
  10635. # for dependence libraries. The import file would start with
  10636. # the line '#! .'. This would cause the generated library to
  10637. # depend on '.', always an invalid library. This was fixed in
  10638. # development snapshots of GCC prior to 3.0.
  10639. case $host_os in
  10640. aix4 | aix4.[01] | aix4.[01].*)
  10641. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10642. echo ' yes '
  10643. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10644. :
  10645. else
  10646. can_build_shared=no
  10647. fi
  10648. ;;
  10649. esac
  10650. # Using Import Files as archive members, it is possible to support
  10651. # filename-based versioning of shared library archives on AIX. While
  10652. # this would work for both with and without runtime linking, it will
  10653. # prevent static linking of such archives. So we do filename-based
  10654. # shared library versioning with .so extension only, which is used
  10655. # when both runtime linking and shared linking is enabled.
  10656. # Unfortunately, runtime linking may impact performance, so we do
  10657. # not want this to be the default eventually. Also, we use the
  10658. # versioned .so libs for executables only if there is the -brtl
  10659. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10660. # To allow for filename-based versioning support, we need to create
  10661. # libNAME.so.V as an archive file, containing:
  10662. # *) an Import File, referring to the versioned filename of the
  10663. # archive as well as the shared archive member, telling the
  10664. # bitwidth (32 or 64) of that shared object, and providing the
  10665. # list of exported symbols of that shared object, eventually
  10666. # decorated with the 'weak' keyword
  10667. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10668. # it being seen by the linker.
  10669. # At run time we better use the real file rather than another symlink,
  10670. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10671. case $with_aix_soname,$aix_use_runtimelinking in
  10672. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10673. # soname into executable. Probably we can add versioning support to
  10674. # collect2, so additional links can be useful in future.
  10675. aix,yes) # traditional libtool
  10676. dynamic_linker='AIX unversionable lib.so'
  10677. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10678. # instead of lib<name>.a to let people know that these are not
  10679. # typical AIX shared libraries.
  10680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10681. ;;
  10682. aix,no) # traditional AIX only
  10683. dynamic_linker='AIX lib.a(lib.so.V)'
  10684. # We preserve .a as extension for shared libraries through AIX4.2
  10685. # and later when we are not doing run time linking.
  10686. library_names_spec='$libname$release.a $libname.a'
  10687. soname_spec='$libname$release$shared_ext$major'
  10688. ;;
  10689. svr4,*) # full svr4 only
  10690. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10691. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10692. # We do not specify a path in Import Files, so LIBPATH fires.
  10693. shlibpath_overrides_runpath=yes
  10694. ;;
  10695. *,yes) # both, prefer svr4
  10696. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10697. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10698. # unpreferred sharedlib libNAME.a needs extra handling
  10699. 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"'
  10700. 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"'
  10701. # We do not specify a path in Import Files, so LIBPATH fires.
  10702. shlibpath_overrides_runpath=yes
  10703. ;;
  10704. *,no) # both, prefer aix
  10705. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10706. library_names_spec='$libname$release.a $libname.a'
  10707. soname_spec='$libname$release$shared_ext$major'
  10708. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10709. 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)'
  10710. 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"'
  10711. ;;
  10712. esac
  10713. shlibpath_var=LIBPATH
  10714. fi
  10715. ;;
  10716. amigaos*)
  10717. case $host_cpu in
  10718. powerpc)
  10719. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10720. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10722. ;;
  10723. m68k)
  10724. library_names_spec='$libname.ixlibrary $libname.a'
  10725. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10726. 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'
  10727. ;;
  10728. esac
  10729. ;;
  10730. beos*)
  10731. library_names_spec='$libname$shared_ext'
  10732. dynamic_linker="$host_os ld.so"
  10733. shlibpath_var=LIBRARY_PATH
  10734. ;;
  10735. bsdi[45]*)
  10736. version_type=linux # correct to gnu/linux during the next big refactor
  10737. need_version=no
  10738. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10739. soname_spec='$libname$release$shared_ext$major'
  10740. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10741. shlibpath_var=LD_LIBRARY_PATH
  10742. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10743. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10744. # the default ld.so.conf also contains /usr/contrib/lib and
  10745. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10746. # libtool to hard-code these into programs
  10747. ;;
  10748. cygwin* | mingw* | pw32* | cegcc*)
  10749. version_type=windows
  10750. shrext_cmds=.dll
  10751. need_version=no
  10752. need_lib_prefix=no
  10753. case $GCC,$cc_basename in
  10754. yes,*)
  10755. # gcc
  10756. library_names_spec='$libname.dll.a'
  10757. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10758. postinstall_cmds='base_file=`basename \$file`~
  10759. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10760. dldir=$destdir/`dirname \$dlpath`~
  10761. test -d \$dldir || mkdir -p \$dldir~
  10762. $install_prog $dir/$dlname \$dldir/$dlname~
  10763. chmod a+x \$dldir/$dlname~
  10764. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10765. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10766. fi'
  10767. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10768. dlpath=$dir/\$dldll~
  10769. $RM \$dlpath'
  10770. shlibpath_overrides_runpath=yes
  10771. case $host_os in
  10772. cygwin*)
  10773. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10774. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10775. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10776. ;;
  10777. mingw* | cegcc*)
  10778. # MinGW DLLs use traditional 'lib' prefix
  10779. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10780. ;;
  10781. pw32*)
  10782. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10783. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10784. ;;
  10785. esac
  10786. dynamic_linker='Win32 ld.exe'
  10787. ;;
  10788. *,cl* | *,icl*)
  10789. # Native MSVC or ICC
  10790. libname_spec='$name'
  10791. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10792. library_names_spec='$libname.dll.lib'
  10793. case $build_os in
  10794. mingw*)
  10795. sys_lib_search_path_spec=
  10796. lt_save_ifs=$IFS
  10797. IFS=';'
  10798. for lt_path in $LIB
  10799. do
  10800. IFS=$lt_save_ifs
  10801. # Let DOS variable expansion print the short 8.3 style file name.
  10802. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10803. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10804. done
  10805. IFS=$lt_save_ifs
  10806. # Convert to MSYS style.
  10807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10808. ;;
  10809. cygwin*)
  10810. # Convert to unix form, then to dos form, then back to unix form
  10811. # but this time dos style (no spaces!) so that the unix form looks
  10812. # like /cygdrive/c/PROGRA~1:/cygdr...
  10813. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10814. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10815. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10816. ;;
  10817. *)
  10818. sys_lib_search_path_spec=$LIB
  10819. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10820. # It is most probably a Windows format PATH.
  10821. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10822. else
  10823. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10824. fi
  10825. # FIXME: find the short name or the path components, as spaces are
  10826. # common. (e.g. "Program Files" -> "PROGRA~1")
  10827. ;;
  10828. esac
  10829. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10830. postinstall_cmds='base_file=`basename \$file`~
  10831. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10832. dldir=$destdir/`dirname \$dlpath`~
  10833. test -d \$dldir || mkdir -p \$dldir~
  10834. $install_prog $dir/$dlname \$dldir/$dlname'
  10835. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10836. dlpath=$dir/\$dldll~
  10837. $RM \$dlpath'
  10838. shlibpath_overrides_runpath=yes
  10839. dynamic_linker='Win32 link.exe'
  10840. ;;
  10841. *)
  10842. # Assume MSVC and ICC wrapper
  10843. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10844. dynamic_linker='Win32 ld.exe'
  10845. ;;
  10846. esac
  10847. # FIXME: first we should search . and the directory the executable is in
  10848. shlibpath_var=PATH
  10849. ;;
  10850. darwin* | rhapsody*)
  10851. dynamic_linker="$host_os dyld"
  10852. version_type=darwin
  10853. need_lib_prefix=no
  10854. need_version=no
  10855. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10856. soname_spec='$libname$release$major$shared_ext'
  10857. shlibpath_overrides_runpath=yes
  10858. shlibpath_var=DYLD_LIBRARY_PATH
  10859. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10860. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10861. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10862. ;;
  10863. dgux*)
  10864. version_type=linux # correct to gnu/linux during the next big refactor
  10865. need_lib_prefix=no
  10866. need_version=no
  10867. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10868. soname_spec='$libname$release$shared_ext$major'
  10869. shlibpath_var=LD_LIBRARY_PATH
  10870. ;;
  10871. freebsd* | dragonfly* | midnightbsd*)
  10872. # DragonFly does not have aout. When/if they implement a new
  10873. # versioning mechanism, adjust this.
  10874. if test -x /usr/bin/objformat; then
  10875. objformat=`/usr/bin/objformat`
  10876. else
  10877. case $host_os in
  10878. freebsd[23].*) objformat=aout ;;
  10879. *) objformat=elf ;;
  10880. esac
  10881. fi
  10882. version_type=freebsd-$objformat
  10883. case $version_type in
  10884. freebsd-elf*)
  10885. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10886. soname_spec='$libname$release$shared_ext$major'
  10887. need_version=no
  10888. need_lib_prefix=no
  10889. ;;
  10890. freebsd-*)
  10891. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10892. need_version=yes
  10893. ;;
  10894. esac
  10895. shlibpath_var=LD_LIBRARY_PATH
  10896. case $host_os in
  10897. freebsd2.*)
  10898. shlibpath_overrides_runpath=yes
  10899. ;;
  10900. freebsd3.[01]* | freebsdelf3.[01]*)
  10901. shlibpath_overrides_runpath=yes
  10902. hardcode_into_libs=yes
  10903. ;;
  10904. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10905. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10906. shlibpath_overrides_runpath=no
  10907. hardcode_into_libs=yes
  10908. ;;
  10909. *) # from 4.6 on, and DragonFly
  10910. shlibpath_overrides_runpath=yes
  10911. hardcode_into_libs=yes
  10912. ;;
  10913. esac
  10914. ;;
  10915. haiku*)
  10916. version_type=linux # correct to gnu/linux during the next big refactor
  10917. need_lib_prefix=no
  10918. need_version=no
  10919. dynamic_linker="$host_os runtime_loader"
  10920. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10921. soname_spec='$libname$release$shared_ext$major'
  10922. shlibpath_var=LIBRARY_PATH
  10923. shlibpath_overrides_runpath=no
  10924. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10925. hardcode_into_libs=yes
  10926. ;;
  10927. hpux9* | hpux10* | hpux11*)
  10928. # Give a soname corresponding to the major version so that dld.sl refuses to
  10929. # link against other versions.
  10930. version_type=sunos
  10931. need_lib_prefix=no
  10932. need_version=no
  10933. case $host_cpu in
  10934. ia64*)
  10935. shrext_cmds='.so'
  10936. hardcode_into_libs=yes
  10937. dynamic_linker="$host_os dld.so"
  10938. shlibpath_var=LD_LIBRARY_PATH
  10939. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10940. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10941. soname_spec='$libname$release$shared_ext$major'
  10942. if test 32 = "$HPUX_IA64_MODE"; then
  10943. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10944. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10945. else
  10946. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10947. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10948. fi
  10949. ;;
  10950. hppa*64*)
  10951. shrext_cmds='.sl'
  10952. hardcode_into_libs=yes
  10953. dynamic_linker="$host_os dld.sl"
  10954. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10955. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10956. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10957. soname_spec='$libname$release$shared_ext$major'
  10958. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10959. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10960. ;;
  10961. *)
  10962. shrext_cmds='.sl'
  10963. dynamic_linker="$host_os dld.sl"
  10964. shlibpath_var=SHLIB_PATH
  10965. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10966. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10967. soname_spec='$libname$release$shared_ext$major'
  10968. ;;
  10969. esac
  10970. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10971. postinstall_cmds='chmod 555 $lib'
  10972. # or fails outright, so override atomically:
  10973. install_override_mode=555
  10974. ;;
  10975. interix[3-9]*)
  10976. version_type=linux # correct to gnu/linux during the next big refactor
  10977. need_lib_prefix=no
  10978. need_version=no
  10979. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10980. soname_spec='$libname$release$shared_ext$major'
  10981. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10982. shlibpath_var=LD_LIBRARY_PATH
  10983. shlibpath_overrides_runpath=no
  10984. hardcode_into_libs=yes
  10985. ;;
  10986. irix5* | irix6* | nonstopux*)
  10987. case $host_os in
  10988. nonstopux*) version_type=nonstopux ;;
  10989. *)
  10990. if test yes = "$lt_cv_prog_gnu_ld"; then
  10991. version_type=linux # correct to gnu/linux during the next big refactor
  10992. else
  10993. version_type=irix
  10994. fi ;;
  10995. esac
  10996. need_lib_prefix=no
  10997. need_version=no
  10998. soname_spec='$libname$release$shared_ext$major'
  10999. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11000. case $host_os in
  11001. irix5* | nonstopux*)
  11002. libsuff= shlibsuff=
  11003. ;;
  11004. *)
  11005. case $LD in # libtool.m4 will add one of these switches to LD
  11006. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11007. libsuff= shlibsuff= libmagic=32-bit;;
  11008. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11009. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11010. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11011. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11012. *) libsuff= shlibsuff= libmagic=never-match;;
  11013. esac
  11014. ;;
  11015. esac
  11016. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11017. shlibpath_overrides_runpath=no
  11018. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11019. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11020. hardcode_into_libs=yes
  11021. ;;
  11022. # No shared lib support for Linux oldld, aout, or coff.
  11023. linux*oldld* | linux*aout* | linux*coff*)
  11024. dynamic_linker=no
  11025. ;;
  11026. linux*android*)
  11027. version_type=none # Android doesn't support versioned libraries.
  11028. need_lib_prefix=no
  11029. need_version=no
  11030. library_names_spec='$libname$release$shared_ext'
  11031. soname_spec='$libname$release$shared_ext'
  11032. finish_cmds=
  11033. shlibpath_var=LD_LIBRARY_PATH
  11034. shlibpath_overrides_runpath=yes
  11035. # This implies no fast_install, which is unacceptable.
  11036. # Some rework will be needed to allow for fast_install
  11037. # before this can be enabled.
  11038. hardcode_into_libs=yes
  11039. dynamic_linker='Android linker'
  11040. # Don't embed -rpath directories since the linker doesn't support them.
  11041. hardcode_libdir_flag_spec='-L$libdir'
  11042. ;;
  11043. # This must be glibc/ELF.
  11044. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11045. version_type=linux # correct to gnu/linux during the next big refactor
  11046. need_lib_prefix=no
  11047. need_version=no
  11048. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11049. soname_spec='$libname$release$shared_ext$major'
  11050. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11051. shlibpath_var=LD_LIBRARY_PATH
  11052. shlibpath_overrides_runpath=no
  11053. # Some binutils ld are patched to set DT_RUNPATH
  11054. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11055. then :
  11056. printf %s "(cached) " >&6
  11057. else case e in #(
  11058. e) lt_cv_shlibpath_overrides_runpath=no
  11059. save_LDFLAGS=$LDFLAGS
  11060. save_libdir=$libdir
  11061. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11062. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11064. /* end confdefs.h. */
  11065. int
  11066. main (void)
  11067. {
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. if ac_fn_c_try_link "$LINENO"
  11073. then :
  11074. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11075. then :
  11076. lt_cv_shlibpath_overrides_runpath=yes
  11077. fi
  11078. fi
  11079. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11080. conftest$ac_exeext conftest.$ac_ext
  11081. LDFLAGS=$save_LDFLAGS
  11082. libdir=$save_libdir
  11083. ;;
  11084. esac
  11085. fi
  11086. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11087. # This implies no fast_install, which is unacceptable.
  11088. # Some rework will be needed to allow for fast_install
  11089. # before this can be enabled.
  11090. hardcode_into_libs=yes
  11091. # Ideally, we could use ldconfig to report *all* directores which are
  11092. # searched for libraries, however this is still not possible. Aside from not
  11093. # being certain /sbin/ldconfig is available, command
  11094. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11095. # even though it is searched at run-time. Try to do the best guess by
  11096. # appending ld.so.conf contents (and includes) to the search path.
  11097. if test -f /etc/ld.so.conf; then
  11098. 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' ' '`
  11099. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11100. fi
  11101. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11102. # powerpc, because MkLinux only supported shared libraries with the
  11103. # GNU dynamic linker. Since this was broken with cross compilers,
  11104. # most powerpc-linux boxes support dynamic linking these days and
  11105. # people can always --disable-shared, the test was removed, and we
  11106. # assume the GNU/Linux dynamic linker is in use.
  11107. dynamic_linker='GNU/Linux ld.so'
  11108. ;;
  11109. netbsd*)
  11110. version_type=sunos
  11111. need_lib_prefix=no
  11112. need_version=no
  11113. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11114. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11115. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11116. dynamic_linker='NetBSD (a.out) ld.so'
  11117. else
  11118. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11119. soname_spec='$libname$release$shared_ext$major'
  11120. dynamic_linker='NetBSD ld.elf_so'
  11121. fi
  11122. shlibpath_var=LD_LIBRARY_PATH
  11123. shlibpath_overrides_runpath=yes
  11124. hardcode_into_libs=yes
  11125. ;;
  11126. newsos6)
  11127. version_type=linux # correct to gnu/linux during the next big refactor
  11128. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11129. shlibpath_var=LD_LIBRARY_PATH
  11130. shlibpath_overrides_runpath=yes
  11131. ;;
  11132. *nto* | *qnx*)
  11133. version_type=qnx
  11134. need_lib_prefix=no
  11135. need_version=no
  11136. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11137. soname_spec='$libname$release$shared_ext$major'
  11138. shlibpath_var=LD_LIBRARY_PATH
  11139. shlibpath_overrides_runpath=no
  11140. hardcode_into_libs=yes
  11141. dynamic_linker='ldqnx.so'
  11142. ;;
  11143. openbsd* | bitrig*)
  11144. version_type=sunos
  11145. sys_lib_dlsearch_path_spec=/usr/lib
  11146. need_lib_prefix=no
  11147. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11148. need_version=no
  11149. else
  11150. need_version=yes
  11151. fi
  11152. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11154. shlibpath_var=LD_LIBRARY_PATH
  11155. shlibpath_overrides_runpath=yes
  11156. ;;
  11157. os2*)
  11158. libname_spec='$name'
  11159. version_type=windows
  11160. shrext_cmds=.dll
  11161. need_version=no
  11162. need_lib_prefix=no
  11163. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11164. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11165. v=$($ECHO $release$versuffix | tr -d .-);
  11166. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11167. $ECHO $n$v`$shared_ext'
  11168. library_names_spec='${libname}_dll.$libext'
  11169. dynamic_linker='OS/2 ld.exe'
  11170. shlibpath_var=BEGINLIBPATH
  11171. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11172. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11173. postinstall_cmds='base_file=`basename \$file`~
  11174. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11175. dldir=$destdir/`dirname \$dlpath`~
  11176. test -d \$dldir || mkdir -p \$dldir~
  11177. $install_prog $dir/$dlname \$dldir/$dlname~
  11178. chmod a+x \$dldir/$dlname~
  11179. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11180. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11181. fi'
  11182. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11183. dlpath=$dir/\$dldll~
  11184. $RM \$dlpath'
  11185. ;;
  11186. osf3* | osf4* | osf5*)
  11187. version_type=osf
  11188. need_lib_prefix=no
  11189. need_version=no
  11190. soname_spec='$libname$release$shared_ext$major'
  11191. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11192. shlibpath_var=LD_LIBRARY_PATH
  11193. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11194. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11195. ;;
  11196. rdos*)
  11197. dynamic_linker=no
  11198. ;;
  11199. solaris*)
  11200. version_type=linux # correct to gnu/linux during the next big refactor
  11201. need_lib_prefix=no
  11202. need_version=no
  11203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11204. soname_spec='$libname$release$shared_ext$major'
  11205. shlibpath_var=LD_LIBRARY_PATH
  11206. shlibpath_overrides_runpath=yes
  11207. hardcode_into_libs=yes
  11208. # ldd complains unless libraries are executable
  11209. postinstall_cmds='chmod +x $lib'
  11210. ;;
  11211. sunos4*)
  11212. version_type=sunos
  11213. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11214. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11215. shlibpath_var=LD_LIBRARY_PATH
  11216. shlibpath_overrides_runpath=yes
  11217. if test yes = "$with_gnu_ld"; then
  11218. need_lib_prefix=no
  11219. fi
  11220. need_version=yes
  11221. ;;
  11222. sysv4 | sysv4.3*)
  11223. version_type=linux # correct to gnu/linux during the next big refactor
  11224. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11225. soname_spec='$libname$release$shared_ext$major'
  11226. shlibpath_var=LD_LIBRARY_PATH
  11227. case $host_vendor in
  11228. sni)
  11229. shlibpath_overrides_runpath=no
  11230. need_lib_prefix=no
  11231. runpath_var=LD_RUN_PATH
  11232. ;;
  11233. siemens)
  11234. need_lib_prefix=no
  11235. ;;
  11236. motorola)
  11237. need_lib_prefix=no
  11238. need_version=no
  11239. shlibpath_overrides_runpath=no
  11240. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11241. ;;
  11242. esac
  11243. ;;
  11244. sysv4*MP*)
  11245. if test -d /usr/nec; then
  11246. version_type=linux # correct to gnu/linux during the next big refactor
  11247. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11248. soname_spec='$libname$shared_ext.$major'
  11249. shlibpath_var=LD_LIBRARY_PATH
  11250. fi
  11251. ;;
  11252. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11253. version_type=sco
  11254. need_lib_prefix=no
  11255. need_version=no
  11256. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11257. soname_spec='$libname$release$shared_ext$major'
  11258. shlibpath_var=LD_LIBRARY_PATH
  11259. shlibpath_overrides_runpath=yes
  11260. hardcode_into_libs=yes
  11261. if test yes = "$with_gnu_ld"; then
  11262. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11263. else
  11264. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11265. case $host_os in
  11266. sco3.2v5*)
  11267. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11268. ;;
  11269. esac
  11270. fi
  11271. sys_lib_dlsearch_path_spec='/usr/lib'
  11272. ;;
  11273. tpf*)
  11274. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11275. version_type=linux # correct to gnu/linux during the next big refactor
  11276. need_lib_prefix=no
  11277. need_version=no
  11278. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11279. shlibpath_var=LD_LIBRARY_PATH
  11280. shlibpath_overrides_runpath=no
  11281. hardcode_into_libs=yes
  11282. ;;
  11283. uts4*)
  11284. version_type=linux # correct to gnu/linux during the next big refactor
  11285. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11286. soname_spec='$libname$release$shared_ext$major'
  11287. shlibpath_var=LD_LIBRARY_PATH
  11288. ;;
  11289. *)
  11290. dynamic_linker=no
  11291. ;;
  11292. esac
  11293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11294. printf "%s\n" "$dynamic_linker" >&6; }
  11295. test no = "$dynamic_linker" && can_build_shared=no
  11296. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11297. if test yes = "$GCC"; then
  11298. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11299. fi
  11300. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11301. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11302. fi
  11303. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11304. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11305. fi
  11306. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11307. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11308. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11309. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11310. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11311. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11313. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11314. hardcode_action=
  11315. if test -n "$hardcode_libdir_flag_spec" ||
  11316. test -n "$runpath_var" ||
  11317. test yes = "$hardcode_automatic"; then
  11318. # We can hardcode non-existent directories.
  11319. if test no != "$hardcode_direct" &&
  11320. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11321. # have to relink, otherwise we might link with an installed library
  11322. # when we should be linking with a yet-to-be-installed one
  11323. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11324. test no != "$hardcode_minus_L"; then
  11325. # Linking always hardcodes the temporary library directory.
  11326. hardcode_action=relink
  11327. else
  11328. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11329. hardcode_action=immediate
  11330. fi
  11331. else
  11332. # We cannot hardcode anything, or else we can only hardcode existing
  11333. # directories.
  11334. hardcode_action=unsupported
  11335. fi
  11336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11337. printf "%s\n" "$hardcode_action" >&6; }
  11338. if test relink = "$hardcode_action" ||
  11339. test yes = "$inherit_rpath"; then
  11340. # Fast installation is not supported
  11341. enable_fast_install=no
  11342. elif test yes = "$shlibpath_overrides_runpath" ||
  11343. test no = "$enable_shared"; then
  11344. # Fast installation is not necessary
  11345. enable_fast_install=needless
  11346. fi
  11347. if test yes != "$enable_dlopen"; then
  11348. enable_dlopen=unknown
  11349. enable_dlopen_self=unknown
  11350. enable_dlopen_self_static=unknown
  11351. else
  11352. lt_cv_dlopen=no
  11353. lt_cv_dlopen_libs=
  11354. case $host_os in
  11355. beos*)
  11356. lt_cv_dlopen=load_add_on
  11357. lt_cv_dlopen_libs=
  11358. lt_cv_dlopen_self=yes
  11359. ;;
  11360. mingw* | pw32* | cegcc*)
  11361. lt_cv_dlopen=LoadLibrary
  11362. lt_cv_dlopen_libs=
  11363. ;;
  11364. cygwin*)
  11365. lt_cv_dlopen=dlopen
  11366. lt_cv_dlopen_libs=
  11367. ;;
  11368. darwin*)
  11369. # if libdl is installed we need to link against it
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11371. printf %s "checking for dlopen in -ldl... " >&6; }
  11372. if test ${ac_cv_lib_dl_dlopen+y}
  11373. then :
  11374. printf %s "(cached) " >&6
  11375. else case e in #(
  11376. e) ac_check_lib_save_LIBS=$LIBS
  11377. LIBS="-ldl $LIBS"
  11378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11379. /* end confdefs.h. */
  11380. /* Override any GCC internal prototype to avoid an error.
  11381. Use char because int might match the return type of a GCC
  11382. builtin and then its argument prototype would still apply.
  11383. The 'extern "C"' is for builds by C++ compilers;
  11384. although this is not generally supported in C code supporting it here
  11385. has little cost and some practical benefit (sr 110532). */
  11386. #ifdef __cplusplus
  11387. extern "C"
  11388. #endif
  11389. char dlopen (void);
  11390. int
  11391. main (void)
  11392. {
  11393. return dlopen ();
  11394. ;
  11395. return 0;
  11396. }
  11397. _ACEOF
  11398. if ac_fn_c_try_link "$LINENO"
  11399. then :
  11400. ac_cv_lib_dl_dlopen=yes
  11401. else case e in #(
  11402. e) ac_cv_lib_dl_dlopen=no ;;
  11403. esac
  11404. fi
  11405. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11406. conftest$ac_exeext conftest.$ac_ext
  11407. LIBS=$ac_check_lib_save_LIBS ;;
  11408. esac
  11409. fi
  11410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11411. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11412. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11413. then :
  11414. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11415. else case e in #(
  11416. e)
  11417. lt_cv_dlopen=dyld
  11418. lt_cv_dlopen_libs=
  11419. lt_cv_dlopen_self=yes
  11420. ;;
  11421. esac
  11422. fi
  11423. ;;
  11424. tpf*)
  11425. # Don't try to run any link tests for TPF. We know it's impossible
  11426. # because TPF is a cross-compiler, and we know how we open DSOs.
  11427. lt_cv_dlopen=dlopen
  11428. lt_cv_dlopen_libs=
  11429. lt_cv_dlopen_self=no
  11430. ;;
  11431. *)
  11432. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11433. if test "x$ac_cv_func_shl_load" = xyes
  11434. then :
  11435. lt_cv_dlopen=shl_load
  11436. else case e in #(
  11437. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11438. printf %s "checking for shl_load in -ldld... " >&6; }
  11439. if test ${ac_cv_lib_dld_shl_load+y}
  11440. then :
  11441. printf %s "(cached) " >&6
  11442. else case e in #(
  11443. e) ac_check_lib_save_LIBS=$LIBS
  11444. LIBS="-ldld $LIBS"
  11445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11446. /* end confdefs.h. */
  11447. /* Override any GCC internal prototype to avoid an error.
  11448. Use char because int might match the return type of a GCC
  11449. builtin and then its argument prototype would still apply.
  11450. The 'extern "C"' is for builds by C++ compilers;
  11451. although this is not generally supported in C code supporting it here
  11452. has little cost and some practical benefit (sr 110532). */
  11453. #ifdef __cplusplus
  11454. extern "C"
  11455. #endif
  11456. char shl_load (void);
  11457. int
  11458. main (void)
  11459. {
  11460. return shl_load ();
  11461. ;
  11462. return 0;
  11463. }
  11464. _ACEOF
  11465. if ac_fn_c_try_link "$LINENO"
  11466. then :
  11467. ac_cv_lib_dld_shl_load=yes
  11468. else case e in #(
  11469. e) ac_cv_lib_dld_shl_load=no ;;
  11470. esac
  11471. fi
  11472. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11473. conftest$ac_exeext conftest.$ac_ext
  11474. LIBS=$ac_check_lib_save_LIBS ;;
  11475. esac
  11476. fi
  11477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11478. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11479. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11480. then :
  11481. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11482. else case e in #(
  11483. e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11484. if test "x$ac_cv_func_dlopen" = xyes
  11485. then :
  11486. lt_cv_dlopen=dlopen
  11487. else case e in #(
  11488. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11489. printf %s "checking for dlopen in -ldl... " >&6; }
  11490. if test ${ac_cv_lib_dl_dlopen+y}
  11491. then :
  11492. printf %s "(cached) " >&6
  11493. else case e in #(
  11494. e) ac_check_lib_save_LIBS=$LIBS
  11495. LIBS="-ldl $LIBS"
  11496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11497. /* end confdefs.h. */
  11498. /* Override any GCC internal prototype to avoid an error.
  11499. Use char because int might match the return type of a GCC
  11500. builtin and then its argument prototype would still apply.
  11501. The 'extern "C"' is for builds by C++ compilers;
  11502. although this is not generally supported in C code supporting it here
  11503. has little cost and some practical benefit (sr 110532). */
  11504. #ifdef __cplusplus
  11505. extern "C"
  11506. #endif
  11507. char dlopen (void);
  11508. int
  11509. main (void)
  11510. {
  11511. return dlopen ();
  11512. ;
  11513. return 0;
  11514. }
  11515. _ACEOF
  11516. if ac_fn_c_try_link "$LINENO"
  11517. then :
  11518. ac_cv_lib_dl_dlopen=yes
  11519. else case e in #(
  11520. e) ac_cv_lib_dl_dlopen=no ;;
  11521. esac
  11522. fi
  11523. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11524. conftest$ac_exeext conftest.$ac_ext
  11525. LIBS=$ac_check_lib_save_LIBS ;;
  11526. esac
  11527. fi
  11528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11529. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11530. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11531. then :
  11532. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11533. else case e in #(
  11534. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11535. printf %s "checking for dlopen in -lsvld... " >&6; }
  11536. if test ${ac_cv_lib_svld_dlopen+y}
  11537. then :
  11538. printf %s "(cached) " >&6
  11539. else case e in #(
  11540. e) ac_check_lib_save_LIBS=$LIBS
  11541. LIBS="-lsvld $LIBS"
  11542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11543. /* end confdefs.h. */
  11544. /* Override any GCC internal prototype to avoid an error.
  11545. Use char because int might match the return type of a GCC
  11546. builtin and then its argument prototype would still apply.
  11547. The 'extern "C"' is for builds by C++ compilers;
  11548. although this is not generally supported in C code supporting it here
  11549. has little cost and some practical benefit (sr 110532). */
  11550. #ifdef __cplusplus
  11551. extern "C"
  11552. #endif
  11553. char dlopen (void);
  11554. int
  11555. main (void)
  11556. {
  11557. return dlopen ();
  11558. ;
  11559. return 0;
  11560. }
  11561. _ACEOF
  11562. if ac_fn_c_try_link "$LINENO"
  11563. then :
  11564. ac_cv_lib_svld_dlopen=yes
  11565. else case e in #(
  11566. e) ac_cv_lib_svld_dlopen=no ;;
  11567. esac
  11568. fi
  11569. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11570. conftest$ac_exeext conftest.$ac_ext
  11571. LIBS=$ac_check_lib_save_LIBS ;;
  11572. esac
  11573. fi
  11574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11575. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11576. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11577. then :
  11578. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11579. else case e in #(
  11580. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11581. printf %s "checking for dld_link in -ldld... " >&6; }
  11582. if test ${ac_cv_lib_dld_dld_link+y}
  11583. then :
  11584. printf %s "(cached) " >&6
  11585. else case e in #(
  11586. e) ac_check_lib_save_LIBS=$LIBS
  11587. LIBS="-ldld $LIBS"
  11588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11589. /* end confdefs.h. */
  11590. /* Override any GCC internal prototype to avoid an error.
  11591. Use char because int might match the return type of a GCC
  11592. builtin and then its argument prototype would still apply.
  11593. The 'extern "C"' is for builds by C++ compilers;
  11594. although this is not generally supported in C code supporting it here
  11595. has little cost and some practical benefit (sr 110532). */
  11596. #ifdef __cplusplus
  11597. extern "C"
  11598. #endif
  11599. char dld_link (void);
  11600. int
  11601. main (void)
  11602. {
  11603. return dld_link ();
  11604. ;
  11605. return 0;
  11606. }
  11607. _ACEOF
  11608. if ac_fn_c_try_link "$LINENO"
  11609. then :
  11610. ac_cv_lib_dld_dld_link=yes
  11611. else case e in #(
  11612. e) ac_cv_lib_dld_dld_link=no ;;
  11613. esac
  11614. fi
  11615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11616. conftest$ac_exeext conftest.$ac_ext
  11617. LIBS=$ac_check_lib_save_LIBS ;;
  11618. esac
  11619. fi
  11620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11621. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11622. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11623. then :
  11624. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11625. fi
  11626. ;;
  11627. esac
  11628. fi
  11629. ;;
  11630. esac
  11631. fi
  11632. ;;
  11633. esac
  11634. fi
  11635. ;;
  11636. esac
  11637. fi
  11638. ;;
  11639. esac
  11640. fi
  11641. ;;
  11642. esac
  11643. if test no = "$lt_cv_dlopen"; then
  11644. enable_dlopen=no
  11645. else
  11646. enable_dlopen=yes
  11647. fi
  11648. case $lt_cv_dlopen in
  11649. dlopen)
  11650. save_CPPFLAGS=$CPPFLAGS
  11651. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11652. save_LDFLAGS=$LDFLAGS
  11653. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11654. save_LIBS=$LIBS
  11655. LIBS="$lt_cv_dlopen_libs $LIBS"
  11656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11657. printf %s "checking whether a program can dlopen itself... " >&6; }
  11658. if test ${lt_cv_dlopen_self+y}
  11659. then :
  11660. printf %s "(cached) " >&6
  11661. else case e in #(
  11662. e) if test yes = "$cross_compiling"; then :
  11663. lt_cv_dlopen_self=cross
  11664. else
  11665. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11666. lt_status=$lt_dlunknown
  11667. cat > conftest.$ac_ext <<_LT_EOF
  11668. #line $LINENO "configure"
  11669. #include "confdefs.h"
  11670. #if HAVE_DLFCN_H
  11671. #include <dlfcn.h>
  11672. #endif
  11673. #include <stdio.h>
  11674. #ifdef RTLD_GLOBAL
  11675. # define LT_DLGLOBAL RTLD_GLOBAL
  11676. #else
  11677. # ifdef DL_GLOBAL
  11678. # define LT_DLGLOBAL DL_GLOBAL
  11679. # else
  11680. # define LT_DLGLOBAL 0
  11681. # endif
  11682. #endif
  11683. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11684. find out it does not work in some platform. */
  11685. #ifndef LT_DLLAZY_OR_NOW
  11686. # ifdef RTLD_LAZY
  11687. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11688. # else
  11689. # ifdef DL_LAZY
  11690. # define LT_DLLAZY_OR_NOW DL_LAZY
  11691. # else
  11692. # ifdef RTLD_NOW
  11693. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11694. # else
  11695. # ifdef DL_NOW
  11696. # define LT_DLLAZY_OR_NOW DL_NOW
  11697. # else
  11698. # define LT_DLLAZY_OR_NOW 0
  11699. # endif
  11700. # endif
  11701. # endif
  11702. # endif
  11703. #endif
  11704. /* When -fvisibility=hidden is used, assume the code has been annotated
  11705. correspondingly for the symbols needed. */
  11706. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11707. int fnord () __attribute__((visibility("default")));
  11708. #endif
  11709. int fnord () { return 42; }
  11710. int main ()
  11711. {
  11712. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11713. int status = $lt_dlunknown;
  11714. if (self)
  11715. {
  11716. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11717. else
  11718. {
  11719. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11720. else puts (dlerror ());
  11721. }
  11722. /* dlclose (self); */
  11723. }
  11724. else
  11725. puts (dlerror ());
  11726. return status;
  11727. }
  11728. _LT_EOF
  11729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11730. (eval $ac_link) 2>&5
  11731. ac_status=$?
  11732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11733. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11734. (./conftest; exit; ) >&5 2>/dev/null
  11735. lt_status=$?
  11736. case x$lt_status in
  11737. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11738. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11739. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11740. esac
  11741. else :
  11742. # compilation failed
  11743. lt_cv_dlopen_self=no
  11744. fi
  11745. fi
  11746. rm -fr conftest*
  11747. ;;
  11748. esac
  11749. fi
  11750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11751. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11752. if test yes = "$lt_cv_dlopen_self"; then
  11753. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11755. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11756. if test ${lt_cv_dlopen_self_static+y}
  11757. then :
  11758. printf %s "(cached) " >&6
  11759. else case e in #(
  11760. e) if test yes = "$cross_compiling"; then :
  11761. lt_cv_dlopen_self_static=cross
  11762. else
  11763. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11764. lt_status=$lt_dlunknown
  11765. cat > conftest.$ac_ext <<_LT_EOF
  11766. #line $LINENO "configure"
  11767. #include "confdefs.h"
  11768. #if HAVE_DLFCN_H
  11769. #include <dlfcn.h>
  11770. #endif
  11771. #include <stdio.h>
  11772. #ifdef RTLD_GLOBAL
  11773. # define LT_DLGLOBAL RTLD_GLOBAL
  11774. #else
  11775. # ifdef DL_GLOBAL
  11776. # define LT_DLGLOBAL DL_GLOBAL
  11777. # else
  11778. # define LT_DLGLOBAL 0
  11779. # endif
  11780. #endif
  11781. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11782. find out it does not work in some platform. */
  11783. #ifndef LT_DLLAZY_OR_NOW
  11784. # ifdef RTLD_LAZY
  11785. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11786. # else
  11787. # ifdef DL_LAZY
  11788. # define LT_DLLAZY_OR_NOW DL_LAZY
  11789. # else
  11790. # ifdef RTLD_NOW
  11791. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11792. # else
  11793. # ifdef DL_NOW
  11794. # define LT_DLLAZY_OR_NOW DL_NOW
  11795. # else
  11796. # define LT_DLLAZY_OR_NOW 0
  11797. # endif
  11798. # endif
  11799. # endif
  11800. # endif
  11801. #endif
  11802. /* When -fvisibility=hidden is used, assume the code has been annotated
  11803. correspondingly for the symbols needed. */
  11804. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11805. int fnord () __attribute__((visibility("default")));
  11806. #endif
  11807. int fnord () { return 42; }
  11808. int main ()
  11809. {
  11810. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11811. int status = $lt_dlunknown;
  11812. if (self)
  11813. {
  11814. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11815. else
  11816. {
  11817. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11818. else puts (dlerror ());
  11819. }
  11820. /* dlclose (self); */
  11821. }
  11822. else
  11823. puts (dlerror ());
  11824. return status;
  11825. }
  11826. _LT_EOF
  11827. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11828. (eval $ac_link) 2>&5
  11829. ac_status=$?
  11830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11831. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11832. (./conftest; exit; ) >&5 2>/dev/null
  11833. lt_status=$?
  11834. case x$lt_status in
  11835. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11836. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11837. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11838. esac
  11839. else :
  11840. # compilation failed
  11841. lt_cv_dlopen_self_static=no
  11842. fi
  11843. fi
  11844. rm -fr conftest*
  11845. ;;
  11846. esac
  11847. fi
  11848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11849. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11850. fi
  11851. CPPFLAGS=$save_CPPFLAGS
  11852. LDFLAGS=$save_LDFLAGS
  11853. LIBS=$save_LIBS
  11854. ;;
  11855. esac
  11856. case $lt_cv_dlopen_self in
  11857. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11858. *) enable_dlopen_self=unknown ;;
  11859. esac
  11860. case $lt_cv_dlopen_self_static in
  11861. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11862. *) enable_dlopen_self_static=unknown ;;
  11863. esac
  11864. fi
  11865. striplib=
  11866. old_striplib=
  11867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11868. printf %s "checking whether stripping libraries is possible... " >&6; }
  11869. if test -z "$STRIP"; then
  11870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11871. printf "%s\n" "no" >&6; }
  11872. else
  11873. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11874. old_striplib="$STRIP --strip-debug"
  11875. striplib="$STRIP --strip-unneeded"
  11876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11877. printf "%s\n" "yes" >&6; }
  11878. else
  11879. case $host_os in
  11880. darwin*)
  11881. # FIXME - insert some real tests, host_os isn't really good enough
  11882. striplib="$STRIP -x"
  11883. old_striplib="$STRIP -S"
  11884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11885. printf "%s\n" "yes" >&6; }
  11886. ;;
  11887. freebsd*)
  11888. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11889. old_striplib="$STRIP --strip-debug"
  11890. striplib="$STRIP --strip-unneeded"
  11891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11892. printf "%s\n" "yes" >&6; }
  11893. else
  11894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11895. printf "%s\n" "no" >&6; }
  11896. fi
  11897. ;;
  11898. *)
  11899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11900. printf "%s\n" "no" >&6; }
  11901. ;;
  11902. esac
  11903. fi
  11904. fi
  11905. # Report what library types will actually be built
  11906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11907. printf %s "checking if libtool supports shared libraries... " >&6; }
  11908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11909. printf "%s\n" "$can_build_shared" >&6; }
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11911. printf %s "checking whether to build shared libraries... " >&6; }
  11912. test no = "$can_build_shared" && enable_shared=no
  11913. # On AIX, shared libraries and static libraries use the same namespace, and
  11914. # are all built from PIC.
  11915. case $host_os in
  11916. aix3*)
  11917. test yes = "$enable_shared" && enable_static=no
  11918. if test -n "$RANLIB"; then
  11919. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11920. postinstall_cmds='$RANLIB $lib'
  11921. fi
  11922. ;;
  11923. aix[4-9]*)
  11924. if test ia64 != "$host_cpu"; then
  11925. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11926. yes,aix,yes) ;; # shared object as lib.so file only
  11927. yes,svr4,*) ;; # shared object as lib.so archive member only
  11928. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11929. esac
  11930. fi
  11931. ;;
  11932. esac
  11933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11934. printf "%s\n" "$enable_shared" >&6; }
  11935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11936. printf %s "checking whether to build static libraries... " >&6; }
  11937. # Make sure either enable_shared or enable_static is yes.
  11938. test yes = "$enable_shared" || enable_static=yes
  11939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11940. printf "%s\n" "$enable_static" >&6; }
  11941. fi
  11942. ac_ext=c
  11943. ac_cpp='$CPP $CPPFLAGS'
  11944. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11945. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11946. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11947. CC=$lt_save_CC
  11948. ac_config_commands="$ac_config_commands libtool"
  11949. # Only expand once:
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  11951. printf %s "checking whether ln -s works... " >&6; }
  11952. LN_S=$as_ln_s
  11953. if test "$LN_S" = "ln -s"; then
  11954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11955. printf "%s\n" "yes" >&6; }
  11956. else
  11957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  11958. printf "%s\n" "no, using $LN_S" >&6; }
  11959. fi
  11960. # Check whether --enable-largefile was given.
  11961. if test ${enable_largefile+y}
  11962. then :
  11963. enableval=$enable_largefile;
  11964. fi
  11965. if test "$enable_largefile,$enable_year2038" != no,no
  11966. then :
  11967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
  11968. printf %s "checking for $CC option to enable large file support... " >&6; }
  11969. if test ${ac_cv_sys_largefile_opts+y}
  11970. then :
  11971. printf %s "(cached) " >&6
  11972. else case e in #(
  11973. e) ac_save_CC="$CC"
  11974. ac_opt_found=no
  11975. for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
  11976. if test x"$ac_opt" != x"none needed"
  11977. then :
  11978. CC="$ac_save_CC $ac_opt"
  11979. fi
  11980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11981. /* end confdefs.h. */
  11982. #include <sys/types.h>
  11983. #ifndef FTYPE
  11984. # define FTYPE off_t
  11985. #endif
  11986. /* Check that FTYPE can represent 2**63 - 1 correctly.
  11987. We can't simply define LARGE_FTYPE to be 9223372036854775807,
  11988. since some C++ compilers masquerading as C compilers
  11989. incorrectly reject 9223372036854775807. */
  11990. #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
  11991. int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
  11992. && LARGE_FTYPE % 2147483647 == 1)
  11993. ? 1 : -1];
  11994. int
  11995. main (void)
  11996. {
  11997. ;
  11998. return 0;
  11999. }
  12000. _ACEOF
  12001. if ac_fn_c_try_compile "$LINENO"
  12002. then :
  12003. if test x"$ac_opt" = x"none needed"
  12004. then :
  12005. # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
  12006. CC="$CC -DFTYPE=ino_t"
  12007. if ac_fn_c_try_compile "$LINENO"
  12008. then :
  12009. else case e in #(
  12010. e) CC="$CC -D_FILE_OFFSET_BITS=64"
  12011. if ac_fn_c_try_compile "$LINENO"
  12012. then :
  12013. ac_opt='-D_FILE_OFFSET_BITS=64'
  12014. fi
  12015. rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
  12016. esac
  12017. fi
  12018. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12019. fi
  12020. ac_cv_sys_largefile_opts=$ac_opt
  12021. ac_opt_found=yes
  12022. fi
  12023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12024. test $ac_opt_found = no || break
  12025. done
  12026. CC="$ac_save_CC"
  12027. test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
  12028. esac
  12029. fi
  12030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
  12031. printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
  12032. ac_have_largefile=yes
  12033. case $ac_cv_sys_largefile_opts in #(
  12034. "none needed") :
  12035. ;; #(
  12036. "supported through gnulib") :
  12037. ;; #(
  12038. "support not detected") :
  12039. ac_have_largefile=no ;; #(
  12040. "-D_FILE_OFFSET_BITS=64") :
  12041. printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
  12042. ;; #(
  12043. "-D_LARGE_FILES=1") :
  12044. printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
  12045. ;; #(
  12046. "-n32") :
  12047. CC="$CC -n32" ;; #(
  12048. *) :
  12049. as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
  12050. esac
  12051. if test "$enable_year2038" != no
  12052. then :
  12053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
  12054. printf %s "checking for $CC option for timestamps after 2038... " >&6; }
  12055. if test ${ac_cv_sys_year2038_opts+y}
  12056. then :
  12057. printf %s "(cached) " >&6
  12058. else case e in #(
  12059. e) ac_save_CPPFLAGS="$CPPFLAGS"
  12060. ac_opt_found=no
  12061. for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
  12062. if test x"$ac_opt" != x"none needed"
  12063. then :
  12064. CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
  12065. fi
  12066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12067. /* end confdefs.h. */
  12068. #include <time.h>
  12069. /* Check that time_t can represent 2**32 - 1 correctly. */
  12070. #define LARGE_TIME_T \\
  12071. ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
  12072. int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
  12073. && LARGE_TIME_T % 65537 == 0)
  12074. ? 1 : -1];
  12075. int
  12076. main (void)
  12077. {
  12078. ;
  12079. return 0;
  12080. }
  12081. _ACEOF
  12082. if ac_fn_c_try_compile "$LINENO"
  12083. then :
  12084. ac_cv_sys_year2038_opts="$ac_opt"
  12085. ac_opt_found=yes
  12086. fi
  12087. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12088. test $ac_opt_found = no || break
  12089. done
  12090. CPPFLAGS="$ac_save_CPPFLAGS"
  12091. test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
  12092. esac
  12093. fi
  12094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
  12095. printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
  12096. ac_have_year2038=yes
  12097. case $ac_cv_sys_year2038_opts in #(
  12098. "none needed") :
  12099. ;; #(
  12100. "support not detected") :
  12101. ac_have_year2038=no ;; #(
  12102. "-D_TIME_BITS=64") :
  12103. printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
  12104. ;; #(
  12105. "-D__MINGW_USE_VC2005_COMPAT") :
  12106. printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
  12107. ;; #(
  12108. "-U_USE_32_BIT_TIME_T"*) :
  12109. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  12110. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  12111. as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
  12112. will stop working after mid-January 2038. Remove
  12113. _USE_32BIT_TIME_T from the compiler flags.
  12114. See 'config.log' for more details" "$LINENO" 5; } ;; #(
  12115. *) :
  12116. as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
  12117. esac
  12118. fi
  12119. fi
  12120. # Check for GCC visibility feature
  12121. VISIBILITY_CFLAGS=
  12122. VISIBILITY_CXXFLAGS=
  12123. HAVE_VISIBILITY=0
  12124. if test -n "$GCC"; then
  12125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  12126. printf %s "checking whether the -Werror option is usable... " >&6; }
  12127. if test ${pcre2_cv_cc_vis_werror+y}
  12128. then :
  12129. printf %s "(cached) " >&6
  12130. else case e in #(
  12131. e)
  12132. pcre2_save_CFLAGS="$CFLAGS"
  12133. CFLAGS="$CFLAGS -Werror"
  12134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12135. /* end confdefs.h. */
  12136. int
  12137. main (void)
  12138. {
  12139. ;
  12140. return 0;
  12141. }
  12142. _ACEOF
  12143. if ac_fn_c_try_compile "$LINENO"
  12144. then :
  12145. pcre2_cv_cc_vis_werror=yes
  12146. else case e in #(
  12147. e) pcre2_cv_cc_vis_werror=no ;;
  12148. esac
  12149. fi
  12150. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12151. CFLAGS="$pcre2_save_CFLAGS" ;;
  12152. esac
  12153. fi
  12154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_vis_werror" >&5
  12155. printf "%s\n" "$pcre2_cv_cc_vis_werror" >&6; }
  12156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  12157. printf %s "checking for simple visibility declarations... " >&6; }
  12158. if test ${pcre2_cv_cc_visibility+y}
  12159. then :
  12160. printf %s "(cached) " >&6
  12161. else case e in #(
  12162. e)
  12163. pcre2_save_CFLAGS="$CFLAGS"
  12164. CFLAGS="$CFLAGS -fvisibility=hidden"
  12165. if test $pcre2_cv_cc_vis_werror = yes; then
  12166. CFLAGS="$CFLAGS -Werror"
  12167. fi
  12168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12169. /* end confdefs.h. */
  12170. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  12171. extern __attribute__((__visibility__("default"))) int exportedvar;
  12172. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  12173. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  12174. void dummyfunc (void) {}
  12175. int
  12176. main (void)
  12177. {
  12178. ;
  12179. return 0;
  12180. }
  12181. _ACEOF
  12182. if ac_fn_c_try_compile "$LINENO"
  12183. then :
  12184. pcre2_cv_cc_visibility=yes
  12185. else case e in #(
  12186. e) pcre2_cv_cc_visibility=no ;;
  12187. esac
  12188. fi
  12189. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12190. CFLAGS="$pcre2_save_CFLAGS" ;;
  12191. esac
  12192. fi
  12193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cv_cc_visibility" >&5
  12194. printf "%s\n" "$pcre2_cv_cc_visibility" >&6; }
  12195. if test $pcre2_cv_cc_visibility = yes; then
  12196. VISIBILITY_CFLAGS="-fvisibility=hidden"
  12197. VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
  12198. HAVE_VISIBILITY=1
  12199. printf "%s\n" "#define PCRE2_EXPORT __attribute__ ((visibility (\"default\")))" >>confdefs.h
  12200. else
  12201. printf "%s\n" "#define PCRE2_EXPORT /**/" >>confdefs.h
  12202. fi
  12203. fi
  12204. printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
  12205. # Check for the mul_overflow() builtin
  12206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow()" >&5
  12207. printf %s "checking for __builtin_mul_overflow()... " >&6; }
  12208. ac_ext=c
  12209. ac_cpp='$CPP $CPPFLAGS'
  12210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. #ifdef HAVE_SYS_TYPES_H
  12216. #include <sys/types.h>
  12217. #endif
  12218. #include <stddef.h>
  12219. int a, b;
  12220. size_t m;
  12221. int
  12222. main (void)
  12223. {
  12224. __builtin_mul_overflow(a, b, &m)
  12225. ;
  12226. return 0;
  12227. }
  12228. _ACEOF
  12229. if ac_fn_c_try_link "$LINENO"
  12230. then :
  12231. pcre2_cc_cv_builtin_mul_overflow=yes
  12232. else case e in #(
  12233. e) pcre2_cc_cv_builtin_mul_overflow=no ;;
  12234. esac
  12235. fi
  12236. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12237. conftest$ac_exeext conftest.$ac_ext
  12238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_builtin_mul_overflow" >&5
  12239. printf "%s\n" "$pcre2_cc_cv_builtin_mul_overflow" >&6; }
  12240. if test "$pcre2_cc_cv_builtin_mul_overflow" = yes; then
  12241. printf "%s\n" "#define HAVE_BUILTIN_MUL_OVERFLOW 1" >>confdefs.h
  12242. fi
  12243. ac_ext=c
  12244. ac_cpp='$CPP $CPPFLAGS'
  12245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12248. # Check for Clang __attribute__((uninitialized)) feature
  12249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((uninitialized))" >&5
  12250. printf %s "checking for __attribute__((uninitialized))... " >&6; }
  12251. ac_ext=c
  12252. ac_cpp='$CPP $CPPFLAGS'
  12253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12256. tmp_CFLAGS=$CFLAGS
  12257. CFLAGS="$CFLAGS -Werror"
  12258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12259. /* end confdefs.h. */
  12260. int
  12261. main (void)
  12262. {
  12263. char buf[128] __attribute__((uninitialized));(void)buf
  12264. ;
  12265. return 0;
  12266. }
  12267. _ACEOF
  12268. if ac_fn_c_try_compile "$LINENO"
  12269. then :
  12270. pcre2_cc_cv_attribute_uninitialized=yes
  12271. else case e in #(
  12272. e) pcre2_cc_cv_attribute_uninitialized=no ;;
  12273. esac
  12274. fi
  12275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_attribute_uninitialized" >&5
  12277. printf "%s\n" "$pcre2_cc_cv_attribute_uninitialized" >&6; }
  12278. if test "$pcre2_cc_cv_attribute_uninitialized" = yes; then
  12279. printf "%s\n" "#define HAVE_ATTRIBUTE_UNINITIALIZED 1" >>confdefs.h
  12280. fi
  12281. CFLAGS=$tmp_CFLAGS
  12282. ac_ext=c
  12283. ac_cpp='$CPP $CPPFLAGS'
  12284. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12285. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12286. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12287. # Versioning
  12288. PCRE2_MAJOR="10"
  12289. PCRE2_MINOR="43"
  12290. PCRE2_PRERELEASE=""
  12291. PCRE2_DATE="2024-02-16"
  12292. if test "$PCRE2_MINOR" = "08" -o "$PCRE2_MINOR" = "09"
  12293. then
  12294. echo "***"
  12295. echo "*** Minor version number $PCRE2_MINOR must not be used. ***"
  12296. echo "*** Use only 00 to 07 or 10 onwards, to avoid octal issues. ***"
  12297. echo "***"
  12298. exit 1
  12299. fi
  12300. # Set a more sensible default value for $(htmldir).
  12301. if test "x$htmldir" = 'x${docdir}'
  12302. then
  12303. htmldir='${docdir}/html'
  12304. fi
  12305. # Force an error for PCRE1 size options
  12306. # Check whether --enable-pcre8 was given.
  12307. if test ${enable_pcre8+y}
  12308. then :
  12309. enableval=$enable_pcre8;
  12310. else case e in #(
  12311. e) enable_pcre8=no ;;
  12312. esac
  12313. fi
  12314. # Check whether --enable-pcre16 was given.
  12315. if test ${enable_pcre16+y}
  12316. then :
  12317. enableval=$enable_pcre16;
  12318. else case e in #(
  12319. e) enable_pcre16=no ;;
  12320. esac
  12321. fi
  12322. # Check whether --enable-pcre32 was given.
  12323. if test ${enable_pcre32+y}
  12324. then :
  12325. enableval=$enable_pcre32;
  12326. else case e in #(
  12327. e) enable_pcre32=no ;;
  12328. esac
  12329. fi
  12330. if test "$enable_pcre8$enable_pcre16$enable_pcre32" != "nonono"
  12331. then
  12332. echo "** ERROR: Use --[en|dis]able-pcre2-[8|16|32], not --[en|dis]able-pcre[8|16|32]"
  12333. exit 1
  12334. fi
  12335. # Handle --disable-pcre2-8 (enabled by default)
  12336. # Check whether --enable-pcre2-8 was given.
  12337. if test ${enable_pcre2_8+y}
  12338. then :
  12339. enableval=$enable_pcre2_8;
  12340. else case e in #(
  12341. e) enable_pcre2_8=unset ;;
  12342. esac
  12343. fi
  12344. # Handle --enable-pcre2-16 (disabled by default)
  12345. # Check whether --enable-pcre2-16 was given.
  12346. if test ${enable_pcre2_16+y}
  12347. then :
  12348. enableval=$enable_pcre2_16;
  12349. else case e in #(
  12350. e) enable_pcre2_16=unset ;;
  12351. esac
  12352. fi
  12353. # Handle --enable-pcre2-32 (disabled by default)
  12354. # Check whether --enable-pcre2-32 was given.
  12355. if test ${enable_pcre2_32+y}
  12356. then :
  12357. enableval=$enable_pcre2_32;
  12358. else case e in #(
  12359. e) enable_pcre2_32=unset ;;
  12360. esac
  12361. fi
  12362. # Handle --enable-debug (disabled by default)
  12363. # Check whether --enable-debug was given.
  12364. if test ${enable_debug+y}
  12365. then :
  12366. enableval=$enable_debug;
  12367. else case e in #(
  12368. e) enable_debug=no ;;
  12369. esac
  12370. fi
  12371. # Handle --enable-jit (disabled by default)
  12372. # Check whether --enable-jit was given.
  12373. if test ${enable_jit+y}
  12374. then :
  12375. enableval=$enable_jit;
  12376. else case e in #(
  12377. e) enable_jit=no ;;
  12378. esac
  12379. fi
  12380. # This code enables JIT if the hardware supports it.
  12381. if test "$enable_jit" = "auto"; then
  12382. ac_ext=c
  12383. ac_cpp='$CPP $CPPFLAGS'
  12384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12387. SAVE_CPPFLAGS=$CPPFLAGS
  12388. CPPFLAGS=-I$srcdir
  12389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12390. /* end confdefs.h. */
  12391. #define SLJIT_CONFIG_AUTO 1
  12392. #include "src/sljit/sljitConfigInternal.h"
  12393. #if (defined SLJIT_CONFIG_UNSUPPORTED && SLJIT_CONFIG_UNSUPPORTED)
  12394. #error unsupported
  12395. #endif
  12396. _ACEOF
  12397. if ac_fn_c_try_compile "$LINENO"
  12398. then :
  12399. enable_jit=yes
  12400. else case e in #(
  12401. e) enable_jit=no ;;
  12402. esac
  12403. fi
  12404. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12405. CPPFLAGS=$SAVE_CPPFLAGS
  12406. echo checking for JIT support on this hardware... $enable_jit
  12407. fi
  12408. # Handle --enable-jit-sealloc (disabled by default and only experimental)
  12409. case $host_os in
  12410. linux* | netbsd*)
  12411. # Check whether --enable-jit-sealloc was given.
  12412. if test ${enable_jit_sealloc+y}
  12413. then :
  12414. enableval=$enable_jit_sealloc;
  12415. else case e in #(
  12416. e) enable_jit_sealloc=no ;;
  12417. esac
  12418. fi
  12419. ;;
  12420. *)
  12421. enable_jit_sealloc=unsupported
  12422. ;;
  12423. esac
  12424. # Handle --disable-pcre2grep-jit (enabled by default)
  12425. # Check whether --enable-pcre2grep-jit was given.
  12426. if test ${enable_pcre2grep_jit+y}
  12427. then :
  12428. enableval=$enable_pcre2grep_jit;
  12429. else case e in #(
  12430. e) enable_pcre2grep_jit=yes ;;
  12431. esac
  12432. fi
  12433. # Handle --disable-pcre2grep-callout (enabled by default)
  12434. # Check whether --enable-pcre2grep-callout was given.
  12435. if test ${enable_pcre2grep_callout+y}
  12436. then :
  12437. enableval=$enable_pcre2grep_callout;
  12438. else case e in #(
  12439. e) enable_pcre2grep_callout=yes ;;
  12440. esac
  12441. fi
  12442. # Handle --disable-pcre2grep-callout-fork (enabled by default)
  12443. # Check whether --enable-pcre2grep-callout-fork was given.
  12444. if test ${enable_pcre2grep_callout_fork+y}
  12445. then :
  12446. enableval=$enable_pcre2grep_callout_fork;
  12447. else case e in #(
  12448. e) enable_pcre2grep_callout_fork=yes ;;
  12449. esac
  12450. fi
  12451. # Handle --enable-rebuild-chartables
  12452. # Check whether --enable-rebuild-chartables was given.
  12453. if test ${enable_rebuild_chartables+y}
  12454. then :
  12455. enableval=$enable_rebuild_chartables;
  12456. else case e in #(
  12457. e) enable_rebuild_chartables=no ;;
  12458. esac
  12459. fi
  12460. # Handle --disable-unicode (enabled by default)
  12461. # Check whether --enable-unicode was given.
  12462. if test ${enable_unicode+y}
  12463. then :
  12464. enableval=$enable_unicode;
  12465. else case e in #(
  12466. e) enable_unicode=unset ;;
  12467. esac
  12468. fi
  12469. # Handle newline options
  12470. ac_pcre2_newline=lf
  12471. # Check whether --enable-newline-is-cr was given.
  12472. if test ${enable_newline_is_cr+y}
  12473. then :
  12474. enableval=$enable_newline_is_cr; ac_pcre2_newline=cr
  12475. fi
  12476. # Check whether --enable-newline-is-lf was given.
  12477. if test ${enable_newline_is_lf+y}
  12478. then :
  12479. enableval=$enable_newline_is_lf; ac_pcre2_newline=lf
  12480. fi
  12481. # Check whether --enable-newline-is-crlf was given.
  12482. if test ${enable_newline_is_crlf+y}
  12483. then :
  12484. enableval=$enable_newline_is_crlf; ac_pcre2_newline=crlf
  12485. fi
  12486. # Check whether --enable-newline-is-anycrlf was given.
  12487. if test ${enable_newline_is_anycrlf+y}
  12488. then :
  12489. enableval=$enable_newline_is_anycrlf; ac_pcre2_newline=anycrlf
  12490. fi
  12491. # Check whether --enable-newline-is-any was given.
  12492. if test ${enable_newline_is_any+y}
  12493. then :
  12494. enableval=$enable_newline_is_any; ac_pcre2_newline=any
  12495. fi
  12496. # Check whether --enable-newline-is-nul was given.
  12497. if test ${enable_newline_is_nul+y}
  12498. then :
  12499. enableval=$enable_newline_is_nul; ac_pcre2_newline=nul
  12500. fi
  12501. enable_newline="$ac_pcre2_newline"
  12502. # Handle --enable-bsr-anycrlf
  12503. # Check whether --enable-bsr-anycrlf was given.
  12504. if test ${enable_bsr_anycrlf+y}
  12505. then :
  12506. enableval=$enable_bsr_anycrlf;
  12507. else case e in #(
  12508. e) enable_bsr_anycrlf=no ;;
  12509. esac
  12510. fi
  12511. # Handle --enable-never-backslash-C
  12512. # Check whether --enable-never-backslash-C was given.
  12513. if test ${enable_never_backslash_C+y}
  12514. then :
  12515. enableval=$enable_never_backslash_C;
  12516. else case e in #(
  12517. e) enable_never_backslash_C=no ;;
  12518. esac
  12519. fi
  12520. # Handle --enable-ebcdic
  12521. # Check whether --enable-ebcdic was given.
  12522. if test ${enable_ebcdic+y}
  12523. then :
  12524. enableval=$enable_ebcdic;
  12525. else case e in #(
  12526. e) enable_ebcdic=no ;;
  12527. esac
  12528. fi
  12529. # Handle --enable-ebcdic-nl25
  12530. # Check whether --enable-ebcdic-nl25 was given.
  12531. if test ${enable_ebcdic_nl25+y}
  12532. then :
  12533. enableval=$enable_ebcdic_nl25;
  12534. else case e in #(
  12535. e) enable_ebcdic_nl25=no ;;
  12536. esac
  12537. fi
  12538. # Handle --enable-pcre2grep-libz
  12539. # Check whether --enable-pcre2grep-libz was given.
  12540. if test ${enable_pcre2grep_libz+y}
  12541. then :
  12542. enableval=$enable_pcre2grep_libz;
  12543. else case e in #(
  12544. e) enable_pcre2grep_libz=no ;;
  12545. esac
  12546. fi
  12547. # Handle --enable-pcre2grep-libbz2
  12548. # Check whether --enable-pcre2grep-libbz2 was given.
  12549. if test ${enable_pcre2grep_libbz2+y}
  12550. then :
  12551. enableval=$enable_pcre2grep_libbz2;
  12552. else case e in #(
  12553. e) enable_pcre2grep_libbz2=no ;;
  12554. esac
  12555. fi
  12556. # Handle --with-pcre2grep-bufsize=N
  12557. # Check whether --with-pcre2grep-bufsize was given.
  12558. if test ${with_pcre2grep_bufsize+y}
  12559. then :
  12560. withval=$with_pcre2grep_bufsize;
  12561. else case e in #(
  12562. e) with_pcre2grep_bufsize=20480 ;;
  12563. esac
  12564. fi
  12565. # Handle --with-pcre2grep-max-bufsize=N
  12566. # Check whether --with-pcre2grep-max-bufsize was given.
  12567. if test ${with_pcre2grep_max_bufsize+y}
  12568. then :
  12569. withval=$with_pcre2grep_max_bufsize;
  12570. else case e in #(
  12571. e) with_pcre2grep_max_bufsize=1048576 ;;
  12572. esac
  12573. fi
  12574. # Handle --enable-pcre2test-libedit
  12575. # Check whether --enable-pcre2test-libedit was given.
  12576. if test ${enable_pcre2test_libedit+y}
  12577. then :
  12578. enableval=$enable_pcre2test_libedit;
  12579. else case e in #(
  12580. e) enable_pcre2test_libedit=no ;;
  12581. esac
  12582. fi
  12583. # Handle --enable-pcre2test-libreadline
  12584. # Check whether --enable-pcre2test-libreadline was given.
  12585. if test ${enable_pcre2test_libreadline+y}
  12586. then :
  12587. enableval=$enable_pcre2test_libreadline;
  12588. else case e in #(
  12589. e) enable_pcre2test_libreadline=no ;;
  12590. esac
  12591. fi
  12592. # Handle --with-link-size=N
  12593. # Check whether --with-link-size was given.
  12594. if test ${with_link_size+y}
  12595. then :
  12596. withval=$with_link_size;
  12597. else case e in #(
  12598. e) with_link_size=2 ;;
  12599. esac
  12600. fi
  12601. # Handle --with-max-varlookbehind=N
  12602. # Check whether --with-max-varlookbehind was given.
  12603. if test ${with_max_varlookbehind+y}
  12604. then :
  12605. withval=$with_max_varlookbehind;
  12606. else case e in #(
  12607. e) with_max_varlookbehind=255 ;;
  12608. esac
  12609. fi
  12610. # Handle --with-parens-nest-limit=N
  12611. # Check whether --with-parens-nest-limit was given.
  12612. if test ${with_parens_nest_limit+y}
  12613. then :
  12614. withval=$with_parens_nest_limit;
  12615. else case e in #(
  12616. e) with_parens_nest_limit=250 ;;
  12617. esac
  12618. fi
  12619. # Handle --with-heap-limit
  12620. # Check whether --with-heap-limit was given.
  12621. if test ${with_heap_limit+y}
  12622. then :
  12623. withval=$with_heap_limit;
  12624. else case e in #(
  12625. e) with_heap_limit=20000000 ;;
  12626. esac
  12627. fi
  12628. # Handle --with-match-limit=N
  12629. # Check whether --with-match-limit was given.
  12630. if test ${with_match_limit+y}
  12631. then :
  12632. withval=$with_match_limit;
  12633. else case e in #(
  12634. e) with_match_limit=10000000 ;;
  12635. esac
  12636. fi
  12637. # Handle --with-match-limit-depth=N
  12638. # Recognize old synonym --with-match-limit-recursion
  12639. #
  12640. # Note: In config.h, the default is to define MATCH_LIMIT_DEPTH symbolically as
  12641. # MATCH_LIMIT, which in turn is defined to be some numeric value (e.g.
  12642. # 10000000). MATCH_LIMIT_DEPTH can otherwise be set to some different numeric
  12643. # value (or even the same numeric value as MATCH_LIMIT, though no longer
  12644. # defined in terms of the latter).
  12645. #
  12646. # Check whether --with-match-limit-depth was given.
  12647. if test ${with_match_limit_depth+y}
  12648. then :
  12649. withval=$with_match_limit_depth;
  12650. else case e in #(
  12651. e) with_match_limit_depth=MATCH_LIMIT ;;
  12652. esac
  12653. fi
  12654. # Check whether --with-match-limit-recursion was given.
  12655. if test ${with_match_limit_recursion+y}
  12656. then :
  12657. withval=$with_match_limit_recursion;
  12658. else case e in #(
  12659. e) with_match_limit_recursion=UNSET ;;
  12660. esac
  12661. fi
  12662. # Handle --enable-valgrind
  12663. # Check whether --enable-valgrind was given.
  12664. if test ${enable_valgrind+y}
  12665. then :
  12666. enableval=$enable_valgrind;
  12667. else case e in #(
  12668. e) enable_valgrind=no ;;
  12669. esac
  12670. fi
  12671. # Enable code coverage reports using gcov
  12672. # Check whether --enable-coverage was given.
  12673. if test ${enable_coverage+y}
  12674. then :
  12675. enableval=$enable_coverage;
  12676. else case e in #(
  12677. e) enable_coverage=no ;;
  12678. esac
  12679. fi
  12680. # Handle --enable-fuzz-support
  12681. # Check whether --enable-fuzz_support was given.
  12682. if test ${enable_fuzz_support+y}
  12683. then :
  12684. enableval=$enable_fuzz_support;
  12685. else case e in #(
  12686. e) enable_fuzz_support=no ;;
  12687. esac
  12688. fi
  12689. # Handle --enable-diff-fuzz-support
  12690. # Check whether --enable-diff_fuzz_support was given.
  12691. if test ${enable_diff_fuzz_support+y}
  12692. then :
  12693. enableval=$enable_diff_fuzz_support;
  12694. else case e in #(
  12695. e) enable_diff_fuzz_support=no ;;
  12696. esac
  12697. fi
  12698. # Handle --disable-stack-for-recursion
  12699. # This option became obsolete at release 10.30.
  12700. # Check whether --enable-stack-for-recursion was given.
  12701. if test ${enable_stack_for_recursion+y}
  12702. then :
  12703. enableval=$enable_stack_for_recursion;
  12704. else case e in #(
  12705. e) enable_stack_for_recursion=yes ;;
  12706. esac
  12707. fi
  12708. # Original code
  12709. # AC_ARG_ENABLE(stack-for-recursion,
  12710. # AS_HELP_STRING([--disable-stack-for-recursion],
  12711. # [don't use stack recursion when matching]),
  12712. # , enable_stack_for_recursion=yes)
  12713. # Handle --disable-percent_zt (set as "auto" by default)
  12714. # Check whether --enable-percent-zt was given.
  12715. if test ${enable_percent_zt+y}
  12716. then :
  12717. enableval=$enable_percent_zt;
  12718. else case e in #(
  12719. e) enable_percent_zt=auto ;;
  12720. esac
  12721. fi
  12722. # Set the default value for pcre2-8
  12723. if test "x$enable_pcre2_8" = "xunset"
  12724. then
  12725. enable_pcre2_8=yes
  12726. fi
  12727. # Set the default value for pcre2-16
  12728. if test "x$enable_pcre2_16" = "xunset"
  12729. then
  12730. enable_pcre2_16=no
  12731. fi
  12732. # Set the default value for pcre2-32
  12733. if test "x$enable_pcre2_32" = "xunset"
  12734. then
  12735. enable_pcre2_32=no
  12736. fi
  12737. # Make sure at least one library is selected
  12738. if test "x$enable_pcre2_8$enable_pcre2_16$enable_pcre2_32" = "xnonono"
  12739. then
  12740. as_fn_error $? "At least one of the 8, 16 or 32 bit libraries must be enabled" "$LINENO" 5
  12741. fi
  12742. # Unicode is enabled by default.
  12743. if test "x$enable_unicode" = "xunset"
  12744. then
  12745. enable_unicode=yes
  12746. fi
  12747. # Convert the newline identifier into the appropriate integer value. These must
  12748. # agree with the PCRE2_NEWLINE_xxx values in pcre2.h.
  12749. case "$enable_newline" in
  12750. cr) ac_pcre2_newline_value=1 ;;
  12751. lf) ac_pcre2_newline_value=2 ;;
  12752. crlf) ac_pcre2_newline_value=3 ;;
  12753. any) ac_pcre2_newline_value=4 ;;
  12754. anycrlf) ac_pcre2_newline_value=5 ;;
  12755. nul) ac_pcre2_newline_value=6 ;;
  12756. *)
  12757. as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
  12758. ;;
  12759. esac
  12760. # --enable-ebcdic-nl25 implies --enable-ebcdic
  12761. if test "x$enable_ebcdic_nl25" = "xyes"; then
  12762. enable_ebcdic=yes
  12763. fi
  12764. # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled.
  12765. # Also check that UTF support is not requested, because PCRE2 cannot handle
  12766. # EBCDIC and UTF in the same build. To do so it would need to use different
  12767. # character constants depending on the mode. Also, EBCDIC cannot be used with
  12768. # 16-bit and 32-bit libraries.
  12769. #
  12770. if test "x$enable_ebcdic" = "xyes"; then
  12771. enable_rebuild_chartables=yes
  12772. if test "x$enable_unicode" = "xyes"; then
  12773. as_fn_error $? "support for EBCDIC and Unicode cannot be enabled at the same time" "$LINENO" 5
  12774. fi
  12775. if test "x$enable_pcre2_16" = "xyes" -o "x$enable_pcre2_32" = "xyes"; then
  12776. as_fn_error $? "EBCDIC support is available only for the 8-bit library" "$LINENO" 5
  12777. fi
  12778. fi
  12779. # Check argument to --with-link-size
  12780. case "$with_link_size" in
  12781. 2|3|4) ;;
  12782. *)
  12783. as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
  12784. ;;
  12785. esac
  12786. # Checks for header files.
  12787. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  12788. if test "x$ac_cv_header_limits_h" = xyes
  12789. then :
  12790. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  12791. fi
  12792. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  12793. if test "x$ac_cv_header_sys_types_h" = xyes
  12794. then :
  12795. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  12796. fi
  12797. ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  12798. if test "x$ac_cv_header_sys_stat_h" = xyes
  12799. then :
  12800. printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
  12801. fi
  12802. ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
  12803. if test "x$ac_cv_header_dirent_h" = xyes
  12804. then :
  12805. printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
  12806. fi
  12807. for ac_header in windows.h
  12808. do :
  12809. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  12810. if test "x$ac_cv_header_windows_h" = xyes
  12811. then :
  12812. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  12813. HAVE_WINDOWS_H=1
  12814. fi
  12815. done
  12816. for ac_header in sys/wait.h
  12817. do :
  12818. ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
  12819. if test "x$ac_cv_header_sys_wait_h" = xyes
  12820. then :
  12821. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12822. HAVE_SYS_WAIT_H=1
  12823. fi
  12824. done
  12825. # Conditional compilation
  12826. if test "x$enable_pcre2_8" = "xyes"; then
  12827. WITH_PCRE2_8_TRUE=
  12828. WITH_PCRE2_8_FALSE='#'
  12829. else
  12830. WITH_PCRE2_8_TRUE='#'
  12831. WITH_PCRE2_8_FALSE=
  12832. fi
  12833. if test "x$enable_pcre2_16" = "xyes"; then
  12834. WITH_PCRE2_16_TRUE=
  12835. WITH_PCRE2_16_FALSE='#'
  12836. else
  12837. WITH_PCRE2_16_TRUE='#'
  12838. WITH_PCRE2_16_FALSE=
  12839. fi
  12840. if test "x$enable_pcre2_32" = "xyes"; then
  12841. WITH_PCRE2_32_TRUE=
  12842. WITH_PCRE2_32_FALSE='#'
  12843. else
  12844. WITH_PCRE2_32_TRUE='#'
  12845. WITH_PCRE2_32_FALSE=
  12846. fi
  12847. if test "x$enable_debug" = "xyes"; then
  12848. WITH_DEBUG_TRUE=
  12849. WITH_DEBUG_FALSE='#'
  12850. else
  12851. WITH_DEBUG_TRUE='#'
  12852. WITH_DEBUG_FALSE=
  12853. fi
  12854. if test "x$enable_rebuild_chartables" = "xyes"; then
  12855. WITH_REBUILD_CHARTABLES_TRUE=
  12856. WITH_REBUILD_CHARTABLES_FALSE='#'
  12857. else
  12858. WITH_REBUILD_CHARTABLES_TRUE='#'
  12859. WITH_REBUILD_CHARTABLES_FALSE=
  12860. fi
  12861. if test "x$enable_jit" = "xyes"; then
  12862. WITH_JIT_TRUE=
  12863. WITH_JIT_FALSE='#'
  12864. else
  12865. WITH_JIT_TRUE='#'
  12866. WITH_JIT_FALSE=
  12867. fi
  12868. if test "x$enable_unicode" = "xyes"; then
  12869. WITH_UNICODE_TRUE=
  12870. WITH_UNICODE_FALSE='#'
  12871. else
  12872. WITH_UNICODE_TRUE='#'
  12873. WITH_UNICODE_FALSE=
  12874. fi
  12875. if test "x$enable_valgrind" = "xyes"; then
  12876. WITH_VALGRIND_TRUE=
  12877. WITH_VALGRIND_FALSE='#'
  12878. else
  12879. WITH_VALGRIND_TRUE='#'
  12880. WITH_VALGRIND_FALSE=
  12881. fi
  12882. if test "x$enable_fuzz_support" = "xyes"; then
  12883. WITH_FUZZ_SUPPORT_TRUE=
  12884. WITH_FUZZ_SUPPORT_FALSE='#'
  12885. else
  12886. WITH_FUZZ_SUPPORT_TRUE='#'
  12887. WITH_FUZZ_SUPPORT_FALSE=
  12888. fi
  12889. if test "x$enable_diff_fuzz_support" = "xyes"; then
  12890. WITH_DIFF_FUZZ_SUPPORT_TRUE=
  12891. WITH_DIFF_FUZZ_SUPPORT_FALSE='#'
  12892. else
  12893. WITH_DIFF_FUZZ_SUPPORT_TRUE='#'
  12894. WITH_DIFF_FUZZ_SUPPORT_FALSE=
  12895. fi
  12896. if test "$enable_fuzz_support" = "yes" -a "$enable_pcre2_8" = "no"; then
  12897. echo "** ERROR: Fuzzer support requires the 8-bit library"
  12898. exit 1
  12899. fi
  12900. if test "$enable_diff_fuzz_support" = "yes"; then
  12901. if test "$enable_fuzz_support" = "no"; then
  12902. echo "** ERROR: Differential fuzzing support requires fuzzing support"
  12903. exit 1
  12904. fi
  12905. if test "$enable_jit" = "no"; then
  12906. echo "** ERROR: Differential fuzzing support requires Just-in-Time compilation support"
  12907. exit 1
  12908. fi
  12909. printf "%s\n" "#define SUPPORT_DIFF_FUZZ /**/" >>confdefs.h
  12910. fi
  12911. # Checks for typedefs, structures, and compiler characteristics.
  12912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  12913. printf %s "checking for an ANSI C-conforming const... " >&6; }
  12914. if test ${ac_cv_c_const+y}
  12915. then :
  12916. printf %s "(cached) " >&6
  12917. else case e in #(
  12918. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12919. /* end confdefs.h. */
  12920. int
  12921. main (void)
  12922. {
  12923. #ifndef __cplusplus
  12924. /* Ultrix mips cc rejects this sort of thing. */
  12925. typedef int charset[2];
  12926. const charset cs = { 0, 0 };
  12927. /* SunOS 4.1.1 cc rejects this. */
  12928. char const *const *pcpcc;
  12929. char **ppc;
  12930. /* NEC SVR4.0.2 mips cc rejects this. */
  12931. struct point {int x, y;};
  12932. static struct point const zero = {0,0};
  12933. /* IBM XL C 1.02.0.0 rejects this.
  12934. It does not let you subtract one const X* pointer from another in
  12935. an arm of an if-expression whose if-part is not a constant
  12936. expression */
  12937. const char *g = "string";
  12938. pcpcc = &g + (g ? g-g : 0);
  12939. /* HPUX 7.0 cc rejects these. */
  12940. ++pcpcc;
  12941. ppc = (char**) pcpcc;
  12942. pcpcc = (char const *const *) ppc;
  12943. { /* SCO 3.2v4 cc rejects this sort of thing. */
  12944. char tx;
  12945. char *t = &tx;
  12946. char const *s = 0 ? (char *) 0 : (char const *) 0;
  12947. *t++ = 0;
  12948. if (s) return 0;
  12949. }
  12950. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12951. int x[] = {25, 17};
  12952. const int *foo = &x[0];
  12953. ++foo;
  12954. }
  12955. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12956. typedef const int *iptr;
  12957. iptr p = 0;
  12958. ++p;
  12959. }
  12960. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  12961. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12962. struct s { int j; const int *ap[3]; } bx;
  12963. struct s *b = &bx; b->j = 5;
  12964. }
  12965. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12966. const int foo = 10;
  12967. if (!foo) return 0;
  12968. }
  12969. return !cs[0] && !zero.x;
  12970. #endif
  12971. ;
  12972. return 0;
  12973. }
  12974. _ACEOF
  12975. if ac_fn_c_try_compile "$LINENO"
  12976. then :
  12977. ac_cv_c_const=yes
  12978. else case e in #(
  12979. e) ac_cv_c_const=no ;;
  12980. esac
  12981. fi
  12982. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  12983. esac
  12984. fi
  12985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  12986. printf "%s\n" "$ac_cv_c_const" >&6; }
  12987. if test $ac_cv_c_const = no; then
  12988. printf "%s\n" "#define const /**/" >>confdefs.h
  12989. fi
  12990. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12991. if test "x$ac_cv_type_size_t" = xyes
  12992. then :
  12993. else case e in #(
  12994. e)
  12995. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  12996. ;;
  12997. esac
  12998. fi
  12999. # Checks for library functions.
  13000. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  13001. if test "x$ac_cv_func_bcopy" = xyes
  13002. then :
  13003. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  13004. fi
  13005. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  13006. if test "x$ac_cv_func_memfd_create" = xyes
  13007. then :
  13008. printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
  13009. fi
  13010. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  13011. if test "x$ac_cv_func_memmove" = xyes
  13012. then :
  13013. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  13014. fi
  13015. ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
  13016. if test "x$ac_cv_func_mkostemp" = xyes
  13017. then :
  13018. printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
  13019. fi
  13020. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  13021. if test "x$ac_cv_func_secure_getenv" = xyes
  13022. then :
  13023. printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
  13024. fi
  13025. ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
  13026. if test "x$ac_cv_func_strerror" = xyes
  13027. then :
  13028. printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
  13029. fi
  13030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
  13031. printf %s "checking for realpath... " >&6; }
  13032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13033. /* end confdefs.h. */
  13034. #include <stdlib.h>
  13035. #include <limits.h>
  13036. int
  13037. main (void)
  13038. {
  13039. char buffer[PATH_MAX];
  13040. realpath(".", buffer);
  13041. ;
  13042. return 0;
  13043. }
  13044. _ACEOF
  13045. if ac_fn_c_try_link "$LINENO"
  13046. then :
  13047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13048. printf "%s\n" "yes" >&6; }
  13049. printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
  13050. else case e in #(
  13051. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13052. printf "%s\n" "no" >&6; } ;;
  13053. esac
  13054. fi
  13055. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13056. conftest$ac_exeext conftest.$ac_ext
  13057. # Check for the availability of libz (aka zlib)
  13058. for ac_header in zlib.h
  13059. do :
  13060. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  13061. if test "x$ac_cv_header_zlib_h" = xyes
  13062. then :
  13063. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  13064. HAVE_ZLIB_H=1
  13065. fi
  13066. done
  13067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  13068. printf %s "checking for gzopen in -lz... " >&6; }
  13069. if test ${ac_cv_lib_z_gzopen+y}
  13070. then :
  13071. printf %s "(cached) " >&6
  13072. else case e in #(
  13073. e) ac_check_lib_save_LIBS=$LIBS
  13074. LIBS="-lz $LIBS"
  13075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13076. /* end confdefs.h. */
  13077. /* Override any GCC internal prototype to avoid an error.
  13078. Use char because int might match the return type of a GCC
  13079. builtin and then its argument prototype would still apply.
  13080. The 'extern "C"' is for builds by C++ compilers;
  13081. although this is not generally supported in C code supporting it here
  13082. has little cost and some practical benefit (sr 110532). */
  13083. #ifdef __cplusplus
  13084. extern "C"
  13085. #endif
  13086. char gzopen (void);
  13087. int
  13088. main (void)
  13089. {
  13090. return gzopen ();
  13091. ;
  13092. return 0;
  13093. }
  13094. _ACEOF
  13095. if ac_fn_c_try_link "$LINENO"
  13096. then :
  13097. ac_cv_lib_z_gzopen=yes
  13098. else case e in #(
  13099. e) ac_cv_lib_z_gzopen=no ;;
  13100. esac
  13101. fi
  13102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13103. conftest$ac_exeext conftest.$ac_ext
  13104. LIBS=$ac_check_lib_save_LIBS ;;
  13105. esac
  13106. fi
  13107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  13108. printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
  13109. if test "x$ac_cv_lib_z_gzopen" = xyes
  13110. then :
  13111. HAVE_LIBZ=1
  13112. fi
  13113. # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
  13114. # as for libz. However, this had the following problem, diagnosed and fixed by
  13115. # a user:
  13116. #
  13117. # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
  13118. # under Win32.
  13119. # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
  13120. # therefore missing the function definition.
  13121. # - The compiler thus generates a "C" signature for the test function.
  13122. # - The linker fails to find the "C" function.
  13123. # - PCRE2 fails to configure if asked to do so against libbz2.
  13124. #
  13125. # Solution:
  13126. #
  13127. # - Replace the AC_CHECK_LIB test with a custom test.
  13128. for ac_header in bzlib.h
  13129. do :
  13130. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  13131. if test "x$ac_cv_header_bzlib_h" = xyes
  13132. then :
  13133. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  13134. HAVE_BZLIB_H=1
  13135. fi
  13136. done
  13137. # Original test
  13138. # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
  13139. #
  13140. # Custom test follows
  13141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
  13142. printf %s "checking for libbz2... " >&6; }
  13143. OLD_LIBS="$LIBS"
  13144. LIBS="$LIBS -lbz2"
  13145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13146. /* end confdefs.h. */
  13147. #ifdef HAVE_BZLIB_H
  13148. #include <bzlib.h>
  13149. #endif
  13150. int
  13151. main (void)
  13152. {
  13153. return (int)BZ2_bzopen("conftest", "rb");
  13154. ;
  13155. return 0;
  13156. }
  13157. _ACEOF
  13158. if ac_fn_c_try_link "$LINENO"
  13159. then :
  13160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13161. printf "%s\n" "yes" >&6; };HAVE_LIBBZ2=1; break;
  13162. else case e in #(
  13163. e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13164. printf "%s\n" "no" >&6; } ;;
  13165. esac
  13166. fi
  13167. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13168. conftest$ac_exeext conftest.$ac_ext
  13169. LIBS="$OLD_LIBS"
  13170. # Check for the availabiity of libreadline
  13171. if test "$enable_pcre2test_libreadline" = "yes"; then
  13172. for ac_header in readline/readline.h
  13173. do :
  13174. ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
  13175. if test "x$ac_cv_header_readline_readline_h" = xyes
  13176. then :
  13177. printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
  13178. HAVE_READLINE_H=1
  13179. fi
  13180. done
  13181. for ac_header in readline/history.h
  13182. do :
  13183. ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
  13184. if test "x$ac_cv_header_readline_history_h" = xyes
  13185. then :
  13186. printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
  13187. HAVE_HISTORY_H=1
  13188. fi
  13189. done
  13190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13191. printf %s "checking for readline in -lreadline... " >&6; }
  13192. if test ${ac_cv_lib_readline_readline+y}
  13193. then :
  13194. printf %s "(cached) " >&6
  13195. else case e in #(
  13196. e) ac_check_lib_save_LIBS=$LIBS
  13197. LIBS="-lreadline $LIBS"
  13198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13199. /* end confdefs.h. */
  13200. /* Override any GCC internal prototype to avoid an error.
  13201. Use char because int might match the return type of a GCC
  13202. builtin and then its argument prototype would still apply.
  13203. The 'extern "C"' is for builds by C++ compilers;
  13204. although this is not generally supported in C code supporting it here
  13205. has little cost and some practical benefit (sr 110532). */
  13206. #ifdef __cplusplus
  13207. extern "C"
  13208. #endif
  13209. char readline (void);
  13210. int
  13211. main (void)
  13212. {
  13213. return readline ();
  13214. ;
  13215. return 0;
  13216. }
  13217. _ACEOF
  13218. if ac_fn_c_try_link "$LINENO"
  13219. then :
  13220. ac_cv_lib_readline_readline=yes
  13221. else case e in #(
  13222. e) ac_cv_lib_readline_readline=no ;;
  13223. esac
  13224. fi
  13225. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13226. conftest$ac_exeext conftest.$ac_ext
  13227. LIBS=$ac_check_lib_save_LIBS ;;
  13228. esac
  13229. fi
  13230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13231. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13232. if test "x$ac_cv_lib_readline_readline" = xyes
  13233. then :
  13234. LIBREADLINE="-lreadline"
  13235. else case e in #(
  13236. e) unset ac_cv_lib_readline_readline;
  13237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13238. printf %s "checking for readline in -lreadline... " >&6; }
  13239. if test ${ac_cv_lib_readline_readline+y}
  13240. then :
  13241. printf %s "(cached) " >&6
  13242. else case e in #(
  13243. e) ac_check_lib_save_LIBS=$LIBS
  13244. LIBS="-lreadline -ltinfo $LIBS"
  13245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13246. /* end confdefs.h. */
  13247. /* Override any GCC internal prototype to avoid an error.
  13248. Use char because int might match the return type of a GCC
  13249. builtin and then its argument prototype would still apply.
  13250. The 'extern "C"' is for builds by C++ compilers;
  13251. although this is not generally supported in C code supporting it here
  13252. has little cost and some practical benefit (sr 110532). */
  13253. #ifdef __cplusplus
  13254. extern "C"
  13255. #endif
  13256. char readline (void);
  13257. int
  13258. main (void)
  13259. {
  13260. return readline ();
  13261. ;
  13262. return 0;
  13263. }
  13264. _ACEOF
  13265. if ac_fn_c_try_link "$LINENO"
  13266. then :
  13267. ac_cv_lib_readline_readline=yes
  13268. else case e in #(
  13269. e) ac_cv_lib_readline_readline=no ;;
  13270. esac
  13271. fi
  13272. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13273. conftest$ac_exeext conftest.$ac_ext
  13274. LIBS=$ac_check_lib_save_LIBS ;;
  13275. esac
  13276. fi
  13277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13278. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13279. if test "x$ac_cv_lib_readline_readline" = xyes
  13280. then :
  13281. LIBREADLINE="-ltinfo"
  13282. else case e in #(
  13283. e) unset ac_cv_lib_readline_readline;
  13284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13285. printf %s "checking for readline in -lreadline... " >&6; }
  13286. if test ${ac_cv_lib_readline_readline+y}
  13287. then :
  13288. printf %s "(cached) " >&6
  13289. else case e in #(
  13290. e) ac_check_lib_save_LIBS=$LIBS
  13291. LIBS="-lreadline -lcurses $LIBS"
  13292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13293. /* end confdefs.h. */
  13294. /* Override any GCC internal prototype to avoid an error.
  13295. Use char because int might match the return type of a GCC
  13296. builtin and then its argument prototype would still apply.
  13297. The 'extern "C"' is for builds by C++ compilers;
  13298. although this is not generally supported in C code supporting it here
  13299. has little cost and some practical benefit (sr 110532). */
  13300. #ifdef __cplusplus
  13301. extern "C"
  13302. #endif
  13303. char readline (void);
  13304. int
  13305. main (void)
  13306. {
  13307. return readline ();
  13308. ;
  13309. return 0;
  13310. }
  13311. _ACEOF
  13312. if ac_fn_c_try_link "$LINENO"
  13313. then :
  13314. ac_cv_lib_readline_readline=yes
  13315. else case e in #(
  13316. e) ac_cv_lib_readline_readline=no ;;
  13317. esac
  13318. fi
  13319. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13320. conftest$ac_exeext conftest.$ac_ext
  13321. LIBS=$ac_check_lib_save_LIBS ;;
  13322. esac
  13323. fi
  13324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13325. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13326. if test "x$ac_cv_lib_readline_readline" = xyes
  13327. then :
  13328. LIBREADLINE="-lcurses"
  13329. else case e in #(
  13330. e) unset ac_cv_lib_readline_readline;
  13331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13332. printf %s "checking for readline in -lreadline... " >&6; }
  13333. if test ${ac_cv_lib_readline_readline+y}
  13334. then :
  13335. printf %s "(cached) " >&6
  13336. else case e in #(
  13337. e) ac_check_lib_save_LIBS=$LIBS
  13338. LIBS="-lreadline -lncurses $LIBS"
  13339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13340. /* end confdefs.h. */
  13341. /* Override any GCC internal prototype to avoid an error.
  13342. Use char because int might match the return type of a GCC
  13343. builtin and then its argument prototype would still apply.
  13344. The 'extern "C"' is for builds by C++ compilers;
  13345. although this is not generally supported in C code supporting it here
  13346. has little cost and some practical benefit (sr 110532). */
  13347. #ifdef __cplusplus
  13348. extern "C"
  13349. #endif
  13350. char readline (void);
  13351. int
  13352. main (void)
  13353. {
  13354. return readline ();
  13355. ;
  13356. return 0;
  13357. }
  13358. _ACEOF
  13359. if ac_fn_c_try_link "$LINENO"
  13360. then :
  13361. ac_cv_lib_readline_readline=yes
  13362. else case e in #(
  13363. e) ac_cv_lib_readline_readline=no ;;
  13364. esac
  13365. fi
  13366. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13367. conftest$ac_exeext conftest.$ac_ext
  13368. LIBS=$ac_check_lib_save_LIBS ;;
  13369. esac
  13370. fi
  13371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13372. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13373. if test "x$ac_cv_lib_readline_readline" = xyes
  13374. then :
  13375. LIBREADLINE="-lncurses"
  13376. else case e in #(
  13377. e) unset ac_cv_lib_readline_readline;
  13378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13379. printf %s "checking for readline in -lreadline... " >&6; }
  13380. if test ${ac_cv_lib_readline_readline+y}
  13381. then :
  13382. printf %s "(cached) " >&6
  13383. else case e in #(
  13384. e) ac_check_lib_save_LIBS=$LIBS
  13385. LIBS="-lreadline -lncursesw $LIBS"
  13386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13387. /* end confdefs.h. */
  13388. /* Override any GCC internal prototype to avoid an error.
  13389. Use char because int might match the return type of a GCC
  13390. builtin and then its argument prototype would still apply.
  13391. The 'extern "C"' is for builds by C++ compilers;
  13392. although this is not generally supported in C code supporting it here
  13393. has little cost and some practical benefit (sr 110532). */
  13394. #ifdef __cplusplus
  13395. extern "C"
  13396. #endif
  13397. char readline (void);
  13398. int
  13399. main (void)
  13400. {
  13401. return readline ();
  13402. ;
  13403. return 0;
  13404. }
  13405. _ACEOF
  13406. if ac_fn_c_try_link "$LINENO"
  13407. then :
  13408. ac_cv_lib_readline_readline=yes
  13409. else case e in #(
  13410. e) ac_cv_lib_readline_readline=no ;;
  13411. esac
  13412. fi
  13413. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13414. conftest$ac_exeext conftest.$ac_ext
  13415. LIBS=$ac_check_lib_save_LIBS ;;
  13416. esac
  13417. fi
  13418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13419. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13420. if test "x$ac_cv_lib_readline_readline" = xyes
  13421. then :
  13422. LIBREADLINE="-lncursesw"
  13423. else case e in #(
  13424. e) unset ac_cv_lib_readline_readline;
  13425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  13426. printf %s "checking for readline in -lreadline... " >&6; }
  13427. if test ${ac_cv_lib_readline_readline+y}
  13428. then :
  13429. printf %s "(cached) " >&6
  13430. else case e in #(
  13431. e) ac_check_lib_save_LIBS=$LIBS
  13432. LIBS="-lreadline -ltermcap $LIBS"
  13433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13434. /* end confdefs.h. */
  13435. /* Override any GCC internal prototype to avoid an error.
  13436. Use char because int might match the return type of a GCC
  13437. builtin and then its argument prototype would still apply.
  13438. The 'extern "C"' is for builds by C++ compilers;
  13439. although this is not generally supported in C code supporting it here
  13440. has little cost and some practical benefit (sr 110532). */
  13441. #ifdef __cplusplus
  13442. extern "C"
  13443. #endif
  13444. char readline (void);
  13445. int
  13446. main (void)
  13447. {
  13448. return readline ();
  13449. ;
  13450. return 0;
  13451. }
  13452. _ACEOF
  13453. if ac_fn_c_try_link "$LINENO"
  13454. then :
  13455. ac_cv_lib_readline_readline=yes
  13456. else case e in #(
  13457. e) ac_cv_lib_readline_readline=no ;;
  13458. esac
  13459. fi
  13460. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13461. conftest$ac_exeext conftest.$ac_ext
  13462. LIBS=$ac_check_lib_save_LIBS ;;
  13463. esac
  13464. fi
  13465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  13466. printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
  13467. if test "x$ac_cv_lib_readline_readline" = xyes
  13468. then :
  13469. LIBREADLINE="-ltermcap"
  13470. else case e in #(
  13471. e) LIBREADLINE="" ;;
  13472. esac
  13473. fi
  13474. ;;
  13475. esac
  13476. fi
  13477. ;;
  13478. esac
  13479. fi
  13480. ;;
  13481. esac
  13482. fi
  13483. ;;
  13484. esac
  13485. fi
  13486. ;;
  13487. esac
  13488. fi
  13489. if test -n "$LIBREADLINE"; then
  13490. if test "$LIBREADLINE" != "-lreadline"; then
  13491. echo "-lreadline needs $LIBREADLINE"
  13492. LIBREADLINE="-lreadline $LIBREADLINE"
  13493. fi
  13494. fi
  13495. fi
  13496. # Check for the availability of libedit. Different distributions put its
  13497. # headers in different places. Try to cover the most common ones.
  13498. if test "$enable_pcre2test_libedit" = "yes"; then
  13499. for ac_header in editline/readline.h edit/readline/readline.h readline.h
  13500. do :
  13501. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
  13502. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13503. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  13504. then :
  13505. cat >>confdefs.h <<_ACEOF
  13506. #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
  13507. _ACEOF
  13508. HAVE_LIBEDIT_HEADER=1
  13509. break
  13510. fi
  13511. done
  13512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
  13513. printf %s "checking for readline in -ledit... " >&6; }
  13514. if test ${ac_cv_lib_edit_readline+y}
  13515. then :
  13516. printf %s "(cached) " >&6
  13517. else case e in #(
  13518. e) ac_check_lib_save_LIBS=$LIBS
  13519. LIBS="-ledit $LIBS"
  13520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13521. /* end confdefs.h. */
  13522. /* Override any GCC internal prototype to avoid an error.
  13523. Use char because int might match the return type of a GCC
  13524. builtin and then its argument prototype would still apply.
  13525. The 'extern "C"' is for builds by C++ compilers;
  13526. although this is not generally supported in C code supporting it here
  13527. has little cost and some practical benefit (sr 110532). */
  13528. #ifdef __cplusplus
  13529. extern "C"
  13530. #endif
  13531. char readline (void);
  13532. int
  13533. main (void)
  13534. {
  13535. return readline ();
  13536. ;
  13537. return 0;
  13538. }
  13539. _ACEOF
  13540. if ac_fn_c_try_link "$LINENO"
  13541. then :
  13542. ac_cv_lib_edit_readline=yes
  13543. else case e in #(
  13544. e) ac_cv_lib_edit_readline=no ;;
  13545. esac
  13546. fi
  13547. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13548. conftest$ac_exeext conftest.$ac_ext
  13549. LIBS=$ac_check_lib_save_LIBS ;;
  13550. esac
  13551. fi
  13552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
  13553. printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
  13554. if test "x$ac_cv_lib_edit_readline" = xyes
  13555. then :
  13556. LIBEDIT="-ledit"
  13557. fi
  13558. fi
  13559. PCRE2_STATIC_CFLAG=""
  13560. if test "x$enable_shared" = "xno" ; then
  13561. printf "%s\n" "#define PCRE2_STATIC 1" >>confdefs.h
  13562. PCRE2_STATIC_CFLAG="-DPCRE2_STATIC"
  13563. fi
  13564. PCRE2POSIX_CFLAG=""
  13565. if test "x$enable_shared" = "xyes" ; then
  13566. PCRE2POSIX_CFLAG="-DPCRE2POSIX_SHARED"
  13567. fi
  13568. # Here is where PCRE2-specific defines are handled
  13569. if test "$enable_pcre2_8" = "yes"; then
  13570. printf "%s\n" "#define SUPPORT_PCRE2_8 /**/" >>confdefs.h
  13571. fi
  13572. if test "$enable_pcre2_16" = "yes"; then
  13573. printf "%s\n" "#define SUPPORT_PCRE2_16 /**/" >>confdefs.h
  13574. fi
  13575. if test "$enable_pcre2_32" = "yes"; then
  13576. printf "%s\n" "#define SUPPORT_PCRE2_32 /**/" >>confdefs.h
  13577. fi
  13578. if test "$enable_debug" = "yes"; then
  13579. printf "%s\n" "#define PCRE2_DEBUG /**/" >>confdefs.h
  13580. fi
  13581. if test "$enable_percent_zt" = "no"; then
  13582. printf "%s\n" "#define DISABLE_PERCENT_ZT /**/" >>confdefs.h
  13583. else
  13584. enable_percent_zt=auto
  13585. fi
  13586. # Unless running under Windows, JIT support requires pthreads.
  13587. if test "$enable_jit" = "yes"; then
  13588. if test "$HAVE_WINDOWS_H" != "1"; then
  13589. ac_ext=c
  13590. ac_cpp='$CPP $CPPFLAGS'
  13591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13594. ax_pthread_ok=no
  13595. # We used to check for pthread.h first, but this fails if pthread.h
  13596. # requires special compiler flags (e.g. on True64 or Sequent).
  13597. # It gets checked for in the link test anyway.
  13598. # First of all, check if the user has set any of the PTHREAD_LIBS,
  13599. # etcetera environment variables, and if threads linking works using
  13600. # them:
  13601. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  13602. save_CFLAGS="$CFLAGS"
  13603. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13604. save_LIBS="$LIBS"
  13605. LIBS="$PTHREAD_LIBS $LIBS"
  13606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  13607. printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  13608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13609. /* end confdefs.h. */
  13610. /* Override any GCC internal prototype to avoid an error.
  13611. Use char because int might match the return type of a GCC
  13612. builtin and then its argument prototype would still apply.
  13613. The 'extern "C"' is for builds by C++ compilers;
  13614. although this is not generally supported in C code supporting it here
  13615. has little cost and some practical benefit (sr 110532). */
  13616. #ifdef __cplusplus
  13617. extern "C"
  13618. #endif
  13619. char pthread_join (void);
  13620. int
  13621. main (void)
  13622. {
  13623. return pthread_join ();
  13624. ;
  13625. return 0;
  13626. }
  13627. _ACEOF
  13628. if ac_fn_c_try_link "$LINENO"
  13629. then :
  13630. ax_pthread_ok=yes
  13631. fi
  13632. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13633. conftest$ac_exeext conftest.$ac_ext
  13634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  13635. printf "%s\n" "$ax_pthread_ok" >&6; }
  13636. if test x"$ax_pthread_ok" = xno; then
  13637. PTHREAD_LIBS=""
  13638. PTHREAD_CFLAGS=""
  13639. fi
  13640. LIBS="$save_LIBS"
  13641. CFLAGS="$save_CFLAGS"
  13642. fi
  13643. # We must check for the threads library under a number of different
  13644. # names; the ordering is very important because some systems
  13645. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  13646. # libraries is broken (non-POSIX).
  13647. # Create a list of thread flags to try. Items starting with a "-" are
  13648. # C compiler flags, and other items are library names, except for "none"
  13649. # which indicates that we try without any flags at all, and "pthread-config"
  13650. # which is a program returning the flags for the Pth emulation library.
  13651. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  13652. # The ordering *is* (sometimes) important. Some notes on the
  13653. # individual items follow:
  13654. # pthreads: AIX (must check this before -lpthread)
  13655. # none: in case threads are in libc; should be tried before -Kthread and
  13656. # other compiler flags to prevent continual compiler warnings
  13657. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  13658. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  13659. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  13660. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  13661. # -pthreads: Solaris/gcc
  13662. # -mthreads: Mingw32/gcc, Lynx/gcc
  13663. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  13664. # doesn't hurt to check since this sometimes defines pthreads too;
  13665. # also defines -D_REENTRANT)
  13666. # ... -mt is also the pthreads flag for HP/aCC
  13667. # pthread: Linux, etcetera
  13668. # --thread-safe: KAI C++
  13669. # pthread-config: use pthread-config program (for GNU Pth library)
  13670. case ${host_os} in
  13671. solaris*)
  13672. # On Solaris (at least, for some versions), libc contains stubbed
  13673. # (non-functional) versions of the pthreads routines, so link-based
  13674. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  13675. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  13676. # a function called by this macro, so we could check for that, but
  13677. # who knows whether they'll stub that too in a future libc.) So,
  13678. # we'll just look for -pthreads and -lpthread first:
  13679. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  13680. ;;
  13681. darwin*)
  13682. ax_pthread_flags="-pthread $ax_pthread_flags"
  13683. ;;
  13684. esac
  13685. if test x"$ax_pthread_ok" = xno; then
  13686. for flag in $ax_pthread_flags; do
  13687. case $flag in
  13688. none)
  13689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  13690. printf %s "checking whether pthreads work without any flags... " >&6; }
  13691. ;;
  13692. -*)
  13693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  13694. printf %s "checking whether pthreads work with $flag... " >&6; }
  13695. PTHREAD_CFLAGS="$flag"
  13696. ;;
  13697. pthread-config)
  13698. # Extract the first word of "pthread-config", so it can be a program name with args.
  13699. set dummy pthread-config; ac_word=$2
  13700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13701. printf %s "checking for $ac_word... " >&6; }
  13702. if test ${ac_cv_prog_ax_pthread_config+y}
  13703. then :
  13704. printf %s "(cached) " >&6
  13705. else case e in #(
  13706. e) if test -n "$ax_pthread_config"; then
  13707. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  13708. else
  13709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13710. for as_dir in $PATH
  13711. do
  13712. IFS=$as_save_IFS
  13713. case $as_dir in #(((
  13714. '') as_dir=./ ;;
  13715. */) ;;
  13716. *) as_dir=$as_dir/ ;;
  13717. esac
  13718. for ac_exec_ext in '' $ac_executable_extensions; do
  13719. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13720. ac_cv_prog_ax_pthread_config="yes"
  13721. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13722. break 2
  13723. fi
  13724. done
  13725. done
  13726. IFS=$as_save_IFS
  13727. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  13728. fi ;;
  13729. esac
  13730. fi
  13731. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  13732. if test -n "$ax_pthread_config"; then
  13733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  13734. printf "%s\n" "$ax_pthread_config" >&6; }
  13735. else
  13736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13737. printf "%s\n" "no" >&6; }
  13738. fi
  13739. if test x"$ax_pthread_config" = xno; then continue; fi
  13740. PTHREAD_CFLAGS="`pthread-config --cflags`"
  13741. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  13742. ;;
  13743. *)
  13744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  13745. printf %s "checking for the pthreads library -l$flag... " >&6; }
  13746. PTHREAD_LIBS="-l$flag"
  13747. ;;
  13748. esac
  13749. save_LIBS="$LIBS"
  13750. save_CFLAGS="$CFLAGS"
  13751. LIBS="$PTHREAD_LIBS $LIBS"
  13752. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13753. # Check for various functions. We must include pthread.h,
  13754. # since some functions may be macros. (On the Sequent, we
  13755. # need a special flag -Kthread to make this header compile.)
  13756. # We check for pthread_join because it is in -lpthread on IRIX
  13757. # while pthread_create is in libc. We check for pthread_attr_init
  13758. # due to DEC craziness with -lpthreads. We check for
  13759. # pthread_cleanup_push because it is one of the few pthread
  13760. # functions on Solaris that doesn't have a non-functional libc stub.
  13761. # We try pthread_create on general principles.
  13762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13763. /* end confdefs.h. */
  13764. #include <pthread.h>
  13765. static void routine(void *a) { a = 0; }
  13766. static void *start_routine(void *a) { return a; }
  13767. int
  13768. main (void)
  13769. {
  13770. pthread_t th; pthread_attr_t attr;
  13771. pthread_create(&th, 0, start_routine, 0);
  13772. pthread_join(th, 0);
  13773. pthread_attr_init(&attr);
  13774. pthread_cleanup_push(routine, 0);
  13775. pthread_cleanup_pop(0) /* ; */
  13776. ;
  13777. return 0;
  13778. }
  13779. _ACEOF
  13780. if ac_fn_c_try_link "$LINENO"
  13781. then :
  13782. ax_pthread_ok=yes
  13783. fi
  13784. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13785. conftest$ac_exeext conftest.$ac_ext
  13786. LIBS="$save_LIBS"
  13787. CFLAGS="$save_CFLAGS"
  13788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  13789. printf "%s\n" "$ax_pthread_ok" >&6; }
  13790. if test "x$ax_pthread_ok" = xyes; then
  13791. break;
  13792. fi
  13793. PTHREAD_LIBS=""
  13794. PTHREAD_CFLAGS=""
  13795. done
  13796. fi
  13797. # Various other checks:
  13798. if test "x$ax_pthread_ok" = xyes; then
  13799. save_LIBS="$LIBS"
  13800. LIBS="$PTHREAD_LIBS $LIBS"
  13801. save_CFLAGS="$CFLAGS"
  13802. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13803. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  13804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  13805. printf %s "checking for joinable pthread attribute... " >&6; }
  13806. attr_name=unknown
  13807. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  13808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13809. /* end confdefs.h. */
  13810. #include <pthread.h>
  13811. int
  13812. main (void)
  13813. {
  13814. int attr = $attr; return attr /* ; */
  13815. ;
  13816. return 0;
  13817. }
  13818. _ACEOF
  13819. if ac_fn_c_try_link "$LINENO"
  13820. then :
  13821. attr_name=$attr; break
  13822. fi
  13823. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13824. conftest$ac_exeext conftest.$ac_ext
  13825. done
  13826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  13827. printf "%s\n" "$attr_name" >&6; }
  13828. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  13829. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
  13830. fi
  13831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  13832. printf %s "checking if more special flags are required for pthreads... " >&6; }
  13833. flag=no
  13834. case ${host_os} in
  13835. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  13836. osf* | hpux*) flag="-D_REENTRANT";;
  13837. solaris*)
  13838. if test "$GCC" = "yes"; then
  13839. flag="-D_REENTRANT"
  13840. else
  13841. flag="-mt -D_REENTRANT"
  13842. fi
  13843. ;;
  13844. esac
  13845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  13846. printf "%s\n" "${flag}" >&6; }
  13847. if test "x$flag" != xno; then
  13848. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  13849. fi
  13850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  13851. printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  13852. if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
  13853. then :
  13854. printf %s "(cached) " >&6
  13855. else case e in #(
  13856. e)
  13857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13858. /* end confdefs.h. */
  13859. #include <pthread.h>
  13860. int
  13861. main (void)
  13862. {
  13863. int i = PTHREAD_PRIO_INHERIT;
  13864. ;
  13865. return 0;
  13866. }
  13867. _ACEOF
  13868. if ac_fn_c_try_link "$LINENO"
  13869. then :
  13870. ax_cv_PTHREAD_PRIO_INHERIT=yes
  13871. else case e in #(
  13872. e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
  13873. esac
  13874. fi
  13875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13876. conftest$ac_exeext conftest.$ac_ext
  13877. ;;
  13878. esac
  13879. fi
  13880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  13881. printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  13882. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
  13883. then :
  13884. printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  13885. fi
  13886. LIBS="$save_LIBS"
  13887. CFLAGS="$save_CFLAGS"
  13888. # More AIX lossage: must compile with xlc_r or cc_r
  13889. if test x"$GCC" != xyes; then
  13890. for ac_prog in xlc_r cc_r
  13891. do
  13892. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13893. set dummy $ac_prog; ac_word=$2
  13894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13895. printf %s "checking for $ac_word... " >&6; }
  13896. if test ${ac_cv_prog_PTHREAD_CC+y}
  13897. then :
  13898. printf %s "(cached) " >&6
  13899. else case e in #(
  13900. e) if test -n "$PTHREAD_CC"; then
  13901. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  13902. else
  13903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13904. for as_dir in $PATH
  13905. do
  13906. IFS=$as_save_IFS
  13907. case $as_dir in #(((
  13908. '') as_dir=./ ;;
  13909. */) ;;
  13910. *) as_dir=$as_dir/ ;;
  13911. esac
  13912. for ac_exec_ext in '' $ac_executable_extensions; do
  13913. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13914. ac_cv_prog_PTHREAD_CC="$ac_prog"
  13915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13916. break 2
  13917. fi
  13918. done
  13919. done
  13920. IFS=$as_save_IFS
  13921. fi ;;
  13922. esac
  13923. fi
  13924. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  13925. if test -n "$PTHREAD_CC"; then
  13926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  13927. printf "%s\n" "$PTHREAD_CC" >&6; }
  13928. else
  13929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13930. printf "%s\n" "no" >&6; }
  13931. fi
  13932. test -n "$PTHREAD_CC" && break
  13933. done
  13934. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  13935. else
  13936. PTHREAD_CC=$CC
  13937. fi
  13938. else
  13939. PTHREAD_CC="$CC"
  13940. fi
  13941. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  13942. if test x"$ax_pthread_ok" = xyes; then
  13943. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  13944. :
  13945. else
  13946. ax_pthread_ok=no
  13947. as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
  13948. fi
  13949. ac_ext=c
  13950. ac_cpp='$CPP $CPPFLAGS'
  13951. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13952. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13953. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13954. CC="$PTHREAD_CC"
  13955. CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
  13956. LIBS="$PTHREAD_LIBS $LIBS"
  13957. fi
  13958. printf "%s\n" "#define SUPPORT_JIT /**/" >>confdefs.h
  13959. else
  13960. enable_pcre2grep_jit="no"
  13961. fi
  13962. if test "$enable_jit_sealloc" = "yes"; then
  13963. printf "%s\n" "#define SLJIT_PROT_EXECUTABLE_ALLOCATOR 1" >>confdefs.h
  13964. fi
  13965. if test "$enable_pcre2grep_jit" = "yes"; then
  13966. printf "%s\n" "#define SUPPORT_PCRE2GREP_JIT /**/" >>confdefs.h
  13967. fi
  13968. if test "$enable_pcre2grep_callout" = "yes"; then
  13969. if test "$enable_pcre2grep_callout_fork" = "yes"; then
  13970. if test "$HAVE_WINDOWS_H" != "1"; then
  13971. if test "$HAVE_SYS_WAIT_H" != "1"; then
  13972. as_fn_error $? "Callout script support needs sys/wait.h." "$LINENO" 5
  13973. fi
  13974. fi
  13975. printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT_FORK /**/" >>confdefs.h
  13976. fi
  13977. printf "%s\n" "#define SUPPORT_PCRE2GREP_CALLOUT /**/" >>confdefs.h
  13978. else
  13979. enable_pcre2grep_callout_fork="no"
  13980. fi
  13981. if test "$enable_unicode" = "yes"; then
  13982. printf "%s\n" "#define SUPPORT_UNICODE /**/" >>confdefs.h
  13983. fi
  13984. if test "$enable_pcre2grep_libz" = "yes"; then
  13985. printf "%s\n" "#define SUPPORT_LIBZ /**/" >>confdefs.h
  13986. fi
  13987. if test "$enable_pcre2grep_libbz2" = "yes"; then
  13988. printf "%s\n" "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
  13989. fi
  13990. if test $with_pcre2grep_bufsize -lt 8192 ; then
  13991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&5
  13992. printf "%s\n" "$as_me: WARNING: $with_pcre2grep_bufsize is too small for --with-pcre2grep-bufsize; using 8192" >&2;}
  13993. with_pcre2grep_bufsize="8192"
  13994. else
  13995. if test $? -gt 1 ; then
  13996. as_fn_error $? "Bad value for --with-pcre2grep-bufsize" "$LINENO" 5
  13997. fi
  13998. fi
  13999. if test $with_pcre2grep_max_bufsize -lt $with_pcre2grep_bufsize ; then
  14000. with_pcre2grep_max_bufsize="$with_pcre2grep_bufsize"
  14001. else
  14002. if test $? -gt 1 ; then
  14003. as_fn_error $? "Bad value for --with-pcre2grep-max-bufsize" "$LINENO" 5
  14004. fi
  14005. fi
  14006. printf "%s\n" "#define PCRE2GREP_BUFSIZE $with_pcre2grep_bufsize" >>confdefs.h
  14007. printf "%s\n" "#define PCRE2GREP_MAX_BUFSIZE $with_pcre2grep_max_bufsize" >>confdefs.h
  14008. if test "$enable_pcre2test_libedit" = "yes"; then
  14009. printf "%s\n" "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
  14010. LIBREADLINE="$LIBEDIT"
  14011. elif test "$enable_pcre2test_libreadline" = "yes"; then
  14012. printf "%s\n" "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
  14013. fi
  14014. printf "%s\n" "#define NEWLINE_DEFAULT $ac_pcre2_newline_value" >>confdefs.h
  14015. if test "$enable_bsr_anycrlf" = "yes"; then
  14016. printf "%s\n" "#define BSR_ANYCRLF /**/" >>confdefs.h
  14017. fi
  14018. if test "$enable_never_backslash_C" = "yes"; then
  14019. printf "%s\n" "#define NEVER_BACKSLASH_C /**/" >>confdefs.h
  14020. fi
  14021. printf "%s\n" "#define LINK_SIZE $with_link_size" >>confdefs.h
  14022. printf "%s\n" "#define MAX_VARLOOKBEHIND $with_max_varlookbehind" >>confdefs.h
  14023. printf "%s\n" "#define PARENS_NEST_LIMIT $with_parens_nest_limit" >>confdefs.h
  14024. printf "%s\n" "#define MATCH_LIMIT $with_match_limit" >>confdefs.h
  14025. # --with-match-limit-recursion is an obsolete synonym for --with-match-limit-depth
  14026. if test "$with_match_limit_recursion" != "UNSET"; then
  14027. cat <<EOF
  14028. WARNING: --with-match-limit-recursion is an obsolete option. Please use
  14029. --with-match-limit-depth in future. If both are set, --with-match-limit-depth
  14030. will be used. See also --with-heap-limit.
  14031. EOF
  14032. if test "$with_match_limit_depth" = "MATCH_LIMIT"; then
  14033. with_match_limit_depth=$with_match_limit_recursion
  14034. fi
  14035. fi
  14036. printf "%s\n" "#define MATCH_LIMIT_DEPTH $with_match_limit_depth" >>confdefs.h
  14037. printf "%s\n" "#define HEAP_LIMIT $with_heap_limit" >>confdefs.h
  14038. printf "%s\n" "#define MAX_NAME_SIZE 32" >>confdefs.h
  14039. printf "%s\n" "#define MAX_NAME_COUNT 10000" >>confdefs.h
  14040. if test "$enable_ebcdic" = "yes"; then
  14041. printf "%s\n" "#define EBCDIC /**/" >>confdefs.h
  14042. fi
  14043. if test "$enable_ebcdic_nl25" = "yes"; then
  14044. printf "%s\n" "#define EBCDIC_NL25 /**/" >>confdefs.h
  14045. fi
  14046. if test "$enable_valgrind" = "yes"; then
  14047. printf "%s\n" "#define SUPPORT_VALGRIND /**/" >>confdefs.h
  14048. fi
  14049. # Platform specific issues
  14050. NO_UNDEFINED=
  14051. EXPORT_ALL_SYMBOLS=
  14052. case $host_os in
  14053. cygwin* | mingw* )
  14054. if test X"$enable_shared" = Xyes; then
  14055. NO_UNDEFINED="-no-undefined"
  14056. EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
  14057. fi
  14058. ;;
  14059. esac
  14060. # The extra LDFLAGS for each particular library. The libpcre2*_version values
  14061. # are m4 variables, assigned above.
  14062. EXTRA_LIBPCRE2_8_LDFLAGS="$EXTRA_LIBPCRE2_8_LDFLAGS \
  14063. $NO_UNDEFINED -version-info 12:0:12"
  14064. EXTRA_LIBPCRE2_16_LDFLAGS="$EXTRA_LIBPCRE2_16_LDFLAGS \
  14065. $NO_UNDEFINED -version-info 12:0:12"
  14066. EXTRA_LIBPCRE2_32_LDFLAGS="$EXTRA_LIBPCRE2_32_LDFLAGS \
  14067. $NO_UNDEFINED -version-info 12:0:12"
  14068. EXTRA_LIBPCRE2_POSIX_LDFLAGS="$EXTRA_LIBPCRE2_POSIX_LDFLAGS \
  14069. $NO_UNDEFINED -version-info 3:5:0"
  14070. # When we run 'make distcheck', use these arguments. Turning off compiler
  14071. # optimization makes it run faster.
  14072. DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre2-16 --enable-pcre2-32 --enable-jit"
  14073. # Check that, if --enable-pcre2grep-libz or --enable-pcre2grep-libbz2 is
  14074. # specified, the relevant library is available.
  14075. if test "$enable_pcre2grep_libz" = "yes"; then
  14076. if test "$HAVE_ZLIB_H" != "1"; then
  14077. echo "** Cannot --enable-pcre2grep-libz because zlib.h was not found"
  14078. exit 1
  14079. fi
  14080. if test "$HAVE_LIBZ" != "1"; then
  14081. echo "** Cannot --enable-pcre2grep-libz because libz was not found"
  14082. exit 1
  14083. fi
  14084. LIBZ="-lz"
  14085. fi
  14086. if test "$enable_pcre2grep_libbz2" = "yes"; then
  14087. if test "$HAVE_BZLIB_H" != "1"; then
  14088. echo "** Cannot --enable-pcre2grep-libbz2 because bzlib.h was not found"
  14089. exit 1
  14090. fi
  14091. if test "$HAVE_LIBBZ2" != "1"; then
  14092. echo "** Cannot --enable-pcre2grep-libbz2 because libbz2 was not found"
  14093. exit 1
  14094. fi
  14095. LIBBZ2="-lbz2"
  14096. fi
  14097. # Similarly for --enable-pcre2test-readline
  14098. if test "$enable_pcre2test_libedit" = "yes"; then
  14099. if test "$enable_pcre2test_libreadline" = "yes"; then
  14100. echo "** Cannot use both --enable-pcre2test-libedit and --enable-pcre2test-readline"
  14101. exit 1
  14102. fi
  14103. if test -z "$HAVE_LIBEDIT_HEADER"; then
  14104. echo "** Cannot --enable-pcre2test-libedit because neither editline/readline.h,"
  14105. echo "** edit/readline/readline.h nor a compatible header was found."
  14106. exit 1
  14107. fi
  14108. if test -z "$LIBEDIT"; then
  14109. echo "** Cannot --enable-pcre2test-libedit because libedit library was not found."
  14110. exit 1
  14111. fi
  14112. fi
  14113. if test "$enable_pcre2test_libreadline" = "yes"; then
  14114. if test "$HAVE_READLINE_H" != "1"; then
  14115. echo "** Cannot --enable-pcre2test-readline because readline/readline.h was not found."
  14116. exit 1
  14117. fi
  14118. if test "$HAVE_HISTORY_H" != "1"; then
  14119. echo "** Cannot --enable-pcre2test-readline because readline/history.h was not found."
  14120. exit 1
  14121. fi
  14122. if test -z "$LIBREADLINE"; then
  14123. echo "** Cannot --enable-pcre2test-readline because readline library was not found."
  14124. exit 1
  14125. fi
  14126. fi
  14127. # Handle valgrind support
  14128. if test "$enable_valgrind" = "yes"; then
  14129. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14130. if test -n "$ac_tool_prefix"; then
  14131. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14132. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14134. printf %s "checking for $ac_word... " >&6; }
  14135. if test ${ac_cv_path_PKG_CONFIG+y}
  14136. then :
  14137. printf %s "(cached) " >&6
  14138. else case e in #(
  14139. e) case $PKG_CONFIG in
  14140. [\\/]* | ?:[\\/]*)
  14141. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14142. ;;
  14143. *)
  14144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14145. for as_dir in $PATH
  14146. do
  14147. IFS=$as_save_IFS
  14148. case $as_dir in #(((
  14149. '') as_dir=./ ;;
  14150. */) ;;
  14151. *) as_dir=$as_dir/ ;;
  14152. esac
  14153. for ac_exec_ext in '' $ac_executable_extensions; do
  14154. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14155. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  14156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14157. break 2
  14158. fi
  14159. done
  14160. done
  14161. IFS=$as_save_IFS
  14162. ;;
  14163. esac ;;
  14164. esac
  14165. fi
  14166. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14167. if test -n "$PKG_CONFIG"; then
  14168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14169. printf "%s\n" "$PKG_CONFIG" >&6; }
  14170. else
  14171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14172. printf "%s\n" "no" >&6; }
  14173. fi
  14174. fi
  14175. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14176. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14177. # Extract the first word of "pkg-config", so it can be a program name with args.
  14178. set dummy pkg-config; ac_word=$2
  14179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14180. printf %s "checking for $ac_word... " >&6; }
  14181. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  14182. then :
  14183. printf %s "(cached) " >&6
  14184. else case e in #(
  14185. e) case $ac_pt_PKG_CONFIG in
  14186. [\\/]* | ?:[\\/]*)
  14187. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14188. ;;
  14189. *)
  14190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14191. for as_dir in $PATH
  14192. do
  14193. IFS=$as_save_IFS
  14194. case $as_dir in #(((
  14195. '') as_dir=./ ;;
  14196. */) ;;
  14197. *) as_dir=$as_dir/ ;;
  14198. esac
  14199. for ac_exec_ext in '' $ac_executable_extensions; do
  14200. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14201. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  14202. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14203. break 2
  14204. fi
  14205. done
  14206. done
  14207. IFS=$as_save_IFS
  14208. ;;
  14209. esac ;;
  14210. esac
  14211. fi
  14212. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14213. if test -n "$ac_pt_PKG_CONFIG"; then
  14214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14215. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  14216. else
  14217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14218. printf "%s\n" "no" >&6; }
  14219. fi
  14220. if test "x$ac_pt_PKG_CONFIG" = x; then
  14221. PKG_CONFIG=""
  14222. else
  14223. case $cross_compiling:$ac_tool_warned in
  14224. yes:)
  14225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14226. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14227. ac_tool_warned=yes ;;
  14228. esac
  14229. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14230. fi
  14231. else
  14232. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14233. fi
  14234. fi
  14235. if test -n "$PKG_CONFIG"; then
  14236. _pkg_min_version=0.9.0
  14237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14238. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14239. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14241. printf "%s\n" "yes" >&6; }
  14242. else
  14243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14244. printf "%s\n" "no" >&6; }
  14245. PKG_CONFIG=""
  14246. fi
  14247. fi
  14248. pkg_failed=no
  14249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
  14250. printf %s "checking for valgrind... " >&6; }
  14251. if test -n "$VALGRIND_CFLAGS"; then
  14252. pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
  14253. elif test -n "$PKG_CONFIG"; then
  14254. if test -n "$PKG_CONFIG" && \
  14255. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  14256. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  14257. ac_status=$?
  14258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14259. test $ac_status = 0; }; then
  14260. pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
  14261. test "x$?" != "x0" && pkg_failed=yes
  14262. else
  14263. pkg_failed=yes
  14264. fi
  14265. else
  14266. pkg_failed=untried
  14267. fi
  14268. if test -n "$VALGRIND_LIBS"; then
  14269. pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
  14270. elif test -n "$PKG_CONFIG"; then
  14271. if test -n "$PKG_CONFIG" && \
  14272. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
  14273. ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
  14274. ac_status=$?
  14275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14276. test $ac_status = 0; }; then
  14277. pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
  14278. test "x$?" != "x0" && pkg_failed=yes
  14279. else
  14280. pkg_failed=yes
  14281. fi
  14282. else
  14283. pkg_failed=untried
  14284. fi
  14285. if test $pkg_failed = yes; then
  14286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14287. printf "%s\n" "no" >&6; }
  14288. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14289. _pkg_short_errors_supported=yes
  14290. else
  14291. _pkg_short_errors_supported=no
  14292. fi
  14293. if test $_pkg_short_errors_supported = yes; then
  14294. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
  14295. else
  14296. VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
  14297. fi
  14298. # Put the nasty error message in config.log where it belongs
  14299. echo "$VALGRIND_PKG_ERRORS" >&5
  14300. as_fn_error $? "Package requirements (valgrind) were not met:
  14301. $VALGRIND_PKG_ERRORS
  14302. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  14303. installed software in a non-standard prefix.
  14304. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  14305. and VALGRIND_LIBS to avoid the need to call pkg-config.
  14306. See the pkg-config man page for more details." "$LINENO" 5
  14307. elif test $pkg_failed = untried; then
  14308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14309. printf "%s\n" "no" >&6; }
  14310. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  14311. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  14312. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  14313. is in your PATH or set the PKG_CONFIG environment variable to the full
  14314. path to pkg-config.
  14315. Alternatively, you may set the environment variables VALGRIND_CFLAGS
  14316. and VALGRIND_LIBS to avoid the need to call pkg-config.
  14317. See the pkg-config man page for more details.
  14318. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  14319. See 'config.log' for more details" "$LINENO" 5; }
  14320. else
  14321. VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
  14322. VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
  14323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14324. printf "%s\n" "yes" >&6; }
  14325. fi
  14326. fi
  14327. # Handle code coverage reporting support
  14328. if test "$enable_coverage" = "yes"; then
  14329. if test "x$GCC" != "xyes"; then
  14330. as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
  14331. fi
  14332. # ccache is incompatible with gcov
  14333. # Extract the first word of "shtool", so it can be a program name with args.
  14334. set dummy shtool; ac_word=$2
  14335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14336. printf %s "checking for $ac_word... " >&6; }
  14337. if test ${ac_cv_path_SHTOOL+y}
  14338. then :
  14339. printf %s "(cached) " >&6
  14340. else case e in #(
  14341. e) case $SHTOOL in
  14342. [\\/]* | ?:[\\/]*)
  14343. ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
  14344. ;;
  14345. *)
  14346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14347. for as_dir in $PATH
  14348. do
  14349. IFS=$as_save_IFS
  14350. case $as_dir in #(((
  14351. '') as_dir=./ ;;
  14352. */) ;;
  14353. *) as_dir=$as_dir/ ;;
  14354. esac
  14355. for ac_exec_ext in '' $ac_executable_extensions; do
  14356. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14357. ac_cv_path_SHTOOL="$as_dir$ac_word$ac_exec_ext"
  14358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14359. break 2
  14360. fi
  14361. done
  14362. done
  14363. IFS=$as_save_IFS
  14364. test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
  14365. ;;
  14366. esac ;;
  14367. esac
  14368. fi
  14369. SHTOOL=$ac_cv_path_SHTOOL
  14370. if test -n "$SHTOOL"; then
  14371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
  14372. printf "%s\n" "$SHTOOL" >&6; }
  14373. else
  14374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14375. printf "%s\n" "no" >&6; }
  14376. fi
  14377. case `$SHTOOL path $CC` in
  14378. *ccache*) cc_ccache=yes;;
  14379. *) cc_ccache=no;;
  14380. esac
  14381. if test "$cc_ccache" = "yes"; then
  14382. if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
  14383. as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
  14384. fi
  14385. fi
  14386. # Extract the first word of "lcov", so it can be a program name with args.
  14387. set dummy lcov; ac_word=$2
  14388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14389. printf %s "checking for $ac_word... " >&6; }
  14390. if test ${ac_cv_path_LCOV+y}
  14391. then :
  14392. printf %s "(cached) " >&6
  14393. else case e in #(
  14394. e) case $LCOV in
  14395. [\\/]* | ?:[\\/]*)
  14396. ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
  14397. ;;
  14398. *)
  14399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14400. for as_dir in $PATH
  14401. do
  14402. IFS=$as_save_IFS
  14403. case $as_dir in #(((
  14404. '') as_dir=./ ;;
  14405. */) ;;
  14406. *) as_dir=$as_dir/ ;;
  14407. esac
  14408. for ac_exec_ext in '' $ac_executable_extensions; do
  14409. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14410. ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
  14411. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14412. break 2
  14413. fi
  14414. done
  14415. done
  14416. IFS=$as_save_IFS
  14417. test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
  14418. ;;
  14419. esac ;;
  14420. esac
  14421. fi
  14422. LCOV=$ac_cv_path_LCOV
  14423. if test -n "$LCOV"; then
  14424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  14425. printf "%s\n" "$LCOV" >&6; }
  14426. else
  14427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14428. printf "%s\n" "no" >&6; }
  14429. fi
  14430. if test "x$LCOV" = "xfalse"; then
  14431. as_fn_error $? "lcov not found" "$LINENO" 5
  14432. fi
  14433. # Extract the first word of "genhtml", so it can be a program name with args.
  14434. set dummy genhtml; ac_word=$2
  14435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14436. printf %s "checking for $ac_word... " >&6; }
  14437. if test ${ac_cv_path_GENHTML+y}
  14438. then :
  14439. printf %s "(cached) " >&6
  14440. else case e in #(
  14441. e) case $GENHTML in
  14442. [\\/]* | ?:[\\/]*)
  14443. ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
  14444. ;;
  14445. *)
  14446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14447. for as_dir in $PATH
  14448. do
  14449. IFS=$as_save_IFS
  14450. case $as_dir in #(((
  14451. '') as_dir=./ ;;
  14452. */) ;;
  14453. *) as_dir=$as_dir/ ;;
  14454. esac
  14455. for ac_exec_ext in '' $ac_executable_extensions; do
  14456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14457. ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
  14458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14459. break 2
  14460. fi
  14461. done
  14462. done
  14463. IFS=$as_save_IFS
  14464. test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
  14465. ;;
  14466. esac ;;
  14467. esac
  14468. fi
  14469. GENHTML=$ac_cv_path_GENHTML
  14470. if test -n "$GENHTML"; then
  14471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  14472. printf "%s\n" "$GENHTML" >&6; }
  14473. else
  14474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14475. printf "%s\n" "no" >&6; }
  14476. fi
  14477. if test "x$GENHTML" = "xfalse"; then
  14478. as_fn_error $? "genhtml not found" "$LINENO" 5
  14479. fi
  14480. # Set flags needed for gcov
  14481. GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  14482. GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
  14483. GCOV_LIBS="-lgcov"
  14484. fi # enable_coverage
  14485. if test "x$enable_coverage" = "xyes"; then
  14486. WITH_GCOV_TRUE=
  14487. WITH_GCOV_FALSE='#'
  14488. else
  14489. WITH_GCOV_TRUE='#'
  14490. WITH_GCOV_FALSE=
  14491. fi
  14492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Intel CET is enabled" >&5
  14493. printf %s "checking whether Intel CET is enabled... " >&6; }
  14494. ac_ext=c
  14495. ac_cpp='$CPP $CPPFLAGS'
  14496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14500. /* end confdefs.h. */
  14501. int
  14502. main (void)
  14503. {
  14504. #ifndef __CET__
  14505. # error CET is not enabled
  14506. #endif
  14507. ;
  14508. return 0;
  14509. }
  14510. _ACEOF
  14511. if ac_fn_c_try_compile "$LINENO"
  14512. then :
  14513. pcre2_cc_cv_intel_cet_enabled=yes
  14514. else case e in #(
  14515. e) pcre2_cc_cv_intel_cet_enabled=no ;;
  14516. esac
  14517. fi
  14518. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pcre2_cc_cv_intel_cet_enabled" >&5
  14520. printf "%s\n" "$pcre2_cc_cv_intel_cet_enabled" >&6; }
  14521. if test "$pcre2_cc_cv_intel_cet_enabled" = yes; then
  14522. CET_CFLAGS="-mshstk"
  14523. fi
  14524. ac_ext=c
  14525. ac_cpp='$CPP $CPPFLAGS'
  14526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14529. # LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
  14530. # Pass empty LIB_POSTFIX to *.pc files and pcre2-config here.
  14531. # Produce these files, in addition to config.h.
  14532. ac_config_files="$ac_config_files Makefile libpcre2-8.pc libpcre2-16.pc libpcre2-32.pc libpcre2-posix.pc pcre2-config src/pcre2.h"
  14533. # Make the generated script files executable.
  14534. ac_config_commands="$ac_config_commands script-chmod"
  14535. # Make sure that pcre2_chartables.c is removed in case the method for
  14536. # creating it was changed by reconfiguration.
  14537. ac_config_commands="$ac_config_commands delete-old-chartables"
  14538. cat >confcache <<\_ACEOF
  14539. # This file is a shell script that caches the results of configure
  14540. # tests run on this system so they can be shared between configure
  14541. # scripts and configure runs, see configure's option --config-cache.
  14542. # It is not useful on other systems. If it contains results you don't
  14543. # want to keep, you may remove or edit it.
  14544. #
  14545. # config.status only pays attention to the cache file if you give it
  14546. # the --recheck option to rerun configure.
  14547. #
  14548. # 'ac_cv_env_foo' variables (set or unset) will be overridden when
  14549. # loading this file, other *unset* 'ac_cv_foo' will be assigned the
  14550. # following values.
  14551. _ACEOF
  14552. # The following way of writing the cache mishandles newlines in values,
  14553. # but we know of no workaround that is simple, portable, and efficient.
  14554. # So, we kill variables containing newlines.
  14555. # Ultrix sh set writes to stderr and can't be redirected directly,
  14556. # and sets the high bit in the cache file unless we assign to the vars.
  14557. (
  14558. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14559. eval ac_val=\$$ac_var
  14560. case $ac_val in #(
  14561. *${as_nl}*)
  14562. case $ac_var in #(
  14563. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14564. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14565. esac
  14566. case $ac_var in #(
  14567. _ | IFS | as_nl) ;; #(
  14568. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14569. *) { eval $ac_var=; unset $ac_var;} ;;
  14570. esac ;;
  14571. esac
  14572. done
  14573. (set) 2>&1 |
  14574. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14575. *${as_nl}ac_space=\ *)
  14576. # 'set' does not quote correctly, so add quotes: double-quote
  14577. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14578. sed -n \
  14579. "s/'/'\\\\''/g;
  14580. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14581. ;; #(
  14582. *)
  14583. # 'set' quotes correctly as required by POSIX, so do not add quotes.
  14584. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14585. ;;
  14586. esac |
  14587. sort
  14588. ) |
  14589. sed '
  14590. /^ac_cv_env_/b end
  14591. t clear
  14592. :clear
  14593. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  14594. t end
  14595. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14596. :end' >>confcache
  14597. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14598. if test -w "$cache_file"; then
  14599. if test "x$cache_file" != "x/dev/null"; then
  14600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14601. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  14602. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14603. cat confcache >"$cache_file"
  14604. else
  14605. case $cache_file in #(
  14606. */* | ?:*)
  14607. mv -f confcache "$cache_file"$$ &&
  14608. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14609. *)
  14610. mv -f confcache "$cache_file" ;;
  14611. esac
  14612. fi
  14613. fi
  14614. else
  14615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14616. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  14617. fi
  14618. fi
  14619. rm -f confcache
  14620. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14621. # Let make expand exec_prefix.
  14622. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14623. DEFS=-DHAVE_CONFIG_H
  14624. ac_libobjs=
  14625. ac_ltlibobjs=
  14626. U=
  14627. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14628. # 1. Remove the extension, and $U if already installed.
  14629. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14630. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  14631. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14632. # will be set to the directory where LIBOBJS objects are built.
  14633. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14634. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14635. done
  14636. LIBOBJS=$ac_libobjs
  14637. LTLIBOBJS=$ac_ltlibobjs
  14638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14639. printf %s "checking that generated files are newer than configure... " >&6; }
  14640. if test -n "$am_sleep_pid"; then
  14641. # Hide warnings about reused PIDs.
  14642. wait $am_sleep_pid 2>/dev/null
  14643. fi
  14644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14645. printf "%s\n" "done" >&6; }
  14646. if test -n "$EXEEXT"; then
  14647. am__EXEEXT_TRUE=
  14648. am__EXEEXT_FALSE='#'
  14649. else
  14650. am__EXEEXT_TRUE='#'
  14651. am__EXEEXT_FALSE=
  14652. fi
  14653. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14654. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14656. fi
  14657. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14658. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14660. fi
  14661. # Check whether --enable-year2038 was given.
  14662. if test ${enable_year2038+y}
  14663. then :
  14664. enableval=$enable_year2038;
  14665. fi
  14666. if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
  14667. as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
  14668. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14669. fi
  14670. if test -z "${WITH_PCRE2_16_TRUE}" && test -z "${WITH_PCRE2_16_FALSE}"; then
  14671. as_fn_error $? "conditional \"WITH_PCRE2_16\" was never defined.
  14672. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14673. fi
  14674. if test -z "${WITH_PCRE2_32_TRUE}" && test -z "${WITH_PCRE2_32_FALSE}"; then
  14675. as_fn_error $? "conditional \"WITH_PCRE2_32\" was never defined.
  14676. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14677. fi
  14678. if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
  14679. as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
  14680. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14681. fi
  14682. if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
  14683. as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
  14684. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14685. fi
  14686. if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
  14687. as_fn_error $? "conditional \"WITH_JIT\" was never defined.
  14688. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14689. fi
  14690. if test -z "${WITH_UNICODE_TRUE}" && test -z "${WITH_UNICODE_FALSE}"; then
  14691. as_fn_error $? "conditional \"WITH_UNICODE\" was never defined.
  14692. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14693. fi
  14694. if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
  14695. as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
  14696. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14697. fi
  14698. if test -z "${WITH_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_FUZZ_SUPPORT_FALSE}"; then
  14699. as_fn_error $? "conditional \"WITH_FUZZ_SUPPORT\" was never defined.
  14700. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14701. fi
  14702. if test -z "${WITH_DIFF_FUZZ_SUPPORT_TRUE}" && test -z "${WITH_DIFF_FUZZ_SUPPORT_FALSE}"; then
  14703. as_fn_error $? "conditional \"WITH_DIFF_FUZZ_SUPPORT\" was never defined.
  14704. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14705. fi
  14706. if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
  14707. as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
  14708. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14709. fi
  14710. : "${CONFIG_STATUS=./config.status}"
  14711. ac_write_fail=0
  14712. ac_clean_files_save=$ac_clean_files
  14713. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14715. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  14716. as_write_fail=0
  14717. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14718. #! $SHELL
  14719. # Generated by $as_me.
  14720. # Run this file to recreate the current configuration.
  14721. # Compiler output produced by configure, useful for debugging
  14722. # configure, is in config.log if it exists.
  14723. debug=false
  14724. ac_cs_recheck=false
  14725. ac_cs_silent=false
  14726. SHELL=\${CONFIG_SHELL-$SHELL}
  14727. export SHELL
  14728. _ASEOF
  14729. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14730. ## -------------------- ##
  14731. ## M4sh Initialization. ##
  14732. ## -------------------- ##
  14733. # Be more Bourne compatible
  14734. DUALCASE=1; export DUALCASE # for MKS sh
  14735. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  14736. then :
  14737. emulate sh
  14738. NULLCMD=:
  14739. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14740. # is contrary to our usage. Disable this feature.
  14741. alias -g '${1+"$@"}'='"$@"'
  14742. setopt NO_GLOB_SUBST
  14743. else case e in #(
  14744. e) case `(set -o) 2>/dev/null` in #(
  14745. *posix*) :
  14746. set -o posix ;; #(
  14747. *) :
  14748. ;;
  14749. esac ;;
  14750. esac
  14751. fi
  14752. # Reset variables that may have inherited troublesome values from
  14753. # the environment.
  14754. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  14755. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  14756. # side effect of setting IFS to empty, thus disabling word splitting.)
  14757. # Quoting is to prevent editors from complaining about space-tab.
  14758. as_nl='
  14759. '
  14760. export as_nl
  14761. IFS=" "" $as_nl"
  14762. PS1='$ '
  14763. PS2='> '
  14764. PS4='+ '
  14765. # Ensure predictable behavior from utilities with locale-dependent output.
  14766. LC_ALL=C
  14767. export LC_ALL
  14768. LANGUAGE=C
  14769. export LANGUAGE
  14770. # We cannot yet rely on "unset" to work, but we need these variables
  14771. # to be unset--not just set to an empty or harmless value--now, to
  14772. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  14773. # also avoids known problems related to "unset" and subshell syntax
  14774. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  14775. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  14776. do eval test \${$as_var+y} \
  14777. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14778. done
  14779. # Ensure that fds 0, 1, and 2 are open.
  14780. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  14781. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  14782. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  14783. # The user is always right.
  14784. if ${PATH_SEPARATOR+false} :; then
  14785. PATH_SEPARATOR=:
  14786. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14787. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14788. PATH_SEPARATOR=';'
  14789. }
  14790. fi
  14791. # Find who we are. Look in the path if we contain no directory separator.
  14792. as_myself=
  14793. case $0 in #((
  14794. *[\\/]* ) as_myself=$0 ;;
  14795. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14796. for as_dir in $PATH
  14797. do
  14798. IFS=$as_save_IFS
  14799. case $as_dir in #(((
  14800. '') as_dir=./ ;;
  14801. */) ;;
  14802. *) as_dir=$as_dir/ ;;
  14803. esac
  14804. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  14805. done
  14806. IFS=$as_save_IFS
  14807. ;;
  14808. esac
  14809. # We did not find ourselves, most probably we were run as 'sh COMMAND'
  14810. # in which case we are not to be found in the path.
  14811. if test "x$as_myself" = x; then
  14812. as_myself=$0
  14813. fi
  14814. if test ! -f "$as_myself"; then
  14815. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14816. exit 1
  14817. fi
  14818. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14819. # ----------------------------------------
  14820. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14821. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14822. # script with STATUS, using 1 if that was 0.
  14823. as_fn_error ()
  14824. {
  14825. as_status=$1; test $as_status -eq 0 && as_status=1
  14826. if test "$4"; then
  14827. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14829. fi
  14830. printf "%s\n" "$as_me: error: $2" >&2
  14831. as_fn_exit $as_status
  14832. } # as_fn_error
  14833. # as_fn_set_status STATUS
  14834. # -----------------------
  14835. # Set $? to STATUS, without forking.
  14836. as_fn_set_status ()
  14837. {
  14838. return $1
  14839. } # as_fn_set_status
  14840. # as_fn_exit STATUS
  14841. # -----------------
  14842. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14843. as_fn_exit ()
  14844. {
  14845. set +e
  14846. as_fn_set_status $1
  14847. exit $1
  14848. } # as_fn_exit
  14849. # as_fn_unset VAR
  14850. # ---------------
  14851. # Portably unset VAR.
  14852. as_fn_unset ()
  14853. {
  14854. { eval $1=; unset $1;}
  14855. }
  14856. as_unset=as_fn_unset
  14857. # as_fn_append VAR VALUE
  14858. # ----------------------
  14859. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14860. # advantage of any shell optimizations that allow amortized linear growth over
  14861. # repeated appends, instead of the typical quadratic growth present in naive
  14862. # implementations.
  14863. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  14864. then :
  14865. eval 'as_fn_append ()
  14866. {
  14867. eval $1+=\$2
  14868. }'
  14869. else case e in #(
  14870. e) as_fn_append ()
  14871. {
  14872. eval $1=\$$1\$2
  14873. } ;;
  14874. esac
  14875. fi # as_fn_append
  14876. # as_fn_arith ARG...
  14877. # ------------------
  14878. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14879. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14880. # must be portable across $(()) and expr.
  14881. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  14882. then :
  14883. eval 'as_fn_arith ()
  14884. {
  14885. as_val=$(( $* ))
  14886. }'
  14887. else case e in #(
  14888. e) as_fn_arith ()
  14889. {
  14890. as_val=`expr "$@" || test $? -eq 1`
  14891. } ;;
  14892. esac
  14893. fi # as_fn_arith
  14894. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14895. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14896. as_expr=expr
  14897. else
  14898. as_expr=false
  14899. fi
  14900. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14901. as_basename=basename
  14902. else
  14903. as_basename=false
  14904. fi
  14905. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14906. as_dirname=dirname
  14907. else
  14908. as_dirname=false
  14909. fi
  14910. as_me=`$as_basename -- "$0" ||
  14911. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14912. X"$0" : 'X\(//\)$' \| \
  14913. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14914. printf "%s\n" X/"$0" |
  14915. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14916. s//\1/
  14917. q
  14918. }
  14919. /^X\/\(\/\/\)$/{
  14920. s//\1/
  14921. q
  14922. }
  14923. /^X\/\(\/\).*/{
  14924. s//\1/
  14925. q
  14926. }
  14927. s/.*/./; q'`
  14928. # Avoid depending upon Character Ranges.
  14929. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14930. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14931. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14932. as_cr_digits='0123456789'
  14933. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14934. # Determine whether it's possible to make 'echo' print without a newline.
  14935. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  14936. # for compatibility with existing Makefiles.
  14937. ECHO_C= ECHO_N= ECHO_T=
  14938. case `echo -n x` in #(((((
  14939. -n*)
  14940. case `echo 'xy\c'` in
  14941. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14942. xy) ECHO_C='\c';;
  14943. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14944. ECHO_T=' ';;
  14945. esac;;
  14946. *)
  14947. ECHO_N='-n';;
  14948. esac
  14949. # For backward compatibility with old third-party macros, we provide
  14950. # the shell variables $as_echo and $as_echo_n. New code should use
  14951. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  14952. as_echo='printf %s\n'
  14953. as_echo_n='printf %s'
  14954. rm -f conf$$ conf$$.exe conf$$.file
  14955. if test -d conf$$.dir; then
  14956. rm -f conf$$.dir/conf$$.file
  14957. else
  14958. rm -f conf$$.dir
  14959. mkdir conf$$.dir 2>/dev/null
  14960. fi
  14961. if (echo >conf$$.file) 2>/dev/null; then
  14962. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14963. as_ln_s='ln -s'
  14964. # ... but there are two gotchas:
  14965. # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
  14966. # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
  14967. # In both cases, we have to default to 'cp -pR'.
  14968. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14969. as_ln_s='cp -pR'
  14970. elif ln conf$$.file conf$$ 2>/dev/null; then
  14971. as_ln_s=ln
  14972. else
  14973. as_ln_s='cp -pR'
  14974. fi
  14975. else
  14976. as_ln_s='cp -pR'
  14977. fi
  14978. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14979. rmdir conf$$.dir 2>/dev/null
  14980. # as_fn_mkdir_p
  14981. # -------------
  14982. # Create "$as_dir" as a directory, including parents if necessary.
  14983. as_fn_mkdir_p ()
  14984. {
  14985. case $as_dir in #(
  14986. -*) as_dir=./$as_dir;;
  14987. esac
  14988. test -d "$as_dir" || eval $as_mkdir_p || {
  14989. as_dirs=
  14990. while :; do
  14991. case $as_dir in #(
  14992. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14993. *) as_qdir=$as_dir;;
  14994. esac
  14995. as_dirs="'$as_qdir' $as_dirs"
  14996. as_dir=`$as_dirname -- "$as_dir" ||
  14997. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14998. X"$as_dir" : 'X\(//\)[^/]' \| \
  14999. X"$as_dir" : 'X\(//\)$' \| \
  15000. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15001. printf "%s\n" X"$as_dir" |
  15002. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15003. s//\1/
  15004. q
  15005. }
  15006. /^X\(\/\/\)[^/].*/{
  15007. s//\1/
  15008. q
  15009. }
  15010. /^X\(\/\/\)$/{
  15011. s//\1/
  15012. q
  15013. }
  15014. /^X\(\/\).*/{
  15015. s//\1/
  15016. q
  15017. }
  15018. s/.*/./; q'`
  15019. test -d "$as_dir" && break
  15020. done
  15021. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15022. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15023. } # as_fn_mkdir_p
  15024. if mkdir -p . 2>/dev/null; then
  15025. as_mkdir_p='mkdir -p "$as_dir"'
  15026. else
  15027. test -d ./-p && rmdir ./-p
  15028. as_mkdir_p=false
  15029. fi
  15030. # as_fn_executable_p FILE
  15031. # -----------------------
  15032. # Test if FILE is an executable regular file.
  15033. as_fn_executable_p ()
  15034. {
  15035. test -f "$1" && test -x "$1"
  15036. } # as_fn_executable_p
  15037. as_test_x='test -x'
  15038. as_executable_p=as_fn_executable_p
  15039. # Sed expression to map a string onto a valid CPP name.
  15040. as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  15041. as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
  15042. # Sed expression to map a string onto a valid variable name.
  15043. as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  15044. as_tr_sh="eval sed '$as_sed_sh'" # deprecated
  15045. exec 6>&1
  15046. ## ----------------------------------- ##
  15047. ## Main body of $CONFIG_STATUS script. ##
  15048. ## ----------------------------------- ##
  15049. _ASEOF
  15050. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15051. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15052. # Save the log message, to keep $0 and so on meaningful, and to
  15053. # report actual input values of CONFIG_FILES etc. instead of their
  15054. # values after options handling.
  15055. ac_log="
  15056. This file was extended by PCRE2 $as_me 10.43, which was
  15057. generated by GNU Autoconf 2.72. Invocation command line was
  15058. CONFIG_FILES = $CONFIG_FILES
  15059. CONFIG_HEADERS = $CONFIG_HEADERS
  15060. CONFIG_LINKS = $CONFIG_LINKS
  15061. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15062. $ $0 $@
  15063. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15064. "
  15065. _ACEOF
  15066. case $ac_config_files in *"
  15067. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15068. esac
  15069. case $ac_config_headers in *"
  15070. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15071. esac
  15072. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15073. # Files that config.status was made for.
  15074. config_files="$ac_config_files"
  15075. config_headers="$ac_config_headers"
  15076. config_commands="$ac_config_commands"
  15077. _ACEOF
  15078. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15079. ac_cs_usage="\
  15080. '$as_me' instantiates files and other configuration actions
  15081. from templates according to the current configuration. Unless the files
  15082. and actions are specified as TAGs, all are instantiated by default.
  15083. Usage: $0 [OPTION]... [TAG]...
  15084. -h, --help print this help, then exit
  15085. -V, --version print version number and configuration settings, then exit
  15086. --config print configuration, then exit
  15087. -q, --quiet, --silent
  15088. do not print progress messages
  15089. -d, --debug don't remove temporary files
  15090. --recheck update $as_me by reconfiguring in the same conditions
  15091. --file=FILE[:TEMPLATE]
  15092. instantiate the configuration file FILE
  15093. --header=FILE[:TEMPLATE]
  15094. instantiate the configuration header FILE
  15095. Configuration files:
  15096. $config_files
  15097. Configuration headers:
  15098. $config_headers
  15099. Configuration commands:
  15100. $config_commands
  15101. Report bugs to the package provider."
  15102. _ACEOF
  15103. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  15104. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  15105. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15106. ac_cs_config='$ac_cs_config_escaped'
  15107. ac_cs_version="\\
  15108. PCRE2 config.status 10.43
  15109. configured by $0, generated by GNU Autoconf 2.72,
  15110. with options \\"\$ac_cs_config\\"
  15111. Copyright (C) 2023 Free Software Foundation, Inc.
  15112. This config.status script is free software; the Free Software Foundation
  15113. gives unlimited permission to copy, distribute and modify it."
  15114. ac_pwd='$ac_pwd'
  15115. srcdir='$srcdir'
  15116. INSTALL='$INSTALL'
  15117. MKDIR_P='$MKDIR_P'
  15118. AWK='$AWK'
  15119. test -n "\$AWK" || AWK=awk
  15120. _ACEOF
  15121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15122. # The default lists apply if the user does not specify any file.
  15123. ac_need_defaults=:
  15124. while test $# != 0
  15125. do
  15126. case $1 in
  15127. --*=?*)
  15128. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15129. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15130. ac_shift=:
  15131. ;;
  15132. --*=)
  15133. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15134. ac_optarg=
  15135. ac_shift=:
  15136. ;;
  15137. *)
  15138. ac_option=$1
  15139. ac_optarg=$2
  15140. ac_shift=shift
  15141. ;;
  15142. esac
  15143. case $ac_option in
  15144. # Handling of the options.
  15145. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15146. ac_cs_recheck=: ;;
  15147. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15148. printf "%s\n" "$ac_cs_version"; exit ;;
  15149. --config | --confi | --conf | --con | --co | --c )
  15150. printf "%s\n" "$ac_cs_config"; exit ;;
  15151. --debug | --debu | --deb | --de | --d | -d )
  15152. debug=: ;;
  15153. --file | --fil | --fi | --f )
  15154. $ac_shift
  15155. case $ac_optarg in
  15156. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15157. '') as_fn_error $? "missing file argument" ;;
  15158. esac
  15159. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15160. ac_need_defaults=false;;
  15161. --header | --heade | --head | --hea )
  15162. $ac_shift
  15163. case $ac_optarg in
  15164. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15165. esac
  15166. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15167. ac_need_defaults=false;;
  15168. --he | --h)
  15169. # Conflict between --help and --header
  15170. as_fn_error $? "ambiguous option: '$1'
  15171. Try '$0 --help' for more information.";;
  15172. --help | --hel | -h )
  15173. printf "%s\n" "$ac_cs_usage"; exit ;;
  15174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15175. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15176. ac_cs_silent=: ;;
  15177. # This is an error.
  15178. -*) as_fn_error $? "unrecognized option: '$1'
  15179. Try '$0 --help' for more information." ;;
  15180. *) as_fn_append ac_config_targets " $1"
  15181. ac_need_defaults=false ;;
  15182. esac
  15183. shift
  15184. done
  15185. ac_configure_extra_args=
  15186. if $ac_cs_silent; then
  15187. exec 6>/dev/null
  15188. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15189. fi
  15190. _ACEOF
  15191. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15192. if \$ac_cs_recheck; then
  15193. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15194. shift
  15195. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  15196. CONFIG_SHELL='$SHELL'
  15197. export CONFIG_SHELL
  15198. exec "\$@"
  15199. fi
  15200. _ACEOF
  15201. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15202. exec 5>>config.log
  15203. {
  15204. echo
  15205. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15206. ## Running $as_me. ##
  15207. _ASBOX
  15208. printf "%s\n" "$ac_log"
  15209. } >&5
  15210. _ACEOF
  15211. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15212. #
  15213. # INIT-COMMANDS
  15214. #
  15215. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  15216. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15217. # if CDPATH is set.
  15218. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15219. sed_quote_subst='$sed_quote_subst'
  15220. double_quote_subst='$double_quote_subst'
  15221. delay_variable_subst='$delay_variable_subst'
  15222. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15223. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15224. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15225. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15226. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15227. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15228. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15229. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15230. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15231. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  15232. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15233. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15234. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15235. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15236. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15237. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15238. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15239. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15240. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15241. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15242. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15243. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15244. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15245. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15246. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15247. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15248. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15249. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15250. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15251. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15252. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15253. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15254. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15255. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15256. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15257. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15258. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15259. FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
  15260. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15261. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15262. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15263. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15264. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15265. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15266. lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
  15267. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15268. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15269. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15270. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15271. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15272. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15273. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15274. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15275. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15276. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15277. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15278. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15279. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15280. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15281. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  15282. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15283. 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"`'
  15284. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  15285. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15286. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15287. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  15288. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15289. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15290. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15291. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15292. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15293. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15294. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15295. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15296. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15297. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15298. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15299. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15300. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15301. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15302. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15303. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15304. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15305. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15306. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15307. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15308. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15309. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15310. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15311. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15312. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15313. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15314. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15315. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15316. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15317. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15318. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15319. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15320. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15321. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15322. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15323. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15324. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15325. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15326. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15327. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15328. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15329. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15330. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15331. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15332. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15333. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15334. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15335. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15336. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15337. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15338. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15339. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15340. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15341. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15342. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15343. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15344. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15345. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15346. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15347. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15348. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15349. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15350. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15351. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15352. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  15353. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  15354. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15355. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15356. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15357. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15358. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15359. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15360. LTCC='$LTCC'
  15361. LTCFLAGS='$LTCFLAGS'
  15362. compiler='$compiler_DEFAULT'
  15363. # A function that is used when there is no print builtin or printf.
  15364. func_fallback_echo ()
  15365. {
  15366. eval 'cat <<_LTECHO_EOF
  15367. \$1
  15368. _LTECHO_EOF'
  15369. }
  15370. # Quote evaled strings.
  15371. for var in AS \
  15372. DLLTOOL \
  15373. OBJDUMP \
  15374. SHELL \
  15375. ECHO \
  15376. PATH_SEPARATOR \
  15377. SED \
  15378. GREP \
  15379. EGREP \
  15380. FGREP \
  15381. LD \
  15382. NM \
  15383. LN_S \
  15384. lt_SP2NL \
  15385. lt_NL2SP \
  15386. reload_flag \
  15387. FILECMD \
  15388. deplibs_check_method \
  15389. file_magic_cmd \
  15390. file_magic_glob \
  15391. want_nocaseglob \
  15392. sharedlib_from_linklib_cmd \
  15393. AR \
  15394. archiver_list_spec \
  15395. STRIP \
  15396. RANLIB \
  15397. CC \
  15398. CFLAGS \
  15399. compiler \
  15400. lt_cv_sys_global_symbol_pipe \
  15401. lt_cv_sys_global_symbol_to_cdecl \
  15402. lt_cv_sys_global_symbol_to_import \
  15403. lt_cv_sys_global_symbol_to_c_name_address \
  15404. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15405. lt_cv_nm_interface \
  15406. nm_file_list_spec \
  15407. lt_cv_truncate_bin \
  15408. lt_prog_compiler_no_builtin_flag \
  15409. lt_prog_compiler_pic \
  15410. lt_prog_compiler_wl \
  15411. lt_prog_compiler_static \
  15412. lt_cv_prog_compiler_c_o \
  15413. need_locks \
  15414. MANIFEST_TOOL \
  15415. DSYMUTIL \
  15416. NMEDIT \
  15417. LIPO \
  15418. OTOOL \
  15419. OTOOL64 \
  15420. shrext_cmds \
  15421. export_dynamic_flag_spec \
  15422. whole_archive_flag_spec \
  15423. compiler_needs_object \
  15424. with_gnu_ld \
  15425. allow_undefined_flag \
  15426. no_undefined_flag \
  15427. hardcode_libdir_flag_spec \
  15428. hardcode_libdir_separator \
  15429. exclude_expsyms \
  15430. include_expsyms \
  15431. file_list_spec \
  15432. variables_saved_for_relink \
  15433. libname_spec \
  15434. library_names_spec \
  15435. soname_spec \
  15436. install_override_mode \
  15437. finish_eval \
  15438. old_striplib \
  15439. striplib; do
  15440. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15441. *[\\\\\\\`\\"\\\$]*)
  15442. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15443. ;;
  15444. *)
  15445. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15446. ;;
  15447. esac
  15448. done
  15449. # Double-quote double-evaled strings.
  15450. for var in reload_cmds \
  15451. old_postinstall_cmds \
  15452. old_postuninstall_cmds \
  15453. old_archive_cmds \
  15454. extract_expsyms_cmds \
  15455. old_archive_from_new_cmds \
  15456. old_archive_from_expsyms_cmds \
  15457. archive_cmds \
  15458. archive_expsym_cmds \
  15459. module_cmds \
  15460. module_expsym_cmds \
  15461. export_symbols_cmds \
  15462. prelink_cmds \
  15463. postlink_cmds \
  15464. postinstall_cmds \
  15465. postuninstall_cmds \
  15466. finish_cmds \
  15467. sys_lib_search_path_spec \
  15468. configure_time_dlsearch_path \
  15469. configure_time_lt_sys_library_path; do
  15470. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15471. *[\\\\\\\`\\"\\\$]*)
  15472. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  15473. ;;
  15474. *)
  15475. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15476. ;;
  15477. esac
  15478. done
  15479. ac_aux_dir='$ac_aux_dir'
  15480. # See if we are running on zsh, and set the options that allow our
  15481. # commands through without removal of \ escapes INIT.
  15482. if test -n "\${ZSH_VERSION+set}"; then
  15483. setopt NO_GLOB_SUBST
  15484. fi
  15485. PACKAGE='$PACKAGE'
  15486. VERSION='$VERSION'
  15487. RM='$RM'
  15488. ofile='$ofile'
  15489. _ACEOF
  15490. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15491. # Handling of arguments.
  15492. for ac_config_target in $ac_config_targets
  15493. do
  15494. case $ac_config_target in
  15495. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  15496. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15497. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15498. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15499. "libpcre2-8.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-8.pc" ;;
  15500. "libpcre2-16.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-16.pc" ;;
  15501. "libpcre2-32.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-32.pc" ;;
  15502. "libpcre2-posix.pc") CONFIG_FILES="$CONFIG_FILES libpcre2-posix.pc" ;;
  15503. "pcre2-config") CONFIG_FILES="$CONFIG_FILES pcre2-config" ;;
  15504. "src/pcre2.h") CONFIG_FILES="$CONFIG_FILES src/pcre2.h" ;;
  15505. "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
  15506. "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
  15507. *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
  15508. esac
  15509. done
  15510. # If the user did not use the arguments to specify the items to instantiate,
  15511. # then the envvar interface is used. Set only those that are not.
  15512. # We use the long form for the default assignment because of an extremely
  15513. # bizarre bug on SunOS 4.1.3.
  15514. if $ac_need_defaults; then
  15515. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  15516. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  15517. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  15518. fi
  15519. # Have a temporary directory for convenience. Make it in the build tree
  15520. # simply because there is no reason against having it here, and in addition,
  15521. # creating and moving files from /tmp can sometimes cause problems.
  15522. # Hook for its removal unless debugging.
  15523. # Note that there is a small window in which the directory will not be cleaned:
  15524. # after its creation but before its name has been assigned to '$tmp'.
  15525. $debug ||
  15526. {
  15527. tmp= ac_tmp=
  15528. trap 'exit_status=$?
  15529. : "${ac_tmp:=$tmp}"
  15530. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15531. ' 0
  15532. trap 'as_fn_exit 1' 1 2 13 15
  15533. }
  15534. # Create a (secure) tmp directory for tmp files.
  15535. {
  15536. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15537. test -d "$tmp"
  15538. } ||
  15539. {
  15540. tmp=./conf$$-$RANDOM
  15541. (umask 077 && mkdir "$tmp")
  15542. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15543. ac_tmp=$tmp
  15544. # Set up the scripts for CONFIG_FILES section.
  15545. # No need to generate them if there are no CONFIG_FILES.
  15546. # This happens for instance with './config.status config.h'.
  15547. if test -n "$CONFIG_FILES"; then
  15548. ac_cr=`echo X | tr X '\015'`
  15549. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15550. # But we know of no other shell where ac_cr would be empty at this
  15551. # point, so we can use a bashism as a fallback.
  15552. if test "x$ac_cr" = x; then
  15553. eval ac_cr=\$\'\\r\'
  15554. fi
  15555. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15556. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15557. ac_cs_awk_cr='\\r'
  15558. else
  15559. ac_cs_awk_cr=$ac_cr
  15560. fi
  15561. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15562. _ACEOF
  15563. {
  15564. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15565. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15566. echo "_ACEOF"
  15567. } >conf$$subs.sh ||
  15568. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15569. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15570. ac_delim='%!_!# '
  15571. for ac_last_try in false false false false false :; do
  15572. . ./conf$$subs.sh ||
  15573. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15574. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15575. if test $ac_delim_n = $ac_delim_num; then
  15576. break
  15577. elif $ac_last_try; then
  15578. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15579. else
  15580. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15581. fi
  15582. done
  15583. rm -f conf$$subs.sh
  15584. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15585. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15586. _ACEOF
  15587. sed -n '
  15588. h
  15589. s/^/S["/; s/!.*/"]=/
  15590. p
  15591. g
  15592. s/^[^!]*!//
  15593. :repl
  15594. t repl
  15595. s/'"$ac_delim"'$//
  15596. t delim
  15597. :nl
  15598. h
  15599. s/\(.\{148\}\)..*/\1/
  15600. t more1
  15601. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15602. p
  15603. n
  15604. b repl
  15605. :more1
  15606. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15607. p
  15608. g
  15609. s/.\{148\}//
  15610. t nl
  15611. :delim
  15612. h
  15613. s/\(.\{148\}\)..*/\1/
  15614. t more2
  15615. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15616. p
  15617. b
  15618. :more2
  15619. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15620. p
  15621. g
  15622. s/.\{148\}//
  15623. t delim
  15624. ' <conf$$subs.awk | sed '
  15625. /^[^""]/{
  15626. N
  15627. s/\n//
  15628. }
  15629. ' >>$CONFIG_STATUS || ac_write_fail=1
  15630. rm -f conf$$subs.awk
  15631. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15632. _ACAWK
  15633. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15634. for (key in S) S_is_set[key] = 1
  15635. FS = ""
  15636. }
  15637. {
  15638. line = $ 0
  15639. nfields = split(line, field, "@")
  15640. substed = 0
  15641. len = length(field[1])
  15642. for (i = 2; i < nfields; i++) {
  15643. key = field[i]
  15644. keylen = length(key)
  15645. if (S_is_set[key]) {
  15646. value = S[key]
  15647. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15648. len += length(value) + length(field[++i])
  15649. substed = 1
  15650. } else
  15651. len += 1 + keylen
  15652. }
  15653. print line
  15654. }
  15655. _ACAWK
  15656. _ACEOF
  15657. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15658. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15659. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15660. else
  15661. cat
  15662. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15663. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15664. _ACEOF
  15665. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15666. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15667. # trailing colons and then remove the whole line if VPATH becomes empty
  15668. # (actually we leave an empty line to preserve line numbers).
  15669. if test "x$srcdir" = x.; then
  15670. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15671. h
  15672. s///
  15673. s/^/:/
  15674. s/[ ]*$/:/
  15675. s/:\$(srcdir):/:/g
  15676. s/:\${srcdir}:/:/g
  15677. s/:@srcdir@:/:/g
  15678. s/^:*//
  15679. s/:*$//
  15680. x
  15681. s/\(=[ ]*\).*/\1/
  15682. G
  15683. s/\n//
  15684. s/^[^=]*=[ ]*$//
  15685. }'
  15686. fi
  15687. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15688. fi # test -n "$CONFIG_FILES"
  15689. # Set up the scripts for CONFIG_HEADERS section.
  15690. # No need to generate them if there are no CONFIG_HEADERS.
  15691. # This happens for instance with './config.status Makefile'.
  15692. if test -n "$CONFIG_HEADERS"; then
  15693. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15694. BEGIN {
  15695. _ACEOF
  15696. # Transform confdefs.h into an awk script 'defines.awk', embedded as
  15697. # here-document in config.status, that substitutes the proper values into
  15698. # config.h.in to produce config.h.
  15699. # Create a delimiter string that does not exist in confdefs.h, to ease
  15700. # handling of long lines.
  15701. ac_delim='%!_!# '
  15702. for ac_last_try in false false :; do
  15703. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15704. if test -z "$ac_tt"; then
  15705. break
  15706. elif $ac_last_try; then
  15707. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15708. else
  15709. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15710. fi
  15711. done
  15712. # For the awk script, D is an array of macro values keyed by name,
  15713. # likewise P contains macro parameters if any. Preserve backslash
  15714. # newline sequences.
  15715. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15716. sed -n '
  15717. s/.\{148\}/&'"$ac_delim"'/g
  15718. t rset
  15719. :rset
  15720. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15721. t def
  15722. d
  15723. :def
  15724. s/\\$//
  15725. t bsnl
  15726. s/["\\]/\\&/g
  15727. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15728. D["\1"]=" \3"/p
  15729. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15730. d
  15731. :bsnl
  15732. s/["\\]/\\&/g
  15733. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15734. D["\1"]=" \3\\\\\\n"\\/p
  15735. t cont
  15736. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15737. t cont
  15738. d
  15739. :cont
  15740. n
  15741. s/.\{148\}/&'"$ac_delim"'/g
  15742. t clear
  15743. :clear
  15744. s/\\$//
  15745. t bsnlc
  15746. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15747. d
  15748. :bsnlc
  15749. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15750. b cont
  15751. ' <confdefs.h | sed '
  15752. s/'"$ac_delim"'/"\\\
  15753. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15754. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15755. for (key in D) D_is_set[key] = 1
  15756. FS = ""
  15757. }
  15758. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15759. line = \$ 0
  15760. split(line, arg, " ")
  15761. if (arg[1] == "#") {
  15762. defundef = arg[2]
  15763. mac1 = arg[3]
  15764. } else {
  15765. defundef = substr(arg[1], 2)
  15766. mac1 = arg[2]
  15767. }
  15768. split(mac1, mac2, "(") #)
  15769. macro = mac2[1]
  15770. prefix = substr(line, 1, index(line, defundef) - 1)
  15771. if (D_is_set[macro]) {
  15772. # Preserve the white space surrounding the "#".
  15773. print prefix "define", macro P[macro] D[macro]
  15774. next
  15775. } else {
  15776. # Replace #undef with comments. This is necessary, for example,
  15777. # in the case of _POSIX_SOURCE, which is predefined and required
  15778. # on some systems where configure will not decide to define it.
  15779. if (defundef == "undef") {
  15780. print "/*", prefix defundef, macro, "*/"
  15781. next
  15782. }
  15783. }
  15784. }
  15785. { print }
  15786. _ACAWK
  15787. _ACEOF
  15788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15789. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15790. fi # test -n "$CONFIG_HEADERS"
  15791. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15792. shift
  15793. for ac_tag
  15794. do
  15795. case $ac_tag in
  15796. :[FHLC]) ac_mode=$ac_tag; continue;;
  15797. esac
  15798. case $ac_mode$ac_tag in
  15799. :[FHL]*:*);;
  15800. :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
  15801. :[FH]-) ac_tag=-:-;;
  15802. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15803. esac
  15804. ac_save_IFS=$IFS
  15805. IFS=:
  15806. set x $ac_tag
  15807. IFS=$ac_save_IFS
  15808. shift
  15809. ac_file=$1
  15810. shift
  15811. case $ac_mode in
  15812. :L) ac_source=$1;;
  15813. :[FH])
  15814. ac_file_inputs=
  15815. for ac_f
  15816. do
  15817. case $ac_f in
  15818. -) ac_f="$ac_tmp/stdin";;
  15819. *) # Look for the file first in the build tree, then in the source tree
  15820. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15821. # because $ac_f cannot contain ':'.
  15822. test -f "$ac_f" ||
  15823. case $ac_f in
  15824. [\\/$]*) false;;
  15825. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15826. esac ||
  15827. as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
  15828. esac
  15829. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15830. as_fn_append ac_file_inputs " '$ac_f'"
  15831. done
  15832. # Let's still pretend it is 'configure' which instantiates (i.e., don't
  15833. # use $as_me), people would be surprised to read:
  15834. # /* config.h. Generated by config.status. */
  15835. configure_input='Generated from '`
  15836. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15837. `' by configure.'
  15838. if test x"$ac_file" != x-; then
  15839. configure_input="$ac_file. $configure_input"
  15840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15841. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  15842. fi
  15843. # Neutralize special characters interpreted by sed in replacement strings.
  15844. case $configure_input in #(
  15845. *\&* | *\|* | *\\* )
  15846. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  15847. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15848. *) ac_sed_conf_input=$configure_input;;
  15849. esac
  15850. case $ac_tag in
  15851. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15852. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15853. esac
  15854. ;;
  15855. esac
  15856. ac_dir=`$as_dirname -- "$ac_file" ||
  15857. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15858. X"$ac_file" : 'X\(//\)[^/]' \| \
  15859. X"$ac_file" : 'X\(//\)$' \| \
  15860. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15861. printf "%s\n" X"$ac_file" |
  15862. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15863. s//\1/
  15864. q
  15865. }
  15866. /^X\(\/\/\)[^/].*/{
  15867. s//\1/
  15868. q
  15869. }
  15870. /^X\(\/\/\)$/{
  15871. s//\1/
  15872. q
  15873. }
  15874. /^X\(\/\).*/{
  15875. s//\1/
  15876. q
  15877. }
  15878. s/.*/./; q'`
  15879. as_dir="$ac_dir"; as_fn_mkdir_p
  15880. ac_builddir=.
  15881. case "$ac_dir" in
  15882. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15883. *)
  15884. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  15885. # A ".." for each directory in $ac_dir_suffix.
  15886. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15887. case $ac_top_builddir_sub in
  15888. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15889. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15890. esac ;;
  15891. esac
  15892. ac_abs_top_builddir=$ac_pwd
  15893. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15894. # for backward compatibility:
  15895. ac_top_builddir=$ac_top_build_prefix
  15896. case $srcdir in
  15897. .) # We are building in place.
  15898. ac_srcdir=.
  15899. ac_top_srcdir=$ac_top_builddir_sub
  15900. ac_abs_top_srcdir=$ac_pwd ;;
  15901. [\\/]* | ?:[\\/]* ) # Absolute name.
  15902. ac_srcdir=$srcdir$ac_dir_suffix;
  15903. ac_top_srcdir=$srcdir
  15904. ac_abs_top_srcdir=$srcdir ;;
  15905. *) # Relative name.
  15906. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15907. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15908. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15909. esac
  15910. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15911. case $ac_mode in
  15912. :F)
  15913. #
  15914. # CONFIG_FILE
  15915. #
  15916. case $INSTALL in
  15917. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15918. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15919. esac
  15920. ac_MKDIR_P=$MKDIR_P
  15921. case $MKDIR_P in
  15922. [\\/$]* | ?:[\\/]* ) ;;
  15923. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15924. esac
  15925. _ACEOF
  15926. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15927. # If the template does not know about datarootdir, expand it.
  15928. # FIXME: This hack should be removed a few years after 2.60.
  15929. ac_datarootdir_hack=; ac_datarootdir_seen=
  15930. ac_sed_dataroot='
  15931. /datarootdir/ {
  15932. p
  15933. q
  15934. }
  15935. /@datadir@/p
  15936. /@docdir@/p
  15937. /@infodir@/p
  15938. /@localedir@/p
  15939. /@mandir@/p'
  15940. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15941. *datarootdir*) ac_datarootdir_seen=yes;;
  15942. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15944. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15945. _ACEOF
  15946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15947. ac_datarootdir_hack='
  15948. s&@datadir@&$datadir&g
  15949. s&@docdir@&$docdir&g
  15950. s&@infodir@&$infodir&g
  15951. s&@localedir@&$localedir&g
  15952. s&@mandir@&$mandir&g
  15953. s&\\\${datarootdir}&$datarootdir&g' ;;
  15954. esac
  15955. _ACEOF
  15956. # Neutralize VPATH when '$srcdir' = '.'.
  15957. # Shell code in configure.ac might set extrasub.
  15958. # FIXME: do we really want to maintain this feature?
  15959. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15960. ac_sed_extra="$ac_vpsub
  15961. $extrasub
  15962. _ACEOF
  15963. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15964. :t
  15965. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15966. s|@configure_input@|$ac_sed_conf_input|;t t
  15967. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15968. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15969. s&@srcdir@&$ac_srcdir&;t t
  15970. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15971. s&@top_srcdir@&$ac_top_srcdir&;t t
  15972. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15973. s&@builddir@&$ac_builddir&;t t
  15974. s&@abs_builddir@&$ac_abs_builddir&;t t
  15975. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15976. s&@INSTALL@&$ac_INSTALL&;t t
  15977. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15978. $ac_datarootdir_hack
  15979. "
  15980. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15981. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15982. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15983. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15984. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15985. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  15987. which seems to be undefined. Please make sure it is defined" >&5
  15988. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
  15989. which seems to be undefined. Please make sure it is defined" >&2;}
  15990. rm -f "$ac_tmp/stdin"
  15991. case $ac_file in
  15992. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15993. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15994. esac \
  15995. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15996. ;;
  15997. :H)
  15998. #
  15999. # CONFIG_HEADER
  16000. #
  16001. if test x"$ac_file" != x-; then
  16002. {
  16003. printf "%s\n" "/* $configure_input */" >&1 \
  16004. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16005. } >"$ac_tmp/config.h" \
  16006. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16007. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16009. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  16010. else
  16011. rm -f "$ac_file"
  16012. mv "$ac_tmp/config.h" "$ac_file" \
  16013. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16014. fi
  16015. else
  16016. printf "%s\n" "/* $configure_input */" >&1 \
  16017. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16018. || as_fn_error $? "could not create -" "$LINENO" 5
  16019. fi
  16020. # Compute "$ac_file"'s index in $config_headers.
  16021. _am_arg="$ac_file"
  16022. _am_stamp_count=1
  16023. for _am_header in $config_headers :; do
  16024. case $_am_header in
  16025. $_am_arg | $_am_arg:* )
  16026. break ;;
  16027. * )
  16028. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16029. esac
  16030. done
  16031. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16032. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16033. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16034. X"$_am_arg" : 'X\(//\)$' \| \
  16035. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16036. printf "%s\n" X"$_am_arg" |
  16037. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16038. s//\1/
  16039. q
  16040. }
  16041. /^X\(\/\/\)[^/].*/{
  16042. s//\1/
  16043. q
  16044. }
  16045. /^X\(\/\/\)$/{
  16046. s//\1/
  16047. q
  16048. }
  16049. /^X\(\/\).*/{
  16050. s//\1/
  16051. q
  16052. }
  16053. s/.*/./; q'`/stamp-h$_am_stamp_count
  16054. ;;
  16055. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16056. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  16057. ;;
  16058. esac
  16059. case $ac_file$ac_mode in
  16060. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16061. # Older Autoconf quotes --file arguments for eval, but not when files
  16062. # are listed without --file. Let's play safe and only enable the eval
  16063. # if we detect the quoting.
  16064. # TODO: see whether this extra hack can be removed once we start
  16065. # requiring Autoconf 2.70 or later.
  16066. case $CONFIG_FILES in #(
  16067. *\'*) :
  16068. eval set x "$CONFIG_FILES" ;; #(
  16069. *) :
  16070. set x $CONFIG_FILES ;; #(
  16071. *) :
  16072. ;;
  16073. esac
  16074. shift
  16075. # Used to flag and report bootstrapping failures.
  16076. am_rc=0
  16077. for am_mf
  16078. do
  16079. # Strip MF so we end up with the name of the file.
  16080. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  16081. # Check whether this is an Automake generated Makefile which includes
  16082. # dependency-tracking related rules and includes.
  16083. # Grep'ing the whole file directly is not great: AIX grep has a line
  16084. # limit of 2048, but all sed's we know have understand at least 4000.
  16085. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  16086. || continue
  16087. am_dirpart=`$as_dirname -- "$am_mf" ||
  16088. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16089. X"$am_mf" : 'X\(//\)[^/]' \| \
  16090. X"$am_mf" : 'X\(//\)$' \| \
  16091. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16092. printf "%s\n" X"$am_mf" |
  16093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16094. s//\1/
  16095. q
  16096. }
  16097. /^X\(\/\/\)[^/].*/{
  16098. s//\1/
  16099. q
  16100. }
  16101. /^X\(\/\/\)$/{
  16102. s//\1/
  16103. q
  16104. }
  16105. /^X\(\/\).*/{
  16106. s//\1/
  16107. q
  16108. }
  16109. s/.*/./; q'`
  16110. am_filepart=`$as_basename -- "$am_mf" ||
  16111. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  16112. X"$am_mf" : 'X\(//\)$' \| \
  16113. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  16114. printf "%s\n" X/"$am_mf" |
  16115. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16116. s//\1/
  16117. q
  16118. }
  16119. /^X\/\(\/\/\)$/{
  16120. s//\1/
  16121. q
  16122. }
  16123. /^X\/\(\/\).*/{
  16124. s//\1/
  16125. q
  16126. }
  16127. s/.*/./; q'`
  16128. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  16129. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16130. | $MAKE -f - am--depfiles" >&5
  16131. (cd "$am_dirpart" \
  16132. && sed -e '/# am--include-marker/d' "$am_filepart" \
  16133. | $MAKE -f - am--depfiles) >&5 2>&5
  16134. ac_status=$?
  16135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16136. (exit $ac_status); } || am_rc=$?
  16137. done
  16138. if test $am_rc -ne 0; then
  16139. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
  16140. printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  16141. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  16142. for automatic dependency tracking. If GNU make was not used, consider
  16143. re-running the configure script with MAKE=\"gmake\" (or whatever is
  16144. necessary). You can also try re-running configure with the
  16145. '--disable-dependency-tracking' option to at least be able to build
  16146. the package (albeit without support for automatic dependency tracking).
  16147. See 'config.log' for more details" "$LINENO" 5; }
  16148. fi
  16149. { am_dirpart=; unset am_dirpart;}
  16150. { am_filepart=; unset am_filepart;}
  16151. { am_mf=; unset am_mf;}
  16152. { am_rc=; unset am_rc;}
  16153. rm -f conftest-deps.mk
  16154. }
  16155. ;;
  16156. "libtool":C)
  16157. # See if we are running on zsh, and set the options that allow our
  16158. # commands through without removal of \ escapes.
  16159. if test -n "${ZSH_VERSION+set}"; then
  16160. setopt NO_GLOB_SUBST
  16161. fi
  16162. cfgfile=${ofile}T
  16163. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16164. $RM "$cfgfile"
  16165. cat <<_LT_EOF >> "$cfgfile"
  16166. #! $SHELL
  16167. # Generated automatically by $as_me ($PACKAGE) $VERSION
  16168. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16169. # Provide generalized library-building support services.
  16170. # Written by Gordon Matzigkeit, 1996
  16171. # Copyright (C) 2014 Free Software Foundation, Inc.
  16172. # This is free software; see the source for copying conditions. There is NO
  16173. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16174. # GNU Libtool is free software; you can redistribute it and/or modify
  16175. # it under the terms of the GNU General Public License as published by
  16176. # the Free Software Foundation; either version 2 of of the License, or
  16177. # (at your option) any later version.
  16178. #
  16179. # As a special exception to the GNU General Public License, if you
  16180. # distribute this file as part of a program or library that is built
  16181. # using GNU Libtool, you may include this file under the same
  16182. # distribution terms that you use for the rest of that program.
  16183. #
  16184. # GNU Libtool is distributed in the hope that it will be useful, but
  16185. # WITHOUT ANY WARRANTY; without even the implied warranty of
  16186. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16187. # GNU General Public License for more details.
  16188. #
  16189. # You should have received a copy of the GNU General Public License
  16190. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16191. # The names of the tagged configurations supported by this script.
  16192. available_tags=''
  16193. # Configured defaults for sys_lib_dlsearch_path munging.
  16194. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  16195. # ### BEGIN LIBTOOL CONFIG
  16196. # Which release of libtool.m4 was used?
  16197. macro_version=$macro_version
  16198. macro_revision=$macro_revision
  16199. # Assembler program.
  16200. AS=$lt_AS
  16201. # DLL creation program.
  16202. DLLTOOL=$lt_DLLTOOL
  16203. # Object dumper program.
  16204. OBJDUMP=$lt_OBJDUMP
  16205. # Whether or not to build shared libraries.
  16206. build_libtool_libs=$enable_shared
  16207. # Whether or not to build static libraries.
  16208. build_old_libs=$enable_static
  16209. # What type of objects to build.
  16210. pic_mode=$pic_mode
  16211. # Whether or not to optimize for fast installation.
  16212. fast_install=$enable_fast_install
  16213. # Shared archive member basename,for filename based shared library versioning on AIX.
  16214. shared_archive_member_spec=$shared_archive_member_spec
  16215. # Shell to use when invoking shell scripts.
  16216. SHELL=$lt_SHELL
  16217. # An echo program that protects backslashes.
  16218. ECHO=$lt_ECHO
  16219. # The PATH separator for the build system.
  16220. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16221. # The host system.
  16222. host_alias=$host_alias
  16223. host=$host
  16224. host_os=$host_os
  16225. # The build system.
  16226. build_alias=$build_alias
  16227. build=$build
  16228. build_os=$build_os
  16229. # A sed program that does not truncate output.
  16230. SED=$lt_SED
  16231. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16232. Xsed="\$SED -e 1s/^X//"
  16233. # A grep program that handles long lines.
  16234. GREP=$lt_GREP
  16235. # An ERE matcher.
  16236. EGREP=$lt_EGREP
  16237. # A literal string matcher.
  16238. FGREP=$lt_FGREP
  16239. # A BSD- or MS-compatible name lister.
  16240. NM=$lt_NM
  16241. # Whether we need soft or hard links.
  16242. LN_S=$lt_LN_S
  16243. # What is the maximum length of a command?
  16244. max_cmd_len=$max_cmd_len
  16245. # Object file suffix (normally "o").
  16246. objext=$ac_objext
  16247. # Executable file suffix (normally "").
  16248. exeext=$exeext
  16249. # whether the shell understands "unset".
  16250. lt_unset=$lt_unset
  16251. # turn spaces into newlines.
  16252. SP2NL=$lt_lt_SP2NL
  16253. # turn newlines into spaces.
  16254. NL2SP=$lt_lt_NL2SP
  16255. # convert \$build file names to \$host format.
  16256. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16257. # convert \$build files to toolchain format.
  16258. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16259. # A file(cmd) program that detects file types.
  16260. FILECMD=$lt_FILECMD
  16261. # Method to check whether dependent libraries are shared objects.
  16262. deplibs_check_method=$lt_deplibs_check_method
  16263. # Command to use when deplibs_check_method = "file_magic".
  16264. file_magic_cmd=$lt_file_magic_cmd
  16265. # How to find potential files when deplibs_check_method = "file_magic".
  16266. file_magic_glob=$lt_file_magic_glob
  16267. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16268. want_nocaseglob=$lt_want_nocaseglob
  16269. # Command to associate shared and link libraries.
  16270. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16271. # The archiver.
  16272. AR=$lt_AR
  16273. # Flags to create an archive (by configure).
  16274. lt_ar_flags=$lt_ar_flags
  16275. # Flags to create an archive.
  16276. AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
  16277. # How to feed a file listing to the archiver.
  16278. archiver_list_spec=$lt_archiver_list_spec
  16279. # A symbol stripping program.
  16280. STRIP=$lt_STRIP
  16281. # Commands used to install an old-style archive.
  16282. RANLIB=$lt_RANLIB
  16283. old_postinstall_cmds=$lt_old_postinstall_cmds
  16284. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16285. # Whether to use a lock for old archive extraction.
  16286. lock_old_archive_extraction=$lock_old_archive_extraction
  16287. # A C compiler.
  16288. LTCC=$lt_CC
  16289. # LTCC compiler flags.
  16290. LTCFLAGS=$lt_CFLAGS
  16291. # Take the output of nm and produce a listing of raw symbols and C names.
  16292. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16293. # Transform the output of nm in a proper C declaration.
  16294. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16295. # Transform the output of nm into a list of symbols to manually relocate.
  16296. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  16297. # Transform the output of nm in a C name address pair.
  16298. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16299. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16300. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16301. # The name lister interface.
  16302. nm_interface=$lt_lt_cv_nm_interface
  16303. # Specify filename containing input files for \$NM.
  16304. nm_file_list_spec=$lt_nm_file_list_spec
  16305. # The root where to search for dependent libraries,and where our libraries should be installed.
  16306. lt_sysroot=$lt_sysroot
  16307. # Command to truncate a binary pipe.
  16308. lt_truncate_bin=$lt_lt_cv_truncate_bin
  16309. # The name of the directory that contains temporary libtool files.
  16310. objdir=$objdir
  16311. # Used to examine libraries when file_magic_cmd begins with "file".
  16312. MAGIC_CMD=$MAGIC_CMD
  16313. # Must we lock files when doing compilation?
  16314. need_locks=$lt_need_locks
  16315. # Manifest tool.
  16316. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16317. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16318. DSYMUTIL=$lt_DSYMUTIL
  16319. # Tool to change global to local symbols on Mac OS X.
  16320. NMEDIT=$lt_NMEDIT
  16321. # Tool to manipulate fat objects and archives on Mac OS X.
  16322. LIPO=$lt_LIPO
  16323. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16324. OTOOL=$lt_OTOOL
  16325. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16326. OTOOL64=$lt_OTOOL64
  16327. # Old archive suffix (normally "a").
  16328. libext=$libext
  16329. # Shared library suffix (normally ".so").
  16330. shrext_cmds=$lt_shrext_cmds
  16331. # The commands to extract the exported symbol list from a shared archive.
  16332. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16333. # Variables whose values should be saved in libtool wrapper scripts and
  16334. # restored at link time.
  16335. variables_saved_for_relink=$lt_variables_saved_for_relink
  16336. # Do we need the "lib" prefix for modules?
  16337. need_lib_prefix=$need_lib_prefix
  16338. # Do we need a version for libraries?
  16339. need_version=$need_version
  16340. # Library versioning type.
  16341. version_type=$version_type
  16342. # Shared library runtime path variable.
  16343. runpath_var=$runpath_var
  16344. # Shared library path variable.
  16345. shlibpath_var=$shlibpath_var
  16346. # Is shlibpath searched before the hard-coded library search path?
  16347. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16348. # Format of library name prefix.
  16349. libname_spec=$lt_libname_spec
  16350. # List of archive names. First name is the real one, the rest are links.
  16351. # The last name is the one that the linker finds with -lNAME
  16352. library_names_spec=$lt_library_names_spec
  16353. # The coded name of the library, if different from the real name.
  16354. soname_spec=$lt_soname_spec
  16355. # Permission mode override for installation of shared libraries.
  16356. install_override_mode=$lt_install_override_mode
  16357. # Command to use after installation of a shared archive.
  16358. postinstall_cmds=$lt_postinstall_cmds
  16359. # Command to use after uninstallation of a shared archive.
  16360. postuninstall_cmds=$lt_postuninstall_cmds
  16361. # Commands used to finish a libtool library installation in a directory.
  16362. finish_cmds=$lt_finish_cmds
  16363. # As "finish_cmds", except a single script fragment to be evaled but
  16364. # not shown.
  16365. finish_eval=$lt_finish_eval
  16366. # Whether we should hardcode library paths into libraries.
  16367. hardcode_into_libs=$hardcode_into_libs
  16368. # Compile-time system search path for libraries.
  16369. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16370. # Detected run-time system search path for libraries.
  16371. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  16372. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  16373. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  16374. # Whether dlopen is supported.
  16375. dlopen_support=$enable_dlopen
  16376. # Whether dlopen of programs is supported.
  16377. dlopen_self=$enable_dlopen_self
  16378. # Whether dlopen of statically linked programs is supported.
  16379. dlopen_self_static=$enable_dlopen_self_static
  16380. # Commands to strip libraries.
  16381. old_striplib=$lt_old_striplib
  16382. striplib=$lt_striplib
  16383. # The linker used to build libraries.
  16384. LD=$lt_LD
  16385. # How to create reloadable object files.
  16386. reload_flag=$lt_reload_flag
  16387. reload_cmds=$lt_reload_cmds
  16388. # Commands used to build an old-style archive.
  16389. old_archive_cmds=$lt_old_archive_cmds
  16390. # A language specific compiler.
  16391. CC=$lt_compiler
  16392. # Is the compiler the GNU compiler?
  16393. with_gcc=$GCC
  16394. # Compiler flag to turn off builtin functions.
  16395. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16396. # Additional compiler flags for building library objects.
  16397. pic_flag=$lt_lt_prog_compiler_pic
  16398. # How to pass a linker flag through the compiler.
  16399. wl=$lt_lt_prog_compiler_wl
  16400. # Compiler flag to prevent dynamic linking.
  16401. link_static_flag=$lt_lt_prog_compiler_static
  16402. # Does compiler simultaneously support -c and -o options?
  16403. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16404. # Whether or not to add -lc for building shared libraries.
  16405. build_libtool_need_lc=$archive_cmds_need_lc
  16406. # Whether or not to disallow shared libs when runtime libs are static.
  16407. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16408. # Compiler flag to allow reflexive dlopens.
  16409. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16410. # Compiler flag to generate shared objects directly from archives.
  16411. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16412. # Whether the compiler copes with passing no objects directly.
  16413. compiler_needs_object=$lt_compiler_needs_object
  16414. # Create an old-style archive from a shared archive.
  16415. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16416. # Create a temporary old-style archive to link instead of a shared archive.
  16417. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16418. # Commands used to build a shared archive.
  16419. archive_cmds=$lt_archive_cmds
  16420. archive_expsym_cmds=$lt_archive_expsym_cmds
  16421. # Commands used to build a loadable module if different from building
  16422. # a shared archive.
  16423. module_cmds=$lt_module_cmds
  16424. module_expsym_cmds=$lt_module_expsym_cmds
  16425. # Whether we are building with GNU ld or not.
  16426. with_gnu_ld=$lt_with_gnu_ld
  16427. # Flag that allows shared libraries with undefined symbols to be built.
  16428. allow_undefined_flag=$lt_allow_undefined_flag
  16429. # Flag that enforces no undefined symbols.
  16430. no_undefined_flag=$lt_no_undefined_flag
  16431. # Flag to hardcode \$libdir into a binary during linking.
  16432. # This must work even if \$libdir does not exist
  16433. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16434. # Whether we need a single "-rpath" flag with a separated argument.
  16435. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16436. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16437. # DIR into the resulting binary.
  16438. hardcode_direct=$hardcode_direct
  16439. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  16440. # DIR into the resulting binary and the resulting library dependency is
  16441. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  16442. # library is relocated.
  16443. hardcode_direct_absolute=$hardcode_direct_absolute
  16444. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16445. # into the resulting binary.
  16446. hardcode_minus_L=$hardcode_minus_L
  16447. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16448. # into the resulting binary.
  16449. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16450. # Set to "yes" if building a shared library automatically hardcodes DIR
  16451. # into the library and all subsequent libraries and executables linked
  16452. # against it.
  16453. hardcode_automatic=$hardcode_automatic
  16454. # Set to yes if linker adds runtime paths of dependent libraries
  16455. # to runtime path list.
  16456. inherit_rpath=$inherit_rpath
  16457. # Whether libtool must link a program against all its dependency libraries.
  16458. link_all_deplibs=$link_all_deplibs
  16459. # Set to "yes" if exported symbols are required.
  16460. always_export_symbols=$always_export_symbols
  16461. # The commands to list exported symbols.
  16462. export_symbols_cmds=$lt_export_symbols_cmds
  16463. # Symbols that should not be listed in the preloaded symbols.
  16464. exclude_expsyms=$lt_exclude_expsyms
  16465. # Symbols that must always be exported.
  16466. include_expsyms=$lt_include_expsyms
  16467. # Commands necessary for linking programs (against libraries) with templates.
  16468. prelink_cmds=$lt_prelink_cmds
  16469. # Commands necessary for finishing linking programs.
  16470. postlink_cmds=$lt_postlink_cmds
  16471. # Specify filename containing input files.
  16472. file_list_spec=$lt_file_list_spec
  16473. # How to hardcode a shared library path into an executable.
  16474. hardcode_action=$hardcode_action
  16475. # ### END LIBTOOL CONFIG
  16476. _LT_EOF
  16477. cat <<'_LT_EOF' >> "$cfgfile"
  16478. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  16479. # func_munge_path_list VARIABLE PATH
  16480. # -----------------------------------
  16481. # VARIABLE is name of variable containing _space_ separated list of
  16482. # directories to be munged by the contents of PATH, which is string
  16483. # having a format:
  16484. # "DIR[:DIR]:"
  16485. # string "DIR[ DIR]" will be prepended to VARIABLE
  16486. # ":DIR[:DIR]"
  16487. # string "DIR[ DIR]" will be appended to VARIABLE
  16488. # "DIRP[:DIRP]::[DIRA:]DIRA"
  16489. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  16490. # "DIRA[ DIRA]" will be appended to VARIABLE
  16491. # "DIR[:DIR]"
  16492. # VARIABLE will be replaced by "DIR[ DIR]"
  16493. func_munge_path_list ()
  16494. {
  16495. case x$2 in
  16496. x)
  16497. ;;
  16498. *:)
  16499. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  16500. ;;
  16501. x:*)
  16502. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  16503. ;;
  16504. *::*)
  16505. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  16506. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  16507. ;;
  16508. *)
  16509. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  16510. ;;
  16511. esac
  16512. }
  16513. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  16514. func_cc_basename ()
  16515. {
  16516. for cc_temp in $*""; do
  16517. case $cc_temp in
  16518. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  16519. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  16520. \-*) ;;
  16521. *) break;;
  16522. esac
  16523. done
  16524. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  16525. }
  16526. # ### END FUNCTIONS SHARED WITH CONFIGURE
  16527. _LT_EOF
  16528. case $host_os in
  16529. aix3*)
  16530. cat <<\_LT_EOF >> "$cfgfile"
  16531. # AIX sometimes has problems with the GCC collect2 program. For some
  16532. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16533. # vanish in a puff of smoke.
  16534. if test set != "${COLLECT_NAMES+set}"; then
  16535. COLLECT_NAMES=
  16536. export COLLECT_NAMES
  16537. fi
  16538. _LT_EOF
  16539. ;;
  16540. esac
  16541. ltmain=$ac_aux_dir/ltmain.sh
  16542. # We use sed instead of cat because bash on DJGPP gets confused if
  16543. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16544. # text mode, it properly converts lines to CR/LF. This bash problem
  16545. # is reportedly fixed, but why not run on old versions too?
  16546. $SED '$q' "$ltmain" >> "$cfgfile" \
  16547. || (rm -f "$cfgfile"; exit 1)
  16548. mv -f "$cfgfile" "$ofile" ||
  16549. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16550. chmod +x "$ofile"
  16551. ;;
  16552. "script-chmod":C) chmod a+x pcre2-config ;;
  16553. "delete-old-chartables":C) rm -f pcre2_chartables.c ;;
  16554. esac
  16555. done # for ac_tag
  16556. as_fn_exit 0
  16557. _ACEOF
  16558. ac_clean_files=$ac_clean_files_save
  16559. test $ac_write_fail = 0 ||
  16560. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16561. # configure is writing to config.log, and then calls config.status.
  16562. # config.status does its own redirection, appending to config.log.
  16563. # Unfortunately, on DOS this fails, as config.log is still kept open
  16564. # by configure, so config.status won't be able to write to it; its
  16565. # output is simply discarded. So we exec the FD to /dev/null,
  16566. # effectively closing config.log, so it can be properly (re)opened and
  16567. # appended to by config.status. When coming back to configure, we
  16568. # need to make the FD available again.
  16569. if test "$no_create" != yes; then
  16570. ac_cs_success=:
  16571. ac_config_status_args=
  16572. test "$silent" = yes &&
  16573. ac_config_status_args="$ac_config_status_args --quiet"
  16574. exec 5>/dev/null
  16575. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16576. exec 5>>config.log
  16577. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16578. # would make configure fail if this is the last instruction.
  16579. $ac_cs_success || as_fn_exit 1
  16580. fi
  16581. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16583. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16584. fi
  16585. # --disable-stack-for-recursion is obsolete and has no effect.
  16586. if test "$enable_stack_for_recursion" = "no"; then
  16587. cat <<EOF
  16588. WARNING: --disable-stack-for-recursion is obsolete and has no effect.
  16589. EOF
  16590. fi
  16591. # Print out a nice little message after configure is run displaying the
  16592. # chosen options.
  16593. ebcdic_nl_code=n/a
  16594. if test "$enable_ebcdic_nl25" = "yes"; then
  16595. ebcdic_nl_code=0x25
  16596. elif test "$enable_ebcdic" = "yes"; then
  16597. ebcdic_nl_code=0x15
  16598. fi
  16599. cat <<EOF
  16600. $PACKAGE-$VERSION configuration summary:
  16601. Install prefix ..................... : ${prefix}
  16602. C preprocessor ..................... : ${CPP}
  16603. C compiler ......................... : ${CC}
  16604. Linker ............................. : ${LD}
  16605. C preprocessor flags ............... : ${CPPFLAGS}
  16606. C compiler flags ................... : ${CFLAGS} ${VISIBILITY_CFLAGS}
  16607. Linker flags ....................... : ${LDFLAGS}
  16608. Extra libraries .................... : ${LIBS}
  16609. Build 8-bit pcre2 library .......... : ${enable_pcre2_8}
  16610. Build 16-bit pcre2 library ......... : ${enable_pcre2_16}
  16611. Build 32-bit pcre2 library ......... : ${enable_pcre2_32}
  16612. Include debugging code ............. : ${enable_debug}
  16613. Enable JIT compiling support ....... : ${enable_jit}
  16614. Use SELinux allocator in JIT ....... : ${enable_jit_sealloc}
  16615. Enable Unicode support ............. : ${enable_unicode}
  16616. Newline char/sequence .............. : ${enable_newline}
  16617. \R matches only ANYCRLF ............ : ${enable_bsr_anycrlf}
  16618. \C is disabled ..................... : ${enable_never_backslash_C}
  16619. EBCDIC coding ...................... : ${enable_ebcdic}
  16620. EBCDIC code for NL ................. : ${ebcdic_nl_code}
  16621. Rebuild char tables ................ : ${enable_rebuild_chartables}
  16622. Internal link size ................. : ${with_link_size}
  16623. Maximum variable lookbehind ........ : ${with_max_varlookbehind}
  16624. Nested parentheses limit ........... : ${with_parens_nest_limit}
  16625. Heap limit ......................... : ${with_heap_limit} kibibytes
  16626. Match limit ........................ : ${with_match_limit}
  16627. Match depth limit .................. : ${with_match_limit_depth}
  16628. Build shared libs .................. : ${enable_shared}
  16629. Build static libs .................. : ${enable_static}
  16630. Use JIT in pcre2grep ............... : ${enable_pcre2grep_jit}
  16631. Enable callouts in pcre2grep ....... : ${enable_pcre2grep_callout}
  16632. Enable fork in pcre2grep callouts .. : ${enable_pcre2grep_callout_fork}
  16633. Initial buffer size for pcre2grep .. : ${with_pcre2grep_bufsize}
  16634. Maximum buffer size for pcre2grep .. : ${with_pcre2grep_max_bufsize}
  16635. Link pcre2grep with libz ........... : ${enable_pcre2grep_libz}
  16636. Link pcre2grep with libbz2 ......... : ${enable_pcre2grep_libbz2}
  16637. Link pcre2test with libedit ........ : ${enable_pcre2test_libedit}
  16638. Link pcre2test with libreadline .... : ${enable_pcre2test_libreadline}
  16639. Valgrind support ................... : ${enable_valgrind}
  16640. Code coverage ...................... : ${enable_coverage}
  16641. Fuzzer support ..................... : ${enable_fuzz_support}
  16642. Differential fuzzer support ........ : ${enable_diff_fuzz_support}
  16643. Use %zu and %td .................... : ${enable_percent_zt}
  16644. EOF