configure 724 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for libarchive 3.7.0.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  169. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  170. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  171. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  172. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  173. PATH=/empty FPATH=/empty; export PATH FPATH
  174. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  175. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  176. test \$(( 1 + 1 )) = 2 || exit 1"
  177. if (eval "$as_required") 2>/dev/null
  178. then :
  179. as_have_required=yes
  180. else $as_nop
  181. as_have_required=no
  182. fi
  183. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  184. then :
  185. else $as_nop
  186. 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 $as_nop
  219. 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. fi
  225. if test "x$CONFIG_SHELL" != x
  226. then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno
  248. then :
  249. printf "%s\n" "$0: This script requires a shell more modern than all"
  250. printf "%s\n" "$0: the shells that I found on your system."
  251. if test ${ZSH_VERSION+y} ; then
  252. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  253. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  254. else
  255. printf "%s\n" "$0: Please tell [email protected] and
  256. $0: [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. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_nop
  298. # ---------
  299. # Do nothing but, unlike ":", preserve the value of $?.
  300. as_fn_nop ()
  301. {
  302. return $?
  303. }
  304. as_nop=as_fn_nop
  305. # as_fn_mkdir_p
  306. # -------------
  307. # Create "$as_dir" as a directory, including parents if necessary.
  308. as_fn_mkdir_p ()
  309. {
  310. case $as_dir in #(
  311. -*) as_dir=./$as_dir;;
  312. esac
  313. test -d "$as_dir" || eval $as_mkdir_p || {
  314. as_dirs=
  315. while :; do
  316. case $as_dir in #(
  317. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  318. *) as_qdir=$as_dir;;
  319. esac
  320. as_dirs="'$as_qdir' $as_dirs"
  321. as_dir=`$as_dirname -- "$as_dir" ||
  322. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  323. X"$as_dir" : 'X\(//\)[^/]' \| \
  324. X"$as_dir" : 'X\(//\)$' \| \
  325. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  326. printf "%s\n" X"$as_dir" |
  327. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\/\)[^/].*/{
  332. s//\1/
  333. q
  334. }
  335. /^X\(\/\/\)$/{
  336. s//\1/
  337. q
  338. }
  339. /^X\(\/\).*/{
  340. s//\1/
  341. q
  342. }
  343. s/.*/./; q'`
  344. test -d "$as_dir" && break
  345. done
  346. test -z "$as_dirs" || eval "mkdir $as_dirs"
  347. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  348. } # as_fn_mkdir_p
  349. # as_fn_executable_p FILE
  350. # -----------------------
  351. # Test if FILE is an executable regular file.
  352. as_fn_executable_p ()
  353. {
  354. test -f "$1" && test -x "$1"
  355. } # as_fn_executable_p
  356. # as_fn_append VAR VALUE
  357. # ----------------------
  358. # Append the text in VALUE to the end of the definition contained in VAR. Take
  359. # advantage of any shell optimizations that allow amortized linear growth over
  360. # repeated appends, instead of the typical quadratic growth present in naive
  361. # implementations.
  362. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  363. then :
  364. eval 'as_fn_append ()
  365. {
  366. eval $1+=\$2
  367. }'
  368. else $as_nop
  369. as_fn_append ()
  370. {
  371. eval $1=\$$1\$2
  372. }
  373. fi # as_fn_append
  374. # as_fn_arith ARG...
  375. # ------------------
  376. # Perform arithmetic evaluation on the ARGs, and store the result in the
  377. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  378. # must be portable across $(()) and expr.
  379. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  380. then :
  381. eval 'as_fn_arith ()
  382. {
  383. as_val=$(( $* ))
  384. }'
  385. else $as_nop
  386. as_fn_arith ()
  387. {
  388. as_val=`expr "$@" || test $? -eq 1`
  389. }
  390. fi # as_fn_arith
  391. # as_fn_nop
  392. # ---------
  393. # Do nothing but, unlike ":", preserve the value of $?.
  394. as_fn_nop ()
  395. {
  396. return $?
  397. }
  398. as_nop=as_fn_nop
  399. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  400. # ----------------------------------------
  401. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  402. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  403. # script with STATUS, using 1 if that was 0.
  404. as_fn_error ()
  405. {
  406. as_status=$1; test $as_status -eq 0 && as_status=1
  407. if test "$4"; then
  408. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  410. fi
  411. printf "%s\n" "$as_me: error: $2" >&2
  412. as_fn_exit $as_status
  413. } # as_fn_error
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  421. as_basename=basename
  422. else
  423. as_basename=false
  424. fi
  425. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  426. as_dirname=dirname
  427. else
  428. as_dirname=false
  429. fi
  430. as_me=`$as_basename -- "$0" ||
  431. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  432. X"$0" : 'X\(//\)$' \| \
  433. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  434. printf "%s\n" X/"$0" |
  435. sed '/^.*\/\([^/][^/]*\)\/*$/{
  436. s//\1/
  437. q
  438. }
  439. /^X\/\(\/\/\)$/{
  440. s//\1/
  441. q
  442. }
  443. /^X\/\(\/\).*/{
  444. s//\1/
  445. q
  446. }
  447. s/.*/./; q'`
  448. # Avoid depending upon Character Ranges.
  449. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  450. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  451. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  452. as_cr_digits='0123456789'
  453. as_cr_alnum=$as_cr_Letters$as_cr_digits
  454. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  455. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  456. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  457. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  458. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  459. sed -n '
  460. p
  461. /[$]LINENO/=
  462. ' <$as_myself |
  463. sed '
  464. s/[$]LINENO.*/&-/
  465. t lineno
  466. b
  467. :lineno
  468. N
  469. :loop
  470. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  471. t loop
  472. s/-\n.*//
  473. ' >$as_me.lineno &&
  474. chmod +x "$as_me.lineno" ||
  475. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  476. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  477. # already done that, so ensure we don't try to do so again and fall
  478. # in an infinite loop. This has already happened in practice.
  479. _as_can_reexec=no; export _as_can_reexec
  480. # Don't try to exec as it changes $[0], causing all sort of problems
  481. # (the dirname of $[0] is not the place where we might find the
  482. # original and so on. Autoconf is especially sensitive to this).
  483. . "./$as_me.lineno"
  484. # Exit status is that of the last command.
  485. exit
  486. }
  487. # Determine whether it's possible to make 'echo' print without a newline.
  488. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  489. # for compatibility with existing Makefiles.
  490. ECHO_C= ECHO_N= ECHO_T=
  491. case `echo -n x` in #(((((
  492. -n*)
  493. case `echo 'xy\c'` in
  494. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  495. xy) ECHO_C='\c';;
  496. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  497. ECHO_T=' ';;
  498. esac;;
  499. *)
  500. ECHO_N='-n';;
  501. esac
  502. # For backward compatibility with old third-party macros, we provide
  503. # the shell variables $as_echo and $as_echo_n. New code should use
  504. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  505. as_echo='printf %s\n'
  506. as_echo_n='printf %s'
  507. rm -f conf$$ conf$$.exe conf$$.file
  508. if test -d conf$$.dir; then
  509. rm -f conf$$.dir/conf$$.file
  510. else
  511. rm -f conf$$.dir
  512. mkdir conf$$.dir 2>/dev/null
  513. fi
  514. if (echo >conf$$.file) 2>/dev/null; then
  515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s='ln -s'
  517. # ... but there are two gotchas:
  518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  520. # In both cases, we have to default to `cp -pR'.
  521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  522. as_ln_s='cp -pR'
  523. elif ln conf$$.file conf$$ 2>/dev/null; then
  524. as_ln_s=ln
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. else
  529. as_ln_s='cp -pR'
  530. fi
  531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  532. rmdir conf$$.dir 2>/dev/null
  533. if mkdir -p . 2>/dev/null; then
  534. as_mkdir_p='mkdir -p "$as_dir"'
  535. else
  536. test -d ./-p && rmdir ./-p
  537. as_mkdir_p=false
  538. fi
  539. as_test_x='test -x'
  540. as_executable_p=as_fn_executable_p
  541. # Sed expression to map a string onto a valid CPP name.
  542. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  543. # Sed expression to map a string onto a valid variable name.
  544. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  545. SHELL=${CONFIG_SHELL-/bin/sh}
  546. test -n "$DJDIR" || exec 7<&0 </dev/null
  547. exec 6>&1
  548. # Name of the host.
  549. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  550. # so uname gets run too.
  551. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  552. #
  553. # Initializations.
  554. #
  555. ac_default_prefix=/usr/local
  556. ac_clean_files=
  557. ac_config_libobj_dir=.
  558. LIBOBJS=
  559. cross_compiling=no
  560. subdirs=
  561. MFLAGS=
  562. MAKEFLAGS=
  563. # Identity of this package.
  564. PACKAGE_NAME='libarchive'
  565. PACKAGE_TARNAME='libarchive'
  566. PACKAGE_VERSION='3.7.0'
  567. PACKAGE_STRING='libarchive 3.7.0'
  568. PACKAGE_BUGREPORT='[email protected]'
  569. PACKAGE_URL=''
  570. ac_unique_file="libarchive"
  571. # Factoring default headers for most tests.
  572. ac_includes_default="\
  573. #include <stddef.h>
  574. #ifdef HAVE_STDIO_H
  575. # include <stdio.h>
  576. #endif
  577. #ifdef HAVE_STDLIB_H
  578. # include <stdlib.h>
  579. #endif
  580. #ifdef HAVE_STRING_H
  581. # include <string.h>
  582. #endif
  583. #ifdef HAVE_INTTYPES_H
  584. # include <inttypes.h>
  585. #endif
  586. #ifdef HAVE_STDINT_H
  587. # include <stdint.h>
  588. #endif
  589. #ifdef HAVE_STRINGS_H
  590. # include <strings.h>
  591. #endif
  592. #ifdef HAVE_SYS_TYPES_H
  593. # include <sys/types.h>
  594. #endif
  595. #ifdef HAVE_SYS_STAT_H
  596. # include <sys/stat.h>
  597. #endif
  598. #ifdef HAVE_UNISTD_H
  599. # include <unistd.h>
  600. #endif"
  601. ac_header_c_list=
  602. ac_func_c_list=
  603. ac_subst_vars='am__EXEEXT_FALSE
  604. am__EXEEXT_TRUE
  605. LTLIBOBJS
  606. LIBSREQUIRED
  607. INC_FREEBSD_ACL_FALSE
  608. INC_FREEBSD_ACL_TRUE
  609. INC_DARWIN_ACL_FALSE
  610. INC_DARWIN_ACL_TRUE
  611. INC_SUNOS_ACL_FALSE
  612. INC_SUNOS_ACL_TRUE
  613. INC_LINUX_ACL_FALSE
  614. INC_LINUX_ACL_TRUE
  615. LIBOBJS
  616. GC_SECTIONS
  617. LIBXML2_PC_LIBS
  618. LIBXML2_PC_CFLAGS
  619. PKG_CONFIG_LIBDIR
  620. PKG_CONFIG_PATH
  621. PKG_CONFIG
  622. LTLIBICONV
  623. LIBICONV
  624. INC_BLAKE2_FALSE
  625. INC_BLAKE2_TRUE
  626. STATIC_BSDUNZIP_FALSE
  627. STATIC_BSDUNZIP_TRUE
  628. BUILD_BSDUNZIP_FALSE
  629. BUILD_BSDUNZIP_TRUE
  630. STATIC_BSDCPIO_FALSE
  631. STATIC_BSDCPIO_TRUE
  632. BUILD_BSDCPIO_FALSE
  633. BUILD_BSDCPIO_TRUE
  634. STATIC_BSDCAT_FALSE
  635. STATIC_BSDCAT_TRUE
  636. BUILD_BSDCAT_FALSE
  637. BUILD_BSDCAT_TRUE
  638. STATIC_BSDTAR_FALSE
  639. STATIC_BSDTAR_TRUE
  640. BUILD_BSDTAR_FALSE
  641. BUILD_BSDTAR_TRUE
  642. LT_SYS_LIBRARY_PATH
  643. OTOOL64
  644. OTOOL
  645. LIPO
  646. NMEDIT
  647. DSYMUTIL
  648. MANIFEST_TOOL
  649. RANLIB
  650. ac_ct_AR
  651. AR
  652. LN_S
  653. NM
  654. ac_ct_DUMPBIN
  655. DUMPBIN
  656. LD
  657. FGREP
  658. EGREP
  659. GREP
  660. SED
  661. LIBTOOL
  662. OBJDUMP
  663. DLLTOOL
  664. AS
  665. CPP
  666. am__fastdepCC_FALSE
  667. am__fastdepCC_TRUE
  668. CCDEPMODE
  669. am__nodep
  670. AMDEPBACKSLASH
  671. AMDEP_FALSE
  672. AMDEP_TRUE
  673. am__include
  674. DEPDIR
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. PLATFORMCPPFLAGS
  683. INC_CYGWIN_FILES_FALSE
  684. INC_CYGWIN_FILES_TRUE
  685. INC_WINDOWS_FILES_FALSE
  686. INC_WINDOWS_FILES_TRUE
  687. host_os
  688. host_vendor
  689. host_cpu
  690. host
  691. build_os
  692. build_vendor
  693. build_cpu
  694. build
  695. LIBARCHIVE_VERSION_NUMBER
  696. LIBARCHIVE_VERSION_STRING
  697. BSDCAT_VERSION_STRING
  698. BSDTAR_VERSION_STRING
  699. BSDCPIO_VERSION_STRING
  700. ARCHIVE_LIBTOOL_VERSION
  701. MAINT
  702. MAINTAINER_MODE_FALSE
  703. MAINTAINER_MODE_TRUE
  704. AM_BACKSLASH
  705. AM_DEFAULT_VERBOSITY
  706. AM_DEFAULT_V
  707. AM_V
  708. CSCOPE
  709. ETAGS
  710. CTAGS
  711. am__untar
  712. am__tar
  713. AMTAR
  714. am__leading_dot
  715. SET_MAKE
  716. AWK
  717. mkdir_p
  718. MKDIR_P
  719. INSTALL_STRIP_PROGRAM
  720. STRIP
  721. install_sh
  722. MAKEINFO
  723. AUTOHEADER
  724. AUTOMAKE
  725. AUTOCONF
  726. ACLOCAL
  727. VERSION
  728. PACKAGE
  729. CYGPATH_W
  730. am__isrc
  731. INSTALL_DATA
  732. INSTALL_SCRIPT
  733. INSTALL_PROGRAM
  734. target_alias
  735. host_alias
  736. build_alias
  737. LIBS
  738. ECHO_T
  739. ECHO_N
  740. ECHO_C
  741. DEFS
  742. mandir
  743. localedir
  744. libdir
  745. psdir
  746. pdfdir
  747. dvidir
  748. htmldir
  749. infodir
  750. docdir
  751. oldincludedir
  752. includedir
  753. runstatedir
  754. localstatedir
  755. sharedstatedir
  756. sysconfdir
  757. datadir
  758. datarootdir
  759. libexecdir
  760. sbindir
  761. bindir
  762. program_transform_name
  763. prefix
  764. exec_prefix
  765. PACKAGE_URL
  766. PACKAGE_BUGREPORT
  767. PACKAGE_STRING
  768. PACKAGE_VERSION
  769. PACKAGE_TARNAME
  770. PACKAGE_NAME
  771. PATH_SEPARATOR
  772. SHELL
  773. am__quote'
  774. ac_subst_files=''
  775. ac_user_opts='
  776. enable_option_checking
  777. enable_silent_rules
  778. enable_maintainer_mode
  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_bsdtar
  789. enable_bsdcat
  790. enable_bsdcpio
  791. enable_bsdunzip
  792. with_zlib
  793. with_bz2lib
  794. with_libb2
  795. with_iconv
  796. enable_rpath
  797. with_libiconv_prefix
  798. with_lz4
  799. with_zstd
  800. with_lzma
  801. with_lzo2
  802. with_cng
  803. with_mbedtls
  804. with_nettle
  805. with_openssl
  806. with_xml2
  807. with_expat
  808. enable_posix_regex_lib
  809. enable_xattr
  810. enable_acl
  811. enable_largefile
  812. '
  813. ac_precious_vars='build_alias
  814. host_alias
  815. target_alias
  816. CC
  817. CFLAGS
  818. LDFLAGS
  819. LIBS
  820. CPPFLAGS
  821. CPP
  822. LT_SYS_LIBRARY_PATH
  823. PKG_CONFIG
  824. PKG_CONFIG_PATH
  825. PKG_CONFIG_LIBDIR
  826. LIBXML2_PC_CFLAGS
  827. LIBXML2_PC_LIBS'
  828. # Initialize some variables set by options.
  829. ac_init_help=
  830. ac_init_version=false
  831. ac_unrecognized_opts=
  832. ac_unrecognized_sep=
  833. # The variables have the same names as the options, with
  834. # dashes changed to underlines.
  835. cache_file=/dev/null
  836. exec_prefix=NONE
  837. no_create=
  838. no_recursion=
  839. prefix=NONE
  840. program_prefix=NONE
  841. program_suffix=NONE
  842. program_transform_name=s,x,x,
  843. silent=
  844. site=
  845. srcdir=
  846. verbose=
  847. x_includes=NONE
  848. x_libraries=NONE
  849. # Installation directory options.
  850. # These are left unexpanded so users can "make install exec_prefix=/foo"
  851. # and all the variables that are supposed to be based on exec_prefix
  852. # by default will actually change.
  853. # Use braces instead of parens because sh, perl, etc. also accept them.
  854. # (The list follows the same order as the GNU Coding Standards.)
  855. bindir='${exec_prefix}/bin'
  856. sbindir='${exec_prefix}/sbin'
  857. libexecdir='${exec_prefix}/libexec'
  858. datarootdir='${prefix}/share'
  859. datadir='${datarootdir}'
  860. sysconfdir='${prefix}/etc'
  861. sharedstatedir='${prefix}/com'
  862. localstatedir='${prefix}/var'
  863. runstatedir='${localstatedir}/run'
  864. includedir='${prefix}/include'
  865. oldincludedir='/usr/include'
  866. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  867. infodir='${datarootdir}/info'
  868. htmldir='${docdir}'
  869. dvidir='${docdir}'
  870. pdfdir='${docdir}'
  871. psdir='${docdir}'
  872. libdir='${exec_prefix}/lib'
  873. localedir='${datarootdir}/locale'
  874. mandir='${datarootdir}/man'
  875. ac_prev=
  876. ac_dashdash=
  877. for ac_option
  878. do
  879. # If the previous option needs an argument, assign it.
  880. if test -n "$ac_prev"; then
  881. eval $ac_prev=\$ac_option
  882. ac_prev=
  883. continue
  884. fi
  885. case $ac_option in
  886. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  887. *=) ac_optarg= ;;
  888. *) ac_optarg=yes ;;
  889. esac
  890. case $ac_dashdash$ac_option in
  891. --)
  892. ac_dashdash=yes ;;
  893. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  894. ac_prev=bindir ;;
  895. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  896. bindir=$ac_optarg ;;
  897. -build | --build | --buil | --bui | --bu)
  898. ac_prev=build_alias ;;
  899. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  900. build_alias=$ac_optarg ;;
  901. -cache-file | --cache-file | --cache-fil | --cache-fi \
  902. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  903. ac_prev=cache_file ;;
  904. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  905. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  906. cache_file=$ac_optarg ;;
  907. --config-cache | -C)
  908. cache_file=config.cache ;;
  909. -datadir | --datadir | --datadi | --datad)
  910. ac_prev=datadir ;;
  911. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  912. datadir=$ac_optarg ;;
  913. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  914. | --dataroo | --dataro | --datar)
  915. ac_prev=datarootdir ;;
  916. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  917. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  918. datarootdir=$ac_optarg ;;
  919. -disable-* | --disable-*)
  920. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  921. # Reject names that are not valid shell variable names.
  922. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  923. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  924. ac_useropt_orig=$ac_useropt
  925. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  926. case $ac_user_opts in
  927. *"
  928. "enable_$ac_useropt"
  929. "*) ;;
  930. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  931. ac_unrecognized_sep=', ';;
  932. esac
  933. eval enable_$ac_useropt=no ;;
  934. -docdir | --docdir | --docdi | --doc | --do)
  935. ac_prev=docdir ;;
  936. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  937. docdir=$ac_optarg ;;
  938. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  939. ac_prev=dvidir ;;
  940. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  941. dvidir=$ac_optarg ;;
  942. -enable-* | --enable-*)
  943. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  944. # Reject names that are not valid shell variable names.
  945. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  946. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=\$ac_optarg ;;
  957. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  958. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  959. | --exec | --exe | --ex)
  960. ac_prev=exec_prefix ;;
  961. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  962. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  963. | --exec=* | --exe=* | --ex=*)
  964. exec_prefix=$ac_optarg ;;
  965. -gas | --gas | --ga | --g)
  966. # Obsolete; use --with-gas.
  967. with_gas=yes ;;
  968. -help | --help | --hel | --he | -h)
  969. ac_init_help=long ;;
  970. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  971. ac_init_help=recursive ;;
  972. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  973. ac_init_help=short ;;
  974. -host | --host | --hos | --ho)
  975. ac_prev=host_alias ;;
  976. -host=* | --host=* | --hos=* | --ho=*)
  977. host_alias=$ac_optarg ;;
  978. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  979. ac_prev=htmldir ;;
  980. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  981. | --ht=*)
  982. htmldir=$ac_optarg ;;
  983. -includedir | --includedir | --includedi | --included | --include \
  984. | --includ | --inclu | --incl | --inc)
  985. ac_prev=includedir ;;
  986. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  987. | --includ=* | --inclu=* | --incl=* | --inc=*)
  988. includedir=$ac_optarg ;;
  989. -infodir | --infodir | --infodi | --infod | --info | --inf)
  990. ac_prev=infodir ;;
  991. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  992. infodir=$ac_optarg ;;
  993. -libdir | --libdir | --libdi | --libd)
  994. ac_prev=libdir ;;
  995. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  996. libdir=$ac_optarg ;;
  997. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  998. | --libexe | --libex | --libe)
  999. ac_prev=libexecdir ;;
  1000. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1001. | --libexe=* | --libex=* | --libe=*)
  1002. libexecdir=$ac_optarg ;;
  1003. -localedir | --localedir | --localedi | --localed | --locale)
  1004. ac_prev=localedir ;;
  1005. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1006. localedir=$ac_optarg ;;
  1007. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1008. | --localstate | --localstat | --localsta | --localst | --locals)
  1009. ac_prev=localstatedir ;;
  1010. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1011. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1012. localstatedir=$ac_optarg ;;
  1013. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1014. ac_prev=mandir ;;
  1015. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1016. mandir=$ac_optarg ;;
  1017. -nfp | --nfp | --nf)
  1018. # Obsolete; use --without-fp.
  1019. with_fp=no ;;
  1020. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1021. | --no-cr | --no-c | -n)
  1022. no_create=yes ;;
  1023. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1024. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1025. no_recursion=yes ;;
  1026. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1027. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1028. | --oldin | --oldi | --old | --ol | --o)
  1029. ac_prev=oldincludedir ;;
  1030. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1031. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1032. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1033. oldincludedir=$ac_optarg ;;
  1034. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1035. ac_prev=prefix ;;
  1036. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1037. prefix=$ac_optarg ;;
  1038. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1039. | --program-pre | --program-pr | --program-p)
  1040. ac_prev=program_prefix ;;
  1041. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1042. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1043. program_prefix=$ac_optarg ;;
  1044. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1045. | --program-suf | --program-su | --program-s)
  1046. ac_prev=program_suffix ;;
  1047. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1048. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1049. program_suffix=$ac_optarg ;;
  1050. -program-transform-name | --program-transform-name \
  1051. | --program-transform-nam | --program-transform-na \
  1052. | --program-transform-n | --program-transform- \
  1053. | --program-transform | --program-transfor \
  1054. | --program-transfo | --program-transf \
  1055. | --program-trans | --program-tran \
  1056. | --progr-tra | --program-tr | --program-t)
  1057. ac_prev=program_transform_name ;;
  1058. -program-transform-name=* | --program-transform-name=* \
  1059. | --program-transform-nam=* | --program-transform-na=* \
  1060. | --program-transform-n=* | --program-transform-=* \
  1061. | --program-transform=* | --program-transfor=* \
  1062. | --program-transfo=* | --program-transf=* \
  1063. | --program-trans=* | --program-tran=* \
  1064. | --progr-tra=* | --program-tr=* | --program-t=*)
  1065. program_transform_name=$ac_optarg ;;
  1066. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1067. ac_prev=pdfdir ;;
  1068. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1069. pdfdir=$ac_optarg ;;
  1070. -psdir | --psdir | --psdi | --psd | --ps)
  1071. ac_prev=psdir ;;
  1072. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1073. psdir=$ac_optarg ;;
  1074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1075. | -silent | --silent | --silen | --sile | --sil)
  1076. silent=yes ;;
  1077. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1078. | --runstate | --runstat | --runsta | --runst | --runs \
  1079. | --run | --ru | --r)
  1080. ac_prev=runstatedir ;;
  1081. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1082. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1083. | --run=* | --ru=* | --r=*)
  1084. runstatedir=$ac_optarg ;;
  1085. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1086. ac_prev=sbindir ;;
  1087. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1088. | --sbi=* | --sb=*)
  1089. sbindir=$ac_optarg ;;
  1090. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1091. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1092. | --sharedst | --shareds | --shared | --share | --shar \
  1093. | --sha | --sh)
  1094. ac_prev=sharedstatedir ;;
  1095. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1096. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1097. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1098. | --sha=* | --sh=*)
  1099. sharedstatedir=$ac_optarg ;;
  1100. -site | --site | --sit)
  1101. ac_prev=site ;;
  1102. -site=* | --site=* | --sit=*)
  1103. site=$ac_optarg ;;
  1104. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1105. ac_prev=srcdir ;;
  1106. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1107. srcdir=$ac_optarg ;;
  1108. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1109. | --syscon | --sysco | --sysc | --sys | --sy)
  1110. ac_prev=sysconfdir ;;
  1111. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1112. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1113. sysconfdir=$ac_optarg ;;
  1114. -target | --target | --targe | --targ | --tar | --ta | --t)
  1115. ac_prev=target_alias ;;
  1116. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1117. target_alias=$ac_optarg ;;
  1118. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1119. verbose=yes ;;
  1120. -version | --version | --versio | --versi | --vers | -V)
  1121. ac_init_version=: ;;
  1122. -with-* | --with-*)
  1123. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1124. # Reject names that are not valid shell variable names.
  1125. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1126. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1127. ac_useropt_orig=$ac_useropt
  1128. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1129. case $ac_user_opts in
  1130. *"
  1131. "with_$ac_useropt"
  1132. "*) ;;
  1133. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1134. ac_unrecognized_sep=', ';;
  1135. esac
  1136. eval with_$ac_useropt=\$ac_optarg ;;
  1137. -without-* | --without-*)
  1138. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1139. # Reject names that are not valid shell variable names.
  1140. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1141. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1142. ac_useropt_orig=$ac_useropt
  1143. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1144. case $ac_user_opts in
  1145. *"
  1146. "with_$ac_useropt"
  1147. "*) ;;
  1148. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1149. ac_unrecognized_sep=', ';;
  1150. esac
  1151. eval with_$ac_useropt=no ;;
  1152. --x)
  1153. # Obsolete; use --with-x.
  1154. with_x=yes ;;
  1155. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1156. | --x-incl | --x-inc | --x-in | --x-i)
  1157. ac_prev=x_includes ;;
  1158. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1159. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1160. x_includes=$ac_optarg ;;
  1161. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1162. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1163. ac_prev=x_libraries ;;
  1164. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1165. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1166. x_libraries=$ac_optarg ;;
  1167. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1168. Try \`$0 --help' for more information"
  1169. ;;
  1170. *=*)
  1171. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1172. # Reject names that are not valid shell variable names.
  1173. case $ac_envvar in #(
  1174. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1175. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1176. esac
  1177. eval $ac_envvar=\$ac_optarg
  1178. export $ac_envvar ;;
  1179. *)
  1180. # FIXME: should be removed in autoconf 3.0.
  1181. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1182. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1183. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1184. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1185. ;;
  1186. esac
  1187. done
  1188. if test -n "$ac_prev"; then
  1189. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1190. as_fn_error $? "missing argument to $ac_option"
  1191. fi
  1192. if test -n "$ac_unrecognized_opts"; then
  1193. case $enable_option_checking in
  1194. no) ;;
  1195. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1196. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1197. esac
  1198. fi
  1199. # Check all directory arguments for consistency.
  1200. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1201. datadir sysconfdir sharedstatedir localstatedir includedir \
  1202. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1203. libdir localedir mandir runstatedir
  1204. do
  1205. eval ac_val=\$$ac_var
  1206. # Remove trailing slashes.
  1207. case $ac_val in
  1208. */ )
  1209. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1210. eval $ac_var=\$ac_val;;
  1211. esac
  1212. # Be sure to have absolute directory names.
  1213. case $ac_val in
  1214. [\\/$]* | ?:[\\/]* ) continue;;
  1215. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1216. esac
  1217. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1218. done
  1219. # There might be people who depend on the old broken behavior: `$host'
  1220. # used to hold the argument of --host etc.
  1221. # FIXME: To remove some day.
  1222. build=$build_alias
  1223. host=$host_alias
  1224. target=$target_alias
  1225. # FIXME: To remove some day.
  1226. if test "x$host_alias" != x; then
  1227. if test "x$build_alias" = x; then
  1228. cross_compiling=maybe
  1229. elif test "x$build_alias" != "x$host_alias"; then
  1230. cross_compiling=yes
  1231. fi
  1232. fi
  1233. ac_tool_prefix=
  1234. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1235. test "$silent" = yes && exec 6>/dev/null
  1236. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1237. ac_ls_di=`ls -di .` &&
  1238. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1239. as_fn_error $? "working directory cannot be determined"
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. as_fn_error $? "pwd does not report name of working directory"
  1242. # Find the source files, if location was not specified.
  1243. if test -z "$srcdir"; then
  1244. ac_srcdir_defaulted=yes
  1245. # Try the directory containing this script, then the parent directory.
  1246. ac_confdir=`$as_dirname -- "$as_myself" ||
  1247. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1248. X"$as_myself" : 'X\(//\)[^/]' \| \
  1249. X"$as_myself" : 'X\(//\)$' \| \
  1250. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1251. printf "%s\n" X"$as_myself" |
  1252. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)[^/].*/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)$/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\).*/{
  1265. s//\1/
  1266. q
  1267. }
  1268. s/.*/./; q'`
  1269. srcdir=$ac_confdir
  1270. if test ! -r "$srcdir/$ac_unique_file"; then
  1271. srcdir=..
  1272. fi
  1273. else
  1274. ac_srcdir_defaulted=no
  1275. fi
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1278. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1279. fi
  1280. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1281. ac_abs_confdir=`(
  1282. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1283. pwd)`
  1284. # When building in place, set srcdir=.
  1285. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1286. srcdir=.
  1287. fi
  1288. # Remove unnecessary trailing slashes from srcdir.
  1289. # Double slashes in file names in object file debugging info
  1290. # mess up M-x gdb in Emacs.
  1291. case $srcdir in
  1292. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1293. esac
  1294. for ac_var in $ac_precious_vars; do
  1295. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1296. eval ac_env_${ac_var}_value=\$${ac_var}
  1297. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1299. done
  1300. #
  1301. # Report the --help message.
  1302. #
  1303. if test "$ac_init_help" = "long"; then
  1304. # Omit some internal or obsolete options to make the list less imposing.
  1305. # This message is too long to be a string in the A/UX 3.1 sh.
  1306. cat <<_ACEOF
  1307. \`configure' configures libarchive 3.7.0 to adapt to many kinds of systems.
  1308. Usage: $0 [OPTION]... [VAR=VALUE]...
  1309. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1310. VAR=VALUE. See below for descriptions of some of the useful variables.
  1311. Defaults for the options are specified in brackets.
  1312. Configuration:
  1313. -h, --help display this help and exit
  1314. --help=short display options specific to this package
  1315. --help=recursive display the short help of all the included packages
  1316. -V, --version display version information and exit
  1317. -q, --quiet, --silent do not print \`checking ...' messages
  1318. --cache-file=FILE cache test results in FILE [disabled]
  1319. -C, --config-cache alias for \`--cache-file=config.cache'
  1320. -n, --no-create do not create output files
  1321. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1322. Installation directories:
  1323. --prefix=PREFIX install architecture-independent files in PREFIX
  1324. [$ac_default_prefix]
  1325. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1326. [PREFIX]
  1327. By default, \`make install' will install all the files in
  1328. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1329. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1330. for instance \`--prefix=\$HOME'.
  1331. For better control, use the options below.
  1332. Fine tuning of the installation directories:
  1333. --bindir=DIR user executables [EPREFIX/bin]
  1334. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1335. --libexecdir=DIR program executables [EPREFIX/libexec]
  1336. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1337. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1338. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1339. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. Program names:
  1356. --program-prefix=PREFIX prepend PREFIX to installed program names
  1357. --program-suffix=SUFFIX append SUFFIX to installed program names
  1358. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1359. System types:
  1360. --build=BUILD configure for building on BUILD [guessed]
  1361. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1362. _ACEOF
  1363. fi
  1364. if test -n "$ac_init_help"; then
  1365. case $ac_init_help in
  1366. short | recursive ) echo "Configuration of libarchive 3.7.0:";;
  1367. esac
  1368. cat <<\_ACEOF
  1369. Optional Features:
  1370. --disable-option-checking ignore unrecognized --enable/--with options
  1371. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1372. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1373. --enable-silent-rules less verbose build output (undo: "make V=1")
  1374. --disable-silent-rules verbose build output (undo: "make V=0")
  1375. --disable-maintainer-mode
  1376. disable make rules and dependencies not useful (and
  1377. sometimes confusing) to the casual installer
  1378. --enable-dependency-tracking
  1379. do not reject slow dependency extractors
  1380. --disable-dependency-tracking
  1381. speeds up one-time build
  1382. --enable-shared[=PKGS] build shared libraries [default=yes]
  1383. --enable-static[=PKGS] build static libraries [default=yes]
  1384. --enable-fast-install[=PKGS]
  1385. optimize for fast installation [default=yes]
  1386. --disable-libtool-lock avoid locking (might break parallel builds)
  1387. --enable-bsdtar enable build of bsdtar (default)
  1388. --enable-bsdtar=static force static build of bsdtar
  1389. --enable-bsdtar=shared force dynamic build of bsdtar
  1390. --disable-bsdtar disable build of bsdtar
  1391. --enable-bsdcat enable build of bsdcat (default)
  1392. --enable-bsdcat=static force static build of bsdcat
  1393. --enable-bsdcat=shared force dynamic build of bsdcat
  1394. --disable-bsdcat disable build of bsdcat
  1395. --enable-bsdcpio enable build of bsdcpio (default)
  1396. --enable-bsdcpio=static static build of bsdcpio
  1397. --enable-bsdcpio=shared dynamic build of bsdcpio
  1398. --disable-bsdcpio disable build of bsdcpio
  1399. --enable-bsdunzip enable build of bsdunzip (default)
  1400. --enable-bsdunzip=static
  1401. force static build of bsdunzip
  1402. --enable-bsdunzip=shared
  1403. force dynamic build of bsdunzip
  1404. --disable-bsdunzip disable build of bsdunzip
  1405. --disable-rpath do not hardcode runtime library paths
  1406. --enable-posix-regex-lib
  1407. choose what library to use for POSIX regular
  1408. expression support (default: auto)
  1409. --enable-posix-regex-lib=libc
  1410. use libc POSIX regular expression support
  1411. --enable-posix-regex-lib=libregex
  1412. use libregex POSIX regular expression support
  1413. --enable-posix-regex-lib=libpcreposix
  1414. use libpcreposix POSIX regular expression support
  1415. --disable-posix-regex-lib
  1416. don't enable POSIX regular expression support
  1417. --disable-xattr Disable Extended Attributes support (default: check)
  1418. --disable-acl Disable ACL support (default: check)
  1419. --disable-largefile omit support for large files
  1420. Optional Packages:
  1421. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1422. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1423. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1424. both]
  1425. --with-aix-soname=aix|svr4|both
  1426. shared library versioning (aka "SONAME") variant to
  1427. provide on AIX, [default=aix].
  1428. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1429. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1430. compiler's sysroot if not specified).
  1431. --without-zlib Don't build support for gzip through zlib
  1432. --without-bz2lib Don't build support for bzip2 through bz2lib
  1433. --without-libb2 Don't build support for BLAKE2 through libb2
  1434. --without-iconv Don't try to link against iconv
  1435. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1436. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1437. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1438. --without-lz4 Don't build support for lz4 through liblz4
  1439. --without-zstd Don't build support for zstd through libzstd
  1440. --without-lzma Don't build support for xz through lzma
  1441. --with-lzo2 Build with LZO support from liblzo2
  1442. --without-cng Don't build support of CNG(Crypto Next Generation)
  1443. --with-mbedtls Build with crypto support from mbed TLS
  1444. --with-nettle Build with crypto support from Nettle
  1445. --without-openssl Don't build support for mtree and xar hashes through
  1446. openssl
  1447. --without-xml2 Don't build support for xar through libxml2
  1448. --without-expat Don't build support for xar through expat
  1449. Some influential environment variables:
  1450. CC C compiler command
  1451. CFLAGS C compiler flags
  1452. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1453. nonstandard directory <lib dir>
  1454. LIBS libraries to pass to the linker, e.g. -l<library>
  1455. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1456. you have headers in a nonstandard directory <include dir>
  1457. CPP C preprocessor
  1458. LT_SYS_LIBRARY_PATH
  1459. User-defined run-time library search path.
  1460. PKG_CONFIG path to pkg-config utility
  1461. PKG_CONFIG_PATH
  1462. directories to add to pkg-config's search path
  1463. PKG_CONFIG_LIBDIR
  1464. path overriding pkg-config's built-in search path
  1465. LIBXML2_PC_CFLAGS
  1466. C compiler flags for LIBXML2_PC, overriding pkg-config
  1467. LIBXML2_PC_LIBS
  1468. linker flags for LIBXML2_PC, overriding pkg-config
  1469. Use these variables to override the choices made by `configure' or to help
  1470. it to find libraries and programs with nonstandard names/locations.
  1471. Report bugs to <[email protected]>.
  1472. _ACEOF
  1473. ac_status=$?
  1474. fi
  1475. if test "$ac_init_help" = "recursive"; then
  1476. # If there are subdirs, report their specific --help.
  1477. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1478. test -d "$ac_dir" ||
  1479. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1480. continue
  1481. ac_builddir=.
  1482. case "$ac_dir" in
  1483. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1484. *)
  1485. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1486. # A ".." for each directory in $ac_dir_suffix.
  1487. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1488. case $ac_top_builddir_sub in
  1489. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1490. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1491. esac ;;
  1492. esac
  1493. ac_abs_top_builddir=$ac_pwd
  1494. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1495. # for backward compatibility:
  1496. ac_top_builddir=$ac_top_build_prefix
  1497. case $srcdir in
  1498. .) # We are building in place.
  1499. ac_srcdir=.
  1500. ac_top_srcdir=$ac_top_builddir_sub
  1501. ac_abs_top_srcdir=$ac_pwd ;;
  1502. [\\/]* | ?:[\\/]* ) # Absolute name.
  1503. ac_srcdir=$srcdir$ac_dir_suffix;
  1504. ac_top_srcdir=$srcdir
  1505. ac_abs_top_srcdir=$srcdir ;;
  1506. *) # Relative name.
  1507. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1508. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1509. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1510. esac
  1511. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1512. cd "$ac_dir" || { ac_status=$?; continue; }
  1513. # Check for configure.gnu first; this name is used for a wrapper for
  1514. # Metaconfig's "Configure" on case-insensitive file systems.
  1515. if test -f "$ac_srcdir/configure.gnu"; then
  1516. echo &&
  1517. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1518. elif test -f "$ac_srcdir/configure"; then
  1519. echo &&
  1520. $SHELL "$ac_srcdir/configure" --help=recursive
  1521. else
  1522. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1523. fi || ac_status=$?
  1524. cd "$ac_pwd" || { ac_status=$?; break; }
  1525. done
  1526. fi
  1527. test -n "$ac_init_help" && exit $ac_status
  1528. if $ac_init_version; then
  1529. cat <<\_ACEOF
  1530. libarchive configure 3.7.0
  1531. generated by GNU Autoconf 2.71
  1532. Copyright (C) 2021 Free Software Foundation, Inc.
  1533. This configure script is free software; the Free Software Foundation
  1534. gives unlimited permission to copy, distribute and modify it.
  1535. _ACEOF
  1536. exit
  1537. fi
  1538. ## ------------------------ ##
  1539. ## Autoconf initialization. ##
  1540. ## ------------------------ ##
  1541. # ac_fn_c_try_compile LINENO
  1542. # --------------------------
  1543. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1544. ac_fn_c_try_compile ()
  1545. {
  1546. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1547. rm -f conftest.$ac_objext conftest.beam
  1548. if { { ac_try="$ac_compile"
  1549. case "(($ac_try" in
  1550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1551. *) ac_try_echo=$ac_try;;
  1552. esac
  1553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1554. printf "%s\n" "$ac_try_echo"; } >&5
  1555. (eval "$ac_compile") 2>conftest.err
  1556. ac_status=$?
  1557. if test -s conftest.err; then
  1558. grep -v '^ *+' conftest.err >conftest.er1
  1559. cat conftest.er1 >&5
  1560. mv -f conftest.er1 conftest.err
  1561. fi
  1562. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; } && {
  1564. test -z "$ac_c_werror_flag" ||
  1565. test ! -s conftest.err
  1566. } && test -s conftest.$ac_objext
  1567. then :
  1568. ac_retval=0
  1569. else $as_nop
  1570. printf "%s\n" "$as_me: failed program was:" >&5
  1571. sed 's/^/| /' conftest.$ac_ext >&5
  1572. ac_retval=1
  1573. fi
  1574. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1575. as_fn_set_status $ac_retval
  1576. } # ac_fn_c_try_compile
  1577. # ac_fn_c_try_cpp LINENO
  1578. # ----------------------
  1579. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1580. ac_fn_c_try_cpp ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1584. case "(($ac_try" in
  1585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1586. *) ac_try_echo=$ac_try;;
  1587. esac
  1588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1589. printf "%s\n" "$ac_try_echo"; } >&5
  1590. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1591. ac_status=$?
  1592. if test -s conftest.err; then
  1593. grep -v '^ *+' conftest.err >conftest.er1
  1594. cat conftest.er1 >&5
  1595. mv -f conftest.er1 conftest.err
  1596. fi
  1597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } > conftest.i && {
  1599. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1600. test ! -s conftest.err
  1601. }
  1602. then :
  1603. ac_retval=0
  1604. else $as_nop
  1605. printf "%s\n" "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=1
  1608. fi
  1609. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1610. as_fn_set_status $ac_retval
  1611. } # ac_fn_c_try_cpp
  1612. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1613. # -------------------------------------------------------
  1614. # Tests whether HEADER exists and can be compiled using the include files in
  1615. # INCLUDES, setting the cache variable VAR accordingly.
  1616. ac_fn_c_check_header_compile ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. printf %s "checking for $2... " >&6; }
  1621. if eval test \${$3+y}
  1622. then :
  1623. printf %s "(cached) " >&6
  1624. else $as_nop
  1625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1626. /* end confdefs.h. */
  1627. $4
  1628. #include <$2>
  1629. _ACEOF
  1630. if ac_fn_c_try_compile "$LINENO"
  1631. then :
  1632. eval "$3=yes"
  1633. else $as_nop
  1634. eval "$3=no"
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  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_try_link LINENO
  1644. # -----------------------
  1645. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1646. ac_fn_c_try_link ()
  1647. {
  1648. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1649. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1650. if { { ac_try="$ac_link"
  1651. case "(($ac_try" in
  1652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1653. *) ac_try_echo=$ac_try;;
  1654. esac
  1655. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1656. printf "%s\n" "$ac_try_echo"; } >&5
  1657. (eval "$ac_link") 2>conftest.err
  1658. ac_status=$?
  1659. if test -s conftest.err; then
  1660. grep -v '^ *+' conftest.err >conftest.er1
  1661. cat conftest.er1 >&5
  1662. mv -f conftest.er1 conftest.err
  1663. fi
  1664. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1665. test $ac_status = 0; } && {
  1666. test -z "$ac_c_werror_flag" ||
  1667. test ! -s conftest.err
  1668. } && test -s conftest$ac_exeext && {
  1669. test "$cross_compiling" = yes ||
  1670. test -x conftest$ac_exeext
  1671. }
  1672. then :
  1673. ac_retval=0
  1674. else $as_nop
  1675. printf "%s\n" "$as_me: failed program was:" >&5
  1676. sed 's/^/| /' conftest.$ac_ext >&5
  1677. ac_retval=1
  1678. fi
  1679. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1680. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1681. # interfere with the next link command; also delete a directory that is
  1682. # left behind by Apple's compiler. We do this before executing the actions.
  1683. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. as_fn_set_status $ac_retval
  1686. } # ac_fn_c_try_link
  1687. # ac_fn_c_check_func LINENO FUNC VAR
  1688. # ----------------------------------
  1689. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1690. ac_fn_c_check_func ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1694. printf %s "checking for $2... " >&6; }
  1695. if eval test \${$3+y}
  1696. then :
  1697. printf %s "(cached) " >&6
  1698. else $as_nop
  1699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1700. /* end confdefs.h. */
  1701. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1703. #define $2 innocuous_$2
  1704. /* System header to define __stub macros and hopefully few prototypes,
  1705. which can conflict with char $2 (); below. */
  1706. #include <limits.h>
  1707. #undef $2
  1708. /* Override any GCC internal prototype to avoid an error.
  1709. Use char because int might match the return type of a GCC
  1710. builtin and then its argument prototype would still apply. */
  1711. #ifdef __cplusplus
  1712. extern "C"
  1713. #endif
  1714. char $2 ();
  1715. /* The GNU C library defines this for functions which it implements
  1716. to always fail with ENOSYS. Some functions are actually named
  1717. something starting with __ and the normal name is an alias. */
  1718. #if defined __stub_$2 || defined __stub___$2
  1719. choke me
  1720. #endif
  1721. int
  1722. main (void)
  1723. {
  1724. return $2 ();
  1725. ;
  1726. return 0;
  1727. }
  1728. _ACEOF
  1729. if ac_fn_c_try_link "$LINENO"
  1730. then :
  1731. eval "$3=yes"
  1732. else $as_nop
  1733. eval "$3=no"
  1734. fi
  1735. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1736. conftest$ac_exeext conftest.$ac_ext
  1737. fi
  1738. eval ac_res=\$$3
  1739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1740. printf "%s\n" "$ac_res" >&6; }
  1741. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1742. } # ac_fn_c_check_func
  1743. # ac_fn_c_try_run LINENO
  1744. # ----------------------
  1745. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  1746. # executables *can* be run.
  1747. ac_fn_c_try_run ()
  1748. {
  1749. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1750. if { { ac_try="$ac_link"
  1751. case "(($ac_try" in
  1752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1753. *) ac_try_echo=$ac_try;;
  1754. esac
  1755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1756. printf "%s\n" "$ac_try_echo"; } >&5
  1757. (eval "$ac_link") 2>&5
  1758. ac_status=$?
  1759. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1760. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1761. { { case "(($ac_try" in
  1762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1763. *) ac_try_echo=$ac_try;;
  1764. esac
  1765. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1766. printf "%s\n" "$ac_try_echo"; } >&5
  1767. (eval "$ac_try") 2>&5
  1768. ac_status=$?
  1769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1770. test $ac_status = 0; }; }
  1771. then :
  1772. ac_retval=0
  1773. else $as_nop
  1774. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  1775. printf "%s\n" "$as_me: failed program was:" >&5
  1776. sed 's/^/| /' conftest.$ac_ext >&5
  1777. ac_retval=$ac_status
  1778. fi
  1779. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1780. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1781. as_fn_set_status $ac_retval
  1782. } # ac_fn_c_try_run
  1783. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1784. # -------------------------------------------
  1785. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1786. # variable VAR accordingly.
  1787. ac_fn_c_check_type ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1791. printf %s "checking for $2... " >&6; }
  1792. if eval test \${$3+y}
  1793. then :
  1794. printf %s "(cached) " >&6
  1795. else $as_nop
  1796. eval "$3=no"
  1797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1798. /* end confdefs.h. */
  1799. $4
  1800. int
  1801. main (void)
  1802. {
  1803. if (sizeof ($2))
  1804. return 0;
  1805. ;
  1806. return 0;
  1807. }
  1808. _ACEOF
  1809. if ac_fn_c_try_compile "$LINENO"
  1810. then :
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $4
  1814. int
  1815. main (void)
  1816. {
  1817. if (sizeof (($2)))
  1818. return 0;
  1819. ;
  1820. return 0;
  1821. }
  1822. _ACEOF
  1823. if ac_fn_c_try_compile "$LINENO"
  1824. then :
  1825. else $as_nop
  1826. eval "$3=yes"
  1827. fi
  1828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1829. fi
  1830. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1831. fi
  1832. eval ac_res=\$$3
  1833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1834. printf "%s\n" "$ac_res" >&6; }
  1835. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1836. } # ac_fn_c_check_type
  1837. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1838. # ----------------------------------------------------
  1839. # Tries to find if the field MEMBER exists in type AGGR, after including
  1840. # INCLUDES, setting cache variable VAR accordingly.
  1841. ac_fn_c_check_member ()
  1842. {
  1843. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1845. printf %s "checking for $2.$3... " >&6; }
  1846. if eval test \${$4+y}
  1847. then :
  1848. printf %s "(cached) " >&6
  1849. else $as_nop
  1850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1851. /* end confdefs.h. */
  1852. $5
  1853. int
  1854. main (void)
  1855. {
  1856. static $2 ac_aggr;
  1857. if (ac_aggr.$3)
  1858. return 0;
  1859. ;
  1860. return 0;
  1861. }
  1862. _ACEOF
  1863. if ac_fn_c_try_compile "$LINENO"
  1864. then :
  1865. eval "$4=yes"
  1866. else $as_nop
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $5
  1870. int
  1871. main (void)
  1872. {
  1873. static $2 ac_aggr;
  1874. if (sizeof ac_aggr.$3)
  1875. return 0;
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_c_try_compile "$LINENO"
  1881. then :
  1882. eval "$4=yes"
  1883. else $as_nop
  1884. eval "$4=no"
  1885. fi
  1886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1887. fi
  1888. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1889. fi
  1890. eval ac_res=\$$4
  1891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1892. printf "%s\n" "$ac_res" >&6; }
  1893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1894. } # ac_fn_c_check_member
  1895. # ac_fn_c_find_intX_t LINENO BITS VAR
  1896. # -----------------------------------
  1897. # Finds a signed integer type with width BITS, setting cache variable VAR
  1898. # accordingly.
  1899. ac_fn_c_find_intX_t ()
  1900. {
  1901. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1903. printf %s "checking for int$2_t... " >&6; }
  1904. if eval test \${$3+y}
  1905. then :
  1906. printf %s "(cached) " >&6
  1907. else $as_nop
  1908. eval "$3=no"
  1909. # Order is important - never check a type that is potentially smaller
  1910. # than half of the expected target width.
  1911. for ac_type in int$2_t 'int' 'long int' \
  1912. 'long long int' 'short int' 'signed char'; do
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. $ac_includes_default
  1916. enum { N = $2 / 2 - 1 };
  1917. int
  1918. main (void)
  1919. {
  1920. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1921. test_array [0] = 0;
  1922. return test_array [0];
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_c_try_compile "$LINENO"
  1928. then :
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $ac_includes_default
  1932. enum { N = $2 / 2 - 1 };
  1933. int
  1934. main (void)
  1935. {
  1936. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1937. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1938. test_array [0] = 0;
  1939. return test_array [0];
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_compile "$LINENO"
  1945. then :
  1946. else $as_nop
  1947. case $ac_type in #(
  1948. int$2_t) :
  1949. eval "$3=yes" ;; #(
  1950. *) :
  1951. eval "$3=\$ac_type" ;;
  1952. esac
  1953. fi
  1954. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1955. fi
  1956. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1957. if eval test \"x\$"$3"\" = x"no"
  1958. then :
  1959. else $as_nop
  1960. break
  1961. fi
  1962. done
  1963. fi
  1964. eval ac_res=\$$3
  1965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1966. printf "%s\n" "$ac_res" >&6; }
  1967. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1968. } # ac_fn_c_find_intX_t
  1969. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1970. # ------------------------------------
  1971. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1972. # accordingly.
  1973. ac_fn_c_find_uintX_t ()
  1974. {
  1975. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1977. printf %s "checking for uint$2_t... " >&6; }
  1978. if eval test \${$3+y}
  1979. then :
  1980. printf %s "(cached) " >&6
  1981. else $as_nop
  1982. eval "$3=no"
  1983. # Order is important - never check a type that is potentially smaller
  1984. # than half of the expected target width.
  1985. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1986. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1988. /* end confdefs.h. */
  1989. $ac_includes_default
  1990. int
  1991. main (void)
  1992. {
  1993. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1994. test_array [0] = 0;
  1995. return test_array [0];
  1996. ;
  1997. return 0;
  1998. }
  1999. _ACEOF
  2000. if ac_fn_c_try_compile "$LINENO"
  2001. then :
  2002. case $ac_type in #(
  2003. uint$2_t) :
  2004. eval "$3=yes" ;; #(
  2005. *) :
  2006. eval "$3=\$ac_type" ;;
  2007. esac
  2008. fi
  2009. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2010. if eval test \"x\$"$3"\" = x"no"
  2011. then :
  2012. else $as_nop
  2013. break
  2014. fi
  2015. done
  2016. fi
  2017. eval ac_res=\$$3
  2018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2019. printf "%s\n" "$ac_res" >&6; }
  2020. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2021. } # ac_fn_c_find_uintX_t
  2022. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2023. # ------------------------------------------------------------------
  2024. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2025. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2026. ac_fn_check_decl ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2031. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2032. if eval test \${$3+y}
  2033. then :
  2034. printf %s "(cached) " >&6
  2035. else $as_nop
  2036. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2037. eval ac_save_FLAGS=\$$6
  2038. as_fn_append $6 " $5"
  2039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2040. /* end confdefs.h. */
  2041. $4
  2042. int
  2043. main (void)
  2044. {
  2045. #ifndef $as_decl_name
  2046. #ifdef __cplusplus
  2047. (void) $as_decl_use;
  2048. #else
  2049. (void) $as_decl_name;
  2050. #endif
  2051. #endif
  2052. ;
  2053. return 0;
  2054. }
  2055. _ACEOF
  2056. if ac_fn_c_try_compile "$LINENO"
  2057. then :
  2058. eval "$3=yes"
  2059. else $as_nop
  2060. eval "$3=no"
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2063. eval $6=\$ac_save_FLAGS
  2064. fi
  2065. eval ac_res=\$$3
  2066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2067. printf "%s\n" "$ac_res" >&6; }
  2068. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2069. } # ac_fn_check_decl
  2070. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2071. # --------------------------------------------
  2072. # Tries to find the compile-time value of EXPR in a program that includes
  2073. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2074. # computed
  2075. ac_fn_c_compute_int ()
  2076. {
  2077. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2078. if test "$cross_compiling" = yes; then
  2079. # Depending upon the size, compute the lo and hi bounds.
  2080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2081. /* end confdefs.h. */
  2082. $4
  2083. int
  2084. main (void)
  2085. {
  2086. static int test_array [1 - 2 * !(($2) >= 0)];
  2087. test_array [0] = 0;
  2088. return test_array [0];
  2089. ;
  2090. return 0;
  2091. }
  2092. _ACEOF
  2093. if ac_fn_c_try_compile "$LINENO"
  2094. then :
  2095. ac_lo=0 ac_mid=0
  2096. while :; do
  2097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2098. /* end confdefs.h. */
  2099. $4
  2100. int
  2101. main (void)
  2102. {
  2103. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2104. test_array [0] = 0;
  2105. return test_array [0];
  2106. ;
  2107. return 0;
  2108. }
  2109. _ACEOF
  2110. if ac_fn_c_try_compile "$LINENO"
  2111. then :
  2112. ac_hi=$ac_mid; break
  2113. else $as_nop
  2114. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2115. if test $ac_lo -le $ac_mid; then
  2116. ac_lo= ac_hi=
  2117. break
  2118. fi
  2119. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2122. done
  2123. else $as_nop
  2124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2125. /* end confdefs.h. */
  2126. $4
  2127. int
  2128. main (void)
  2129. {
  2130. static int test_array [1 - 2 * !(($2) < 0)];
  2131. test_array [0] = 0;
  2132. return test_array [0];
  2133. ;
  2134. return 0;
  2135. }
  2136. _ACEOF
  2137. if ac_fn_c_try_compile "$LINENO"
  2138. then :
  2139. ac_hi=-1 ac_mid=-1
  2140. while :; do
  2141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2142. /* end confdefs.h. */
  2143. $4
  2144. int
  2145. main (void)
  2146. {
  2147. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2148. test_array [0] = 0;
  2149. return test_array [0];
  2150. ;
  2151. return 0;
  2152. }
  2153. _ACEOF
  2154. if ac_fn_c_try_compile "$LINENO"
  2155. then :
  2156. ac_lo=$ac_mid; break
  2157. else $as_nop
  2158. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2159. if test $ac_mid -le $ac_hi; then
  2160. ac_lo= ac_hi=
  2161. break
  2162. fi
  2163. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2164. fi
  2165. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2166. done
  2167. else $as_nop
  2168. ac_lo= ac_hi=
  2169. fi
  2170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2171. fi
  2172. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2173. # Binary search between lo and hi bounds.
  2174. while test "x$ac_lo" != "x$ac_hi"; do
  2175. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2177. /* end confdefs.h. */
  2178. $4
  2179. int
  2180. main (void)
  2181. {
  2182. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2183. test_array [0] = 0;
  2184. return test_array [0];
  2185. ;
  2186. return 0;
  2187. }
  2188. _ACEOF
  2189. if ac_fn_c_try_compile "$LINENO"
  2190. then :
  2191. ac_hi=$ac_mid
  2192. else $as_nop
  2193. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2194. fi
  2195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2196. done
  2197. case $ac_lo in #((
  2198. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2199. '') ac_retval=1 ;;
  2200. esac
  2201. else
  2202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2203. /* end confdefs.h. */
  2204. $4
  2205. static long int longval (void) { return $2; }
  2206. static unsigned long int ulongval (void) { return $2; }
  2207. #include <stdio.h>
  2208. #include <stdlib.h>
  2209. int
  2210. main (void)
  2211. {
  2212. FILE *f = fopen ("conftest.val", "w");
  2213. if (! f)
  2214. return 1;
  2215. if (($2) < 0)
  2216. {
  2217. long int i = longval ();
  2218. if (i != ($2))
  2219. return 1;
  2220. fprintf (f, "%ld", i);
  2221. }
  2222. else
  2223. {
  2224. unsigned long int i = ulongval ();
  2225. if (i != ($2))
  2226. return 1;
  2227. fprintf (f, "%lu", i);
  2228. }
  2229. /* Do not output a trailing newline, as this causes \r\n confusion
  2230. on some platforms. */
  2231. return ferror (f) || fclose (f) != 0;
  2232. ;
  2233. return 0;
  2234. }
  2235. _ACEOF
  2236. if ac_fn_c_try_run "$LINENO"
  2237. then :
  2238. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2239. else $as_nop
  2240. ac_retval=1
  2241. fi
  2242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2243. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2244. rm -f conftest.val
  2245. fi
  2246. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2247. as_fn_set_status $ac_retval
  2248. } # ac_fn_c_compute_int
  2249. ac_configure_args_raw=
  2250. for ac_arg
  2251. do
  2252. case $ac_arg in
  2253. *\'*)
  2254. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2255. esac
  2256. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2257. done
  2258. case $ac_configure_args_raw in
  2259. *$as_nl*)
  2260. ac_safe_unquote= ;;
  2261. *)
  2262. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2263. ac_unsafe_a="$ac_unsafe_z#~"
  2264. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2265. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2266. esac
  2267. cat >config.log <<_ACEOF
  2268. This file contains any messages produced by compilers while
  2269. running configure, to aid debugging if configure makes a mistake.
  2270. It was created by libarchive $as_me 3.7.0, which was
  2271. generated by GNU Autoconf 2.71. Invocation command line was
  2272. $ $0$ac_configure_args_raw
  2273. _ACEOF
  2274. exec 5>>config.log
  2275. {
  2276. cat <<_ASUNAME
  2277. ## --------- ##
  2278. ## Platform. ##
  2279. ## --------- ##
  2280. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2281. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2282. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2283. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2284. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2285. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2286. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2287. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2288. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2289. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2290. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2291. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2292. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2293. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2294. _ASUNAME
  2295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2296. for as_dir in $PATH
  2297. do
  2298. IFS=$as_save_IFS
  2299. case $as_dir in #(((
  2300. '') as_dir=./ ;;
  2301. */) ;;
  2302. *) as_dir=$as_dir/ ;;
  2303. esac
  2304. printf "%s\n" "PATH: $as_dir"
  2305. done
  2306. IFS=$as_save_IFS
  2307. } >&5
  2308. cat >&5 <<_ACEOF
  2309. ## ----------- ##
  2310. ## Core tests. ##
  2311. ## ----------- ##
  2312. _ACEOF
  2313. # Keep a trace of the command line.
  2314. # Strip out --no-create and --no-recursion so they do not pile up.
  2315. # Strip out --silent because we don't want to record it for future runs.
  2316. # Also quote any args containing shell meta-characters.
  2317. # Make two passes to allow for proper duplicate-argument suppression.
  2318. ac_configure_args=
  2319. ac_configure_args0=
  2320. ac_configure_args1=
  2321. ac_must_keep_next=false
  2322. for ac_pass in 1 2
  2323. do
  2324. for ac_arg
  2325. do
  2326. case $ac_arg in
  2327. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2328. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2329. | -silent | --silent | --silen | --sile | --sil)
  2330. continue ;;
  2331. *\'*)
  2332. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2333. esac
  2334. case $ac_pass in
  2335. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2336. 2)
  2337. as_fn_append ac_configure_args1 " '$ac_arg'"
  2338. if test $ac_must_keep_next = true; then
  2339. ac_must_keep_next=false # Got value, back to normal.
  2340. else
  2341. case $ac_arg in
  2342. *=* | --config-cache | -C | -disable-* | --disable-* \
  2343. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2344. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2345. | -with-* | --with-* | -without-* | --without-* | --x)
  2346. case "$ac_configure_args0 " in
  2347. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2348. esac
  2349. ;;
  2350. -* ) ac_must_keep_next=true ;;
  2351. esac
  2352. fi
  2353. as_fn_append ac_configure_args " '$ac_arg'"
  2354. ;;
  2355. esac
  2356. done
  2357. done
  2358. { ac_configure_args0=; unset ac_configure_args0;}
  2359. { ac_configure_args1=; unset ac_configure_args1;}
  2360. # When interrupted or exit'd, cleanup temporary files, and complete
  2361. # config.log. We remove comments because anyway the quotes in there
  2362. # would cause problems or look ugly.
  2363. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2364. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2365. trap 'exit_status=$?
  2366. # Sanitize IFS.
  2367. IFS=" "" $as_nl"
  2368. # Save into config.log some information that might help in debugging.
  2369. {
  2370. echo
  2371. printf "%s\n" "## ---------------- ##
  2372. ## Cache variables. ##
  2373. ## ---------------- ##"
  2374. echo
  2375. # The following way of writing the cache mishandles newlines in values,
  2376. (
  2377. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2378. eval ac_val=\$$ac_var
  2379. case $ac_val in #(
  2380. *${as_nl}*)
  2381. case $ac_var in #(
  2382. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2383. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2384. esac
  2385. case $ac_var in #(
  2386. _ | IFS | as_nl) ;; #(
  2387. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2388. *) { eval $ac_var=; unset $ac_var;} ;;
  2389. esac ;;
  2390. esac
  2391. done
  2392. (set) 2>&1 |
  2393. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2394. *${as_nl}ac_space=\ *)
  2395. sed -n \
  2396. "s/'\''/'\''\\\\'\'''\''/g;
  2397. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2398. ;; #(
  2399. *)
  2400. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2401. ;;
  2402. esac |
  2403. sort
  2404. )
  2405. echo
  2406. printf "%s\n" "## ----------------- ##
  2407. ## Output variables. ##
  2408. ## ----------------- ##"
  2409. echo
  2410. for ac_var in $ac_subst_vars
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. if test -n "$ac_subst_files"; then
  2420. printf "%s\n" "## ------------------- ##
  2421. ## File substitutions. ##
  2422. ## ------------------- ##"
  2423. echo
  2424. for ac_var in $ac_subst_files
  2425. do
  2426. eval ac_val=\$$ac_var
  2427. case $ac_val in
  2428. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2429. esac
  2430. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2431. done | sort
  2432. echo
  2433. fi
  2434. if test -s confdefs.h; then
  2435. printf "%s\n" "## ----------- ##
  2436. ## confdefs.h. ##
  2437. ## ----------- ##"
  2438. echo
  2439. cat confdefs.h
  2440. echo
  2441. fi
  2442. test "$ac_signal" != 0 &&
  2443. printf "%s\n" "$as_me: caught signal $ac_signal"
  2444. printf "%s\n" "$as_me: exit $exit_status"
  2445. } >&5
  2446. rm -f core *.core core.conftest.* &&
  2447. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2448. exit $exit_status
  2449. ' 0
  2450. for ac_signal in 1 2 13 15; do
  2451. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2452. done
  2453. ac_signal=0
  2454. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2455. rm -f -r conftest* confdefs.h
  2456. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2457. # Predefined preprocessor variables.
  2458. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2459. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2460. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2461. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2462. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2463. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2464. # Let the site file select an alternate cache file if it wants to.
  2465. # Prefer an explicitly selected file to automatically selected ones.
  2466. if test -n "$CONFIG_SITE"; then
  2467. ac_site_files="$CONFIG_SITE"
  2468. elif test "x$prefix" != xNONE; then
  2469. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2470. else
  2471. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2472. fi
  2473. for ac_site_file in $ac_site_files
  2474. do
  2475. case $ac_site_file in #(
  2476. */*) :
  2477. ;; #(
  2478. *) :
  2479. ac_site_file=./$ac_site_file ;;
  2480. esac
  2481. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2483. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2484. sed 's/^/| /' "$ac_site_file" >&5
  2485. . "$ac_site_file" \
  2486. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2487. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2488. as_fn_error $? "failed to load site script $ac_site_file
  2489. See \`config.log' for more details" "$LINENO" 5; }
  2490. fi
  2491. done
  2492. if test -r "$cache_file"; then
  2493. # Some versions of bash will fail to source /dev/null (special files
  2494. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2495. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2497. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2498. case $cache_file in
  2499. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2500. *) . "./$cache_file";;
  2501. esac
  2502. fi
  2503. else
  2504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2505. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2506. >$cache_file
  2507. fi
  2508. # Test code for whether the C compiler supports C89 (global declarations)
  2509. ac_c_conftest_c89_globals='
  2510. /* Does the compiler advertise C89 conformance?
  2511. Do not test the value of __STDC__, because some compilers set it to 0
  2512. while being otherwise adequately conformant. */
  2513. #if !defined __STDC__
  2514. # error "Compiler does not advertise C89 conformance"
  2515. #endif
  2516. #include <stddef.h>
  2517. #include <stdarg.h>
  2518. struct stat;
  2519. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2520. struct buf { int x; };
  2521. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2522. static char *e (p, i)
  2523. char **p;
  2524. int i;
  2525. {
  2526. return p[i];
  2527. }
  2528. static char *f (char * (*g) (char **, int), char **p, ...)
  2529. {
  2530. char *s;
  2531. va_list v;
  2532. va_start (v,p);
  2533. s = g (p, va_arg (v,int));
  2534. va_end (v);
  2535. return s;
  2536. }
  2537. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2538. function prototypes and stuff, but not \xHH hex character constants.
  2539. These do not provoke an error unfortunately, instead are silently treated
  2540. as an "x". The following induces an error, until -std is added to get
  2541. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2542. array size at least. It is necessary to write \x00 == 0 to get something
  2543. that is true only with -std. */
  2544. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2545. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2546. inside strings and character constants. */
  2547. #define FOO(x) '\''x'\''
  2548. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2549. int test (int i, double x);
  2550. struct s1 {int (*f) (int a);};
  2551. struct s2 {int (*f) (double a);};
  2552. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2553. int, int);'
  2554. # Test code for whether the C compiler supports C89 (body of main).
  2555. ac_c_conftest_c89_main='
  2556. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2557. '
  2558. # Test code for whether the C compiler supports C99 (global declarations)
  2559. ac_c_conftest_c99_globals='
  2560. // Does the compiler advertise C99 conformance?
  2561. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2562. # error "Compiler does not advertise C99 conformance"
  2563. #endif
  2564. #include <stdbool.h>
  2565. extern int puts (const char *);
  2566. extern int printf (const char *, ...);
  2567. extern int dprintf (int, const char *, ...);
  2568. extern void *malloc (size_t);
  2569. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2570. // dprintf is used instead of fprintf to avoid needing to declare
  2571. // FILE and stderr.
  2572. #define debug(...) dprintf (2, __VA_ARGS__)
  2573. #define showlist(...) puts (#__VA_ARGS__)
  2574. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2575. static void
  2576. test_varargs_macros (void)
  2577. {
  2578. int x = 1234;
  2579. int y = 5678;
  2580. debug ("Flag");
  2581. debug ("X = %d\n", x);
  2582. showlist (The first, second, and third items.);
  2583. report (x>y, "x is %d but y is %d", x, y);
  2584. }
  2585. // Check long long types.
  2586. #define BIG64 18446744073709551615ull
  2587. #define BIG32 4294967295ul
  2588. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2589. #if !BIG_OK
  2590. #error "your preprocessor is broken"
  2591. #endif
  2592. #if BIG_OK
  2593. #else
  2594. #error "your preprocessor is broken"
  2595. #endif
  2596. static long long int bignum = -9223372036854775807LL;
  2597. static unsigned long long int ubignum = BIG64;
  2598. struct incomplete_array
  2599. {
  2600. int datasize;
  2601. double data[];
  2602. };
  2603. struct named_init {
  2604. int number;
  2605. const wchar_t *name;
  2606. double average;
  2607. };
  2608. typedef const char *ccp;
  2609. static inline int
  2610. test_restrict (ccp restrict text)
  2611. {
  2612. // See if C++-style comments work.
  2613. // Iterate through items via the restricted pointer.
  2614. // Also check for declarations in for loops.
  2615. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2616. continue;
  2617. return 0;
  2618. }
  2619. // Check varargs and va_copy.
  2620. static bool
  2621. test_varargs (const char *format, ...)
  2622. {
  2623. va_list args;
  2624. va_start (args, format);
  2625. va_list args_copy;
  2626. va_copy (args_copy, args);
  2627. const char *str = "";
  2628. int number = 0;
  2629. float fnumber = 0;
  2630. while (*format)
  2631. {
  2632. switch (*format++)
  2633. {
  2634. case '\''s'\'': // string
  2635. str = va_arg (args_copy, const char *);
  2636. break;
  2637. case '\''d'\'': // int
  2638. number = va_arg (args_copy, int);
  2639. break;
  2640. case '\''f'\'': // float
  2641. fnumber = va_arg (args_copy, double);
  2642. break;
  2643. default:
  2644. break;
  2645. }
  2646. }
  2647. va_end (args_copy);
  2648. va_end (args);
  2649. return *str && number && fnumber;
  2650. }
  2651. '
  2652. # Test code for whether the C compiler supports C99 (body of main).
  2653. ac_c_conftest_c99_main='
  2654. // Check bool.
  2655. _Bool success = false;
  2656. success |= (argc != 0);
  2657. // Check restrict.
  2658. if (test_restrict ("String literal") == 0)
  2659. success = true;
  2660. char *restrict newvar = "Another string";
  2661. // Check varargs.
  2662. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2663. test_varargs_macros ();
  2664. // Check flexible array members.
  2665. struct incomplete_array *ia =
  2666. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2667. ia->datasize = 10;
  2668. for (int i = 0; i < ia->datasize; ++i)
  2669. ia->data[i] = i * 1.234;
  2670. // Check named initializers.
  2671. struct named_init ni = {
  2672. .number = 34,
  2673. .name = L"Test wide string",
  2674. .average = 543.34343,
  2675. };
  2676. ni.number = 58;
  2677. int dynamic_array[ni.number];
  2678. dynamic_array[0] = argv[0][0];
  2679. dynamic_array[ni.number - 1] = 543;
  2680. // work around unused variable warnings
  2681. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2682. || dynamic_array[ni.number - 1] != 543);
  2683. '
  2684. # Test code for whether the C compiler supports C11 (global declarations)
  2685. ac_c_conftest_c11_globals='
  2686. // Does the compiler advertise C11 conformance?
  2687. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2688. # error "Compiler does not advertise C11 conformance"
  2689. #endif
  2690. // Check _Alignas.
  2691. char _Alignas (double) aligned_as_double;
  2692. char _Alignas (0) no_special_alignment;
  2693. extern char aligned_as_int;
  2694. char _Alignas (0) _Alignas (int) aligned_as_int;
  2695. // Check _Alignof.
  2696. enum
  2697. {
  2698. int_alignment = _Alignof (int),
  2699. int_array_alignment = _Alignof (int[100]),
  2700. char_alignment = _Alignof (char)
  2701. };
  2702. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2703. // Check _Noreturn.
  2704. int _Noreturn does_not_return (void) { for (;;) continue; }
  2705. // Check _Static_assert.
  2706. struct test_static_assert
  2707. {
  2708. int x;
  2709. _Static_assert (sizeof (int) <= sizeof (long int),
  2710. "_Static_assert does not work in struct");
  2711. long int y;
  2712. };
  2713. // Check UTF-8 literals.
  2714. #define u8 syntax error!
  2715. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2716. // Check duplicate typedefs.
  2717. typedef long *long_ptr;
  2718. typedef long int *long_ptr;
  2719. typedef long_ptr long_ptr;
  2720. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2721. struct anonymous
  2722. {
  2723. union {
  2724. struct { int i; int j; };
  2725. struct { int k; long int l; } w;
  2726. };
  2727. int m;
  2728. } v1;
  2729. '
  2730. # Test code for whether the C compiler supports C11 (body of main).
  2731. ac_c_conftest_c11_main='
  2732. _Static_assert ((offsetof (struct anonymous, i)
  2733. == offsetof (struct anonymous, w.k)),
  2734. "Anonymous union alignment botch");
  2735. v1.i = 2;
  2736. v1.w.k = 5;
  2737. ok |= v1.i != 5;
  2738. '
  2739. # Test code for whether the C compiler supports C11 (complete).
  2740. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2741. ${ac_c_conftest_c99_globals}
  2742. ${ac_c_conftest_c11_globals}
  2743. int
  2744. main (int argc, char **argv)
  2745. {
  2746. int ok = 0;
  2747. ${ac_c_conftest_c89_main}
  2748. ${ac_c_conftest_c99_main}
  2749. ${ac_c_conftest_c11_main}
  2750. return ok;
  2751. }
  2752. "
  2753. # Test code for whether the C compiler supports C99 (complete).
  2754. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2755. ${ac_c_conftest_c99_globals}
  2756. int
  2757. main (int argc, char **argv)
  2758. {
  2759. int ok = 0;
  2760. ${ac_c_conftest_c89_main}
  2761. ${ac_c_conftest_c99_main}
  2762. return ok;
  2763. }
  2764. "
  2765. # Test code for whether the C compiler supports C89 (complete).
  2766. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2767. int
  2768. main (int argc, char **argv)
  2769. {
  2770. int ok = 0;
  2771. ${ac_c_conftest_c89_main}
  2772. return ok;
  2773. }
  2774. "
  2775. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2776. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2777. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2778. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2779. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2780. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2781. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2782. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2783. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2784. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  2785. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  2786. as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
  2787. as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
  2788. # Auxiliary files required by this configure script.
  2789. ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
  2790. # Locations in which to look for auxiliary files.
  2791. ac_aux_dir_candidates="${srcdir}/build/autoconf"
  2792. # Search for a directory containing all of the required auxiliary files,
  2793. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2794. # If we don't find one directory that contains all the files we need,
  2795. # we report the set of missing files from the *first* directory in
  2796. # $ac_aux_dir_candidates and give up.
  2797. ac_missing_aux_files=""
  2798. ac_first_candidate=:
  2799. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2801. as_found=false
  2802. for as_dir in $ac_aux_dir_candidates
  2803. do
  2804. IFS=$as_save_IFS
  2805. case $as_dir in #(((
  2806. '') as_dir=./ ;;
  2807. */) ;;
  2808. *) as_dir=$as_dir/ ;;
  2809. esac
  2810. as_found=:
  2811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2812. ac_aux_dir_found=yes
  2813. ac_install_sh=
  2814. for ac_aux in $ac_aux_files
  2815. do
  2816. # As a special case, if "install-sh" is required, that requirement
  2817. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2818. # and $ac_install_sh is set appropriately for whichever one is found.
  2819. if test x"$ac_aux" = x"install-sh"
  2820. then
  2821. if test -f "${as_dir}install-sh"; then
  2822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2823. ac_install_sh="${as_dir}install-sh -c"
  2824. elif test -f "${as_dir}install.sh"; then
  2825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2826. ac_install_sh="${as_dir}install.sh -c"
  2827. elif test -f "${as_dir}shtool"; then
  2828. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2829. ac_install_sh="${as_dir}shtool install -c"
  2830. else
  2831. ac_aux_dir_found=no
  2832. if $ac_first_candidate; then
  2833. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2834. else
  2835. break
  2836. fi
  2837. fi
  2838. else
  2839. if test -f "${as_dir}${ac_aux}"; then
  2840. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2841. else
  2842. ac_aux_dir_found=no
  2843. if $ac_first_candidate; then
  2844. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2845. else
  2846. break
  2847. fi
  2848. fi
  2849. fi
  2850. done
  2851. if test "$ac_aux_dir_found" = yes; then
  2852. ac_aux_dir="$as_dir"
  2853. break
  2854. fi
  2855. ac_first_candidate=false
  2856. as_found=false
  2857. done
  2858. IFS=$as_save_IFS
  2859. if $as_found
  2860. then :
  2861. else $as_nop
  2862. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  2863. fi
  2864. # These three variables are undocumented and unsupported,
  2865. # and are intended to be withdrawn in a future Autoconf release.
  2866. # They can cause serious problems if a builder's source tree is in a directory
  2867. # whose full name contains unusual characters.
  2868. if test -f "${ac_aux_dir}config.guess"; then
  2869. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  2870. fi
  2871. if test -f "${ac_aux_dir}config.sub"; then
  2872. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  2873. fi
  2874. if test -f "$ac_aux_dir/configure"; then
  2875. ac_configure="$SHELL ${ac_aux_dir}configure"
  2876. fi
  2877. # Check that the precious variables saved in the cache have kept the same
  2878. # value.
  2879. ac_cache_corrupted=false
  2880. for ac_var in $ac_precious_vars; do
  2881. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2882. eval ac_new_set=\$ac_env_${ac_var}_set
  2883. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2884. eval ac_new_val=\$ac_env_${ac_var}_value
  2885. case $ac_old_set,$ac_new_set in
  2886. set,)
  2887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2888. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2889. ac_cache_corrupted=: ;;
  2890. ,set)
  2891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2892. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2893. ac_cache_corrupted=: ;;
  2894. ,);;
  2895. *)
  2896. if test "x$ac_old_val" != "x$ac_new_val"; then
  2897. # differences in whitespace do not lead to failure.
  2898. ac_old_val_w=`echo x $ac_old_val`
  2899. ac_new_val_w=`echo x $ac_new_val`
  2900. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2902. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2903. ac_cache_corrupted=:
  2904. else
  2905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2906. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2907. eval $ac_var=\$ac_old_val
  2908. fi
  2909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2910. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  2911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2912. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  2913. fi;;
  2914. esac
  2915. # Pass precious variables to config.status.
  2916. if test "$ac_new_set" = set; then
  2917. case $ac_new_val in
  2918. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2919. *) ac_arg=$ac_var=$ac_new_val ;;
  2920. esac
  2921. case " $ac_configure_args " in
  2922. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2923. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2924. esac
  2925. fi
  2926. done
  2927. if $ac_cache_corrupted; then
  2928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2929. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2931. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  2932. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2933. and start over" "$LINENO" 5
  2934. fi
  2935. ## -------------------- ##
  2936. ## Main body of script. ##
  2937. ## -------------------- ##
  2938. ac_ext=c
  2939. ac_cpp='$CPP $CPPFLAGS'
  2940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2943. # Make sure the srcdir contains "libarchive" directory
  2944. # Use auxiliary subscripts from this subdirectory (cleans up root)
  2945. # M4 scripts
  2946. # Must follow AC_CONFIG macros above...
  2947. am__api_version='1.16'
  2948. # Find a good install program. We prefer a C program (faster),
  2949. # so one script is as good as another. But avoid the broken or
  2950. # incompatible versions:
  2951. # SysV /etc/install, /usr/sbin/install
  2952. # SunOS /usr/etc/install
  2953. # IRIX /sbin/install
  2954. # AIX /bin/install
  2955. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2956. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2957. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2958. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2959. # OS/2's system install, which has a completely different semantic
  2960. # ./install, which can be erroneously created by make from ./install.sh.
  2961. # Reject install programs that cannot install multiple files.
  2962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2963. printf %s "checking for a BSD-compatible install... " >&6; }
  2964. if test -z "$INSTALL"; then
  2965. if test ${ac_cv_path_install+y}
  2966. then :
  2967. printf %s "(cached) " >&6
  2968. else $as_nop
  2969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2970. for as_dir in $PATH
  2971. do
  2972. IFS=$as_save_IFS
  2973. case $as_dir in #(((
  2974. '') as_dir=./ ;;
  2975. */) ;;
  2976. *) as_dir=$as_dir/ ;;
  2977. esac
  2978. # Account for fact that we put trailing slashes in our PATH walk.
  2979. case $as_dir in #((
  2980. ./ | /[cC]/* | \
  2981. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2982. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2983. /usr/ucb/* ) ;;
  2984. *)
  2985. # OSF1 and SCO ODT 3.0 have their own names for install.
  2986. # Don't use installbsd from OSF since it installs stuff as root
  2987. # by default.
  2988. for ac_prog in ginstall scoinst install; do
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2991. if test $ac_prog = install &&
  2992. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2993. # AIX install. It has an incompatible calling convention.
  2994. :
  2995. elif test $ac_prog = install &&
  2996. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2997. # program-specific install script used by HP pwplus--don't use.
  2998. :
  2999. else
  3000. rm -rf conftest.one conftest.two conftest.dir
  3001. echo one > conftest.one
  3002. echo two > conftest.two
  3003. mkdir conftest.dir
  3004. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  3005. test -s conftest.one && test -s conftest.two &&
  3006. test -s conftest.dir/conftest.one &&
  3007. test -s conftest.dir/conftest.two
  3008. then
  3009. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  3010. break 3
  3011. fi
  3012. fi
  3013. fi
  3014. done
  3015. done
  3016. ;;
  3017. esac
  3018. done
  3019. IFS=$as_save_IFS
  3020. rm -rf conftest.one conftest.two conftest.dir
  3021. fi
  3022. if test ${ac_cv_path_install+y}; then
  3023. INSTALL=$ac_cv_path_install
  3024. else
  3025. # As a last resort, use the slow shell script. Don't cache a
  3026. # value for INSTALL within a source directory, because that will
  3027. # break other packages using the cache if that directory is
  3028. # removed, or if the value is a relative name.
  3029. INSTALL=$ac_install_sh
  3030. fi
  3031. fi
  3032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3033. printf "%s\n" "$INSTALL" >&6; }
  3034. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3035. # It thinks the first close brace ends the variable substitution.
  3036. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3037. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3038. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3040. printf %s "checking whether build environment is sane... " >&6; }
  3041. # Reject unsafe characters in $srcdir or the absolute working directory
  3042. # name. Accept space and tab only in the latter.
  3043. am_lf='
  3044. '
  3045. case `pwd` in
  3046. *[\\\"\#\$\&\'\`$am_lf]*)
  3047. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3048. esac
  3049. case $srcdir in
  3050. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3051. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3052. esac
  3053. # Do 'set' in a subshell so we don't clobber the current shell's
  3054. # arguments. Must try -L first in case configure is actually a
  3055. # symlink; some systems play weird games with the mod time of symlinks
  3056. # (eg FreeBSD returns the mod time of the symlink's containing
  3057. # directory).
  3058. if (
  3059. am_has_slept=no
  3060. for am_try in 1 2; do
  3061. echo "timestamp, slept: $am_has_slept" > conftest.file
  3062. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3063. if test "$*" = "X"; then
  3064. # -L didn't work.
  3065. set X `ls -t "$srcdir/configure" conftest.file`
  3066. fi
  3067. if test "$*" != "X $srcdir/configure conftest.file" \
  3068. && test "$*" != "X conftest.file $srcdir/configure"; then
  3069. # If neither matched, then we have a broken ls. This can happen
  3070. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3071. # broken ls alias from the environment. This has actually
  3072. # happened. Such a system could not be considered "sane".
  3073. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3074. alias in your environment" "$LINENO" 5
  3075. fi
  3076. if test "$2" = conftest.file || test $am_try -eq 2; then
  3077. break
  3078. fi
  3079. # Just in case.
  3080. sleep 1
  3081. am_has_slept=yes
  3082. done
  3083. test "$2" = conftest.file
  3084. )
  3085. then
  3086. # Ok.
  3087. :
  3088. else
  3089. as_fn_error $? "newly created file is older than distributed files!
  3090. Check your system clock" "$LINENO" 5
  3091. fi
  3092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3093. printf "%s\n" "yes" >&6; }
  3094. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3095. # generated files are strictly newer.
  3096. am_sleep_pid=
  3097. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3098. ( sleep 1 ) &
  3099. am_sleep_pid=$!
  3100. fi
  3101. rm -f conftest.file
  3102. test "$program_prefix" != NONE &&
  3103. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3104. # Use a double $ so make ignores it.
  3105. test "$program_suffix" != NONE &&
  3106. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3107. # Double any \ or $.
  3108. # By default was `s,x,x', remove it if useless.
  3109. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3110. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  3111. # Expand $ac_aux_dir to an absolute path.
  3112. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3113. if test x"${MISSING+set}" != xset; then
  3114. MISSING="\${SHELL} '$am_aux_dir/missing'"
  3115. fi
  3116. # Use eval to expand $SHELL
  3117. if eval "$MISSING --is-lightweight"; then
  3118. am_missing_run="$MISSING "
  3119. else
  3120. am_missing_run=
  3121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3122. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3123. fi
  3124. if test x"${install_sh+set}" != xset; then
  3125. case $am_aux_dir in
  3126. *\ * | *\ *)
  3127. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3128. *)
  3129. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3130. esac
  3131. fi
  3132. # Installed binaries are usually stripped using 'strip' when the user
  3133. # run "make install-strip". However 'strip' might not be the right
  3134. # tool to use in cross-compilation environments, therefore Automake
  3135. # will honor the 'STRIP' environment variable to overrule this program.
  3136. if test "$cross_compiling" != no; then
  3137. if test -n "$ac_tool_prefix"; then
  3138. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3139. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3141. printf %s "checking for $ac_word... " >&6; }
  3142. if test ${ac_cv_prog_STRIP+y}
  3143. then :
  3144. printf %s "(cached) " >&6
  3145. else $as_nop
  3146. if test -n "$STRIP"; then
  3147. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3148. else
  3149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3150. for as_dir in $PATH
  3151. do
  3152. IFS=$as_save_IFS
  3153. case $as_dir in #(((
  3154. '') as_dir=./ ;;
  3155. */) ;;
  3156. *) as_dir=$as_dir/ ;;
  3157. esac
  3158. for ac_exec_ext in '' $ac_executable_extensions; do
  3159. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3160. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3161. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3162. break 2
  3163. fi
  3164. done
  3165. done
  3166. IFS=$as_save_IFS
  3167. fi
  3168. fi
  3169. STRIP=$ac_cv_prog_STRIP
  3170. if test -n "$STRIP"; then
  3171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3172. printf "%s\n" "$STRIP" >&6; }
  3173. else
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3175. printf "%s\n" "no" >&6; }
  3176. fi
  3177. fi
  3178. if test -z "$ac_cv_prog_STRIP"; then
  3179. ac_ct_STRIP=$STRIP
  3180. # Extract the first word of "strip", so it can be a program name with args.
  3181. set dummy strip; ac_word=$2
  3182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3183. printf %s "checking for $ac_word... " >&6; }
  3184. if test ${ac_cv_prog_ac_ct_STRIP+y}
  3185. then :
  3186. printf %s "(cached) " >&6
  3187. else $as_nop
  3188. if test -n "$ac_ct_STRIP"; then
  3189. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. case $as_dir in #(((
  3196. '') as_dir=./ ;;
  3197. */) ;;
  3198. *) as_dir=$as_dir/ ;;
  3199. esac
  3200. for ac_exec_ext in '' $ac_executable_extensions; do
  3201. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3202. ac_cv_prog_ac_ct_STRIP="strip"
  3203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3204. break 2
  3205. fi
  3206. done
  3207. done
  3208. IFS=$as_save_IFS
  3209. fi
  3210. fi
  3211. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3212. if test -n "$ac_ct_STRIP"; then
  3213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3214. printf "%s\n" "$ac_ct_STRIP" >&6; }
  3215. else
  3216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3217. printf "%s\n" "no" >&6; }
  3218. fi
  3219. if test "x$ac_ct_STRIP" = x; then
  3220. STRIP=":"
  3221. else
  3222. case $cross_compiling:$ac_tool_warned in
  3223. yes:)
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3225. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3226. ac_tool_warned=yes ;;
  3227. esac
  3228. STRIP=$ac_ct_STRIP
  3229. fi
  3230. else
  3231. STRIP="$ac_cv_prog_STRIP"
  3232. fi
  3233. fi
  3234. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  3236. printf %s "checking for a race-free mkdir -p... " >&6; }
  3237. if test -z "$MKDIR_P"; then
  3238. if test ${ac_cv_path_mkdir+y}
  3239. then :
  3240. printf %s "(cached) " >&6
  3241. else $as_nop
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  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_prog in mkdir gmkdir; do
  3252. for ac_exec_ext in '' $ac_executable_extensions; do
  3253. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  3254. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3255. 'mkdir ('*'coreutils) '* | \
  3256. 'BusyBox '* | \
  3257. 'mkdir (fileutils) '4.1*)
  3258. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  3259. break 3;;
  3260. esac
  3261. done
  3262. done
  3263. done
  3264. IFS=$as_save_IFS
  3265. fi
  3266. test -d ./--version && rmdir ./--version
  3267. if test ${ac_cv_path_mkdir+y}; then
  3268. MKDIR_P="$ac_cv_path_mkdir -p"
  3269. else
  3270. # As a last resort, use the slow shell script. Don't cache a
  3271. # value for MKDIR_P within a source directory, because that will
  3272. # break other packages using the cache if that directory is
  3273. # removed, or if the value is a relative name.
  3274. MKDIR_P="$ac_install_sh -d"
  3275. fi
  3276. fi
  3277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3278. printf "%s\n" "$MKDIR_P" >&6; }
  3279. for ac_prog in gawk mawk nawk awk
  3280. do
  3281. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3282. set dummy $ac_prog; ac_word=$2
  3283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3284. printf %s "checking for $ac_word... " >&6; }
  3285. if test ${ac_cv_prog_AWK+y}
  3286. then :
  3287. printf %s "(cached) " >&6
  3288. else $as_nop
  3289. if test -n "$AWK"; then
  3290. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3291. else
  3292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3293. for as_dir in $PATH
  3294. do
  3295. IFS=$as_save_IFS
  3296. case $as_dir in #(((
  3297. '') as_dir=./ ;;
  3298. */) ;;
  3299. *) as_dir=$as_dir/ ;;
  3300. esac
  3301. for ac_exec_ext in '' $ac_executable_extensions; do
  3302. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3303. ac_cv_prog_AWK="$ac_prog"
  3304. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3305. break 2
  3306. fi
  3307. done
  3308. done
  3309. IFS=$as_save_IFS
  3310. fi
  3311. fi
  3312. AWK=$ac_cv_prog_AWK
  3313. if test -n "$AWK"; then
  3314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3315. printf "%s\n" "$AWK" >&6; }
  3316. else
  3317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3318. printf "%s\n" "no" >&6; }
  3319. fi
  3320. test -n "$AWK" && break
  3321. done
  3322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3323. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3324. set x ${MAKE-make}
  3325. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3326. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  3327. then :
  3328. printf %s "(cached) " >&6
  3329. else $as_nop
  3330. cat >conftest.make <<\_ACEOF
  3331. SHELL = /bin/sh
  3332. all:
  3333. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3334. _ACEOF
  3335. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3336. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3337. *@@@%%%=?*=@@@%%%*)
  3338. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3339. *)
  3340. eval ac_cv_prog_make_${ac_make}_set=no;;
  3341. esac
  3342. rm -f conftest.make
  3343. fi
  3344. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3346. printf "%s\n" "yes" >&6; }
  3347. SET_MAKE=
  3348. else
  3349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3350. printf "%s\n" "no" >&6; }
  3351. SET_MAKE="MAKE=${MAKE-make}"
  3352. fi
  3353. rm -rf .tst 2>/dev/null
  3354. mkdir .tst 2>/dev/null
  3355. if test -d .tst; then
  3356. am__leading_dot=.
  3357. else
  3358. am__leading_dot=_
  3359. fi
  3360. rmdir .tst 2>/dev/null
  3361. # Check whether --enable-silent-rules was given.
  3362. if test ${enable_silent_rules+y}
  3363. then :
  3364. enableval=$enable_silent_rules;
  3365. fi
  3366. case $enable_silent_rules in # (((
  3367. yes) AM_DEFAULT_VERBOSITY=0;;
  3368. no) AM_DEFAULT_VERBOSITY=1;;
  3369. *) AM_DEFAULT_VERBOSITY=1;;
  3370. esac
  3371. am_make=${MAKE-make}
  3372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3373. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3374. if test ${am_cv_make_support_nested_variables+y}
  3375. then :
  3376. printf %s "(cached) " >&6
  3377. else $as_nop
  3378. if printf "%s\n" 'TRUE=$(BAR$(V))
  3379. BAR0=false
  3380. BAR1=true
  3381. V=1
  3382. am__doit:
  3383. @$(TRUE)
  3384. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3385. am_cv_make_support_nested_variables=yes
  3386. else
  3387. am_cv_make_support_nested_variables=no
  3388. fi
  3389. fi
  3390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3391. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3392. if test $am_cv_make_support_nested_variables = yes; then
  3393. AM_V='$(V)'
  3394. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3395. else
  3396. AM_V=$AM_DEFAULT_VERBOSITY
  3397. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3398. fi
  3399. AM_BACKSLASH='\'
  3400. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3401. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3402. # is not polluted with repeated "-I."
  3403. am__isrc=' -I$(srcdir)'
  3404. # test to see if srcdir already configured
  3405. if test -f $srcdir/config.status; then
  3406. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3407. fi
  3408. fi
  3409. # test whether we have cygpath
  3410. if test -z "$CYGPATH_W"; then
  3411. if (cygpath --version) >/dev/null 2>/dev/null; then
  3412. CYGPATH_W='cygpath -w'
  3413. else
  3414. CYGPATH_W=echo
  3415. fi
  3416. fi
  3417. # Define the identity of the package.
  3418. PACKAGE='libarchive'
  3419. VERSION='3.7.0'
  3420. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  3421. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  3422. # Some tools Automake needs.
  3423. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3424. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3425. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3426. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3427. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3428. # For better backward compatibility. To be removed once Automake 1.9.x
  3429. # dies out for good. For more background, see:
  3430. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3431. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3432. mkdir_p='$(MKDIR_P)'
  3433. # We need awk for the "check" target (and possibly the TAP driver). The
  3434. # system "awk" is bad on some platforms.
  3435. # Always define AMTAR for backward compatibility. Yes, it's still used
  3436. # in the wild :-( We should find a proper way to deprecate it ...
  3437. AMTAR='$${TAR-tar}'
  3438. # We'll loop over all known methods to create a tar archive until one works.
  3439. _am_tools='gnutar pax cpio none'
  3440. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3441. # Variables for tags utilities; see am/tags.am
  3442. if test -z "$CTAGS"; then
  3443. CTAGS=ctags
  3444. fi
  3445. if test -z "$ETAGS"; then
  3446. ETAGS=etags
  3447. fi
  3448. if test -z "$CSCOPE"; then
  3449. CSCOPE=cscope
  3450. fi
  3451. # POSIX will say in a future version that running "rm -f" with no argument
  3452. # is OK; and we want to be able to make that assumption in our Makefile
  3453. # recipes. So use an aggressive probe to check that the usage we want is
  3454. # actually supported "in the wild" to an acceptable degree.
  3455. # See automake bug#10828.
  3456. # To make any issue more visible, cause the running configure to be aborted
  3457. # by default if the 'rm' program in use doesn't match our expectations; the
  3458. # user can still override this though.
  3459. if rm -f && rm -fr && rm -rf; then : OK; else
  3460. cat >&2 <<'END'
  3461. Oops!
  3462. Your 'rm' program seems unable to run without file operands specified
  3463. on the command line, even when the '-f' option is present. This is contrary
  3464. to the behaviour of most rm programs out there, and not conforming with
  3465. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3466. Please tell [email protected] about your system, including the value
  3467. of your $PATH and any error possibly output before this message. This
  3468. can help us improve future automake versions.
  3469. END
  3470. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3471. echo 'Configuration will proceed anyway, since you have set the' >&2
  3472. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3473. echo >&2
  3474. else
  3475. cat >&2 <<'END'
  3476. Aborting the configuration process, to ensure you take notice of the issue.
  3477. You can download and install GNU coreutils to get an 'rm' implementation
  3478. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  3479. If you want to complete the configuration process using your problematic
  3480. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3481. to "yes", and re-run configure.
  3482. END
  3483. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3484. fi
  3485. fi
  3486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  3487. printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  3488. # Check whether --enable-maintainer-mode was given.
  3489. if test ${enable_maintainer_mode+y}
  3490. then :
  3491. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  3492. else $as_nop
  3493. USE_MAINTAINER_MODE=yes
  3494. fi
  3495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  3496. printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
  3497. if test $USE_MAINTAINER_MODE = yes; then
  3498. MAINTAINER_MODE_TRUE=
  3499. MAINTAINER_MODE_FALSE='#'
  3500. else
  3501. MAINTAINER_MODE_TRUE='#'
  3502. MAINTAINER_MODE_FALSE=
  3503. fi
  3504. MAINT=$MAINTAINER_MODE_TRUE
  3505. # Check whether --enable-silent-rules was given.
  3506. if test ${enable_silent_rules+y}
  3507. then :
  3508. enableval=$enable_silent_rules;
  3509. fi
  3510. case $enable_silent_rules in # (((
  3511. yes) AM_DEFAULT_VERBOSITY=0;;
  3512. no) AM_DEFAULT_VERBOSITY=1;;
  3513. *) AM_DEFAULT_VERBOSITY=0;;
  3514. esac
  3515. am_make=${MAKE-make}
  3516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3517. printf %s "checking whether $am_make supports nested variables... " >&6; }
  3518. if test ${am_cv_make_support_nested_variables+y}
  3519. then :
  3520. printf %s "(cached) " >&6
  3521. else $as_nop
  3522. if printf "%s\n" 'TRUE=$(BAR$(V))
  3523. BAR0=false
  3524. BAR1=true
  3525. V=1
  3526. am__doit:
  3527. @$(TRUE)
  3528. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3529. am_cv_make_support_nested_variables=yes
  3530. else
  3531. am_cv_make_support_nested_variables=no
  3532. fi
  3533. fi
  3534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3535. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  3536. if test $am_cv_make_support_nested_variables = yes; then
  3537. AM_V='$(V)'
  3538. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3539. else
  3540. AM_V=$AM_DEFAULT_VERBOSITY
  3541. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3542. fi
  3543. AM_BACKSLASH='\'
  3544. # Libtool's "interface version" can be computed from the libarchive version.
  3545. # Libtool interface version bumps on any API change, so increments
  3546. # whenever libarchive minor version does.
  3547. ARCHIVE_MINOR=$(( (3007000 / 1000) % 1000 ))
  3548. # Libarchive 2.7 == libtool interface 9 = 2 + 7
  3549. # Libarchive 2.8 == libtool interface 10 = 2 + 8
  3550. # Libarchive 2.9 == libtool interface 11 = 2 + 8
  3551. # Libarchive 3.0 == libtool interface 12
  3552. # Libarchive 3.1 == libtool interface 13
  3553. ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`
  3554. # Libarchive revision is bumped on any source change === libtool revision
  3555. ARCHIVE_REVISION=$(( 3007000 % 1000 ))
  3556. # Libarchive minor is bumped on any interface addition === libtool age
  3557. ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR
  3558. # Stick the version numbers into config.h
  3559. printf "%s\n" "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h
  3560. printf "%s\n" "#define LIBARCHIVE_VERSION_STRING \"3.7.0\"" >>confdefs.h
  3561. printf "%s\n" "#define LIBARCHIVE_VERSION_NUMBER \"3007000\"" >>confdefs.h
  3562. printf "%s\n" "#define BSDCPIO_VERSION_STRING \"3.7.0\"" >>confdefs.h
  3563. printf "%s\n" "#define BSDTAR_VERSION_STRING \"3.7.0\"" >>confdefs.h
  3564. printf "%s\n" "#define BSDCAT_VERSION_STRING \"3.7.0\"" >>confdefs.h
  3565. # The shell variables here must be the same as the AC_SUBST() variables
  3566. # below, but the shell variable names apparently cannot be the same as
  3567. # the m4 macro names above. Why? Ask autoconf.
  3568. BSDCPIO_VERSION_STRING=3.7.0
  3569. BSDTAR_VERSION_STRING=3.7.0
  3570. BSDCAT_VERSION_STRING=3.7.0
  3571. LIBARCHIVE_VERSION_STRING=3.7.0
  3572. LIBARCHIVE_VERSION_NUMBER=3007000
  3573. # Substitute the above version numbers into the various files below.
  3574. # Yes, I believe this is the fourth time we define what are essentially
  3575. # the same symbols. Why? Ask autoconf.
  3576. ac_config_headers="$ac_config_headers config.h"
  3577. ac_config_files="$ac_config_files Makefile"
  3578. ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc"
  3579. # Check for host type
  3580. # Make sure we can run config.sub.
  3581. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3582. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3584. printf %s "checking build system type... " >&6; }
  3585. if test ${ac_cv_build+y}
  3586. then :
  3587. printf %s "(cached) " >&6
  3588. else $as_nop
  3589. ac_build_alias=$build_alias
  3590. test "x$ac_build_alias" = x &&
  3591. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3592. test "x$ac_build_alias" = x &&
  3593. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3594. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3595. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3596. fi
  3597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3598. printf "%s\n" "$ac_cv_build" >&6; }
  3599. case $ac_cv_build in
  3600. *-*-*) ;;
  3601. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3602. esac
  3603. build=$ac_cv_build
  3604. ac_save_IFS=$IFS; IFS='-'
  3605. set x $ac_cv_build
  3606. shift
  3607. build_cpu=$1
  3608. build_vendor=$2
  3609. shift; shift
  3610. # Remember, the first character of IFS is used to create $*,
  3611. # except with old shells:
  3612. build_os=$*
  3613. IFS=$ac_save_IFS
  3614. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3616. printf %s "checking host system type... " >&6; }
  3617. if test ${ac_cv_host+y}
  3618. then :
  3619. printf %s "(cached) " >&6
  3620. else $as_nop
  3621. if test "x$host_alias" = x; then
  3622. ac_cv_host=$ac_cv_build
  3623. else
  3624. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3625. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3626. fi
  3627. fi
  3628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3629. printf "%s\n" "$ac_cv_host" >&6; }
  3630. case $ac_cv_host in
  3631. *-*-*) ;;
  3632. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3633. esac
  3634. host=$ac_cv_host
  3635. ac_save_IFS=$IFS; IFS='-'
  3636. set x $ac_cv_host
  3637. shift
  3638. host_cpu=$1
  3639. host_vendor=$2
  3640. shift; shift
  3641. # Remember, the first character of IFS is used to create $*,
  3642. # except with old shells:
  3643. host_os=$*
  3644. IFS=$ac_save_IFS
  3645. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3646. inc_windows_files=no
  3647. inc_cygwin_files=no
  3648. case "$host_os" in
  3649. *mingw* ) inc_windows_files=yes ;;
  3650. *cygwin* | *msys*) inc_cygwin_files=yes ;;
  3651. esac
  3652. if test $inc_windows_files = yes; then
  3653. INC_WINDOWS_FILES_TRUE=
  3654. INC_WINDOWS_FILES_FALSE='#'
  3655. else
  3656. INC_WINDOWS_FILES_TRUE='#'
  3657. INC_WINDOWS_FILES_FALSE=
  3658. fi
  3659. if test $inc_cygwin_files = yes; then
  3660. INC_CYGWIN_FILES_TRUE=
  3661. INC_CYGWIN_FILES_FALSE='#'
  3662. else
  3663. INC_CYGWIN_FILES_TRUE='#'
  3664. INC_CYGWIN_FILES_FALSE=
  3665. fi
  3666. PLATFORMCPPFLAGS=
  3667. case "$host_os" in
  3668. *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO -D__MINGW_USE_VC2005_COMPAT ;;
  3669. esac
  3670. # Checks for programs.
  3671. ac_ext=c
  3672. ac_cpp='$CPP $CPPFLAGS'
  3673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3676. if test -n "$ac_tool_prefix"; then
  3677. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3678. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3680. printf %s "checking for $ac_word... " >&6; }
  3681. if test ${ac_cv_prog_CC+y}
  3682. then :
  3683. printf %s "(cached) " >&6
  3684. else $as_nop
  3685. if test -n "$CC"; then
  3686. ac_cv_prog_CC="$CC" # Let the user override the test.
  3687. else
  3688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3689. for as_dir in $PATH
  3690. do
  3691. IFS=$as_save_IFS
  3692. case $as_dir in #(((
  3693. '') as_dir=./ ;;
  3694. */) ;;
  3695. *) as_dir=$as_dir/ ;;
  3696. esac
  3697. for ac_exec_ext in '' $ac_executable_extensions; do
  3698. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3699. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3700. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3701. break 2
  3702. fi
  3703. done
  3704. done
  3705. IFS=$as_save_IFS
  3706. fi
  3707. fi
  3708. CC=$ac_cv_prog_CC
  3709. if test -n "$CC"; then
  3710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3711. printf "%s\n" "$CC" >&6; }
  3712. else
  3713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3714. printf "%s\n" "no" >&6; }
  3715. fi
  3716. fi
  3717. if test -z "$ac_cv_prog_CC"; then
  3718. ac_ct_CC=$CC
  3719. # Extract the first word of "gcc", so it can be a program name with args.
  3720. set dummy gcc; ac_word=$2
  3721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3722. printf %s "checking for $ac_word... " >&6; }
  3723. if test ${ac_cv_prog_ac_ct_CC+y}
  3724. then :
  3725. printf %s "(cached) " >&6
  3726. else $as_nop
  3727. if test -n "$ac_ct_CC"; then
  3728. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3729. else
  3730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3731. for as_dir in $PATH
  3732. do
  3733. IFS=$as_save_IFS
  3734. case $as_dir in #(((
  3735. '') as_dir=./ ;;
  3736. */) ;;
  3737. *) as_dir=$as_dir/ ;;
  3738. esac
  3739. for ac_exec_ext in '' $ac_executable_extensions; do
  3740. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3741. ac_cv_prog_ac_ct_CC="gcc"
  3742. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3743. break 2
  3744. fi
  3745. done
  3746. done
  3747. IFS=$as_save_IFS
  3748. fi
  3749. fi
  3750. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3751. if test -n "$ac_ct_CC"; then
  3752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3753. printf "%s\n" "$ac_ct_CC" >&6; }
  3754. else
  3755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3756. printf "%s\n" "no" >&6; }
  3757. fi
  3758. if test "x$ac_ct_CC" = x; then
  3759. CC=""
  3760. else
  3761. case $cross_compiling:$ac_tool_warned in
  3762. yes:)
  3763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3764. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3765. ac_tool_warned=yes ;;
  3766. esac
  3767. CC=$ac_ct_CC
  3768. fi
  3769. else
  3770. CC="$ac_cv_prog_CC"
  3771. fi
  3772. if test -z "$CC"; then
  3773. if test -n "$ac_tool_prefix"; then
  3774. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3775. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3777. printf %s "checking for $ac_word... " >&6; }
  3778. if test ${ac_cv_prog_CC+y}
  3779. then :
  3780. printf %s "(cached) " >&6
  3781. else $as_nop
  3782. if test -n "$CC"; then
  3783. ac_cv_prog_CC="$CC" # Let the user override the test.
  3784. else
  3785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3786. for as_dir in $PATH
  3787. do
  3788. IFS=$as_save_IFS
  3789. case $as_dir in #(((
  3790. '') as_dir=./ ;;
  3791. */) ;;
  3792. *) as_dir=$as_dir/ ;;
  3793. esac
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3796. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3798. break 2
  3799. fi
  3800. done
  3801. done
  3802. IFS=$as_save_IFS
  3803. fi
  3804. fi
  3805. CC=$ac_cv_prog_CC
  3806. if test -n "$CC"; then
  3807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3808. printf "%s\n" "$CC" >&6; }
  3809. else
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3811. printf "%s\n" "no" >&6; }
  3812. fi
  3813. fi
  3814. fi
  3815. if test -z "$CC"; then
  3816. # Extract the first word of "cc", so it can be a program name with args.
  3817. set dummy cc; ac_word=$2
  3818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3819. printf %s "checking for $ac_word... " >&6; }
  3820. if test ${ac_cv_prog_CC+y}
  3821. then :
  3822. printf %s "(cached) " >&6
  3823. else $as_nop
  3824. if test -n "$CC"; then
  3825. ac_cv_prog_CC="$CC" # Let the user override the test.
  3826. else
  3827. ac_prog_rejected=no
  3828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3829. for as_dir in $PATH
  3830. do
  3831. IFS=$as_save_IFS
  3832. case $as_dir in #(((
  3833. '') as_dir=./ ;;
  3834. */) ;;
  3835. *) as_dir=$as_dir/ ;;
  3836. esac
  3837. for ac_exec_ext in '' $ac_executable_extensions; do
  3838. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3839. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3840. ac_prog_rejected=yes
  3841. continue
  3842. fi
  3843. ac_cv_prog_CC="cc"
  3844. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3845. break 2
  3846. fi
  3847. done
  3848. done
  3849. IFS=$as_save_IFS
  3850. if test $ac_prog_rejected = yes; then
  3851. # We found a bogon in the path, so make sure we never use it.
  3852. set dummy $ac_cv_prog_CC
  3853. shift
  3854. if test $# != 0; then
  3855. # We chose a different compiler from the bogus one.
  3856. # However, it has the same basename, so the bogon will be chosen
  3857. # first if we set CC to just the basename; use the full file name.
  3858. shift
  3859. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3860. fi
  3861. fi
  3862. fi
  3863. fi
  3864. CC=$ac_cv_prog_CC
  3865. if test -n "$CC"; then
  3866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3867. printf "%s\n" "$CC" >&6; }
  3868. else
  3869. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3870. printf "%s\n" "no" >&6; }
  3871. fi
  3872. fi
  3873. if test -z "$CC"; then
  3874. if test -n "$ac_tool_prefix"; then
  3875. for ac_prog in cl.exe
  3876. do
  3877. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3878. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3880. printf %s "checking for $ac_word... " >&6; }
  3881. if test ${ac_cv_prog_CC+y}
  3882. then :
  3883. printf %s "(cached) " >&6
  3884. else $as_nop
  3885. if test -n "$CC"; then
  3886. ac_cv_prog_CC="$CC" # Let the user override the test.
  3887. else
  3888. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3889. for as_dir in $PATH
  3890. do
  3891. IFS=$as_save_IFS
  3892. case $as_dir in #(((
  3893. '') as_dir=./ ;;
  3894. */) ;;
  3895. *) as_dir=$as_dir/ ;;
  3896. esac
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3899. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3900. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3901. break 2
  3902. fi
  3903. done
  3904. done
  3905. IFS=$as_save_IFS
  3906. fi
  3907. fi
  3908. CC=$ac_cv_prog_CC
  3909. if test -n "$CC"; then
  3910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3911. printf "%s\n" "$CC" >&6; }
  3912. else
  3913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3914. printf "%s\n" "no" >&6; }
  3915. fi
  3916. test -n "$CC" && break
  3917. done
  3918. fi
  3919. if test -z "$CC"; then
  3920. ac_ct_CC=$CC
  3921. for ac_prog in cl.exe
  3922. do
  3923. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3924. set dummy $ac_prog; ac_word=$2
  3925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3926. printf %s "checking for $ac_word... " >&6; }
  3927. if test ${ac_cv_prog_ac_ct_CC+y}
  3928. then :
  3929. printf %s "(cached) " >&6
  3930. else $as_nop
  3931. if test -n "$ac_ct_CC"; then
  3932. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. case $as_dir in #(((
  3939. '') as_dir=./ ;;
  3940. */) ;;
  3941. *) as_dir=$as_dir/ ;;
  3942. esac
  3943. for ac_exec_ext in '' $ac_executable_extensions; do
  3944. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3945. ac_cv_prog_ac_ct_CC="$ac_prog"
  3946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3947. break 2
  3948. fi
  3949. done
  3950. done
  3951. IFS=$as_save_IFS
  3952. fi
  3953. fi
  3954. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3955. if test -n "$ac_ct_CC"; then
  3956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3957. printf "%s\n" "$ac_ct_CC" >&6; }
  3958. else
  3959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3960. printf "%s\n" "no" >&6; }
  3961. fi
  3962. test -n "$ac_ct_CC" && break
  3963. done
  3964. if test "x$ac_ct_CC" = x; then
  3965. CC=""
  3966. else
  3967. case $cross_compiling:$ac_tool_warned in
  3968. yes:)
  3969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3970. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3971. ac_tool_warned=yes ;;
  3972. esac
  3973. CC=$ac_ct_CC
  3974. fi
  3975. fi
  3976. fi
  3977. if test -z "$CC"; then
  3978. if test -n "$ac_tool_prefix"; then
  3979. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3980. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3982. printf %s "checking for $ac_word... " >&6; }
  3983. if test ${ac_cv_prog_CC+y}
  3984. then :
  3985. printf %s "(cached) " >&6
  3986. else $as_nop
  3987. if test -n "$CC"; then
  3988. ac_cv_prog_CC="$CC" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. case $as_dir in #(((
  3995. '') as_dir=./ ;;
  3996. */) ;;
  3997. *) as_dir=$as_dir/ ;;
  3998. esac
  3999. for ac_exec_ext in '' $ac_executable_extensions; do
  4000. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4001. ac_cv_prog_CC="${ac_tool_prefix}clang"
  4002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4003. break 2
  4004. fi
  4005. done
  4006. done
  4007. IFS=$as_save_IFS
  4008. fi
  4009. fi
  4010. CC=$ac_cv_prog_CC
  4011. if test -n "$CC"; then
  4012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4013. printf "%s\n" "$CC" >&6; }
  4014. else
  4015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4016. printf "%s\n" "no" >&6; }
  4017. fi
  4018. fi
  4019. if test -z "$ac_cv_prog_CC"; then
  4020. ac_ct_CC=$CC
  4021. # Extract the first word of "clang", so it can be a program name with args.
  4022. set dummy clang; ac_word=$2
  4023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4024. printf %s "checking for $ac_word... " >&6; }
  4025. if test ${ac_cv_prog_ac_ct_CC+y}
  4026. then :
  4027. printf %s "(cached) " >&6
  4028. else $as_nop
  4029. if test -n "$ac_ct_CC"; then
  4030. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4031. else
  4032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4033. for as_dir in $PATH
  4034. do
  4035. IFS=$as_save_IFS
  4036. case $as_dir in #(((
  4037. '') as_dir=./ ;;
  4038. */) ;;
  4039. *) as_dir=$as_dir/ ;;
  4040. esac
  4041. for ac_exec_ext in '' $ac_executable_extensions; do
  4042. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4043. ac_cv_prog_ac_ct_CC="clang"
  4044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4045. break 2
  4046. fi
  4047. done
  4048. done
  4049. IFS=$as_save_IFS
  4050. fi
  4051. fi
  4052. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4053. if test -n "$ac_ct_CC"; then
  4054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4055. printf "%s\n" "$ac_ct_CC" >&6; }
  4056. else
  4057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4058. printf "%s\n" "no" >&6; }
  4059. fi
  4060. if test "x$ac_ct_CC" = x; then
  4061. CC=""
  4062. else
  4063. case $cross_compiling:$ac_tool_warned in
  4064. yes:)
  4065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4066. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4067. ac_tool_warned=yes ;;
  4068. esac
  4069. CC=$ac_ct_CC
  4070. fi
  4071. else
  4072. CC="$ac_cv_prog_CC"
  4073. fi
  4074. fi
  4075. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4076. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4077. as_fn_error $? "no acceptable C compiler found in \$PATH
  4078. See \`config.log' for more details" "$LINENO" 5; }
  4079. # Provide some information about the compiler.
  4080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4081. set X $ac_compile
  4082. ac_compiler=$2
  4083. for ac_option in --version -v -V -qversion -version; do
  4084. { { ac_try="$ac_compiler $ac_option >&5"
  4085. case "(($ac_try" in
  4086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4087. *) ac_try_echo=$ac_try;;
  4088. esac
  4089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4090. printf "%s\n" "$ac_try_echo"; } >&5
  4091. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4092. ac_status=$?
  4093. if test -s conftest.err; then
  4094. sed '10a\
  4095. ... rest of stderr output deleted ...
  4096. 10q' conftest.err >conftest.er1
  4097. cat conftest.er1 >&5
  4098. fi
  4099. rm -f conftest.er1 conftest.err
  4100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4101. test $ac_status = 0; }
  4102. done
  4103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4104. /* end confdefs.h. */
  4105. int
  4106. main (void)
  4107. {
  4108. ;
  4109. return 0;
  4110. }
  4111. _ACEOF
  4112. ac_clean_files_save=$ac_clean_files
  4113. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4114. # Try to create an executable without -o first, disregard a.out.
  4115. # It will help us diagnose broken compilers, and finding out an intuition
  4116. # of exeext.
  4117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4118. printf %s "checking whether the C compiler works... " >&6; }
  4119. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4120. # The possible output files:
  4121. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4122. ac_rmfiles=
  4123. for ac_file in $ac_files
  4124. do
  4125. case $ac_file in
  4126. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4127. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4128. esac
  4129. done
  4130. rm -f $ac_rmfiles
  4131. if { { ac_try="$ac_link_default"
  4132. case "(($ac_try" in
  4133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4134. *) ac_try_echo=$ac_try;;
  4135. esac
  4136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4137. printf "%s\n" "$ac_try_echo"; } >&5
  4138. (eval "$ac_link_default") 2>&5
  4139. ac_status=$?
  4140. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4141. test $ac_status = 0; }
  4142. then :
  4143. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4144. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4145. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4146. # so that the user can short-circuit this test for compilers unknown to
  4147. # Autoconf.
  4148. for ac_file in $ac_files ''
  4149. do
  4150. test -f "$ac_file" || continue
  4151. case $ac_file in
  4152. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4153. ;;
  4154. [ab].out )
  4155. # We found the default executable, but exeext='' is most
  4156. # certainly right.
  4157. break;;
  4158. *.* )
  4159. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4160. then :; else
  4161. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4162. fi
  4163. # We set ac_cv_exeext here because the later test for it is not
  4164. # safe: cross compilers may not add the suffix if given an `-o'
  4165. # argument, so we may need to know it at that point already.
  4166. # Even if this section looks crufty: it has the advantage of
  4167. # actually working.
  4168. break;;
  4169. * )
  4170. break;;
  4171. esac
  4172. done
  4173. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4174. else $as_nop
  4175. ac_file=''
  4176. fi
  4177. if test -z "$ac_file"
  4178. then :
  4179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4180. printf "%s\n" "no" >&6; }
  4181. printf "%s\n" "$as_me: failed program was:" >&5
  4182. sed 's/^/| /' conftest.$ac_ext >&5
  4183. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4184. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4185. as_fn_error 77 "C compiler cannot create executables
  4186. See \`config.log' for more details" "$LINENO" 5; }
  4187. else $as_nop
  4188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4189. printf "%s\n" "yes" >&6; }
  4190. fi
  4191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4192. printf %s "checking for C compiler default output file name... " >&6; }
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4194. printf "%s\n" "$ac_file" >&6; }
  4195. ac_exeext=$ac_cv_exeext
  4196. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4197. ac_clean_files=$ac_clean_files_save
  4198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4199. printf %s "checking for suffix of executables... " >&6; }
  4200. if { { ac_try="$ac_link"
  4201. case "(($ac_try" in
  4202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4203. *) ac_try_echo=$ac_try;;
  4204. esac
  4205. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4206. printf "%s\n" "$ac_try_echo"; } >&5
  4207. (eval "$ac_link") 2>&5
  4208. ac_status=$?
  4209. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4210. test $ac_status = 0; }
  4211. then :
  4212. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4213. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4214. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4215. # `rm'.
  4216. for ac_file in conftest.exe conftest conftest.*; do
  4217. test -f "$ac_file" || continue
  4218. case $ac_file in
  4219. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4220. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4221. break;;
  4222. * ) break;;
  4223. esac
  4224. done
  4225. else $as_nop
  4226. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4227. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4228. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4229. See \`config.log' for more details" "$LINENO" 5; }
  4230. fi
  4231. rm -f conftest conftest$ac_cv_exeext
  4232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4233. printf "%s\n" "$ac_cv_exeext" >&6; }
  4234. rm -f conftest.$ac_ext
  4235. EXEEXT=$ac_cv_exeext
  4236. ac_exeext=$EXEEXT
  4237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4238. /* end confdefs.h. */
  4239. #include <stdio.h>
  4240. int
  4241. main (void)
  4242. {
  4243. FILE *f = fopen ("conftest.out", "w");
  4244. return ferror (f) || fclose (f) != 0;
  4245. ;
  4246. return 0;
  4247. }
  4248. _ACEOF
  4249. ac_clean_files="$ac_clean_files conftest.out"
  4250. # Check that the compiler produces executables we can run. If not, either
  4251. # the compiler is broken, or we cross compile.
  4252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4253. printf %s "checking whether we are cross compiling... " >&6; }
  4254. if test "$cross_compiling" != yes; then
  4255. { { ac_try="$ac_link"
  4256. case "(($ac_try" in
  4257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4258. *) ac_try_echo=$ac_try;;
  4259. esac
  4260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4261. printf "%s\n" "$ac_try_echo"; } >&5
  4262. (eval "$ac_link") 2>&5
  4263. ac_status=$?
  4264. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4265. test $ac_status = 0; }
  4266. if { ac_try='./conftest$ac_cv_exeext'
  4267. { { case "(($ac_try" in
  4268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4269. *) ac_try_echo=$ac_try;;
  4270. esac
  4271. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4272. printf "%s\n" "$ac_try_echo"; } >&5
  4273. (eval "$ac_try") 2>&5
  4274. ac_status=$?
  4275. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4276. test $ac_status = 0; }; }; then
  4277. cross_compiling=no
  4278. else
  4279. if test "$cross_compiling" = maybe; then
  4280. cross_compiling=yes
  4281. else
  4282. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4283. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4284. as_fn_error 77 "cannot run C compiled programs.
  4285. If you meant to cross compile, use \`--host'.
  4286. See \`config.log' for more details" "$LINENO" 5; }
  4287. fi
  4288. fi
  4289. fi
  4290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4291. printf "%s\n" "$cross_compiling" >&6; }
  4292. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4293. ac_clean_files=$ac_clean_files_save
  4294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4295. printf %s "checking for suffix of object files... " >&6; }
  4296. if test ${ac_cv_objext+y}
  4297. then :
  4298. printf %s "(cached) " >&6
  4299. else $as_nop
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. int
  4303. main (void)
  4304. {
  4305. ;
  4306. return 0;
  4307. }
  4308. _ACEOF
  4309. rm -f conftest.o conftest.obj
  4310. if { { ac_try="$ac_compile"
  4311. case "(($ac_try" in
  4312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4313. *) ac_try_echo=$ac_try;;
  4314. esac
  4315. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4316. printf "%s\n" "$ac_try_echo"; } >&5
  4317. (eval "$ac_compile") 2>&5
  4318. ac_status=$?
  4319. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4320. test $ac_status = 0; }
  4321. then :
  4322. for ac_file in conftest.o conftest.obj conftest.*; do
  4323. test -f "$ac_file" || continue;
  4324. case $ac_file in
  4325. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4326. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4327. break;;
  4328. esac
  4329. done
  4330. else $as_nop
  4331. printf "%s\n" "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4334. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4335. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4336. See \`config.log' for more details" "$LINENO" 5; }
  4337. fi
  4338. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4339. fi
  4340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4341. printf "%s\n" "$ac_cv_objext" >&6; }
  4342. OBJEXT=$ac_cv_objext
  4343. ac_objext=$OBJEXT
  4344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4345. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4346. if test ${ac_cv_c_compiler_gnu+y}
  4347. then :
  4348. printf %s "(cached) " >&6
  4349. else $as_nop
  4350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h. */
  4352. int
  4353. main (void)
  4354. {
  4355. #ifndef __GNUC__
  4356. choke me
  4357. #endif
  4358. ;
  4359. return 0;
  4360. }
  4361. _ACEOF
  4362. if ac_fn_c_try_compile "$LINENO"
  4363. then :
  4364. ac_compiler_gnu=yes
  4365. else $as_nop
  4366. ac_compiler_gnu=no
  4367. fi
  4368. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4369. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4370. fi
  4371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4372. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4374. if test $ac_compiler_gnu = yes; then
  4375. GCC=yes
  4376. else
  4377. GCC=
  4378. fi
  4379. ac_test_CFLAGS=${CFLAGS+y}
  4380. ac_save_CFLAGS=$CFLAGS
  4381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4382. printf %s "checking whether $CC accepts -g... " >&6; }
  4383. if test ${ac_cv_prog_cc_g+y}
  4384. then :
  4385. printf %s "(cached) " >&6
  4386. else $as_nop
  4387. ac_save_c_werror_flag=$ac_c_werror_flag
  4388. ac_c_werror_flag=yes
  4389. ac_cv_prog_cc_g=no
  4390. CFLAGS="-g"
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. int
  4394. main (void)
  4395. {
  4396. ;
  4397. return 0;
  4398. }
  4399. _ACEOF
  4400. if ac_fn_c_try_compile "$LINENO"
  4401. then :
  4402. ac_cv_prog_cc_g=yes
  4403. else $as_nop
  4404. CFLAGS=""
  4405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end confdefs.h. */
  4407. int
  4408. main (void)
  4409. {
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. if ac_fn_c_try_compile "$LINENO"
  4415. then :
  4416. else $as_nop
  4417. ac_c_werror_flag=$ac_save_c_werror_flag
  4418. CFLAGS="-g"
  4419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4420. /* end confdefs.h. */
  4421. int
  4422. main (void)
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_compile "$LINENO"
  4429. then :
  4430. ac_cv_prog_cc_g=yes
  4431. fi
  4432. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4433. fi
  4434. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4435. fi
  4436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4437. ac_c_werror_flag=$ac_save_c_werror_flag
  4438. fi
  4439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4440. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4441. if test $ac_test_CFLAGS; then
  4442. CFLAGS=$ac_save_CFLAGS
  4443. elif test $ac_cv_prog_cc_g = yes; then
  4444. if test "$GCC" = yes; then
  4445. CFLAGS="-g -O2"
  4446. else
  4447. CFLAGS="-g"
  4448. fi
  4449. else
  4450. if test "$GCC" = yes; then
  4451. CFLAGS="-O2"
  4452. else
  4453. CFLAGS=
  4454. fi
  4455. fi
  4456. ac_prog_cc_stdc=no
  4457. if test x$ac_prog_cc_stdc = xno
  4458. then :
  4459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4460. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4461. if test ${ac_cv_prog_cc_c11+y}
  4462. then :
  4463. printf %s "(cached) " >&6
  4464. else $as_nop
  4465. ac_cv_prog_cc_c11=no
  4466. ac_save_CC=$CC
  4467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4468. /* end confdefs.h. */
  4469. $ac_c_conftest_c11_program
  4470. _ACEOF
  4471. for ac_arg in '' -std=gnu11
  4472. do
  4473. CC="$ac_save_CC $ac_arg"
  4474. if ac_fn_c_try_compile "$LINENO"
  4475. then :
  4476. ac_cv_prog_cc_c11=$ac_arg
  4477. fi
  4478. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4479. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4480. done
  4481. rm -f conftest.$ac_ext
  4482. CC=$ac_save_CC
  4483. fi
  4484. if test "x$ac_cv_prog_cc_c11" = xno
  4485. then :
  4486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4487. printf "%s\n" "unsupported" >&6; }
  4488. else $as_nop
  4489. if test "x$ac_cv_prog_cc_c11" = x
  4490. then :
  4491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4492. printf "%s\n" "none needed" >&6; }
  4493. else $as_nop
  4494. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4495. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4496. CC="$CC $ac_cv_prog_cc_c11"
  4497. fi
  4498. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4499. ac_prog_cc_stdc=c11
  4500. fi
  4501. fi
  4502. if test x$ac_prog_cc_stdc = xno
  4503. then :
  4504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4505. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4506. if test ${ac_cv_prog_cc_c99+y}
  4507. then :
  4508. printf %s "(cached) " >&6
  4509. else $as_nop
  4510. ac_cv_prog_cc_c99=no
  4511. ac_save_CC=$CC
  4512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4513. /* end confdefs.h. */
  4514. $ac_c_conftest_c99_program
  4515. _ACEOF
  4516. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4517. do
  4518. CC="$ac_save_CC $ac_arg"
  4519. if ac_fn_c_try_compile "$LINENO"
  4520. then :
  4521. ac_cv_prog_cc_c99=$ac_arg
  4522. fi
  4523. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4524. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4525. done
  4526. rm -f conftest.$ac_ext
  4527. CC=$ac_save_CC
  4528. fi
  4529. if test "x$ac_cv_prog_cc_c99" = xno
  4530. then :
  4531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4532. printf "%s\n" "unsupported" >&6; }
  4533. else $as_nop
  4534. if test "x$ac_cv_prog_cc_c99" = x
  4535. then :
  4536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4537. printf "%s\n" "none needed" >&6; }
  4538. else $as_nop
  4539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4540. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4541. CC="$CC $ac_cv_prog_cc_c99"
  4542. fi
  4543. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4544. ac_prog_cc_stdc=c99
  4545. fi
  4546. fi
  4547. if test x$ac_prog_cc_stdc = xno
  4548. then :
  4549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4550. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4551. if test ${ac_cv_prog_cc_c89+y}
  4552. then :
  4553. printf %s "(cached) " >&6
  4554. else $as_nop
  4555. ac_cv_prog_cc_c89=no
  4556. ac_save_CC=$CC
  4557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4558. /* end confdefs.h. */
  4559. $ac_c_conftest_c89_program
  4560. _ACEOF
  4561. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4562. do
  4563. CC="$ac_save_CC $ac_arg"
  4564. if ac_fn_c_try_compile "$LINENO"
  4565. then :
  4566. ac_cv_prog_cc_c89=$ac_arg
  4567. fi
  4568. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4569. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4570. done
  4571. rm -f conftest.$ac_ext
  4572. CC=$ac_save_CC
  4573. fi
  4574. if test "x$ac_cv_prog_cc_c89" = xno
  4575. then :
  4576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4577. printf "%s\n" "unsupported" >&6; }
  4578. else $as_nop
  4579. if test "x$ac_cv_prog_cc_c89" = x
  4580. then :
  4581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4582. printf "%s\n" "none needed" >&6; }
  4583. else $as_nop
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4585. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4586. CC="$CC $ac_cv_prog_cc_c89"
  4587. fi
  4588. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4589. ac_prog_cc_stdc=c89
  4590. fi
  4591. fi
  4592. ac_ext=c
  4593. ac_cpp='$CPP $CPPFLAGS'
  4594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4597. ac_ext=c
  4598. ac_cpp='$CPP $CPPFLAGS'
  4599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4603. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  4604. if test ${am_cv_prog_cc_c_o+y}
  4605. then :
  4606. printf %s "(cached) " >&6
  4607. else $as_nop
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. int
  4611. main (void)
  4612. {
  4613. ;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. # Make sure it works both with $CC and with simple cc.
  4618. # Following AC_PROG_CC_C_O, we do the test twice because some
  4619. # compilers refuse to overwrite an existing .o file with -o,
  4620. # though they will create one.
  4621. am_cv_prog_cc_c_o=yes
  4622. for am_i in 1 2; do
  4623. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4624. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4625. ac_status=$?
  4626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4627. (exit $ac_status); } \
  4628. && test -f conftest2.$ac_objext; then
  4629. : OK
  4630. else
  4631. am_cv_prog_cc_c_o=no
  4632. break
  4633. fi
  4634. done
  4635. rm -f core conftest*
  4636. unset am_i
  4637. fi
  4638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4639. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  4640. if test "$am_cv_prog_cc_c_o" != yes; then
  4641. # Losing compiler, so override with the script.
  4642. # FIXME: It is wrong to rewrite CC.
  4643. # But if we don't then we get into trouble of one sort or another.
  4644. # A longer-term fix would be to have automake use am__CC in this case,
  4645. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4646. CC="$am_aux_dir/compile $CC"
  4647. fi
  4648. ac_ext=c
  4649. ac_cpp='$CPP $CPPFLAGS'
  4650. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4651. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4652. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4653. DEPDIR="${am__leading_dot}deps"
  4654. ac_config_commands="$ac_config_commands depfiles"
  4655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  4656. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  4657. cat > confinc.mk << 'END'
  4658. am__doit:
  4659. @echo this is the am__doit target >confinc.out
  4660. .PHONY: am__doit
  4661. END
  4662. am__include="#"
  4663. am__quote=
  4664. # BSD make does it like this.
  4665. echo '.include "confinc.mk" # ignored' > confmf.BSD
  4666. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  4667. echo 'include confinc.mk # ignored' > confmf.GNU
  4668. _am_result=no
  4669. for s in GNU BSD; do
  4670. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  4671. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  4672. ac_status=$?
  4673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4674. (exit $ac_status); }
  4675. case $?:`cat confinc.out 2>/dev/null` in #(
  4676. '0:this is the am__doit target') :
  4677. case $s in #(
  4678. BSD) :
  4679. am__include='.include' am__quote='"' ;; #(
  4680. *) :
  4681. am__include='include' am__quote='' ;;
  4682. esac ;; #(
  4683. *) :
  4684. ;;
  4685. esac
  4686. if test "$am__include" != "#"; then
  4687. _am_result="yes ($s style)"
  4688. break
  4689. fi
  4690. done
  4691. rm -f confinc.* confmf.*
  4692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  4693. printf "%s\n" "${_am_result}" >&6; }
  4694. # Check whether --enable-dependency-tracking was given.
  4695. if test ${enable_dependency_tracking+y}
  4696. then :
  4697. enableval=$enable_dependency_tracking;
  4698. fi
  4699. if test "x$enable_dependency_tracking" != xno; then
  4700. am_depcomp="$ac_aux_dir/depcomp"
  4701. AMDEPBACKSLASH='\'
  4702. am__nodep='_no'
  4703. fi
  4704. if test "x$enable_dependency_tracking" != xno; then
  4705. AMDEP_TRUE=
  4706. AMDEP_FALSE='#'
  4707. else
  4708. AMDEP_TRUE='#'
  4709. AMDEP_FALSE=
  4710. fi
  4711. depcc="$CC" am_compiler_list=
  4712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4713. printf %s "checking dependency style of $depcc... " >&6; }
  4714. if test ${am_cv_CC_dependencies_compiler_type+y}
  4715. then :
  4716. printf %s "(cached) " >&6
  4717. else $as_nop
  4718. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4719. # We make a subdir and do the tests there. Otherwise we can end up
  4720. # making bogus files that we don't know about and never remove. For
  4721. # instance it was reported that on HP-UX the gcc test will end up
  4722. # making a dummy file named 'D' -- because '-MD' means "put the output
  4723. # in D".
  4724. rm -rf conftest.dir
  4725. mkdir conftest.dir
  4726. # Copy depcomp to subdir because otherwise we won't find it if we're
  4727. # using a relative directory.
  4728. cp "$am_depcomp" conftest.dir
  4729. cd conftest.dir
  4730. # We will build objects and dependencies in a subdirectory because
  4731. # it helps to detect inapplicable dependency modes. For instance
  4732. # both Tru64's cc and ICC support -MD to output dependencies as a
  4733. # side effect of compilation, but ICC will put the dependencies in
  4734. # the current directory while Tru64 will put them in the object
  4735. # directory.
  4736. mkdir sub
  4737. am_cv_CC_dependencies_compiler_type=none
  4738. if test "$am_compiler_list" = ""; then
  4739. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4740. fi
  4741. am__universal=false
  4742. case " $depcc " in #(
  4743. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4744. esac
  4745. for depmode in $am_compiler_list; do
  4746. # Setup a source with many dependencies, because some compilers
  4747. # like to wrap large dependency lists on column 80 (with \), and
  4748. # we should not choose a depcomp mode which is confused by this.
  4749. #
  4750. # We need to recreate these files for each test, as the compiler may
  4751. # overwrite some of them when testing with obscure command lines.
  4752. # This happens at least with the AIX C compiler.
  4753. : > sub/conftest.c
  4754. for i in 1 2 3 4 5 6; do
  4755. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4756. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4757. # Solaris 10 /bin/sh.
  4758. echo '/* dummy */' > sub/conftst$i.h
  4759. done
  4760. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4761. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4762. # mode. It turns out that the SunPro C++ compiler does not properly
  4763. # handle '-M -o', and we need to detect this. Also, some Intel
  4764. # versions had trouble with output in subdirs.
  4765. am__obj=sub/conftest.${OBJEXT-o}
  4766. am__minus_obj="-o $am__obj"
  4767. case $depmode in
  4768. gcc)
  4769. # This depmode causes a compiler race in universal mode.
  4770. test "$am__universal" = false || continue
  4771. ;;
  4772. nosideeffect)
  4773. # After this tag, mechanisms are not by side-effect, so they'll
  4774. # only be used when explicitly requested.
  4775. if test "x$enable_dependency_tracking" = xyes; then
  4776. continue
  4777. else
  4778. break
  4779. fi
  4780. ;;
  4781. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4782. # This compiler won't grok '-c -o', but also, the minuso test has
  4783. # not run yet. These depmodes are late enough in the game, and
  4784. # so weak that their functioning should not be impacted.
  4785. am__obj=conftest.${OBJEXT-o}
  4786. am__minus_obj=
  4787. ;;
  4788. none) break ;;
  4789. esac
  4790. if depmode=$depmode \
  4791. source=sub/conftest.c object=$am__obj \
  4792. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4793. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4794. >/dev/null 2>conftest.err &&
  4795. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4796. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4797. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4798. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4799. # icc doesn't choke on unknown options, it will just issue warnings
  4800. # or remarks (even with -Werror). So we grep stderr for any message
  4801. # that says an option was ignored or not supported.
  4802. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4803. # icc: Command line warning: ignoring option '-M'; no argument required
  4804. # The diagnosis changed in icc 8.0:
  4805. # icc: Command line remark: option '-MP' not supported
  4806. if (grep 'ignoring option' conftest.err ||
  4807. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4808. am_cv_CC_dependencies_compiler_type=$depmode
  4809. break
  4810. fi
  4811. fi
  4812. done
  4813. cd ..
  4814. rm -rf conftest.dir
  4815. else
  4816. am_cv_CC_dependencies_compiler_type=none
  4817. fi
  4818. fi
  4819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4820. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  4821. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4822. if
  4823. test "x$enable_dependency_tracking" != xno \
  4824. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4825. am__fastdepCC_TRUE=
  4826. am__fastdepCC_FALSE='#'
  4827. else
  4828. am__fastdepCC_TRUE='#'
  4829. am__fastdepCC_FALSE=
  4830. fi
  4831. ac_ext=c
  4832. ac_cpp='$CPP $CPPFLAGS'
  4833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4837. printf %s "checking how to run the C preprocessor... " >&6; }
  4838. # On Suns, sometimes $CPP names a directory.
  4839. if test -n "$CPP" && test -d "$CPP"; then
  4840. CPP=
  4841. fi
  4842. if test -z "$CPP"; then
  4843. if test ${ac_cv_prog_CPP+y}
  4844. then :
  4845. printf %s "(cached) " >&6
  4846. else $as_nop
  4847. # Double quotes because $CC needs to be expanded
  4848. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  4849. do
  4850. ac_preproc_ok=false
  4851. for ac_c_preproc_warn_flag in '' yes
  4852. do
  4853. # Use a header file that comes with gcc, so configuring glibc
  4854. # with a fresh cross-compiler works.
  4855. # On the NeXT, cc -E runs the code through the compiler's parser,
  4856. # not just through cpp. "Syntax error" is here to catch this case.
  4857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4858. /* end confdefs.h. */
  4859. #include <limits.h>
  4860. Syntax error
  4861. _ACEOF
  4862. if ac_fn_c_try_cpp "$LINENO"
  4863. then :
  4864. else $as_nop
  4865. # Broken: fails on valid input.
  4866. continue
  4867. fi
  4868. rm -f conftest.err conftest.i conftest.$ac_ext
  4869. # OK, works on sane cases. Now check whether nonexistent headers
  4870. # can be detected and how.
  4871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4872. /* end confdefs.h. */
  4873. #include <ac_nonexistent.h>
  4874. _ACEOF
  4875. if ac_fn_c_try_cpp "$LINENO"
  4876. then :
  4877. # Broken: success on invalid input.
  4878. continue
  4879. else $as_nop
  4880. # Passes both tests.
  4881. ac_preproc_ok=:
  4882. break
  4883. fi
  4884. rm -f conftest.err conftest.i conftest.$ac_ext
  4885. done
  4886. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4887. rm -f conftest.i conftest.err conftest.$ac_ext
  4888. if $ac_preproc_ok
  4889. then :
  4890. break
  4891. fi
  4892. done
  4893. ac_cv_prog_CPP=$CPP
  4894. fi
  4895. CPP=$ac_cv_prog_CPP
  4896. else
  4897. ac_cv_prog_CPP=$CPP
  4898. fi
  4899. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4900. printf "%s\n" "$CPP" >&6; }
  4901. ac_preproc_ok=false
  4902. for ac_c_preproc_warn_flag in '' yes
  4903. do
  4904. # Use a header file that comes with gcc, so configuring glibc
  4905. # with a fresh cross-compiler works.
  4906. # On the NeXT, cc -E runs the code through the compiler's parser,
  4907. # not just through cpp. "Syntax error" is here to catch this case.
  4908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4909. /* end confdefs.h. */
  4910. #include <limits.h>
  4911. Syntax error
  4912. _ACEOF
  4913. if ac_fn_c_try_cpp "$LINENO"
  4914. then :
  4915. else $as_nop
  4916. # Broken: fails on valid input.
  4917. continue
  4918. fi
  4919. rm -f conftest.err conftest.i conftest.$ac_ext
  4920. # OK, works on sane cases. Now check whether nonexistent headers
  4921. # can be detected and how.
  4922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4923. /* end confdefs.h. */
  4924. #include <ac_nonexistent.h>
  4925. _ACEOF
  4926. if ac_fn_c_try_cpp "$LINENO"
  4927. then :
  4928. # Broken: success on invalid input.
  4929. continue
  4930. else $as_nop
  4931. # Passes both tests.
  4932. ac_preproc_ok=:
  4933. break
  4934. fi
  4935. rm -f conftest.err conftest.i conftest.$ac_ext
  4936. done
  4937. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4938. rm -f conftest.i conftest.err conftest.$ac_ext
  4939. if $ac_preproc_ok
  4940. then :
  4941. else $as_nop
  4942. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4943. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4944. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4945. See \`config.log' for more details" "$LINENO" 5; }
  4946. fi
  4947. ac_ext=c
  4948. ac_cpp='$CPP $CPPFLAGS'
  4949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4952. ac_header= ac_cache=
  4953. for ac_item in $ac_header_c_list
  4954. do
  4955. if test $ac_cache; then
  4956. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4957. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4958. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4959. fi
  4960. ac_header= ac_cache=
  4961. elif test $ac_header; then
  4962. ac_cache=$ac_item
  4963. else
  4964. ac_header=$ac_item
  4965. fi
  4966. done
  4967. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4968. then :
  4969. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4970. fi
  4971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4972. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4973. if test ${ac_cv_safe_to_define___extensions__+y}
  4974. then :
  4975. printf %s "(cached) " >&6
  4976. else $as_nop
  4977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4978. /* end confdefs.h. */
  4979. # define __EXTENSIONS__ 1
  4980. $ac_includes_default
  4981. int
  4982. main (void)
  4983. {
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. if ac_fn_c_try_compile "$LINENO"
  4989. then :
  4990. ac_cv_safe_to_define___extensions__=yes
  4991. else $as_nop
  4992. ac_cv_safe_to_define___extensions__=no
  4993. fi
  4994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4995. fi
  4996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4997. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4999. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  5000. if test ${ac_cv_should_define__xopen_source+y}
  5001. then :
  5002. printf %s "(cached) " >&6
  5003. else $as_nop
  5004. ac_cv_should_define__xopen_source=no
  5005. if test $ac_cv_header_wchar_h = yes
  5006. then :
  5007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5008. /* end confdefs.h. */
  5009. #include <wchar.h>
  5010. mbstate_t x;
  5011. int
  5012. main (void)
  5013. {
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. if ac_fn_c_try_compile "$LINENO"
  5019. then :
  5020. else $as_nop
  5021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h. */
  5023. #define _XOPEN_SOURCE 500
  5024. #include <wchar.h>
  5025. mbstate_t x;
  5026. int
  5027. main (void)
  5028. {
  5029. ;
  5030. return 0;
  5031. }
  5032. _ACEOF
  5033. if ac_fn_c_try_compile "$LINENO"
  5034. then :
  5035. ac_cv_should_define__xopen_source=yes
  5036. fi
  5037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5038. fi
  5039. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5040. fi
  5041. fi
  5042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  5043. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  5044. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  5045. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  5046. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  5047. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  5048. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  5049. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  5050. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5051. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  5052. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  5053. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  5054. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  5055. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  5056. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  5057. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  5058. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  5059. if test $ac_cv_header_minix_config_h = yes
  5060. then :
  5061. MINIX=yes
  5062. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  5063. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  5064. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5065. else $as_nop
  5066. MINIX=
  5067. fi
  5068. if test $ac_cv_safe_to_define___extensions__ = yes
  5069. then :
  5070. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  5071. fi
  5072. if test $ac_cv_should_define__xopen_source = yes
  5073. then :
  5074. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  5075. fi
  5076. enable_win32_dll=yes
  5077. case $host in
  5078. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  5079. if test -n "$ac_tool_prefix"; then
  5080. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5081. set dummy ${ac_tool_prefix}as; ac_word=$2
  5082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5083. printf %s "checking for $ac_word... " >&6; }
  5084. if test ${ac_cv_prog_AS+y}
  5085. then :
  5086. printf %s "(cached) " >&6
  5087. else $as_nop
  5088. if test -n "$AS"; then
  5089. ac_cv_prog_AS="$AS" # Let the user override the test.
  5090. else
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. case $as_dir in #(((
  5096. '') as_dir=./ ;;
  5097. */) ;;
  5098. *) as_dir=$as_dir/ ;;
  5099. esac
  5100. for ac_exec_ext in '' $ac_executable_extensions; do
  5101. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5102. ac_cv_prog_AS="${ac_tool_prefix}as"
  5103. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5104. break 2
  5105. fi
  5106. done
  5107. done
  5108. IFS=$as_save_IFS
  5109. fi
  5110. fi
  5111. AS=$ac_cv_prog_AS
  5112. if test -n "$AS"; then
  5113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5114. printf "%s\n" "$AS" >&6; }
  5115. else
  5116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. printf "%s\n" "no" >&6; }
  5118. fi
  5119. fi
  5120. if test -z "$ac_cv_prog_AS"; then
  5121. ac_ct_AS=$AS
  5122. # Extract the first word of "as", so it can be a program name with args.
  5123. set dummy as; ac_word=$2
  5124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5125. printf %s "checking for $ac_word... " >&6; }
  5126. if test ${ac_cv_prog_ac_ct_AS+y}
  5127. then :
  5128. printf %s "(cached) " >&6
  5129. else $as_nop
  5130. if test -n "$ac_ct_AS"; then
  5131. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5132. else
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. case $as_dir in #(((
  5138. '') as_dir=./ ;;
  5139. */) ;;
  5140. *) as_dir=$as_dir/ ;;
  5141. esac
  5142. for ac_exec_ext in '' $ac_executable_extensions; do
  5143. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5144. ac_cv_prog_ac_ct_AS="as"
  5145. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5146. break 2
  5147. fi
  5148. done
  5149. done
  5150. IFS=$as_save_IFS
  5151. fi
  5152. fi
  5153. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5154. if test -n "$ac_ct_AS"; then
  5155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5156. printf "%s\n" "$ac_ct_AS" >&6; }
  5157. else
  5158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5159. printf "%s\n" "no" >&6; }
  5160. fi
  5161. if test "x$ac_ct_AS" = x; then
  5162. AS="false"
  5163. else
  5164. case $cross_compiling:$ac_tool_warned in
  5165. yes:)
  5166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5167. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5168. ac_tool_warned=yes ;;
  5169. esac
  5170. AS=$ac_ct_AS
  5171. fi
  5172. else
  5173. AS="$ac_cv_prog_AS"
  5174. fi
  5175. if test -n "$ac_tool_prefix"; then
  5176. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5177. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5179. printf %s "checking for $ac_word... " >&6; }
  5180. if test ${ac_cv_prog_DLLTOOL+y}
  5181. then :
  5182. printf %s "(cached) " >&6
  5183. else $as_nop
  5184. if test -n "$DLLTOOL"; then
  5185. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5186. else
  5187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5188. for as_dir in $PATH
  5189. do
  5190. IFS=$as_save_IFS
  5191. case $as_dir in #(((
  5192. '') as_dir=./ ;;
  5193. */) ;;
  5194. *) as_dir=$as_dir/ ;;
  5195. esac
  5196. for ac_exec_ext in '' $ac_executable_extensions; do
  5197. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5198. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5200. break 2
  5201. fi
  5202. done
  5203. done
  5204. IFS=$as_save_IFS
  5205. fi
  5206. fi
  5207. DLLTOOL=$ac_cv_prog_DLLTOOL
  5208. if test -n "$DLLTOOL"; then
  5209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5210. printf "%s\n" "$DLLTOOL" >&6; }
  5211. else
  5212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5213. printf "%s\n" "no" >&6; }
  5214. fi
  5215. fi
  5216. if test -z "$ac_cv_prog_DLLTOOL"; then
  5217. ac_ct_DLLTOOL=$DLLTOOL
  5218. # Extract the first word of "dlltool", so it can be a program name with args.
  5219. set dummy dlltool; ac_word=$2
  5220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5221. printf %s "checking for $ac_word... " >&6; }
  5222. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5223. then :
  5224. printf %s "(cached) " >&6
  5225. else $as_nop
  5226. if test -n "$ac_ct_DLLTOOL"; then
  5227. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5228. else
  5229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5230. for as_dir in $PATH
  5231. do
  5232. IFS=$as_save_IFS
  5233. case $as_dir in #(((
  5234. '') as_dir=./ ;;
  5235. */) ;;
  5236. *) as_dir=$as_dir/ ;;
  5237. esac
  5238. for ac_exec_ext in '' $ac_executable_extensions; do
  5239. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5240. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5241. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5242. break 2
  5243. fi
  5244. done
  5245. done
  5246. IFS=$as_save_IFS
  5247. fi
  5248. fi
  5249. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5250. if test -n "$ac_ct_DLLTOOL"; then
  5251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5252. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5253. else
  5254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5255. printf "%s\n" "no" >&6; }
  5256. fi
  5257. if test "x$ac_ct_DLLTOOL" = x; then
  5258. DLLTOOL="false"
  5259. else
  5260. case $cross_compiling:$ac_tool_warned in
  5261. yes:)
  5262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5263. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5264. ac_tool_warned=yes ;;
  5265. esac
  5266. DLLTOOL=$ac_ct_DLLTOOL
  5267. fi
  5268. else
  5269. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5270. fi
  5271. if test -n "$ac_tool_prefix"; then
  5272. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5273. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5275. printf %s "checking for $ac_word... " >&6; }
  5276. if test ${ac_cv_prog_OBJDUMP+y}
  5277. then :
  5278. printf %s "(cached) " >&6
  5279. else $as_nop
  5280. if test -n "$OBJDUMP"; then
  5281. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5282. else
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. case $as_dir in #(((
  5288. '') as_dir=./ ;;
  5289. */) ;;
  5290. *) as_dir=$as_dir/ ;;
  5291. esac
  5292. for ac_exec_ext in '' $ac_executable_extensions; do
  5293. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5294. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5295. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5296. break 2
  5297. fi
  5298. done
  5299. done
  5300. IFS=$as_save_IFS
  5301. fi
  5302. fi
  5303. OBJDUMP=$ac_cv_prog_OBJDUMP
  5304. if test -n "$OBJDUMP"; then
  5305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5306. printf "%s\n" "$OBJDUMP" >&6; }
  5307. else
  5308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5309. printf "%s\n" "no" >&6; }
  5310. fi
  5311. fi
  5312. if test -z "$ac_cv_prog_OBJDUMP"; then
  5313. ac_ct_OBJDUMP=$OBJDUMP
  5314. # Extract the first word of "objdump", so it can be a program name with args.
  5315. set dummy objdump; ac_word=$2
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5317. printf %s "checking for $ac_word... " >&6; }
  5318. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5319. then :
  5320. printf %s "(cached) " >&6
  5321. else $as_nop
  5322. if test -n "$ac_ct_OBJDUMP"; then
  5323. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5324. else
  5325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5326. for as_dir in $PATH
  5327. do
  5328. IFS=$as_save_IFS
  5329. case $as_dir in #(((
  5330. '') as_dir=./ ;;
  5331. */) ;;
  5332. *) as_dir=$as_dir/ ;;
  5333. esac
  5334. for ac_exec_ext in '' $ac_executable_extensions; do
  5335. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5336. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5337. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5338. break 2
  5339. fi
  5340. done
  5341. done
  5342. IFS=$as_save_IFS
  5343. fi
  5344. fi
  5345. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5346. if test -n "$ac_ct_OBJDUMP"; then
  5347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5348. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5349. else
  5350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5351. printf "%s\n" "no" >&6; }
  5352. fi
  5353. if test "x$ac_ct_OBJDUMP" = x; then
  5354. OBJDUMP="false"
  5355. else
  5356. case $cross_compiling:$ac_tool_warned in
  5357. yes:)
  5358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5359. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5360. ac_tool_warned=yes ;;
  5361. esac
  5362. OBJDUMP=$ac_ct_OBJDUMP
  5363. fi
  5364. else
  5365. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5366. fi
  5367. ;;
  5368. esac
  5369. test -z "$AS" && AS=as
  5370. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5371. test -z "$OBJDUMP" && OBJDUMP=objdump
  5372. case `pwd` in
  5373. *\ * | *\ *)
  5374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5375. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5376. esac
  5377. macro_version='2.4.6'
  5378. macro_revision='2.4.6'
  5379. ltmain=$ac_aux_dir/ltmain.sh
  5380. # Backslashify metacharacters that are still active within
  5381. # double-quoted strings.
  5382. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5383. # Same as above, but do not quote variable references.
  5384. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5385. # Sed substitution to delay expansion of an escaped shell variable in a
  5386. # double_quote_subst'ed string.
  5387. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5388. # Sed substitution to delay expansion of an escaped single quote.
  5389. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5390. # Sed substitution to avoid accidental globbing in evaled expressions
  5391. no_glob_subst='s/\*/\\\*/g'
  5392. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5393. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5394. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5396. printf %s "checking how to print strings... " >&6; }
  5397. # Test print first, because it will be a builtin if present.
  5398. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  5399. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5400. ECHO='print -r --'
  5401. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5402. ECHO='printf %s\n'
  5403. else
  5404. # Use this function as a fallback that always works.
  5405. func_fallback_echo ()
  5406. {
  5407. eval 'cat <<_LTECHO_EOF
  5408. $1
  5409. _LTECHO_EOF'
  5410. }
  5411. ECHO='func_fallback_echo'
  5412. fi
  5413. # func_echo_all arg...
  5414. # Invoke $ECHO with all args, space-separated.
  5415. func_echo_all ()
  5416. {
  5417. $ECHO ""
  5418. }
  5419. case $ECHO in
  5420. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5421. printf "%s\n" "printf" >&6; } ;;
  5422. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5423. printf "%s\n" "print -r" >&6; } ;;
  5424. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5425. printf "%s\n" "cat" >&6; } ;;
  5426. esac
  5427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5428. printf %s "checking for a sed that does not truncate output... " >&6; }
  5429. if test ${ac_cv_path_SED+y}
  5430. then :
  5431. printf %s "(cached) " >&6
  5432. else $as_nop
  5433. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5434. for ac_i in 1 2 3 4 5 6 7; do
  5435. ac_script="$ac_script$as_nl$ac_script"
  5436. done
  5437. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5438. { ac_script=; unset ac_script;}
  5439. if test -z "$SED"; then
  5440. ac_path_SED_found=false
  5441. # Loop through the user's path and test for each of PROGNAME-LIST
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. case $as_dir in #(((
  5447. '') as_dir=./ ;;
  5448. */) ;;
  5449. *) as_dir=$as_dir/ ;;
  5450. esac
  5451. for ac_prog in sed gsed
  5452. do
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5455. as_fn_executable_p "$ac_path_SED" || continue
  5456. # Check for GNU ac_path_SED and select it if it is found.
  5457. # Check for GNU $ac_path_SED
  5458. case `"$ac_path_SED" --version 2>&1` in
  5459. *GNU*)
  5460. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5461. *)
  5462. ac_count=0
  5463. printf %s 0123456789 >"conftest.in"
  5464. while :
  5465. do
  5466. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5467. mv "conftest.tmp" "conftest.in"
  5468. cp "conftest.in" "conftest.nl"
  5469. printf "%s\n" '' >> "conftest.nl"
  5470. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5471. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5472. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5473. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5474. # Best one so far, save it but keep looking for a better one
  5475. ac_cv_path_SED="$ac_path_SED"
  5476. ac_path_SED_max=$ac_count
  5477. fi
  5478. # 10*(2^10) chars as input seems more than enough
  5479. test $ac_count -gt 10 && break
  5480. done
  5481. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5482. esac
  5483. $ac_path_SED_found && break 3
  5484. done
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. if test -z "$ac_cv_path_SED"; then
  5489. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5490. fi
  5491. else
  5492. ac_cv_path_SED=$SED
  5493. fi
  5494. fi
  5495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5496. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5497. SED="$ac_cv_path_SED"
  5498. rm -f conftest.sed
  5499. test -z "$SED" && SED=sed
  5500. Xsed="$SED -e 1s/^X//"
  5501. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5502. printf %s "checking for grep that handles long lines and -e... " >&6; }
  5503. if test ${ac_cv_path_GREP+y}
  5504. then :
  5505. printf %s "(cached) " >&6
  5506. else $as_nop
  5507. if test -z "$GREP"; then
  5508. ac_path_GREP_found=false
  5509. # Loop through the user's path and test for each of PROGNAME-LIST
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5512. do
  5513. IFS=$as_save_IFS
  5514. case $as_dir in #(((
  5515. '') as_dir=./ ;;
  5516. */) ;;
  5517. *) as_dir=$as_dir/ ;;
  5518. esac
  5519. for ac_prog in grep ggrep
  5520. do
  5521. for ac_exec_ext in '' $ac_executable_extensions; do
  5522. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  5523. as_fn_executable_p "$ac_path_GREP" || continue
  5524. # Check for GNU ac_path_GREP and select it if it is found.
  5525. # Check for GNU $ac_path_GREP
  5526. case `"$ac_path_GREP" --version 2>&1` in
  5527. *GNU*)
  5528. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5529. *)
  5530. ac_count=0
  5531. printf %s 0123456789 >"conftest.in"
  5532. while :
  5533. do
  5534. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5535. mv "conftest.tmp" "conftest.in"
  5536. cp "conftest.in" "conftest.nl"
  5537. printf "%s\n" 'GREP' >> "conftest.nl"
  5538. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5539. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5540. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5541. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5542. # Best one so far, save it but keep looking for a better one
  5543. ac_cv_path_GREP="$ac_path_GREP"
  5544. ac_path_GREP_max=$ac_count
  5545. fi
  5546. # 10*(2^10) chars as input seems more than enough
  5547. test $ac_count -gt 10 && break
  5548. done
  5549. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5550. esac
  5551. $ac_path_GREP_found && break 3
  5552. done
  5553. done
  5554. done
  5555. IFS=$as_save_IFS
  5556. if test -z "$ac_cv_path_GREP"; then
  5557. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5558. fi
  5559. else
  5560. ac_cv_path_GREP=$GREP
  5561. fi
  5562. fi
  5563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5564. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  5565. GREP="$ac_cv_path_GREP"
  5566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5567. printf %s "checking for egrep... " >&6; }
  5568. if test ${ac_cv_path_EGREP+y}
  5569. then :
  5570. printf %s "(cached) " >&6
  5571. else $as_nop
  5572. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5573. then ac_cv_path_EGREP="$GREP -E"
  5574. else
  5575. if test -z "$EGREP"; then
  5576. ac_path_EGREP_found=false
  5577. # Loop through the user's path and test for each of PROGNAME-LIST
  5578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5579. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5580. do
  5581. IFS=$as_save_IFS
  5582. case $as_dir in #(((
  5583. '') as_dir=./ ;;
  5584. */) ;;
  5585. *) as_dir=$as_dir/ ;;
  5586. esac
  5587. for ac_prog in egrep
  5588. do
  5589. for ac_exec_ext in '' $ac_executable_extensions; do
  5590. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  5591. as_fn_executable_p "$ac_path_EGREP" || continue
  5592. # Check for GNU ac_path_EGREP and select it if it is found.
  5593. # Check for GNU $ac_path_EGREP
  5594. case `"$ac_path_EGREP" --version 2>&1` in
  5595. *GNU*)
  5596. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5597. *)
  5598. ac_count=0
  5599. printf %s 0123456789 >"conftest.in"
  5600. while :
  5601. do
  5602. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5603. mv "conftest.tmp" "conftest.in"
  5604. cp "conftest.in" "conftest.nl"
  5605. printf "%s\n" 'EGREP' >> "conftest.nl"
  5606. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5607. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5608. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5609. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5610. # Best one so far, save it but keep looking for a better one
  5611. ac_cv_path_EGREP="$ac_path_EGREP"
  5612. ac_path_EGREP_max=$ac_count
  5613. fi
  5614. # 10*(2^10) chars as input seems more than enough
  5615. test $ac_count -gt 10 && break
  5616. done
  5617. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5618. esac
  5619. $ac_path_EGREP_found && break 3
  5620. done
  5621. done
  5622. done
  5623. IFS=$as_save_IFS
  5624. if test -z "$ac_cv_path_EGREP"; then
  5625. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5626. fi
  5627. else
  5628. ac_cv_path_EGREP=$EGREP
  5629. fi
  5630. fi
  5631. fi
  5632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5633. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  5634. EGREP="$ac_cv_path_EGREP"
  5635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5636. printf %s "checking for fgrep... " >&6; }
  5637. if test ${ac_cv_path_FGREP+y}
  5638. then :
  5639. printf %s "(cached) " >&6
  5640. else $as_nop
  5641. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5642. then ac_cv_path_FGREP="$GREP -F"
  5643. else
  5644. if test -z "$FGREP"; then
  5645. ac_path_FGREP_found=false
  5646. # Loop through the user's path and test for each of PROGNAME-LIST
  5647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5648. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5649. do
  5650. IFS=$as_save_IFS
  5651. case $as_dir in #(((
  5652. '') as_dir=./ ;;
  5653. */) ;;
  5654. *) as_dir=$as_dir/ ;;
  5655. esac
  5656. for ac_prog in fgrep
  5657. do
  5658. for ac_exec_ext in '' $ac_executable_extensions; do
  5659. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  5660. as_fn_executable_p "$ac_path_FGREP" || continue
  5661. # Check for GNU ac_path_FGREP and select it if it is found.
  5662. # Check for GNU $ac_path_FGREP
  5663. case `"$ac_path_FGREP" --version 2>&1` in
  5664. *GNU*)
  5665. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5666. *)
  5667. ac_count=0
  5668. printf %s 0123456789 >"conftest.in"
  5669. while :
  5670. do
  5671. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5672. mv "conftest.tmp" "conftest.in"
  5673. cp "conftest.in" "conftest.nl"
  5674. printf "%s\n" 'FGREP' >> "conftest.nl"
  5675. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5676. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5677. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5678. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5679. # Best one so far, save it but keep looking for a better one
  5680. ac_cv_path_FGREP="$ac_path_FGREP"
  5681. ac_path_FGREP_max=$ac_count
  5682. fi
  5683. # 10*(2^10) chars as input seems more than enough
  5684. test $ac_count -gt 10 && break
  5685. done
  5686. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5687. esac
  5688. $ac_path_FGREP_found && break 3
  5689. done
  5690. done
  5691. done
  5692. IFS=$as_save_IFS
  5693. if test -z "$ac_cv_path_FGREP"; then
  5694. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5695. fi
  5696. else
  5697. ac_cv_path_FGREP=$FGREP
  5698. fi
  5699. fi
  5700. fi
  5701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5702. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  5703. FGREP="$ac_cv_path_FGREP"
  5704. test -z "$GREP" && GREP=grep
  5705. # Check whether --with-gnu-ld was given.
  5706. if test ${with_gnu_ld+y}
  5707. then :
  5708. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5709. else $as_nop
  5710. with_gnu_ld=no
  5711. fi
  5712. ac_prog=ld
  5713. if test yes = "$GCC"; then
  5714. # Check if gcc -print-prog-name=ld gives a path.
  5715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5716. printf %s "checking for ld used by $CC... " >&6; }
  5717. case $host in
  5718. *-*-mingw*)
  5719. # gcc leaves a trailing carriage return, which upsets mingw
  5720. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5721. *)
  5722. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5723. esac
  5724. case $ac_prog in
  5725. # Accept absolute paths.
  5726. [\\/]* | ?:[\\/]*)
  5727. re_direlt='/[^/][^/]*/\.\./'
  5728. # Canonicalize the pathname of ld
  5729. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5730. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5731. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5732. done
  5733. test -z "$LD" && LD=$ac_prog
  5734. ;;
  5735. "")
  5736. # If it fails, then pretend we aren't using GCC.
  5737. ac_prog=ld
  5738. ;;
  5739. *)
  5740. # If it is relative, then search for the first ld in PATH.
  5741. with_gnu_ld=unknown
  5742. ;;
  5743. esac
  5744. elif test yes = "$with_gnu_ld"; then
  5745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5746. printf %s "checking for GNU ld... " >&6; }
  5747. else
  5748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5749. printf %s "checking for non-GNU ld... " >&6; }
  5750. fi
  5751. if test ${lt_cv_path_LD+y}
  5752. then :
  5753. printf %s "(cached) " >&6
  5754. else $as_nop
  5755. if test -z "$LD"; then
  5756. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5757. for ac_dir in $PATH; do
  5758. IFS=$lt_save_ifs
  5759. test -z "$ac_dir" && ac_dir=.
  5760. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5761. lt_cv_path_LD=$ac_dir/$ac_prog
  5762. # Check to see if the program is GNU ld. I'd rather use --version,
  5763. # but apparently some variants of GNU ld only accept -v.
  5764. # Break only if it was the GNU/non-GNU ld that we prefer.
  5765. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5766. *GNU* | *'with BFD'*)
  5767. test no != "$with_gnu_ld" && break
  5768. ;;
  5769. *)
  5770. test yes != "$with_gnu_ld" && break
  5771. ;;
  5772. esac
  5773. fi
  5774. done
  5775. IFS=$lt_save_ifs
  5776. else
  5777. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5778. fi
  5779. fi
  5780. LD=$lt_cv_path_LD
  5781. if test -n "$LD"; then
  5782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5783. printf "%s\n" "$LD" >&6; }
  5784. else
  5785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5786. printf "%s\n" "no" >&6; }
  5787. fi
  5788. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5790. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  5791. if test ${lt_cv_prog_gnu_ld+y}
  5792. then :
  5793. printf %s "(cached) " >&6
  5794. else $as_nop
  5795. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5796. case `$LD -v 2>&1 </dev/null` in
  5797. *GNU* | *'with BFD'*)
  5798. lt_cv_prog_gnu_ld=yes
  5799. ;;
  5800. *)
  5801. lt_cv_prog_gnu_ld=no
  5802. ;;
  5803. esac
  5804. fi
  5805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5806. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  5807. with_gnu_ld=$lt_cv_prog_gnu_ld
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5809. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5810. if test ${lt_cv_path_NM+y}
  5811. then :
  5812. printf %s "(cached) " >&6
  5813. else $as_nop
  5814. if test -n "$NM"; then
  5815. # Let the user override the test.
  5816. lt_cv_path_NM=$NM
  5817. else
  5818. lt_nm_to_check=${ac_tool_prefix}nm
  5819. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5820. lt_nm_to_check="$lt_nm_to_check nm"
  5821. fi
  5822. for lt_tmp_nm in $lt_nm_to_check; do
  5823. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5824. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5825. IFS=$lt_save_ifs
  5826. test -z "$ac_dir" && ac_dir=.
  5827. tmp_nm=$ac_dir/$lt_tmp_nm
  5828. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5829. # Check to see if the nm accepts a BSD-compat flag.
  5830. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5831. # nm: unknown option "B" ignored
  5832. # Tru64's nm complains that /dev/null is an invalid object file
  5833. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5834. case $build_os in
  5835. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5836. *) lt_bad_file=/dev/null ;;
  5837. esac
  5838. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5839. *$lt_bad_file* | *'Invalid file or object type'*)
  5840. lt_cv_path_NM="$tmp_nm -B"
  5841. break 2
  5842. ;;
  5843. *)
  5844. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5845. */dev/null*)
  5846. lt_cv_path_NM="$tmp_nm -p"
  5847. break 2
  5848. ;;
  5849. *)
  5850. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5851. continue # so that we can try to find one that supports BSD flags
  5852. ;;
  5853. esac
  5854. ;;
  5855. esac
  5856. fi
  5857. done
  5858. IFS=$lt_save_ifs
  5859. done
  5860. : ${lt_cv_path_NM=no}
  5861. fi
  5862. fi
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5864. printf "%s\n" "$lt_cv_path_NM" >&6; }
  5865. if test no != "$lt_cv_path_NM"; then
  5866. NM=$lt_cv_path_NM
  5867. else
  5868. # Didn't find any BSD compatible name lister, look for dumpbin.
  5869. if test -n "$DUMPBIN"; then :
  5870. # Let the user override the test.
  5871. else
  5872. if test -n "$ac_tool_prefix"; then
  5873. for ac_prog in dumpbin "link -dump"
  5874. do
  5875. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5876. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. printf %s "checking for $ac_word... " >&6; }
  5879. if test ${ac_cv_prog_DUMPBIN+y}
  5880. then :
  5881. printf %s "(cached) " >&6
  5882. else $as_nop
  5883. if test -n "$DUMPBIN"; then
  5884. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5885. else
  5886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5887. for as_dir in $PATH
  5888. do
  5889. IFS=$as_save_IFS
  5890. case $as_dir in #(((
  5891. '') as_dir=./ ;;
  5892. */) ;;
  5893. *) as_dir=$as_dir/ ;;
  5894. esac
  5895. for ac_exec_ext in '' $ac_executable_extensions; do
  5896. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5897. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5898. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5899. break 2
  5900. fi
  5901. done
  5902. done
  5903. IFS=$as_save_IFS
  5904. fi
  5905. fi
  5906. DUMPBIN=$ac_cv_prog_DUMPBIN
  5907. if test -n "$DUMPBIN"; then
  5908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5909. printf "%s\n" "$DUMPBIN" >&6; }
  5910. else
  5911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5912. printf "%s\n" "no" >&6; }
  5913. fi
  5914. test -n "$DUMPBIN" && break
  5915. done
  5916. fi
  5917. if test -z "$DUMPBIN"; then
  5918. ac_ct_DUMPBIN=$DUMPBIN
  5919. for ac_prog in dumpbin "link -dump"
  5920. do
  5921. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5922. set dummy $ac_prog; ac_word=$2
  5923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5924. printf %s "checking for $ac_word... " >&6; }
  5925. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  5926. then :
  5927. printf %s "(cached) " >&6
  5928. else $as_nop
  5929. if test -n "$ac_ct_DUMPBIN"; then
  5930. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5931. else
  5932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933. for as_dir in $PATH
  5934. do
  5935. IFS=$as_save_IFS
  5936. case $as_dir in #(((
  5937. '') as_dir=./ ;;
  5938. */) ;;
  5939. *) as_dir=$as_dir/ ;;
  5940. esac
  5941. for ac_exec_ext in '' $ac_executable_extensions; do
  5942. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5943. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5944. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5945. break 2
  5946. fi
  5947. done
  5948. done
  5949. IFS=$as_save_IFS
  5950. fi
  5951. fi
  5952. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5953. if test -n "$ac_ct_DUMPBIN"; then
  5954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5955. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  5956. else
  5957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5958. printf "%s\n" "no" >&6; }
  5959. fi
  5960. test -n "$ac_ct_DUMPBIN" && break
  5961. done
  5962. if test "x$ac_ct_DUMPBIN" = x; then
  5963. DUMPBIN=":"
  5964. else
  5965. case $cross_compiling:$ac_tool_warned in
  5966. yes:)
  5967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5968. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5969. ac_tool_warned=yes ;;
  5970. esac
  5971. DUMPBIN=$ac_ct_DUMPBIN
  5972. fi
  5973. fi
  5974. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5975. *COFF*)
  5976. DUMPBIN="$DUMPBIN -symbols -headers"
  5977. ;;
  5978. *)
  5979. DUMPBIN=:
  5980. ;;
  5981. esac
  5982. fi
  5983. if test : != "$DUMPBIN"; then
  5984. NM=$DUMPBIN
  5985. fi
  5986. fi
  5987. test -z "$NM" && NM=nm
  5988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5989. printf %s "checking the name lister ($NM) interface... " >&6; }
  5990. if test ${lt_cv_nm_interface+y}
  5991. then :
  5992. printf %s "(cached) " >&6
  5993. else $as_nop
  5994. lt_cv_nm_interface="BSD nm"
  5995. echo "int some_variable = 0;" > conftest.$ac_ext
  5996. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5997. (eval "$ac_compile" 2>conftest.err)
  5998. cat conftest.err >&5
  5999. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6000. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6001. cat conftest.err >&5
  6002. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6003. cat conftest.out >&5
  6004. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6005. lt_cv_nm_interface="MS dumpbin"
  6006. fi
  6007. rm -f conftest*
  6008. fi
  6009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6010. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  6011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6012. printf %s "checking whether ln -s works... " >&6; }
  6013. LN_S=$as_ln_s
  6014. if test "$LN_S" = "ln -s"; then
  6015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6016. printf "%s\n" "yes" >&6; }
  6017. else
  6018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6019. printf "%s\n" "no, using $LN_S" >&6; }
  6020. fi
  6021. # find the maximum length of command line arguments
  6022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6023. printf %s "checking the maximum length of command line arguments... " >&6; }
  6024. if test ${lt_cv_sys_max_cmd_len+y}
  6025. then :
  6026. printf %s "(cached) " >&6
  6027. else $as_nop
  6028. i=0
  6029. teststring=ABCD
  6030. case $build_os in
  6031. msdosdjgpp*)
  6032. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6033. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6034. # during glob expansion). Even if it were fixed, the result of this
  6035. # check would be larger than it should be.
  6036. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6037. ;;
  6038. gnu*)
  6039. # Under GNU Hurd, this test is not required because there is
  6040. # no limit to the length of command line arguments.
  6041. # Libtool will interpret -1 as no limit whatsoever
  6042. lt_cv_sys_max_cmd_len=-1;
  6043. ;;
  6044. cygwin* | mingw* | cegcc*)
  6045. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6046. # about 5 minutes as the teststring grows exponentially.
  6047. # Worse, since 9x/ME are not pre-emptively multitasking,
  6048. # you end up with a "frozen" computer, even though with patience
  6049. # the test eventually succeeds (with a max line length of 256k).
  6050. # Instead, let's just punt: use the minimum linelength reported by
  6051. # all of the supported platforms: 8192 (on NT/2K/XP).
  6052. lt_cv_sys_max_cmd_len=8192;
  6053. ;;
  6054. mint*)
  6055. # On MiNT this can take a long time and run out of memory.
  6056. lt_cv_sys_max_cmd_len=8192;
  6057. ;;
  6058. amigaos*)
  6059. # On AmigaOS with pdksh, this test takes hours, literally.
  6060. # So we just punt and use a minimum line length of 8192.
  6061. lt_cv_sys_max_cmd_len=8192;
  6062. ;;
  6063. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  6064. # This has been around since 386BSD, at least. Likely further.
  6065. if test -x /sbin/sysctl; then
  6066. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6067. elif test -x /usr/sbin/sysctl; then
  6068. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6069. else
  6070. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6071. fi
  6072. # And add a safety zone
  6073. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6074. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6075. ;;
  6076. interix*)
  6077. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6078. lt_cv_sys_max_cmd_len=196608
  6079. ;;
  6080. os2*)
  6081. # The test takes a long time on OS/2.
  6082. lt_cv_sys_max_cmd_len=8192
  6083. ;;
  6084. osf*)
  6085. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6086. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6087. # nice to cause kernel panics so lets avoid the loop below.
  6088. # First set a reasonable default.
  6089. lt_cv_sys_max_cmd_len=16384
  6090. #
  6091. if test -x /sbin/sysconfig; then
  6092. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6093. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6094. esac
  6095. fi
  6096. ;;
  6097. sco3.2v5*)
  6098. lt_cv_sys_max_cmd_len=102400
  6099. ;;
  6100. sysv5* | sco5v6* | sysv4.2uw2*)
  6101. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6102. if test -n "$kargmax"; then
  6103. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6104. else
  6105. lt_cv_sys_max_cmd_len=32768
  6106. fi
  6107. ;;
  6108. *)
  6109. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6110. if test -n "$lt_cv_sys_max_cmd_len" && \
  6111. test undefined != "$lt_cv_sys_max_cmd_len"; then
  6112. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6113. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6114. else
  6115. # Make teststring a little bigger before we do anything with it.
  6116. # a 1K string should be a reasonable start.
  6117. for i in 1 2 3 4 5 6 7 8; do
  6118. teststring=$teststring$teststring
  6119. done
  6120. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6121. # If test is not a shell built-in, we'll probably end up computing a
  6122. # maximum length that is only half of the actual maximum length, but
  6123. # we can't tell.
  6124. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  6125. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6126. test 17 != "$i" # 1/2 MB should be enough
  6127. do
  6128. i=`expr $i + 1`
  6129. teststring=$teststring$teststring
  6130. done
  6131. # Only check the string length outside the loop.
  6132. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6133. teststring=
  6134. # Add a significant safety factor because C++ compilers can tack on
  6135. # massive amounts of additional arguments before passing them to the
  6136. # linker. It appears as though 1/2 is a usable value.
  6137. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6138. fi
  6139. ;;
  6140. esac
  6141. fi
  6142. if test -n "$lt_cv_sys_max_cmd_len"; then
  6143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6144. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  6145. else
  6146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6147. printf "%s\n" "none" >&6; }
  6148. fi
  6149. max_cmd_len=$lt_cv_sys_max_cmd_len
  6150. : ${CP="cp -f"}
  6151. : ${MV="mv -f"}
  6152. : ${RM="rm -f"}
  6153. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6154. lt_unset=unset
  6155. else
  6156. lt_unset=false
  6157. fi
  6158. # test EBCDIC or ASCII
  6159. case `echo X|tr X '\101'` in
  6160. A) # ASCII based system
  6161. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6162. lt_SP2NL='tr \040 \012'
  6163. lt_NL2SP='tr \015\012 \040\040'
  6164. ;;
  6165. *) # EBCDIC based system
  6166. lt_SP2NL='tr \100 \n'
  6167. lt_NL2SP='tr \r\n \100\100'
  6168. ;;
  6169. esac
  6170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  6171. printf %s "checking how to convert $build file names to $host format... " >&6; }
  6172. if test ${lt_cv_to_host_file_cmd+y}
  6173. then :
  6174. printf %s "(cached) " >&6
  6175. else $as_nop
  6176. case $host in
  6177. *-*-mingw* )
  6178. case $build in
  6179. *-*-mingw* ) # actually msys
  6180. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  6181. ;;
  6182. *-*-cygwin* )
  6183. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  6184. ;;
  6185. * ) # otherwise, assume *nix
  6186. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  6187. ;;
  6188. esac
  6189. ;;
  6190. *-*-cygwin* )
  6191. case $build in
  6192. *-*-mingw* ) # actually msys
  6193. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  6194. ;;
  6195. *-*-cygwin* )
  6196. lt_cv_to_host_file_cmd=func_convert_file_noop
  6197. ;;
  6198. * ) # otherwise, assume *nix
  6199. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  6200. ;;
  6201. esac
  6202. ;;
  6203. * ) # unhandled hosts (and "normal" native builds)
  6204. lt_cv_to_host_file_cmd=func_convert_file_noop
  6205. ;;
  6206. esac
  6207. fi
  6208. to_host_file_cmd=$lt_cv_to_host_file_cmd
  6209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  6210. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  6211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  6212. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  6213. if test ${lt_cv_to_tool_file_cmd+y}
  6214. then :
  6215. printf %s "(cached) " >&6
  6216. else $as_nop
  6217. #assume ordinary cross tools, or native build.
  6218. lt_cv_to_tool_file_cmd=func_convert_file_noop
  6219. case $host in
  6220. *-*-mingw* )
  6221. case $build in
  6222. *-*-mingw* ) # actually msys
  6223. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  6224. ;;
  6225. esac
  6226. ;;
  6227. esac
  6228. fi
  6229. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  6230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  6231. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  6232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6233. printf %s "checking for $LD option to reload object files... " >&6; }
  6234. if test ${lt_cv_ld_reload_flag+y}
  6235. then :
  6236. printf %s "(cached) " >&6
  6237. else $as_nop
  6238. lt_cv_ld_reload_flag='-r'
  6239. fi
  6240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6241. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  6242. reload_flag=$lt_cv_ld_reload_flag
  6243. case $reload_flag in
  6244. "" | " "*) ;;
  6245. *) reload_flag=" $reload_flag" ;;
  6246. esac
  6247. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6248. case $host_os in
  6249. cygwin* | mingw* | pw32* | cegcc*)
  6250. if test yes != "$GCC"; then
  6251. reload_cmds=false
  6252. fi
  6253. ;;
  6254. darwin*)
  6255. if test yes = "$GCC"; then
  6256. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  6257. else
  6258. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6259. fi
  6260. ;;
  6261. esac
  6262. if test -n "$ac_tool_prefix"; then
  6263. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6264. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6266. printf %s "checking for $ac_word... " >&6; }
  6267. if test ${ac_cv_prog_OBJDUMP+y}
  6268. then :
  6269. printf %s "(cached) " >&6
  6270. else $as_nop
  6271. if test -n "$OBJDUMP"; then
  6272. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6273. else
  6274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6275. for as_dir in $PATH
  6276. do
  6277. IFS=$as_save_IFS
  6278. case $as_dir in #(((
  6279. '') as_dir=./ ;;
  6280. */) ;;
  6281. *) as_dir=$as_dir/ ;;
  6282. esac
  6283. for ac_exec_ext in '' $ac_executable_extensions; do
  6284. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6286. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6287. break 2
  6288. fi
  6289. done
  6290. done
  6291. IFS=$as_save_IFS
  6292. fi
  6293. fi
  6294. OBJDUMP=$ac_cv_prog_OBJDUMP
  6295. if test -n "$OBJDUMP"; then
  6296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6297. printf "%s\n" "$OBJDUMP" >&6; }
  6298. else
  6299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6300. printf "%s\n" "no" >&6; }
  6301. fi
  6302. fi
  6303. if test -z "$ac_cv_prog_OBJDUMP"; then
  6304. ac_ct_OBJDUMP=$OBJDUMP
  6305. # Extract the first word of "objdump", so it can be a program name with args.
  6306. set dummy objdump; ac_word=$2
  6307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6308. printf %s "checking for $ac_word... " >&6; }
  6309. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  6310. then :
  6311. printf %s "(cached) " >&6
  6312. else $as_nop
  6313. if test -n "$ac_ct_OBJDUMP"; then
  6314. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6315. else
  6316. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6317. for as_dir in $PATH
  6318. do
  6319. IFS=$as_save_IFS
  6320. case $as_dir in #(((
  6321. '') as_dir=./ ;;
  6322. */) ;;
  6323. *) as_dir=$as_dir/ ;;
  6324. esac
  6325. for ac_exec_ext in '' $ac_executable_extensions; do
  6326. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6327. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6329. break 2
  6330. fi
  6331. done
  6332. done
  6333. IFS=$as_save_IFS
  6334. fi
  6335. fi
  6336. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6337. if test -n "$ac_ct_OBJDUMP"; then
  6338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6339. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  6340. else
  6341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6342. printf "%s\n" "no" >&6; }
  6343. fi
  6344. if test "x$ac_ct_OBJDUMP" = x; then
  6345. OBJDUMP="false"
  6346. else
  6347. case $cross_compiling:$ac_tool_warned in
  6348. yes:)
  6349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6350. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6351. ac_tool_warned=yes ;;
  6352. esac
  6353. OBJDUMP=$ac_ct_OBJDUMP
  6354. fi
  6355. else
  6356. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6357. fi
  6358. test -z "$OBJDUMP" && OBJDUMP=objdump
  6359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6360. printf %s "checking how to recognize dependent libraries... " >&6; }
  6361. if test ${lt_cv_deplibs_check_method+y}
  6362. then :
  6363. printf %s "(cached) " >&6
  6364. else $as_nop
  6365. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6366. lt_cv_file_magic_test_file=
  6367. lt_cv_deplibs_check_method='unknown'
  6368. # Need to set the preceding variable on all platforms that support
  6369. # interlibrary dependencies.
  6370. # 'none' -- dependencies not supported.
  6371. # 'unknown' -- same as none, but documents that we really don't know.
  6372. # 'pass_all' -- all dependencies passed with no checks.
  6373. # 'test_compile' -- check by making test program.
  6374. # 'file_magic [[regex]]' -- check by looking for files in library path
  6375. # that responds to the $file_magic_cmd with a given extended regex.
  6376. # If you have 'file' or equivalent on your system and you're not sure
  6377. # whether 'pass_all' will *always* work, you probably want this one.
  6378. case $host_os in
  6379. aix[4-9]*)
  6380. lt_cv_deplibs_check_method=pass_all
  6381. ;;
  6382. beos*)
  6383. lt_cv_deplibs_check_method=pass_all
  6384. ;;
  6385. bsdi[45]*)
  6386. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6387. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6388. lt_cv_file_magic_test_file=/shlib/libc.so
  6389. ;;
  6390. cygwin*)
  6391. # func_win32_libid is a shell function defined in ltmain.sh
  6392. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6393. lt_cv_file_magic_cmd='func_win32_libid'
  6394. ;;
  6395. mingw* | pw32*)
  6396. # Base MSYS/MinGW do not provide the 'file' command needed by
  6397. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6398. # unless we find 'file', for example because we are cross-compiling.
  6399. if ( file / ) >/dev/null 2>&1; then
  6400. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6401. lt_cv_file_magic_cmd='func_win32_libid'
  6402. else
  6403. # Keep this pattern in sync with the one in func_win32_libid.
  6404. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  6405. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6406. fi
  6407. ;;
  6408. cegcc*)
  6409. # use the weaker test based on 'objdump'. See mingw*.
  6410. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6411. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6412. ;;
  6413. darwin* | rhapsody*)
  6414. lt_cv_deplibs_check_method=pass_all
  6415. ;;
  6416. freebsd* | dragonfly*)
  6417. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6418. case $host_cpu in
  6419. i*86 )
  6420. # Not sure whether the presence of OpenBSD here was a mistake.
  6421. # Let's accept both of them until this is cleared up.
  6422. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6423. lt_cv_file_magic_cmd=/usr/bin/file
  6424. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6425. ;;
  6426. esac
  6427. else
  6428. lt_cv_deplibs_check_method=pass_all
  6429. fi
  6430. ;;
  6431. haiku*)
  6432. lt_cv_deplibs_check_method=pass_all
  6433. ;;
  6434. hpux10.20* | hpux11*)
  6435. lt_cv_file_magic_cmd=/usr/bin/file
  6436. case $host_cpu in
  6437. ia64*)
  6438. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6439. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6440. ;;
  6441. hppa*64*)
  6442. 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]'
  6443. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6444. ;;
  6445. *)
  6446. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6447. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6448. ;;
  6449. esac
  6450. ;;
  6451. interix[3-9]*)
  6452. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6454. ;;
  6455. irix5* | irix6* | nonstopux*)
  6456. case $LD in
  6457. *-32|*"-32 ") libmagic=32-bit;;
  6458. *-n32|*"-n32 ") libmagic=N32;;
  6459. *-64|*"-64 ") libmagic=64-bit;;
  6460. *) libmagic=never-match;;
  6461. esac
  6462. lt_cv_deplibs_check_method=pass_all
  6463. ;;
  6464. # This must be glibc/ELF.
  6465. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6466. lt_cv_deplibs_check_method=pass_all
  6467. ;;
  6468. netbsd* | netbsdelf*-gnu)
  6469. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6471. else
  6472. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6473. fi
  6474. ;;
  6475. newos6*)
  6476. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6477. lt_cv_file_magic_cmd=/usr/bin/file
  6478. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6479. ;;
  6480. *nto* | *qnx*)
  6481. lt_cv_deplibs_check_method=pass_all
  6482. ;;
  6483. openbsd* | bitrig*)
  6484. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  6485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6486. else
  6487. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6488. fi
  6489. ;;
  6490. osf3* | osf4* | osf5*)
  6491. lt_cv_deplibs_check_method=pass_all
  6492. ;;
  6493. rdos*)
  6494. lt_cv_deplibs_check_method=pass_all
  6495. ;;
  6496. solaris*)
  6497. lt_cv_deplibs_check_method=pass_all
  6498. ;;
  6499. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6500. lt_cv_deplibs_check_method=pass_all
  6501. ;;
  6502. sysv4 | sysv4.3*)
  6503. case $host_vendor in
  6504. motorola)
  6505. 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]'
  6506. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6507. ;;
  6508. ncr)
  6509. lt_cv_deplibs_check_method=pass_all
  6510. ;;
  6511. sequent)
  6512. lt_cv_file_magic_cmd='/bin/file'
  6513. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6514. ;;
  6515. sni)
  6516. lt_cv_file_magic_cmd='/bin/file'
  6517. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6518. lt_cv_file_magic_test_file=/lib/libc.so
  6519. ;;
  6520. siemens)
  6521. lt_cv_deplibs_check_method=pass_all
  6522. ;;
  6523. pc)
  6524. lt_cv_deplibs_check_method=pass_all
  6525. ;;
  6526. esac
  6527. ;;
  6528. tpf*)
  6529. lt_cv_deplibs_check_method=pass_all
  6530. ;;
  6531. os2*)
  6532. lt_cv_deplibs_check_method=pass_all
  6533. ;;
  6534. esac
  6535. fi
  6536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6537. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  6538. file_magic_glob=
  6539. want_nocaseglob=no
  6540. if test "$build" = "$host"; then
  6541. case $host_os in
  6542. mingw* | pw32*)
  6543. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  6544. want_nocaseglob=yes
  6545. else
  6546. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  6547. fi
  6548. ;;
  6549. esac
  6550. fi
  6551. file_magic_cmd=$lt_cv_file_magic_cmd
  6552. deplibs_check_method=$lt_cv_deplibs_check_method
  6553. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6554. if test -n "$ac_tool_prefix"; then
  6555. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6556. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6558. printf %s "checking for $ac_word... " >&6; }
  6559. if test ${ac_cv_prog_DLLTOOL+y}
  6560. then :
  6561. printf %s "(cached) " >&6
  6562. else $as_nop
  6563. if test -n "$DLLTOOL"; then
  6564. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6565. else
  6566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6567. for as_dir in $PATH
  6568. do
  6569. IFS=$as_save_IFS
  6570. case $as_dir in #(((
  6571. '') as_dir=./ ;;
  6572. */) ;;
  6573. *) as_dir=$as_dir/ ;;
  6574. esac
  6575. for ac_exec_ext in '' $ac_executable_extensions; do
  6576. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6577. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6578. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6579. break 2
  6580. fi
  6581. done
  6582. done
  6583. IFS=$as_save_IFS
  6584. fi
  6585. fi
  6586. DLLTOOL=$ac_cv_prog_DLLTOOL
  6587. if test -n "$DLLTOOL"; then
  6588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6589. printf "%s\n" "$DLLTOOL" >&6; }
  6590. else
  6591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6592. printf "%s\n" "no" >&6; }
  6593. fi
  6594. fi
  6595. if test -z "$ac_cv_prog_DLLTOOL"; then
  6596. ac_ct_DLLTOOL=$DLLTOOL
  6597. # Extract the first word of "dlltool", so it can be a program name with args.
  6598. set dummy dlltool; ac_word=$2
  6599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6600. printf %s "checking for $ac_word... " >&6; }
  6601. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  6602. then :
  6603. printf %s "(cached) " >&6
  6604. else $as_nop
  6605. if test -n "$ac_ct_DLLTOOL"; then
  6606. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. case $as_dir in #(((
  6613. '') as_dir=./ ;;
  6614. */) ;;
  6615. *) as_dir=$as_dir/ ;;
  6616. esac
  6617. for ac_exec_ext in '' $ac_executable_extensions; do
  6618. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6619. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6620. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6621. break 2
  6622. fi
  6623. done
  6624. done
  6625. IFS=$as_save_IFS
  6626. fi
  6627. fi
  6628. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6629. if test -n "$ac_ct_DLLTOOL"; then
  6630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6631. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  6632. else
  6633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6634. printf "%s\n" "no" >&6; }
  6635. fi
  6636. if test "x$ac_ct_DLLTOOL" = x; then
  6637. DLLTOOL="false"
  6638. else
  6639. case $cross_compiling:$ac_tool_warned in
  6640. yes:)
  6641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6642. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6643. ac_tool_warned=yes ;;
  6644. esac
  6645. DLLTOOL=$ac_ct_DLLTOOL
  6646. fi
  6647. else
  6648. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6649. fi
  6650. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  6652. printf %s "checking how to associate runtime and link libraries... " >&6; }
  6653. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  6654. then :
  6655. printf %s "(cached) " >&6
  6656. else $as_nop
  6657. lt_cv_sharedlib_from_linklib_cmd='unknown'
  6658. case $host_os in
  6659. cygwin* | mingw* | pw32* | cegcc*)
  6660. # two different shell functions defined in ltmain.sh;
  6661. # decide which one to use based on capabilities of $DLLTOOL
  6662. case `$DLLTOOL --help 2>&1` in
  6663. *--identify-strict*)
  6664. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  6665. ;;
  6666. *)
  6667. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6668. ;;
  6669. esac
  6670. ;;
  6671. *)
  6672. # fallback: assume linklib IS sharedlib
  6673. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6674. ;;
  6675. esac
  6676. fi
  6677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6678. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6679. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6680. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6681. if test -n "$ac_tool_prefix"; then
  6682. for ac_prog in ar
  6683. do
  6684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6687. printf %s "checking for $ac_word... " >&6; }
  6688. if test ${ac_cv_prog_AR+y}
  6689. then :
  6690. printf %s "(cached) " >&6
  6691. else $as_nop
  6692. if test -n "$AR"; then
  6693. ac_cv_prog_AR="$AR" # Let the user override the test.
  6694. else
  6695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6696. for as_dir in $PATH
  6697. do
  6698. IFS=$as_save_IFS
  6699. case $as_dir in #(((
  6700. '') as_dir=./ ;;
  6701. */) ;;
  6702. *) as_dir=$as_dir/ ;;
  6703. esac
  6704. for ac_exec_ext in '' $ac_executable_extensions; do
  6705. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6706. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6707. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6708. break 2
  6709. fi
  6710. done
  6711. done
  6712. IFS=$as_save_IFS
  6713. fi
  6714. fi
  6715. AR=$ac_cv_prog_AR
  6716. if test -n "$AR"; then
  6717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6718. printf "%s\n" "$AR" >&6; }
  6719. else
  6720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6721. printf "%s\n" "no" >&6; }
  6722. fi
  6723. test -n "$AR" && break
  6724. done
  6725. fi
  6726. if test -z "$AR"; then
  6727. ac_ct_AR=$AR
  6728. for ac_prog in ar
  6729. do
  6730. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6731. set dummy $ac_prog; ac_word=$2
  6732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6733. printf %s "checking for $ac_word... " >&6; }
  6734. if test ${ac_cv_prog_ac_ct_AR+y}
  6735. then :
  6736. printf %s "(cached) " >&6
  6737. else $as_nop
  6738. if test -n "$ac_ct_AR"; then
  6739. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6740. else
  6741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. for as_dir in $PATH
  6743. do
  6744. IFS=$as_save_IFS
  6745. case $as_dir in #(((
  6746. '') as_dir=./ ;;
  6747. */) ;;
  6748. *) as_dir=$as_dir/ ;;
  6749. esac
  6750. for ac_exec_ext in '' $ac_executable_extensions; do
  6751. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6752. ac_cv_prog_ac_ct_AR="$ac_prog"
  6753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6754. break 2
  6755. fi
  6756. done
  6757. done
  6758. IFS=$as_save_IFS
  6759. fi
  6760. fi
  6761. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6762. if test -n "$ac_ct_AR"; then
  6763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6764. printf "%s\n" "$ac_ct_AR" >&6; }
  6765. else
  6766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6767. printf "%s\n" "no" >&6; }
  6768. fi
  6769. test -n "$ac_ct_AR" && break
  6770. done
  6771. if test "x$ac_ct_AR" = x; then
  6772. AR="false"
  6773. else
  6774. case $cross_compiling:$ac_tool_warned in
  6775. yes:)
  6776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6777. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6778. ac_tool_warned=yes ;;
  6779. esac
  6780. AR=$ac_ct_AR
  6781. fi
  6782. fi
  6783. : ${AR=ar}
  6784. : ${AR_FLAGS=cr}
  6785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6786. printf %s "checking for archiver @FILE support... " >&6; }
  6787. if test ${lt_cv_ar_at_file+y}
  6788. then :
  6789. printf %s "(cached) " >&6
  6790. else $as_nop
  6791. lt_cv_ar_at_file=no
  6792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6793. /* end confdefs.h. */
  6794. int
  6795. main (void)
  6796. {
  6797. ;
  6798. return 0;
  6799. }
  6800. _ACEOF
  6801. if ac_fn_c_try_compile "$LINENO"
  6802. then :
  6803. echo conftest.$ac_objext > conftest.lst
  6804. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6805. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6806. (eval $lt_ar_try) 2>&5
  6807. ac_status=$?
  6808. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6809. test $ac_status = 0; }
  6810. if test 0 -eq "$ac_status"; then
  6811. # Ensure the archiver fails upon bogus file names.
  6812. rm -f conftest.$ac_objext libconftest.a
  6813. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6814. (eval $lt_ar_try) 2>&5
  6815. ac_status=$?
  6816. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6817. test $ac_status = 0; }
  6818. if test 0 -ne "$ac_status"; then
  6819. lt_cv_ar_at_file=@
  6820. fi
  6821. fi
  6822. rm -f conftest.* libconftest.a
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  6825. fi
  6826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6827. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  6828. if test no = "$lt_cv_ar_at_file"; then
  6829. archiver_list_spec=
  6830. else
  6831. archiver_list_spec=$lt_cv_ar_at_file
  6832. fi
  6833. if test -n "$ac_tool_prefix"; then
  6834. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6835. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6837. printf %s "checking for $ac_word... " >&6; }
  6838. if test ${ac_cv_prog_STRIP+y}
  6839. then :
  6840. printf %s "(cached) " >&6
  6841. else $as_nop
  6842. if test -n "$STRIP"; then
  6843. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6844. else
  6845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6846. for as_dir in $PATH
  6847. do
  6848. IFS=$as_save_IFS
  6849. case $as_dir in #(((
  6850. '') as_dir=./ ;;
  6851. */) ;;
  6852. *) as_dir=$as_dir/ ;;
  6853. esac
  6854. for ac_exec_ext in '' $ac_executable_extensions; do
  6855. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6856. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6857. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6858. break 2
  6859. fi
  6860. done
  6861. done
  6862. IFS=$as_save_IFS
  6863. fi
  6864. fi
  6865. STRIP=$ac_cv_prog_STRIP
  6866. if test -n "$STRIP"; then
  6867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6868. printf "%s\n" "$STRIP" >&6; }
  6869. else
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6871. printf "%s\n" "no" >&6; }
  6872. fi
  6873. fi
  6874. if test -z "$ac_cv_prog_STRIP"; then
  6875. ac_ct_STRIP=$STRIP
  6876. # Extract the first word of "strip", so it can be a program name with args.
  6877. set dummy strip; ac_word=$2
  6878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6879. printf %s "checking for $ac_word... " >&6; }
  6880. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6881. then :
  6882. printf %s "(cached) " >&6
  6883. else $as_nop
  6884. if test -n "$ac_ct_STRIP"; then
  6885. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6886. else
  6887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6888. for as_dir in $PATH
  6889. do
  6890. IFS=$as_save_IFS
  6891. case $as_dir in #(((
  6892. '') as_dir=./ ;;
  6893. */) ;;
  6894. *) as_dir=$as_dir/ ;;
  6895. esac
  6896. for ac_exec_ext in '' $ac_executable_extensions; do
  6897. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6898. ac_cv_prog_ac_ct_STRIP="strip"
  6899. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6900. break 2
  6901. fi
  6902. done
  6903. done
  6904. IFS=$as_save_IFS
  6905. fi
  6906. fi
  6907. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6908. if test -n "$ac_ct_STRIP"; then
  6909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6910. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6911. else
  6912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6913. printf "%s\n" "no" >&6; }
  6914. fi
  6915. if test "x$ac_ct_STRIP" = x; then
  6916. STRIP=":"
  6917. else
  6918. case $cross_compiling:$ac_tool_warned in
  6919. yes:)
  6920. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6921. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6922. ac_tool_warned=yes ;;
  6923. esac
  6924. STRIP=$ac_ct_STRIP
  6925. fi
  6926. else
  6927. STRIP="$ac_cv_prog_STRIP"
  6928. fi
  6929. test -z "$STRIP" && STRIP=:
  6930. if test -n "$ac_tool_prefix"; then
  6931. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6932. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6934. printf %s "checking for $ac_word... " >&6; }
  6935. if test ${ac_cv_prog_RANLIB+y}
  6936. then :
  6937. printf %s "(cached) " >&6
  6938. else $as_nop
  6939. if test -n "$RANLIB"; then
  6940. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6941. else
  6942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6943. for as_dir in $PATH
  6944. do
  6945. IFS=$as_save_IFS
  6946. case $as_dir in #(((
  6947. '') as_dir=./ ;;
  6948. */) ;;
  6949. *) as_dir=$as_dir/ ;;
  6950. esac
  6951. for ac_exec_ext in '' $ac_executable_extensions; do
  6952. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6953. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6954. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6955. break 2
  6956. fi
  6957. done
  6958. done
  6959. IFS=$as_save_IFS
  6960. fi
  6961. fi
  6962. RANLIB=$ac_cv_prog_RANLIB
  6963. if test -n "$RANLIB"; then
  6964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6965. printf "%s\n" "$RANLIB" >&6; }
  6966. else
  6967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6968. printf "%s\n" "no" >&6; }
  6969. fi
  6970. fi
  6971. if test -z "$ac_cv_prog_RANLIB"; then
  6972. ac_ct_RANLIB=$RANLIB
  6973. # Extract the first word of "ranlib", so it can be a program name with args.
  6974. set dummy ranlib; ac_word=$2
  6975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6976. printf %s "checking for $ac_word... " >&6; }
  6977. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6978. then :
  6979. printf %s "(cached) " >&6
  6980. else $as_nop
  6981. if test -n "$ac_ct_RANLIB"; then
  6982. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6983. else
  6984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6985. for as_dir in $PATH
  6986. do
  6987. IFS=$as_save_IFS
  6988. case $as_dir in #(((
  6989. '') as_dir=./ ;;
  6990. */) ;;
  6991. *) as_dir=$as_dir/ ;;
  6992. esac
  6993. for ac_exec_ext in '' $ac_executable_extensions; do
  6994. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6995. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6996. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6997. break 2
  6998. fi
  6999. done
  7000. done
  7001. IFS=$as_save_IFS
  7002. fi
  7003. fi
  7004. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7005. if test -n "$ac_ct_RANLIB"; then
  7006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7007. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  7008. else
  7009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7010. printf "%s\n" "no" >&6; }
  7011. fi
  7012. if test "x$ac_ct_RANLIB" = x; then
  7013. RANLIB=":"
  7014. else
  7015. case $cross_compiling:$ac_tool_warned in
  7016. yes:)
  7017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7018. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7019. ac_tool_warned=yes ;;
  7020. esac
  7021. RANLIB=$ac_ct_RANLIB
  7022. fi
  7023. else
  7024. RANLIB="$ac_cv_prog_RANLIB"
  7025. fi
  7026. test -z "$RANLIB" && RANLIB=:
  7027. # Determine commands to create old-style static archives.
  7028. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7029. old_postinstall_cmds='chmod 644 $oldlib'
  7030. old_postuninstall_cmds=
  7031. if test -n "$RANLIB"; then
  7032. case $host_os in
  7033. bitrig* | openbsd*)
  7034. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7035. ;;
  7036. *)
  7037. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7038. ;;
  7039. esac
  7040. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7041. fi
  7042. case $host_os in
  7043. darwin*)
  7044. lock_old_archive_extraction=yes ;;
  7045. *)
  7046. lock_old_archive_extraction=no ;;
  7047. esac
  7048. # If no C compiler was specified, use CC.
  7049. LTCC=${LTCC-"$CC"}
  7050. # If no C compiler flags were specified, use CFLAGS.
  7051. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7052. # Allow CC to be a program name with arguments.
  7053. compiler=$CC
  7054. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  7056. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  7057. if test ${lt_cv_sys_global_symbol_pipe+y}
  7058. then :
  7059. printf %s "(cached) " >&6
  7060. else $as_nop
  7061. # These are sane defaults that work on at least a few old systems.
  7062. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7063. # Character class describing NM global symbol codes.
  7064. symcode='[BCDEGRST]'
  7065. # Regexp to match symbols that can be accessed directly from C.
  7066. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7067. # Define system-specific variables.
  7068. case $host_os in
  7069. aix*)
  7070. symcode='[BCDT]'
  7071. ;;
  7072. cygwin* | mingw* | pw32* | cegcc*)
  7073. symcode='[ABCDGISTW]'
  7074. ;;
  7075. hpux*)
  7076. if test ia64 = "$host_cpu"; then
  7077. symcode='[ABCDEGRST]'
  7078. fi
  7079. ;;
  7080. irix* | nonstopux*)
  7081. symcode='[BCDEGRST]'
  7082. ;;
  7083. osf*)
  7084. symcode='[BCDEGQRST]'
  7085. ;;
  7086. solaris*)
  7087. symcode='[BDRT]'
  7088. ;;
  7089. sco3.2v5*)
  7090. symcode='[DT]'
  7091. ;;
  7092. sysv4.2uw2*)
  7093. symcode='[DT]'
  7094. ;;
  7095. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7096. symcode='[ABDT]'
  7097. ;;
  7098. sysv4)
  7099. symcode='[DFNSTU]'
  7100. ;;
  7101. esac
  7102. # If we're using GNU nm, then use its standard symbol codes.
  7103. case `$NM -V 2>&1` in
  7104. *GNU* | *'with BFD'*)
  7105. symcode='[ABCDGIRSTW]' ;;
  7106. esac
  7107. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7108. # Gets list of data symbols to import.
  7109. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  7110. # Adjust the below global symbol transforms to fixup imported variables.
  7111. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  7112. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  7113. lt_c_name_lib_hook="\
  7114. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  7115. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  7116. else
  7117. # Disable hooks by default.
  7118. lt_cv_sys_global_symbol_to_import=
  7119. lt_cdecl_hook=
  7120. lt_c_name_hook=
  7121. lt_c_name_lib_hook=
  7122. fi
  7123. # Transform an extracted symbol line into a proper C declaration.
  7124. # Some systems (esp. on ia64) link data and code symbols differently,
  7125. # so use this general approach.
  7126. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  7127. $lt_cdecl_hook\
  7128. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  7129. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  7130. # Transform an extracted symbol line into symbol name and symbol address
  7131. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  7132. $lt_c_name_hook\
  7133. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7134. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  7135. # Transform an extracted symbol line into symbol name with lib prefix and
  7136. # symbol address.
  7137. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  7138. $lt_c_name_lib_hook\
  7139. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  7140. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  7141. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  7142. # Handle CRLF in mingw tool chain
  7143. opt_cr=
  7144. case $build_os in
  7145. mingw*)
  7146. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7147. ;;
  7148. esac
  7149. # Try without a prefix underscore, then with it.
  7150. for ac_symprfx in "" "_"; do
  7151. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7152. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7153. # Write the raw and C identifiers.
  7154. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7155. # Fake it for dumpbin and say T for any non-static function,
  7156. # D for any global variable and I for any imported variable.
  7157. # Also find C++ and __fastcall symbols from MSVC++,
  7158. # which start with @ or ?.
  7159. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7160. " {last_section=section; section=\$ 3};"\
  7161. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  7162. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7163. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  7164. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  7165. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  7166. " \$ 0!~/External *\|/{next};"\
  7167. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7168. " {if(hide[section]) next};"\
  7169. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  7170. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  7171. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  7172. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  7173. " ' prfx=^$ac_symprfx"
  7174. else
  7175. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7176. fi
  7177. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  7178. # Check to see that the pipe works correctly.
  7179. pipe_works=no
  7180. rm -f conftest*
  7181. cat > conftest.$ac_ext <<_LT_EOF
  7182. #ifdef __cplusplus
  7183. extern "C" {
  7184. #endif
  7185. char nm_test_var;
  7186. void nm_test_func(void);
  7187. void nm_test_func(void){}
  7188. #ifdef __cplusplus
  7189. }
  7190. #endif
  7191. int main(){nm_test_var='a';nm_test_func();return(0);}
  7192. _LT_EOF
  7193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7194. (eval $ac_compile) 2>&5
  7195. ac_status=$?
  7196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7197. test $ac_status = 0; }; then
  7198. # Now try to grab the symbols.
  7199. nlist=conftest.nm
  7200. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
  7201. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
  7202. # Try sorting and uniquifying the output.
  7203. if sort "$nlist" | uniq > "$nlist"T; then
  7204. mv -f "$nlist"T "$nlist"
  7205. else
  7206. rm -f "$nlist"T
  7207. fi
  7208. # Make sure that we snagged all the symbols we need.
  7209. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7210. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7211. cat <<_LT_EOF > conftest.$ac_ext
  7212. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  7213. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  7214. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  7215. relocations are performed -- see ld's documentation on pseudo-relocs. */
  7216. # define LT_DLSYM_CONST
  7217. #elif defined __osf__
  7218. /* This system does not cope well with relocations in const data. */
  7219. # define LT_DLSYM_CONST
  7220. #else
  7221. # define LT_DLSYM_CONST const
  7222. #endif
  7223. #ifdef __cplusplus
  7224. extern "C" {
  7225. #endif
  7226. _LT_EOF
  7227. # Now generate the symbol file.
  7228. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7229. cat <<_LT_EOF >> conftest.$ac_ext
  7230. /* The mapping between symbol names and symbols. */
  7231. LT_DLSYM_CONST struct {
  7232. const char *name;
  7233. void *address;
  7234. }
  7235. lt__PROGRAM__LTX_preloaded_symbols[] =
  7236. {
  7237. { "@PROGRAM@", (void *) 0 },
  7238. _LT_EOF
  7239. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7240. cat <<\_LT_EOF >> conftest.$ac_ext
  7241. {0, (void *) 0}
  7242. };
  7243. /* This works around a problem in FreeBSD linker */
  7244. #ifdef FREEBSD_WORKAROUND
  7245. static const void *lt_preloaded_setup() {
  7246. return lt__PROGRAM__LTX_preloaded_symbols;
  7247. }
  7248. #endif
  7249. #ifdef __cplusplus
  7250. }
  7251. #endif
  7252. _LT_EOF
  7253. # Now try linking the two files.
  7254. mv conftest.$ac_objext conftstm.$ac_objext
  7255. lt_globsym_save_LIBS=$LIBS
  7256. lt_globsym_save_CFLAGS=$CFLAGS
  7257. LIBS=conftstm.$ac_objext
  7258. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7259. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7260. (eval $ac_link) 2>&5
  7261. ac_status=$?
  7262. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7263. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  7264. pipe_works=yes
  7265. fi
  7266. LIBS=$lt_globsym_save_LIBS
  7267. CFLAGS=$lt_globsym_save_CFLAGS
  7268. else
  7269. echo "cannot find nm_test_func in $nlist" >&5
  7270. fi
  7271. else
  7272. echo "cannot find nm_test_var in $nlist" >&5
  7273. fi
  7274. else
  7275. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7276. fi
  7277. else
  7278. echo "$progname: failed program was:" >&5
  7279. cat conftest.$ac_ext >&5
  7280. fi
  7281. rm -rf conftest* conftst*
  7282. # Do not use the global_symbol_pipe unless it works.
  7283. if test yes = "$pipe_works"; then
  7284. break
  7285. else
  7286. lt_cv_sys_global_symbol_pipe=
  7287. fi
  7288. done
  7289. fi
  7290. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7291. lt_cv_sys_global_symbol_to_cdecl=
  7292. fi
  7293. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7295. printf "%s\n" "failed" >&6; }
  7296. else
  7297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7298. printf "%s\n" "ok" >&6; }
  7299. fi
  7300. # Response file support.
  7301. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7302. nm_file_list_spec='@'
  7303. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  7304. nm_file_list_spec='@'
  7305. fi
  7306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  7307. printf %s "checking for sysroot... " >&6; }
  7308. # Check whether --with-sysroot was given.
  7309. if test ${with_sysroot+y}
  7310. then :
  7311. withval=$with_sysroot;
  7312. else $as_nop
  7313. with_sysroot=no
  7314. fi
  7315. lt_sysroot=
  7316. case $with_sysroot in #(
  7317. yes)
  7318. if test yes = "$GCC"; then
  7319. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  7320. fi
  7321. ;; #(
  7322. /*)
  7323. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  7324. ;; #(
  7325. no|'')
  7326. ;; #(
  7327. *)
  7328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  7329. printf "%s\n" "$with_sysroot" >&6; }
  7330. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  7331. ;;
  7332. esac
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  7334. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  7335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  7336. printf %s "checking for a working dd... " >&6; }
  7337. if test ${ac_cv_path_lt_DD+y}
  7338. then :
  7339. printf %s "(cached) " >&6
  7340. else $as_nop
  7341. printf 0123456789abcdef0123456789abcdef >conftest.i
  7342. cat conftest.i conftest.i >conftest2.i
  7343. : ${lt_DD:=$DD}
  7344. if test -z "$lt_DD"; then
  7345. ac_path_lt_DD_found=false
  7346. # Loop through the user's path and test for each of PROGNAME-LIST
  7347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7348. for as_dir in $PATH
  7349. do
  7350. IFS=$as_save_IFS
  7351. case $as_dir in #(((
  7352. '') as_dir=./ ;;
  7353. */) ;;
  7354. *) as_dir=$as_dir/ ;;
  7355. esac
  7356. for ac_prog in dd
  7357. do
  7358. for ac_exec_ext in '' $ac_executable_extensions; do
  7359. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  7360. as_fn_executable_p "$ac_path_lt_DD" || continue
  7361. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7362. cmp -s conftest.i conftest.out \
  7363. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  7364. fi
  7365. $ac_path_lt_DD_found && break 3
  7366. done
  7367. done
  7368. done
  7369. IFS=$as_save_IFS
  7370. if test -z "$ac_cv_path_lt_DD"; then
  7371. :
  7372. fi
  7373. else
  7374. ac_cv_path_lt_DD=$lt_DD
  7375. fi
  7376. rm -f conftest.i conftest2.i conftest.out
  7377. fi
  7378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  7379. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  7380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  7381. printf %s "checking how to truncate binary pipes... " >&6; }
  7382. if test ${lt_cv_truncate_bin+y}
  7383. then :
  7384. printf %s "(cached) " >&6
  7385. else $as_nop
  7386. printf 0123456789abcdef0123456789abcdef >conftest.i
  7387. cat conftest.i conftest.i >conftest2.i
  7388. lt_cv_truncate_bin=
  7389. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  7390. cmp -s conftest.i conftest.out \
  7391. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  7392. fi
  7393. rm -f conftest.i conftest2.i conftest.out
  7394. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  7395. fi
  7396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  7397. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  7398. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  7399. func_cc_basename ()
  7400. {
  7401. for cc_temp in $*""; do
  7402. case $cc_temp in
  7403. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7404. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7405. \-*) ;;
  7406. *) break;;
  7407. esac
  7408. done
  7409. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7410. }
  7411. # Check whether --enable-libtool-lock was given.
  7412. if test ${enable_libtool_lock+y}
  7413. then :
  7414. enableval=$enable_libtool_lock;
  7415. fi
  7416. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  7417. # Some flags need to be propagated to the compiler or linker for good
  7418. # libtool support.
  7419. case $host in
  7420. ia64-*-hpux*)
  7421. # Find out what ABI is being produced by ac_compile, and set mode
  7422. # options accordingly.
  7423. echo 'int i;' > conftest.$ac_ext
  7424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7425. (eval $ac_compile) 2>&5
  7426. ac_status=$?
  7427. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7428. test $ac_status = 0; }; then
  7429. case `/usr/bin/file conftest.$ac_objext` in
  7430. *ELF-32*)
  7431. HPUX_IA64_MODE=32
  7432. ;;
  7433. *ELF-64*)
  7434. HPUX_IA64_MODE=64
  7435. ;;
  7436. esac
  7437. fi
  7438. rm -rf conftest*
  7439. ;;
  7440. *-*-irix6*)
  7441. # Find out what ABI is being produced by ac_compile, and set linker
  7442. # options accordingly.
  7443. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7444. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7445. (eval $ac_compile) 2>&5
  7446. ac_status=$?
  7447. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7448. test $ac_status = 0; }; then
  7449. if test yes = "$lt_cv_prog_gnu_ld"; then
  7450. case `/usr/bin/file conftest.$ac_objext` in
  7451. *32-bit*)
  7452. LD="${LD-ld} -melf32bsmip"
  7453. ;;
  7454. *N32*)
  7455. LD="${LD-ld} -melf32bmipn32"
  7456. ;;
  7457. *64-bit*)
  7458. LD="${LD-ld} -melf64bmip"
  7459. ;;
  7460. esac
  7461. else
  7462. case `/usr/bin/file conftest.$ac_objext` in
  7463. *32-bit*)
  7464. LD="${LD-ld} -32"
  7465. ;;
  7466. *N32*)
  7467. LD="${LD-ld} -n32"
  7468. ;;
  7469. *64-bit*)
  7470. LD="${LD-ld} -64"
  7471. ;;
  7472. esac
  7473. fi
  7474. fi
  7475. rm -rf conftest*
  7476. ;;
  7477. mips64*-*linux*)
  7478. # Find out what ABI is being produced by ac_compile, and set linker
  7479. # options accordingly.
  7480. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7481. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7482. (eval $ac_compile) 2>&5
  7483. ac_status=$?
  7484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7485. test $ac_status = 0; }; then
  7486. emul=elf
  7487. case `/usr/bin/file conftest.$ac_objext` in
  7488. *32-bit*)
  7489. emul="${emul}32"
  7490. ;;
  7491. *64-bit*)
  7492. emul="${emul}64"
  7493. ;;
  7494. esac
  7495. case `/usr/bin/file conftest.$ac_objext` in
  7496. *MSB*)
  7497. emul="${emul}btsmip"
  7498. ;;
  7499. *LSB*)
  7500. emul="${emul}ltsmip"
  7501. ;;
  7502. esac
  7503. case `/usr/bin/file conftest.$ac_objext` in
  7504. *N32*)
  7505. emul="${emul}n32"
  7506. ;;
  7507. esac
  7508. LD="${LD-ld} -m $emul"
  7509. fi
  7510. rm -rf conftest*
  7511. ;;
  7512. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7513. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7514. # Find out what ABI is being produced by ac_compile, and set linker
  7515. # options accordingly. Note that the listed cases only cover the
  7516. # situations where additional linker options are needed (such as when
  7517. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  7518. # vice versa); the common cases where no linker options are needed do
  7519. # not appear in the list.
  7520. echo 'int i;' > conftest.$ac_ext
  7521. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7522. (eval $ac_compile) 2>&5
  7523. ac_status=$?
  7524. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7525. test $ac_status = 0; }; then
  7526. case `/usr/bin/file conftest.o` in
  7527. *32-bit*)
  7528. case $host in
  7529. x86_64-*kfreebsd*-gnu)
  7530. LD="${LD-ld} -m elf_i386_fbsd"
  7531. ;;
  7532. x86_64-*linux*)
  7533. case `/usr/bin/file conftest.o` in
  7534. *x86-64*)
  7535. LD="${LD-ld} -m elf32_x86_64"
  7536. ;;
  7537. *)
  7538. LD="${LD-ld} -m elf_i386"
  7539. ;;
  7540. esac
  7541. ;;
  7542. powerpc64le-*linux*)
  7543. LD="${LD-ld} -m elf32lppclinux"
  7544. ;;
  7545. powerpc64-*linux*)
  7546. LD="${LD-ld} -m elf32ppclinux"
  7547. ;;
  7548. s390x-*linux*)
  7549. LD="${LD-ld} -m elf_s390"
  7550. ;;
  7551. sparc64-*linux*)
  7552. LD="${LD-ld} -m elf32_sparc"
  7553. ;;
  7554. esac
  7555. ;;
  7556. *64-bit*)
  7557. case $host in
  7558. x86_64-*kfreebsd*-gnu)
  7559. LD="${LD-ld} -m elf_x86_64_fbsd"
  7560. ;;
  7561. x86_64-*linux*)
  7562. LD="${LD-ld} -m elf_x86_64"
  7563. ;;
  7564. powerpcle-*linux*)
  7565. LD="${LD-ld} -m elf64lppc"
  7566. ;;
  7567. powerpc-*linux*)
  7568. LD="${LD-ld} -m elf64ppc"
  7569. ;;
  7570. s390*-*linux*|s390*-*tpf*)
  7571. LD="${LD-ld} -m elf64_s390"
  7572. ;;
  7573. sparc*-*linux*)
  7574. LD="${LD-ld} -m elf64_sparc"
  7575. ;;
  7576. esac
  7577. ;;
  7578. esac
  7579. fi
  7580. rm -rf conftest*
  7581. ;;
  7582. *-*-sco3.2v5*)
  7583. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7584. SAVE_CFLAGS=$CFLAGS
  7585. CFLAGS="$CFLAGS -belf"
  7586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7587. printf %s "checking whether the C compiler needs -belf... " >&6; }
  7588. if test ${lt_cv_cc_needs_belf+y}
  7589. then :
  7590. printf %s "(cached) " >&6
  7591. else $as_nop
  7592. ac_ext=c
  7593. ac_cpp='$CPP $CPPFLAGS'
  7594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7598. /* end confdefs.h. */
  7599. int
  7600. main (void)
  7601. {
  7602. ;
  7603. return 0;
  7604. }
  7605. _ACEOF
  7606. if ac_fn_c_try_link "$LINENO"
  7607. then :
  7608. lt_cv_cc_needs_belf=yes
  7609. else $as_nop
  7610. lt_cv_cc_needs_belf=no
  7611. fi
  7612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7613. conftest$ac_exeext conftest.$ac_ext
  7614. ac_ext=c
  7615. ac_cpp='$CPP $CPPFLAGS'
  7616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7619. fi
  7620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7621. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  7622. if test yes != "$lt_cv_cc_needs_belf"; then
  7623. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7624. CFLAGS=$SAVE_CFLAGS
  7625. fi
  7626. ;;
  7627. *-*solaris*)
  7628. # Find out what ABI is being produced by ac_compile, and set linker
  7629. # options accordingly.
  7630. echo 'int i;' > conftest.$ac_ext
  7631. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7632. (eval $ac_compile) 2>&5
  7633. ac_status=$?
  7634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7635. test $ac_status = 0; }; then
  7636. case `/usr/bin/file conftest.o` in
  7637. *64-bit*)
  7638. case $lt_cv_prog_gnu_ld in
  7639. yes*)
  7640. case $host in
  7641. i?86-*-solaris*|x86_64-*-solaris*)
  7642. LD="${LD-ld} -m elf_x86_64"
  7643. ;;
  7644. sparc*-*-solaris*)
  7645. LD="${LD-ld} -m elf64_sparc"
  7646. ;;
  7647. esac
  7648. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  7649. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  7650. LD=${LD-ld}_sol2
  7651. fi
  7652. ;;
  7653. *)
  7654. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7655. LD="${LD-ld} -64"
  7656. fi
  7657. ;;
  7658. esac
  7659. ;;
  7660. esac
  7661. fi
  7662. rm -rf conftest*
  7663. ;;
  7664. esac
  7665. need_locks=$enable_libtool_lock
  7666. if test -n "$ac_tool_prefix"; then
  7667. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  7668. set dummy ${ac_tool_prefix}mt; ac_word=$2
  7669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7670. printf %s "checking for $ac_word... " >&6; }
  7671. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  7672. then :
  7673. printf %s "(cached) " >&6
  7674. else $as_nop
  7675. if test -n "$MANIFEST_TOOL"; then
  7676. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  7677. else
  7678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7679. for as_dir in $PATH
  7680. do
  7681. IFS=$as_save_IFS
  7682. case $as_dir in #(((
  7683. '') as_dir=./ ;;
  7684. */) ;;
  7685. *) as_dir=$as_dir/ ;;
  7686. esac
  7687. for ac_exec_ext in '' $ac_executable_extensions; do
  7688. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7689. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  7690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7691. break 2
  7692. fi
  7693. done
  7694. done
  7695. IFS=$as_save_IFS
  7696. fi
  7697. fi
  7698. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  7699. if test -n "$MANIFEST_TOOL"; then
  7700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  7701. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  7702. else
  7703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7704. printf "%s\n" "no" >&6; }
  7705. fi
  7706. fi
  7707. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  7708. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  7709. # Extract the first word of "mt", so it can be a program name with args.
  7710. set dummy mt; ac_word=$2
  7711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7712. printf %s "checking for $ac_word... " >&6; }
  7713. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  7714. then :
  7715. printf %s "(cached) " >&6
  7716. else $as_nop
  7717. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7718. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7719. else
  7720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7721. for as_dir in $PATH
  7722. do
  7723. IFS=$as_save_IFS
  7724. case $as_dir in #(((
  7725. '') as_dir=./ ;;
  7726. */) ;;
  7727. *) as_dir=$as_dir/ ;;
  7728. esac
  7729. for ac_exec_ext in '' $ac_executable_extensions; do
  7730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7731. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7733. break 2
  7734. fi
  7735. done
  7736. done
  7737. IFS=$as_save_IFS
  7738. fi
  7739. fi
  7740. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7741. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7743. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  7744. else
  7745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7746. printf "%s\n" "no" >&6; }
  7747. fi
  7748. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7749. MANIFEST_TOOL=":"
  7750. else
  7751. case $cross_compiling:$ac_tool_warned in
  7752. yes:)
  7753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7754. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7755. ac_tool_warned=yes ;;
  7756. esac
  7757. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7758. fi
  7759. else
  7760. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7761. fi
  7762. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7764. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7765. if test ${lt_cv_path_mainfest_tool+y}
  7766. then :
  7767. printf %s "(cached) " >&6
  7768. else $as_nop
  7769. lt_cv_path_mainfest_tool=no
  7770. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7771. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7772. cat conftest.err >&5
  7773. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7774. lt_cv_path_mainfest_tool=yes
  7775. fi
  7776. rm -f conftest*
  7777. fi
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7779. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  7780. if test yes != "$lt_cv_path_mainfest_tool"; then
  7781. MANIFEST_TOOL=:
  7782. fi
  7783. case $host_os in
  7784. rhapsody* | darwin*)
  7785. if test -n "$ac_tool_prefix"; then
  7786. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7787. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7789. printf %s "checking for $ac_word... " >&6; }
  7790. if test ${ac_cv_prog_DSYMUTIL+y}
  7791. then :
  7792. printf %s "(cached) " >&6
  7793. else $as_nop
  7794. if test -n "$DSYMUTIL"; then
  7795. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7796. else
  7797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7798. for as_dir in $PATH
  7799. do
  7800. IFS=$as_save_IFS
  7801. case $as_dir in #(((
  7802. '') as_dir=./ ;;
  7803. */) ;;
  7804. *) as_dir=$as_dir/ ;;
  7805. esac
  7806. for ac_exec_ext in '' $ac_executable_extensions; do
  7807. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7808. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7810. break 2
  7811. fi
  7812. done
  7813. done
  7814. IFS=$as_save_IFS
  7815. fi
  7816. fi
  7817. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7818. if test -n "$DSYMUTIL"; then
  7819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7820. printf "%s\n" "$DSYMUTIL" >&6; }
  7821. else
  7822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7823. printf "%s\n" "no" >&6; }
  7824. fi
  7825. fi
  7826. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7827. ac_ct_DSYMUTIL=$DSYMUTIL
  7828. # Extract the first word of "dsymutil", so it can be a program name with args.
  7829. set dummy dsymutil; ac_word=$2
  7830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7831. printf %s "checking for $ac_word... " >&6; }
  7832. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  7833. then :
  7834. printf %s "(cached) " >&6
  7835. else $as_nop
  7836. if test -n "$ac_ct_DSYMUTIL"; then
  7837. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7838. else
  7839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7840. for as_dir in $PATH
  7841. do
  7842. IFS=$as_save_IFS
  7843. case $as_dir in #(((
  7844. '') as_dir=./ ;;
  7845. */) ;;
  7846. *) as_dir=$as_dir/ ;;
  7847. esac
  7848. for ac_exec_ext in '' $ac_executable_extensions; do
  7849. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7850. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7852. break 2
  7853. fi
  7854. done
  7855. done
  7856. IFS=$as_save_IFS
  7857. fi
  7858. fi
  7859. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7860. if test -n "$ac_ct_DSYMUTIL"; then
  7861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7862. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  7863. else
  7864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7865. printf "%s\n" "no" >&6; }
  7866. fi
  7867. if test "x$ac_ct_DSYMUTIL" = x; then
  7868. DSYMUTIL=":"
  7869. else
  7870. case $cross_compiling:$ac_tool_warned in
  7871. yes:)
  7872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7873. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7874. ac_tool_warned=yes ;;
  7875. esac
  7876. DSYMUTIL=$ac_ct_DSYMUTIL
  7877. fi
  7878. else
  7879. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7880. fi
  7881. if test -n "$ac_tool_prefix"; then
  7882. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7883. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7885. printf %s "checking for $ac_word... " >&6; }
  7886. if test ${ac_cv_prog_NMEDIT+y}
  7887. then :
  7888. printf %s "(cached) " >&6
  7889. else $as_nop
  7890. if test -n "$NMEDIT"; then
  7891. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7892. else
  7893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7894. for as_dir in $PATH
  7895. do
  7896. IFS=$as_save_IFS
  7897. case $as_dir in #(((
  7898. '') as_dir=./ ;;
  7899. */) ;;
  7900. *) as_dir=$as_dir/ ;;
  7901. esac
  7902. for ac_exec_ext in '' $ac_executable_extensions; do
  7903. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7904. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7905. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7906. break 2
  7907. fi
  7908. done
  7909. done
  7910. IFS=$as_save_IFS
  7911. fi
  7912. fi
  7913. NMEDIT=$ac_cv_prog_NMEDIT
  7914. if test -n "$NMEDIT"; then
  7915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7916. printf "%s\n" "$NMEDIT" >&6; }
  7917. else
  7918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7919. printf "%s\n" "no" >&6; }
  7920. fi
  7921. fi
  7922. if test -z "$ac_cv_prog_NMEDIT"; then
  7923. ac_ct_NMEDIT=$NMEDIT
  7924. # Extract the first word of "nmedit", so it can be a program name with args.
  7925. set dummy nmedit; ac_word=$2
  7926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7927. printf %s "checking for $ac_word... " >&6; }
  7928. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  7929. then :
  7930. printf %s "(cached) " >&6
  7931. else $as_nop
  7932. if test -n "$ac_ct_NMEDIT"; then
  7933. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7934. else
  7935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7936. for as_dir in $PATH
  7937. do
  7938. IFS=$as_save_IFS
  7939. case $as_dir in #(((
  7940. '') as_dir=./ ;;
  7941. */) ;;
  7942. *) as_dir=$as_dir/ ;;
  7943. esac
  7944. for ac_exec_ext in '' $ac_executable_extensions; do
  7945. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7946. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7948. break 2
  7949. fi
  7950. done
  7951. done
  7952. IFS=$as_save_IFS
  7953. fi
  7954. fi
  7955. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7956. if test -n "$ac_ct_NMEDIT"; then
  7957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7958. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  7959. else
  7960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7961. printf "%s\n" "no" >&6; }
  7962. fi
  7963. if test "x$ac_ct_NMEDIT" = x; then
  7964. NMEDIT=":"
  7965. else
  7966. case $cross_compiling:$ac_tool_warned in
  7967. yes:)
  7968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7969. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7970. ac_tool_warned=yes ;;
  7971. esac
  7972. NMEDIT=$ac_ct_NMEDIT
  7973. fi
  7974. else
  7975. NMEDIT="$ac_cv_prog_NMEDIT"
  7976. fi
  7977. if test -n "$ac_tool_prefix"; then
  7978. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7979. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7981. printf %s "checking for $ac_word... " >&6; }
  7982. if test ${ac_cv_prog_LIPO+y}
  7983. then :
  7984. printf %s "(cached) " >&6
  7985. else $as_nop
  7986. if test -n "$LIPO"; then
  7987. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7988. else
  7989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7990. for as_dir in $PATH
  7991. do
  7992. IFS=$as_save_IFS
  7993. case $as_dir in #(((
  7994. '') as_dir=./ ;;
  7995. */) ;;
  7996. *) as_dir=$as_dir/ ;;
  7997. esac
  7998. for ac_exec_ext in '' $ac_executable_extensions; do
  7999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8000. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8002. break 2
  8003. fi
  8004. done
  8005. done
  8006. IFS=$as_save_IFS
  8007. fi
  8008. fi
  8009. LIPO=$ac_cv_prog_LIPO
  8010. if test -n "$LIPO"; then
  8011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8012. printf "%s\n" "$LIPO" >&6; }
  8013. else
  8014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8015. printf "%s\n" "no" >&6; }
  8016. fi
  8017. fi
  8018. if test -z "$ac_cv_prog_LIPO"; then
  8019. ac_ct_LIPO=$LIPO
  8020. # Extract the first word of "lipo", so it can be a program name with args.
  8021. set dummy lipo; ac_word=$2
  8022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8023. printf %s "checking for $ac_word... " >&6; }
  8024. if test ${ac_cv_prog_ac_ct_LIPO+y}
  8025. then :
  8026. printf %s "(cached) " >&6
  8027. else $as_nop
  8028. if test -n "$ac_ct_LIPO"; then
  8029. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8030. else
  8031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8032. for as_dir in $PATH
  8033. do
  8034. IFS=$as_save_IFS
  8035. case $as_dir in #(((
  8036. '') as_dir=./ ;;
  8037. */) ;;
  8038. *) as_dir=$as_dir/ ;;
  8039. esac
  8040. for ac_exec_ext in '' $ac_executable_extensions; do
  8041. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8042. ac_cv_prog_ac_ct_LIPO="lipo"
  8043. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8044. break 2
  8045. fi
  8046. done
  8047. done
  8048. IFS=$as_save_IFS
  8049. fi
  8050. fi
  8051. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8052. if test -n "$ac_ct_LIPO"; then
  8053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8054. printf "%s\n" "$ac_ct_LIPO" >&6; }
  8055. else
  8056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8057. printf "%s\n" "no" >&6; }
  8058. fi
  8059. if test "x$ac_ct_LIPO" = x; then
  8060. LIPO=":"
  8061. else
  8062. case $cross_compiling:$ac_tool_warned in
  8063. yes:)
  8064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8065. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8066. ac_tool_warned=yes ;;
  8067. esac
  8068. LIPO=$ac_ct_LIPO
  8069. fi
  8070. else
  8071. LIPO="$ac_cv_prog_LIPO"
  8072. fi
  8073. if test -n "$ac_tool_prefix"; then
  8074. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8075. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8077. printf %s "checking for $ac_word... " >&6; }
  8078. if test ${ac_cv_prog_OTOOL+y}
  8079. then :
  8080. printf %s "(cached) " >&6
  8081. else $as_nop
  8082. if test -n "$OTOOL"; then
  8083. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8084. else
  8085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8086. for as_dir in $PATH
  8087. do
  8088. IFS=$as_save_IFS
  8089. case $as_dir in #(((
  8090. '') as_dir=./ ;;
  8091. */) ;;
  8092. *) as_dir=$as_dir/ ;;
  8093. esac
  8094. for ac_exec_ext in '' $ac_executable_extensions; do
  8095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8096. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8098. break 2
  8099. fi
  8100. done
  8101. done
  8102. IFS=$as_save_IFS
  8103. fi
  8104. fi
  8105. OTOOL=$ac_cv_prog_OTOOL
  8106. if test -n "$OTOOL"; then
  8107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  8108. printf "%s\n" "$OTOOL" >&6; }
  8109. else
  8110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8111. printf "%s\n" "no" >&6; }
  8112. fi
  8113. fi
  8114. if test -z "$ac_cv_prog_OTOOL"; then
  8115. ac_ct_OTOOL=$OTOOL
  8116. # Extract the first word of "otool", so it can be a program name with args.
  8117. set dummy otool; ac_word=$2
  8118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8119. printf %s "checking for $ac_word... " >&6; }
  8120. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  8121. then :
  8122. printf %s "(cached) " >&6
  8123. else $as_nop
  8124. if test -n "$ac_ct_OTOOL"; then
  8125. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  8126. else
  8127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8128. for as_dir in $PATH
  8129. do
  8130. IFS=$as_save_IFS
  8131. case $as_dir in #(((
  8132. '') as_dir=./ ;;
  8133. */) ;;
  8134. *) as_dir=$as_dir/ ;;
  8135. esac
  8136. for ac_exec_ext in '' $ac_executable_extensions; do
  8137. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8138. ac_cv_prog_ac_ct_OTOOL="otool"
  8139. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8140. break 2
  8141. fi
  8142. done
  8143. done
  8144. IFS=$as_save_IFS
  8145. fi
  8146. fi
  8147. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  8148. if test -n "$ac_ct_OTOOL"; then
  8149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  8150. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  8151. else
  8152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8153. printf "%s\n" "no" >&6; }
  8154. fi
  8155. if test "x$ac_ct_OTOOL" = x; then
  8156. OTOOL=":"
  8157. else
  8158. case $cross_compiling:$ac_tool_warned in
  8159. yes:)
  8160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8161. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8162. ac_tool_warned=yes ;;
  8163. esac
  8164. OTOOL=$ac_ct_OTOOL
  8165. fi
  8166. else
  8167. OTOOL="$ac_cv_prog_OTOOL"
  8168. fi
  8169. if test -n "$ac_tool_prefix"; then
  8170. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  8171. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  8172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8173. printf %s "checking for $ac_word... " >&6; }
  8174. if test ${ac_cv_prog_OTOOL64+y}
  8175. then :
  8176. printf %s "(cached) " >&6
  8177. else $as_nop
  8178. if test -n "$OTOOL64"; then
  8179. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  8180. else
  8181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8182. for as_dir in $PATH
  8183. do
  8184. IFS=$as_save_IFS
  8185. case $as_dir in #(((
  8186. '') as_dir=./ ;;
  8187. */) ;;
  8188. *) as_dir=$as_dir/ ;;
  8189. esac
  8190. for ac_exec_ext in '' $ac_executable_extensions; do
  8191. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8192. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  8193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8194. break 2
  8195. fi
  8196. done
  8197. done
  8198. IFS=$as_save_IFS
  8199. fi
  8200. fi
  8201. OTOOL64=$ac_cv_prog_OTOOL64
  8202. if test -n "$OTOOL64"; then
  8203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  8204. printf "%s\n" "$OTOOL64" >&6; }
  8205. else
  8206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8207. printf "%s\n" "no" >&6; }
  8208. fi
  8209. fi
  8210. if test -z "$ac_cv_prog_OTOOL64"; then
  8211. ac_ct_OTOOL64=$OTOOL64
  8212. # Extract the first word of "otool64", so it can be a program name with args.
  8213. set dummy otool64; ac_word=$2
  8214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8215. printf %s "checking for $ac_word... " >&6; }
  8216. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  8217. then :
  8218. printf %s "(cached) " >&6
  8219. else $as_nop
  8220. if test -n "$ac_ct_OTOOL64"; then
  8221. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  8222. else
  8223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8224. for as_dir in $PATH
  8225. do
  8226. IFS=$as_save_IFS
  8227. case $as_dir in #(((
  8228. '') as_dir=./ ;;
  8229. */) ;;
  8230. *) as_dir=$as_dir/ ;;
  8231. esac
  8232. for ac_exec_ext in '' $ac_executable_extensions; do
  8233. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8234. ac_cv_prog_ac_ct_OTOOL64="otool64"
  8235. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8236. break 2
  8237. fi
  8238. done
  8239. done
  8240. IFS=$as_save_IFS
  8241. fi
  8242. fi
  8243. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  8244. if test -n "$ac_ct_OTOOL64"; then
  8245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  8246. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  8247. else
  8248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8249. printf "%s\n" "no" >&6; }
  8250. fi
  8251. if test "x$ac_ct_OTOOL64" = x; then
  8252. OTOOL64=":"
  8253. else
  8254. case $cross_compiling:$ac_tool_warned in
  8255. yes:)
  8256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8257. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8258. ac_tool_warned=yes ;;
  8259. esac
  8260. OTOOL64=$ac_ct_OTOOL64
  8261. fi
  8262. else
  8263. OTOOL64="$ac_cv_prog_OTOOL64"
  8264. fi
  8265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  8266. printf %s "checking for -single_module linker flag... " >&6; }
  8267. if test ${lt_cv_apple_cc_single_mod+y}
  8268. then :
  8269. printf %s "(cached) " >&6
  8270. else $as_nop
  8271. lt_cv_apple_cc_single_mod=no
  8272. if test -z "$LT_MULTI_MODULE"; then
  8273. # By default we will add the -single_module flag. You can override
  8274. # by either setting the environment variable LT_MULTI_MODULE
  8275. # non-empty at configure time, or by adding -multi_module to the
  8276. # link flags.
  8277. rm -rf libconftest.dylib*
  8278. echo "int foo(void){return 1;}" > conftest.c
  8279. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8280. -dynamiclib -Wl,-single_module conftest.c" >&5
  8281. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8282. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  8283. _lt_result=$?
  8284. # If there is a non-empty error log, and "single_module"
  8285. # appears in it, assume the flag caused a linker warning
  8286. if test -s conftest.err && $GREP single_module conftest.err; then
  8287. cat conftest.err >&5
  8288. # Otherwise, if the output was created with a 0 exit code from
  8289. # the compiler, it worked.
  8290. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  8291. lt_cv_apple_cc_single_mod=yes
  8292. else
  8293. cat conftest.err >&5
  8294. fi
  8295. rm -rf libconftest.dylib*
  8296. rm -f conftest.*
  8297. fi
  8298. fi
  8299. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  8300. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  8301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  8302. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  8303. if test ${lt_cv_ld_exported_symbols_list+y}
  8304. then :
  8305. printf %s "(cached) " >&6
  8306. else $as_nop
  8307. lt_cv_ld_exported_symbols_list=no
  8308. save_LDFLAGS=$LDFLAGS
  8309. echo "_main" > conftest.sym
  8310. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  8311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8312. /* end confdefs.h. */
  8313. int
  8314. main (void)
  8315. {
  8316. ;
  8317. return 0;
  8318. }
  8319. _ACEOF
  8320. if ac_fn_c_try_link "$LINENO"
  8321. then :
  8322. lt_cv_ld_exported_symbols_list=yes
  8323. else $as_nop
  8324. lt_cv_ld_exported_symbols_list=no
  8325. fi
  8326. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8327. conftest$ac_exeext conftest.$ac_ext
  8328. LDFLAGS=$save_LDFLAGS
  8329. fi
  8330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  8331. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  8332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  8333. printf %s "checking for -force_load linker flag... " >&6; }
  8334. if test ${lt_cv_ld_force_load+y}
  8335. then :
  8336. printf %s "(cached) " >&6
  8337. else $as_nop
  8338. lt_cv_ld_force_load=no
  8339. cat > conftest.c << _LT_EOF
  8340. int forced_loaded() { return 2;}
  8341. _LT_EOF
  8342. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  8343. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  8344. echo "$AR cr libconftest.a conftest.o" >&5
  8345. $AR cr libconftest.a conftest.o 2>&5
  8346. echo "$RANLIB libconftest.a" >&5
  8347. $RANLIB libconftest.a 2>&5
  8348. cat > conftest.c << _LT_EOF
  8349. int main() { return 0;}
  8350. _LT_EOF
  8351. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  8352. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  8353. _lt_result=$?
  8354. if test -s conftest.err && $GREP force_load conftest.err; then
  8355. cat conftest.err >&5
  8356. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  8357. lt_cv_ld_force_load=yes
  8358. else
  8359. cat conftest.err >&5
  8360. fi
  8361. rm -f conftest.err libconftest.a conftest conftest.c
  8362. rm -rf conftest.dSYM
  8363. fi
  8364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  8365. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  8366. case $host_os in
  8367. rhapsody* | darwin1.[012])
  8368. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  8369. darwin1.*)
  8370. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8371. darwin*) # darwin 5.x on
  8372. # if running on 10.5 or later, the deployment target defaults
  8373. # to the OS version, if on x86, and 10.4, the deployment
  8374. # target defaults to 10.4. Don't you love it?
  8375. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  8376. 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
  8377. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8378. 10.[012][,.]*)
  8379. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  8380. 10.*|11.*)
  8381. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  8382. esac
  8383. ;;
  8384. esac
  8385. if test yes = "$lt_cv_apple_cc_single_mod"; then
  8386. _lt_dar_single_mod='$single_module'
  8387. fi
  8388. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  8389. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  8390. else
  8391. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  8392. fi
  8393. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  8394. _lt_dsymutil='~$DSYMUTIL $lib || :'
  8395. else
  8396. _lt_dsymutil=
  8397. fi
  8398. ;;
  8399. esac
  8400. # func_munge_path_list VARIABLE PATH
  8401. # -----------------------------------
  8402. # VARIABLE is name of variable containing _space_ separated list of
  8403. # directories to be munged by the contents of PATH, which is string
  8404. # having a format:
  8405. # "DIR[:DIR]:"
  8406. # string "DIR[ DIR]" will be prepended to VARIABLE
  8407. # ":DIR[:DIR]"
  8408. # string "DIR[ DIR]" will be appended to VARIABLE
  8409. # "DIRP[:DIRP]::[DIRA:]DIRA"
  8410. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  8411. # "DIRA[ DIRA]" will be appended to VARIABLE
  8412. # "DIR[:DIR]"
  8413. # VARIABLE will be replaced by "DIR[ DIR]"
  8414. func_munge_path_list ()
  8415. {
  8416. case x$2 in
  8417. x)
  8418. ;;
  8419. *:)
  8420. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  8421. ;;
  8422. x:*)
  8423. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  8424. ;;
  8425. *::*)
  8426. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  8427. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  8428. ;;
  8429. *)
  8430. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  8431. ;;
  8432. esac
  8433. }
  8434. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  8435. "
  8436. if test "x$ac_cv_header_dlfcn_h" = xyes
  8437. then :
  8438. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  8439. fi
  8440. # Set options
  8441. enable_dlopen=no
  8442. # Check whether --enable-shared was given.
  8443. if test ${enable_shared+y}
  8444. then :
  8445. enableval=$enable_shared; p=${PACKAGE-default}
  8446. case $enableval in
  8447. yes) enable_shared=yes ;;
  8448. no) enable_shared=no ;;
  8449. *)
  8450. enable_shared=no
  8451. # Look at the argument we got. We use all the common list separators.
  8452. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8453. for pkg in $enableval; do
  8454. IFS=$lt_save_ifs
  8455. if test "X$pkg" = "X$p"; then
  8456. enable_shared=yes
  8457. fi
  8458. done
  8459. IFS=$lt_save_ifs
  8460. ;;
  8461. esac
  8462. else $as_nop
  8463. enable_shared=yes
  8464. fi
  8465. # Check whether --enable-static was given.
  8466. if test ${enable_static+y}
  8467. then :
  8468. enableval=$enable_static; p=${PACKAGE-default}
  8469. case $enableval in
  8470. yes) enable_static=yes ;;
  8471. no) enable_static=no ;;
  8472. *)
  8473. enable_static=no
  8474. # Look at the argument we got. We use all the common list separators.
  8475. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8476. for pkg in $enableval; do
  8477. IFS=$lt_save_ifs
  8478. if test "X$pkg" = "X$p"; then
  8479. enable_static=yes
  8480. fi
  8481. done
  8482. IFS=$lt_save_ifs
  8483. ;;
  8484. esac
  8485. else $as_nop
  8486. enable_static=yes
  8487. fi
  8488. # Check whether --with-pic was given.
  8489. if test ${with_pic+y}
  8490. then :
  8491. withval=$with_pic; lt_p=${PACKAGE-default}
  8492. case $withval in
  8493. yes|no) pic_mode=$withval ;;
  8494. *)
  8495. pic_mode=default
  8496. # Look at the argument we got. We use all the common list separators.
  8497. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8498. for lt_pkg in $withval; do
  8499. IFS=$lt_save_ifs
  8500. if test "X$lt_pkg" = "X$lt_p"; then
  8501. pic_mode=yes
  8502. fi
  8503. done
  8504. IFS=$lt_save_ifs
  8505. ;;
  8506. esac
  8507. else $as_nop
  8508. pic_mode=default
  8509. fi
  8510. # Check whether --enable-fast-install was given.
  8511. if test ${enable_fast_install+y}
  8512. then :
  8513. enableval=$enable_fast_install; p=${PACKAGE-default}
  8514. case $enableval in
  8515. yes) enable_fast_install=yes ;;
  8516. no) enable_fast_install=no ;;
  8517. *)
  8518. enable_fast_install=no
  8519. # Look at the argument we got. We use all the common list separators.
  8520. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  8521. for pkg in $enableval; do
  8522. IFS=$lt_save_ifs
  8523. if test "X$pkg" = "X$p"; then
  8524. enable_fast_install=yes
  8525. fi
  8526. done
  8527. IFS=$lt_save_ifs
  8528. ;;
  8529. esac
  8530. else $as_nop
  8531. enable_fast_install=yes
  8532. fi
  8533. shared_archive_member_spec=
  8534. case $host,$enable_shared in
  8535. power*-*-aix[5-9]*,yes)
  8536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  8537. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  8538. # Check whether --with-aix-soname was given.
  8539. if test ${with_aix_soname+y}
  8540. then :
  8541. withval=$with_aix_soname; case $withval in
  8542. aix|svr4|both)
  8543. ;;
  8544. *)
  8545. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  8546. ;;
  8547. esac
  8548. lt_cv_with_aix_soname=$with_aix_soname
  8549. else $as_nop
  8550. if test ${lt_cv_with_aix_soname+y}
  8551. then :
  8552. printf %s "(cached) " >&6
  8553. else $as_nop
  8554. lt_cv_with_aix_soname=aix
  8555. fi
  8556. with_aix_soname=$lt_cv_with_aix_soname
  8557. fi
  8558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  8559. printf "%s\n" "$with_aix_soname" >&6; }
  8560. if test aix != "$with_aix_soname"; then
  8561. # For the AIX way of multilib, we name the shared archive member
  8562. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  8563. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  8564. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  8565. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  8566. if test 64 = "${OBJECT_MODE-32}"; then
  8567. shared_archive_member_spec=shr_64
  8568. else
  8569. shared_archive_member_spec=shr
  8570. fi
  8571. fi
  8572. ;;
  8573. *)
  8574. with_aix_soname=aix
  8575. ;;
  8576. esac
  8577. # This can be used to rebuild libtool when needed
  8578. LIBTOOL_DEPS=$ltmain
  8579. # Always use our own libtool.
  8580. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  8581. test -z "$LN_S" && LN_S="ln -s"
  8582. if test -n "${ZSH_VERSION+set}"; then
  8583. setopt NO_GLOB_SUBST
  8584. fi
  8585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8586. printf %s "checking for objdir... " >&6; }
  8587. if test ${lt_cv_objdir+y}
  8588. then :
  8589. printf %s "(cached) " >&6
  8590. else $as_nop
  8591. rm -f .libs 2>/dev/null
  8592. mkdir .libs 2>/dev/null
  8593. if test -d .libs; then
  8594. lt_cv_objdir=.libs
  8595. else
  8596. # MS-DOS does not allow filenames that begin with a dot.
  8597. lt_cv_objdir=_libs
  8598. fi
  8599. rmdir .libs 2>/dev/null
  8600. fi
  8601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8602. printf "%s\n" "$lt_cv_objdir" >&6; }
  8603. objdir=$lt_cv_objdir
  8604. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  8605. case $host_os in
  8606. aix3*)
  8607. # AIX sometimes has problems with the GCC collect2 program. For some
  8608. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8609. # vanish in a puff of smoke.
  8610. if test set != "${COLLECT_NAMES+set}"; then
  8611. COLLECT_NAMES=
  8612. export COLLECT_NAMES
  8613. fi
  8614. ;;
  8615. esac
  8616. # Global variables:
  8617. ofile=libtool
  8618. can_build_shared=yes
  8619. # All known linkers require a '.a' archive for static linking (except MSVC,
  8620. # which needs '.lib').
  8621. libext=a
  8622. with_gnu_ld=$lt_cv_prog_gnu_ld
  8623. old_CC=$CC
  8624. old_CFLAGS=$CFLAGS
  8625. # Set sane defaults for various variables
  8626. test -z "$CC" && CC=cc
  8627. test -z "$LTCC" && LTCC=$CC
  8628. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8629. test -z "$LD" && LD=ld
  8630. test -z "$ac_objext" && ac_objext=o
  8631. func_cc_basename $compiler
  8632. cc_basename=$func_cc_basename_result
  8633. # Only perform the check for file, if the check method requires it
  8634. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8635. case $deplibs_check_method in
  8636. file_magic*)
  8637. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8639. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  8640. if test ${lt_cv_path_MAGIC_CMD+y}
  8641. then :
  8642. printf %s "(cached) " >&6
  8643. else $as_nop
  8644. case $MAGIC_CMD in
  8645. [\\/*] | ?:[\\/]*)
  8646. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8647. ;;
  8648. *)
  8649. lt_save_MAGIC_CMD=$MAGIC_CMD
  8650. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8651. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8652. for ac_dir in $ac_dummy; do
  8653. IFS=$lt_save_ifs
  8654. test -z "$ac_dir" && ac_dir=.
  8655. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  8656. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  8657. if test -n "$file_magic_test_file"; then
  8658. case $deplibs_check_method in
  8659. "file_magic "*)
  8660. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8661. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8662. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8663. $EGREP "$file_magic_regex" > /dev/null; then
  8664. :
  8665. else
  8666. cat <<_LT_EOF 1>&2
  8667. *** Warning: the command libtool uses to detect shared libraries,
  8668. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8669. *** The result is that libtool may fail to recognize shared libraries
  8670. *** as such. This will affect the creation of libtool libraries that
  8671. *** depend on shared libraries, but programs linked with such libtool
  8672. *** libraries will work regardless of this problem. Nevertheless, you
  8673. *** may want to report the problem to your system manager and/or to
  8674. *** [email protected]
  8675. _LT_EOF
  8676. fi ;;
  8677. esac
  8678. fi
  8679. break
  8680. fi
  8681. done
  8682. IFS=$lt_save_ifs
  8683. MAGIC_CMD=$lt_save_MAGIC_CMD
  8684. ;;
  8685. esac
  8686. fi
  8687. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8688. if test -n "$MAGIC_CMD"; then
  8689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8690. printf "%s\n" "$MAGIC_CMD" >&6; }
  8691. else
  8692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8693. printf "%s\n" "no" >&6; }
  8694. fi
  8695. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8696. if test -n "$ac_tool_prefix"; then
  8697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8698. printf %s "checking for file... " >&6; }
  8699. if test ${lt_cv_path_MAGIC_CMD+y}
  8700. then :
  8701. printf %s "(cached) " >&6
  8702. else $as_nop
  8703. case $MAGIC_CMD in
  8704. [\\/*] | ?:[\\/]*)
  8705. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  8706. ;;
  8707. *)
  8708. lt_save_MAGIC_CMD=$MAGIC_CMD
  8709. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  8710. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8711. for ac_dir in $ac_dummy; do
  8712. IFS=$lt_save_ifs
  8713. test -z "$ac_dir" && ac_dir=.
  8714. if test -f "$ac_dir/file"; then
  8715. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  8716. if test -n "$file_magic_test_file"; then
  8717. case $deplibs_check_method in
  8718. "file_magic "*)
  8719. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8720. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8721. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8722. $EGREP "$file_magic_regex" > /dev/null; then
  8723. :
  8724. else
  8725. cat <<_LT_EOF 1>&2
  8726. *** Warning: the command libtool uses to detect shared libraries,
  8727. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8728. *** The result is that libtool may fail to recognize shared libraries
  8729. *** as such. This will affect the creation of libtool libraries that
  8730. *** depend on shared libraries, but programs linked with such libtool
  8731. *** libraries will work regardless of this problem. Nevertheless, you
  8732. *** may want to report the problem to your system manager and/or to
  8733. *** [email protected]
  8734. _LT_EOF
  8735. fi ;;
  8736. esac
  8737. fi
  8738. break
  8739. fi
  8740. done
  8741. IFS=$lt_save_ifs
  8742. MAGIC_CMD=$lt_save_MAGIC_CMD
  8743. ;;
  8744. esac
  8745. fi
  8746. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  8747. if test -n "$MAGIC_CMD"; then
  8748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8749. printf "%s\n" "$MAGIC_CMD" >&6; }
  8750. else
  8751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8752. printf "%s\n" "no" >&6; }
  8753. fi
  8754. else
  8755. MAGIC_CMD=:
  8756. fi
  8757. fi
  8758. fi
  8759. ;;
  8760. esac
  8761. # Use C for the default configuration in the libtool script
  8762. lt_save_CC=$CC
  8763. ac_ext=c
  8764. ac_cpp='$CPP $CPPFLAGS'
  8765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8768. # Source file extension for C test sources.
  8769. ac_ext=c
  8770. # Object file extension for compiled C test sources.
  8771. objext=o
  8772. objext=$objext
  8773. # Code to be used in simple compile tests
  8774. lt_simple_compile_test_code="int some_variable = 0;"
  8775. # Code to be used in simple link tests
  8776. lt_simple_link_test_code='int main(){return(0);}'
  8777. # If no C compiler was specified, use CC.
  8778. LTCC=${LTCC-"$CC"}
  8779. # If no C compiler flags were specified, use CFLAGS.
  8780. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8781. # Allow CC to be a program name with arguments.
  8782. compiler=$CC
  8783. # Save the default compiler, since it gets overwritten when the other
  8784. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8785. compiler_DEFAULT=$CC
  8786. # save warnings/boilerplate of simple test code
  8787. ac_outfile=conftest.$ac_objext
  8788. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8789. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8790. _lt_compiler_boilerplate=`cat conftest.err`
  8791. $RM conftest*
  8792. ac_outfile=conftest.$ac_objext
  8793. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8794. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8795. _lt_linker_boilerplate=`cat conftest.err`
  8796. $RM -r conftest*
  8797. if test -n "$compiler"; then
  8798. lt_prog_compiler_no_builtin_flag=
  8799. if test yes = "$GCC"; then
  8800. case $cc_basename in
  8801. nvcc*)
  8802. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8803. *)
  8804. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8805. esac
  8806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8807. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8808. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  8809. then :
  8810. printf %s "(cached) " >&6
  8811. else $as_nop
  8812. lt_cv_prog_compiler_rtti_exceptions=no
  8813. ac_outfile=conftest.$ac_objext
  8814. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8815. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8816. # Insert the option either (1) after the last *FLAGS variable, or
  8817. # (2) before a word containing "conftest.", or (3) at the end.
  8818. # Note that $ac_compile itself does not contain backslashes and begins
  8819. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8820. # The option is referenced via a variable to avoid confusing sed.
  8821. lt_compile=`echo "$ac_compile" | $SED \
  8822. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8823. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8824. -e 's:$: $lt_compiler_flag:'`
  8825. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8826. (eval "$lt_compile" 2>conftest.err)
  8827. ac_status=$?
  8828. cat conftest.err >&5
  8829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8830. if (exit $ac_status) && test -s "$ac_outfile"; then
  8831. # The compiler can only warn and ignore the option if not recognized
  8832. # So say no if there are warnings other than the usual output.
  8833. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8834. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8835. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8836. lt_cv_prog_compiler_rtti_exceptions=yes
  8837. fi
  8838. fi
  8839. $RM conftest*
  8840. fi
  8841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8842. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8843. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8844. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8845. else
  8846. :
  8847. fi
  8848. fi
  8849. lt_prog_compiler_wl=
  8850. lt_prog_compiler_pic=
  8851. lt_prog_compiler_static=
  8852. if test yes = "$GCC"; then
  8853. lt_prog_compiler_wl='-Wl,'
  8854. lt_prog_compiler_static='-static'
  8855. case $host_os in
  8856. aix*)
  8857. # All AIX code is PIC.
  8858. if test ia64 = "$host_cpu"; then
  8859. # AIX 5 now supports IA64 processor
  8860. lt_prog_compiler_static='-Bstatic'
  8861. fi
  8862. lt_prog_compiler_pic='-fPIC'
  8863. ;;
  8864. amigaos*)
  8865. case $host_cpu in
  8866. powerpc)
  8867. # see comment about AmigaOS4 .so support
  8868. lt_prog_compiler_pic='-fPIC'
  8869. ;;
  8870. m68k)
  8871. # FIXME: we need at least 68020 code to build shared libraries, but
  8872. # adding the '-m68020' flag to GCC prevents building anything better,
  8873. # like '-m68040'.
  8874. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8875. ;;
  8876. esac
  8877. ;;
  8878. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8879. # PIC is the default for these OSes.
  8880. ;;
  8881. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8882. # This hack is so that the source file can tell whether it is being
  8883. # built for inclusion in a dll (and should export symbols for example).
  8884. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8885. # (--disable-auto-import) libraries
  8886. lt_prog_compiler_pic='-DDLL_EXPORT'
  8887. case $host_os in
  8888. os2*)
  8889. lt_prog_compiler_static='$wl-static'
  8890. ;;
  8891. esac
  8892. ;;
  8893. darwin* | rhapsody*)
  8894. # PIC is the default on this platform
  8895. # Common symbols not allowed in MH_DYLIB files
  8896. lt_prog_compiler_pic='-fno-common'
  8897. ;;
  8898. haiku*)
  8899. # PIC is the default for Haiku.
  8900. # The "-static" flag exists, but is broken.
  8901. lt_prog_compiler_static=
  8902. ;;
  8903. hpux*)
  8904. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8905. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8906. # sets the default TLS model and affects inlining.
  8907. case $host_cpu in
  8908. hppa*64*)
  8909. # +Z the default
  8910. ;;
  8911. *)
  8912. lt_prog_compiler_pic='-fPIC'
  8913. ;;
  8914. esac
  8915. ;;
  8916. interix[3-9]*)
  8917. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8918. # Instead, we relocate shared libraries at runtime.
  8919. ;;
  8920. msdosdjgpp*)
  8921. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8922. # on systems that don't support them.
  8923. lt_prog_compiler_can_build_shared=no
  8924. enable_shared=no
  8925. ;;
  8926. *nto* | *qnx*)
  8927. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8928. # it will coredump.
  8929. lt_prog_compiler_pic='-fPIC -shared'
  8930. ;;
  8931. sysv4*MP*)
  8932. if test -d /usr/nec; then
  8933. lt_prog_compiler_pic=-Kconform_pic
  8934. fi
  8935. ;;
  8936. *)
  8937. lt_prog_compiler_pic='-fPIC'
  8938. ;;
  8939. esac
  8940. case $cc_basename in
  8941. nvcc*) # Cuda Compiler Driver 2.2
  8942. lt_prog_compiler_wl='-Xlinker '
  8943. if test -n "$lt_prog_compiler_pic"; then
  8944. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8945. fi
  8946. ;;
  8947. esac
  8948. else
  8949. # PORTME Check for flag to pass linker flags through the system compiler.
  8950. case $host_os in
  8951. aix*)
  8952. lt_prog_compiler_wl='-Wl,'
  8953. if test ia64 = "$host_cpu"; then
  8954. # AIX 5 now supports IA64 processor
  8955. lt_prog_compiler_static='-Bstatic'
  8956. else
  8957. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8958. fi
  8959. ;;
  8960. darwin* | rhapsody*)
  8961. # PIC is the default on this platform
  8962. # Common symbols not allowed in MH_DYLIB files
  8963. lt_prog_compiler_pic='-fno-common'
  8964. case $cc_basename in
  8965. nagfor*)
  8966. # NAG Fortran compiler
  8967. lt_prog_compiler_wl='-Wl,-Wl,,'
  8968. lt_prog_compiler_pic='-PIC'
  8969. lt_prog_compiler_static='-Bstatic'
  8970. ;;
  8971. esac
  8972. ;;
  8973. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8974. # This hack is so that the source file can tell whether it is being
  8975. # built for inclusion in a dll (and should export symbols for example).
  8976. lt_prog_compiler_pic='-DDLL_EXPORT'
  8977. case $host_os in
  8978. os2*)
  8979. lt_prog_compiler_static='$wl-static'
  8980. ;;
  8981. esac
  8982. ;;
  8983. hpux9* | hpux10* | hpux11*)
  8984. lt_prog_compiler_wl='-Wl,'
  8985. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8986. # not for PA HP-UX.
  8987. case $host_cpu in
  8988. hppa*64*|ia64*)
  8989. # +Z the default
  8990. ;;
  8991. *)
  8992. lt_prog_compiler_pic='+Z'
  8993. ;;
  8994. esac
  8995. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8996. lt_prog_compiler_static='$wl-a ${wl}archive'
  8997. ;;
  8998. irix5* | irix6* | nonstopux*)
  8999. lt_prog_compiler_wl='-Wl,'
  9000. # PIC (with -KPIC) is the default.
  9001. lt_prog_compiler_static='-non_shared'
  9002. ;;
  9003. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9004. case $cc_basename in
  9005. # old Intel for x86_64, which still supported -KPIC.
  9006. ecc*)
  9007. lt_prog_compiler_wl='-Wl,'
  9008. lt_prog_compiler_pic='-KPIC'
  9009. lt_prog_compiler_static='-static'
  9010. ;;
  9011. # flang / f18. f95 an alias for gfortran or flang on Debian
  9012. flang* | f18* | f95*)
  9013. lt_prog_compiler_wl='-Wl,'
  9014. lt_prog_compiler_pic='-fPIC'
  9015. lt_prog_compiler_static='-static'
  9016. ;;
  9017. # icc used to be incompatible with GCC.
  9018. # ICC 10 doesn't accept -KPIC any more.
  9019. icc* | ifort*)
  9020. lt_prog_compiler_wl='-Wl,'
  9021. lt_prog_compiler_pic='-fPIC'
  9022. lt_prog_compiler_static='-static'
  9023. ;;
  9024. # Lahey Fortran 8.1.
  9025. lf95*)
  9026. lt_prog_compiler_wl='-Wl,'
  9027. lt_prog_compiler_pic='--shared'
  9028. lt_prog_compiler_static='--static'
  9029. ;;
  9030. nagfor*)
  9031. # NAG Fortran compiler
  9032. lt_prog_compiler_wl='-Wl,-Wl,,'
  9033. lt_prog_compiler_pic='-PIC'
  9034. lt_prog_compiler_static='-Bstatic'
  9035. ;;
  9036. tcc*)
  9037. # Fabrice Bellard et al's Tiny C Compiler
  9038. lt_prog_compiler_wl='-Wl,'
  9039. lt_prog_compiler_pic='-fPIC'
  9040. lt_prog_compiler_static='-static'
  9041. ;;
  9042. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  9043. # Portland Group compilers (*not* the Pentium gcc compiler,
  9044. # which looks to be a dead project)
  9045. lt_prog_compiler_wl='-Wl,'
  9046. lt_prog_compiler_pic='-fpic'
  9047. lt_prog_compiler_static='-Bstatic'
  9048. ;;
  9049. ccc*)
  9050. lt_prog_compiler_wl='-Wl,'
  9051. # All Alpha code is PIC.
  9052. lt_prog_compiler_static='-non_shared'
  9053. ;;
  9054. xl* | bgxl* | bgf* | mpixl*)
  9055. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  9056. lt_prog_compiler_wl='-Wl,'
  9057. lt_prog_compiler_pic='-qpic'
  9058. lt_prog_compiler_static='-qstaticlink'
  9059. ;;
  9060. *)
  9061. case `$CC -V 2>&1 | sed 5q` in
  9062. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  9063. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  9064. lt_prog_compiler_pic='-KPIC'
  9065. lt_prog_compiler_static='-Bstatic'
  9066. lt_prog_compiler_wl=''
  9067. ;;
  9068. *Sun\ F* | *Sun*Fortran*)
  9069. lt_prog_compiler_pic='-KPIC'
  9070. lt_prog_compiler_static='-Bstatic'
  9071. lt_prog_compiler_wl='-Qoption ld '
  9072. ;;
  9073. *Sun\ C*)
  9074. # Sun C 5.9
  9075. lt_prog_compiler_pic='-KPIC'
  9076. lt_prog_compiler_static='-Bstatic'
  9077. lt_prog_compiler_wl='-Wl,'
  9078. ;;
  9079. *Intel*\ [CF]*Compiler*)
  9080. lt_prog_compiler_wl='-Wl,'
  9081. lt_prog_compiler_pic='-fPIC'
  9082. lt_prog_compiler_static='-static'
  9083. ;;
  9084. *Portland\ Group*)
  9085. lt_prog_compiler_wl='-Wl,'
  9086. lt_prog_compiler_pic='-fpic'
  9087. lt_prog_compiler_static='-Bstatic'
  9088. ;;
  9089. esac
  9090. ;;
  9091. esac
  9092. ;;
  9093. newsos6)
  9094. lt_prog_compiler_pic='-KPIC'
  9095. lt_prog_compiler_static='-Bstatic'
  9096. ;;
  9097. *nto* | *qnx*)
  9098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  9099. # it will coredump.
  9100. lt_prog_compiler_pic='-fPIC -shared'
  9101. ;;
  9102. osf3* | osf4* | osf5*)
  9103. lt_prog_compiler_wl='-Wl,'
  9104. # All OSF/1 code is PIC.
  9105. lt_prog_compiler_static='-non_shared'
  9106. ;;
  9107. rdos*)
  9108. lt_prog_compiler_static='-non_shared'
  9109. ;;
  9110. solaris*)
  9111. lt_prog_compiler_pic='-KPIC'
  9112. lt_prog_compiler_static='-Bstatic'
  9113. case $cc_basename in
  9114. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  9115. lt_prog_compiler_wl='-Qoption ld ';;
  9116. *)
  9117. lt_prog_compiler_wl='-Wl,';;
  9118. esac
  9119. ;;
  9120. sunos4*)
  9121. lt_prog_compiler_wl='-Qoption ld '
  9122. lt_prog_compiler_pic='-PIC'
  9123. lt_prog_compiler_static='-Bstatic'
  9124. ;;
  9125. sysv4 | sysv4.2uw2* | sysv4.3*)
  9126. lt_prog_compiler_wl='-Wl,'
  9127. lt_prog_compiler_pic='-KPIC'
  9128. lt_prog_compiler_static='-Bstatic'
  9129. ;;
  9130. sysv4*MP*)
  9131. if test -d /usr/nec; then
  9132. lt_prog_compiler_pic='-Kconform_pic'
  9133. lt_prog_compiler_static='-Bstatic'
  9134. fi
  9135. ;;
  9136. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  9137. lt_prog_compiler_wl='-Wl,'
  9138. lt_prog_compiler_pic='-KPIC'
  9139. lt_prog_compiler_static='-Bstatic'
  9140. ;;
  9141. unicos*)
  9142. lt_prog_compiler_wl='-Wl,'
  9143. lt_prog_compiler_can_build_shared=no
  9144. ;;
  9145. uts4*)
  9146. lt_prog_compiler_pic='-pic'
  9147. lt_prog_compiler_static='-Bstatic'
  9148. ;;
  9149. *)
  9150. lt_prog_compiler_can_build_shared=no
  9151. ;;
  9152. esac
  9153. fi
  9154. case $host_os in
  9155. # For platforms that do not support PIC, -DPIC is meaningless:
  9156. *djgpp*)
  9157. lt_prog_compiler_pic=
  9158. ;;
  9159. *)
  9160. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9161. ;;
  9162. esac
  9163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9164. printf %s "checking for $compiler option to produce PIC... " >&6; }
  9165. if test ${lt_cv_prog_compiler_pic+y}
  9166. then :
  9167. printf %s "(cached) " >&6
  9168. else $as_nop
  9169. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  9170. fi
  9171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  9172. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  9173. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  9174. #
  9175. # Check to make sure the PIC flag actually works.
  9176. #
  9177. if test -n "$lt_prog_compiler_pic"; then
  9178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9179. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9180. if test ${lt_cv_prog_compiler_pic_works+y}
  9181. then :
  9182. printf %s "(cached) " >&6
  9183. else $as_nop
  9184. lt_cv_prog_compiler_pic_works=no
  9185. ac_outfile=conftest.$ac_objext
  9186. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9187. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  9188. # Insert the option either (1) after the last *FLAGS variable, or
  9189. # (2) before a word containing "conftest.", or (3) at the end.
  9190. # Note that $ac_compile itself does not contain backslashes and begins
  9191. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9192. # The option is referenced via a variable to avoid confusing sed.
  9193. lt_compile=`echo "$ac_compile" | $SED \
  9194. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9195. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9196. -e 's:$: $lt_compiler_flag:'`
  9197. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9198. (eval "$lt_compile" 2>conftest.err)
  9199. ac_status=$?
  9200. cat conftest.err >&5
  9201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9202. if (exit $ac_status) && test -s "$ac_outfile"; then
  9203. # The compiler can only warn and ignore the option if not recognized
  9204. # So say no if there are warnings other than the usual output.
  9205. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  9206. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9207. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  9208. lt_cv_prog_compiler_pic_works=yes
  9209. fi
  9210. fi
  9211. $RM conftest*
  9212. fi
  9213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  9214. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  9215. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  9216. case $lt_prog_compiler_pic in
  9217. "" | " "*) ;;
  9218. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9219. esac
  9220. else
  9221. lt_prog_compiler_pic=
  9222. lt_prog_compiler_can_build_shared=no
  9223. fi
  9224. fi
  9225. #
  9226. # Check to make sure the static flag actually works.
  9227. #
  9228. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  9229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  9230. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  9231. if test ${lt_cv_prog_compiler_static_works+y}
  9232. then :
  9233. printf %s "(cached) " >&6
  9234. else $as_nop
  9235. lt_cv_prog_compiler_static_works=no
  9236. save_LDFLAGS=$LDFLAGS
  9237. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  9238. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9239. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9240. # The linker can only warn and ignore the option if not recognized
  9241. # So say no if there are warnings
  9242. if test -s conftest.err; then
  9243. # Append any errors to the config.log.
  9244. cat conftest.err 1>&5
  9245. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9246. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9247. if diff conftest.exp conftest.er2 >/dev/null; then
  9248. lt_cv_prog_compiler_static_works=yes
  9249. fi
  9250. else
  9251. lt_cv_prog_compiler_static_works=yes
  9252. fi
  9253. fi
  9254. $RM -r conftest*
  9255. LDFLAGS=$save_LDFLAGS
  9256. fi
  9257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  9258. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  9259. if test yes = "$lt_cv_prog_compiler_static_works"; then
  9260. :
  9261. else
  9262. lt_prog_compiler_static=
  9263. fi
  9264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9265. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9266. if test ${lt_cv_prog_compiler_c_o+y}
  9267. then :
  9268. printf %s "(cached) " >&6
  9269. else $as_nop
  9270. lt_cv_prog_compiler_c_o=no
  9271. $RM -r conftest 2>/dev/null
  9272. mkdir conftest
  9273. cd conftest
  9274. mkdir out
  9275. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9276. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9277. # Insert the option either (1) after the last *FLAGS variable, or
  9278. # (2) before a word containing "conftest.", or (3) at the end.
  9279. # Note that $ac_compile itself does not contain backslashes and begins
  9280. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9281. lt_compile=`echo "$ac_compile" | $SED \
  9282. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9283. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9284. -e 's:$: $lt_compiler_flag:'`
  9285. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9286. (eval "$lt_compile" 2>out/conftest.err)
  9287. ac_status=$?
  9288. cat out/conftest.err >&5
  9289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9290. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9291. then
  9292. # The compiler can only warn and ignore the option if not recognized
  9293. # So say no if there are warnings
  9294. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9295. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9296. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9297. lt_cv_prog_compiler_c_o=yes
  9298. fi
  9299. fi
  9300. chmod u+w . 2>&5
  9301. $RM conftest*
  9302. # SGI C++ compiler will create directory out/ii_files/ for
  9303. # template instantiation
  9304. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9305. $RM out/* && rmdir out
  9306. cd ..
  9307. $RM -r conftest
  9308. $RM conftest*
  9309. fi
  9310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9311. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9313. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9314. if test ${lt_cv_prog_compiler_c_o+y}
  9315. then :
  9316. printf %s "(cached) " >&6
  9317. else $as_nop
  9318. lt_cv_prog_compiler_c_o=no
  9319. $RM -r conftest 2>/dev/null
  9320. mkdir conftest
  9321. cd conftest
  9322. mkdir out
  9323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9324. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9325. # Insert the option either (1) after the last *FLAGS variable, or
  9326. # (2) before a word containing "conftest.", or (3) at the end.
  9327. # Note that $ac_compile itself does not contain backslashes and begins
  9328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9329. lt_compile=`echo "$ac_compile" | $SED \
  9330. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9331. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9332. -e 's:$: $lt_compiler_flag:'`
  9333. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  9334. (eval "$lt_compile" 2>out/conftest.err)
  9335. ac_status=$?
  9336. cat out/conftest.err >&5
  9337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9338. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9339. then
  9340. # The compiler can only warn and ignore the option if not recognized
  9341. # So say no if there are warnings
  9342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  9343. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  9344. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9345. lt_cv_prog_compiler_c_o=yes
  9346. fi
  9347. fi
  9348. chmod u+w . 2>&5
  9349. $RM conftest*
  9350. # SGI C++ compiler will create directory out/ii_files/ for
  9351. # template instantiation
  9352. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  9353. $RM out/* && rmdir out
  9354. cd ..
  9355. $RM -r conftest
  9356. $RM conftest*
  9357. fi
  9358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9359. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  9360. hard_links=nottested
  9361. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  9362. # do not overwrite the value of need_locks provided by the user
  9363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9364. printf %s "checking if we can lock with hard links... " >&6; }
  9365. hard_links=yes
  9366. $RM conftest*
  9367. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9368. touch conftest.a
  9369. ln conftest.a conftest.b 2>&5 || hard_links=no
  9370. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9372. printf "%s\n" "$hard_links" >&6; }
  9373. if test no = "$hard_links"; then
  9374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  9375. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  9376. need_locks=warn
  9377. fi
  9378. else
  9379. need_locks=no
  9380. fi
  9381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9382. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9383. runpath_var=
  9384. allow_undefined_flag=
  9385. always_export_symbols=no
  9386. archive_cmds=
  9387. archive_expsym_cmds=
  9388. compiler_needs_object=no
  9389. enable_shared_with_static_runtimes=no
  9390. export_dynamic_flag_spec=
  9391. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9392. hardcode_automatic=no
  9393. hardcode_direct=no
  9394. hardcode_direct_absolute=no
  9395. hardcode_libdir_flag_spec=
  9396. hardcode_libdir_separator=
  9397. hardcode_minus_L=no
  9398. hardcode_shlibpath_var=unsupported
  9399. inherit_rpath=no
  9400. link_all_deplibs=unknown
  9401. module_cmds=
  9402. module_expsym_cmds=
  9403. old_archive_from_new_cmds=
  9404. old_archive_from_expsyms_cmds=
  9405. thread_safe_flag_spec=
  9406. whole_archive_flag_spec=
  9407. # include_expsyms should be a list of space-separated symbols to be *always*
  9408. # included in the symbol list
  9409. include_expsyms=
  9410. # exclude_expsyms can be an extended regexp of symbols to exclude
  9411. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  9412. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  9413. # as well as any symbol that contains 'd'.
  9414. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  9415. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9416. # platforms (ab)use it in PIC code, but their linkers get confused if
  9417. # the symbol is explicitly referenced. Since portable code cannot
  9418. # rely on this symbol name, it's probably fine to never include it in
  9419. # preloaded symbol tables.
  9420. # Exclude shared library initialization/finalization symbols.
  9421. extract_expsyms_cmds=
  9422. case $host_os in
  9423. cygwin* | mingw* | pw32* | cegcc*)
  9424. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9425. # When not using gcc, we currently assume that we are using
  9426. # Microsoft Visual C++.
  9427. if test yes != "$GCC"; then
  9428. with_gnu_ld=no
  9429. fi
  9430. ;;
  9431. interix*)
  9432. # we just hope/assume this is gcc and not c89 (= MSVC++)
  9433. with_gnu_ld=yes
  9434. ;;
  9435. openbsd* | bitrig*)
  9436. with_gnu_ld=no
  9437. ;;
  9438. linux* | k*bsd*-gnu | gnu*)
  9439. link_all_deplibs=no
  9440. ;;
  9441. esac
  9442. ld_shlibs=yes
  9443. # On some targets, GNU ld is compatible enough with the native linker
  9444. # that we're better off using the native interface for both.
  9445. lt_use_gnu_ld_interface=no
  9446. if test yes = "$with_gnu_ld"; then
  9447. case $host_os in
  9448. aix*)
  9449. # The AIX port of GNU ld has always aspired to compatibility
  9450. # with the native linker. However, as the warning in the GNU ld
  9451. # block says, versions before 2.19.5* couldn't really create working
  9452. # shared libraries, regardless of the interface used.
  9453. case `$LD -v 2>&1` in
  9454. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  9455. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  9456. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  9457. *)
  9458. lt_use_gnu_ld_interface=yes
  9459. ;;
  9460. esac
  9461. ;;
  9462. *)
  9463. lt_use_gnu_ld_interface=yes
  9464. ;;
  9465. esac
  9466. fi
  9467. if test yes = "$lt_use_gnu_ld_interface"; then
  9468. # If archive_cmds runs LD, not CC, wlarc should be empty
  9469. wlarc='$wl'
  9470. # Set some defaults for GNU ld with shared library support. These
  9471. # are reset later if shared libraries are not supported. Putting them
  9472. # here allows them to be overridden if necessary.
  9473. runpath_var=LD_RUN_PATH
  9474. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9475. export_dynamic_flag_spec='$wl--export-dynamic'
  9476. # ancient GNU ld didn't support --whole-archive et. al.
  9477. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  9478. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  9479. else
  9480. whole_archive_flag_spec=
  9481. fi
  9482. supports_anon_versioning=no
  9483. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  9484. *GNU\ gold*) supports_anon_versioning=yes ;;
  9485. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9486. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9487. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9488. *\ 2.11.*) ;; # other 2.11 versions
  9489. *) supports_anon_versioning=yes ;;
  9490. esac
  9491. # See if GNU ld supports shared libraries.
  9492. case $host_os in
  9493. aix[3-9]*)
  9494. # On AIX/PPC, the GNU linker is very broken
  9495. if test ia64 != "$host_cpu"; then
  9496. ld_shlibs=no
  9497. cat <<_LT_EOF 1>&2
  9498. *** Warning: the GNU linker, at least up to release 2.19, is reported
  9499. *** to be unable to reliably create shared libraries on AIX.
  9500. *** Therefore, libtool is disabling shared libraries support. If you
  9501. *** really care for shared libraries, you may want to install binutils
  9502. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  9503. *** You will then need to restart the configuration process.
  9504. _LT_EOF
  9505. fi
  9506. ;;
  9507. amigaos*)
  9508. case $host_cpu in
  9509. powerpc)
  9510. # see comment about AmigaOS4 .so support
  9511. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9512. archive_expsym_cmds=''
  9513. ;;
  9514. m68k)
  9515. 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)'
  9516. hardcode_libdir_flag_spec='-L$libdir'
  9517. hardcode_minus_L=yes
  9518. ;;
  9519. esac
  9520. ;;
  9521. beos*)
  9522. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9523. allow_undefined_flag=unsupported
  9524. # Joseph Beckenbach <[email protected]> says some releases of gcc
  9525. # support --undefined. This deserves some investigation. FIXME
  9526. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9527. else
  9528. ld_shlibs=no
  9529. fi
  9530. ;;
  9531. cygwin* | mingw* | pw32* | cegcc*)
  9532. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9533. # as there is no search path for DLLs.
  9534. hardcode_libdir_flag_spec='-L$libdir'
  9535. export_dynamic_flag_spec='$wl--export-all-symbols'
  9536. allow_undefined_flag=unsupported
  9537. always_export_symbols=no
  9538. enable_shared_with_static_runtimes=yes
  9539. 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'
  9540. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  9541. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9542. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9543. # If the export-symbols file already is a .def file, use it as
  9544. # is; otherwise, prepend EXPORTS...
  9545. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9546. cp $export_symbols $output_objdir/$soname.def;
  9547. else
  9548. echo EXPORTS > $output_objdir/$soname.def;
  9549. cat $export_symbols >> $output_objdir/$soname.def;
  9550. fi~
  9551. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9552. else
  9553. ld_shlibs=no
  9554. fi
  9555. ;;
  9556. haiku*)
  9557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9558. link_all_deplibs=yes
  9559. ;;
  9560. os2*)
  9561. hardcode_libdir_flag_spec='-L$libdir'
  9562. hardcode_minus_L=yes
  9563. allow_undefined_flag=unsupported
  9564. shrext_cmds=.dll
  9565. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9566. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9567. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9568. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9569. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9570. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9571. emximp -o $lib $output_objdir/$libname.def'
  9572. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9573. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9574. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9575. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9576. prefix_cmds="$SED"~
  9577. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9578. prefix_cmds="$prefix_cmds -e 1d";
  9579. fi~
  9580. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9581. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9582. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9583. emximp -o $lib $output_objdir/$libname.def'
  9584. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9585. enable_shared_with_static_runtimes=yes
  9586. ;;
  9587. interix[3-9]*)
  9588. hardcode_direct=no
  9589. hardcode_shlibpath_var=no
  9590. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9591. export_dynamic_flag_spec='$wl-E'
  9592. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9593. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9594. # default) and relocated if they conflict, which is a slow very memory
  9595. # consuming and fragmenting process. To avoid this, we pick a random,
  9596. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9597. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9598. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9599. 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'
  9600. ;;
  9601. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  9602. tmp_diet=no
  9603. if test linux-dietlibc = "$host_os"; then
  9604. case $cc_basename in
  9605. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  9606. esac
  9607. fi
  9608. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  9609. && test no = "$tmp_diet"
  9610. then
  9611. tmp_addflag=' $pic_flag'
  9612. tmp_sharedflag='-shared'
  9613. case $cc_basename,$host_cpu in
  9614. pgcc*) # Portland Group C compiler
  9615. 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'
  9616. tmp_addflag=' $pic_flag'
  9617. ;;
  9618. pgf77* | pgf90* | pgf95* | pgfortran*)
  9619. # Portland Group f77 and f90 compilers
  9620. 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'
  9621. tmp_addflag=' $pic_flag -Mnomain' ;;
  9622. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9623. tmp_addflag=' -i_dynamic' ;;
  9624. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9625. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9626. ifc* | ifort*) # Intel Fortran compiler
  9627. tmp_addflag=' -nofor_main' ;;
  9628. lf95*) # Lahey Fortran 8.1
  9629. whole_archive_flag_spec=
  9630. tmp_sharedflag='--shared' ;;
  9631. nagfor*) # NAGFOR 5.3
  9632. tmp_sharedflag='-Wl,-shared' ;;
  9633. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  9634. tmp_sharedflag='-qmkshrobj'
  9635. tmp_addflag= ;;
  9636. nvcc*) # Cuda Compiler Driver 2.2
  9637. 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'
  9638. compiler_needs_object=yes
  9639. ;;
  9640. esac
  9641. case `$CC -V 2>&1 | sed 5q` in
  9642. *Sun\ C*) # Sun C 5.9
  9643. 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'
  9644. compiler_needs_object=yes
  9645. tmp_sharedflag='-G' ;;
  9646. *Sun\ F*) # Sun Fortran 8.3
  9647. tmp_sharedflag='-G' ;;
  9648. esac
  9649. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9650. if test yes = "$supports_anon_versioning"; then
  9651. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9652. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9653. echo "local: *; };" >> $output_objdir/$libname.ver~
  9654. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  9655. fi
  9656. case $cc_basename in
  9657. tcc*)
  9658. export_dynamic_flag_spec='-rdynamic'
  9659. ;;
  9660. xlf* | bgf* | bgxlf* | mpixlf*)
  9661. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  9662. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  9663. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9664. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  9665. if test yes = "$supports_anon_versioning"; then
  9666. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  9667. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9668. echo "local: *; };" >> $output_objdir/$libname.ver~
  9669. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  9670. fi
  9671. ;;
  9672. esac
  9673. else
  9674. ld_shlibs=no
  9675. fi
  9676. ;;
  9677. netbsd* | netbsdelf*-gnu)
  9678. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9679. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9680. wlarc=
  9681. else
  9682. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9683. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9684. fi
  9685. ;;
  9686. solaris*)
  9687. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  9688. ld_shlibs=no
  9689. cat <<_LT_EOF 1>&2
  9690. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9691. *** create shared libraries on Solaris systems. Therefore, libtool
  9692. *** is disabling shared libraries support. We urge you to upgrade GNU
  9693. *** binutils to release 2.9.1 or newer. Another option is to modify
  9694. *** your PATH or compiler configuration so that the native linker is
  9695. *** used, and then restart.
  9696. _LT_EOF
  9697. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9698. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9699. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9700. else
  9701. ld_shlibs=no
  9702. fi
  9703. ;;
  9704. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9705. case `$LD -v 2>&1` in
  9706. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9707. ld_shlibs=no
  9708. cat <<_LT_EOF 1>&2
  9709. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  9710. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9711. *** is disabling shared libraries support. We urge you to upgrade GNU
  9712. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9713. *** your PATH or compiler configuration so that the native linker is
  9714. *** used, and then restart.
  9715. _LT_EOF
  9716. ;;
  9717. *)
  9718. # For security reasons, it is highly recommended that you always
  9719. # use absolute paths for naming shared libraries, and exclude the
  9720. # DT_RUNPATH tag from executables and libraries. But doing so
  9721. # requires that you compile everything twice, which is a pain.
  9722. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9723. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9724. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9725. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9726. else
  9727. ld_shlibs=no
  9728. fi
  9729. ;;
  9730. esac
  9731. ;;
  9732. sunos4*)
  9733. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9734. wlarc=
  9735. hardcode_direct=yes
  9736. hardcode_shlibpath_var=no
  9737. ;;
  9738. *)
  9739. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9740. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9741. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  9742. else
  9743. ld_shlibs=no
  9744. fi
  9745. ;;
  9746. esac
  9747. if test no = "$ld_shlibs"; then
  9748. runpath_var=
  9749. hardcode_libdir_flag_spec=
  9750. export_dynamic_flag_spec=
  9751. whole_archive_flag_spec=
  9752. fi
  9753. else
  9754. # PORTME fill in a description of your system's linker (not GNU ld)
  9755. case $host_os in
  9756. aix3*)
  9757. allow_undefined_flag=unsupported
  9758. always_export_symbols=yes
  9759. 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'
  9760. # Note: this linker hardcodes the directories in LIBPATH if there
  9761. # are no directories specified by -L.
  9762. hardcode_minus_L=yes
  9763. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  9764. # Neither direct hardcoding nor static linking is supported with a
  9765. # broken collect2.
  9766. hardcode_direct=unsupported
  9767. fi
  9768. ;;
  9769. aix[4-9]*)
  9770. if test ia64 = "$host_cpu"; then
  9771. # On IA64, the linker does run time linking by default, so we don't
  9772. # have to do anything special.
  9773. aix_use_runtimelinking=no
  9774. exp_sym_flag='-Bexport'
  9775. no_entry_flag=
  9776. else
  9777. # If we're using GNU nm, then we don't want the "-C" option.
  9778. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  9779. # Without the "-l" option, or with the "-B" option, AIX nm treats
  9780. # weak defined symbols like other global defined symbols, whereas
  9781. # GNU nm marks them as "W".
  9782. # While the 'weak' keyword is ignored in the Export File, we need
  9783. # it in the Import File for the 'aix-soname' feature, so we have
  9784. # to replace the "-B" option with "-P" for AIX nm.
  9785. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9786. 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'
  9787. else
  9788. 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 == "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'
  9789. fi
  9790. aix_use_runtimelinking=no
  9791. # Test if we are trying to use run time linking or normal
  9792. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9793. # have runtime linking enabled, and use it for executables.
  9794. # For shared libraries, we enable/disable runtime linking
  9795. # depending on the kind of the shared library created -
  9796. # when "with_aix_soname,aix_use_runtimelinking" is:
  9797. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9798. # "aix,yes" lib.so shared, rtl:yes, for executables
  9799. # lib.a static archive
  9800. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9801. # lib.a(lib.so.V) shared, rtl:no, for executables
  9802. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9803. # lib.a(lib.so.V) shared, rtl:no
  9804. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9805. # lib.a static archive
  9806. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9807. for ld_flag in $LDFLAGS; do
  9808. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9809. aix_use_runtimelinking=yes
  9810. break
  9811. fi
  9812. done
  9813. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9814. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9815. # so we don't have lib.a shared libs to link our executables.
  9816. # We have to force runtime linking in this case.
  9817. aix_use_runtimelinking=yes
  9818. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9819. fi
  9820. ;;
  9821. esac
  9822. exp_sym_flag='-bexport'
  9823. no_entry_flag='-bnoentry'
  9824. fi
  9825. # When large executables or shared objects are built, AIX ld can
  9826. # have problems creating the table of contents. If linking a library
  9827. # or program results in "error TOC overflow" add -mminimal-toc to
  9828. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9829. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9830. archive_cmds=''
  9831. hardcode_direct=yes
  9832. hardcode_direct_absolute=yes
  9833. hardcode_libdir_separator=':'
  9834. link_all_deplibs=yes
  9835. file_list_spec='$wl-f,'
  9836. case $with_aix_soname,$aix_use_runtimelinking in
  9837. aix,*) ;; # traditional, no import file
  9838. svr4,* | *,yes) # use import file
  9839. # The Import File defines what to hardcode.
  9840. hardcode_direct=no
  9841. hardcode_direct_absolute=no
  9842. ;;
  9843. esac
  9844. if test yes = "$GCC"; then
  9845. case $host_os in aix4.[012]|aix4.[012].*)
  9846. # We only want to do this on AIX 4.2 and lower, the check
  9847. # below for broken collect2 doesn't work under 4.3+
  9848. collect2name=`$CC -print-prog-name=collect2`
  9849. if test -f "$collect2name" &&
  9850. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9851. then
  9852. # We have reworked collect2
  9853. :
  9854. else
  9855. # We have old collect2
  9856. hardcode_direct=unsupported
  9857. # It fails to find uninstalled libraries when the uninstalled
  9858. # path is not listed in the libpath. Setting hardcode_minus_L
  9859. # to unsupported forces relinking
  9860. hardcode_minus_L=yes
  9861. hardcode_libdir_flag_spec='-L$libdir'
  9862. hardcode_libdir_separator=
  9863. fi
  9864. ;;
  9865. esac
  9866. shared_flag='-shared'
  9867. if test yes = "$aix_use_runtimelinking"; then
  9868. shared_flag="$shared_flag "'$wl-G'
  9869. fi
  9870. # Need to ensure runtime linking is disabled for the traditional
  9871. # shared library, or the linker may eventually find shared libraries
  9872. # /with/ Import File - we do not want to mix them.
  9873. shared_flag_aix='-shared'
  9874. shared_flag_svr4='-shared $wl-G'
  9875. else
  9876. # not using gcc
  9877. if test ia64 = "$host_cpu"; then
  9878. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9879. # chokes on -Wl,-G. The following line is correct:
  9880. shared_flag='-G'
  9881. else
  9882. if test yes = "$aix_use_runtimelinking"; then
  9883. shared_flag='$wl-G'
  9884. else
  9885. shared_flag='$wl-bM:SRE'
  9886. fi
  9887. shared_flag_aix='$wl-bM:SRE'
  9888. shared_flag_svr4='$wl-G'
  9889. fi
  9890. fi
  9891. export_dynamic_flag_spec='$wl-bexpall'
  9892. # It seems that -bexpall does not export symbols beginning with
  9893. # underscore (_), so it is better to generate a list of symbols to export.
  9894. always_export_symbols=yes
  9895. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9896. # Warning - without using the other runtime loading flags (-brtl),
  9897. # -berok will link without error, but may produce a broken library.
  9898. allow_undefined_flag='-berok'
  9899. # Determine the default libpath from the value encoded in an
  9900. # empty executable.
  9901. if test set = "${lt_cv_aix_libpath+set}"; then
  9902. aix_libpath=$lt_cv_aix_libpath
  9903. else
  9904. if test ${lt_cv_aix_libpath_+y}
  9905. then :
  9906. printf %s "(cached) " >&6
  9907. else $as_nop
  9908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9909. /* end confdefs.h. */
  9910. int
  9911. main (void)
  9912. {
  9913. ;
  9914. return 0;
  9915. }
  9916. _ACEOF
  9917. if ac_fn_c_try_link "$LINENO"
  9918. then :
  9919. lt_aix_libpath_sed='
  9920. /Import File Strings/,/^$/ {
  9921. /^0/ {
  9922. s/^0 *\([^ ]*\) *$/\1/
  9923. p
  9924. }
  9925. }'
  9926. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9927. # Check for a 64-bit object if we didn't find anything.
  9928. if test -z "$lt_cv_aix_libpath_"; then
  9929. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9930. fi
  9931. fi
  9932. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9933. conftest$ac_exeext conftest.$ac_ext
  9934. if test -z "$lt_cv_aix_libpath_"; then
  9935. lt_cv_aix_libpath_=/usr/lib:/lib
  9936. fi
  9937. fi
  9938. aix_libpath=$lt_cv_aix_libpath_
  9939. fi
  9940. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9941. 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
  9942. else
  9943. if test ia64 = "$host_cpu"; then
  9944. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9945. allow_undefined_flag="-z nodefs"
  9946. 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"
  9947. else
  9948. # Determine the default libpath from the value encoded in an
  9949. # empty executable.
  9950. if test set = "${lt_cv_aix_libpath+set}"; then
  9951. aix_libpath=$lt_cv_aix_libpath
  9952. else
  9953. if test ${lt_cv_aix_libpath_+y}
  9954. then :
  9955. printf %s "(cached) " >&6
  9956. else $as_nop
  9957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9958. /* end confdefs.h. */
  9959. int
  9960. main (void)
  9961. {
  9962. ;
  9963. return 0;
  9964. }
  9965. _ACEOF
  9966. if ac_fn_c_try_link "$LINENO"
  9967. then :
  9968. lt_aix_libpath_sed='
  9969. /Import File Strings/,/^$/ {
  9970. /^0/ {
  9971. s/^0 *\([^ ]*\) *$/\1/
  9972. p
  9973. }
  9974. }'
  9975. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9976. # Check for a 64-bit object if we didn't find anything.
  9977. if test -z "$lt_cv_aix_libpath_"; then
  9978. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9979. fi
  9980. fi
  9981. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9982. conftest$ac_exeext conftest.$ac_ext
  9983. if test -z "$lt_cv_aix_libpath_"; then
  9984. lt_cv_aix_libpath_=/usr/lib:/lib
  9985. fi
  9986. fi
  9987. aix_libpath=$lt_cv_aix_libpath_
  9988. fi
  9989. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9990. # Warning - without using the other run time loading flags,
  9991. # -berok will link without error, but may produce a broken library.
  9992. no_undefined_flag=' $wl-bernotok'
  9993. allow_undefined_flag=' $wl-berok'
  9994. if test yes = "$with_gnu_ld"; then
  9995. # We only use this code for GNU lds that support --whole-archive.
  9996. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9997. else
  9998. # Exported symbols can be pulled into shared objects from archives
  9999. whole_archive_flag_spec='$convenience'
  10000. fi
  10001. archive_cmds_need_lc=yes
  10002. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  10003. # -brtl affects multiple linker settings, -berok does not and is overridden later
  10004. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  10005. if test svr4 != "$with_aix_soname"; then
  10006. # This is similar to how AIX traditionally builds its shared libraries.
  10007. 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'
  10008. fi
  10009. if test aix != "$with_aix_soname"; then
  10010. 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'
  10011. else
  10012. # used by -dlpreopen to get the symbols
  10013. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  10014. fi
  10015. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  10016. fi
  10017. fi
  10018. ;;
  10019. amigaos*)
  10020. case $host_cpu in
  10021. powerpc)
  10022. # see comment about AmigaOS4 .so support
  10023. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10024. archive_expsym_cmds=''
  10025. ;;
  10026. m68k)
  10027. 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)'
  10028. hardcode_libdir_flag_spec='-L$libdir'
  10029. hardcode_minus_L=yes
  10030. ;;
  10031. esac
  10032. ;;
  10033. bsdi[45]*)
  10034. export_dynamic_flag_spec=-rdynamic
  10035. ;;
  10036. cygwin* | mingw* | pw32* | cegcc*)
  10037. # When not using gcc, we currently assume that we are using
  10038. # Microsoft Visual C++.
  10039. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10040. # no search path for DLLs.
  10041. case $cc_basename in
  10042. cl*)
  10043. # Native MSVC
  10044. hardcode_libdir_flag_spec=' '
  10045. allow_undefined_flag=unsupported
  10046. always_export_symbols=yes
  10047. file_list_spec='@'
  10048. # Tell ltmain to make .lib files, not .a files.
  10049. libext=lib
  10050. # Tell ltmain to make .dll files, not .so files.
  10051. shrext_cmds=.dll
  10052. # FIXME: Setting linknames here is a bad hack.
  10053. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  10054. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10055. cp "$export_symbols" "$output_objdir/$soname.def";
  10056. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  10057. else
  10058. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  10059. fi~
  10060. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10061. linknames='
  10062. # The linker will not automatically build a static lib if we build a DLL.
  10063. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  10064. enable_shared_with_static_runtimes=yes
  10065. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  10066. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10067. # Don't use ranlib
  10068. old_postinstall_cmds='chmod 644 $oldlib'
  10069. postlink_cmds='lt_outputfile="@OUTPUT@"~
  10070. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10071. case $lt_outputfile in
  10072. *.exe|*.EXE) ;;
  10073. *)
  10074. lt_outputfile=$lt_outputfile.exe
  10075. lt_tool_outputfile=$lt_tool_outputfile.exe
  10076. ;;
  10077. esac~
  10078. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  10079. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10080. $RM "$lt_outputfile.manifest";
  10081. fi'
  10082. ;;
  10083. *)
  10084. # Assume MSVC wrapper
  10085. hardcode_libdir_flag_spec=' '
  10086. allow_undefined_flag=unsupported
  10087. # Tell ltmain to make .lib files, not .a files.
  10088. libext=lib
  10089. # Tell ltmain to make .dll files, not .so files.
  10090. shrext_cmds=.dll
  10091. # FIXME: Setting linknames here is a bad hack.
  10092. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  10093. # The linker will automatically build a .lib file if we build a DLL.
  10094. old_archive_from_new_cmds='true'
  10095. # FIXME: Should let the user specify the lib program.
  10096. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  10097. enable_shared_with_static_runtimes=yes
  10098. ;;
  10099. esac
  10100. ;;
  10101. darwin* | rhapsody*)
  10102. archive_cmds_need_lc=no
  10103. hardcode_direct=no
  10104. hardcode_automatic=yes
  10105. hardcode_shlibpath_var=unsupported
  10106. if test yes = "$lt_cv_ld_force_load"; then
  10107. 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\"`'
  10108. else
  10109. whole_archive_flag_spec=''
  10110. fi
  10111. link_all_deplibs=yes
  10112. allow_undefined_flag=$_lt_dar_allow_undefined
  10113. case $cc_basename in
  10114. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  10115. *) _lt_dar_can_shared=$GCC ;;
  10116. esac
  10117. if test yes = "$_lt_dar_can_shared"; then
  10118. output_verbose_link_cmd=func_echo_all
  10119. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  10120. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  10121. 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"
  10122. 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"
  10123. else
  10124. ld_shlibs=no
  10125. fi
  10126. ;;
  10127. dgux*)
  10128. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10129. hardcode_libdir_flag_spec='-L$libdir'
  10130. hardcode_shlibpath_var=no
  10131. ;;
  10132. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10133. # support. Future versions do this automatically, but an explicit c++rt0.o
  10134. # does not break anything, and helps significantly (at the cost of a little
  10135. # extra space).
  10136. freebsd2.2*)
  10137. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10138. hardcode_libdir_flag_spec='-R$libdir'
  10139. hardcode_direct=yes
  10140. hardcode_shlibpath_var=no
  10141. ;;
  10142. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10143. freebsd2.*)
  10144. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10145. hardcode_direct=yes
  10146. hardcode_minus_L=yes
  10147. hardcode_shlibpath_var=no
  10148. ;;
  10149. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10150. freebsd* | dragonfly*)
  10151. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10152. hardcode_libdir_flag_spec='-R$libdir'
  10153. hardcode_direct=yes
  10154. hardcode_shlibpath_var=no
  10155. ;;
  10156. hpux9*)
  10157. if test yes = "$GCC"; then
  10158. 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'
  10159. else
  10160. 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'
  10161. fi
  10162. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10163. hardcode_libdir_separator=:
  10164. hardcode_direct=yes
  10165. # hardcode_minus_L: Not really in the search PATH,
  10166. # but as the default location of the library.
  10167. hardcode_minus_L=yes
  10168. export_dynamic_flag_spec='$wl-E'
  10169. ;;
  10170. hpux10*)
  10171. if test yes,no = "$GCC,$with_gnu_ld"; then
  10172. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10173. else
  10174. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10175. fi
  10176. if test no = "$with_gnu_ld"; then
  10177. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10178. hardcode_libdir_separator=:
  10179. hardcode_direct=yes
  10180. hardcode_direct_absolute=yes
  10181. export_dynamic_flag_spec='$wl-E'
  10182. # hardcode_minus_L: Not really in the search PATH,
  10183. # but as the default location of the library.
  10184. hardcode_minus_L=yes
  10185. fi
  10186. ;;
  10187. hpux11*)
  10188. if test yes,no = "$GCC,$with_gnu_ld"; then
  10189. case $host_cpu in
  10190. hppa*64*)
  10191. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10192. ;;
  10193. ia64*)
  10194. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10195. ;;
  10196. *)
  10197. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10198. ;;
  10199. esac
  10200. else
  10201. case $host_cpu in
  10202. hppa*64*)
  10203. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10204. ;;
  10205. ia64*)
  10206. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  10207. ;;
  10208. *)
  10209. # Older versions of the 11.00 compiler do not understand -b yet
  10210. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  10211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  10212. printf %s "checking if $CC understands -b... " >&6; }
  10213. if test ${lt_cv_prog_compiler__b+y}
  10214. then :
  10215. printf %s "(cached) " >&6
  10216. else $as_nop
  10217. lt_cv_prog_compiler__b=no
  10218. save_LDFLAGS=$LDFLAGS
  10219. LDFLAGS="$LDFLAGS -b"
  10220. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10221. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10222. # The linker can only warn and ignore the option if not recognized
  10223. # So say no if there are warnings
  10224. if test -s conftest.err; then
  10225. # Append any errors to the config.log.
  10226. cat conftest.err 1>&5
  10227. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10228. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10229. if diff conftest.exp conftest.er2 >/dev/null; then
  10230. lt_cv_prog_compiler__b=yes
  10231. fi
  10232. else
  10233. lt_cv_prog_compiler__b=yes
  10234. fi
  10235. fi
  10236. $RM -r conftest*
  10237. LDFLAGS=$save_LDFLAGS
  10238. fi
  10239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  10240. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  10241. if test yes = "$lt_cv_prog_compiler__b"; then
  10242. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10243. else
  10244. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10245. fi
  10246. ;;
  10247. esac
  10248. fi
  10249. if test no = "$with_gnu_ld"; then
  10250. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  10251. hardcode_libdir_separator=:
  10252. case $host_cpu in
  10253. hppa*64*|ia64*)
  10254. hardcode_direct=no
  10255. hardcode_shlibpath_var=no
  10256. ;;
  10257. *)
  10258. hardcode_direct=yes
  10259. hardcode_direct_absolute=yes
  10260. export_dynamic_flag_spec='$wl-E'
  10261. # hardcode_minus_L: Not really in the search PATH,
  10262. # but as the default location of the library.
  10263. hardcode_minus_L=yes
  10264. ;;
  10265. esac
  10266. fi
  10267. ;;
  10268. irix5* | irix6* | nonstopux*)
  10269. if test yes = "$GCC"; then
  10270. 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'
  10271. # Try to use the -exported_symbol ld option, if it does not
  10272. # work, assume that -exports_file does not work either and
  10273. # implicitly export all symbols.
  10274. # This should be the same for all languages, so no per-tag cache variable.
  10275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  10276. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  10277. if test ${lt_cv_irix_exported_symbol+y}
  10278. then :
  10279. printf %s "(cached) " >&6
  10280. else $as_nop
  10281. save_LDFLAGS=$LDFLAGS
  10282. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  10283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10284. /* end confdefs.h. */
  10285. int foo (void) { return 0; }
  10286. _ACEOF
  10287. if ac_fn_c_try_link "$LINENO"
  10288. then :
  10289. lt_cv_irix_exported_symbol=yes
  10290. else $as_nop
  10291. lt_cv_irix_exported_symbol=no
  10292. fi
  10293. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10294. conftest$ac_exeext conftest.$ac_ext
  10295. LDFLAGS=$save_LDFLAGS
  10296. fi
  10297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  10298. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  10299. if test yes = "$lt_cv_irix_exported_symbol"; then
  10300. 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'
  10301. fi
  10302. link_all_deplibs=no
  10303. else
  10304. 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'
  10305. 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'
  10306. fi
  10307. archive_cmds_need_lc='no'
  10308. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10309. hardcode_libdir_separator=:
  10310. inherit_rpath=yes
  10311. link_all_deplibs=yes
  10312. ;;
  10313. linux*)
  10314. case $cc_basename in
  10315. tcc*)
  10316. # Fabrice Bellard et al's Tiny C Compiler
  10317. ld_shlibs=yes
  10318. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10319. ;;
  10320. esac
  10321. ;;
  10322. netbsd* | netbsdelf*-gnu)
  10323. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10324. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10325. else
  10326. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10327. fi
  10328. hardcode_libdir_flag_spec='-R$libdir'
  10329. hardcode_direct=yes
  10330. hardcode_shlibpath_var=no
  10331. ;;
  10332. newsos6)
  10333. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10334. hardcode_direct=yes
  10335. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10336. hardcode_libdir_separator=:
  10337. hardcode_shlibpath_var=no
  10338. ;;
  10339. *nto* | *qnx*)
  10340. ;;
  10341. openbsd* | bitrig*)
  10342. if test -f /usr/libexec/ld.so; then
  10343. hardcode_direct=yes
  10344. hardcode_shlibpath_var=no
  10345. hardcode_direct_absolute=yes
  10346. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10347. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10348. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  10349. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10350. export_dynamic_flag_spec='$wl-E'
  10351. else
  10352. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10353. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10354. fi
  10355. else
  10356. ld_shlibs=no
  10357. fi
  10358. ;;
  10359. os2*)
  10360. hardcode_libdir_flag_spec='-L$libdir'
  10361. hardcode_minus_L=yes
  10362. allow_undefined_flag=unsupported
  10363. shrext_cmds=.dll
  10364. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10365. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10366. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10367. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10368. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10369. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10370. emximp -o $lib $output_objdir/$libname.def'
  10371. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10372. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10373. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10374. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10375. prefix_cmds="$SED"~
  10376. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10377. prefix_cmds="$prefix_cmds -e 1d";
  10378. fi~
  10379. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10380. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10381. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10382. emximp -o $lib $output_objdir/$libname.def'
  10383. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10384. enable_shared_with_static_runtimes=yes
  10385. ;;
  10386. osf3*)
  10387. if test yes = "$GCC"; then
  10388. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10389. 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'
  10390. else
  10391. allow_undefined_flag=' -expect_unresolved \*'
  10392. 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'
  10393. fi
  10394. archive_cmds_need_lc='no'
  10395. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10396. hardcode_libdir_separator=:
  10397. ;;
  10398. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10399. if test yes = "$GCC"; then
  10400. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  10401. 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'
  10402. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10403. else
  10404. allow_undefined_flag=' -expect_unresolved \*'
  10405. 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'
  10406. 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~
  10407. $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'
  10408. # Both c and cxx compiler support -rpath directly
  10409. hardcode_libdir_flag_spec='-rpath $libdir'
  10410. fi
  10411. archive_cmds_need_lc='no'
  10412. hardcode_libdir_separator=:
  10413. ;;
  10414. solaris*)
  10415. no_undefined_flag=' -z defs'
  10416. if test yes = "$GCC"; then
  10417. wlarc='$wl'
  10418. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  10419. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10420. $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'
  10421. else
  10422. case `$CC -V 2>&1` in
  10423. *"Compilers 5.0"*)
  10424. wlarc=''
  10425. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10426. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10427. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  10428. ;;
  10429. *)
  10430. wlarc='$wl'
  10431. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10432. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10433. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  10434. ;;
  10435. esac
  10436. fi
  10437. hardcode_libdir_flag_spec='-R$libdir'
  10438. hardcode_shlibpath_var=no
  10439. case $host_os in
  10440. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10441. *)
  10442. # The compiler driver will combine and reorder linker options,
  10443. # but understands '-z linker_flag'. GCC discards it without '$wl',
  10444. # but is careful enough not to reorder.
  10445. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10446. if test yes = "$GCC"; then
  10447. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  10448. else
  10449. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  10450. fi
  10451. ;;
  10452. esac
  10453. link_all_deplibs=yes
  10454. ;;
  10455. sunos4*)
  10456. if test sequent = "$host_vendor"; then
  10457. # Use $CC to link under sequent, because it throws in some extra .o
  10458. # files that make .init and .fini sections work.
  10459. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10460. else
  10461. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10462. fi
  10463. hardcode_libdir_flag_spec='-L$libdir'
  10464. hardcode_direct=yes
  10465. hardcode_minus_L=yes
  10466. hardcode_shlibpath_var=no
  10467. ;;
  10468. sysv4)
  10469. case $host_vendor in
  10470. sni)
  10471. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10472. hardcode_direct=yes # is this really true???
  10473. ;;
  10474. siemens)
  10475. ## LD is ld it makes a PLAMLIB
  10476. ## CC just makes a GrossModule.
  10477. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10478. reload_cmds='$CC -r -o $output$reload_objs'
  10479. hardcode_direct=no
  10480. ;;
  10481. motorola)
  10482. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10483. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10484. ;;
  10485. esac
  10486. runpath_var='LD_RUN_PATH'
  10487. hardcode_shlibpath_var=no
  10488. ;;
  10489. sysv4.3*)
  10490. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10491. hardcode_shlibpath_var=no
  10492. export_dynamic_flag_spec='-Bexport'
  10493. ;;
  10494. sysv4*MP*)
  10495. if test -d /usr/nec; then
  10496. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10497. hardcode_shlibpath_var=no
  10498. runpath_var=LD_RUN_PATH
  10499. hardcode_runpath_var=yes
  10500. ld_shlibs=yes
  10501. fi
  10502. ;;
  10503. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10504. no_undefined_flag='$wl-z,text'
  10505. archive_cmds_need_lc=no
  10506. hardcode_shlibpath_var=no
  10507. runpath_var='LD_RUN_PATH'
  10508. if test yes = "$GCC"; then
  10509. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10510. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10511. else
  10512. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10513. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10514. fi
  10515. ;;
  10516. sysv5* | sco3.2v5* | sco5v6*)
  10517. # Note: We CANNOT use -z defs as we might desire, because we do not
  10518. # link with -lc, and that would cause any symbols used from libc to
  10519. # always be unresolved, which means just about no library would
  10520. # ever link correctly. If we're not using GNU ld we use -z text
  10521. # though, which does catch some bad symbols but isn't as heavy-handed
  10522. # as -z defs.
  10523. no_undefined_flag='$wl-z,text'
  10524. allow_undefined_flag='$wl-z,nodefs'
  10525. archive_cmds_need_lc=no
  10526. hardcode_shlibpath_var=no
  10527. hardcode_libdir_flag_spec='$wl-R,$libdir'
  10528. hardcode_libdir_separator=':'
  10529. link_all_deplibs=yes
  10530. export_dynamic_flag_spec='$wl-Bexport'
  10531. runpath_var='LD_RUN_PATH'
  10532. if test yes = "$GCC"; then
  10533. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10534. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10535. else
  10536. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10537. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10538. fi
  10539. ;;
  10540. uts4*)
  10541. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10542. hardcode_libdir_flag_spec='-L$libdir'
  10543. hardcode_shlibpath_var=no
  10544. ;;
  10545. *)
  10546. ld_shlibs=no
  10547. ;;
  10548. esac
  10549. if test sni = "$host_vendor"; then
  10550. case $host in
  10551. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10552. export_dynamic_flag_spec='$wl-Blargedynsym'
  10553. ;;
  10554. esac
  10555. fi
  10556. fi
  10557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10558. printf "%s\n" "$ld_shlibs" >&6; }
  10559. test no = "$ld_shlibs" && can_build_shared=no
  10560. with_gnu_ld=$with_gnu_ld
  10561. #
  10562. # Do we need to explicitly link libc?
  10563. #
  10564. case "x$archive_cmds_need_lc" in
  10565. x|xyes)
  10566. # Assume -lc should be added
  10567. archive_cmds_need_lc=yes
  10568. if test yes,yes = "$GCC,$enable_shared"; then
  10569. case $archive_cmds in
  10570. *'~'*)
  10571. # FIXME: we may have to deal with multi-command sequences.
  10572. ;;
  10573. '$CC '*)
  10574. # Test whether the compiler implicitly links with -lc since on some
  10575. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10576. # to ld, don't add -lc before -lgcc.
  10577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10578. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  10579. if test ${lt_cv_archive_cmds_need_lc+y}
  10580. then :
  10581. printf %s "(cached) " >&6
  10582. else $as_nop
  10583. $RM conftest*
  10584. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10586. (eval $ac_compile) 2>&5
  10587. ac_status=$?
  10588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10589. test $ac_status = 0; } 2>conftest.err; then
  10590. soname=conftest
  10591. lib=conftest
  10592. libobjs=conftest.$ac_objext
  10593. deplibs=
  10594. wl=$lt_prog_compiler_wl
  10595. pic_flag=$lt_prog_compiler_pic
  10596. compiler_flags=-v
  10597. linker_flags=-v
  10598. verstring=
  10599. output_objdir=.
  10600. libname=conftest
  10601. lt_save_allow_undefined_flag=$allow_undefined_flag
  10602. allow_undefined_flag=
  10603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10604. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10605. ac_status=$?
  10606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10607. test $ac_status = 0; }
  10608. then
  10609. lt_cv_archive_cmds_need_lc=no
  10610. else
  10611. lt_cv_archive_cmds_need_lc=yes
  10612. fi
  10613. allow_undefined_flag=$lt_save_allow_undefined_flag
  10614. else
  10615. cat conftest.err 1>&5
  10616. fi
  10617. $RM conftest*
  10618. fi
  10619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  10620. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  10621. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  10622. ;;
  10623. esac
  10624. fi
  10625. ;;
  10626. esac
  10627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10628. printf %s "checking dynamic linker characteristics... " >&6; }
  10629. if test yes = "$GCC"; then
  10630. case $host_os in
  10631. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  10632. *) lt_awk_arg='/^libraries:/' ;;
  10633. esac
  10634. case $host_os in
  10635. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  10636. *) lt_sed_strip_eq='s|=/|/|g' ;;
  10637. esac
  10638. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  10639. case $lt_search_path_spec in
  10640. *\;*)
  10641. # if the path contains ";" then we assume it to be the separator
  10642. # otherwise default to the standard path separator (i.e. ":") - it is
  10643. # assumed that no part of a normal pathname contains ";" but that should
  10644. # okay in the real world where ";" in dirpaths is itself problematic.
  10645. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  10646. ;;
  10647. *)
  10648. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  10649. ;;
  10650. esac
  10651. # Ok, now we have the path, separated by spaces, we can step through it
  10652. # and add multilib dir if necessary...
  10653. lt_tmp_lt_search_path_spec=
  10654. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  10655. # ...but if some path component already ends with the multilib dir we assume
  10656. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  10657. case "$lt_multi_os_dir; $lt_search_path_spec " in
  10658. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  10659. lt_multi_os_dir=
  10660. ;;
  10661. esac
  10662. for lt_sys_path in $lt_search_path_spec; do
  10663. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  10664. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  10665. elif test -n "$lt_multi_os_dir"; then
  10666. test -d "$lt_sys_path" && \
  10667. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  10668. fi
  10669. done
  10670. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  10671. BEGIN {RS = " "; FS = "/|\n";} {
  10672. lt_foo = "";
  10673. lt_count = 0;
  10674. for (lt_i = NF; lt_i > 0; lt_i--) {
  10675. if ($lt_i != "" && $lt_i != ".") {
  10676. if ($lt_i == "..") {
  10677. lt_count++;
  10678. } else {
  10679. if (lt_count == 0) {
  10680. lt_foo = "/" $lt_i lt_foo;
  10681. } else {
  10682. lt_count--;
  10683. }
  10684. }
  10685. }
  10686. }
  10687. if (lt_foo != "") { lt_freq[lt_foo]++; }
  10688. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  10689. }'`
  10690. # AWK program above erroneously prepends '/' to C:/dos/paths
  10691. # for these hosts.
  10692. case $host_os in
  10693. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  10694. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  10695. esac
  10696. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  10697. else
  10698. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10699. fi
  10700. library_names_spec=
  10701. libname_spec='lib$name'
  10702. soname_spec=
  10703. shrext_cmds=.so
  10704. postinstall_cmds=
  10705. postuninstall_cmds=
  10706. finish_cmds=
  10707. finish_eval=
  10708. shlibpath_var=
  10709. shlibpath_overrides_runpath=unknown
  10710. version_type=none
  10711. dynamic_linker="$host_os ld.so"
  10712. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10713. need_lib_prefix=unknown
  10714. hardcode_into_libs=no
  10715. # when you set need_version to no, make sure it does not cause -set_version
  10716. # flags to be left without arguments
  10717. need_version=unknown
  10718. case $host_os in
  10719. aix3*)
  10720. version_type=linux # correct to gnu/linux during the next big refactor
  10721. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  10722. shlibpath_var=LIBPATH
  10723. # AIX 3 has no versioning support, so we append a major version to the name.
  10724. soname_spec='$libname$release$shared_ext$major'
  10725. ;;
  10726. aix[4-9]*)
  10727. version_type=linux # correct to gnu/linux during the next big refactor
  10728. need_lib_prefix=no
  10729. need_version=no
  10730. hardcode_into_libs=yes
  10731. if test ia64 = "$host_cpu"; then
  10732. # AIX 5 supports IA64
  10733. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  10734. shlibpath_var=LD_LIBRARY_PATH
  10735. else
  10736. # With GCC up to 2.95.x, collect2 would create an import file
  10737. # for dependence libraries. The import file would start with
  10738. # the line '#! .'. This would cause the generated library to
  10739. # depend on '.', always an invalid library. This was fixed in
  10740. # development snapshots of GCC prior to 3.0.
  10741. case $host_os in
  10742. aix4 | aix4.[01] | aix4.[01].*)
  10743. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10744. echo ' yes '
  10745. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  10746. :
  10747. else
  10748. can_build_shared=no
  10749. fi
  10750. ;;
  10751. esac
  10752. # Using Import Files as archive members, it is possible to support
  10753. # filename-based versioning of shared library archives on AIX. While
  10754. # this would work for both with and without runtime linking, it will
  10755. # prevent static linking of such archives. So we do filename-based
  10756. # shared library versioning with .so extension only, which is used
  10757. # when both runtime linking and shared linking is enabled.
  10758. # Unfortunately, runtime linking may impact performance, so we do
  10759. # not want this to be the default eventually. Also, we use the
  10760. # versioned .so libs for executables only if there is the -brtl
  10761. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  10762. # To allow for filename-based versioning support, we need to create
  10763. # libNAME.so.V as an archive file, containing:
  10764. # *) an Import File, referring to the versioned filename of the
  10765. # archive as well as the shared archive member, telling the
  10766. # bitwidth (32 or 64) of that shared object, and providing the
  10767. # list of exported symbols of that shared object, eventually
  10768. # decorated with the 'weak' keyword
  10769. # *) the shared object with the F_LOADONLY flag set, to really avoid
  10770. # it being seen by the linker.
  10771. # At run time we better use the real file rather than another symlink,
  10772. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  10773. case $with_aix_soname,$aix_use_runtimelinking in
  10774. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  10775. # soname into executable. Probably we can add versioning support to
  10776. # collect2, so additional links can be useful in future.
  10777. aix,yes) # traditional libtool
  10778. dynamic_linker='AIX unversionable lib.so'
  10779. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10780. # instead of lib<name>.a to let people know that these are not
  10781. # typical AIX shared libraries.
  10782. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10783. ;;
  10784. aix,no) # traditional AIX only
  10785. dynamic_linker='AIX lib.a(lib.so.V)'
  10786. # We preserve .a as extension for shared libraries through AIX4.2
  10787. # and later when we are not doing run time linking.
  10788. library_names_spec='$libname$release.a $libname.a'
  10789. soname_spec='$libname$release$shared_ext$major'
  10790. ;;
  10791. svr4,*) # full svr4 only
  10792. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  10793. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10794. # We do not specify a path in Import Files, so LIBPATH fires.
  10795. shlibpath_overrides_runpath=yes
  10796. ;;
  10797. *,yes) # both, prefer svr4
  10798. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10799. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10800. # unpreferred sharedlib libNAME.a needs extra handling
  10801. 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"'
  10802. 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"'
  10803. # We do not specify a path in Import Files, so LIBPATH fires.
  10804. shlibpath_overrides_runpath=yes
  10805. ;;
  10806. *,no) # both, prefer aix
  10807. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10808. library_names_spec='$libname$release.a $libname.a'
  10809. soname_spec='$libname$release$shared_ext$major'
  10810. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10811. 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)'
  10812. 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"'
  10813. ;;
  10814. esac
  10815. shlibpath_var=LIBPATH
  10816. fi
  10817. ;;
  10818. amigaos*)
  10819. case $host_cpu in
  10820. powerpc)
  10821. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10822. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10823. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10824. ;;
  10825. m68k)
  10826. library_names_spec='$libname.ixlibrary $libname.a'
  10827. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10828. 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'
  10829. ;;
  10830. esac
  10831. ;;
  10832. beos*)
  10833. library_names_spec='$libname$shared_ext'
  10834. dynamic_linker="$host_os ld.so"
  10835. shlibpath_var=LIBRARY_PATH
  10836. ;;
  10837. bsdi[45]*)
  10838. version_type=linux # correct to gnu/linux during the next big refactor
  10839. need_version=no
  10840. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10841. soname_spec='$libname$release$shared_ext$major'
  10842. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10843. shlibpath_var=LD_LIBRARY_PATH
  10844. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10845. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10846. # the default ld.so.conf also contains /usr/contrib/lib and
  10847. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10848. # libtool to hard-code these into programs
  10849. ;;
  10850. cygwin* | mingw* | pw32* | cegcc*)
  10851. version_type=windows
  10852. shrext_cmds=.dll
  10853. need_version=no
  10854. need_lib_prefix=no
  10855. case $GCC,$cc_basename in
  10856. yes,*)
  10857. # gcc
  10858. library_names_spec='$libname.dll.a'
  10859. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10860. postinstall_cmds='base_file=`basename \$file`~
  10861. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10862. dldir=$destdir/`dirname \$dlpath`~
  10863. test -d \$dldir || mkdir -p \$dldir~
  10864. $install_prog $dir/$dlname \$dldir/$dlname~
  10865. chmod a+x \$dldir/$dlname~
  10866. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10867. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10868. fi'
  10869. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10870. dlpath=$dir/\$dldll~
  10871. $RM \$dlpath'
  10872. shlibpath_overrides_runpath=yes
  10873. case $host_os in
  10874. cygwin*)
  10875. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10876. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10877. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10878. ;;
  10879. mingw* | cegcc*)
  10880. # MinGW DLLs use traditional 'lib' prefix
  10881. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10882. ;;
  10883. pw32*)
  10884. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10885. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10886. ;;
  10887. esac
  10888. dynamic_linker='Win32 ld.exe'
  10889. ;;
  10890. *,cl*)
  10891. # Native MSVC
  10892. libname_spec='$name'
  10893. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10894. library_names_spec='$libname.dll.lib'
  10895. case $build_os in
  10896. mingw*)
  10897. sys_lib_search_path_spec=
  10898. lt_save_ifs=$IFS
  10899. IFS=';'
  10900. for lt_path in $LIB
  10901. do
  10902. IFS=$lt_save_ifs
  10903. # Let DOS variable expansion print the short 8.3 style file name.
  10904. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10905. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10906. done
  10907. IFS=$lt_save_ifs
  10908. # Convert to MSYS style.
  10909. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10910. ;;
  10911. cygwin*)
  10912. # Convert to unix form, then to dos form, then back to unix form
  10913. # but this time dos style (no spaces!) so that the unix form looks
  10914. # like /cygdrive/c/PROGRA~1:/cygdr...
  10915. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10916. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10917. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10918. ;;
  10919. *)
  10920. sys_lib_search_path_spec=$LIB
  10921. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10922. # It is most probably a Windows format PATH.
  10923. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10924. else
  10925. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10926. fi
  10927. # FIXME: find the short name or the path components, as spaces are
  10928. # common. (e.g. "Program Files" -> "PROGRA~1")
  10929. ;;
  10930. esac
  10931. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10932. postinstall_cmds='base_file=`basename \$file`~
  10933. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10934. dldir=$destdir/`dirname \$dlpath`~
  10935. test -d \$dldir || mkdir -p \$dldir~
  10936. $install_prog $dir/$dlname \$dldir/$dlname'
  10937. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10938. dlpath=$dir/\$dldll~
  10939. $RM \$dlpath'
  10940. shlibpath_overrides_runpath=yes
  10941. dynamic_linker='Win32 link.exe'
  10942. ;;
  10943. *)
  10944. # Assume MSVC wrapper
  10945. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10946. dynamic_linker='Win32 ld.exe'
  10947. ;;
  10948. esac
  10949. # FIXME: first we should search . and the directory the executable is in
  10950. shlibpath_var=PATH
  10951. ;;
  10952. darwin* | rhapsody*)
  10953. dynamic_linker="$host_os dyld"
  10954. version_type=darwin
  10955. need_lib_prefix=no
  10956. need_version=no
  10957. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10958. soname_spec='$libname$release$major$shared_ext'
  10959. shlibpath_overrides_runpath=yes
  10960. shlibpath_var=DYLD_LIBRARY_PATH
  10961. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10962. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10963. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10964. ;;
  10965. dgux*)
  10966. version_type=linux # correct to gnu/linux during the next big refactor
  10967. need_lib_prefix=no
  10968. need_version=no
  10969. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10970. soname_spec='$libname$release$shared_ext$major'
  10971. shlibpath_var=LD_LIBRARY_PATH
  10972. ;;
  10973. freebsd* | dragonfly*)
  10974. # DragonFly does not have aout. When/if they implement a new
  10975. # versioning mechanism, adjust this.
  10976. if test -x /usr/bin/objformat; then
  10977. objformat=`/usr/bin/objformat`
  10978. else
  10979. case $host_os in
  10980. freebsd[23].*) objformat=aout ;;
  10981. *) objformat=elf ;;
  10982. esac
  10983. fi
  10984. version_type=freebsd-$objformat
  10985. case $version_type in
  10986. freebsd-elf*)
  10987. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10988. soname_spec='$libname$release$shared_ext$major'
  10989. need_version=no
  10990. need_lib_prefix=no
  10991. ;;
  10992. freebsd-*)
  10993. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10994. need_version=yes
  10995. ;;
  10996. esac
  10997. shlibpath_var=LD_LIBRARY_PATH
  10998. case $host_os in
  10999. freebsd2.*)
  11000. shlibpath_overrides_runpath=yes
  11001. ;;
  11002. freebsd3.[01]* | freebsdelf3.[01]*)
  11003. shlibpath_overrides_runpath=yes
  11004. hardcode_into_libs=yes
  11005. ;;
  11006. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11007. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11008. shlibpath_overrides_runpath=no
  11009. hardcode_into_libs=yes
  11010. ;;
  11011. *) # from 4.6 on, and DragonFly
  11012. shlibpath_overrides_runpath=yes
  11013. hardcode_into_libs=yes
  11014. ;;
  11015. esac
  11016. ;;
  11017. haiku*)
  11018. version_type=linux # correct to gnu/linux during the next big refactor
  11019. need_lib_prefix=no
  11020. need_version=no
  11021. dynamic_linker="$host_os runtime_loader"
  11022. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11023. soname_spec='$libname$release$shared_ext$major'
  11024. shlibpath_var=LIBRARY_PATH
  11025. shlibpath_overrides_runpath=no
  11026. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  11027. hardcode_into_libs=yes
  11028. ;;
  11029. hpux9* | hpux10* | hpux11*)
  11030. # Give a soname corresponding to the major version so that dld.sl refuses to
  11031. # link against other versions.
  11032. version_type=sunos
  11033. need_lib_prefix=no
  11034. need_version=no
  11035. case $host_cpu in
  11036. ia64*)
  11037. shrext_cmds='.so'
  11038. hardcode_into_libs=yes
  11039. dynamic_linker="$host_os dld.so"
  11040. shlibpath_var=LD_LIBRARY_PATH
  11041. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11042. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11043. soname_spec='$libname$release$shared_ext$major'
  11044. if test 32 = "$HPUX_IA64_MODE"; then
  11045. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11046. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  11047. else
  11048. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11049. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  11050. fi
  11051. ;;
  11052. hppa*64*)
  11053. shrext_cmds='.sl'
  11054. hardcode_into_libs=yes
  11055. dynamic_linker="$host_os dld.sl"
  11056. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11057. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11058. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11059. soname_spec='$libname$release$shared_ext$major'
  11060. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11061. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11062. ;;
  11063. *)
  11064. shrext_cmds='.sl'
  11065. dynamic_linker="$host_os dld.sl"
  11066. shlibpath_var=SHLIB_PATH
  11067. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11068. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11069. soname_spec='$libname$release$shared_ext$major'
  11070. ;;
  11071. esac
  11072. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  11073. postinstall_cmds='chmod 555 $lib'
  11074. # or fails outright, so override atomically:
  11075. install_override_mode=555
  11076. ;;
  11077. interix[3-9]*)
  11078. version_type=linux # correct to gnu/linux during the next big refactor
  11079. need_lib_prefix=no
  11080. need_version=no
  11081. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11082. soname_spec='$libname$release$shared_ext$major'
  11083. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11084. shlibpath_var=LD_LIBRARY_PATH
  11085. shlibpath_overrides_runpath=no
  11086. hardcode_into_libs=yes
  11087. ;;
  11088. irix5* | irix6* | nonstopux*)
  11089. case $host_os in
  11090. nonstopux*) version_type=nonstopux ;;
  11091. *)
  11092. if test yes = "$lt_cv_prog_gnu_ld"; then
  11093. version_type=linux # correct to gnu/linux during the next big refactor
  11094. else
  11095. version_type=irix
  11096. fi ;;
  11097. esac
  11098. need_lib_prefix=no
  11099. need_version=no
  11100. soname_spec='$libname$release$shared_ext$major'
  11101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  11102. case $host_os in
  11103. irix5* | nonstopux*)
  11104. libsuff= shlibsuff=
  11105. ;;
  11106. *)
  11107. case $LD in # libtool.m4 will add one of these switches to LD
  11108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11109. libsuff= shlibsuff= libmagic=32-bit;;
  11110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11114. *) libsuff= shlibsuff= libmagic=never-match;;
  11115. esac
  11116. ;;
  11117. esac
  11118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11119. shlibpath_overrides_runpath=no
  11120. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  11121. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  11122. hardcode_into_libs=yes
  11123. ;;
  11124. # No shared lib support for Linux oldld, aout, or coff.
  11125. linux*oldld* | linux*aout* | linux*coff*)
  11126. dynamic_linker=no
  11127. ;;
  11128. linux*android*)
  11129. version_type=none # Android doesn't support versioned libraries.
  11130. need_lib_prefix=no
  11131. need_version=no
  11132. library_names_spec='$libname$release$shared_ext'
  11133. soname_spec='$libname$release$shared_ext'
  11134. finish_cmds=
  11135. shlibpath_var=LD_LIBRARY_PATH
  11136. shlibpath_overrides_runpath=yes
  11137. # This implies no fast_install, which is unacceptable.
  11138. # Some rework will be needed to allow for fast_install
  11139. # before this can be enabled.
  11140. hardcode_into_libs=yes
  11141. dynamic_linker='Android linker'
  11142. # Don't embed -rpath directories since the linker doesn't support them.
  11143. hardcode_libdir_flag_spec='-L$libdir'
  11144. ;;
  11145. # This must be glibc/ELF.
  11146. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11147. version_type=linux # correct to gnu/linux during the next big refactor
  11148. need_lib_prefix=no
  11149. need_version=no
  11150. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11151. soname_spec='$libname$release$shared_ext$major'
  11152. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11153. shlibpath_var=LD_LIBRARY_PATH
  11154. shlibpath_overrides_runpath=no
  11155. # Some binutils ld are patched to set DT_RUNPATH
  11156. if test ${lt_cv_shlibpath_overrides_runpath+y}
  11157. then :
  11158. printf %s "(cached) " >&6
  11159. else $as_nop
  11160. lt_cv_shlibpath_overrides_runpath=no
  11161. save_LDFLAGS=$LDFLAGS
  11162. save_libdir=$libdir
  11163. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  11164. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  11165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11166. /* end confdefs.h. */
  11167. int
  11168. main (void)
  11169. {
  11170. ;
  11171. return 0;
  11172. }
  11173. _ACEOF
  11174. if ac_fn_c_try_link "$LINENO"
  11175. then :
  11176. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  11177. then :
  11178. lt_cv_shlibpath_overrides_runpath=yes
  11179. fi
  11180. fi
  11181. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11182. conftest$ac_exeext conftest.$ac_ext
  11183. LDFLAGS=$save_LDFLAGS
  11184. libdir=$save_libdir
  11185. fi
  11186. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  11187. # This implies no fast_install, which is unacceptable.
  11188. # Some rework will be needed to allow for fast_install
  11189. # before this can be enabled.
  11190. hardcode_into_libs=yes
  11191. # Ideally, we could use ldconfig to report *all* directores which are
  11192. # searched for libraries, however this is still not possible. Aside from not
  11193. # being certain /sbin/ldconfig is available, command
  11194. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  11195. # even though it is searched at run-time. Try to do the best guess by
  11196. # appending ld.so.conf contents (and includes) to the search path.
  11197. if test -f /etc/ld.so.conf; then
  11198. 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' ' '`
  11199. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11200. fi
  11201. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11202. # powerpc, because MkLinux only supported shared libraries with the
  11203. # GNU dynamic linker. Since this was broken with cross compilers,
  11204. # most powerpc-linux boxes support dynamic linking these days and
  11205. # people can always --disable-shared, the test was removed, and we
  11206. # assume the GNU/Linux dynamic linker is in use.
  11207. dynamic_linker='GNU/Linux ld.so'
  11208. ;;
  11209. netbsdelf*-gnu)
  11210. version_type=linux
  11211. need_lib_prefix=no
  11212. need_version=no
  11213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11214. soname_spec='${libname}${release}${shared_ext}$major'
  11215. shlibpath_var=LD_LIBRARY_PATH
  11216. shlibpath_overrides_runpath=no
  11217. hardcode_into_libs=yes
  11218. dynamic_linker='NetBSD ld.elf_so'
  11219. ;;
  11220. netbsd*)
  11221. version_type=sunos
  11222. need_lib_prefix=no
  11223. need_version=no
  11224. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11225. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11226. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11227. dynamic_linker='NetBSD (a.out) ld.so'
  11228. else
  11229. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11230. soname_spec='$libname$release$shared_ext$major'
  11231. dynamic_linker='NetBSD ld.elf_so'
  11232. fi
  11233. shlibpath_var=LD_LIBRARY_PATH
  11234. shlibpath_overrides_runpath=yes
  11235. hardcode_into_libs=yes
  11236. ;;
  11237. newsos6)
  11238. version_type=linux # correct to gnu/linux during the next big refactor
  11239. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11240. shlibpath_var=LD_LIBRARY_PATH
  11241. shlibpath_overrides_runpath=yes
  11242. ;;
  11243. *nto* | *qnx*)
  11244. version_type=qnx
  11245. need_lib_prefix=no
  11246. need_version=no
  11247. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11248. soname_spec='$libname$release$shared_ext$major'
  11249. shlibpath_var=LD_LIBRARY_PATH
  11250. shlibpath_overrides_runpath=no
  11251. hardcode_into_libs=yes
  11252. dynamic_linker='ldqnx.so'
  11253. ;;
  11254. openbsd* | bitrig*)
  11255. version_type=sunos
  11256. sys_lib_dlsearch_path_spec=/usr/lib
  11257. need_lib_prefix=no
  11258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11259. need_version=no
  11260. else
  11261. need_version=yes
  11262. fi
  11263. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11264. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11265. shlibpath_var=LD_LIBRARY_PATH
  11266. shlibpath_overrides_runpath=yes
  11267. ;;
  11268. os2*)
  11269. libname_spec='$name'
  11270. version_type=windows
  11271. shrext_cmds=.dll
  11272. need_version=no
  11273. need_lib_prefix=no
  11274. # OS/2 can only load a DLL with a base name of 8 characters or less.
  11275. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  11276. v=$($ECHO $release$versuffix | tr -d .-);
  11277. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  11278. $ECHO $n$v`$shared_ext'
  11279. library_names_spec='${libname}_dll.$libext'
  11280. dynamic_linker='OS/2 ld.exe'
  11281. shlibpath_var=BEGINLIBPATH
  11282. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11283. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11284. postinstall_cmds='base_file=`basename \$file`~
  11285. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  11286. dldir=$destdir/`dirname \$dlpath`~
  11287. test -d \$dldir || mkdir -p \$dldir~
  11288. $install_prog $dir/$dlname \$dldir/$dlname~
  11289. chmod a+x \$dldir/$dlname~
  11290. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11291. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11292. fi'
  11293. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  11294. dlpath=$dir/\$dldll~
  11295. $RM \$dlpath'
  11296. ;;
  11297. osf3* | osf4* | osf5*)
  11298. version_type=osf
  11299. need_lib_prefix=no
  11300. need_version=no
  11301. soname_spec='$libname$release$shared_ext$major'
  11302. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11303. shlibpath_var=LD_LIBRARY_PATH
  11304. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  11305. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11306. ;;
  11307. rdos*)
  11308. dynamic_linker=no
  11309. ;;
  11310. solaris*)
  11311. version_type=linux # correct to gnu/linux during the next big refactor
  11312. need_lib_prefix=no
  11313. need_version=no
  11314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11315. soname_spec='$libname$release$shared_ext$major'
  11316. shlibpath_var=LD_LIBRARY_PATH
  11317. shlibpath_overrides_runpath=yes
  11318. hardcode_into_libs=yes
  11319. # ldd complains unless libraries are executable
  11320. postinstall_cmds='chmod +x $lib'
  11321. ;;
  11322. sunos4*)
  11323. version_type=sunos
  11324. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  11325. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  11326. shlibpath_var=LD_LIBRARY_PATH
  11327. shlibpath_overrides_runpath=yes
  11328. if test yes = "$with_gnu_ld"; then
  11329. need_lib_prefix=no
  11330. fi
  11331. need_version=yes
  11332. ;;
  11333. sysv4 | sysv4.3*)
  11334. version_type=linux # correct to gnu/linux during the next big refactor
  11335. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11336. soname_spec='$libname$release$shared_ext$major'
  11337. shlibpath_var=LD_LIBRARY_PATH
  11338. case $host_vendor in
  11339. sni)
  11340. shlibpath_overrides_runpath=no
  11341. need_lib_prefix=no
  11342. runpath_var=LD_RUN_PATH
  11343. ;;
  11344. siemens)
  11345. need_lib_prefix=no
  11346. ;;
  11347. motorola)
  11348. need_lib_prefix=no
  11349. need_version=no
  11350. shlibpath_overrides_runpath=no
  11351. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  11352. ;;
  11353. esac
  11354. ;;
  11355. sysv4*MP*)
  11356. if test -d /usr/nec; then
  11357. version_type=linux # correct to gnu/linux during the next big refactor
  11358. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  11359. soname_spec='$libname$shared_ext.$major'
  11360. shlibpath_var=LD_LIBRARY_PATH
  11361. fi
  11362. ;;
  11363. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  11364. version_type=sco
  11365. need_lib_prefix=no
  11366. need_version=no
  11367. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  11368. soname_spec='$libname$release$shared_ext$major'
  11369. shlibpath_var=LD_LIBRARY_PATH
  11370. shlibpath_overrides_runpath=yes
  11371. hardcode_into_libs=yes
  11372. if test yes = "$with_gnu_ld"; then
  11373. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  11374. else
  11375. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  11376. case $host_os in
  11377. sco3.2v5*)
  11378. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  11379. ;;
  11380. esac
  11381. fi
  11382. sys_lib_dlsearch_path_spec='/usr/lib'
  11383. ;;
  11384. tpf*)
  11385. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  11386. version_type=linux # correct to gnu/linux during the next big refactor
  11387. need_lib_prefix=no
  11388. need_version=no
  11389. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11390. shlibpath_var=LD_LIBRARY_PATH
  11391. shlibpath_overrides_runpath=no
  11392. hardcode_into_libs=yes
  11393. ;;
  11394. uts4*)
  11395. version_type=linux # correct to gnu/linux during the next big refactor
  11396. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  11397. soname_spec='$libname$release$shared_ext$major'
  11398. shlibpath_var=LD_LIBRARY_PATH
  11399. ;;
  11400. *)
  11401. dynamic_linker=no
  11402. ;;
  11403. esac
  11404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  11405. printf "%s\n" "$dynamic_linker" >&6; }
  11406. test no = "$dynamic_linker" && can_build_shared=no
  11407. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  11408. if test yes = "$GCC"; then
  11409. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  11410. fi
  11411. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  11412. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  11413. fi
  11414. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  11415. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  11416. fi
  11417. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  11418. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  11419. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  11420. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  11421. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  11422. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  11423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  11424. printf %s "checking how to hardcode library paths into programs... " >&6; }
  11425. hardcode_action=
  11426. if test -n "$hardcode_libdir_flag_spec" ||
  11427. test -n "$runpath_var" ||
  11428. test yes = "$hardcode_automatic"; then
  11429. # We can hardcode non-existent directories.
  11430. if test no != "$hardcode_direct" &&
  11431. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  11432. # have to relink, otherwise we might link with an installed library
  11433. # when we should be linking with a yet-to-be-installed one
  11434. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  11435. test no != "$hardcode_minus_L"; then
  11436. # Linking always hardcodes the temporary library directory.
  11437. hardcode_action=relink
  11438. else
  11439. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  11440. hardcode_action=immediate
  11441. fi
  11442. else
  11443. # We cannot hardcode anything, or else we can only hardcode existing
  11444. # directories.
  11445. hardcode_action=unsupported
  11446. fi
  11447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  11448. printf "%s\n" "$hardcode_action" >&6; }
  11449. if test relink = "$hardcode_action" ||
  11450. test yes = "$inherit_rpath"; then
  11451. # Fast installation is not supported
  11452. enable_fast_install=no
  11453. elif test yes = "$shlibpath_overrides_runpath" ||
  11454. test no = "$enable_shared"; then
  11455. # Fast installation is not necessary
  11456. enable_fast_install=needless
  11457. fi
  11458. if test yes != "$enable_dlopen"; then
  11459. enable_dlopen=unknown
  11460. enable_dlopen_self=unknown
  11461. enable_dlopen_self_static=unknown
  11462. else
  11463. lt_cv_dlopen=no
  11464. lt_cv_dlopen_libs=
  11465. case $host_os in
  11466. beos*)
  11467. lt_cv_dlopen=load_add_on
  11468. lt_cv_dlopen_libs=
  11469. lt_cv_dlopen_self=yes
  11470. ;;
  11471. mingw* | pw32* | cegcc*)
  11472. lt_cv_dlopen=LoadLibrary
  11473. lt_cv_dlopen_libs=
  11474. ;;
  11475. cygwin*)
  11476. lt_cv_dlopen=dlopen
  11477. lt_cv_dlopen_libs=
  11478. ;;
  11479. darwin*)
  11480. # if libdl is installed we need to link against it
  11481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11482. printf %s "checking for dlopen in -ldl... " >&6; }
  11483. if test ${ac_cv_lib_dl_dlopen+y}
  11484. then :
  11485. printf %s "(cached) " >&6
  11486. else $as_nop
  11487. ac_check_lib_save_LIBS=$LIBS
  11488. LIBS="-ldl $LIBS"
  11489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11490. /* end confdefs.h. */
  11491. /* Override any GCC internal prototype to avoid an error.
  11492. Use char because int might match the return type of a GCC
  11493. builtin and then its argument prototype would still apply. */
  11494. char dlopen ();
  11495. int
  11496. main (void)
  11497. {
  11498. return dlopen ();
  11499. ;
  11500. return 0;
  11501. }
  11502. _ACEOF
  11503. if ac_fn_c_try_link "$LINENO"
  11504. then :
  11505. ac_cv_lib_dl_dlopen=yes
  11506. else $as_nop
  11507. ac_cv_lib_dl_dlopen=no
  11508. fi
  11509. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11510. conftest$ac_exeext conftest.$ac_ext
  11511. LIBS=$ac_check_lib_save_LIBS
  11512. fi
  11513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11514. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11515. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11516. then :
  11517. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11518. else $as_nop
  11519. lt_cv_dlopen=dyld
  11520. lt_cv_dlopen_libs=
  11521. lt_cv_dlopen_self=yes
  11522. fi
  11523. ;;
  11524. tpf*)
  11525. # Don't try to run any link tests for TPF. We know it's impossible
  11526. # because TPF is a cross-compiler, and we know how we open DSOs.
  11527. lt_cv_dlopen=dlopen
  11528. lt_cv_dlopen_libs=
  11529. lt_cv_dlopen_self=no
  11530. ;;
  11531. *)
  11532. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  11533. if test "x$ac_cv_func_shl_load" = xyes
  11534. then :
  11535. lt_cv_dlopen=shl_load
  11536. else $as_nop
  11537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  11538. printf %s "checking for shl_load in -ldld... " >&6; }
  11539. if test ${ac_cv_lib_dld_shl_load+y}
  11540. then :
  11541. printf %s "(cached) " >&6
  11542. else $as_nop
  11543. ac_check_lib_save_LIBS=$LIBS
  11544. LIBS="-ldld $LIBS"
  11545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11546. /* end confdefs.h. */
  11547. /* Override any GCC internal prototype to avoid an error.
  11548. Use char because int might match the return type of a GCC
  11549. builtin and then its argument prototype would still apply. */
  11550. char shl_load ();
  11551. int
  11552. main (void)
  11553. {
  11554. return shl_load ();
  11555. ;
  11556. return 0;
  11557. }
  11558. _ACEOF
  11559. if ac_fn_c_try_link "$LINENO"
  11560. then :
  11561. ac_cv_lib_dld_shl_load=yes
  11562. else $as_nop
  11563. ac_cv_lib_dld_shl_load=no
  11564. fi
  11565. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11566. conftest$ac_exeext conftest.$ac_ext
  11567. LIBS=$ac_check_lib_save_LIBS
  11568. fi
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  11570. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  11571. if test "x$ac_cv_lib_dld_shl_load" = xyes
  11572. then :
  11573. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  11574. else $as_nop
  11575. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  11576. if test "x$ac_cv_func_dlopen" = xyes
  11577. then :
  11578. lt_cv_dlopen=dlopen
  11579. else $as_nop
  11580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  11581. printf %s "checking for dlopen in -ldl... " >&6; }
  11582. if test ${ac_cv_lib_dl_dlopen+y}
  11583. then :
  11584. printf %s "(cached) " >&6
  11585. else $as_nop
  11586. ac_check_lib_save_LIBS=$LIBS
  11587. LIBS="-ldl $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. char dlopen ();
  11594. int
  11595. main (void)
  11596. {
  11597. return dlopen ();
  11598. ;
  11599. return 0;
  11600. }
  11601. _ACEOF
  11602. if ac_fn_c_try_link "$LINENO"
  11603. then :
  11604. ac_cv_lib_dl_dlopen=yes
  11605. else $as_nop
  11606. ac_cv_lib_dl_dlopen=no
  11607. fi
  11608. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11609. conftest$ac_exeext conftest.$ac_ext
  11610. LIBS=$ac_check_lib_save_LIBS
  11611. fi
  11612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11613. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  11614. if test "x$ac_cv_lib_dl_dlopen" = xyes
  11615. then :
  11616. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  11617. else $as_nop
  11618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11619. printf %s "checking for dlopen in -lsvld... " >&6; }
  11620. if test ${ac_cv_lib_svld_dlopen+y}
  11621. then :
  11622. printf %s "(cached) " >&6
  11623. else $as_nop
  11624. ac_check_lib_save_LIBS=$LIBS
  11625. LIBS="-lsvld $LIBS"
  11626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11627. /* end confdefs.h. */
  11628. /* Override any GCC internal prototype to avoid an error.
  11629. Use char because int might match the return type of a GCC
  11630. builtin and then its argument prototype would still apply. */
  11631. char dlopen ();
  11632. int
  11633. main (void)
  11634. {
  11635. return dlopen ();
  11636. ;
  11637. return 0;
  11638. }
  11639. _ACEOF
  11640. if ac_fn_c_try_link "$LINENO"
  11641. then :
  11642. ac_cv_lib_svld_dlopen=yes
  11643. else $as_nop
  11644. ac_cv_lib_svld_dlopen=no
  11645. fi
  11646. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11647. conftest$ac_exeext conftest.$ac_ext
  11648. LIBS=$ac_check_lib_save_LIBS
  11649. fi
  11650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11651. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  11652. if test "x$ac_cv_lib_svld_dlopen" = xyes
  11653. then :
  11654. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  11655. else $as_nop
  11656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11657. printf %s "checking for dld_link in -ldld... " >&6; }
  11658. if test ${ac_cv_lib_dld_dld_link+y}
  11659. then :
  11660. printf %s "(cached) " >&6
  11661. else $as_nop
  11662. ac_check_lib_save_LIBS=$LIBS
  11663. LIBS="-ldld $LIBS"
  11664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11665. /* end confdefs.h. */
  11666. /* Override any GCC internal prototype to avoid an error.
  11667. Use char because int might match the return type of a GCC
  11668. builtin and then its argument prototype would still apply. */
  11669. char dld_link ();
  11670. int
  11671. main (void)
  11672. {
  11673. return dld_link ();
  11674. ;
  11675. return 0;
  11676. }
  11677. _ACEOF
  11678. if ac_fn_c_try_link "$LINENO"
  11679. then :
  11680. ac_cv_lib_dld_dld_link=yes
  11681. else $as_nop
  11682. ac_cv_lib_dld_dld_link=no
  11683. fi
  11684. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  11685. conftest$ac_exeext conftest.$ac_ext
  11686. LIBS=$ac_check_lib_save_LIBS
  11687. fi
  11688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11689. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  11690. if test "x$ac_cv_lib_dld_dld_link" = xyes
  11691. then :
  11692. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  11693. fi
  11694. fi
  11695. fi
  11696. fi
  11697. fi
  11698. fi
  11699. ;;
  11700. esac
  11701. if test no = "$lt_cv_dlopen"; then
  11702. enable_dlopen=no
  11703. else
  11704. enable_dlopen=yes
  11705. fi
  11706. case $lt_cv_dlopen in
  11707. dlopen)
  11708. save_CPPFLAGS=$CPPFLAGS
  11709. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11710. save_LDFLAGS=$LDFLAGS
  11711. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11712. save_LIBS=$LIBS
  11713. LIBS="$lt_cv_dlopen_libs $LIBS"
  11714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11715. printf %s "checking whether a program can dlopen itself... " >&6; }
  11716. if test ${lt_cv_dlopen_self+y}
  11717. then :
  11718. printf %s "(cached) " >&6
  11719. else $as_nop
  11720. if test yes = "$cross_compiling"; then :
  11721. lt_cv_dlopen_self=cross
  11722. else
  11723. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11724. lt_status=$lt_dlunknown
  11725. cat > conftest.$ac_ext <<_LT_EOF
  11726. #line $LINENO "configure"
  11727. #include "confdefs.h"
  11728. #if HAVE_DLFCN_H
  11729. #include <dlfcn.h>
  11730. #endif
  11731. #include <stdio.h>
  11732. #ifdef RTLD_GLOBAL
  11733. # define LT_DLGLOBAL RTLD_GLOBAL
  11734. #else
  11735. # ifdef DL_GLOBAL
  11736. # define LT_DLGLOBAL DL_GLOBAL
  11737. # else
  11738. # define LT_DLGLOBAL 0
  11739. # endif
  11740. #endif
  11741. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11742. find out it does not work in some platform. */
  11743. #ifndef LT_DLLAZY_OR_NOW
  11744. # ifdef RTLD_LAZY
  11745. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11746. # else
  11747. # ifdef DL_LAZY
  11748. # define LT_DLLAZY_OR_NOW DL_LAZY
  11749. # else
  11750. # ifdef RTLD_NOW
  11751. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11752. # else
  11753. # ifdef DL_NOW
  11754. # define LT_DLLAZY_OR_NOW DL_NOW
  11755. # else
  11756. # define LT_DLLAZY_OR_NOW 0
  11757. # endif
  11758. # endif
  11759. # endif
  11760. # endif
  11761. #endif
  11762. /* When -fvisibility=hidden is used, assume the code has been annotated
  11763. correspondingly for the symbols needed. */
  11764. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11765. int fnord () __attribute__((visibility("default")));
  11766. #endif
  11767. int fnord () { return 42; }
  11768. int main ()
  11769. {
  11770. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11771. int status = $lt_dlunknown;
  11772. if (self)
  11773. {
  11774. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11775. else
  11776. {
  11777. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11778. else puts (dlerror ());
  11779. }
  11780. /* dlclose (self); */
  11781. }
  11782. else
  11783. puts (dlerror ());
  11784. return status;
  11785. }
  11786. _LT_EOF
  11787. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11788. (eval $ac_link) 2>&5
  11789. ac_status=$?
  11790. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11791. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11792. (./conftest; exit; ) >&5 2>/dev/null
  11793. lt_status=$?
  11794. case x$lt_status in
  11795. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11796. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11797. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11798. esac
  11799. else :
  11800. # compilation failed
  11801. lt_cv_dlopen_self=no
  11802. fi
  11803. fi
  11804. rm -fr conftest*
  11805. fi
  11806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11807. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  11808. if test yes = "$lt_cv_dlopen_self"; then
  11809. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11811. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  11812. if test ${lt_cv_dlopen_self_static+y}
  11813. then :
  11814. printf %s "(cached) " >&6
  11815. else $as_nop
  11816. if test yes = "$cross_compiling"; then :
  11817. lt_cv_dlopen_self_static=cross
  11818. else
  11819. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11820. lt_status=$lt_dlunknown
  11821. cat > conftest.$ac_ext <<_LT_EOF
  11822. #line $LINENO "configure"
  11823. #include "confdefs.h"
  11824. #if HAVE_DLFCN_H
  11825. #include <dlfcn.h>
  11826. #endif
  11827. #include <stdio.h>
  11828. #ifdef RTLD_GLOBAL
  11829. # define LT_DLGLOBAL RTLD_GLOBAL
  11830. #else
  11831. # ifdef DL_GLOBAL
  11832. # define LT_DLGLOBAL DL_GLOBAL
  11833. # else
  11834. # define LT_DLGLOBAL 0
  11835. # endif
  11836. #endif
  11837. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11838. find out it does not work in some platform. */
  11839. #ifndef LT_DLLAZY_OR_NOW
  11840. # ifdef RTLD_LAZY
  11841. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11842. # else
  11843. # ifdef DL_LAZY
  11844. # define LT_DLLAZY_OR_NOW DL_LAZY
  11845. # else
  11846. # ifdef RTLD_NOW
  11847. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11848. # else
  11849. # ifdef DL_NOW
  11850. # define LT_DLLAZY_OR_NOW DL_NOW
  11851. # else
  11852. # define LT_DLLAZY_OR_NOW 0
  11853. # endif
  11854. # endif
  11855. # endif
  11856. # endif
  11857. #endif
  11858. /* When -fvisibility=hidden is used, assume the code has been annotated
  11859. correspondingly for the symbols needed. */
  11860. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11861. int fnord () __attribute__((visibility("default")));
  11862. #endif
  11863. int fnord () { return 42; }
  11864. int main ()
  11865. {
  11866. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11867. int status = $lt_dlunknown;
  11868. if (self)
  11869. {
  11870. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11871. else
  11872. {
  11873. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11874. else puts (dlerror ());
  11875. }
  11876. /* dlclose (self); */
  11877. }
  11878. else
  11879. puts (dlerror ());
  11880. return status;
  11881. }
  11882. _LT_EOF
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11884. (eval $ac_link) 2>&5
  11885. ac_status=$?
  11886. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11888. (./conftest; exit; ) >&5 2>/dev/null
  11889. lt_status=$?
  11890. case x$lt_status in
  11891. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11892. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11893. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11894. esac
  11895. else :
  11896. # compilation failed
  11897. lt_cv_dlopen_self_static=no
  11898. fi
  11899. fi
  11900. rm -fr conftest*
  11901. fi
  11902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11903. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11904. fi
  11905. CPPFLAGS=$save_CPPFLAGS
  11906. LDFLAGS=$save_LDFLAGS
  11907. LIBS=$save_LIBS
  11908. ;;
  11909. esac
  11910. case $lt_cv_dlopen_self in
  11911. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11912. *) enable_dlopen_self=unknown ;;
  11913. esac
  11914. case $lt_cv_dlopen_self_static in
  11915. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11916. *) enable_dlopen_self_static=unknown ;;
  11917. esac
  11918. fi
  11919. striplib=
  11920. old_striplib=
  11921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11922. printf %s "checking whether stripping libraries is possible... " >&6; }
  11923. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11924. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11925. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11926. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11927. printf "%s\n" "yes" >&6; }
  11928. else
  11929. # FIXME - insert some real tests, host_os isn't really good enough
  11930. case $host_os in
  11931. darwin*)
  11932. if test -n "$STRIP"; then
  11933. striplib="$STRIP -x"
  11934. old_striplib="$STRIP -S"
  11935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11936. printf "%s\n" "yes" >&6; }
  11937. else
  11938. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11939. printf "%s\n" "no" >&6; }
  11940. fi
  11941. ;;
  11942. *)
  11943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11944. printf "%s\n" "no" >&6; }
  11945. ;;
  11946. esac
  11947. fi
  11948. # Report what library types will actually be built
  11949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11950. printf %s "checking if libtool supports shared libraries... " >&6; }
  11951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11952. printf "%s\n" "$can_build_shared" >&6; }
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11954. printf %s "checking whether to build shared libraries... " >&6; }
  11955. test no = "$can_build_shared" && enable_shared=no
  11956. # On AIX, shared libraries and static libraries use the same namespace, and
  11957. # are all built from PIC.
  11958. case $host_os in
  11959. aix3*)
  11960. test yes = "$enable_shared" && enable_static=no
  11961. if test -n "$RANLIB"; then
  11962. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11963. postinstall_cmds='$RANLIB $lib'
  11964. fi
  11965. ;;
  11966. aix[4-9]*)
  11967. if test ia64 != "$host_cpu"; then
  11968. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11969. yes,aix,yes) ;; # shared object as lib.so file only
  11970. yes,svr4,*) ;; # shared object as lib.so archive member only
  11971. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11972. esac
  11973. fi
  11974. ;;
  11975. esac
  11976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11977. printf "%s\n" "$enable_shared" >&6; }
  11978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11979. printf %s "checking whether to build static libraries... " >&6; }
  11980. # Make sure either enable_shared or enable_static is yes.
  11981. test yes = "$enable_shared" || enable_static=yes
  11982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11983. printf "%s\n" "$enable_static" >&6; }
  11984. fi
  11985. ac_ext=c
  11986. ac_cpp='$CPP $CPPFLAGS'
  11987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11990. CC=$lt_save_CC
  11991. ac_config_commands="$ac_config_commands libtool"
  11992. # Only expand once:
  11993. if test -n "$ac_tool_prefix"; then
  11994. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  11995. set dummy ${ac_tool_prefix}strip; ac_word=$2
  11996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11997. printf %s "checking for $ac_word... " >&6; }
  11998. if test ${ac_cv_prog_STRIP+y}
  11999. then :
  12000. printf %s "(cached) " >&6
  12001. else $as_nop
  12002. if test -n "$STRIP"; then
  12003. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  12004. else
  12005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12006. for as_dir in $PATH
  12007. do
  12008. IFS=$as_save_IFS
  12009. case $as_dir in #(((
  12010. '') as_dir=./ ;;
  12011. */) ;;
  12012. *) as_dir=$as_dir/ ;;
  12013. esac
  12014. for ac_exec_ext in '' $ac_executable_extensions; do
  12015. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12016. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  12017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12018. break 2
  12019. fi
  12020. done
  12021. done
  12022. IFS=$as_save_IFS
  12023. fi
  12024. fi
  12025. STRIP=$ac_cv_prog_STRIP
  12026. if test -n "$STRIP"; then
  12027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  12028. printf "%s\n" "$STRIP" >&6; }
  12029. else
  12030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12031. printf "%s\n" "no" >&6; }
  12032. fi
  12033. fi
  12034. if test -z "$ac_cv_prog_STRIP"; then
  12035. ac_ct_STRIP=$STRIP
  12036. # Extract the first word of "strip", so it can be a program name with args.
  12037. set dummy strip; ac_word=$2
  12038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12039. printf %s "checking for $ac_word... " >&6; }
  12040. if test ${ac_cv_prog_ac_ct_STRIP+y}
  12041. then :
  12042. printf %s "(cached) " >&6
  12043. else $as_nop
  12044. if test -n "$ac_ct_STRIP"; then
  12045. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  12046. else
  12047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12048. for as_dir in $PATH
  12049. do
  12050. IFS=$as_save_IFS
  12051. case $as_dir in #(((
  12052. '') as_dir=./ ;;
  12053. */) ;;
  12054. *) as_dir=$as_dir/ ;;
  12055. esac
  12056. for ac_exec_ext in '' $ac_executable_extensions; do
  12057. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12058. ac_cv_prog_ac_ct_STRIP="strip"
  12059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12060. break 2
  12061. fi
  12062. done
  12063. done
  12064. IFS=$as_save_IFS
  12065. fi
  12066. fi
  12067. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  12068. if test -n "$ac_ct_STRIP"; then
  12069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  12070. printf "%s\n" "$ac_ct_STRIP" >&6; }
  12071. else
  12072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12073. printf "%s\n" "no" >&6; }
  12074. fi
  12075. if test "x$ac_ct_STRIP" = x; then
  12076. STRIP=""
  12077. else
  12078. case $cross_compiling:$ac_tool_warned in
  12079. yes:)
  12080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12081. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12082. ac_tool_warned=yes ;;
  12083. esac
  12084. STRIP=$ac_ct_STRIP
  12085. fi
  12086. else
  12087. STRIP="$ac_cv_prog_STRIP"
  12088. fi
  12089. #
  12090. # Options for building bsdtar.
  12091. #
  12092. # Default is to build bsdtar, but allow people to override that.
  12093. #
  12094. # Check whether --enable-bsdtar was given.
  12095. if test ${enable_bsdtar+y}
  12096. then :
  12097. enableval=$enable_bsdtar;
  12098. else $as_nop
  12099. enable_bsdtar=yes
  12100. fi
  12101. case "$enable_bsdtar" in
  12102. yes)
  12103. if test "$enable_static" = "no"; then
  12104. static_bsdtar=no
  12105. else
  12106. static_bsdtar=yes
  12107. fi
  12108. build_bsdtar=yes
  12109. ;;
  12110. dynamic|shared)
  12111. if test "$enable_shared" = "no"; then
  12112. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12113. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12114. as_fn_error $? "Shared linking of bsdtar requires shared libarchive
  12115. See \`config.log' for more details" "$LINENO" 5; }
  12116. fi
  12117. build_bsdtar=yes
  12118. static_bsdtar=no
  12119. ;;
  12120. static)
  12121. build_bsdtar=yes
  12122. static_bsdtar=yes
  12123. ;;
  12124. no)
  12125. build_bsdtar=no
  12126. static_bsdtar=no
  12127. ;;
  12128. *)
  12129. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12130. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12131. as_fn_error $? "Unsupported value for --enable-bsdtar
  12132. See \`config.log' for more details" "$LINENO" 5; }
  12133. ;;
  12134. esac
  12135. if test "$build_bsdtar" = yes ; then
  12136. BUILD_BSDTAR_TRUE=
  12137. BUILD_BSDTAR_FALSE='#'
  12138. else
  12139. BUILD_BSDTAR_TRUE='#'
  12140. BUILD_BSDTAR_FALSE=
  12141. fi
  12142. if test "$static_bsdtar" = yes ; then
  12143. STATIC_BSDTAR_TRUE=
  12144. STATIC_BSDTAR_FALSE='#'
  12145. else
  12146. STATIC_BSDTAR_TRUE='#'
  12147. STATIC_BSDTAR_FALSE=
  12148. fi
  12149. #
  12150. # Options for building bsdcat.
  12151. #
  12152. # Default is to build bsdcat, but allow people to override that.
  12153. #
  12154. # Check whether --enable-bsdcat was given.
  12155. if test ${enable_bsdcat+y}
  12156. then :
  12157. enableval=$enable_bsdcat;
  12158. else $as_nop
  12159. enable_bsdcat=yes
  12160. fi
  12161. case "$enable_bsdcat" in
  12162. yes)
  12163. if test "$enable_static" = "no"; then
  12164. static_bsdcat=no
  12165. else
  12166. static_bsdcat=yes
  12167. fi
  12168. build_bsdcat=yes
  12169. ;;
  12170. dynamic|shared)
  12171. if test "$enable_shared" = "no"; then
  12172. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12173. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12174. as_fn_error $? "Shared linking of bsdcat requires shared libarchive
  12175. See \`config.log' for more details" "$LINENO" 5; }
  12176. fi
  12177. build_bsdcat=yes
  12178. static_bsdcat=no
  12179. ;;
  12180. static)
  12181. build_bsdcat=yes
  12182. static_bsdcat=yes
  12183. ;;
  12184. no)
  12185. build_bsdcat=no
  12186. static_bsdcat=no
  12187. ;;
  12188. *)
  12189. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12190. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12191. as_fn_error $? "Unsupported value for --enable-bsdcat
  12192. See \`config.log' for more details" "$LINENO" 5; }
  12193. ;;
  12194. esac
  12195. if test "$build_bsdcat" = yes ; then
  12196. BUILD_BSDCAT_TRUE=
  12197. BUILD_BSDCAT_FALSE='#'
  12198. else
  12199. BUILD_BSDCAT_TRUE='#'
  12200. BUILD_BSDCAT_FALSE=
  12201. fi
  12202. if test "$static_bsdcat" = yes ; then
  12203. STATIC_BSDCAT_TRUE=
  12204. STATIC_BSDCAT_FALSE='#'
  12205. else
  12206. STATIC_BSDCAT_TRUE='#'
  12207. STATIC_BSDCAT_FALSE=
  12208. fi
  12209. #
  12210. # Options for building bsdcpio.
  12211. #
  12212. # Default is not to build bsdcpio, but that can be overridden.
  12213. #
  12214. # Check whether --enable-bsdcpio was given.
  12215. if test ${enable_bsdcpio+y}
  12216. then :
  12217. enableval=$enable_bsdcpio;
  12218. else $as_nop
  12219. enable_bsdcpio=yes
  12220. fi
  12221. case "$enable_bsdcpio" in
  12222. yes)
  12223. if test "$enable_static" = "no"; then
  12224. static_bsdcpio=no
  12225. else
  12226. static_bsdcpio=yes
  12227. fi
  12228. build_bsdcpio=yes
  12229. ;;
  12230. dynamic|shared)
  12231. if test "$enabled_shared" = "no"; then
  12232. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12233. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12234. as_fn_error $? "Shared linking of bsdcpio requires shared libarchive
  12235. See \`config.log' for more details" "$LINENO" 5; }
  12236. fi
  12237. build_bsdcpio=yes
  12238. ;;
  12239. static)
  12240. build_bsdcpio=yes
  12241. static_bsdcpio=yes
  12242. ;;
  12243. no)
  12244. build_bsdcpio=no
  12245. static_bsdcpio=no
  12246. ;;
  12247. *)
  12248. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12249. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12250. as_fn_error $? "Unsupported value for --enable-bsdcpio
  12251. See \`config.log' for more details" "$LINENO" 5; }
  12252. ;;
  12253. esac
  12254. if test "$build_bsdcpio" = yes ; then
  12255. BUILD_BSDCPIO_TRUE=
  12256. BUILD_BSDCPIO_FALSE='#'
  12257. else
  12258. BUILD_BSDCPIO_TRUE='#'
  12259. BUILD_BSDCPIO_FALSE=
  12260. fi
  12261. if test "$static_bsdcpio" = yes ; then
  12262. STATIC_BSDCPIO_TRUE=
  12263. STATIC_BSDCPIO_FALSE='#'
  12264. else
  12265. STATIC_BSDCPIO_TRUE='#'
  12266. STATIC_BSDCPIO_FALSE=
  12267. fi
  12268. # Set up defines needed before including any headers
  12269. case $host in
  12270. *mingw* | *cygwin* | *msys* )
  12271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12272. /* end confdefs.h. */
  12273. #ifdef _WIN32_WINNT
  12274. # error _WIN32_WINNT already defined
  12275. #endif
  12276. int
  12277. main (void)
  12278. {
  12279. ;
  12280. ;
  12281. return 0;
  12282. }
  12283. _ACEOF
  12284. if ac_fn_c_try_cpp "$LINENO"
  12285. then :
  12286. printf "%s\n" "#define _WIN32_WINNT 0x0502" >>confdefs.h
  12287. printf "%s\n" "#define NTDDI_VERSION 0x05020000" >>confdefs.h
  12288. fi
  12289. rm -f conftest.err conftest.i conftest.$ac_ext
  12290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12291. /* end confdefs.h. */
  12292. #ifdef WINVER
  12293. # error WINVER already defined
  12294. #endif
  12295. int
  12296. main (void)
  12297. {
  12298. ;
  12299. ;
  12300. return 0;
  12301. }
  12302. _ACEOF
  12303. if ac_fn_c_try_cpp "$LINENO"
  12304. then :
  12305. printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
  12306. fi
  12307. rm -f conftest.err conftest.i conftest.$ac_ext
  12308. ;;
  12309. esac
  12310. #
  12311. # Options for building bsdunzip.
  12312. #
  12313. # Default is to build bsdunzip, but allow people to override that.
  12314. # Bsdunzip has not yet been ported for Windows
  12315. #
  12316. case "$host_os" in
  12317. *mingw* | *msys*)
  12318. enable_bsdunzip=no
  12319. ;;
  12320. *)
  12321. # Check whether --enable-bsdunzip was given.
  12322. if test ${enable_bsdunzip+y}
  12323. then :
  12324. enableval=$enable_bsdunzip;
  12325. else $as_nop
  12326. enable_bsdunzip=yes
  12327. fi
  12328. ;;
  12329. esac
  12330. case "$enable_bsdunzip" in
  12331. yes)
  12332. if test "$enable_static" = "no"; then
  12333. static_bsdunzip=no
  12334. else
  12335. static_bsdunzip=yes
  12336. fi
  12337. build_bsdunzip=yes
  12338. ;;
  12339. dynamic|shared)
  12340. if test "$enable_shared" = "no"; then
  12341. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12342. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12343. as_fn_error $? "Shared linking of bsdunzip requires shared libarchive
  12344. See \`config.log' for more details" "$LINENO" 5; }
  12345. fi
  12346. build_bsdunzip=yes
  12347. static_bsdunzip=no
  12348. ;;
  12349. static)
  12350. build_bsdunzip=yes
  12351. static_bsdunzip=yes
  12352. ;;
  12353. no)
  12354. build_bsdunzip=no
  12355. static_bsdunzip=no
  12356. ;;
  12357. *)
  12358. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12359. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12360. as_fn_error $? "Unsupported value for --enable-bsdunzip
  12361. See \`config.log' for more details" "$LINENO" 5; }
  12362. ;;
  12363. esac
  12364. if test "$build_bsdunzip" = yes ; then
  12365. BUILD_BSDUNZIP_TRUE=
  12366. BUILD_BSDUNZIP_FALSE='#'
  12367. else
  12368. BUILD_BSDUNZIP_TRUE='#'
  12369. BUILD_BSDUNZIP_FALSE=
  12370. fi
  12371. if test "$static_bsdunzip" = yes ; then
  12372. STATIC_BSDUNZIP_TRUE=
  12373. STATIC_BSDUNZIP_FALSE='#'
  12374. else
  12375. STATIC_BSDUNZIP_TRUE='#'
  12376. STATIC_BSDUNZIP_FALSE=
  12377. fi
  12378. # Checks for header files.
  12379. ac_header_dirent=no
  12380. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  12381. as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  12382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  12383. printf %s "checking for $ac_hdr that defines DIR... " >&6; }
  12384. if eval test \${$as_ac_Header+y}
  12385. then :
  12386. printf %s "(cached) " >&6
  12387. else $as_nop
  12388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12389. /* end confdefs.h. */
  12390. #include <sys/types.h>
  12391. #include <$ac_hdr>
  12392. int
  12393. main (void)
  12394. {
  12395. if ((DIR *) 0)
  12396. return 0;
  12397. ;
  12398. return 0;
  12399. }
  12400. _ACEOF
  12401. if ac_fn_c_try_compile "$LINENO"
  12402. then :
  12403. eval "$as_ac_Header=yes"
  12404. else $as_nop
  12405. eval "$as_ac_Header=no"
  12406. fi
  12407. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12408. fi
  12409. eval ac_res=\$$as_ac_Header
  12410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12411. printf "%s\n" "$ac_res" >&6; }
  12412. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  12413. then :
  12414. cat >>confdefs.h <<_ACEOF
  12415. #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
  12416. _ACEOF
  12417. ac_header_dirent=$ac_hdr; break
  12418. fi
  12419. done
  12420. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  12421. if test $ac_header_dirent = dirent.h; then
  12422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12423. printf %s "checking for library containing opendir... " >&6; }
  12424. if test ${ac_cv_search_opendir+y}
  12425. then :
  12426. printf %s "(cached) " >&6
  12427. else $as_nop
  12428. ac_func_search_save_LIBS=$LIBS
  12429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12430. /* end confdefs.h. */
  12431. /* Override any GCC internal prototype to avoid an error.
  12432. Use char because int might match the return type of a GCC
  12433. builtin and then its argument prototype would still apply. */
  12434. char opendir ();
  12435. int
  12436. main (void)
  12437. {
  12438. return opendir ();
  12439. ;
  12440. return 0;
  12441. }
  12442. _ACEOF
  12443. for ac_lib in '' dir
  12444. do
  12445. if test -z "$ac_lib"; then
  12446. ac_res="none required"
  12447. else
  12448. ac_res=-l$ac_lib
  12449. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12450. fi
  12451. if ac_fn_c_try_link "$LINENO"
  12452. then :
  12453. ac_cv_search_opendir=$ac_res
  12454. fi
  12455. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12456. conftest$ac_exeext
  12457. if test ${ac_cv_search_opendir+y}
  12458. then :
  12459. break
  12460. fi
  12461. done
  12462. if test ${ac_cv_search_opendir+y}
  12463. then :
  12464. else $as_nop
  12465. ac_cv_search_opendir=no
  12466. fi
  12467. rm conftest.$ac_ext
  12468. LIBS=$ac_func_search_save_LIBS
  12469. fi
  12470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12471. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  12472. ac_res=$ac_cv_search_opendir
  12473. if test "$ac_res" != no
  12474. then :
  12475. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12476. fi
  12477. else
  12478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12479. printf %s "checking for library containing opendir... " >&6; }
  12480. if test ${ac_cv_search_opendir+y}
  12481. then :
  12482. printf %s "(cached) " >&6
  12483. else $as_nop
  12484. ac_func_search_save_LIBS=$LIBS
  12485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12486. /* end confdefs.h. */
  12487. /* Override any GCC internal prototype to avoid an error.
  12488. Use char because int might match the return type of a GCC
  12489. builtin and then its argument prototype would still apply. */
  12490. char opendir ();
  12491. int
  12492. main (void)
  12493. {
  12494. return opendir ();
  12495. ;
  12496. return 0;
  12497. }
  12498. _ACEOF
  12499. for ac_lib in '' x
  12500. do
  12501. if test -z "$ac_lib"; then
  12502. ac_res="none required"
  12503. else
  12504. ac_res=-l$ac_lib
  12505. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12506. fi
  12507. if ac_fn_c_try_link "$LINENO"
  12508. then :
  12509. ac_cv_search_opendir=$ac_res
  12510. fi
  12511. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12512. conftest$ac_exeext
  12513. if test ${ac_cv_search_opendir+y}
  12514. then :
  12515. break
  12516. fi
  12517. done
  12518. if test ${ac_cv_search_opendir+y}
  12519. then :
  12520. else $as_nop
  12521. ac_cv_search_opendir=no
  12522. fi
  12523. rm conftest.$ac_ext
  12524. LIBS=$ac_func_search_save_LIBS
  12525. fi
  12526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12527. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  12528. ac_res=$ac_cv_search_opendir
  12529. if test "$ac_res" != no
  12530. then :
  12531. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12532. fi
  12533. fi
  12534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  12535. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  12536. if test ${ac_cv_header_sys_wait_h+y}
  12537. then :
  12538. printf %s "(cached) " >&6
  12539. else $as_nop
  12540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12541. /* end confdefs.h. */
  12542. #include <sys/types.h>
  12543. #include <sys/wait.h>
  12544. #ifndef WEXITSTATUS
  12545. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  12546. #endif
  12547. #ifndef WIFEXITED
  12548. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  12549. #endif
  12550. int
  12551. main (void)
  12552. {
  12553. int s;
  12554. wait (&s);
  12555. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  12556. ;
  12557. return 0;
  12558. }
  12559. _ACEOF
  12560. if ac_fn_c_try_compile "$LINENO"
  12561. then :
  12562. ac_cv_header_sys_wait_h=yes
  12563. else $as_nop
  12564. ac_cv_header_sys_wait_h=no
  12565. fi
  12566. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12567. fi
  12568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  12569. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  12570. if test $ac_cv_header_sys_wait_h = yes; then
  12571. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12572. fi
  12573. ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
  12574. if test "x$ac_cv_header_acl_libacl_h" = xyes
  12575. then :
  12576. printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h
  12577. fi
  12578. ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
  12579. if test "x$ac_cv_header_attr_xattr_h" = xyes
  12580. then :
  12581. printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
  12582. fi
  12583. ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default"
  12584. if test "x$ac_cv_header_copyfile_h" = xyes
  12585. then :
  12586. printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h
  12587. fi
  12588. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  12589. if test "x$ac_cv_header_ctype_h" = xyes
  12590. then :
  12591. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  12592. fi
  12593. ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  12594. if test "x$ac_cv_header_errno_h" = xyes
  12595. then :
  12596. printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
  12597. fi
  12598. ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"
  12599. if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes
  12600. then :
  12601. printf "%s\n" "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h
  12602. fi
  12603. ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  12604. if test "x$ac_cv_header_fcntl_h" = xyes
  12605. then :
  12606. printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
  12607. fi
  12608. ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
  12609. if test "x$ac_cv_header_fnmatch_h" = xyes
  12610. then :
  12611. printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
  12612. fi
  12613. ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  12614. if test "x$ac_cv_header_grp_h" = xyes
  12615. then :
  12616. printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
  12617. fi
  12618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5
  12619. printf %s "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }
  12620. if test ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+y}
  12621. then :
  12622. printf %s "(cached) " >&6
  12623. else $as_nop
  12624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12625. /* end confdefs.h. */
  12626. #include <sys/ioctl.h>
  12627. #include <ext2fs/ext2_fs.h>
  12628. int
  12629. main (void)
  12630. {
  12631. int x = EXT2_IOC_GETFLAGS
  12632. ;
  12633. return 0;
  12634. }
  12635. _ACEOF
  12636. if ac_fn_c_try_compile "$LINENO"
  12637. then :
  12638. ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes
  12639. else $as_nop
  12640. ac_cv_have_decl_EXT2_IOC_GETFLAGS=no
  12641. fi
  12642. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12643. fi
  12644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5
  12645. printf "%s\n" "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }
  12646. if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes
  12647. then :
  12648. printf "%s\n" "#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1" >>confdefs.h
  12649. fi
  12650. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  12651. if test "x$ac_cv_header_inttypes_h" = xyes
  12652. then :
  12653. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  12654. fi
  12655. ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
  12656. if test "x$ac_cv_header_io_h" = xyes
  12657. then :
  12658. printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
  12659. fi
  12660. ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
  12661. if test "x$ac_cv_header_langinfo_h" = xyes
  12662. then :
  12663. printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
  12664. fi
  12665. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  12666. if test "x$ac_cv_header_limits_h" = xyes
  12667. then :
  12668. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  12669. fi
  12670. ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
  12671. if test "x$ac_cv_header_linux_fiemap_h" = xyes
  12672. then :
  12673. printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
  12674. fi
  12675. ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
  12676. if test "x$ac_cv_header_linux_fs_h" = xyes
  12677. then :
  12678. printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
  12679. fi
  12680. ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
  12681. if test "x$ac_cv_header_linux_magic_h" = xyes
  12682. then :
  12683. printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
  12684. fi
  12685. ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
  12686. if test "x$ac_cv_header_linux_types_h" = xyes
  12687. then :
  12688. printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
  12689. fi
  12690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5
  12691. printf %s "checking whether FS_IOC_GETFLAGS is usable... " >&6; }
  12692. if test ${ac_cv_have_decl_FS_IOC_GETFLAGS+y}
  12693. then :
  12694. printf %s "(cached) " >&6
  12695. else $as_nop
  12696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12697. /* end confdefs.h. */
  12698. #include <sys/ioctl.h>
  12699. #include <linux/fs.h>
  12700. int
  12701. main (void)
  12702. {
  12703. int x = FS_IOC_GETFLAGS
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. if ac_fn_c_try_compile "$LINENO"
  12709. then :
  12710. ac_cv_have_decl_FS_IOC_GETFLAGS=yes
  12711. else $as_nop
  12712. ac_cv_have_decl_FS_IOC_GETFLAGS=no
  12713. fi
  12714. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12715. fi
  12716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5
  12717. printf "%s\n" "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }
  12718. if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes
  12719. then :
  12720. printf "%s\n" "#define HAVE_WORKING_FS_IOC_GETFLAGS 1" >>confdefs.h
  12721. fi
  12722. ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  12723. if test "x$ac_cv_header_locale_h" = xyes
  12724. then :
  12725. printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
  12726. fi
  12727. ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
  12728. if test "x$ac_cv_header_membership_h" = xyes
  12729. then :
  12730. printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
  12731. fi
  12732. ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
  12733. if test "x$ac_cv_header_paths_h" = xyes
  12734. then :
  12735. printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
  12736. fi
  12737. ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  12738. if test "x$ac_cv_header_poll_h" = xyes
  12739. then :
  12740. printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
  12741. fi
  12742. ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  12743. if test "x$ac_cv_header_pthread_h" = xyes
  12744. then :
  12745. printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
  12746. fi
  12747. ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  12748. if test "x$ac_cv_header_pwd_h" = xyes
  12749. then :
  12750. printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
  12751. fi
  12752. ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"
  12753. if test "x$ac_cv_header_readpassphrase_h" = xyes
  12754. then :
  12755. printf "%s\n" "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h
  12756. fi
  12757. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  12758. if test "x$ac_cv_header_signal_h" = xyes
  12759. then :
  12760. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  12761. fi
  12762. ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
  12763. if test "x$ac_cv_header_spawn_h" = xyes
  12764. then :
  12765. printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
  12766. fi
  12767. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  12768. if test "x$ac_cv_header_stdarg_h" = xyes
  12769. then :
  12770. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  12771. fi
  12772. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  12773. if test "x$ac_cv_header_stdint_h" = xyes
  12774. then :
  12775. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  12776. fi
  12777. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  12778. if test "x$ac_cv_header_stdlib_h" = xyes
  12779. then :
  12780. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  12781. fi
  12782. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  12783. if test "x$ac_cv_header_string_h" = xyes
  12784. then :
  12785. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  12786. fi
  12787. ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
  12788. if test "x$ac_cv_header_sys_acl_h" = xyes
  12789. then :
  12790. printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
  12791. fi
  12792. ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
  12793. if test "x$ac_cv_header_sys_cdefs_h" = xyes
  12794. then :
  12795. printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
  12796. fi
  12797. ac_fn_c_check_header_compile "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
  12798. if test "x$ac_cv_header_sys_ea_h" = xyes
  12799. then :
  12800. printf "%s\n" "#define HAVE_SYS_EA_H 1" >>confdefs.h
  12801. fi
  12802. ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
  12803. if test "x$ac_cv_header_sys_extattr_h" = xyes
  12804. then :
  12805. printf "%s\n" "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
  12806. fi
  12807. ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  12808. if test "x$ac_cv_header_sys_ioctl_h" = xyes
  12809. then :
  12810. printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
  12811. fi
  12812. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  12813. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  12814. then :
  12815. printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
  12816. fi
  12817. ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
  12818. if test "x$ac_cv_header_sys_mount_h" = xyes
  12819. then :
  12820. printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
  12821. fi
  12822. ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
  12823. if test "x$ac_cv_header_sys_queue_h" = xyes
  12824. then :
  12825. printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
  12826. fi
  12827. ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
  12828. if test "x$ac_cv_header_sys_param_h" = xyes
  12829. then :
  12830. printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
  12831. fi
  12832. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  12833. if test "x$ac_cv_header_sys_poll_h" = xyes
  12834. then :
  12835. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  12836. fi
  12837. ac_fn_c_check_header_compile "$LINENO" "sys/richacl.h" "ac_cv_header_sys_richacl_h" "$ac_includes_default"
  12838. if test "x$ac_cv_header_sys_richacl_h" = xyes
  12839. then :
  12840. printf "%s\n" "#define HAVE_SYS_RICHACL_H 1" >>confdefs.h
  12841. fi
  12842. ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
  12843. if test "x$ac_cv_header_sys_select_h" = xyes
  12844. then :
  12845. printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
  12846. fi
  12847. ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
  12848. if test "x$ac_cv_header_sys_statfs_h" = xyes
  12849. then :
  12850. printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
  12851. fi
  12852. ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
  12853. if test "x$ac_cv_header_sys_statvfs_h" = xyes
  12854. then :
  12855. printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
  12856. fi
  12857. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  12858. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  12859. then :
  12860. printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
  12861. fi
  12862. ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  12863. if test "x$ac_cv_header_sys_time_h" = xyes
  12864. then :
  12865. printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  12866. fi
  12867. ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
  12868. if test "x$ac_cv_header_sys_utime_h" = xyes
  12869. then :
  12870. printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
  12871. fi
  12872. ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
  12873. if test "x$ac_cv_header_sys_utsname_h" = xyes
  12874. then :
  12875. printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
  12876. fi
  12877. ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
  12878. if test "x$ac_cv_header_sys_vfs_h" = xyes
  12879. then :
  12880. printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
  12881. fi
  12882. ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
  12883. if test "x$ac_cv_header_sys_xattr_h" = xyes
  12884. then :
  12885. printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
  12886. fi
  12887. ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  12888. if test "x$ac_cv_header_time_h" = xyes
  12889. then :
  12890. printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
  12891. fi
  12892. ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  12893. if test "x$ac_cv_header_unistd_h" = xyes
  12894. then :
  12895. printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
  12896. fi
  12897. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  12898. if test "x$ac_cv_header_utime_h" = xyes
  12899. then :
  12900. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  12901. fi
  12902. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  12903. if test "x$ac_cv_header_wchar_h" = xyes
  12904. then :
  12905. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  12906. fi
  12907. ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  12908. if test "x$ac_cv_header_wctype_h" = xyes
  12909. then :
  12910. printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
  12911. fi
  12912. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  12913. if test "x$ac_cv_header_windows_h" = xyes
  12914. then :
  12915. printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
  12916. fi
  12917. # check windows.h first; the other headers require it.
  12918. ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#ifdef HAVE_WINDOWS_H
  12919. # include <windows.h>
  12920. #endif
  12921. "
  12922. if test "x$ac_cv_header_wincrypt_h" = xyes
  12923. then :
  12924. printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
  12925. fi
  12926. ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H
  12927. # include <windows.h>
  12928. #endif
  12929. "
  12930. if test "x$ac_cv_header_winioctl_h" = xyes
  12931. then :
  12932. printf "%s\n" "#define HAVE_WINIOCTL_H 1" >>confdefs.h
  12933. fi
  12934. # Checks for libraries.
  12935. # Check whether --with-zlib was given.
  12936. if test ${with_zlib+y}
  12937. then :
  12938. withval=$with_zlib;
  12939. fi
  12940. if test "x$with_zlib" != "xno"; then
  12941. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  12942. if test "x$ac_cv_header_zlib_h" = xyes
  12943. then :
  12944. printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
  12945. fi
  12946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
  12947. printf %s "checking for inflate in -lz... " >&6; }
  12948. if test ${ac_cv_lib_z_inflate+y}
  12949. then :
  12950. printf %s "(cached) " >&6
  12951. else $as_nop
  12952. ac_check_lib_save_LIBS=$LIBS
  12953. LIBS="-lz $LIBS"
  12954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12955. /* end confdefs.h. */
  12956. /* Override any GCC internal prototype to avoid an error.
  12957. Use char because int might match the return type of a GCC
  12958. builtin and then its argument prototype would still apply. */
  12959. char inflate ();
  12960. int
  12961. main (void)
  12962. {
  12963. return inflate ();
  12964. ;
  12965. return 0;
  12966. }
  12967. _ACEOF
  12968. if ac_fn_c_try_link "$LINENO"
  12969. then :
  12970. ac_cv_lib_z_inflate=yes
  12971. else $as_nop
  12972. ac_cv_lib_z_inflate=no
  12973. fi
  12974. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12975. conftest$ac_exeext conftest.$ac_ext
  12976. LIBS=$ac_check_lib_save_LIBS
  12977. fi
  12978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
  12979. printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
  12980. if test "x$ac_cv_lib_z_inflate" = xyes
  12981. then :
  12982. printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
  12983. LIBS="-lz $LIBS"
  12984. fi
  12985. fi
  12986. # Check whether --with-bz2lib was given.
  12987. if test ${with_bz2lib+y}
  12988. then :
  12989. withval=$with_bz2lib;
  12990. fi
  12991. if test "x$with_bz2lib" != "xno"; then
  12992. ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  12993. if test "x$ac_cv_header_bzlib_h" = xyes
  12994. then :
  12995. printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
  12996. fi
  12997. case "$host_os" in
  12998. *mingw* | *cygwin* | *msys*)
  12999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
  13000. printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
  13001. old_LIBS="$LIBS"
  13002. LIBS="-lbz2 $LIBS"
  13003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13004. /* end confdefs.h. */
  13005. #include <bzlib.h>
  13006. int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }
  13007. _ACEOF
  13008. if ac_fn_c_try_link "$LINENO"
  13009. then :
  13010. ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
  13011. else $as_nop
  13012. ac_cv_lib_bz2_BZ2_bzDecompressInit=no
  13013. fi
  13014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13015. conftest$ac_exeext conftest.$ac_ext
  13016. LIBS="$old_LIBS"
  13017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
  13018. printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
  13019. if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then
  13020. printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
  13021. LIBS="-lbz2 $LIBS"
  13022. fi
  13023. ;;
  13024. *)
  13025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
  13026. printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
  13027. if test ${ac_cv_lib_bz2_BZ2_bzDecompressInit+y}
  13028. then :
  13029. printf %s "(cached) " >&6
  13030. else $as_nop
  13031. ac_check_lib_save_LIBS=$LIBS
  13032. LIBS="-lbz2 $LIBS"
  13033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13034. /* end confdefs.h. */
  13035. /* Override any GCC internal prototype to avoid an error.
  13036. Use char because int might match the return type of a GCC
  13037. builtin and then its argument prototype would still apply. */
  13038. char BZ2_bzDecompressInit ();
  13039. int
  13040. main (void)
  13041. {
  13042. return BZ2_bzDecompressInit ();
  13043. ;
  13044. return 0;
  13045. }
  13046. _ACEOF
  13047. if ac_fn_c_try_link "$LINENO"
  13048. then :
  13049. ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
  13050. else $as_nop
  13051. ac_cv_lib_bz2_BZ2_bzDecompressInit=no
  13052. fi
  13053. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13054. conftest$ac_exeext conftest.$ac_ext
  13055. LIBS=$ac_check_lib_save_LIBS
  13056. fi
  13057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
  13058. printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
  13059. if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes
  13060. then :
  13061. printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
  13062. LIBS="-lbz2 $LIBS"
  13063. fi
  13064. ;;
  13065. esac
  13066. fi
  13067. # Check whether --with-libb2 was given.
  13068. if test ${with_libb2+y}
  13069. then :
  13070. withval=$with_libb2;
  13071. fi
  13072. if test "x$with_libb2" != "xno"; then
  13073. ac_fn_c_check_header_compile "$LINENO" "blake2.h" "ac_cv_header_blake2_h" "$ac_includes_default"
  13074. if test "x$ac_cv_header_blake2_h" = xyes
  13075. then :
  13076. printf "%s\n" "#define HAVE_BLAKE2_H 1" >>confdefs.h
  13077. fi
  13078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blake2sp_init in -lb2" >&5
  13079. printf %s "checking for blake2sp_init in -lb2... " >&6; }
  13080. if test ${ac_cv_lib_b2_blake2sp_init+y}
  13081. then :
  13082. printf %s "(cached) " >&6
  13083. else $as_nop
  13084. ac_check_lib_save_LIBS=$LIBS
  13085. LIBS="-lb2 $LIBS"
  13086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13087. /* end confdefs.h. */
  13088. /* Override any GCC internal prototype to avoid an error.
  13089. Use char because int might match the return type of a GCC
  13090. builtin and then its argument prototype would still apply. */
  13091. char blake2sp_init ();
  13092. int
  13093. main (void)
  13094. {
  13095. return blake2sp_init ();
  13096. ;
  13097. return 0;
  13098. }
  13099. _ACEOF
  13100. if ac_fn_c_try_link "$LINENO"
  13101. then :
  13102. ac_cv_lib_b2_blake2sp_init=yes
  13103. else $as_nop
  13104. ac_cv_lib_b2_blake2sp_init=no
  13105. fi
  13106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13107. conftest$ac_exeext conftest.$ac_ext
  13108. LIBS=$ac_check_lib_save_LIBS
  13109. fi
  13110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_b2_blake2sp_init" >&5
  13111. printf "%s\n" "$ac_cv_lib_b2_blake2sp_init" >&6; }
  13112. if test "x$ac_cv_lib_b2_blake2sp_init" = xyes
  13113. then :
  13114. printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
  13115. LIBS="-lb2 $LIBS"
  13116. fi
  13117. fi
  13118. if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then
  13119. INC_BLAKE2_TRUE=
  13120. INC_BLAKE2_FALSE='#'
  13121. else
  13122. INC_BLAKE2_TRUE='#'
  13123. INC_BLAKE2_FALSE=
  13124. fi
  13125. # Check whether --with-iconv was given.
  13126. if test ${with_iconv+y}
  13127. then :
  13128. withval=$with_iconv;
  13129. fi
  13130. if test "x$with_iconv" != "xno"; then
  13131. if test "X$prefix" = "XNONE"; then
  13132. acl_final_prefix="$ac_default_prefix"
  13133. else
  13134. acl_final_prefix="$prefix"
  13135. fi
  13136. if test "X$exec_prefix" = "XNONE"; then
  13137. acl_final_exec_prefix='${prefix}'
  13138. else
  13139. acl_final_exec_prefix="$exec_prefix"
  13140. fi
  13141. acl_save_prefix="$prefix"
  13142. prefix="$acl_final_prefix"
  13143. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  13144. prefix="$acl_save_prefix"
  13145. # Check whether --with-gnu-ld was given.
  13146. if test ${with_gnu_ld+y}
  13147. then :
  13148. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13149. else $as_nop
  13150. with_gnu_ld=no
  13151. fi
  13152. # Prepare PATH_SEPARATOR.
  13153. # The user is always right.
  13154. if test "${PATH_SEPARATOR+set}" != set; then
  13155. # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
  13156. # contains only /bin. Note that ksh looks also at the FPATH variable,
  13157. # so we have to set that as well for the test.
  13158. PATH_SEPARATOR=:
  13159. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  13160. && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
  13161. || PATH_SEPARATOR=';'
  13162. }
  13163. fi
  13164. ac_prog=ld
  13165. if test "$GCC" = yes; then
  13166. # Check if gcc -print-prog-name=ld gives a path.
  13167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  13168. printf %s "checking for ld used by GCC... " >&6; }
  13169. case $host in
  13170. *-*-mingw*)
  13171. # gcc leaves a trailing carriage return which upsets mingw
  13172. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13173. *)
  13174. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13175. esac
  13176. case $ac_prog in
  13177. # Accept absolute paths.
  13178. [\\/]* | [A-Za-z]:[\\/]*)
  13179. re_direlt='/[^/][^/]*/\.\./'
  13180. # Canonicalize the path of ld
  13181. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  13182. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  13183. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  13184. done
  13185. test -z "$LD" && LD="$ac_prog"
  13186. ;;
  13187. "")
  13188. # If it fails, then pretend we aren't using GCC.
  13189. ac_prog=ld
  13190. ;;
  13191. *)
  13192. # If it is relative, then search for the first ld in PATH.
  13193. with_gnu_ld=unknown
  13194. ;;
  13195. esac
  13196. elif test "$with_gnu_ld" = yes; then
  13197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13198. printf %s "checking for GNU ld... " >&6; }
  13199. else
  13200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13201. printf %s "checking for non-GNU ld... " >&6; }
  13202. fi
  13203. if test ${acl_cv_path_LD+y}
  13204. then :
  13205. printf %s "(cached) " >&6
  13206. else $as_nop
  13207. if test -z "$LD"; then
  13208. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  13209. for ac_dir in $PATH; do
  13210. test -z "$ac_dir" && ac_dir=.
  13211. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13212. acl_cv_path_LD="$ac_dir/$ac_prog"
  13213. # Check to see if the program is GNU ld. I'd rather use --version,
  13214. # but apparently some GNU ld's only accept -v.
  13215. # Break only if it was the GNU/non-GNU ld that we prefer.
  13216. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  13217. *GNU* | *'with BFD'*)
  13218. test "$with_gnu_ld" != no && break ;;
  13219. *)
  13220. test "$with_gnu_ld" != yes && break ;;
  13221. esac
  13222. fi
  13223. done
  13224. IFS="$ac_save_ifs"
  13225. else
  13226. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  13227. fi
  13228. fi
  13229. LD="$acl_cv_path_LD"
  13230. if test -n "$LD"; then
  13231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13232. printf "%s\n" "$LD" >&6; }
  13233. else
  13234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13235. printf "%s\n" "no" >&6; }
  13236. fi
  13237. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  13238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13239. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  13240. if test ${acl_cv_prog_gnu_ld+y}
  13241. then :
  13242. printf %s "(cached) " >&6
  13243. else $as_nop
  13244. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  13245. case `$LD -v 2>&1 </dev/null` in
  13246. *GNU* | *'with BFD'*)
  13247. acl_cv_prog_gnu_ld=yes ;;
  13248. *)
  13249. acl_cv_prog_gnu_ld=no ;;
  13250. esac
  13251. fi
  13252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  13253. printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
  13254. with_gnu_ld=$acl_cv_prog_gnu_ld
  13255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  13256. printf %s "checking for shared library run path origin... " >&6; }
  13257. if test ${acl_cv_rpath+y}
  13258. then :
  13259. printf %s "(cached) " >&6
  13260. else $as_nop
  13261. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  13262. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  13263. . ./conftest.sh
  13264. rm -f ./conftest.sh
  13265. acl_cv_rpath=done
  13266. fi
  13267. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  13268. printf "%s\n" "$acl_cv_rpath" >&6; }
  13269. wl="$acl_cv_wl"
  13270. acl_libext="$acl_cv_libext"
  13271. acl_shlibext="$acl_cv_shlibext"
  13272. acl_libname_spec="$acl_cv_libname_spec"
  13273. acl_library_names_spec="$acl_cv_library_names_spec"
  13274. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  13275. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  13276. acl_hardcode_direct="$acl_cv_hardcode_direct"
  13277. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  13278. # Check whether --enable-rpath was given.
  13279. if test ${enable_rpath+y}
  13280. then :
  13281. enableval=$enable_rpath; :
  13282. else $as_nop
  13283. enable_rpath=yes
  13284. fi
  13285. acl_libdirstem=lib
  13286. acl_libdirstem2=
  13287. case "$host_os" in
  13288. solaris*)
  13289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
  13290. printf %s "checking for 64-bit host... " >&6; }
  13291. if test ${gl_cv_solaris_64bit+y}
  13292. then :
  13293. printf %s "(cached) " >&6
  13294. else $as_nop
  13295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13296. /* end confdefs.h. */
  13297. #ifdef _LP64
  13298. sixtyfour bits
  13299. #endif
  13300. _ACEOF
  13301. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13302. $EGREP "sixtyfour bits" >/dev/null 2>&1
  13303. then :
  13304. gl_cv_solaris_64bit=yes
  13305. else $as_nop
  13306. gl_cv_solaris_64bit=no
  13307. fi
  13308. rm -rf conftest*
  13309. fi
  13310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
  13311. printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
  13312. if test $gl_cv_solaris_64bit = yes; then
  13313. acl_libdirstem=lib/64
  13314. case "$host_cpu" in
  13315. sparc*) acl_libdirstem2=lib/sparcv9 ;;
  13316. i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
  13317. esac
  13318. fi
  13319. ;;
  13320. *)
  13321. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  13322. if test -n "$searchpath"; then
  13323. acl_save_IFS="${IFS= }"; IFS=":"
  13324. for searchdir in $searchpath; do
  13325. if test -d "$searchdir"; then
  13326. case "$searchdir" in
  13327. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  13328. */../ | */.. )
  13329. # Better ignore directories of this form. They are misleading.
  13330. ;;
  13331. *) searchdir=`cd "$searchdir" && pwd`
  13332. case "$searchdir" in
  13333. */lib64 ) acl_libdirstem=lib64 ;;
  13334. esac ;;
  13335. esac
  13336. fi
  13337. done
  13338. IFS="$acl_save_IFS"
  13339. fi
  13340. ;;
  13341. esac
  13342. test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
  13343. use_additional=yes
  13344. acl_save_prefix="$prefix"
  13345. prefix="$acl_final_prefix"
  13346. acl_save_exec_prefix="$exec_prefix"
  13347. exec_prefix="$acl_final_exec_prefix"
  13348. eval additional_includedir=\"$includedir\"
  13349. eval additional_libdir=\"$libdir\"
  13350. exec_prefix="$acl_save_exec_prefix"
  13351. prefix="$acl_save_prefix"
  13352. # Check whether --with-libiconv-prefix was given.
  13353. if test ${with_libiconv_prefix+y}
  13354. then :
  13355. withval=$with_libiconv_prefix;
  13356. if test "X$withval" = "Xno"; then
  13357. use_additional=no
  13358. else
  13359. if test "X$withval" = "X"; then
  13360. acl_save_prefix="$prefix"
  13361. prefix="$acl_final_prefix"
  13362. acl_save_exec_prefix="$exec_prefix"
  13363. exec_prefix="$acl_final_exec_prefix"
  13364. eval additional_includedir=\"$includedir\"
  13365. eval additional_libdir=\"$libdir\"
  13366. exec_prefix="$acl_save_exec_prefix"
  13367. prefix="$acl_save_prefix"
  13368. else
  13369. additional_includedir="$withval/include"
  13370. additional_libdir="$withval/$acl_libdirstem"
  13371. if test "$acl_libdirstem2" != "$acl_libdirstem" \
  13372. && ! test -d "$withval/$acl_libdirstem"; then
  13373. additional_libdir="$withval/$acl_libdirstem2"
  13374. fi
  13375. fi
  13376. fi
  13377. fi
  13378. LIBICONV=
  13379. LTLIBICONV=
  13380. INCICONV=
  13381. LIBICONV_PREFIX=
  13382. HAVE_LIBICONV=
  13383. rpathdirs=
  13384. ltrpathdirs=
  13385. names_already_handled=
  13386. names_next_round='iconv '
  13387. while test -n "$names_next_round"; do
  13388. names_this_round="$names_next_round"
  13389. names_next_round=
  13390. for name in $names_this_round; do
  13391. already_handled=
  13392. for n in $names_already_handled; do
  13393. if test "$n" = "$name"; then
  13394. already_handled=yes
  13395. break
  13396. fi
  13397. done
  13398. if test -z "$already_handled"; then
  13399. names_already_handled="$names_already_handled $name"
  13400. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
  13401. eval value=\"\$HAVE_LIB$uppername\"
  13402. if test -n "$value"; then
  13403. if test "$value" = yes; then
  13404. eval value=\"\$LIB$uppername\"
  13405. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13406. eval value=\"\$LTLIB$uppername\"
  13407. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13408. else
  13409. :
  13410. fi
  13411. else
  13412. found_dir=
  13413. found_la=
  13414. found_so=
  13415. found_a=
  13416. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13417. if test -n "$acl_shlibext"; then
  13418. shrext=".$acl_shlibext" # typically: shrext=.so
  13419. else
  13420. shrext=
  13421. fi
  13422. if test $use_additional = yes; then
  13423. dir="$additional_libdir"
  13424. if test -n "$acl_shlibext"; then
  13425. if test -f "$dir/$libname$shrext"; then
  13426. found_dir="$dir"
  13427. found_so="$dir/$libname$shrext"
  13428. else
  13429. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13430. ver=`(cd "$dir" && \
  13431. for f in "$libname$shrext".*; do echo "$f"; done \
  13432. | sed -e "s,^$libname$shrext\\\\.,," \
  13433. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13434. | sed 1q ) 2>/dev/null`
  13435. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13436. found_dir="$dir"
  13437. found_so="$dir/$libname$shrext.$ver"
  13438. fi
  13439. else
  13440. eval library_names=\"$acl_library_names_spec\"
  13441. for f in $library_names; do
  13442. if test -f "$dir/$f"; then
  13443. found_dir="$dir"
  13444. found_so="$dir/$f"
  13445. break
  13446. fi
  13447. done
  13448. fi
  13449. fi
  13450. fi
  13451. if test "X$found_dir" = "X"; then
  13452. if test -f "$dir/$libname.$acl_libext"; then
  13453. found_dir="$dir"
  13454. found_a="$dir/$libname.$acl_libext"
  13455. fi
  13456. fi
  13457. if test "X$found_dir" != "X"; then
  13458. if test -f "$dir/$libname.la"; then
  13459. found_la="$dir/$libname.la"
  13460. fi
  13461. fi
  13462. fi
  13463. if test "X$found_dir" = "X"; then
  13464. for x in $LDFLAGS $LTLIBICONV; do
  13465. acl_save_prefix="$prefix"
  13466. prefix="$acl_final_prefix"
  13467. acl_save_exec_prefix="$exec_prefix"
  13468. exec_prefix="$acl_final_exec_prefix"
  13469. eval x=\"$x\"
  13470. exec_prefix="$acl_save_exec_prefix"
  13471. prefix="$acl_save_prefix"
  13472. case "$x" in
  13473. -L*)
  13474. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13475. if test -n "$acl_shlibext"; then
  13476. if test -f "$dir/$libname$shrext"; then
  13477. found_dir="$dir"
  13478. found_so="$dir/$libname$shrext"
  13479. else
  13480. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13481. ver=`(cd "$dir" && \
  13482. for f in "$libname$shrext".*; do echo "$f"; done \
  13483. | sed -e "s,^$libname$shrext\\\\.,," \
  13484. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13485. | sed 1q ) 2>/dev/null`
  13486. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13487. found_dir="$dir"
  13488. found_so="$dir/$libname$shrext.$ver"
  13489. fi
  13490. else
  13491. eval library_names=\"$acl_library_names_spec\"
  13492. for f in $library_names; do
  13493. if test -f "$dir/$f"; then
  13494. found_dir="$dir"
  13495. found_so="$dir/$f"
  13496. break
  13497. fi
  13498. done
  13499. fi
  13500. fi
  13501. fi
  13502. if test "X$found_dir" = "X"; then
  13503. if test -f "$dir/$libname.$acl_libext"; then
  13504. found_dir="$dir"
  13505. found_a="$dir/$libname.$acl_libext"
  13506. fi
  13507. fi
  13508. if test "X$found_dir" != "X"; then
  13509. if test -f "$dir/$libname.la"; then
  13510. found_la="$dir/$libname.la"
  13511. fi
  13512. fi
  13513. ;;
  13514. esac
  13515. if test "X$found_dir" != "X"; then
  13516. break
  13517. fi
  13518. done
  13519. fi
  13520. if test "X$found_dir" != "X"; then
  13521. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13522. if test "X$found_so" != "X"; then
  13523. if test "$enable_rpath" = no \
  13524. || test "X$found_dir" = "X/usr/$acl_libdirstem" \
  13525. || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
  13526. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13527. else
  13528. haveit=
  13529. for x in $ltrpathdirs; do
  13530. if test "X$x" = "X$found_dir"; then
  13531. haveit=yes
  13532. break
  13533. fi
  13534. done
  13535. if test -z "$haveit"; then
  13536. ltrpathdirs="$ltrpathdirs $found_dir"
  13537. fi
  13538. if test "$acl_hardcode_direct" = yes; then
  13539. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13540. else
  13541. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13542. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13543. haveit=
  13544. for x in $rpathdirs; do
  13545. if test "X$x" = "X$found_dir"; then
  13546. haveit=yes
  13547. break
  13548. fi
  13549. done
  13550. if test -z "$haveit"; then
  13551. rpathdirs="$rpathdirs $found_dir"
  13552. fi
  13553. else
  13554. haveit=
  13555. for x in $LDFLAGS $LIBICONV; do
  13556. acl_save_prefix="$prefix"
  13557. prefix="$acl_final_prefix"
  13558. acl_save_exec_prefix="$exec_prefix"
  13559. exec_prefix="$acl_final_exec_prefix"
  13560. eval x=\"$x\"
  13561. exec_prefix="$acl_save_exec_prefix"
  13562. prefix="$acl_save_prefix"
  13563. if test "X$x" = "X-L$found_dir"; then
  13564. haveit=yes
  13565. break
  13566. fi
  13567. done
  13568. if test -z "$haveit"; then
  13569. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13570. fi
  13571. if test "$acl_hardcode_minus_L" != no; then
  13572. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13573. else
  13574. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13575. fi
  13576. fi
  13577. fi
  13578. fi
  13579. else
  13580. if test "X$found_a" != "X"; then
  13581. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13582. else
  13583. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13584. fi
  13585. fi
  13586. additional_includedir=
  13587. case "$found_dir" in
  13588. */$acl_libdirstem | */$acl_libdirstem/)
  13589. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13590. if test "$name" = 'iconv'; then
  13591. LIBICONV_PREFIX="$basedir"
  13592. fi
  13593. additional_includedir="$basedir/include"
  13594. ;;
  13595. */$acl_libdirstem2 | */$acl_libdirstem2/)
  13596. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
  13597. if test "$name" = 'iconv'; then
  13598. LIBICONV_PREFIX="$basedir"
  13599. fi
  13600. additional_includedir="$basedir/include"
  13601. ;;
  13602. esac
  13603. if test "X$additional_includedir" != "X"; then
  13604. if test "X$additional_includedir" != "X/usr/include"; then
  13605. haveit=
  13606. if test "X$additional_includedir" = "X/usr/local/include"; then
  13607. if test -n "$GCC"; then
  13608. case $host_os in
  13609. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13610. esac
  13611. fi
  13612. fi
  13613. if test -z "$haveit"; then
  13614. for x in $CPPFLAGS $INCICONV; do
  13615. acl_save_prefix="$prefix"
  13616. prefix="$acl_final_prefix"
  13617. acl_save_exec_prefix="$exec_prefix"
  13618. exec_prefix="$acl_final_exec_prefix"
  13619. eval x=\"$x\"
  13620. exec_prefix="$acl_save_exec_prefix"
  13621. prefix="$acl_save_prefix"
  13622. if test "X$x" = "X-I$additional_includedir"; then
  13623. haveit=yes
  13624. break
  13625. fi
  13626. done
  13627. if test -z "$haveit"; then
  13628. if test -d "$additional_includedir"; then
  13629. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13630. fi
  13631. fi
  13632. fi
  13633. fi
  13634. fi
  13635. if test -n "$found_la"; then
  13636. save_libdir="$libdir"
  13637. case "$found_la" in
  13638. */* | *\\*) . "$found_la" ;;
  13639. *) . "./$found_la" ;;
  13640. esac
  13641. libdir="$save_libdir"
  13642. for dep in $dependency_libs; do
  13643. case "$dep" in
  13644. -L*)
  13645. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13646. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
  13647. && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
  13648. haveit=
  13649. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
  13650. || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
  13651. if test -n "$GCC"; then
  13652. case $host_os in
  13653. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13654. esac
  13655. fi
  13656. fi
  13657. if test -z "$haveit"; then
  13658. haveit=
  13659. for x in $LDFLAGS $LIBICONV; do
  13660. acl_save_prefix="$prefix"
  13661. prefix="$acl_final_prefix"
  13662. acl_save_exec_prefix="$exec_prefix"
  13663. exec_prefix="$acl_final_exec_prefix"
  13664. eval x=\"$x\"
  13665. exec_prefix="$acl_save_exec_prefix"
  13666. prefix="$acl_save_prefix"
  13667. if test "X$x" = "X-L$additional_libdir"; then
  13668. haveit=yes
  13669. break
  13670. fi
  13671. done
  13672. if test -z "$haveit"; then
  13673. if test -d "$additional_libdir"; then
  13674. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13675. fi
  13676. fi
  13677. haveit=
  13678. for x in $LDFLAGS $LTLIBICONV; do
  13679. acl_save_prefix="$prefix"
  13680. prefix="$acl_final_prefix"
  13681. acl_save_exec_prefix="$exec_prefix"
  13682. exec_prefix="$acl_final_exec_prefix"
  13683. eval x=\"$x\"
  13684. exec_prefix="$acl_save_exec_prefix"
  13685. prefix="$acl_save_prefix"
  13686. if test "X$x" = "X-L$additional_libdir"; then
  13687. haveit=yes
  13688. break
  13689. fi
  13690. done
  13691. if test -z "$haveit"; then
  13692. if test -d "$additional_libdir"; then
  13693. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13694. fi
  13695. fi
  13696. fi
  13697. fi
  13698. ;;
  13699. -R*)
  13700. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13701. if test "$enable_rpath" != no; then
  13702. haveit=
  13703. for x in $rpathdirs; do
  13704. if test "X$x" = "X$dir"; then
  13705. haveit=yes
  13706. break
  13707. fi
  13708. done
  13709. if test -z "$haveit"; then
  13710. rpathdirs="$rpathdirs $dir"
  13711. fi
  13712. haveit=
  13713. for x in $ltrpathdirs; do
  13714. if test "X$x" = "X$dir"; then
  13715. haveit=yes
  13716. break
  13717. fi
  13718. done
  13719. if test -z "$haveit"; then
  13720. ltrpathdirs="$ltrpathdirs $dir"
  13721. fi
  13722. fi
  13723. ;;
  13724. -l*)
  13725. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13726. ;;
  13727. *.la)
  13728. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13729. ;;
  13730. *)
  13731. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13732. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13733. ;;
  13734. esac
  13735. done
  13736. fi
  13737. else
  13738. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13739. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13740. fi
  13741. fi
  13742. fi
  13743. done
  13744. done
  13745. if test "X$rpathdirs" != "X"; then
  13746. if test -n "$acl_hardcode_libdir_separator"; then
  13747. alldirs=
  13748. for found_dir in $rpathdirs; do
  13749. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13750. done
  13751. acl_save_libdir="$libdir"
  13752. libdir="$alldirs"
  13753. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13754. libdir="$acl_save_libdir"
  13755. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13756. else
  13757. for found_dir in $rpathdirs; do
  13758. acl_save_libdir="$libdir"
  13759. libdir="$found_dir"
  13760. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13761. libdir="$acl_save_libdir"
  13762. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13763. done
  13764. fi
  13765. fi
  13766. if test "X$ltrpathdirs" != "X"; then
  13767. for found_dir in $ltrpathdirs; do
  13768. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13769. done
  13770. fi
  13771. am_save_CPPFLAGS="$CPPFLAGS"
  13772. for element in $INCICONV; do
  13773. haveit=
  13774. for x in $CPPFLAGS; do
  13775. acl_save_prefix="$prefix"
  13776. prefix="$acl_final_prefix"
  13777. acl_save_exec_prefix="$exec_prefix"
  13778. exec_prefix="$acl_final_exec_prefix"
  13779. eval x=\"$x\"
  13780. exec_prefix="$acl_save_exec_prefix"
  13781. prefix="$acl_save_prefix"
  13782. if test "X$x" = "X$element"; then
  13783. haveit=yes
  13784. break
  13785. fi
  13786. done
  13787. if test -z "$haveit"; then
  13788. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13789. fi
  13790. done
  13791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  13792. printf %s "checking for iconv... " >&6; }
  13793. if test ${am_cv_func_iconv+y}
  13794. then :
  13795. printf %s "(cached) " >&6
  13796. else $as_nop
  13797. am_cv_func_iconv="no, consider installing GNU libiconv"
  13798. am_cv_lib_iconv=no
  13799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13800. /* end confdefs.h. */
  13801. #include <stdlib.h>
  13802. #include <iconv.h>
  13803. int
  13804. main (void)
  13805. {
  13806. iconv_t cd = iconv_open("","");
  13807. iconv(cd,NULL,NULL,NULL,NULL);
  13808. iconv_close(cd);
  13809. ;
  13810. return 0;
  13811. }
  13812. _ACEOF
  13813. if ac_fn_c_try_link "$LINENO"
  13814. then :
  13815. am_cv_func_iconv=yes
  13816. fi
  13817. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13818. conftest$ac_exeext conftest.$ac_ext
  13819. if test "$am_cv_func_iconv" != yes; then
  13820. am_save_LIBS="$LIBS"
  13821. LIBS="$LIBS $LIBICONV"
  13822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13823. /* end confdefs.h. */
  13824. #include <stdlib.h>
  13825. #include <iconv.h>
  13826. int
  13827. main (void)
  13828. {
  13829. iconv_t cd = iconv_open("","");
  13830. iconv(cd,NULL,NULL,NULL,NULL);
  13831. iconv_close(cd);
  13832. ;
  13833. return 0;
  13834. }
  13835. _ACEOF
  13836. if ac_fn_c_try_link "$LINENO"
  13837. then :
  13838. am_cv_lib_iconv=yes
  13839. am_cv_func_iconv=yes
  13840. fi
  13841. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13842. conftest$ac_exeext conftest.$ac_ext
  13843. LIBS="$am_save_LIBS"
  13844. fi
  13845. fi
  13846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  13847. printf "%s\n" "$am_cv_func_iconv" >&6; }
  13848. if test "$am_cv_func_iconv" = yes; then
  13849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  13850. printf %s "checking for working iconv... " >&6; }
  13851. if test ${am_cv_func_iconv_works+y}
  13852. then :
  13853. printf %s "(cached) " >&6
  13854. else $as_nop
  13855. am_save_LIBS="$LIBS"
  13856. if test $am_cv_lib_iconv = yes; then
  13857. LIBS="$LIBS $LIBICONV"
  13858. fi
  13859. am_cv_func_iconv_works=no
  13860. for ac_iconv_const in '' 'const'; do
  13861. if test "$cross_compiling" = yes
  13862. then :
  13863. case "$host_os" in
  13864. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13865. *) am_cv_func_iconv_works="guessing yes" ;;
  13866. esac
  13867. else $as_nop
  13868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13869. /* end confdefs.h. */
  13870. #include <iconv.h>
  13871. #include <string.h>
  13872. #ifndef ICONV_CONST
  13873. # define ICONV_CONST $ac_iconv_const
  13874. #endif
  13875. int
  13876. main (void)
  13877. {
  13878. int result = 0;
  13879. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13880. returns. */
  13881. {
  13882. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13883. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13884. {
  13885. static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
  13886. char buf[10];
  13887. ICONV_CONST char *inptr = input;
  13888. size_t inbytesleft = strlen (input);
  13889. char *outptr = buf;
  13890. size_t outbytesleft = sizeof (buf);
  13891. size_t res = iconv (cd_utf8_to_88591,
  13892. &inptr, &inbytesleft,
  13893. &outptr, &outbytesleft);
  13894. if (res == 0)
  13895. result |= 1;
  13896. iconv_close (cd_utf8_to_88591);
  13897. }
  13898. }
  13899. /* Test against Solaris 10 bug: Failures are not distinguishable from
  13900. successful returns. */
  13901. {
  13902. iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
  13903. if (cd_ascii_to_88591 != (iconv_t)(-1))
  13904. {
  13905. static ICONV_CONST char input[] = "\263";
  13906. char buf[10];
  13907. ICONV_CONST char *inptr = input;
  13908. size_t inbytesleft = strlen (input);
  13909. char *outptr = buf;
  13910. size_t outbytesleft = sizeof (buf);
  13911. size_t res = iconv (cd_ascii_to_88591,
  13912. &inptr, &inbytesleft,
  13913. &outptr, &outbytesleft);
  13914. if (res == 0)
  13915. result |= 2;
  13916. iconv_close (cd_ascii_to_88591);
  13917. }
  13918. }
  13919. /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
  13920. {
  13921. iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
  13922. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13923. {
  13924. static ICONV_CONST char input[] = "\304";
  13925. static char buf[2] = { (char)0xDE, (char)0xAD };
  13926. ICONV_CONST char *inptr = input;
  13927. size_t inbytesleft = 1;
  13928. char *outptr = buf;
  13929. size_t outbytesleft = 1;
  13930. size_t res = iconv (cd_88591_to_utf8,
  13931. &inptr, &inbytesleft,
  13932. &outptr, &outbytesleft);
  13933. if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
  13934. result |= 4;
  13935. iconv_close (cd_88591_to_utf8);
  13936. }
  13937. }
  13938. #if 0 /* This bug could be worked around by the caller. */
  13939. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13940. {
  13941. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13942. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13943. {
  13944. static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13945. char buf[50];
  13946. ICONV_CONST char *inptr = input;
  13947. size_t inbytesleft = strlen (input);
  13948. char *outptr = buf;
  13949. size_t outbytesleft = sizeof (buf);
  13950. size_t res = iconv (cd_88591_to_utf8,
  13951. &inptr, &inbytesleft,
  13952. &outptr, &outbytesleft);
  13953. if ((int)res > 0)
  13954. result |= 8;
  13955. iconv_close (cd_88591_to_utf8);
  13956. }
  13957. }
  13958. #endif
  13959. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13960. provided. */
  13961. if (/* Try standardized names. */
  13962. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13963. /* Try IRIX, OSF/1 names. */
  13964. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13965. /* Try AIX names. */
  13966. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13967. /* Try HP-UX names. */
  13968. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13969. result |= 16;
  13970. return result;
  13971. ;
  13972. return 0;
  13973. }
  13974. _ACEOF
  13975. if ac_fn_c_try_run "$LINENO"
  13976. then :
  13977. am_cv_func_iconv_works=yes
  13978. fi
  13979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13980. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13981. fi
  13982. test "$am_cv_func_iconv_works" = no || break
  13983. done
  13984. LIBS="$am_save_LIBS"
  13985. fi
  13986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  13987. printf "%s\n" "$am_cv_func_iconv_works" >&6; }
  13988. case "$am_cv_func_iconv_works" in
  13989. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13990. *) am_func_iconv=yes ;;
  13991. esac
  13992. else
  13993. am_func_iconv=no am_cv_lib_iconv=no
  13994. fi
  13995. if test "$am_func_iconv" = yes; then
  13996. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  13997. fi
  13998. if test "$am_cv_lib_iconv" = yes; then
  13999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  14000. printf %s "checking how to link with libiconv... " >&6; }
  14001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  14002. printf "%s\n" "$LIBICONV" >&6; }
  14003. else
  14004. CPPFLAGS="$am_save_CPPFLAGS"
  14005. LIBICONV=
  14006. LTLIBICONV=
  14007. fi
  14008. if test "$am_cv_func_iconv" = yes; then
  14009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  14010. printf %s "checking for iconv declaration... " >&6; }
  14011. if test ${am_cv_proto_iconv+y}
  14012. then :
  14013. printf %s "(cached) " >&6
  14014. else $as_nop
  14015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14016. /* end confdefs.h. */
  14017. #include <stdlib.h>
  14018. #include <iconv.h>
  14019. extern
  14020. #ifdef __cplusplus
  14021. "C"
  14022. #endif
  14023. #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
  14024. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  14025. #else
  14026. size_t iconv();
  14027. #endif
  14028. int
  14029. main (void)
  14030. {
  14031. ;
  14032. return 0;
  14033. }
  14034. _ACEOF
  14035. if ac_fn_c_try_compile "$LINENO"
  14036. then :
  14037. am_cv_proto_iconv_arg1=""
  14038. else $as_nop
  14039. am_cv_proto_iconv_arg1="const"
  14040. fi
  14041. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14042. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  14043. fi
  14044. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  14045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
  14046. $am_cv_proto_iconv" >&5
  14047. printf "%s\n" "
  14048. $am_cv_proto_iconv" >&6; }
  14049. printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
  14050. fi
  14051. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>
  14052. "
  14053. if test "x$ac_cv_header_iconv_h" = xyes
  14054. then :
  14055. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  14056. fi
  14057. if test "x$am_cv_func_iconv" = "xyes"; then
  14058. ac_fn_c_check_header_compile "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"
  14059. if test "x$ac_cv_header_localcharset_h" = xyes
  14060. then :
  14061. printf "%s\n" "#define HAVE_LOCALCHARSET_H 1" >>confdefs.h
  14062. fi
  14063. am_save_LIBS="$LIBS"
  14064. LIBS="${LIBS} ${LIBICONV}"
  14065. if test -n "$LIBICONV"; then
  14066. LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"
  14067. fi
  14068. ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
  14069. if test "x$ac_cv_func_locale_charset" = xyes
  14070. then :
  14071. printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
  14072. fi
  14073. LIBS="${am_save_LIBS}"
  14074. if test "x$ac_cv_func_locale_charset" != "xyes"; then
  14075. # If locale_charset() is not in libiconv, we have to find libcharset.
  14076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
  14077. printf %s "checking for locale_charset in -lcharset... " >&6; }
  14078. if test ${ac_cv_lib_charset_locale_charset+y}
  14079. then :
  14080. printf %s "(cached) " >&6
  14081. else $as_nop
  14082. ac_check_lib_save_LIBS=$LIBS
  14083. LIBS="-lcharset $LIBS"
  14084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14085. /* end confdefs.h. */
  14086. /* Override any GCC internal prototype to avoid an error.
  14087. Use char because int might match the return type of a GCC
  14088. builtin and then its argument prototype would still apply. */
  14089. char locale_charset ();
  14090. int
  14091. main (void)
  14092. {
  14093. return locale_charset ();
  14094. ;
  14095. return 0;
  14096. }
  14097. _ACEOF
  14098. if ac_fn_c_try_link "$LINENO"
  14099. then :
  14100. ac_cv_lib_charset_locale_charset=yes
  14101. else $as_nop
  14102. ac_cv_lib_charset_locale_charset=no
  14103. fi
  14104. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14105. conftest$ac_exeext conftest.$ac_ext
  14106. LIBS=$ac_check_lib_save_LIBS
  14107. fi
  14108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
  14109. printf "%s\n" "$ac_cv_lib_charset_locale_charset" >&6; }
  14110. if test "x$ac_cv_lib_charset_locale_charset" = xyes
  14111. then :
  14112. printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h
  14113. LIBS="-lcharset $LIBS"
  14114. fi
  14115. fi
  14116. fi
  14117. fi
  14118. # Check whether --with-lz4 was given.
  14119. if test ${with_lz4+y}
  14120. then :
  14121. withval=$with_lz4;
  14122. fi
  14123. if test "x$with_lz4" != "xno"; then
  14124. ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
  14125. if test "x$ac_cv_header_lz4_h" = xyes
  14126. then :
  14127. printf "%s\n" "#define HAVE_LZ4_H 1" >>confdefs.h
  14128. fi
  14129. ac_fn_c_check_header_compile "$LINENO" "lz4hc.h" "ac_cv_header_lz4hc_h" "$ac_includes_default"
  14130. if test "x$ac_cv_header_lz4hc_h" = xyes
  14131. then :
  14132. printf "%s\n" "#define HAVE_LZ4HC_H 1" >>confdefs.h
  14133. fi
  14134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5
  14135. printf %s "checking for LZ4_decompress_safe in -llz4... " >&6; }
  14136. if test ${ac_cv_lib_lz4_LZ4_decompress_safe+y}
  14137. then :
  14138. printf %s "(cached) " >&6
  14139. else $as_nop
  14140. ac_check_lib_save_LIBS=$LIBS
  14141. LIBS="-llz4 $LIBS"
  14142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14143. /* end confdefs.h. */
  14144. /* Override any GCC internal prototype to avoid an error.
  14145. Use char because int might match the return type of a GCC
  14146. builtin and then its argument prototype would still apply. */
  14147. char LZ4_decompress_safe ();
  14148. int
  14149. main (void)
  14150. {
  14151. return LZ4_decompress_safe ();
  14152. ;
  14153. return 0;
  14154. }
  14155. _ACEOF
  14156. if ac_fn_c_try_link "$LINENO"
  14157. then :
  14158. ac_cv_lib_lz4_LZ4_decompress_safe=yes
  14159. else $as_nop
  14160. ac_cv_lib_lz4_LZ4_decompress_safe=no
  14161. fi
  14162. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14163. conftest$ac_exeext conftest.$ac_ext
  14164. LIBS=$ac_check_lib_save_LIBS
  14165. fi
  14166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5
  14167. printf "%s\n" "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }
  14168. if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes
  14169. then :
  14170. printf "%s\n" "#define HAVE_LIBLZ4 1" >>confdefs.h
  14171. LIBS="-llz4 $LIBS"
  14172. fi
  14173. fi
  14174. # Check whether --with-zstd was given.
  14175. if test ${with_zstd+y}
  14176. then :
  14177. withval=$with_zstd;
  14178. fi
  14179. if test "x$with_zstd" != "xno"; then
  14180. ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
  14181. if test "x$ac_cv_header_zstd_h" = xyes
  14182. then :
  14183. printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
  14184. fi
  14185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5
  14186. printf %s "checking for ZSTD_decompressStream in -lzstd... " >&6; }
  14187. if test ${ac_cv_lib_zstd_ZSTD_decompressStream+y}
  14188. then :
  14189. printf %s "(cached) " >&6
  14190. else $as_nop
  14191. ac_check_lib_save_LIBS=$LIBS
  14192. LIBS="-lzstd $LIBS"
  14193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14194. /* end confdefs.h. */
  14195. /* Override any GCC internal prototype to avoid an error.
  14196. Use char because int might match the return type of a GCC
  14197. builtin and then its argument prototype would still apply. */
  14198. char ZSTD_decompressStream ();
  14199. int
  14200. main (void)
  14201. {
  14202. return ZSTD_decompressStream ();
  14203. ;
  14204. return 0;
  14205. }
  14206. _ACEOF
  14207. if ac_fn_c_try_link "$LINENO"
  14208. then :
  14209. ac_cv_lib_zstd_ZSTD_decompressStream=yes
  14210. else $as_nop
  14211. ac_cv_lib_zstd_ZSTD_decompressStream=no
  14212. fi
  14213. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14214. conftest$ac_exeext conftest.$ac_ext
  14215. LIBS=$ac_check_lib_save_LIBS
  14216. fi
  14217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5
  14218. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }
  14219. if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes
  14220. then :
  14221. printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
  14222. LIBS="-lzstd $LIBS"
  14223. fi
  14224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5
  14225. printf %s "checking for ZSTD_compressStream in -lzstd... " >&6; }
  14226. if test ${ac_cv_lib_zstd_ZSTD_compressStream+y}
  14227. then :
  14228. printf %s "(cached) " >&6
  14229. else $as_nop
  14230. ac_check_lib_save_LIBS=$LIBS
  14231. LIBS="-lzstd $LIBS"
  14232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14233. /* end confdefs.h. */
  14234. /* Override any GCC internal prototype to avoid an error.
  14235. Use char because int might match the return type of a GCC
  14236. builtin and then its argument prototype would still apply. */
  14237. char ZSTD_compressStream ();
  14238. int
  14239. main (void)
  14240. {
  14241. return ZSTD_compressStream ();
  14242. ;
  14243. return 0;
  14244. }
  14245. _ACEOF
  14246. if ac_fn_c_try_link "$LINENO"
  14247. then :
  14248. ac_cv_lib_zstd_ZSTD_compressStream=yes
  14249. else $as_nop
  14250. ac_cv_lib_zstd_ZSTD_compressStream=no
  14251. fi
  14252. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14253. conftest$ac_exeext conftest.$ac_ext
  14254. LIBS=$ac_check_lib_save_LIBS
  14255. fi
  14256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5
  14257. printf "%s\n" "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }
  14258. if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes
  14259. then :
  14260. printf "%s\n" "#define HAVE_LIBZSTD_COMPRESSOR 1" >>confdefs.h
  14261. fi
  14262. fi
  14263. # Check whether --with-lzma was given.
  14264. if test ${with_lzma+y}
  14265. then :
  14266. withval=$with_lzma;
  14267. fi
  14268. if test "x$with_lzma" != "xno"; then
  14269. ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  14270. if test "x$ac_cv_header_lzma_h" = xyes
  14271. then :
  14272. printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
  14273. fi
  14274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  14275. printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
  14276. if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
  14277. then :
  14278. printf %s "(cached) " >&6
  14279. else $as_nop
  14280. ac_check_lib_save_LIBS=$LIBS
  14281. LIBS="-llzma $LIBS"
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. /* Override any GCC internal prototype to avoid an error.
  14285. Use char because int might match the return type of a GCC
  14286. builtin and then its argument prototype would still apply. */
  14287. char lzma_stream_decoder ();
  14288. int
  14289. main (void)
  14290. {
  14291. return lzma_stream_decoder ();
  14292. ;
  14293. return 0;
  14294. }
  14295. _ACEOF
  14296. if ac_fn_c_try_link "$LINENO"
  14297. then :
  14298. ac_cv_lib_lzma_lzma_stream_decoder=yes
  14299. else $as_nop
  14300. ac_cv_lib_lzma_lzma_stream_decoder=no
  14301. fi
  14302. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14303. conftest$ac_exeext conftest.$ac_ext
  14304. LIBS=$ac_check_lib_save_LIBS
  14305. fi
  14306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  14307. printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  14308. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
  14309. then :
  14310. printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
  14311. LIBS="-llzma $LIBS"
  14312. fi
  14313. # Some pre-release (but widely distributed) versions of liblzma
  14314. # included a disabled version of lzma_stream_encoder_mt that
  14315. # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need
  14316. # to do something more complex here:
  14317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5
  14318. printf %s "checking whether we have multithread support in lzma... " >&6; }
  14319. if test ${ac_cv_lzma_has_mt+y}
  14320. then :
  14321. printf %s "(cached) " >&6
  14322. else $as_nop
  14323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14324. /* end confdefs.h. */
  14325. #include <lzma.h>
  14326. #if LZMA_VERSION < 50020000
  14327. #error unsupported
  14328. #endif
  14329. int
  14330. main (void)
  14331. {
  14332. lzma_stream_encoder_mt(0, 0);
  14333. ;
  14334. return 0;
  14335. }
  14336. _ACEOF
  14337. if ac_fn_c_try_link "$LINENO"
  14338. then :
  14339. ac_cv_lzma_has_mt=yes
  14340. else $as_nop
  14341. ac_cv_lzma_has_mt=no
  14342. fi
  14343. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14344. conftest$ac_exeext conftest.$ac_ext
  14345. fi
  14346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5
  14347. printf "%s\n" "$ac_cv_lzma_has_mt" >&6; }
  14348. if test "x$ac_cv_lzma_has_mt" != xno; then
  14349. printf "%s\n" "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h
  14350. fi
  14351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have ARM64 filter support in lzma" >&5
  14352. printf %s "checking whether we have ARM64 filter support in lzma... " >&6; }
  14353. if test ${ac_cv_lzma_has_arm64+y}
  14354. then :
  14355. printf %s "(cached) " >&6
  14356. else $as_nop
  14357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14358. /* end confdefs.h. */
  14359. #include <lzma.h>
  14360. #ifndef LZMA_FILTER_ARM64
  14361. #error unsupported
  14362. #endif
  14363. int
  14364. main (void)
  14365. {
  14366. ;
  14367. return 0;
  14368. }
  14369. _ACEOF
  14370. if ac_fn_c_try_link "$LINENO"
  14371. then :
  14372. ac_cv_lzma_has_arm64=yes
  14373. else $as_nop
  14374. ac_cv_lzma_has_arm64=no
  14375. fi
  14376. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14377. conftest$ac_exeext conftest.$ac_ext
  14378. fi
  14379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_arm64" >&5
  14380. printf "%s\n" "$ac_cv_lzma_has_arm64" >&6; }
  14381. if test "x$ac_cv_lzma_has_arm64" != xno; then
  14382. printf "%s\n" "#define HAVE_LZMA_FILTER_ARM64 1" >>confdefs.h
  14383. fi
  14384. fi
  14385. # Check whether --with-lzo2 was given.
  14386. if test ${with_lzo2+y}
  14387. then :
  14388. withval=$with_lzo2;
  14389. fi
  14390. if test "x$with_lzo2" = "xyes"; then
  14391. ac_fn_c_check_header_compile "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
  14392. if test "x$ac_cv_header_lzo_lzoconf_h" = xyes
  14393. then :
  14394. printf "%s\n" "#define HAVE_LZO_LZOCONF_H 1" >>confdefs.h
  14395. fi
  14396. ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
  14397. if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
  14398. then :
  14399. printf "%s\n" "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h
  14400. fi
  14401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
  14402. printf %s "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
  14403. if test ${ac_cv_lib_lzo2_lzo1x_decompress_safe+y}
  14404. then :
  14405. printf %s "(cached) " >&6
  14406. else $as_nop
  14407. ac_check_lib_save_LIBS=$LIBS
  14408. LIBS="-llzo2 $LIBS"
  14409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14410. /* end confdefs.h. */
  14411. /* Override any GCC internal prototype to avoid an error.
  14412. Use char because int might match the return type of a GCC
  14413. builtin and then its argument prototype would still apply. */
  14414. char lzo1x_decompress_safe ();
  14415. int
  14416. main (void)
  14417. {
  14418. return lzo1x_decompress_safe ();
  14419. ;
  14420. return 0;
  14421. }
  14422. _ACEOF
  14423. if ac_fn_c_try_link "$LINENO"
  14424. then :
  14425. ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
  14426. else $as_nop
  14427. ac_cv_lib_lzo2_lzo1x_decompress_safe=no
  14428. fi
  14429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14430. conftest$ac_exeext conftest.$ac_ext
  14431. LIBS=$ac_check_lib_save_LIBS
  14432. fi
  14433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
  14434. printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
  14435. if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes
  14436. then :
  14437. printf "%s\n" "#define HAVE_LIBLZO2 1" >>confdefs.h
  14438. LIBS="-llzo2 $LIBS"
  14439. fi
  14440. fi
  14441. # Check whether --with-cng was given.
  14442. if test ${with_cng+y}
  14443. then :
  14444. withval=$with_cng;
  14445. fi
  14446. # Check whether --with-mbedtls was given.
  14447. if test ${with_mbedtls+y}
  14448. then :
  14449. withval=$with_mbedtls;
  14450. fi
  14451. # Check whether --with-nettle was given.
  14452. if test ${with_nettle+y}
  14453. then :
  14454. withval=$with_nettle;
  14455. fi
  14456. # Check whether --with-openssl was given.
  14457. if test ${with_openssl+y}
  14458. then :
  14459. withval=$with_openssl;
  14460. fi
  14461. case "$host_os" in
  14462. *darwin* ) with_openssl=no ;;
  14463. esac
  14464. # Check whether --with-xml2 was given.
  14465. if test ${with_xml2+y}
  14466. then :
  14467. withval=$with_xml2;
  14468. fi
  14469. # Check whether --with-expat was given.
  14470. if test ${with_expat+y}
  14471. then :
  14472. withval=$with_expat;
  14473. fi
  14474. if test "x$with_xml2" != "xno"; then
  14475. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  14476. if test -n "$ac_tool_prefix"; then
  14477. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  14478. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  14479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14480. printf %s "checking for $ac_word... " >&6; }
  14481. if test ${ac_cv_path_PKG_CONFIG+y}
  14482. then :
  14483. printf %s "(cached) " >&6
  14484. else $as_nop
  14485. case $PKG_CONFIG in
  14486. [\\/]* | ?:[\\/]*)
  14487. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  14488. ;;
  14489. *)
  14490. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14491. for as_dir in $PATH
  14492. do
  14493. IFS=$as_save_IFS
  14494. case $as_dir in #(((
  14495. '') as_dir=./ ;;
  14496. */) ;;
  14497. *) as_dir=$as_dir/ ;;
  14498. esac
  14499. for ac_exec_ext in '' $ac_executable_extensions; do
  14500. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14501. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  14502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14503. break 2
  14504. fi
  14505. done
  14506. done
  14507. IFS=$as_save_IFS
  14508. ;;
  14509. esac
  14510. fi
  14511. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  14512. if test -n "$PKG_CONFIG"; then
  14513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  14514. printf "%s\n" "$PKG_CONFIG" >&6; }
  14515. else
  14516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14517. printf "%s\n" "no" >&6; }
  14518. fi
  14519. fi
  14520. if test -z "$ac_cv_path_PKG_CONFIG"; then
  14521. ac_pt_PKG_CONFIG=$PKG_CONFIG
  14522. # Extract the first word of "pkg-config", so it can be a program name with args.
  14523. set dummy pkg-config; ac_word=$2
  14524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14525. printf %s "checking for $ac_word... " >&6; }
  14526. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  14527. then :
  14528. printf %s "(cached) " >&6
  14529. else $as_nop
  14530. case $ac_pt_PKG_CONFIG in
  14531. [\\/]* | ?:[\\/]*)
  14532. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  14533. ;;
  14534. *)
  14535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14536. for as_dir in $PATH
  14537. do
  14538. IFS=$as_save_IFS
  14539. case $as_dir in #(((
  14540. '') as_dir=./ ;;
  14541. */) ;;
  14542. *) as_dir=$as_dir/ ;;
  14543. esac
  14544. for ac_exec_ext in '' $ac_executable_extensions; do
  14545. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  14546. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  14547. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  14548. break 2
  14549. fi
  14550. done
  14551. done
  14552. IFS=$as_save_IFS
  14553. ;;
  14554. esac
  14555. fi
  14556. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  14557. if test -n "$ac_pt_PKG_CONFIG"; then
  14558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  14559. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  14560. else
  14561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14562. printf "%s\n" "no" >&6; }
  14563. fi
  14564. if test "x$ac_pt_PKG_CONFIG" = x; then
  14565. PKG_CONFIG=""
  14566. else
  14567. case $cross_compiling:$ac_tool_warned in
  14568. yes:)
  14569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  14570. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  14571. ac_tool_warned=yes ;;
  14572. esac
  14573. PKG_CONFIG=$ac_pt_PKG_CONFIG
  14574. fi
  14575. else
  14576. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  14577. fi
  14578. fi
  14579. if test -n "$PKG_CONFIG"; then
  14580. _pkg_min_version=0.9.0
  14581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  14582. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  14583. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  14584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14585. printf "%s\n" "yes" >&6; }
  14586. else
  14587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14588. printf "%s\n" "no" >&6; }
  14589. PKG_CONFIG=""
  14590. fi
  14591. fi
  14592. pkg_failed=no
  14593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
  14594. printf %s "checking for libxml-2.0... " >&6; }
  14595. if test -n "$LIBXML2_PC_CFLAGS"; then
  14596. pkg_cv_LIBXML2_PC_CFLAGS="$LIBXML2_PC_CFLAGS"
  14597. elif test -n "$PKG_CONFIG"; then
  14598. if test -n "$PKG_CONFIG" && \
  14599. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  14600. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  14601. ac_status=$?
  14602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14603. test $ac_status = 0; }; then
  14604. pkg_cv_LIBXML2_PC_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  14605. test "x$?" != "x0" && pkg_failed=yes
  14606. else
  14607. pkg_failed=yes
  14608. fi
  14609. else
  14610. pkg_failed=untried
  14611. fi
  14612. if test -n "$LIBXML2_PC_LIBS"; then
  14613. pkg_cv_LIBXML2_PC_LIBS="$LIBXML2_PC_LIBS"
  14614. elif test -n "$PKG_CONFIG"; then
  14615. if test -n "$PKG_CONFIG" && \
  14616. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  14617. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  14618. ac_status=$?
  14619. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14620. test $ac_status = 0; }; then
  14621. pkg_cv_LIBXML2_PC_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  14622. test "x$?" != "x0" && pkg_failed=yes
  14623. else
  14624. pkg_failed=yes
  14625. fi
  14626. else
  14627. pkg_failed=untried
  14628. fi
  14629. if test $pkg_failed = yes; then
  14630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14631. printf "%s\n" "no" >&6; }
  14632. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  14633. _pkg_short_errors_supported=yes
  14634. else
  14635. _pkg_short_errors_supported=no
  14636. fi
  14637. if test $_pkg_short_errors_supported = yes; then
  14638. LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
  14639. else
  14640. LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
  14641. fi
  14642. # Put the nasty error message in config.log where it belongs
  14643. echo "$LIBXML2_PC_PKG_ERRORS" >&5
  14644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
  14645. printf %s "checking for xmlInitParser in -lxml2... " >&6; }
  14646. if test ${ac_cv_lib_xml2_xmlInitParser+y}
  14647. then :
  14648. printf %s "(cached) " >&6
  14649. else $as_nop
  14650. ac_check_lib_save_LIBS=$LIBS
  14651. LIBS="-lxml2 $LIBS"
  14652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14653. /* end confdefs.h. */
  14654. /* Override any GCC internal prototype to avoid an error.
  14655. Use char because int might match the return type of a GCC
  14656. builtin and then its argument prototype would still apply. */
  14657. char xmlInitParser ();
  14658. int
  14659. main (void)
  14660. {
  14661. return xmlInitParser ();
  14662. ;
  14663. return 0;
  14664. }
  14665. _ACEOF
  14666. if ac_fn_c_try_link "$LINENO"
  14667. then :
  14668. ac_cv_lib_xml2_xmlInitParser=yes
  14669. else $as_nop
  14670. ac_cv_lib_xml2_xmlInitParser=no
  14671. fi
  14672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14673. conftest$ac_exeext conftest.$ac_ext
  14674. LIBS=$ac_check_lib_save_LIBS
  14675. fi
  14676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
  14677. printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
  14678. if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
  14679. then :
  14680. printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
  14681. LIBS="-lxml2 $LIBS"
  14682. fi
  14683. elif test $pkg_failed = untried; then
  14684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14685. printf "%s\n" "no" >&6; }
  14686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
  14687. printf %s "checking for xmlInitParser in -lxml2... " >&6; }
  14688. if test ${ac_cv_lib_xml2_xmlInitParser+y}
  14689. then :
  14690. printf %s "(cached) " >&6
  14691. else $as_nop
  14692. ac_check_lib_save_LIBS=$LIBS
  14693. LIBS="-lxml2 $LIBS"
  14694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14695. /* end confdefs.h. */
  14696. /* Override any GCC internal prototype to avoid an error.
  14697. Use char because int might match the return type of a GCC
  14698. builtin and then its argument prototype would still apply. */
  14699. char xmlInitParser ();
  14700. int
  14701. main (void)
  14702. {
  14703. return xmlInitParser ();
  14704. ;
  14705. return 0;
  14706. }
  14707. _ACEOF
  14708. if ac_fn_c_try_link "$LINENO"
  14709. then :
  14710. ac_cv_lib_xml2_xmlInitParser=yes
  14711. else $as_nop
  14712. ac_cv_lib_xml2_xmlInitParser=no
  14713. fi
  14714. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14715. conftest$ac_exeext conftest.$ac_ext
  14716. LIBS=$ac_check_lib_save_LIBS
  14717. fi
  14718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
  14719. printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
  14720. if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
  14721. then :
  14722. printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
  14723. LIBS="-lxml2 $LIBS"
  14724. fi
  14725. else
  14726. LIBXML2_PC_CFLAGS=$pkg_cv_LIBXML2_PC_CFLAGS
  14727. LIBXML2_PC_LIBS=$pkg_cv_LIBXML2_PC_LIBS
  14728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14729. printf "%s\n" "yes" >&6; }
  14730. CPPFLAGS="${CPPFLAGS} ${LIBXML2_PC_CFLAGS}"
  14731. LIBS="${LIBS} ${LIBXML2_PC_LIBS}"
  14732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
  14733. printf %s "checking for xmlInitParser in -lxml2... " >&6; }
  14734. if test ${ac_cv_lib_xml2_xmlInitParser+y}
  14735. then :
  14736. printf %s "(cached) " >&6
  14737. else $as_nop
  14738. ac_check_lib_save_LIBS=$LIBS
  14739. LIBS="-lxml2 $LIBS"
  14740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14741. /* end confdefs.h. */
  14742. /* Override any GCC internal prototype to avoid an error.
  14743. Use char because int might match the return type of a GCC
  14744. builtin and then its argument prototype would still apply. */
  14745. char xmlInitParser ();
  14746. int
  14747. main (void)
  14748. {
  14749. return xmlInitParser ();
  14750. ;
  14751. return 0;
  14752. }
  14753. _ACEOF
  14754. if ac_fn_c_try_link "$LINENO"
  14755. then :
  14756. ac_cv_lib_xml2_xmlInitParser=yes
  14757. else $as_nop
  14758. ac_cv_lib_xml2_xmlInitParser=no
  14759. fi
  14760. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14761. conftest$ac_exeext conftest.$ac_ext
  14762. LIBS=$ac_check_lib_save_LIBS
  14763. fi
  14764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
  14765. printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
  14766. if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
  14767. then :
  14768. true
  14769. else $as_nop
  14770. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14771. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  14772. as_fn_error $? "Missing xml2 library
  14773. See \`config.log' for more details" "$LINENO" 5; }
  14774. fi
  14775. fi
  14776. ac_fn_c_check_header_compile "$LINENO" "libxml/xmlreader.h" "ac_cv_header_libxml_xmlreader_h" "$ac_includes_default"
  14777. if test "x$ac_cv_header_libxml_xmlreader_h" = xyes
  14778. then :
  14779. printf "%s\n" "#define HAVE_LIBXML_XMLREADER_H 1" >>confdefs.h
  14780. fi
  14781. ac_fn_c_check_header_compile "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
  14782. if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes
  14783. then :
  14784. printf "%s\n" "#define HAVE_LIBXML_XMLWRITER_H 1" >>confdefs.h
  14785. fi
  14786. fi
  14787. if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then
  14788. if test "x$with_expat" != "xno"; then
  14789. ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  14790. if test "x$ac_cv_header_expat_h" = xyes
  14791. then :
  14792. printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h
  14793. fi
  14794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  14795. printf %s "checking for XML_ParserCreate in -lexpat... " >&6; }
  14796. if test ${ac_cv_lib_expat_XML_ParserCreate+y}
  14797. then :
  14798. printf %s "(cached) " >&6
  14799. else $as_nop
  14800. ac_check_lib_save_LIBS=$LIBS
  14801. LIBS="-lexpat $LIBS"
  14802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14803. /* end confdefs.h. */
  14804. /* Override any GCC internal prototype to avoid an error.
  14805. Use char because int might match the return type of a GCC
  14806. builtin and then its argument prototype would still apply. */
  14807. char XML_ParserCreate ();
  14808. int
  14809. main (void)
  14810. {
  14811. return XML_ParserCreate ();
  14812. ;
  14813. return 0;
  14814. }
  14815. _ACEOF
  14816. if ac_fn_c_try_link "$LINENO"
  14817. then :
  14818. ac_cv_lib_expat_XML_ParserCreate=yes
  14819. else $as_nop
  14820. ac_cv_lib_expat_XML_ParserCreate=no
  14821. fi
  14822. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14823. conftest$ac_exeext conftest.$ac_ext
  14824. LIBS=$ac_check_lib_save_LIBS
  14825. fi
  14826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  14827. printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  14828. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes
  14829. then :
  14830. printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h
  14831. LIBS="-lexpat $LIBS"
  14832. fi
  14833. fi
  14834. fi
  14835. # Check whether --enable-posix-regex-lib was given.
  14836. if test ${enable_posix_regex_lib+y}
  14837. then :
  14838. enableval=$enable_posix_regex_lib;
  14839. else $as_nop
  14840. enable_posix_regex_lib=auto
  14841. fi
  14842. posix_regex_lib_found=
  14843. if test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libc" || test "$enable_posix_regex_lib" = "libregex"; then
  14844. ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14845. if test "x$ac_cv_header_regex_h" = xyes
  14846. then :
  14847. printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
  14848. fi
  14849. if test "x$ac_cv_header_regex_h" != "xno"; then
  14850. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  14851. if test "x$ac_cv_func_regcomp" = xyes
  14852. then :
  14853. fi
  14854. if test "x$ac_cv_func_regcomp" = xyes; then
  14855. posix_regex_lib_found=1
  14856. else
  14857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
  14858. printf %s "checking for regcomp in -lregex... " >&6; }
  14859. if test ${ac_cv_lib_regex_regcomp+y}
  14860. then :
  14861. printf %s "(cached) " >&6
  14862. else $as_nop
  14863. ac_check_lib_save_LIBS=$LIBS
  14864. LIBS="-lregex $LIBS"
  14865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14866. /* end confdefs.h. */
  14867. /* Override any GCC internal prototype to avoid an error.
  14868. Use char because int might match the return type of a GCC
  14869. builtin and then its argument prototype would still apply. */
  14870. char regcomp ();
  14871. int
  14872. main (void)
  14873. {
  14874. return regcomp ();
  14875. ;
  14876. return 0;
  14877. }
  14878. _ACEOF
  14879. if ac_fn_c_try_link "$LINENO"
  14880. then :
  14881. ac_cv_lib_regex_regcomp=yes
  14882. else $as_nop
  14883. ac_cv_lib_regex_regcomp=no
  14884. fi
  14885. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14886. conftest$ac_exeext conftest.$ac_ext
  14887. LIBS=$ac_check_lib_save_LIBS
  14888. fi
  14889. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
  14890. printf "%s\n" "$ac_cv_lib_regex_regcomp" >&6; }
  14891. if test "x$ac_cv_lib_regex_regcomp" = xyes
  14892. then :
  14893. printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
  14894. LIBS="-lregex $LIBS"
  14895. fi
  14896. if test "x$ac_cv_lib_regex_regcomp" = xyes; then
  14897. posix_regex_lib_found=1
  14898. fi
  14899. fi
  14900. fi
  14901. fi
  14902. if test -z $posix_regex_lib_found && (test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libpcreposix"); then
  14903. ac_fn_c_check_header_compile "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
  14904. if test "x$ac_cv_header_pcreposix_h" = xyes
  14905. then :
  14906. printf "%s\n" "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
  14907. fi
  14908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
  14909. printf %s "checking for regcomp in -lpcreposix... " >&6; }
  14910. if test ${ac_cv_lib_pcreposix_regcomp+y}
  14911. then :
  14912. printf %s "(cached) " >&6
  14913. else $as_nop
  14914. ac_check_lib_save_LIBS=$LIBS
  14915. LIBS="-lpcreposix $LIBS"
  14916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14917. /* end confdefs.h. */
  14918. /* Override any GCC internal prototype to avoid an error.
  14919. Use char because int might match the return type of a GCC
  14920. builtin and then its argument prototype would still apply. */
  14921. char regcomp ();
  14922. int
  14923. main (void)
  14924. {
  14925. return regcomp ();
  14926. ;
  14927. return 0;
  14928. }
  14929. _ACEOF
  14930. if ac_fn_c_try_link "$LINENO"
  14931. then :
  14932. ac_cv_lib_pcreposix_regcomp=yes
  14933. else $as_nop
  14934. ac_cv_lib_pcreposix_regcomp=no
  14935. fi
  14936. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14937. conftest$ac_exeext conftest.$ac_ext
  14938. LIBS=$ac_check_lib_save_LIBS
  14939. fi
  14940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
  14941. printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
  14942. if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
  14943. then :
  14944. printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
  14945. LIBS="-lpcreposix $LIBS"
  14946. fi
  14947. if test "x$ac_cv_lib_pcreposix_regcomp" != xyes; then
  14948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying libpcreposix check again with libpcre" >&5
  14949. printf "%s\n" "$as_me: trying libpcreposix check again with libpcre" >&6;}
  14950. unset ac_cv_lib_pcreposix_regcomp
  14951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
  14952. printf %s "checking for pcre_exec in -lpcre... " >&6; }
  14953. if test ${ac_cv_lib_pcre_pcre_exec+y}
  14954. then :
  14955. printf %s "(cached) " >&6
  14956. else $as_nop
  14957. ac_check_lib_save_LIBS=$LIBS
  14958. LIBS="-lpcre $LIBS"
  14959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14960. /* end confdefs.h. */
  14961. /* Override any GCC internal prototype to avoid an error.
  14962. Use char because int might match the return type of a GCC
  14963. builtin and then its argument prototype would still apply. */
  14964. char pcre_exec ();
  14965. int
  14966. main (void)
  14967. {
  14968. return pcre_exec ();
  14969. ;
  14970. return 0;
  14971. }
  14972. _ACEOF
  14973. if ac_fn_c_try_link "$LINENO"
  14974. then :
  14975. ac_cv_lib_pcre_pcre_exec=yes
  14976. else $as_nop
  14977. ac_cv_lib_pcre_pcre_exec=no
  14978. fi
  14979. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14980. conftest$ac_exeext conftest.$ac_ext
  14981. LIBS=$ac_check_lib_save_LIBS
  14982. fi
  14983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
  14984. printf "%s\n" "$ac_cv_lib_pcre_pcre_exec" >&6; }
  14985. if test "x$ac_cv_lib_pcre_pcre_exec" = xyes
  14986. then :
  14987. printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h
  14988. LIBS="-lpcre $LIBS"
  14989. fi
  14990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
  14991. printf %s "checking for regcomp in -lpcreposix... " >&6; }
  14992. if test ${ac_cv_lib_pcreposix_regcomp+y}
  14993. then :
  14994. printf %s "(cached) " >&6
  14995. else $as_nop
  14996. ac_check_lib_save_LIBS=$LIBS
  14997. LIBS="-lpcreposix $LIBS"
  14998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14999. /* end confdefs.h. */
  15000. /* Override any GCC internal prototype to avoid an error.
  15001. Use char because int might match the return type of a GCC
  15002. builtin and then its argument prototype would still apply. */
  15003. char regcomp ();
  15004. int
  15005. main (void)
  15006. {
  15007. return regcomp ();
  15008. ;
  15009. return 0;
  15010. }
  15011. _ACEOF
  15012. if ac_fn_c_try_link "$LINENO"
  15013. then :
  15014. ac_cv_lib_pcreposix_regcomp=yes
  15015. else $as_nop
  15016. ac_cv_lib_pcreposix_regcomp=no
  15017. fi
  15018. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15019. conftest$ac_exeext conftest.$ac_ext
  15020. LIBS=$ac_check_lib_save_LIBS
  15021. fi
  15022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
  15023. printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
  15024. if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
  15025. then :
  15026. printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
  15027. LIBS="-lpcreposix $LIBS"
  15028. fi
  15029. if test "x$ac_cv_lib_pcre_pcre_exec" = xyes && test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then
  15030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE_STATIC needs to be defined" >&5
  15031. printf %s "checking if PCRE_STATIC needs to be defined... " >&6; }
  15032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15033. /* end confdefs.h. */
  15034. #include <pcreposix.h>
  15035. int main() { return regcomp(NULL, NULL, 0); }
  15036. _ACEOF
  15037. if ac_fn_c_try_link "$LINENO"
  15038. then :
  15039. without_pcre_static=yes
  15040. else $as_nop
  15041. without_pcre_static=no
  15042. fi
  15043. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15044. conftest$ac_exeext conftest.$ac_ext
  15045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15046. /* end confdefs.h. */
  15047. #define PCRE_STATIC
  15048. #include <pcreposix.h>
  15049. int main() { return regcomp(NULL, NULL, 0); }
  15050. _ACEOF
  15051. if ac_fn_c_try_link "$LINENO"
  15052. then :
  15053. with_pcre_static=yes
  15054. else $as_nop
  15055. with_pcre_static=no
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15058. conftest$ac_exeext conftest.$ac_ext
  15059. if test "x$without_pcre_static" != xyes && test "x$with_pcre_static" = xyes; then
  15060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15061. printf "%s\n" "yes" >&6; }
  15062. printf "%s\n" "#define PCRE_STATIC 1" >>confdefs.h
  15063. elif test "x$without_pcre_static" = xyes || test "x$with_pcre_static" = xyes; then
  15064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15065. printf "%s\n" "no" >&6; }
  15066. fi
  15067. posix_regex_lib_found=1
  15068. fi
  15069. else
  15070. posix_regex_lib_found=1
  15071. fi
  15072. fi
  15073. # TODO: Give the user the option of using a pre-existing system
  15074. # libarchive. This will define HAVE_LIBARCHIVE which will cause
  15075. # bsdtar_platform.h to use #include <...> for the libarchive headers.
  15076. # Need to include Makefile.am magic to link against system
  15077. # -larchive in that case.
  15078. #AC_CHECK_LIB(archive,archive_version)
  15079. # Checks for supported compiler flags
  15080. for flag in -Wall -Wformat -Wformat-security; do
  15081. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  15082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  15083. printf %s "checking whether C compiler accepts $flag... " >&6; }
  15084. if eval test \${$as_CACHEVAR+y}
  15085. then :
  15086. printf %s "(cached) " >&6
  15087. else $as_nop
  15088. ax_check_save_flags=$CFLAGS
  15089. CFLAGS="$CFLAGS $flag"
  15090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15091. /* end confdefs.h. */
  15092. int
  15093. main (void)
  15094. {
  15095. ;
  15096. return 0;
  15097. }
  15098. _ACEOF
  15099. if ac_fn_c_try_compile "$LINENO"
  15100. then :
  15101. eval "$as_CACHEVAR=yes"
  15102. else $as_nop
  15103. eval "$as_CACHEVAR=no"
  15104. fi
  15105. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15106. CFLAGS=$ax_check_save_flags
  15107. fi
  15108. eval ac_res=\$$as_CACHEVAR
  15109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15110. printf "%s\n" "$ac_res" >&6; }
  15111. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15112. then :
  15113. if test ${CFLAGS+y}
  15114. then :
  15115. case " $CFLAGS " in #(
  15116. *" $flag "*) :
  15117. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  15118. (: CFLAGS already contains $flag) 2>&5
  15119. ac_status=$?
  15120. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15121. test $ac_status = 0; } ;; #(
  15122. *) :
  15123. as_fn_append CFLAGS " $flag"
  15124. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15125. (: CFLAGS="$CFLAGS") 2>&5
  15126. ac_status=$?
  15127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15128. test $ac_status = 0; }
  15129. ;;
  15130. esac
  15131. else $as_nop
  15132. CFLAGS=$flag
  15133. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15134. (: CFLAGS="$CFLAGS") 2>&5
  15135. ac_status=$?
  15136. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15137. test $ac_status = 0; }
  15138. fi
  15139. else $as_nop
  15140. :
  15141. fi
  15142. done
  15143. # Place the functions and data into separate sections, allowing the linker
  15144. # to garbage collect the unused ones.
  15145. save_LDFLAGS=$LDFLAGS
  15146. LDFLAGS="$LDFLAGS -Wl,--gc-sections"
  15147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports --gc-sections" >&5
  15148. printf %s "checking whether ld supports --gc-sections... " >&6; }
  15149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15150. /* end confdefs.h. */
  15151. static char UnusedFunc() { return 5; } int main() { return 0;}
  15152. _ACEOF
  15153. if ac_fn_c_try_link "$LINENO"
  15154. then :
  15155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15156. printf "%s\n" "yes" >&6; }
  15157. GC_SECTIONS="-Wl,--gc-sections";
  15158. for flag in -ffunction-sections -fdata-sections; do
  15159. as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
  15160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
  15161. printf %s "checking whether C compiler accepts $flag... " >&6; }
  15162. if eval test \${$as_CACHEVAR+y}
  15163. then :
  15164. printf %s "(cached) " >&6
  15165. else $as_nop
  15166. ax_check_save_flags=$CFLAGS
  15167. CFLAGS="$CFLAGS $flag"
  15168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15169. /* end confdefs.h. */
  15170. int
  15171. main (void)
  15172. {
  15173. ;
  15174. return 0;
  15175. }
  15176. _ACEOF
  15177. if ac_fn_c_try_compile "$LINENO"
  15178. then :
  15179. eval "$as_CACHEVAR=yes"
  15180. else $as_nop
  15181. eval "$as_CACHEVAR=no"
  15182. fi
  15183. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15184. CFLAGS=$ax_check_save_flags
  15185. fi
  15186. eval ac_res=\$$as_CACHEVAR
  15187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15188. printf "%s\n" "$ac_res" >&6; }
  15189. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
  15190. then :
  15191. if test ${CFLAGS+y}
  15192. then :
  15193. case " $CFLAGS " in #(
  15194. *" $flag "*) :
  15195. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
  15196. (: CFLAGS already contains $flag) 2>&5
  15197. ac_status=$?
  15198. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15199. test $ac_status = 0; } ;; #(
  15200. *) :
  15201. as_fn_append CFLAGS " $flag"
  15202. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15203. (: CFLAGS="$CFLAGS") 2>&5
  15204. ac_status=$?
  15205. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15206. test $ac_status = 0; }
  15207. ;;
  15208. esac
  15209. else $as_nop
  15210. CFLAGS=$flag
  15211. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
  15212. (: CFLAGS="$CFLAGS") 2>&5
  15213. ac_status=$?
  15214. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15215. test $ac_status = 0; }
  15216. fi
  15217. else $as_nop
  15218. :
  15219. fi
  15220. done
  15221. else $as_nop
  15222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15223. printf "%s\n" "no" >&6; }
  15224. GC_SECTIONS="";
  15225. fi
  15226. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15227. conftest$ac_exeext conftest.$ac_ext
  15228. LDFLAGS=$save_LDFLAGS
  15229. # Checks for typedefs, structures, and compiler characteristics.
  15230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15231. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15232. if test ${ac_cv_c_const+y}
  15233. then :
  15234. printf %s "(cached) " >&6
  15235. else $as_nop
  15236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15237. /* end confdefs.h. */
  15238. int
  15239. main (void)
  15240. {
  15241. #ifndef __cplusplus
  15242. /* Ultrix mips cc rejects this sort of thing. */
  15243. typedef int charset[2];
  15244. const charset cs = { 0, 0 };
  15245. /* SunOS 4.1.1 cc rejects this. */
  15246. char const *const *pcpcc;
  15247. char **ppc;
  15248. /* NEC SVR4.0.2 mips cc rejects this. */
  15249. struct point {int x, y;};
  15250. static struct point const zero = {0,0};
  15251. /* IBM XL C 1.02.0.0 rejects this.
  15252. It does not let you subtract one const X* pointer from another in
  15253. an arm of an if-expression whose if-part is not a constant
  15254. expression */
  15255. const char *g = "string";
  15256. pcpcc = &g + (g ? g-g : 0);
  15257. /* HPUX 7.0 cc rejects these. */
  15258. ++pcpcc;
  15259. ppc = (char**) pcpcc;
  15260. pcpcc = (char const *const *) ppc;
  15261. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15262. char tx;
  15263. char *t = &tx;
  15264. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15265. *t++ = 0;
  15266. if (s) return 0;
  15267. }
  15268. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15269. int x[] = {25, 17};
  15270. const int *foo = &x[0];
  15271. ++foo;
  15272. }
  15273. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15274. typedef const int *iptr;
  15275. iptr p = 0;
  15276. ++p;
  15277. }
  15278. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  15279. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  15280. struct s { int j; const int *ap[3]; } bx;
  15281. struct s *b = &bx; b->j = 5;
  15282. }
  15283. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  15284. const int foo = 10;
  15285. if (!foo) return 0;
  15286. }
  15287. return !cs[0] && !zero.x;
  15288. #endif
  15289. ;
  15290. return 0;
  15291. }
  15292. _ACEOF
  15293. if ac_fn_c_try_compile "$LINENO"
  15294. then :
  15295. ac_cv_c_const=yes
  15296. else $as_nop
  15297. ac_cv_c_const=no
  15298. fi
  15299. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15300. fi
  15301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  15302. printf "%s\n" "$ac_cv_c_const" >&6; }
  15303. if test $ac_cv_c_const = no; then
  15304. printf "%s\n" "#define const /**/" >>confdefs.h
  15305. fi
  15306. # la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
  15307. # and MSVC. Use a customized version.
  15308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  15309. printf %s "checking for uid_t in sys/types.h... " >&6; }
  15310. if test ${la_cv_type_uid_t+y}
  15311. then :
  15312. printf %s "(cached) " >&6
  15313. else $as_nop
  15314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15315. /* end confdefs.h. */
  15316. #include <sys/types.h>
  15317. _ACEOF
  15318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15319. $EGREP "uid_t" >/dev/null 2>&1
  15320. then :
  15321. la_cv_type_uid_t=yes
  15322. else $as_nop
  15323. la_cv_type_uid_t=no
  15324. fi
  15325. rm -rf conftest*
  15326. fi
  15327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5
  15328. printf "%s\n" "$la_cv_type_uid_t" >&6; }
  15329. if test $la_cv_type_uid_t = no; then
  15330. case $host in
  15331. *mingw*) def_uid_t=short ;;
  15332. *) def_uid_t=int ;;
  15333. esac
  15334. printf "%s\n" "#define uid_t $def_uid_t" >>confdefs.h
  15335. printf "%s\n" "#define gid_t $def_uid_t" >>confdefs.h
  15336. fi
  15337. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  15338. if test "x$ac_cv_type_mode_t" = xyes
  15339. then :
  15340. else $as_nop
  15341. printf "%s\n" "#define mode_t int" >>confdefs.h
  15342. fi
  15343. # AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
  15344. # most systems... default to "long long" instead.
  15345. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  15346. if test "x$ac_cv_type_off_t" = xyes
  15347. then :
  15348. else $as_nop
  15349. printf "%s\n" "#define off_t long long" >>confdefs.h
  15350. fi
  15351. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  15352. if test "x$ac_cv_type_size_t" = xyes
  15353. then :
  15354. else $as_nop
  15355. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  15356. fi
  15357. ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
  15358. if test "x$ac_cv_type_id_t" = xyes
  15359. then :
  15360. else $as_nop
  15361. printf "%s\n" "#define id_t unsigned long" >>confdefs.h
  15362. fi
  15363. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  15364. if test "x$ac_cv_type_uintptr_t" = xyes
  15365. then :
  15366. else $as_nop
  15367. printf "%s\n" "#define uintptr_t unsigned int" >>confdefs.h
  15368. fi
  15369. # Check for tm_gmtoff in struct tm
  15370. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
  15371. #include <time.h>
  15372. "
  15373. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
  15374. then :
  15375. printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
  15376. fi
  15377. ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
  15378. #include <time.h>
  15379. "
  15380. if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes
  15381. then :
  15382. printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h
  15383. fi
  15384. # Check for f_namemax in struct statfs
  15385. ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "
  15386. #include <sys/param.h>
  15387. #include <sys/mount.h>
  15388. "
  15389. if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes
  15390. then :
  15391. printf "%s\n" "#define HAVE_STRUCT_STATFS_F_NAMEMAX 1" >>confdefs.h
  15392. fi
  15393. # Check for f_iosize in struct statfs
  15394. ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "
  15395. #include <sys/param.h>
  15396. #include <sys/mount.h>
  15397. "
  15398. if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes
  15399. then :
  15400. printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h
  15401. fi
  15402. # Check for f_iosize in struct statvfs
  15403. ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "
  15404. #include <sys/statvfs.h>
  15405. "
  15406. if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
  15407. then :
  15408. printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
  15409. fi
  15410. # Check for birthtime in struct stat
  15411. ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
  15412. if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
  15413. then :
  15414. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
  15415. fi
  15416. # Check for high-resolution timestamps in struct stat
  15417. ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
  15418. if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
  15419. then :
  15420. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
  15421. fi
  15422. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
  15423. if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
  15424. then :
  15425. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
  15426. fi
  15427. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
  15428. if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
  15429. then :
  15430. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
  15431. fi
  15432. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
  15433. if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes
  15434. then :
  15435. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_N 1" >>confdefs.h
  15436. fi
  15437. # AIX
  15438. ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
  15439. if test "x$ac_cv_member_struct_stat_st_umtime" = xyes
  15440. then :
  15441. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_UMTIME 1" >>confdefs.h
  15442. fi
  15443. # Tru64
  15444. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
  15445. if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes
  15446. then :
  15447. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1" >>confdefs.h
  15448. fi
  15449. # Hurd
  15450. # Check for block size support in struct stat
  15451. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  15452. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
  15453. then :
  15454. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
  15455. fi
  15456. # Check for st_flags in struct stat (BSD fflags)
  15457. ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
  15458. if test "x$ac_cv_member_struct_stat_st_flags" = xyes
  15459. then :
  15460. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
  15461. fi
  15462. # If you have uintmax_t, we assume printf supports %ju
  15463. # If you have unsigned long long, we assume printf supports %llu
  15464. # TODO: Check for %ju and %llu support directly.
  15465. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
  15466. if test "x$ac_cv_type_uintmax_t" = xyes
  15467. then :
  15468. printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
  15469. fi
  15470. ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
  15471. if test "x$ac_cv_type_unsigned_long_long" = xyes
  15472. then :
  15473. printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
  15474. fi
  15475. # We use C99-style integer types
  15476. # Declare them if the local platform doesn't already do so.
  15477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  15478. printf %s "checking for unsigned long long int... " >&6; }
  15479. if test ${ac_cv_type_unsigned_long_long_int+y}
  15480. then :
  15481. printf %s "(cached) " >&6
  15482. else $as_nop
  15483. ac_cv_type_unsigned_long_long_int=yes
  15484. case $ac_prog_cc_stdc in
  15485. no | c89) ;;
  15486. *)
  15487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15488. /* end confdefs.h. */
  15489. /* For now, do not test the preprocessor; as of 2007 there are too many
  15490. implementations with broken preprocessors. Perhaps this can
  15491. be revisited in 2012. In the meantime, code should not expect
  15492. #if to work with literals wider than 32 bits. */
  15493. /* Test literals. */
  15494. long long int ll = 9223372036854775807ll;
  15495. long long int nll = -9223372036854775807LL;
  15496. unsigned long long int ull = 18446744073709551615ULL;
  15497. /* Test constant expressions. */
  15498. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  15499. ? 1 : -1)];
  15500. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  15501. ? 1 : -1)];
  15502. int i = 63;
  15503. int
  15504. main (void)
  15505. {
  15506. /* Test availability of runtime routines for shift and division. */
  15507. long long int llmax = 9223372036854775807ll;
  15508. unsigned long long int ullmax = 18446744073709551615ull;
  15509. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  15510. | (llmax / ll) | (llmax % ll)
  15511. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  15512. | (ullmax / ull) | (ullmax % ull));
  15513. ;
  15514. return 0;
  15515. }
  15516. _ACEOF
  15517. if ac_fn_c_try_link "$LINENO"
  15518. then :
  15519. else $as_nop
  15520. ac_cv_type_unsigned_long_long_int=no
  15521. fi
  15522. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15523. conftest$ac_exeext conftest.$ac_ext;;
  15524. esac
  15525. fi
  15526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  15527. printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
  15528. if test $ac_cv_type_unsigned_long_long_int = yes; then
  15529. printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  15530. fi
  15531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  15532. printf %s "checking for long long int... " >&6; }
  15533. if test ${ac_cv_type_long_long_int+y}
  15534. then :
  15535. printf %s "(cached) " >&6
  15536. else $as_nop
  15537. ac_cv_type_long_long_int=yes
  15538. case $ac_prog_cc_stdc in
  15539. no | c89) ;;
  15540. *)
  15541. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  15542. if test $ac_cv_type_long_long_int = yes; then
  15543. if test "$cross_compiling" = yes
  15544. then :
  15545. :
  15546. else $as_nop
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. #include <limits.h>
  15550. #ifndef LLONG_MAX
  15551. # define HALF \
  15552. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  15553. # define LLONG_MAX (HALF - 1 + HALF)
  15554. #endif
  15555. int
  15556. main (void)
  15557. {
  15558. long long int n = 1;
  15559. int i;
  15560. for (i = 0; ; i++)
  15561. {
  15562. long long int m = n << i;
  15563. if (m >> i != n)
  15564. return 1;
  15565. if (LLONG_MAX / 2 < m)
  15566. break;
  15567. }
  15568. return 0;
  15569. ;
  15570. return 0;
  15571. }
  15572. _ACEOF
  15573. if ac_fn_c_try_run "$LINENO"
  15574. then :
  15575. else $as_nop
  15576. ac_cv_type_long_long_int=no
  15577. fi
  15578. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15579. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15580. fi
  15581. fi;;
  15582. esac
  15583. fi
  15584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  15585. printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
  15586. if test $ac_cv_type_long_long_int = yes; then
  15587. printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  15588. fi
  15589. ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
  15590. if test "x$ac_cv_type_intmax_t" = xyes
  15591. then :
  15592. printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
  15593. else $as_nop
  15594. test $ac_cv_type_long_long_int = yes \
  15595. && ac_type='long long int' \
  15596. || ac_type='long int'
  15597. printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
  15598. fi
  15599. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
  15600. if test "x$ac_cv_type_uintmax_t" = xyes
  15601. then :
  15602. printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
  15603. else $as_nop
  15604. test $ac_cv_type_unsigned_long_long_int = yes \
  15605. && ac_type='unsigned long long int' \
  15606. || ac_type='unsigned long int'
  15607. printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
  15608. fi
  15609. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  15610. case $ac_cv_c_int64_t in #(
  15611. no|yes) ;; #(
  15612. *)
  15613. printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
  15614. ;;
  15615. esac
  15616. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  15617. case $ac_cv_c_uint64_t in #(
  15618. no|yes) ;; #(
  15619. *)
  15620. printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
  15621. printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
  15622. ;;
  15623. esac
  15624. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  15625. case $ac_cv_c_int32_t in #(
  15626. no|yes) ;; #(
  15627. *)
  15628. printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
  15629. ;;
  15630. esac
  15631. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  15632. case $ac_cv_c_uint32_t in #(
  15633. no|yes) ;; #(
  15634. *)
  15635. printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
  15636. printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
  15637. ;;
  15638. esac
  15639. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  15640. case $ac_cv_c_int16_t in #(
  15641. no|yes) ;; #(
  15642. *)
  15643. printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
  15644. ;;
  15645. esac
  15646. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  15647. case $ac_cv_c_uint16_t in #(
  15648. no|yes) ;; #(
  15649. *)
  15650. printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
  15651. ;;
  15652. esac
  15653. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  15654. case $ac_cv_c_uint8_t in #(
  15655. no|yes) ;; #(
  15656. *)
  15657. printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
  15658. printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
  15659. ;;
  15660. esac
  15661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  15662. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  15663. if test ${ac_cv_c_undeclared_builtin_options+y}
  15664. then :
  15665. printf %s "(cached) " >&6
  15666. else $as_nop
  15667. ac_save_CFLAGS=$CFLAGS
  15668. ac_cv_c_undeclared_builtin_options='cannot detect'
  15669. for ac_arg in '' -fno-builtin; do
  15670. CFLAGS="$ac_save_CFLAGS $ac_arg"
  15671. # This test program should *not* compile successfully.
  15672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15673. /* end confdefs.h. */
  15674. int
  15675. main (void)
  15676. {
  15677. (void) strchr;
  15678. ;
  15679. return 0;
  15680. }
  15681. _ACEOF
  15682. if ac_fn_c_try_compile "$LINENO"
  15683. then :
  15684. else $as_nop
  15685. # This test program should compile successfully.
  15686. # No library function is consistently available on
  15687. # freestanding implementations, so test against a dummy
  15688. # declaration. Include always-available headers on the
  15689. # off chance that they somehow elicit warnings.
  15690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15691. /* end confdefs.h. */
  15692. #include <float.h>
  15693. #include <limits.h>
  15694. #include <stdarg.h>
  15695. #include <stddef.h>
  15696. extern void ac_decl (int, char *);
  15697. int
  15698. main (void)
  15699. {
  15700. (void) ac_decl (0, (char *) 0);
  15701. (void) ac_decl;
  15702. ;
  15703. return 0;
  15704. }
  15705. _ACEOF
  15706. if ac_fn_c_try_compile "$LINENO"
  15707. then :
  15708. if test x"$ac_arg" = x
  15709. then :
  15710. ac_cv_c_undeclared_builtin_options='none needed'
  15711. else $as_nop
  15712. ac_cv_c_undeclared_builtin_options=$ac_arg
  15713. fi
  15714. break
  15715. fi
  15716. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15717. fi
  15718. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15719. done
  15720. CFLAGS=$ac_save_CFLAGS
  15721. fi
  15722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  15723. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  15724. case $ac_cv_c_undeclared_builtin_options in #(
  15725. 'cannot detect') :
  15726. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15727. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15728. as_fn_error $? "cannot make $CC report undeclared builtins
  15729. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  15730. 'none needed') :
  15731. ac_c_undeclared_builtin_options='' ;; #(
  15732. *) :
  15733. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  15734. esac
  15735. ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15736. if test "x$ac_cv_have_decl_SIZE_MAX" = xyes
  15737. then :
  15738. ac_have_decl=1
  15739. else $as_nop
  15740. ac_have_decl=0
  15741. fi
  15742. printf "%s\n" "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h
  15743. ac_fn_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15744. if test "x$ac_cv_have_decl_INT32_MAX" = xyes
  15745. then :
  15746. ac_have_decl=1
  15747. else $as_nop
  15748. ac_have_decl=0
  15749. fi
  15750. printf "%s\n" "#define HAVE_DECL_INT32_MAX $ac_have_decl" >>confdefs.h
  15751. ac_fn_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15752. if test "x$ac_cv_have_decl_INT32_MIN" = xyes
  15753. then :
  15754. ac_have_decl=1
  15755. else $as_nop
  15756. ac_have_decl=0
  15757. fi
  15758. printf "%s\n" "#define HAVE_DECL_INT32_MIN $ac_have_decl" >>confdefs.h
  15759. ac_fn_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15760. if test "x$ac_cv_have_decl_INT64_MAX" = xyes
  15761. then :
  15762. ac_have_decl=1
  15763. else $as_nop
  15764. ac_have_decl=0
  15765. fi
  15766. printf "%s\n" "#define HAVE_DECL_INT64_MAX $ac_have_decl" >>confdefs.h
  15767. ac_fn_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15768. if test "x$ac_cv_have_decl_INT64_MIN" = xyes
  15769. then :
  15770. ac_have_decl=1
  15771. else $as_nop
  15772. ac_have_decl=0
  15773. fi
  15774. printf "%s\n" "#define HAVE_DECL_INT64_MIN $ac_have_decl" >>confdefs.h
  15775. ac_fn_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15776. if test "x$ac_cv_have_decl_UINT64_MAX" = xyes
  15777. then :
  15778. ac_have_decl=1
  15779. else $as_nop
  15780. ac_have_decl=0
  15781. fi
  15782. printf "%s\n" "#define HAVE_DECL_UINT64_MAX $ac_have_decl" >>confdefs.h
  15783. ac_fn_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15784. if test "x$ac_cv_have_decl_UINT32_MAX" = xyes
  15785. then :
  15786. ac_have_decl=1
  15787. else $as_nop
  15788. ac_have_decl=0
  15789. fi
  15790. printf "%s\n" "#define HAVE_DECL_UINT32_MAX $ac_have_decl" >>confdefs.h
  15791. ac_fn_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15792. if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes
  15793. then :
  15794. ac_have_decl=1
  15795. else $as_nop
  15796. ac_have_decl=0
  15797. fi
  15798. printf "%s\n" "#define HAVE_DECL_INTMAX_MAX $ac_have_decl" >>confdefs.h
  15799. ac_fn_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15800. if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes
  15801. then :
  15802. ac_have_decl=1
  15803. else $as_nop
  15804. ac_have_decl=0
  15805. fi
  15806. printf "%s\n" "#define HAVE_DECL_INTMAX_MIN $ac_have_decl" >>confdefs.h
  15807. ac_fn_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  15808. if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes
  15809. then :
  15810. ac_have_decl=1
  15811. else $as_nop
  15812. ac_have_decl=0
  15813. fi
  15814. printf "%s\n" "#define HAVE_DECL_UINTMAX_MAX $ac_have_decl" >>confdefs.h
  15815. ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>
  15816. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  15817. if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes
  15818. then :
  15819. printf "%s\n" "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h
  15820. fi
  15821. ac_fn_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
  15822. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  15823. if test "x$ac_cv_have_decl_EFTYPE" = xyes
  15824. then :
  15825. printf "%s\n" "#define HAVE_EFTYPE 1" >>confdefs.h
  15826. fi
  15827. ac_fn_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
  15828. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  15829. if test "x$ac_cv_have_decl_EILSEQ" = xyes
  15830. then :
  15831. printf "%s\n" "#define HAVE_EILSEQ 1" >>confdefs.h
  15832. fi
  15833. ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
  15834. if test "x$ac_cv_type_wchar_t" = xyes
  15835. then :
  15836. printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
  15837. # The cast to long int works around a bug in the HP C Compiler
  15838. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15839. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15840. # This bug is HP SR number 8606223364.
  15841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
  15842. printf %s "checking size of wchar_t... " >&6; }
  15843. if test ${ac_cv_sizeof_wchar_t+y}
  15844. then :
  15845. printf %s "(cached) " >&6
  15846. else $as_nop
  15847. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
  15848. then :
  15849. else $as_nop
  15850. if test "$ac_cv_type_wchar_t" = yes; then
  15851. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15852. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  15853. as_fn_error 77 "cannot compute sizeof (wchar_t)
  15854. See \`config.log' for more details" "$LINENO" 5; }
  15855. else
  15856. ac_cv_sizeof_wchar_t=0
  15857. fi
  15858. fi
  15859. fi
  15860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
  15861. printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
  15862. printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
  15863. fi
  15864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  15865. printf %s "checking size of int... " >&6; }
  15866. if test ${ac_cv_sizeof_int+y}
  15867. then :
  15868. printf %s "(cached) " >&6
  15869. else $as_nop
  15870. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  15871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15872. /* end confdefs.h. */
  15873. #include <sys/types.h>
  15874. int
  15875. main (void)
  15876. {
  15877. switch (0) case 0: case (sizeof (int) == $ac_size):;
  15878. ;
  15879. return 0;
  15880. }
  15881. _ACEOF
  15882. if ac_fn_c_try_compile "$LINENO"
  15883. then :
  15884. ac_cv_sizeof_int=$ac_size
  15885. fi
  15886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15887. if test x$ac_cv_sizeof_int != x ; then break; fi
  15888. done
  15889. fi
  15890. if test x$ac_cv_sizeof_int = x ; then
  15891. as_fn_error $? "cannot determine a size for int" "$LINENO" 5
  15892. fi
  15893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  15894. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  15895. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  15896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15897. printf %s "checking size of long... " >&6; }
  15898. if test ${ac_cv_sizeof_long+y}
  15899. then :
  15900. printf %s "(cached) " >&6
  15901. else $as_nop
  15902. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  15903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15904. /* end confdefs.h. */
  15905. #include <sys/types.h>
  15906. int
  15907. main (void)
  15908. {
  15909. switch (0) case 0: case (sizeof (long) == $ac_size):;
  15910. ;
  15911. return 0;
  15912. }
  15913. _ACEOF
  15914. if ac_fn_c_try_compile "$LINENO"
  15915. then :
  15916. ac_cv_sizeof_long=$ac_size
  15917. fi
  15918. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15919. if test x$ac_cv_sizeof_long != x ; then break; fi
  15920. done
  15921. fi
  15922. if test x$ac_cv_sizeof_long = x ; then
  15923. as_fn_error $? "cannot determine a size for long" "$LINENO" 5
  15924. fi
  15925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15926. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  15927. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  15928. # Checks for library functions.
  15929. if test $ac_cv_c_compiler_gnu = yes; then
  15930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  15931. printf %s "checking whether $CC needs -traditional... " >&6; }
  15932. if test ${ac_cv_prog_gcc_traditional+y}
  15933. then :
  15934. printf %s "(cached) " >&6
  15935. else $as_nop
  15936. ac_pattern="Autoconf.*'x'"
  15937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15938. /* end confdefs.h. */
  15939. #include <sgtty.h>
  15940. Autoconf TIOCGETP
  15941. _ACEOF
  15942. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15943. $EGREP "$ac_pattern" >/dev/null 2>&1
  15944. then :
  15945. ac_cv_prog_gcc_traditional=yes
  15946. else $as_nop
  15947. ac_cv_prog_gcc_traditional=no
  15948. fi
  15949. rm -rf conftest*
  15950. if test $ac_cv_prog_gcc_traditional = no; then
  15951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15952. /* end confdefs.h. */
  15953. #include <termio.h>
  15954. Autoconf TCGETA
  15955. _ACEOF
  15956. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15957. $EGREP "$ac_pattern" >/dev/null 2>&1
  15958. then :
  15959. ac_cv_prog_gcc_traditional=yes
  15960. fi
  15961. rm -rf conftest*
  15962. fi
  15963. fi
  15964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  15965. printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
  15966. if test $ac_cv_prog_gcc_traditional = yes; then
  15967. CC="$CC -traditional"
  15968. fi
  15969. fi
  15970. ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  15971. if test "x$ac_cv_header_sys_mkdev_h" = xyes
  15972. then :
  15973. printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  15974. fi
  15975. if test $ac_cv_header_sys_mkdev_h = no; then
  15976. ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  15977. if test "x$ac_cv_header_sys_sysmacros_h" = xyes
  15978. then :
  15979. printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  15980. fi
  15981. fi
  15982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  15983. printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  15984. if test ${ac_cv_sys_largefile_source+y}
  15985. then :
  15986. printf %s "(cached) " >&6
  15987. else $as_nop
  15988. while :; do
  15989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15990. /* end confdefs.h. */
  15991. #include <sys/types.h> /* for off_t */
  15992. #include <stdio.h>
  15993. int
  15994. main (void)
  15995. {
  15996. int (*fp) (FILE *, off_t, int) = fseeko;
  15997. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  15998. ;
  15999. return 0;
  16000. }
  16001. _ACEOF
  16002. if ac_fn_c_try_link "$LINENO"
  16003. then :
  16004. ac_cv_sys_largefile_source=no; break
  16005. fi
  16006. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16007. conftest$ac_exeext conftest.$ac_ext
  16008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16009. /* end confdefs.h. */
  16010. #define _LARGEFILE_SOURCE 1
  16011. #include <sys/types.h> /* for off_t */
  16012. #include <stdio.h>
  16013. int
  16014. main (void)
  16015. {
  16016. int (*fp) (FILE *, off_t, int) = fseeko;
  16017. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  16018. ;
  16019. return 0;
  16020. }
  16021. _ACEOF
  16022. if ac_fn_c_try_link "$LINENO"
  16023. then :
  16024. ac_cv_sys_largefile_source=1; break
  16025. fi
  16026. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16027. conftest$ac_exeext conftest.$ac_ext
  16028. ac_cv_sys_largefile_source=unknown
  16029. break
  16030. done
  16031. fi
  16032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  16033. printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
  16034. case $ac_cv_sys_largefile_source in #(
  16035. no | unknown) ;;
  16036. *)
  16037. printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
  16038. ;;
  16039. esac
  16040. rm -rf conftest*
  16041. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  16042. # in glibc 2.1.3, but that breaks too many other things.
  16043. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  16044. if test $ac_cv_sys_largefile_source != unknown; then
  16045. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  16046. fi
  16047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  16048. printf %s "checking for working memcmp... " >&6; }
  16049. if test ${ac_cv_func_memcmp_working+y}
  16050. then :
  16051. printf %s "(cached) " >&6
  16052. else $as_nop
  16053. if test "$cross_compiling" = yes
  16054. then :
  16055. ac_cv_func_memcmp_working=no
  16056. else $as_nop
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. $ac_includes_default
  16060. int
  16061. main (void)
  16062. {
  16063. /* Some versions of memcmp are not 8-bit clean. */
  16064. char c0 = '\100', c1 = '\200', c2 = '\201';
  16065. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16066. return 1;
  16067. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16068. or more and with at least one buffer not starting on a 4-byte boundary.
  16069. William Lewis provided this test program. */
  16070. {
  16071. char foo[21];
  16072. char bar[21];
  16073. int i;
  16074. for (i = 0; i < 4; i++)
  16075. {
  16076. char *a = foo + i;
  16077. char *b = bar + i;
  16078. strcpy (a, "--------01111111");
  16079. strcpy (b, "--------10000000");
  16080. if (memcmp (a, b, 16) >= 0)
  16081. return 1;
  16082. }
  16083. return 0;
  16084. }
  16085. ;
  16086. return 0;
  16087. }
  16088. _ACEOF
  16089. if ac_fn_c_try_run "$LINENO"
  16090. then :
  16091. ac_cv_func_memcmp_working=yes
  16092. else $as_nop
  16093. ac_cv_func_memcmp_working=no
  16094. fi
  16095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16096. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16097. fi
  16098. fi
  16099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  16100. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  16101. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16102. *" memcmp.$ac_objext "* ) ;;
  16103. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16104. ;;
  16105. esac
  16106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  16107. printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
  16108. if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
  16109. then :
  16110. printf %s "(cached) " >&6
  16111. else $as_nop
  16112. rm -f conftest.sym conftest.file
  16113. echo >conftest.file
  16114. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  16115. if test "$cross_compiling" = yes
  16116. then :
  16117. case "$host_os" in # ((
  16118. # Guess yes on glibc systems.
  16119. *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
  16120. # If we don't know, assume the worst.
  16121. *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  16122. esac
  16123. else $as_nop
  16124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16125. /* end confdefs.h. */
  16126. $ac_includes_default
  16127. int
  16128. main (void)
  16129. {
  16130. struct stat sbuf;
  16131. /* Linux will dereference the symlink and fail, as required by POSIX.
  16132. That is better in the sense that it means we will not
  16133. have to compile and use the lstat wrapper. */
  16134. return lstat ("conftest.sym/", &sbuf) == 0;
  16135. ;
  16136. return 0;
  16137. }
  16138. _ACEOF
  16139. if ac_fn_c_try_run "$LINENO"
  16140. then :
  16141. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  16142. else $as_nop
  16143. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16144. fi
  16145. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16146. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16147. fi
  16148. else
  16149. # If the `ln -s' command failed, then we probably don't even
  16150. # have an lstat function.
  16151. ac_cv_func_lstat_dereferences_slashed_symlink=no
  16152. fi
  16153. rm -f conftest.sym conftest.file
  16154. fi
  16155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  16156. printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  16157. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  16158. printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
  16159. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  16160. case " $LIBOBJS " in
  16161. *" lstat.$ac_objext "* ) ;;
  16162. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16163. ;;
  16164. esac
  16165. fi
  16166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
  16167. printf %s "checking whether lstat accepts an empty string... " >&6; }
  16168. if test ${ac_cv_func_lstat_empty_string_bug+y}
  16169. then :
  16170. printf %s "(cached) " >&6
  16171. else $as_nop
  16172. if test "$cross_compiling" = yes
  16173. then :
  16174. ac_cv_func_lstat_empty_string_bug=yes
  16175. else $as_nop
  16176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16177. /* end confdefs.h. */
  16178. $ac_includes_default
  16179. int
  16180. main (void)
  16181. {
  16182. struct stat sbuf;
  16183. return lstat ("", &sbuf) == 0;
  16184. ;
  16185. return 0;
  16186. }
  16187. _ACEOF
  16188. if ac_fn_c_try_run "$LINENO"
  16189. then :
  16190. ac_cv_func_lstat_empty_string_bug=no
  16191. else $as_nop
  16192. ac_cv_func_lstat_empty_string_bug=yes
  16193. fi
  16194. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16195. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16196. fi
  16197. fi
  16198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
  16199. printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
  16200. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  16201. case " $LIBOBJS " in
  16202. *" lstat.$ac_objext "* ) ;;
  16203. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  16204. ;;
  16205. esac
  16206. printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
  16207. fi
  16208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  16209. printf %s "checking whether stat accepts an empty string... " >&6; }
  16210. if test ${ac_cv_func_stat_empty_string_bug+y}
  16211. then :
  16212. printf %s "(cached) " >&6
  16213. else $as_nop
  16214. if test "$cross_compiling" = yes
  16215. then :
  16216. ac_cv_func_stat_empty_string_bug=yes
  16217. else $as_nop
  16218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16219. /* end confdefs.h. */
  16220. $ac_includes_default
  16221. int
  16222. main (void)
  16223. {
  16224. struct stat sbuf;
  16225. return stat ("", &sbuf) == 0;
  16226. ;
  16227. return 0;
  16228. }
  16229. _ACEOF
  16230. if ac_fn_c_try_run "$LINENO"
  16231. then :
  16232. ac_cv_func_stat_empty_string_bug=no
  16233. else $as_nop
  16234. ac_cv_func_stat_empty_string_bug=yes
  16235. fi
  16236. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16237. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16238. fi
  16239. fi
  16240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  16241. printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
  16242. if test $ac_cv_func_stat_empty_string_bug = yes; then
  16243. case " $LIBOBJS " in
  16244. *" stat.$ac_objext "* ) ;;
  16245. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  16246. ;;
  16247. esac
  16248. printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
  16249. fi
  16250. ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
  16251. if test "x$ac_cv_have_decl_strerror_r" = xyes
  16252. then :
  16253. ac_have_decl=1
  16254. else $as_nop
  16255. ac_have_decl=0
  16256. fi
  16257. printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
  16258. if test $ac_cv_have_decl_strerror_r = yes; then
  16259. # For backward compatibility's sake, define HAVE_STRERROR_R.
  16260. # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
  16261. # as AC_CHECK_DECLS_ONCE.)
  16262. printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
  16263. fi
  16264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
  16265. printf %s "checking whether strerror_r returns char *... " >&6; }
  16266. if test ${ac_cv_func_strerror_r_char_p+y}
  16267. then :
  16268. printf %s "(cached) " >&6
  16269. else $as_nop
  16270. ac_cv_func_strerror_r_char_p=no
  16271. if test $ac_cv_have_decl_strerror_r = yes; then
  16272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16273. /* end confdefs.h. */
  16274. #include <string.h>
  16275. int
  16276. main (void)
  16277. {
  16278. char buf[100];
  16279. char x = *strerror_r (0, buf, sizeof buf);
  16280. char *p = strerror_r (0, buf, sizeof buf);
  16281. return !p || x;
  16282. ;
  16283. return 0;
  16284. }
  16285. _ACEOF
  16286. if ac_fn_c_try_compile "$LINENO"
  16287. then :
  16288. ac_cv_func_strerror_r_char_p=yes
  16289. fi
  16290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16291. fi
  16292. fi
  16293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
  16294. printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
  16295. if test $ac_cv_func_strerror_r_char_p = yes; then
  16296. printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
  16297. fi
  16298. for ac_func in strftime
  16299. do :
  16300. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  16301. if test "x$ac_cv_func_strftime" = xyes
  16302. then :
  16303. printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
  16304. else $as_nop
  16305. # strftime is in -lintl on SCO UNIX.
  16306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  16307. printf %s "checking for strftime in -lintl... " >&6; }
  16308. if test ${ac_cv_lib_intl_strftime+y}
  16309. then :
  16310. printf %s "(cached) " >&6
  16311. else $as_nop
  16312. ac_check_lib_save_LIBS=$LIBS
  16313. LIBS="-lintl $LIBS"
  16314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16315. /* end confdefs.h. */
  16316. /* Override any GCC internal prototype to avoid an error.
  16317. Use char because int might match the return type of a GCC
  16318. builtin and then its argument prototype would still apply. */
  16319. char strftime ();
  16320. int
  16321. main (void)
  16322. {
  16323. return strftime ();
  16324. ;
  16325. return 0;
  16326. }
  16327. _ACEOF
  16328. if ac_fn_c_try_link "$LINENO"
  16329. then :
  16330. ac_cv_lib_intl_strftime=yes
  16331. else $as_nop
  16332. ac_cv_lib_intl_strftime=no
  16333. fi
  16334. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16335. conftest$ac_exeext conftest.$ac_ext
  16336. LIBS=$ac_check_lib_save_LIBS
  16337. fi
  16338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  16339. printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
  16340. if test "x$ac_cv_lib_intl_strftime" = xyes
  16341. then :
  16342. printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
  16343. LIBS="-lintl $LIBS"
  16344. fi
  16345. fi
  16346. done
  16347. ac_func=
  16348. for ac_item in $ac_func_c_list
  16349. do
  16350. if test $ac_func; then
  16351. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  16352. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  16353. echo "#define $ac_item 1" >> confdefs.h
  16354. fi
  16355. ac_func=
  16356. else
  16357. ac_func=$ac_item
  16358. fi
  16359. done
  16360. if test "x$ac_cv_func_vprintf" = xno
  16361. then :
  16362. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  16363. if test "x$ac_cv_func__doprnt" = xyes
  16364. then :
  16365. printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
  16366. fi
  16367. fi
  16368. # check for:
  16369. # CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)
  16370. # To avoid necessity for including windows.h or special forward declaration
  16371. # workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'
  16372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5
  16373. printf %s "checking for CreateHardLinkA... " >&6; }
  16374. if test ${ac_cv_func_CreateHardLinkA+y}
  16375. then :
  16376. printf %s "(cached) " >&6
  16377. else $as_nop
  16378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16379. /* end confdefs.h. */
  16380. /* System header to define __stub macros and hopefully few prototypes,
  16381. which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */
  16382. #include <assert.h>
  16383. /* Override any gcc2 internal prototype to avoid an error. */
  16384. #ifdef __cplusplus
  16385. extern "C"
  16386. #endif
  16387. /* We use char because int might match the return type of a gcc2
  16388. builtin and then its argument prototype would still apply. */
  16389. char __stdcall CreateHardLinkA ( const char *, const char *, void * );
  16390. char (*f) ( const char *, const char *, void * );
  16391. int
  16392. main (void)
  16393. {
  16394. /* The GNU C library defines this for functions which it implements
  16395. to always fail with ENOSYS. Some functions are actually named
  16396. something starting with __ and the normal name is an alias. */
  16397. #if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)
  16398. choke me
  16399. #else
  16400. f = CreateHardLinkA;
  16401. #endif
  16402. ;
  16403. return 0;
  16404. }
  16405. _ACEOF
  16406. if ac_fn_c_try_link "$LINENO"
  16407. then :
  16408. ac_cv_func_CreateHardLinkA=yes
  16409. else $as_nop
  16410. ac_cv_func_CreateHardLinkA=no
  16411. fi
  16412. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16413. conftest$ac_exeext conftest.$ac_ext
  16414. fi
  16415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5
  16416. printf "%s\n" "$ac_cv_func_CreateHardLinkA" >&6; }
  16417. if test $ac_cv_func_CreateHardLinkA = yes
  16418. then :
  16419. fi
  16420. ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
  16421. if test "x$ac_cv_func_arc4random_buf" = xyes
  16422. then :
  16423. printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
  16424. fi
  16425. ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
  16426. if test "x$ac_cv_func_chflags" = xyes
  16427. then :
  16428. printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
  16429. fi
  16430. ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
  16431. if test "x$ac_cv_func_chown" = xyes
  16432. then :
  16433. printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
  16434. fi
  16435. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  16436. if test "x$ac_cv_func_chroot" = xyes
  16437. then :
  16438. printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
  16439. fi
  16440. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  16441. if test "x$ac_cv_func_ctime_r" = xyes
  16442. then :
  16443. printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
  16444. fi
  16445. ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
  16446. if test "x$ac_cv_func_fchdir" = xyes
  16447. then :
  16448. printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
  16449. fi
  16450. ac_fn_c_check_func "$LINENO" "fchflags" "ac_cv_func_fchflags"
  16451. if test "x$ac_cv_func_fchflags" = xyes
  16452. then :
  16453. printf "%s\n" "#define HAVE_FCHFLAGS 1" >>confdefs.h
  16454. fi
  16455. ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
  16456. if test "x$ac_cv_func_fchmod" = xyes
  16457. then :
  16458. printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
  16459. fi
  16460. ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
  16461. if test "x$ac_cv_func_fchown" = xyes
  16462. then :
  16463. printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
  16464. fi
  16465. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  16466. if test "x$ac_cv_func_fcntl" = xyes
  16467. then :
  16468. printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
  16469. fi
  16470. ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
  16471. if test "x$ac_cv_func_fdopendir" = xyes
  16472. then :
  16473. printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
  16474. fi
  16475. ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
  16476. if test "x$ac_cv_func_fnmatch" = xyes
  16477. then :
  16478. printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
  16479. fi
  16480. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  16481. if test "x$ac_cv_func_fork" = xyes
  16482. then :
  16483. printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
  16484. fi
  16485. ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
  16486. if test "x$ac_cv_func_fstat" = xyes
  16487. then :
  16488. printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
  16489. fi
  16490. ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
  16491. if test "x$ac_cv_func_fstatat" = xyes
  16492. then :
  16493. printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
  16494. fi
  16495. ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
  16496. if test "x$ac_cv_func_fstatfs" = xyes
  16497. then :
  16498. printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
  16499. fi
  16500. ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
  16501. if test "x$ac_cv_func_fstatvfs" = xyes
  16502. then :
  16503. printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
  16504. fi
  16505. ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
  16506. if test "x$ac_cv_func_ftruncate" = xyes
  16507. then :
  16508. printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
  16509. fi
  16510. ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
  16511. if test "x$ac_cv_func_futimens" = xyes
  16512. then :
  16513. printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
  16514. fi
  16515. ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
  16516. if test "x$ac_cv_func_futimes" = xyes
  16517. then :
  16518. printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
  16519. fi
  16520. ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
  16521. if test "x$ac_cv_func_futimesat" = xyes
  16522. then :
  16523. printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
  16524. fi
  16525. ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
  16526. if test "x$ac_cv_func_geteuid" = xyes
  16527. then :
  16528. printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
  16529. fi
  16530. ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
  16531. if test "x$ac_cv_func_getpid" = xyes
  16532. then :
  16533. printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
  16534. fi
  16535. ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
  16536. if test "x$ac_cv_func_getgrgid_r" = xyes
  16537. then :
  16538. printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
  16539. fi
  16540. ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
  16541. if test "x$ac_cv_func_getgrnam_r" = xyes
  16542. then :
  16543. printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
  16544. fi
  16545. ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
  16546. if test "x$ac_cv_func_getpwnam_r" = xyes
  16547. then :
  16548. printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
  16549. fi
  16550. ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
  16551. if test "x$ac_cv_func_getpwuid_r" = xyes
  16552. then :
  16553. printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
  16554. fi
  16555. ac_fn_c_check_func "$LINENO" "getvfsbyname" "ac_cv_func_getvfsbyname"
  16556. if test "x$ac_cv_func_getvfsbyname" = xyes
  16557. then :
  16558. printf "%s\n" "#define HAVE_GETVFSBYNAME 1" >>confdefs.h
  16559. fi
  16560. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  16561. if test "x$ac_cv_func_gmtime_r" = xyes
  16562. then :
  16563. printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
  16564. fi
  16565. ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
  16566. if test "x$ac_cv_func_lchflags" = xyes
  16567. then :
  16568. printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
  16569. fi
  16570. ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
  16571. if test "x$ac_cv_func_lchmod" = xyes
  16572. then :
  16573. printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
  16574. fi
  16575. ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
  16576. if test "x$ac_cv_func_lchown" = xyes
  16577. then :
  16578. printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
  16579. fi
  16580. ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
  16581. if test "x$ac_cv_func_link" = xyes
  16582. then :
  16583. printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
  16584. fi
  16585. ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
  16586. if test "x$ac_cv_func_linkat" = xyes
  16587. then :
  16588. printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
  16589. fi
  16590. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  16591. if test "x$ac_cv_func_localtime_r" = xyes
  16592. then :
  16593. printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  16594. fi
  16595. ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
  16596. if test "x$ac_cv_func_lstat" = xyes
  16597. then :
  16598. printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
  16599. fi
  16600. ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
  16601. if test "x$ac_cv_func_lutimes" = xyes
  16602. then :
  16603. printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
  16604. fi
  16605. ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
  16606. if test "x$ac_cv_func_mbrtowc" = xyes
  16607. then :
  16608. printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
  16609. fi
  16610. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16611. if test "x$ac_cv_func_memmove" = xyes
  16612. then :
  16613. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16614. fi
  16615. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16616. if test "x$ac_cv_func_memset" = xyes
  16617. then :
  16618. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16619. fi
  16620. ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
  16621. if test "x$ac_cv_func_mkdir" = xyes
  16622. then :
  16623. printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
  16624. fi
  16625. ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
  16626. if test "x$ac_cv_func_mkfifo" = xyes
  16627. then :
  16628. printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
  16629. fi
  16630. ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
  16631. if test "x$ac_cv_func_mknod" = xyes
  16632. then :
  16633. printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
  16634. fi
  16635. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  16636. if test "x$ac_cv_func_mkstemp" = xyes
  16637. then :
  16638. printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
  16639. fi
  16640. ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
  16641. if test "x$ac_cv_func_nl_langinfo" = xyes
  16642. then :
  16643. printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
  16644. fi
  16645. ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
  16646. if test "x$ac_cv_func_openat" = xyes
  16647. then :
  16648. printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
  16649. fi
  16650. ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
  16651. if test "x$ac_cv_func_pipe" = xyes
  16652. then :
  16653. printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
  16654. fi
  16655. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  16656. if test "x$ac_cv_func_poll" = xyes
  16657. then :
  16658. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  16659. fi
  16660. ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
  16661. if test "x$ac_cv_func_posix_spawnp" = xyes
  16662. then :
  16663. printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
  16664. fi
  16665. ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
  16666. if test "x$ac_cv_func_readlink" = xyes
  16667. then :
  16668. printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
  16669. fi
  16670. ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
  16671. if test "x$ac_cv_func_readlinkat" = xyes
  16672. then :
  16673. printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
  16674. fi
  16675. ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"
  16676. if test "x$ac_cv_func_readpassphrase" = xyes
  16677. then :
  16678. printf "%s\n" "#define HAVE_READPASSPHRASE 1" >>confdefs.h
  16679. fi
  16680. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  16681. if test "x$ac_cv_func_select" = xyes
  16682. then :
  16683. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  16684. fi
  16685. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16686. if test "x$ac_cv_func_setenv" = xyes
  16687. then :
  16688. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16689. fi
  16690. ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
  16691. if test "x$ac_cv_func_setlocale" = xyes
  16692. then :
  16693. printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
  16694. fi
  16695. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  16696. if test "x$ac_cv_func_sigaction" = xyes
  16697. then :
  16698. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  16699. fi
  16700. ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
  16701. if test "x$ac_cv_func_statfs" = xyes
  16702. then :
  16703. printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
  16704. fi
  16705. ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
  16706. if test "x$ac_cv_func_statvfs" = xyes
  16707. then :
  16708. printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
  16709. fi
  16710. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16711. if test "x$ac_cv_func_strchr" = xyes
  16712. then :
  16713. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16714. fi
  16715. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  16716. if test "x$ac_cv_func_strdup" = xyes
  16717. then :
  16718. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  16719. fi
  16720. ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
  16721. if test "x$ac_cv_func_strerror" = xyes
  16722. then :
  16723. printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
  16724. fi
  16725. ac_fn_c_check_func "$LINENO" "strncpy_s" "ac_cv_func_strncpy_s"
  16726. if test "x$ac_cv_func_strncpy_s" = xyes
  16727. then :
  16728. printf "%s\n" "#define HAVE_STRNCPY_S 1" >>confdefs.h
  16729. fi
  16730. ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  16731. if test "x$ac_cv_func_strnlen" = xyes
  16732. then :
  16733. printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
  16734. fi
  16735. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16736. if test "x$ac_cv_func_strrchr" = xyes
  16737. then :
  16738. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16739. fi
  16740. ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
  16741. if test "x$ac_cv_func_symlink" = xyes
  16742. then :
  16743. printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
  16744. fi
  16745. ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  16746. if test "x$ac_cv_func_timegm" = xyes
  16747. then :
  16748. printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
  16749. fi
  16750. ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
  16751. if test "x$ac_cv_func_tzset" = xyes
  16752. then :
  16753. printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
  16754. fi
  16755. ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
  16756. if test "x$ac_cv_func_unlinkat" = xyes
  16757. then :
  16758. printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
  16759. fi
  16760. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16761. if test "x$ac_cv_func_unsetenv" = xyes
  16762. then :
  16763. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16764. fi
  16765. ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
  16766. if test "x$ac_cv_func_utime" = xyes
  16767. then :
  16768. printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
  16769. fi
  16770. ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
  16771. if test "x$ac_cv_func_utimensat" = xyes
  16772. then :
  16773. printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
  16774. fi
  16775. ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
  16776. if test "x$ac_cv_func_utimes" = xyes
  16777. then :
  16778. printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
  16779. fi
  16780. ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
  16781. if test "x$ac_cv_func_vfork" = xyes
  16782. then :
  16783. printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
  16784. fi
  16785. ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
  16786. if test "x$ac_cv_func_wcrtomb" = xyes
  16787. then :
  16788. printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
  16789. fi
  16790. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16791. if test "x$ac_cv_func_wcscmp" = xyes
  16792. then :
  16793. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16794. fi
  16795. ac_fn_c_check_func "$LINENO" "wcscpy" "ac_cv_func_wcscpy"
  16796. if test "x$ac_cv_func_wcscpy" = xyes
  16797. then :
  16798. printf "%s\n" "#define HAVE_WCSCPY 1" >>confdefs.h
  16799. fi
  16800. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16801. if test "x$ac_cv_func_wcslen" = xyes
  16802. then :
  16803. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16804. fi
  16805. ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"
  16806. if test "x$ac_cv_func_wctomb" = xyes
  16807. then :
  16808. printf "%s\n" "#define HAVE_WCTOMB 1" >>confdefs.h
  16809. fi
  16810. ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
  16811. if test "x$ac_cv_func_wmemcmp" = xyes
  16812. then :
  16813. printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
  16814. fi
  16815. ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"
  16816. if test "x$ac_cv_func_wmemcpy" = xyes
  16817. then :
  16818. printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h
  16819. fi
  16820. ac_fn_c_check_func "$LINENO" "wmemmove" "ac_cv_func_wmemmove"
  16821. if test "x$ac_cv_func_wmemmove" = xyes
  16822. then :
  16823. printf "%s\n" "#define HAVE_WMEMMOVE 1" >>confdefs.h
  16824. fi
  16825. ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
  16826. if test "x$ac_cv_func__fseeki64" = xyes
  16827. then :
  16828. printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
  16829. fi
  16830. ac_fn_c_check_func "$LINENO" "_get_timezone" "ac_cv_func__get_timezone"
  16831. if test "x$ac_cv_func__get_timezone" = xyes
  16832. then :
  16833. printf "%s\n" "#define HAVE__GET_TIMEZONE 1" >>confdefs.h
  16834. fi
  16835. ac_fn_check_decl "$LINENO" "cmtime_s" "ac_cv_have_decl_cmtime_s" "#include <time.h>
  16836. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16837. if test "x$ac_cv_have_decl_cmtime_s" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE_CMTIME_S 1" >>confdefs.h
  16840. fi
  16841. ac_fn_check_decl "$LINENO" "gmtime_s" "ac_cv_have_decl_gmtime_s" "#include <time.h>
  16842. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16843. if test "x$ac_cv_have_decl_gmtime_s" = xyes
  16844. then :
  16845. printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h
  16846. fi
  16847. ac_fn_c_check_type "$LINENO" "localtime_s" "ac_cv_type_localtime_s" "#include <time.h>
  16848. "
  16849. if test "x$ac_cv_type_localtime_s" = xyes
  16850. then :
  16851. printf "%s\n" "#define HAVE_LOCALTIME_S 1" >>confdefs.h
  16852. fi
  16853. ac_fn_check_decl "$LINENO" "_mkgmtime" "ac_cv_have_decl__mkgmtime" "#include <time.h>
  16854. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16855. if test "x$ac_cv_have_decl__mkgmtime" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE__MKGMTIME 1" >>confdefs.h
  16858. fi
  16859. # detects cygwin-1.7, as opposed to older versions
  16860. ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
  16861. if test "x$ac_cv_func_cygwin_conv_path" = xyes
  16862. then :
  16863. printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h
  16864. fi
  16865. # DragonFly uses vfsconf, FreeBSD xvfsconf.
  16866. ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H
  16867. #include <sys/types.h>
  16868. #endif
  16869. #include <sys/mount.h>
  16870. "
  16871. if test "x$ac_cv_type_struct_vfsconf" = xyes
  16872. then :
  16873. printf "%s\n" "#define HAVE_STRUCT_VFSCONF 1" >>confdefs.h
  16874. fi
  16875. ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H
  16876. #include <sys/types.h>
  16877. #endif
  16878. #include <sys/mount.h>
  16879. "
  16880. if test "x$ac_cv_type_struct_xvfsconf" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_STRUCT_XVFSCONF 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H
  16885. #include <sys/types.h>
  16886. #endif
  16887. #include <sys/mount.h>
  16888. "
  16889. if test "x$ac_cv_type_struct_statfs" = xyes
  16890. then :
  16891. printf "%s\n" "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
  16892. fi
  16893. # There are several variants of readdir_r around; we only
  16894. # accept the POSIX-compliant version.
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. #include <dirent.h>
  16898. int
  16899. main (void)
  16900. {
  16901. DIR *dir; struct dirent e, *r;
  16902. return(readdir_r(dir, &e, &r));
  16903. ;
  16904. return 0;
  16905. }
  16906. _ACEOF
  16907. if ac_fn_c_try_link "$LINENO"
  16908. then :
  16909. printf "%s\n" "#define HAVE_READDIR_R 1" >>confdefs.h
  16910. fi
  16911. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16912. conftest$ac_exeext conftest.$ac_ext
  16913. # dirfd can be either a function or a macro.
  16914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16915. /* end confdefs.h. */
  16916. #include <dirent.h>
  16917. DIR *dir;
  16918. int
  16919. main (void)
  16920. {
  16921. return(dirfd(dir));
  16922. ;
  16923. return 0;
  16924. }
  16925. _ACEOF
  16926. if ac_fn_c_try_link "$LINENO"
  16927. then :
  16928. printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
  16929. fi
  16930. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16931. conftest$ac_exeext conftest.$ac_ext
  16932. # FreeBSD's nl_langinfo supports an option to specify whether the
  16933. # current locale uses month/day or day/month ordering. It makes the
  16934. # output a little prettier...
  16935. ac_fn_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
  16936. #include <langinfo.h>
  16937. #endif
  16938. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16939. if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes
  16940. then :
  16941. printf "%s\n" "#define HAVE_D_MD_ORDER 1" >>confdefs.h
  16942. fi
  16943. # Check for dirent.d_namlen field explicitly
  16944. # (This is a bit more straightforward than, if not quite as portable as,
  16945. # the recipe given by the autoconf maintainers.)
  16946. ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
  16947. #include <dirent.h>
  16948. #endif
  16949. "
  16950. if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
  16951. then :
  16952. fi
  16953. ac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
  16954. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16955. if test "x$ac_cv_have_decl_optreset" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_GETOPT_OPTRESET 1" >>confdefs.h
  16958. fi
  16959. # Check for Extended Attributes support
  16960. # Check whether --enable-xattr was given.
  16961. if test ${enable_xattr+y}
  16962. then :
  16963. enableval=$enable_xattr;
  16964. fi
  16965. if test "x$enable_xattr" != "xno"; then
  16966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5
  16967. printf %s "checking for library containing setxattr... " >&6; }
  16968. if test ${ac_cv_search_setxattr+y}
  16969. then :
  16970. printf %s "(cached) " >&6
  16971. else $as_nop
  16972. ac_func_search_save_LIBS=$LIBS
  16973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16974. /* end confdefs.h. */
  16975. /* Override any GCC internal prototype to avoid an error.
  16976. Use char because int might match the return type of a GCC
  16977. builtin and then its argument prototype would still apply. */
  16978. char setxattr ();
  16979. int
  16980. main (void)
  16981. {
  16982. return setxattr ();
  16983. ;
  16984. return 0;
  16985. }
  16986. _ACEOF
  16987. for ac_lib in '' attr gnu
  16988. do
  16989. if test -z "$ac_lib"; then
  16990. ac_res="none required"
  16991. else
  16992. ac_res=-l$ac_lib
  16993. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16994. fi
  16995. if ac_fn_c_try_link "$LINENO"
  16996. then :
  16997. ac_cv_search_setxattr=$ac_res
  16998. fi
  16999. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17000. conftest$ac_exeext
  17001. if test ${ac_cv_search_setxattr+y}
  17002. then :
  17003. break
  17004. fi
  17005. done
  17006. if test ${ac_cv_search_setxattr+y}
  17007. then :
  17008. else $as_nop
  17009. ac_cv_search_setxattr=no
  17010. fi
  17011. rm conftest.$ac_ext
  17012. LIBS=$ac_func_search_save_LIBS
  17013. fi
  17014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5
  17015. printf "%s\n" "$ac_cv_search_setxattr" >&6; }
  17016. ac_res=$ac_cv_search_setxattr
  17017. if test "$ac_res" != no
  17018. then :
  17019. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17020. fi
  17021. ac_fn_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>
  17022. #include <sys/extattr.h>
  17023. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17024. if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes
  17025. then :
  17026. ac_have_decl=1
  17027. else $as_nop
  17028. ac_have_decl=0
  17029. fi
  17030. printf "%s\n" "#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl" >>confdefs.h
  17031. ac_fn_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>
  17032. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17033. if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes
  17034. then :
  17035. ac_have_decl=1
  17036. else $as_nop
  17037. ac_have_decl=0
  17038. fi
  17039. printf "%s\n" "#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl" >>confdefs.h
  17040. if test "x$ac_cv_header_sys_xattr_h" = "xyes" \
  17041. -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then
  17042. # Darwin extended attributes support
  17043. if test ${ac_cv_archive_xattr_darwin+y}
  17044. then :
  17045. printf %s "(cached) " >&6
  17046. else $as_nop
  17047. for ac_func in fgetxattr flistxattr fsetxattr getxattr listxattr setxattr
  17048. do :
  17049. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17050. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17051. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17052. then :
  17053. cat >>confdefs.h <<_ACEOF
  17054. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17055. _ACEOF
  17056. ac_cv_archive_xattr_darwin=yes
  17057. else $as_nop
  17058. ac_cv_archive_xattr_darwin=no
  17059. fi
  17060. done
  17061. fi
  17062. elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \
  17063. -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then
  17064. # FreeBSD extended attributes support
  17065. if test ${ac_cv_archive_xattr_freebsd+y}
  17066. then :
  17067. printf %s "(cached) " >&6
  17068. else $as_nop
  17069. for ac_func in extattr_get_fd extattr_get_file extattr_get_link extattr_list_fd extattr_list_file extattr_list_link extattr_set_fd extattr_set_link
  17070. do :
  17071. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17072. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17073. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17074. then :
  17075. cat >>confdefs.h <<_ACEOF
  17076. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17077. _ACEOF
  17078. ac_cv_archive_xattr_freebsd=yes
  17079. else $as_nop
  17080. ac_cv_archive_xattr_freebsd=no
  17081. fi
  17082. done
  17083. fi
  17084. elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \
  17085. -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then
  17086. # Linux extended attributes support
  17087. if test ${ac_cv_archive_xattr_linux+y}
  17088. then :
  17089. printf %s "(cached) " >&6
  17090. else $as_nop
  17091. for ac_func in fgetxattr flistxattr fsetxattr getxattr lgetxattr listxattr llistxattr lsetxattr
  17092. do :
  17093. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17094. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17095. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17096. then :
  17097. cat >>confdefs.h <<_ACEOF
  17098. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17099. _ACEOF
  17100. ac_cv_archive_xattr_linux=yes
  17101. else $as_nop
  17102. ac_cv_archive_xattr_linux=no
  17103. fi
  17104. done
  17105. fi
  17106. elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then
  17107. # AIX extended attributes support
  17108. if test ${ac_cv_archive_xattr_aix+y}
  17109. then :
  17110. printf %s "(cached) " >&6
  17111. else $as_nop
  17112. for ac_func in fgetea flistea fsetea getea lgetea listea llistea lsetea
  17113. do :
  17114. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17115. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17116. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17117. then :
  17118. cat >>confdefs.h <<_ACEOF
  17119. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17120. _ACEOF
  17121. ac_cv_archive_xattr_aix=yes
  17122. else $as_nop
  17123. ac_cv_archive_xattr_aix=no
  17124. fi
  17125. done
  17126. fi
  17127. fi
  17128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
  17129. printf %s "checking for extended attributes support... " >&6; }
  17130. if test "x$ac_cv_archive_xattr_linux" = "xyes"; then
  17131. printf "%s\n" "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h
  17132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
  17133. printf "%s\n" "Linux" >&6; }
  17134. elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then
  17135. printf "%s\n" "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h
  17136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
  17137. printf "%s\n" "Darwin" >&6; }
  17138. elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then
  17139. printf "%s\n" "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h
  17140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
  17141. printf "%s\n" "FreeBSD" >&6; }
  17142. elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then
  17143. printf "%s\n" "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h
  17144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
  17145. printf "%s\n" "AIX" >&6; }
  17146. else
  17147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17148. printf "%s\n" "none" >&6; }
  17149. fi
  17150. fi
  17151. # Check for ACL support
  17152. #
  17153. # The ACL support in libarchive is written against the POSIX1e draft,
  17154. # which was never officially approved and varies quite a bit across
  17155. # platforms. Worse, some systems have completely non-POSIX acl functions,
  17156. # which makes the following checks rather more complex than I would like.
  17157. #
  17158. # Check whether --enable-acl was given.
  17159. if test ${enable_acl+y}
  17160. then :
  17161. enableval=$enable_acl;
  17162. fi
  17163. if test "x$enable_acl" != "xno"; then
  17164. # Libacl
  17165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
  17166. printf %s "checking for acl_get_file in -lacl... " >&6; }
  17167. if test ${ac_cv_lib_acl_acl_get_file+y}
  17168. then :
  17169. printf %s "(cached) " >&6
  17170. else $as_nop
  17171. ac_check_lib_save_LIBS=$LIBS
  17172. LIBS="-lacl $LIBS"
  17173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17174. /* end confdefs.h. */
  17175. /* Override any GCC internal prototype to avoid an error.
  17176. Use char because int might match the return type of a GCC
  17177. builtin and then its argument prototype would still apply. */
  17178. char acl_get_file ();
  17179. int
  17180. main (void)
  17181. {
  17182. return acl_get_file ();
  17183. ;
  17184. return 0;
  17185. }
  17186. _ACEOF
  17187. if ac_fn_c_try_link "$LINENO"
  17188. then :
  17189. ac_cv_lib_acl_acl_get_file=yes
  17190. else $as_nop
  17191. ac_cv_lib_acl_acl_get_file=no
  17192. fi
  17193. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17194. conftest$ac_exeext conftest.$ac_ext
  17195. LIBS=$ac_check_lib_save_LIBS
  17196. fi
  17197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
  17198. printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }
  17199. if test "x$ac_cv_lib_acl_acl_get_file" = xyes
  17200. then :
  17201. printf "%s\n" "#define HAVE_LIBACL 1" >>confdefs.h
  17202. LIBS="-lacl $LIBS"
  17203. fi
  17204. ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "
  17205. #if HAVE_SYS_TYPES_H
  17206. #include <sys/types.h>
  17207. #endif
  17208. #if HAVE_SYS_ACL_H
  17209. #include <sys/acl.h>
  17210. #endif
  17211. "
  17212. if test "x$ac_cv_type_acl_t" = xyes
  17213. then :
  17214. printf "%s\n" "#define HAVE_ACL_T 1" >>confdefs.h
  17215. fi
  17216. ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "
  17217. #if HAVE_SYS_TYPES_H
  17218. #include <sys/types.h>
  17219. #endif
  17220. #if HAVE_SYS_ACL_H
  17221. #include <sys/acl.h>
  17222. #endif
  17223. "
  17224. if test "x$ac_cv_type_acl_entry_t" = xyes
  17225. then :
  17226. printf "%s\n" "#define HAVE_ACL_ENTRY_T 1" >>confdefs.h
  17227. fi
  17228. ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "
  17229. #if HAVE_SYS_TYPES_H
  17230. #include <sys/types.h>
  17231. #endif
  17232. #if HAVE_SYS_ACL_H
  17233. #include <sys/acl.h>
  17234. #endif
  17235. "
  17236. if test "x$ac_cv_type_acl_permset_t" = xyes
  17237. then :
  17238. printf "%s\n" "#define HAVE_ACL_PERMSET_T 1" >>confdefs.h
  17239. fi
  17240. ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "
  17241. #if HAVE_SYS_TYPES_H
  17242. #include <sys/types.h>
  17243. #endif
  17244. #if HAVE_SYS_ACL_H
  17245. #include <sys/acl.h>
  17246. #endif
  17247. "
  17248. if test "x$ac_cv_type_acl_tag_t" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_ACL_TAG_T 1" >>confdefs.h
  17251. fi
  17252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5
  17253. printf %s "checking for richacl_get_file in -lrichacl... " >&6; }
  17254. if test ${ac_cv_lib_richacl_richacl_get_file+y}
  17255. then :
  17256. printf %s "(cached) " >&6
  17257. else $as_nop
  17258. ac_check_lib_save_LIBS=$LIBS
  17259. LIBS="-lrichacl $LIBS"
  17260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17261. /* end confdefs.h. */
  17262. /* Override any GCC internal prototype to avoid an error.
  17263. Use char because int might match the return type of a GCC
  17264. builtin and then its argument prototype would still apply. */
  17265. char richacl_get_file ();
  17266. int
  17267. main (void)
  17268. {
  17269. return richacl_get_file ();
  17270. ;
  17271. return 0;
  17272. }
  17273. _ACEOF
  17274. if ac_fn_c_try_link "$LINENO"
  17275. then :
  17276. ac_cv_lib_richacl_richacl_get_file=yes
  17277. else $as_nop
  17278. ac_cv_lib_richacl_richacl_get_file=no
  17279. fi
  17280. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17281. conftest$ac_exeext conftest.$ac_ext
  17282. LIBS=$ac_check_lib_save_LIBS
  17283. fi
  17284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5
  17285. printf "%s\n" "$ac_cv_lib_richacl_richacl_get_file" >&6; }
  17286. if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes
  17287. then :
  17288. printf "%s\n" "#define HAVE_LIBRICHACL 1" >>confdefs.h
  17289. LIBS="-lrichacl $LIBS"
  17290. fi
  17291. ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "
  17292. #if HAVE_SYS_RICHACL_H
  17293. #include <sys/richacl.h>
  17294. #endif
  17295. "
  17296. if test "x$ac_cv_type_struct_richace" = xyes
  17297. then :
  17298. printf "%s\n" "#define HAVE_STRUCT_RICHACE 1" >>confdefs.h
  17299. fi
  17300. ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "
  17301. #if HAVE_SYS_RICHACL_H
  17302. #include <sys/richacl.h>
  17303. #endif
  17304. "
  17305. if test "x$ac_cv_type_struct_richacl" = xyes
  17306. then :
  17307. printf "%s\n" "#define HAVE_STRUCT_RICHACL 1" >>confdefs.h
  17308. fi
  17309. # Solaris and derivates ACLs
  17310. ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"
  17311. if test "x$ac_cv_func_acl" = xyes
  17312. then :
  17313. printf "%s\n" "#define HAVE_ACL 1" >>confdefs.h
  17314. fi
  17315. ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
  17316. if test "x$ac_cv_func_facl" = xyes
  17317. then :
  17318. printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h
  17319. fi
  17320. if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \
  17321. -a "x$ac_cv_type_struct_richace" = "xyes" \
  17322. -a "x$ac_cv_type_struct_richacl" = "xyes"; then
  17323. if test ${ac_cv_archive_acl_librichacl+y}
  17324. then :
  17325. printf %s "(cached) " >&6
  17326. else $as_nop
  17327. for ac_func in richacl_alloc richacl_equiv_mode richacl_free richacl_get_fd richacl_get_file richacl_set_fd richacl_set_file
  17328. do :
  17329. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17330. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17331. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17332. then :
  17333. cat >>confdefs.h <<_ACEOF
  17334. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17335. _ACEOF
  17336. ac_cv_archive_acl_librichacl=yes
  17337. else $as_nop
  17338. ac_cv_archive_acl_librichacl=no
  17339. fi
  17340. done
  17341. fi
  17342. fi
  17343. if test "x$ac_cv_func_acl" = "xyes" \
  17344. -a "x$ac_cv_func_facl" = "xyes"; then
  17345. ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>
  17346. "
  17347. if test "x$ac_cv_type_aclent_t" = xyes
  17348. then :
  17349. printf "%s\n" "#define HAVE_ACLENT_T 1" >>confdefs.h
  17350. fi
  17351. if test "x$ac_cv_type_aclent_t" = "xyes"; then
  17352. if test ${ac_cv_archive_acl_sunos+y}
  17353. then :
  17354. printf %s "(cached) " >&6
  17355. else $as_nop
  17356. ac_fn_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>
  17357. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17358. if test "x$ac_cv_have_decl_GETACL" = xyes
  17359. then :
  17360. ac_have_decl=1
  17361. else $as_nop
  17362. ac_have_decl=0
  17363. fi
  17364. printf "%s\n" "#define HAVE_DECL_GETACL $ac_have_decl" >>confdefs.h
  17365. if test $ac_have_decl = 1
  17366. then :
  17367. ac_cv_archive_acl_sunos=yes
  17368. else $as_nop
  17369. ac_cv_archive_acl_sunos=no
  17370. fi
  17371. ac_fn_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>
  17372. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17373. if test "x$ac_cv_have_decl_SETACL" = xyes
  17374. then :
  17375. ac_have_decl=1
  17376. else $as_nop
  17377. ac_have_decl=0
  17378. fi
  17379. printf "%s\n" "#define HAVE_DECL_SETACL $ac_have_decl" >>confdefs.h
  17380. if test $ac_have_decl = 1
  17381. then :
  17382. ac_cv_archive_acl_sunos=yes
  17383. else $as_nop
  17384. ac_cv_archive_acl_sunos=no
  17385. fi
  17386. ac_fn_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>
  17387. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17388. if test "x$ac_cv_have_decl_GETACLCNT" = xyes
  17389. then :
  17390. ac_have_decl=1
  17391. else $as_nop
  17392. ac_have_decl=0
  17393. fi
  17394. printf "%s\n" "#define HAVE_DECL_GETACLCNT $ac_have_decl" >>confdefs.h
  17395. if test $ac_have_decl = 1
  17396. then :
  17397. ac_cv_archive_acl_sunos=yes
  17398. else $as_nop
  17399. ac_cv_archive_acl_sunos=no
  17400. fi
  17401. fi
  17402. ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>
  17403. "
  17404. if test "x$ac_cv_type_ace_t" = xyes
  17405. then :
  17406. printf "%s\n" "#define HAVE_ACE_T 1" >>confdefs.h
  17407. fi
  17408. if test "x$ac_cv_type_ace_t" = "xyes"; then
  17409. if test ${ac_cv_archive_acl_sunos_nfs4+y}
  17410. then :
  17411. printf %s "(cached) " >&6
  17412. else $as_nop
  17413. ac_fn_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>
  17414. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17415. if test "x$ac_cv_have_decl_ACE_GETACL" = xyes
  17416. then :
  17417. ac_have_decl=1
  17418. else $as_nop
  17419. ac_have_decl=0
  17420. fi
  17421. printf "%s\n" "#define HAVE_DECL_ACE_GETACL $ac_have_decl" >>confdefs.h
  17422. if test $ac_have_decl = 1
  17423. then :
  17424. ac_cv_archive_acl_sunos_nfs4=yes
  17425. else $as_nop
  17426. ac_cv_archive_acl_sonos_nfs4=no
  17427. fi
  17428. ac_fn_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>
  17429. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17430. if test "x$ac_cv_have_decl_ACE_SETACL" = xyes
  17431. then :
  17432. ac_have_decl=1
  17433. else $as_nop
  17434. ac_have_decl=0
  17435. fi
  17436. printf "%s\n" "#define HAVE_DECL_ACE_SETACL $ac_have_decl" >>confdefs.h
  17437. if test $ac_have_decl = 1
  17438. then :
  17439. ac_cv_archive_acl_sunos_nfs4=yes
  17440. else $as_nop
  17441. ac_cv_archive_acl_sonos_nfs4=no
  17442. fi
  17443. ac_fn_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>
  17444. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17445. if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes
  17446. then :
  17447. ac_have_decl=1
  17448. else $as_nop
  17449. ac_have_decl=0
  17450. fi
  17451. printf "%s\n" "#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl" >>confdefs.h
  17452. if test $ac_have_decl = 1
  17453. then :
  17454. ac_cv_archive_acl_sunos_nfs4=yes
  17455. else $as_nop
  17456. ac_cv_archive_acl_sonos_nfs4=no
  17457. fi
  17458. fi
  17459. fi
  17460. fi
  17461. elif test "x$ac_cv_type_acl_t" = "xyes" \
  17462. -a "x$ac_cv_type_acl_entry_t" = "xyes" \
  17463. -a "x$ac_cv_type_acl_permset_t" = "xyes" \
  17464. -a "x$ac_cv_type_acl_tag_t" = "xyes"; then
  17465. # POSIX.1e ACL functions
  17466. if test ${ac_cv_posix_acl_funcs+y}
  17467. then :
  17468. printf %s "(cached) " >&6
  17469. else $as_nop
  17470. for ac_func in acl_add_perm acl_clear_perms acl_create_entry acl_delete_def_file acl_free acl_get_entry acl_get_fd acl_get_file acl_get_permset acl_get_qualifier acl_get_tag_type acl_init acl_set_fd acl_set_file acl_set_qualifier acl_set_tag_type
  17471. do :
  17472. as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
  17473. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17474. if eval test \"x\$"$as_ac_var"\" = x"yes"
  17475. then :
  17476. cat >>confdefs.h <<_ACEOF
  17477. #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
  17478. _ACEOF
  17479. ac_cv_posix_acl_funcs=yes
  17480. else $as_nop
  17481. ac_cv_posix_acl_funcs=no
  17482. fi
  17483. done
  17484. fi
  17485. ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"
  17486. if test "x$ac_cv_func_acl_get_perm" = xyes
  17487. then :
  17488. printf "%s\n" "#define HAVE_ACL_GET_PERM 1" >>confdefs.h
  17489. fi
  17490. if test "x$ac_cv_posix_acl_funcs" = "xyes" \
  17491. -a "x$ac_cv_header_acl_libacl_h" = "xyes" \
  17492. -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \
  17493. -a "x$ac_cv_func_acl_get_perm"; then
  17494. if test ${ac_cv_archive_acl_libacl+y}
  17495. then :
  17496. printf %s "(cached) " >&6
  17497. else $as_nop
  17498. ac_cv_archive_acl_libacl=yes
  17499. fi
  17500. printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
  17501. else
  17502. # FreeBSD/Darwin
  17503. ac_fn_c_check_func "$LINENO" "acl_add_flag_np" "ac_cv_func_acl_add_flag_np"
  17504. if test "x$ac_cv_func_acl_add_flag_np" = xyes
  17505. then :
  17506. printf "%s\n" "#define HAVE_ACL_ADD_FLAG_NP 1" >>confdefs.h
  17507. fi
  17508. ac_fn_c_check_func "$LINENO" "acl_clear_flags_np" "ac_cv_func_acl_clear_flags_np"
  17509. if test "x$ac_cv_func_acl_clear_flags_np" = xyes
  17510. then :
  17511. printf "%s\n" "#define HAVE_ACL_CLEAR_FLAGS_NP 1" >>confdefs.h
  17512. fi
  17513. ac_fn_c_check_func "$LINENO" "acl_get_brand_np" "ac_cv_func_acl_get_brand_np"
  17514. if test "x$ac_cv_func_acl_get_brand_np" = xyes
  17515. then :
  17516. printf "%s\n" "#define HAVE_ACL_GET_BRAND_NP 1" >>confdefs.h
  17517. fi
  17518. ac_fn_c_check_func "$LINENO" "acl_get_entry_type_np" "ac_cv_func_acl_get_entry_type_np"
  17519. if test "x$ac_cv_func_acl_get_entry_type_np" = xyes
  17520. then :
  17521. printf "%s\n" "#define HAVE_ACL_GET_ENTRY_TYPE_NP 1" >>confdefs.h
  17522. fi
  17523. ac_fn_c_check_func "$LINENO" "acl_get_flag_np" "ac_cv_func_acl_get_flag_np"
  17524. if test "x$ac_cv_func_acl_get_flag_np" = xyes
  17525. then :
  17526. printf "%s\n" "#define HAVE_ACL_GET_FLAG_NP 1" >>confdefs.h
  17527. fi
  17528. ac_fn_c_check_func "$LINENO" "acl_get_flagset_np" "ac_cv_func_acl_get_flagset_np"
  17529. if test "x$ac_cv_func_acl_get_flagset_np" = xyes
  17530. then :
  17531. printf "%s\n" "#define HAVE_ACL_GET_FLAGSET_NP 1" >>confdefs.h
  17532. fi
  17533. ac_fn_c_check_func "$LINENO" "acl_get_fd_np" "ac_cv_func_acl_get_fd_np"
  17534. if test "x$ac_cv_func_acl_get_fd_np" = xyes
  17535. then :
  17536. printf "%s\n" "#define HAVE_ACL_GET_FD_NP 1" >>confdefs.h
  17537. fi
  17538. ac_fn_c_check_func "$LINENO" "acl_get_link_np" "ac_cv_func_acl_get_link_np"
  17539. if test "x$ac_cv_func_acl_get_link_np" = xyes
  17540. then :
  17541. printf "%s\n" "#define HAVE_ACL_GET_LINK_NP 1" >>confdefs.h
  17542. fi
  17543. ac_fn_c_check_func "$LINENO" "acl_get_perm_np" "ac_cv_func_acl_get_perm_np"
  17544. if test "x$ac_cv_func_acl_get_perm_np" = xyes
  17545. then :
  17546. printf "%s\n" "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
  17547. fi
  17548. ac_fn_c_check_func "$LINENO" "acl_is_trivial_np" "ac_cv_func_acl_is_trivial_np"
  17549. if test "x$ac_cv_func_acl_is_trivial_np" = xyes
  17550. then :
  17551. printf "%s\n" "#define HAVE_ACL_IS_TRIVIAL_NP 1" >>confdefs.h
  17552. fi
  17553. ac_fn_c_check_func "$LINENO" "acl_set_entry_type_np" "ac_cv_func_acl_set_entry_type_np"
  17554. if test "x$ac_cv_func_acl_set_entry_type_np" = xyes
  17555. then :
  17556. printf "%s\n" "#define HAVE_ACL_SET_ENTRY_TYPE_NP 1" >>confdefs.h
  17557. fi
  17558. ac_fn_c_check_func "$LINENO" "acl_set_fd_np" "ac_cv_func_acl_set_fd_np"
  17559. if test "x$ac_cv_func_acl_set_fd_np" = xyes
  17560. then :
  17561. printf "%s\n" "#define HAVE_ACL_SET_FD_NP 1" >>confdefs.h
  17562. fi
  17563. ac_fn_c_check_func "$LINENO" "acl_set_link_np" "ac_cv_func_acl_set_link_np"
  17564. if test "x$ac_cv_func_acl_set_link_np" = xyes
  17565. then :
  17566. printf "%s\n" "#define HAVE_ACL_SET_LINK_NP 1" >>confdefs.h
  17567. fi
  17568. ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
  17569. if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes
  17570. then :
  17571. printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h
  17572. fi
  17573. ac_fn_c_check_func "$LINENO" "mbr_uuid_to_id" "ac_cv_func_mbr_uuid_to_id"
  17574. if test "x$ac_cv_func_mbr_uuid_to_id" = xyes
  17575. then :
  17576. printf "%s\n" "#define HAVE_MBR_UUID_TO_ID 1" >>confdefs.h
  17577. fi
  17578. ac_fn_c_check_func "$LINENO" "mbr_gid_to_uuid" "ac_cv_func_mbr_gid_to_uuid"
  17579. if test "x$ac_cv_func_mbr_gid_to_uuid" = xyes
  17580. then :
  17581. printf "%s\n" "#define HAVE_MBR_GID_TO_UUID 1" >>confdefs.h
  17582. fi
  17583. ac_fn_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>
  17584. #include <sys/acl.h>
  17585. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17586. if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes
  17587. then :
  17588. ac_have_decl=1
  17589. else $as_nop
  17590. ac_have_decl=0
  17591. fi
  17592. printf "%s\n" "#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl" >>confdefs.h
  17593. ac_fn_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>
  17594. #include <sys/acl.h>
  17595. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17596. if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes
  17597. then :
  17598. ac_have_decl=1
  17599. else $as_nop
  17600. ac_have_decl=0
  17601. fi
  17602. printf "%s\n" "#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl" >>confdefs.h
  17603. ac_fn_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>
  17604. #include <sys/acl.h>
  17605. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17606. if test "x$ac_cv_have_decl_ACL_USER" = xyes
  17607. then :
  17608. ac_have_decl=1
  17609. else $as_nop
  17610. ac_have_decl=0
  17611. fi
  17612. printf "%s\n" "#define HAVE_DECL_ACL_USER $ac_have_decl" >>confdefs.h
  17613. ac_fn_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>
  17614. #include <sys/acl.h>
  17615. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  17616. if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes
  17617. then :
  17618. ac_have_decl=1
  17619. else $as_nop
  17620. ac_have_decl=0
  17621. fi
  17622. printf "%s\n" "#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl" >>confdefs.h
  17623. if test "x$ac_cv_posix_acl_funcs" = "xyes" \
  17624. -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \
  17625. -a "x$ac_cv_func_acl_get_perm" != "xyes" \
  17626. -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \
  17627. -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then
  17628. if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then
  17629. if test ${ac_cv_archive_acl_freebsd+y}
  17630. then :
  17631. printf %s "(cached) " >&6
  17632. else $as_nop
  17633. ac_cv_archive_acl_freebsd=yes
  17634. fi
  17635. if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \
  17636. -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
  17637. -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \
  17638. -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \
  17639. -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
  17640. -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then
  17641. if test ${ac_cv_archive_acl_freebsd_nfs4+y}
  17642. then :
  17643. printf %s "(cached) " >&6
  17644. else $as_nop
  17645. ac_cv_archive_acl_freebsd_nfs4=yes
  17646. fi
  17647. fi
  17648. elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \
  17649. -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
  17650. -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
  17651. -a "x$ac_cv_func_acl_get_link_np" = "xyes" \
  17652. -a "x$ac_cv_func_acl_set_link_np" = "xyes" \
  17653. -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \
  17654. -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \
  17655. -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then
  17656. if test ${ac_cv_archive_acl_darwin+y}
  17657. then :
  17658. printf %s "(cached) " >&6
  17659. else $as_nop
  17660. ac_cv_archive_acl_darwin=yes
  17661. fi
  17662. fi
  17663. fi
  17664. fi
  17665. fi
  17666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
  17667. printf %s "checking for ACL support... " >&6; }
  17668. if test "x$ac_cv_archive_acl_libacl" = "xyes" \
  17669. -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then
  17670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5
  17671. printf "%s\n" "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }
  17672. printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
  17673. printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
  17674. elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then
  17675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5
  17676. printf "%s\n" "libacl (POSIX.1e)" >&6; }
  17677. printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
  17678. elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then
  17679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5
  17680. printf "%s\n" "librichacl (NFSv4)" >&6; }
  17681. printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
  17682. elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then
  17683. printf "%s\n" "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h
  17684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5
  17685. printf "%s\n" "Darwin (limited NFSv4)" >&6; }
  17686. elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then
  17687. printf "%s\n" "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h
  17688. if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then
  17689. printf "%s\n" "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h
  17690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5
  17691. printf "%s\n" "Solaris (POSIX.1e and NFSv4)" >&6; }
  17692. else
  17693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5
  17694. printf "%s\n" "Solaris (POSIX.1e)" >&6; }
  17695. fi
  17696. elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
  17697. printf "%s\n" "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h
  17698. if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then
  17699. printf "%s\n" "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h
  17700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5
  17701. printf "%s\n" "FreeBSD (POSIX.1e and NFSv4)" >&6; }
  17702. else
  17703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5
  17704. printf "%s\n" "FreeBSD (POSIX.1e)" >&6; }
  17705. fi
  17706. else
  17707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  17708. printf "%s\n" "none" >&6; }
  17709. fi
  17710. fi
  17711. if test "x$ac_cv_archive_acl_libacl" = "xyes" \
  17712. -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then
  17713. INC_LINUX_ACL_TRUE=
  17714. INC_LINUX_ACL_FALSE='#'
  17715. else
  17716. INC_LINUX_ACL_TRUE='#'
  17717. INC_LINUX_ACL_FALSE=
  17718. fi
  17719. if test "x$ac_cv_archive_acl_sunos" = "xyes"; then
  17720. INC_SUNOS_ACL_TRUE=
  17721. INC_SUNOS_ACL_FALSE='#'
  17722. else
  17723. INC_SUNOS_ACL_TRUE='#'
  17724. INC_SUNOS_ACL_FALSE=
  17725. fi
  17726. if test "x$ac_cv_archive_acl_darwin" = "xyes"; then
  17727. INC_DARWIN_ACL_TRUE=
  17728. INC_DARWIN_ACL_FALSE='#'
  17729. else
  17730. INC_DARWIN_ACL_TRUE='#'
  17731. INC_DARWIN_ACL_FALSE=
  17732. fi
  17733. if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
  17734. INC_FREEBSD_ACL_TRUE=
  17735. INC_FREEBSD_ACL_FALSE='#'
  17736. else
  17737. INC_FREEBSD_ACL_TRUE='#'
  17738. INC_FREEBSD_ACL_FALSE=
  17739. fi
  17740. # Additional requirements
  17741. # Check whether --enable-largefile was given.
  17742. if test ${enable_largefile+y}
  17743. then :
  17744. enableval=$enable_largefile;
  17745. fi
  17746. if test "$enable_largefile" != no; then
  17747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  17748. printf %s "checking for special C compiler options needed for large files... " >&6; }
  17749. if test ${ac_cv_sys_largefile_CC+y}
  17750. then :
  17751. printf %s "(cached) " >&6
  17752. else $as_nop
  17753. ac_cv_sys_largefile_CC=no
  17754. if test "$GCC" != yes; then
  17755. ac_save_CC=$CC
  17756. while :; do
  17757. # IRIX 6.2 and later do not support large files by default,
  17758. # so use the C compiler's -n32 option if that helps.
  17759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17760. /* end confdefs.h. */
  17761. #include <sys/types.h>
  17762. /* Check that off_t can represent 2**63 - 1 correctly.
  17763. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17764. since some C++ compilers masquerading as C compilers
  17765. incorrectly reject 9223372036854775807. */
  17766. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  17767. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17768. && LARGE_OFF_T % 2147483647 == 1)
  17769. ? 1 : -1];
  17770. int
  17771. main (void)
  17772. {
  17773. ;
  17774. return 0;
  17775. }
  17776. _ACEOF
  17777. if ac_fn_c_try_compile "$LINENO"
  17778. then :
  17779. break
  17780. fi
  17781. rm -f core conftest.err conftest.$ac_objext conftest.beam
  17782. CC="$CC -n32"
  17783. if ac_fn_c_try_compile "$LINENO"
  17784. then :
  17785. ac_cv_sys_largefile_CC=' -n32'; break
  17786. fi
  17787. rm -f core conftest.err conftest.$ac_objext conftest.beam
  17788. break
  17789. done
  17790. CC=$ac_save_CC
  17791. rm -f conftest.$ac_ext
  17792. fi
  17793. fi
  17794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  17795. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  17796. if test "$ac_cv_sys_largefile_CC" != no; then
  17797. CC=$CC$ac_cv_sys_largefile_CC
  17798. fi
  17799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  17800. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  17801. if test ${ac_cv_sys_file_offset_bits+y}
  17802. then :
  17803. printf %s "(cached) " >&6
  17804. else $as_nop
  17805. while :; do
  17806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17807. /* end confdefs.h. */
  17808. #include <sys/types.h>
  17809. /* Check that off_t can represent 2**63 - 1 correctly.
  17810. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17811. since some C++ compilers masquerading as C compilers
  17812. incorrectly reject 9223372036854775807. */
  17813. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  17814. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17815. && LARGE_OFF_T % 2147483647 == 1)
  17816. ? 1 : -1];
  17817. int
  17818. main (void)
  17819. {
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_compile "$LINENO"
  17825. then :
  17826. ac_cv_sys_file_offset_bits=no; break
  17827. fi
  17828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17830. /* end confdefs.h. */
  17831. #define _FILE_OFFSET_BITS 64
  17832. #include <sys/types.h>
  17833. /* Check that off_t can represent 2**63 - 1 correctly.
  17834. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17835. since some C++ compilers masquerading as C compilers
  17836. incorrectly reject 9223372036854775807. */
  17837. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  17838. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17839. && LARGE_OFF_T % 2147483647 == 1)
  17840. ? 1 : -1];
  17841. int
  17842. main (void)
  17843. {
  17844. ;
  17845. return 0;
  17846. }
  17847. _ACEOF
  17848. if ac_fn_c_try_compile "$LINENO"
  17849. then :
  17850. ac_cv_sys_file_offset_bits=64; break
  17851. fi
  17852. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17853. ac_cv_sys_file_offset_bits=unknown
  17854. break
  17855. done
  17856. fi
  17857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  17858. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  17859. case $ac_cv_sys_file_offset_bits in #(
  17860. no | unknown) ;;
  17861. *)
  17862. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  17863. ;;
  17864. esac
  17865. rm -rf conftest*
  17866. if test $ac_cv_sys_file_offset_bits = unknown; then
  17867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  17868. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  17869. if test ${ac_cv_sys_large_files+y}
  17870. then :
  17871. printf %s "(cached) " >&6
  17872. else $as_nop
  17873. while :; do
  17874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17875. /* end confdefs.h. */
  17876. #include <sys/types.h>
  17877. /* Check that off_t can represent 2**63 - 1 correctly.
  17878. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17879. since some C++ compilers masquerading as C compilers
  17880. incorrectly reject 9223372036854775807. */
  17881. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  17882. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17883. && LARGE_OFF_T % 2147483647 == 1)
  17884. ? 1 : -1];
  17885. int
  17886. main (void)
  17887. {
  17888. ;
  17889. return 0;
  17890. }
  17891. _ACEOF
  17892. if ac_fn_c_try_compile "$LINENO"
  17893. then :
  17894. ac_cv_sys_large_files=no; break
  17895. fi
  17896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17898. /* end confdefs.h. */
  17899. #define _LARGE_FILES 1
  17900. #include <sys/types.h>
  17901. /* Check that off_t can represent 2**63 - 1 correctly.
  17902. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  17903. since some C++ compilers masquerading as C compilers
  17904. incorrectly reject 9223372036854775807. */
  17905. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  17906. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  17907. && LARGE_OFF_T % 2147483647 == 1)
  17908. ? 1 : -1];
  17909. int
  17910. main (void)
  17911. {
  17912. ;
  17913. return 0;
  17914. }
  17915. _ACEOF
  17916. if ac_fn_c_try_compile "$LINENO"
  17917. then :
  17918. ac_cv_sys_large_files=1; break
  17919. fi
  17920. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17921. ac_cv_sys_large_files=unknown
  17922. break
  17923. done
  17924. fi
  17925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  17926. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  17927. case $ac_cv_sys_large_files in #(
  17928. no | unknown) ;;
  17929. *)
  17930. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  17931. ;;
  17932. esac
  17933. rm -rf conftest*
  17934. fi
  17935. fi
  17936. case "$host_os" in
  17937. *mingw* | *cygwin* | *msys*)
  17938. ;;
  17939. *)
  17940. if test "$found_MD5" != yes; then
  17941. saved_CPPFLAGS="$CPPFLAGS"
  17942. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  17943. touch "check_crypto_md.h"
  17944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBC" >&5
  17945. printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBC... " >&6; }
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #define ARCHIVE_MD5_COMPILE_TEST
  17949. #define ARCHIVE_CRYPTO_MD5_LIBC
  17950. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  17951. $(cat "$srcdir/libarchive/archive_digest.c")
  17952. int
  17953. main(int argc, char **argv)
  17954. {
  17955. archive_md5_ctx ctx;
  17956. archive_md5_init(&ctx);
  17957. archive_md5_update(&ctx, *argv, argc);
  17958. archive_md5_final(&ctx, NULL);
  17959. return 0;
  17960. }
  17961. _ACEOF
  17962. if ac_fn_c_try_link "$LINENO"
  17963. then :
  17964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17965. printf "%s\n" "yes" >&6; }
  17966. found_MD5=yes
  17967. found_LIBC=yes
  17968. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBC 1" >>confdefs.h
  17969. else $as_nop
  17970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17971. printf "%s\n" "no" >&6; }
  17972. fi
  17973. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17974. conftest$ac_exeext conftest.$ac_ext
  17975. CPPFLAGS="$saved_CPPFLAGS"
  17976. rm "check_crypto_md.h"
  17977. fi
  17978. if test "$found_MD5" != yes; then
  17979. saved_CPPFLAGS="$CPPFLAGS"
  17980. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  17981. touch "check_crypto_md.h"
  17982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM" >&5
  17983. printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM... " >&6; }
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. #define ARCHIVE_MD5_COMPILE_TEST
  17987. #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
  17988. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  17989. $(cat "$srcdir/libarchive/archive_digest.c")
  17990. int
  17991. main(int argc, char **argv)
  17992. {
  17993. archive_md5_ctx ctx;
  17994. archive_md5_init(&ctx);
  17995. archive_md5_update(&ctx, *argv, argc);
  17996. archive_md5_final(&ctx, NULL);
  17997. return 0;
  17998. }
  17999. _ACEOF
  18000. if ac_fn_c_try_link "$LINENO"
  18001. then :
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18003. printf "%s\n" "yes" >&6; }
  18004. found_MD5=yes
  18005. found_LIBSYSTEM=yes
  18006. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM 1" >>confdefs.h
  18007. else $as_nop
  18008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18009. printf "%s\n" "no" >&6; }
  18010. fi
  18011. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18012. conftest$ac_exeext conftest.$ac_ext
  18013. CPPFLAGS="$saved_CPPFLAGS"
  18014. rm "check_crypto_md.h"
  18015. fi
  18016. if test "$found_RMD160" != yes; then
  18017. saved_CPPFLAGS="$CPPFLAGS"
  18018. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18019. touch "check_crypto_md.h"
  18020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBC" >&5
  18021. printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBC... " >&6; }
  18022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18023. /* end confdefs.h. */
  18024. #define ARCHIVE_RMD160_COMPILE_TEST
  18025. #define ARCHIVE_CRYPTO_RMD160_LIBC
  18026. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18027. $(cat "$srcdir/libarchive/archive_digest.c")
  18028. int
  18029. main(int argc, char **argv)
  18030. {
  18031. archive_rmd160_ctx ctx;
  18032. archive_rmd160_init(&ctx);
  18033. archive_rmd160_update(&ctx, *argv, argc);
  18034. archive_rmd160_final(&ctx, NULL);
  18035. return 0;
  18036. }
  18037. _ACEOF
  18038. if ac_fn_c_try_link "$LINENO"
  18039. then :
  18040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18041. printf "%s\n" "yes" >&6; }
  18042. found_RMD160=yes
  18043. found_LIBC=yes
  18044. printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBC 1" >>confdefs.h
  18045. else $as_nop
  18046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18047. printf "%s\n" "no" >&6; }
  18048. fi
  18049. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18050. conftest$ac_exeext conftest.$ac_ext
  18051. CPPFLAGS="$saved_CPPFLAGS"
  18052. rm "check_crypto_md.h"
  18053. fi
  18054. if test "$found_SHA1" != yes; then
  18055. saved_CPPFLAGS="$CPPFLAGS"
  18056. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18057. touch "check_crypto_md.h"
  18058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBC" >&5
  18059. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBC... " >&6; }
  18060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18061. /* end confdefs.h. */
  18062. #define ARCHIVE_SHA1_COMPILE_TEST
  18063. #define ARCHIVE_CRYPTO_SHA1_LIBC
  18064. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18065. $(cat "$srcdir/libarchive/archive_digest.c")
  18066. int
  18067. main(int argc, char **argv)
  18068. {
  18069. archive_sha1_ctx ctx;
  18070. archive_sha1_init(&ctx);
  18071. archive_sha1_update(&ctx, *argv, argc);
  18072. archive_sha1_final(&ctx, NULL);
  18073. return 0;
  18074. }
  18075. _ACEOF
  18076. if ac_fn_c_try_link "$LINENO"
  18077. then :
  18078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18079. printf "%s\n" "yes" >&6; }
  18080. found_SHA1=yes
  18081. found_LIBC=yes
  18082. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBC 1" >>confdefs.h
  18083. else $as_nop
  18084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18085. printf "%s\n" "no" >&6; }
  18086. fi
  18087. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18088. conftest$ac_exeext conftest.$ac_ext
  18089. CPPFLAGS="$saved_CPPFLAGS"
  18090. rm "check_crypto_md.h"
  18091. fi
  18092. if test "$found_SHA1" != yes; then
  18093. saved_CPPFLAGS="$CPPFLAGS"
  18094. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18095. touch "check_crypto_md.h"
  18096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM" >&5
  18097. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM... " >&6; }
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. #define ARCHIVE_SHA1_COMPILE_TEST
  18101. #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
  18102. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18103. $(cat "$srcdir/libarchive/archive_digest.c")
  18104. int
  18105. main(int argc, char **argv)
  18106. {
  18107. archive_sha1_ctx ctx;
  18108. archive_sha1_init(&ctx);
  18109. archive_sha1_update(&ctx, *argv, argc);
  18110. archive_sha1_final(&ctx, NULL);
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. if ac_fn_c_try_link "$LINENO"
  18115. then :
  18116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18117. printf "%s\n" "yes" >&6; }
  18118. found_SHA1=yes
  18119. found_LIBSYSTEM=yes
  18120. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM 1" >>confdefs.h
  18121. else $as_nop
  18122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18123. printf "%s\n" "no" >&6; }
  18124. fi
  18125. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18126. conftest$ac_exeext conftest.$ac_ext
  18127. CPPFLAGS="$saved_CPPFLAGS"
  18128. rm "check_crypto_md.h"
  18129. fi
  18130. if test "$found_SHA256" != yes; then
  18131. saved_CPPFLAGS="$CPPFLAGS"
  18132. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18133. touch "check_crypto_md.h"
  18134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC" >&5
  18135. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC... " >&6; }
  18136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18137. /* end confdefs.h. */
  18138. #define ARCHIVE_SHA256_COMPILE_TEST
  18139. #define ARCHIVE_CRYPTO_SHA256_LIBC
  18140. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18141. $(cat "$srcdir/libarchive/archive_digest.c")
  18142. int
  18143. main(int argc, char **argv)
  18144. {
  18145. archive_sha256_ctx ctx;
  18146. archive_sha256_init(&ctx);
  18147. archive_sha256_update(&ctx, *argv, argc);
  18148. archive_sha256_final(&ctx, NULL);
  18149. return 0;
  18150. }
  18151. _ACEOF
  18152. if ac_fn_c_try_link "$LINENO"
  18153. then :
  18154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18155. printf "%s\n" "yes" >&6; }
  18156. found_SHA256=yes
  18157. found_LIBC=yes
  18158. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC 1" >>confdefs.h
  18159. else $as_nop
  18160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18161. printf "%s\n" "no" >&6; }
  18162. fi
  18163. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18164. conftest$ac_exeext conftest.$ac_ext
  18165. CPPFLAGS="$saved_CPPFLAGS"
  18166. rm "check_crypto_md.h"
  18167. fi
  18168. if test "$found_SHA256" != yes; then
  18169. saved_CPPFLAGS="$CPPFLAGS"
  18170. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18171. touch "check_crypto_md.h"
  18172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2" >&5
  18173. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC2... " >&6; }
  18174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18175. /* end confdefs.h. */
  18176. #define ARCHIVE_SHA256_COMPILE_TEST
  18177. #define ARCHIVE_CRYPTO_SHA256_LIBC2
  18178. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18179. $(cat "$srcdir/libarchive/archive_digest.c")
  18180. int
  18181. main(int argc, char **argv)
  18182. {
  18183. archive_sha256_ctx ctx;
  18184. archive_sha256_init(&ctx);
  18185. archive_sha256_update(&ctx, *argv, argc);
  18186. archive_sha256_final(&ctx, NULL);
  18187. return 0;
  18188. }
  18189. _ACEOF
  18190. if ac_fn_c_try_link "$LINENO"
  18191. then :
  18192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18193. printf "%s\n" "yes" >&6; }
  18194. found_SHA256=yes
  18195. found_LIBC2=yes
  18196. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC2 1" >>confdefs.h
  18197. else $as_nop
  18198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18199. printf "%s\n" "no" >&6; }
  18200. fi
  18201. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18202. conftest$ac_exeext conftest.$ac_ext
  18203. CPPFLAGS="$saved_CPPFLAGS"
  18204. rm "check_crypto_md.h"
  18205. fi
  18206. if test "$found_SHA256" != yes; then
  18207. saved_CPPFLAGS="$CPPFLAGS"
  18208. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18209. touch "check_crypto_md.h"
  18210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3" >&5
  18211. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC3... " >&6; }
  18212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18213. /* end confdefs.h. */
  18214. #define ARCHIVE_SHA256_COMPILE_TEST
  18215. #define ARCHIVE_CRYPTO_SHA256_LIBC3
  18216. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18217. $(cat "$srcdir/libarchive/archive_digest.c")
  18218. int
  18219. main(int argc, char **argv)
  18220. {
  18221. archive_sha256_ctx ctx;
  18222. archive_sha256_init(&ctx);
  18223. archive_sha256_update(&ctx, *argv, argc);
  18224. archive_sha256_final(&ctx, NULL);
  18225. return 0;
  18226. }
  18227. _ACEOF
  18228. if ac_fn_c_try_link "$LINENO"
  18229. then :
  18230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18231. printf "%s\n" "yes" >&6; }
  18232. found_SHA256=yes
  18233. found_LIBC3=yes
  18234. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC3 1" >>confdefs.h
  18235. else $as_nop
  18236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18237. printf "%s\n" "no" >&6; }
  18238. fi
  18239. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18240. conftest$ac_exeext conftest.$ac_ext
  18241. CPPFLAGS="$saved_CPPFLAGS"
  18242. rm "check_crypto_md.h"
  18243. fi
  18244. if test "$found_SHA256" != yes; then
  18245. saved_CPPFLAGS="$CPPFLAGS"
  18246. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18247. touch "check_crypto_md.h"
  18248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM" >&5
  18249. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM... " >&6; }
  18250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18251. /* end confdefs.h. */
  18252. #define ARCHIVE_SHA256_COMPILE_TEST
  18253. #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
  18254. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18255. $(cat "$srcdir/libarchive/archive_digest.c")
  18256. int
  18257. main(int argc, char **argv)
  18258. {
  18259. archive_sha256_ctx ctx;
  18260. archive_sha256_init(&ctx);
  18261. archive_sha256_update(&ctx, *argv, argc);
  18262. archive_sha256_final(&ctx, NULL);
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. if ac_fn_c_try_link "$LINENO"
  18267. then :
  18268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18269. printf "%s\n" "yes" >&6; }
  18270. found_SHA256=yes
  18271. found_LIBSYSTEM=yes
  18272. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM 1" >>confdefs.h
  18273. else $as_nop
  18274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18275. printf "%s\n" "no" >&6; }
  18276. fi
  18277. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18278. conftest$ac_exeext conftest.$ac_ext
  18279. CPPFLAGS="$saved_CPPFLAGS"
  18280. rm "check_crypto_md.h"
  18281. fi
  18282. if test "$found_SHA384" != yes; then
  18283. saved_CPPFLAGS="$CPPFLAGS"
  18284. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18285. touch "check_crypto_md.h"
  18286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC" >&5
  18287. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC... " >&6; }
  18288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18289. /* end confdefs.h. */
  18290. #define ARCHIVE_SHA384_COMPILE_TEST
  18291. #define ARCHIVE_CRYPTO_SHA384_LIBC
  18292. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18293. $(cat "$srcdir/libarchive/archive_digest.c")
  18294. int
  18295. main(int argc, char **argv)
  18296. {
  18297. archive_sha384_ctx ctx;
  18298. archive_sha384_init(&ctx);
  18299. archive_sha384_update(&ctx, *argv, argc);
  18300. archive_sha384_final(&ctx, NULL);
  18301. return 0;
  18302. }
  18303. _ACEOF
  18304. if ac_fn_c_try_link "$LINENO"
  18305. then :
  18306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18307. printf "%s\n" "yes" >&6; }
  18308. found_SHA384=yes
  18309. found_LIBC=yes
  18310. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC 1" >>confdefs.h
  18311. else $as_nop
  18312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18313. printf "%s\n" "no" >&6; }
  18314. fi
  18315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18316. conftest$ac_exeext conftest.$ac_ext
  18317. CPPFLAGS="$saved_CPPFLAGS"
  18318. rm "check_crypto_md.h"
  18319. fi
  18320. if test "$found_SHA384" != yes; then
  18321. saved_CPPFLAGS="$CPPFLAGS"
  18322. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18323. touch "check_crypto_md.h"
  18324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2" >&5
  18325. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC2... " >&6; }
  18326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18327. /* end confdefs.h. */
  18328. #define ARCHIVE_SHA384_COMPILE_TEST
  18329. #define ARCHIVE_CRYPTO_SHA384_LIBC2
  18330. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18331. $(cat "$srcdir/libarchive/archive_digest.c")
  18332. int
  18333. main(int argc, char **argv)
  18334. {
  18335. archive_sha384_ctx ctx;
  18336. archive_sha384_init(&ctx);
  18337. archive_sha384_update(&ctx, *argv, argc);
  18338. archive_sha384_final(&ctx, NULL);
  18339. return 0;
  18340. }
  18341. _ACEOF
  18342. if ac_fn_c_try_link "$LINENO"
  18343. then :
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18345. printf "%s\n" "yes" >&6; }
  18346. found_SHA384=yes
  18347. found_LIBC2=yes
  18348. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC2 1" >>confdefs.h
  18349. else $as_nop
  18350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18351. printf "%s\n" "no" >&6; }
  18352. fi
  18353. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18354. conftest$ac_exeext conftest.$ac_ext
  18355. CPPFLAGS="$saved_CPPFLAGS"
  18356. rm "check_crypto_md.h"
  18357. fi
  18358. if test "$found_SHA384" != yes; then
  18359. saved_CPPFLAGS="$CPPFLAGS"
  18360. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18361. touch "check_crypto_md.h"
  18362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3" >&5
  18363. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC3... " >&6; }
  18364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18365. /* end confdefs.h. */
  18366. #define ARCHIVE_SHA384_COMPILE_TEST
  18367. #define ARCHIVE_CRYPTO_SHA384_LIBC3
  18368. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18369. $(cat "$srcdir/libarchive/archive_digest.c")
  18370. int
  18371. main(int argc, char **argv)
  18372. {
  18373. archive_sha384_ctx ctx;
  18374. archive_sha384_init(&ctx);
  18375. archive_sha384_update(&ctx, *argv, argc);
  18376. archive_sha384_final(&ctx, NULL);
  18377. return 0;
  18378. }
  18379. _ACEOF
  18380. if ac_fn_c_try_link "$LINENO"
  18381. then :
  18382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18383. printf "%s\n" "yes" >&6; }
  18384. found_SHA384=yes
  18385. found_LIBC3=yes
  18386. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC3 1" >>confdefs.h
  18387. else $as_nop
  18388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18389. printf "%s\n" "no" >&6; }
  18390. fi
  18391. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18392. conftest$ac_exeext conftest.$ac_ext
  18393. CPPFLAGS="$saved_CPPFLAGS"
  18394. rm "check_crypto_md.h"
  18395. fi
  18396. if test "$found_SHA384" != yes; then
  18397. saved_CPPFLAGS="$CPPFLAGS"
  18398. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18399. touch "check_crypto_md.h"
  18400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM" >&5
  18401. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM... " >&6; }
  18402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18403. /* end confdefs.h. */
  18404. #define ARCHIVE_SHA384_COMPILE_TEST
  18405. #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
  18406. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18407. $(cat "$srcdir/libarchive/archive_digest.c")
  18408. int
  18409. main(int argc, char **argv)
  18410. {
  18411. archive_sha384_ctx ctx;
  18412. archive_sha384_init(&ctx);
  18413. archive_sha384_update(&ctx, *argv, argc);
  18414. archive_sha384_final(&ctx, NULL);
  18415. return 0;
  18416. }
  18417. _ACEOF
  18418. if ac_fn_c_try_link "$LINENO"
  18419. then :
  18420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18421. printf "%s\n" "yes" >&6; }
  18422. found_SHA384=yes
  18423. found_LIBSYSTEM=yes
  18424. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM 1" >>confdefs.h
  18425. else $as_nop
  18426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18427. printf "%s\n" "no" >&6; }
  18428. fi
  18429. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18430. conftest$ac_exeext conftest.$ac_ext
  18431. CPPFLAGS="$saved_CPPFLAGS"
  18432. rm "check_crypto_md.h"
  18433. fi
  18434. if test "$found_SHA512" != yes; then
  18435. saved_CPPFLAGS="$CPPFLAGS"
  18436. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18437. touch "check_crypto_md.h"
  18438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC" >&5
  18439. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC... " >&6; }
  18440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18441. /* end confdefs.h. */
  18442. #define ARCHIVE_SHA512_COMPILE_TEST
  18443. #define ARCHIVE_CRYPTO_SHA512_LIBC
  18444. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18445. $(cat "$srcdir/libarchive/archive_digest.c")
  18446. int
  18447. main(int argc, char **argv)
  18448. {
  18449. archive_sha512_ctx ctx;
  18450. archive_sha512_init(&ctx);
  18451. archive_sha512_update(&ctx, *argv, argc);
  18452. archive_sha512_final(&ctx, NULL);
  18453. return 0;
  18454. }
  18455. _ACEOF
  18456. if ac_fn_c_try_link "$LINENO"
  18457. then :
  18458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18459. printf "%s\n" "yes" >&6; }
  18460. found_SHA512=yes
  18461. found_LIBC=yes
  18462. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC 1" >>confdefs.h
  18463. else $as_nop
  18464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18465. printf "%s\n" "no" >&6; }
  18466. fi
  18467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18468. conftest$ac_exeext conftest.$ac_ext
  18469. CPPFLAGS="$saved_CPPFLAGS"
  18470. rm "check_crypto_md.h"
  18471. fi
  18472. if test "$found_SHA512" != yes; then
  18473. saved_CPPFLAGS="$CPPFLAGS"
  18474. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18475. touch "check_crypto_md.h"
  18476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2" >&5
  18477. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC2... " >&6; }
  18478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18479. /* end confdefs.h. */
  18480. #define ARCHIVE_SHA512_COMPILE_TEST
  18481. #define ARCHIVE_CRYPTO_SHA512_LIBC2
  18482. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18483. $(cat "$srcdir/libarchive/archive_digest.c")
  18484. int
  18485. main(int argc, char **argv)
  18486. {
  18487. archive_sha512_ctx ctx;
  18488. archive_sha512_init(&ctx);
  18489. archive_sha512_update(&ctx, *argv, argc);
  18490. archive_sha512_final(&ctx, NULL);
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. if ac_fn_c_try_link "$LINENO"
  18495. then :
  18496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18497. printf "%s\n" "yes" >&6; }
  18498. found_SHA512=yes
  18499. found_LIBC2=yes
  18500. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC2 1" >>confdefs.h
  18501. else $as_nop
  18502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18503. printf "%s\n" "no" >&6; }
  18504. fi
  18505. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18506. conftest$ac_exeext conftest.$ac_ext
  18507. CPPFLAGS="$saved_CPPFLAGS"
  18508. rm "check_crypto_md.h"
  18509. fi
  18510. if test "$found_SHA512" != yes; then
  18511. saved_CPPFLAGS="$CPPFLAGS"
  18512. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18513. touch "check_crypto_md.h"
  18514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3" >&5
  18515. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC3... " >&6; }
  18516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18517. /* end confdefs.h. */
  18518. #define ARCHIVE_SHA512_COMPILE_TEST
  18519. #define ARCHIVE_CRYPTO_SHA512_LIBC3
  18520. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18521. $(cat "$srcdir/libarchive/archive_digest.c")
  18522. int
  18523. main(int argc, char **argv)
  18524. {
  18525. archive_sha512_ctx ctx;
  18526. archive_sha512_init(&ctx);
  18527. archive_sha512_update(&ctx, *argv, argc);
  18528. archive_sha512_final(&ctx, NULL);
  18529. return 0;
  18530. }
  18531. _ACEOF
  18532. if ac_fn_c_try_link "$LINENO"
  18533. then :
  18534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18535. printf "%s\n" "yes" >&6; }
  18536. found_SHA512=yes
  18537. found_LIBC3=yes
  18538. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC3 1" >>confdefs.h
  18539. else $as_nop
  18540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18541. printf "%s\n" "no" >&6; }
  18542. fi
  18543. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18544. conftest$ac_exeext conftest.$ac_ext
  18545. CPPFLAGS="$saved_CPPFLAGS"
  18546. rm "check_crypto_md.h"
  18547. fi
  18548. if test "$found_SHA512" != yes; then
  18549. saved_CPPFLAGS="$CPPFLAGS"
  18550. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18551. touch "check_crypto_md.h"
  18552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM" >&5
  18553. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM... " >&6; }
  18554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18555. /* end confdefs.h. */
  18556. #define ARCHIVE_SHA512_COMPILE_TEST
  18557. #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
  18558. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18559. $(cat "$srcdir/libarchive/archive_digest.c")
  18560. int
  18561. main(int argc, char **argv)
  18562. {
  18563. archive_sha512_ctx ctx;
  18564. archive_sha512_init(&ctx);
  18565. archive_sha512_update(&ctx, *argv, argc);
  18566. archive_sha512_final(&ctx, NULL);
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. if ac_fn_c_try_link "$LINENO"
  18571. then :
  18572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18573. printf "%s\n" "yes" >&6; }
  18574. found_SHA512=yes
  18575. found_LIBSYSTEM=yes
  18576. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM 1" >>confdefs.h
  18577. else $as_nop
  18578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18579. printf "%s\n" "no" >&6; }
  18580. fi
  18581. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18582. conftest$ac_exeext conftest.$ac_ext
  18583. CPPFLAGS="$saved_CPPFLAGS"
  18584. rm "check_crypto_md.h"
  18585. fi
  18586. ;;
  18587. esac
  18588. if test "x$with_cng" != "xno"; then
  18589. for ac_header in bcrypt.h
  18590. do :
  18591. ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#ifdef HAVE_WINDOWS_H
  18592. # include <windows.h>
  18593. #endif
  18594. "
  18595. if test "x$ac_cv_header_bcrypt_h" = xyes
  18596. then :
  18597. printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
  18598. LIBS="$LIBS -lbcrypt"
  18599. fi
  18600. done
  18601. fi
  18602. if test "x$with_mbedtls" = "xyes"; then
  18603. ac_fn_c_check_header_compile "$LINENO" "mbedtls/aes.h" "ac_cv_header_mbedtls_aes_h" "$ac_includes_default"
  18604. if test "x$ac_cv_header_mbedtls_aes_h" = xyes
  18605. then :
  18606. printf "%s\n" "#define HAVE_MBEDTLS_AES_H 1" >>confdefs.h
  18607. fi
  18608. ac_fn_c_check_header_compile "$LINENO" "mbedtls/md.h" "ac_cv_header_mbedtls_md_h" "$ac_includes_default"
  18609. if test "x$ac_cv_header_mbedtls_md_h" = xyes
  18610. then :
  18611. printf "%s\n" "#define HAVE_MBEDTLS_MD_H 1" >>confdefs.h
  18612. fi
  18613. ac_fn_c_check_header_compile "$LINENO" "mbedtls/pkcs5.h" "ac_cv_header_mbedtls_pkcs5_h" "$ac_includes_default"
  18614. if test "x$ac_cv_header_mbedtls_pkcs5_h" = xyes
  18615. then :
  18616. printf "%s\n" "#define HAVE_MBEDTLS_PKCS5_H 1" >>confdefs.h
  18617. fi
  18618. saved_LIBS=$LIBS
  18619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_sha1_init in -lmbedcrypto" >&5
  18620. printf %s "checking for mbedtls_sha1_init in -lmbedcrypto... " >&6; }
  18621. if test ${ac_cv_lib_mbedcrypto_mbedtls_sha1_init+y}
  18622. then :
  18623. printf %s "(cached) " >&6
  18624. else $as_nop
  18625. ac_check_lib_save_LIBS=$LIBS
  18626. LIBS="-lmbedcrypto $LIBS"
  18627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18628. /* end confdefs.h. */
  18629. /* Override any GCC internal prototype to avoid an error.
  18630. Use char because int might match the return type of a GCC
  18631. builtin and then its argument prototype would still apply. */
  18632. char mbedtls_sha1_init ();
  18633. int
  18634. main (void)
  18635. {
  18636. return mbedtls_sha1_init ();
  18637. ;
  18638. return 0;
  18639. }
  18640. _ACEOF
  18641. if ac_fn_c_try_link "$LINENO"
  18642. then :
  18643. ac_cv_lib_mbedcrypto_mbedtls_sha1_init=yes
  18644. else $as_nop
  18645. ac_cv_lib_mbedcrypto_mbedtls_sha1_init=no
  18646. fi
  18647. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18648. conftest$ac_exeext conftest.$ac_ext
  18649. LIBS=$ac_check_lib_save_LIBS
  18650. fi
  18651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&5
  18652. printf "%s\n" "$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&6; }
  18653. if test "x$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" = xyes
  18654. then :
  18655. printf "%s\n" "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
  18656. LIBS="-lmbedcrypto $LIBS"
  18657. fi
  18658. if test "$found_MD5" != yes; then
  18659. saved_CPPFLAGS="$CPPFLAGS"
  18660. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18661. touch "check_crypto_md.h"
  18662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS" >&5
  18663. printf %s "checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS... " >&6; }
  18664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18665. /* end confdefs.h. */
  18666. #define ARCHIVE_MD5_COMPILE_TEST
  18667. #define ARCHIVE_CRYPTO_MD5_MBEDTLS
  18668. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18669. $(cat "$srcdir/libarchive/archive_digest.c")
  18670. int
  18671. main(int argc, char **argv)
  18672. {
  18673. archive_md5_ctx ctx;
  18674. archive_md5_init(&ctx);
  18675. archive_md5_update(&ctx, *argv, argc);
  18676. archive_md5_final(&ctx, NULL);
  18677. return 0;
  18678. }
  18679. _ACEOF
  18680. if ac_fn_c_try_link "$LINENO"
  18681. then :
  18682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18683. printf "%s\n" "yes" >&6; }
  18684. found_MD5=yes
  18685. found_MBEDTLS=yes
  18686. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_MBEDTLS 1" >>confdefs.h
  18687. else $as_nop
  18688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18689. printf "%s\n" "no" >&6; }
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. CPPFLAGS="$saved_CPPFLAGS"
  18694. rm "check_crypto_md.h"
  18695. fi
  18696. if test "$found_RMD160" != yes; then
  18697. saved_CPPFLAGS="$CPPFLAGS"
  18698. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18699. touch "check_crypto_md.h"
  18700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS" >&5
  18701. printf %s "checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS... " >&6; }
  18702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18703. /* end confdefs.h. */
  18704. #define ARCHIVE_RMD160_COMPILE_TEST
  18705. #define ARCHIVE_CRYPTO_RMD160_MBEDTLS
  18706. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18707. $(cat "$srcdir/libarchive/archive_digest.c")
  18708. int
  18709. main(int argc, char **argv)
  18710. {
  18711. archive_rmd160_ctx ctx;
  18712. archive_rmd160_init(&ctx);
  18713. archive_rmd160_update(&ctx, *argv, argc);
  18714. archive_rmd160_final(&ctx, NULL);
  18715. return 0;
  18716. }
  18717. _ACEOF
  18718. if ac_fn_c_try_link "$LINENO"
  18719. then :
  18720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18721. printf "%s\n" "yes" >&6; }
  18722. found_RMD160=yes
  18723. found_MBEDTLS=yes
  18724. printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_MBEDTLS 1" >>confdefs.h
  18725. else $as_nop
  18726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18727. printf "%s\n" "no" >&6; }
  18728. fi
  18729. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18730. conftest$ac_exeext conftest.$ac_ext
  18731. CPPFLAGS="$saved_CPPFLAGS"
  18732. rm "check_crypto_md.h"
  18733. fi
  18734. if test "$found_SHA1" != yes; then
  18735. saved_CPPFLAGS="$CPPFLAGS"
  18736. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18737. touch "check_crypto_md.h"
  18738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS" >&5
  18739. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS... " >&6; }
  18740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18741. /* end confdefs.h. */
  18742. #define ARCHIVE_SHA1_COMPILE_TEST
  18743. #define ARCHIVE_CRYPTO_SHA1_MBEDTLS
  18744. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18745. $(cat "$srcdir/libarchive/archive_digest.c")
  18746. int
  18747. main(int argc, char **argv)
  18748. {
  18749. archive_sha1_ctx ctx;
  18750. archive_sha1_init(&ctx);
  18751. archive_sha1_update(&ctx, *argv, argc);
  18752. archive_sha1_final(&ctx, NULL);
  18753. return 0;
  18754. }
  18755. _ACEOF
  18756. if ac_fn_c_try_link "$LINENO"
  18757. then :
  18758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18759. printf "%s\n" "yes" >&6; }
  18760. found_SHA1=yes
  18761. found_MBEDTLS=yes
  18762. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_MBEDTLS 1" >>confdefs.h
  18763. else $as_nop
  18764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18765. printf "%s\n" "no" >&6; }
  18766. fi
  18767. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18768. conftest$ac_exeext conftest.$ac_ext
  18769. CPPFLAGS="$saved_CPPFLAGS"
  18770. rm "check_crypto_md.h"
  18771. fi
  18772. if test "$found_SHA256" != yes; then
  18773. saved_CPPFLAGS="$CPPFLAGS"
  18774. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18775. touch "check_crypto_md.h"
  18776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS" >&5
  18777. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS... " >&6; }
  18778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18779. /* end confdefs.h. */
  18780. #define ARCHIVE_SHA256_COMPILE_TEST
  18781. #define ARCHIVE_CRYPTO_SHA256_MBEDTLS
  18782. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18783. $(cat "$srcdir/libarchive/archive_digest.c")
  18784. int
  18785. main(int argc, char **argv)
  18786. {
  18787. archive_sha256_ctx ctx;
  18788. archive_sha256_init(&ctx);
  18789. archive_sha256_update(&ctx, *argv, argc);
  18790. archive_sha256_final(&ctx, NULL);
  18791. return 0;
  18792. }
  18793. _ACEOF
  18794. if ac_fn_c_try_link "$LINENO"
  18795. then :
  18796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18797. printf "%s\n" "yes" >&6; }
  18798. found_SHA256=yes
  18799. found_MBEDTLS=yes
  18800. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_MBEDTLS 1" >>confdefs.h
  18801. else $as_nop
  18802. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18803. printf "%s\n" "no" >&6; }
  18804. fi
  18805. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18806. conftest$ac_exeext conftest.$ac_ext
  18807. CPPFLAGS="$saved_CPPFLAGS"
  18808. rm "check_crypto_md.h"
  18809. fi
  18810. if test "$found_SHA384" != yes; then
  18811. saved_CPPFLAGS="$CPPFLAGS"
  18812. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18813. touch "check_crypto_md.h"
  18814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS" >&5
  18815. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS... " >&6; }
  18816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18817. /* end confdefs.h. */
  18818. #define ARCHIVE_SHA384_COMPILE_TEST
  18819. #define ARCHIVE_CRYPTO_SHA384_MBEDTLS
  18820. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18821. $(cat "$srcdir/libarchive/archive_digest.c")
  18822. int
  18823. main(int argc, char **argv)
  18824. {
  18825. archive_sha384_ctx ctx;
  18826. archive_sha384_init(&ctx);
  18827. archive_sha384_update(&ctx, *argv, argc);
  18828. archive_sha384_final(&ctx, NULL);
  18829. return 0;
  18830. }
  18831. _ACEOF
  18832. if ac_fn_c_try_link "$LINENO"
  18833. then :
  18834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18835. printf "%s\n" "yes" >&6; }
  18836. found_SHA384=yes
  18837. found_MBEDTLS=yes
  18838. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_MBEDTLS 1" >>confdefs.h
  18839. else $as_nop
  18840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18841. printf "%s\n" "no" >&6; }
  18842. fi
  18843. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18844. conftest$ac_exeext conftest.$ac_ext
  18845. CPPFLAGS="$saved_CPPFLAGS"
  18846. rm "check_crypto_md.h"
  18847. fi
  18848. if test "$found_SHA512" != yes; then
  18849. saved_CPPFLAGS="$CPPFLAGS"
  18850. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18851. touch "check_crypto_md.h"
  18852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS" >&5
  18853. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS... " >&6; }
  18854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18855. /* end confdefs.h. */
  18856. #define ARCHIVE_SHA512_COMPILE_TEST
  18857. #define ARCHIVE_CRYPTO_SHA512_MBEDTLS
  18858. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18859. $(cat "$srcdir/libarchive/archive_digest.c")
  18860. int
  18861. main(int argc, char **argv)
  18862. {
  18863. archive_sha512_ctx ctx;
  18864. archive_sha512_init(&ctx);
  18865. archive_sha512_update(&ctx, *argv, argc);
  18866. archive_sha512_final(&ctx, NULL);
  18867. return 0;
  18868. }
  18869. _ACEOF
  18870. if ac_fn_c_try_link "$LINENO"
  18871. then :
  18872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18873. printf "%s\n" "yes" >&6; }
  18874. found_SHA512=yes
  18875. found_MBEDTLS=yes
  18876. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_MBEDTLS 1" >>confdefs.h
  18877. else $as_nop
  18878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18879. printf "%s\n" "no" >&6; }
  18880. fi
  18881. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18882. conftest$ac_exeext conftest.$ac_ext
  18883. CPPFLAGS="$saved_CPPFLAGS"
  18884. rm "check_crypto_md.h"
  18885. fi
  18886. if test "x$found_MBEDTLS" != "xyes"; then
  18887. LIBS=$saved_LIBS
  18888. fi
  18889. fi
  18890. if test "x$with_nettle" = "xyes"; then
  18891. ac_fn_c_check_header_compile "$LINENO" "nettle/md5.h" "ac_cv_header_nettle_md5_h" "$ac_includes_default"
  18892. if test "x$ac_cv_header_nettle_md5_h" = xyes
  18893. then :
  18894. printf "%s\n" "#define HAVE_NETTLE_MD5_H 1" >>confdefs.h
  18895. fi
  18896. ac_fn_c_check_header_compile "$LINENO" "nettle/ripemd160.h" "ac_cv_header_nettle_ripemd160_h" "$ac_includes_default"
  18897. if test "x$ac_cv_header_nettle_ripemd160_h" = xyes
  18898. then :
  18899. printf "%s\n" "#define HAVE_NETTLE_RIPEMD160_H 1" >>confdefs.h
  18900. fi
  18901. ac_fn_c_check_header_compile "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
  18902. if test "x$ac_cv_header_nettle_sha_h" = xyes
  18903. then :
  18904. printf "%s\n" "#define HAVE_NETTLE_SHA_H 1" >>confdefs.h
  18905. fi
  18906. ac_fn_c_check_header_compile "$LINENO" "nettle/pbkdf2.h" "ac_cv_header_nettle_pbkdf2_h" "$ac_includes_default"
  18907. if test "x$ac_cv_header_nettle_pbkdf2_h" = xyes
  18908. then :
  18909. printf "%s\n" "#define HAVE_NETTLE_PBKDF2_H 1" >>confdefs.h
  18910. fi
  18911. ac_fn_c_check_header_compile "$LINENO" "nettle/aes.h" "ac_cv_header_nettle_aes_h" "$ac_includes_default"
  18912. if test "x$ac_cv_header_nettle_aes_h" = xyes
  18913. then :
  18914. printf "%s\n" "#define HAVE_NETTLE_AES_H 1" >>confdefs.h
  18915. fi
  18916. ac_fn_c_check_header_compile "$LINENO" "nettle/hmac.h" "ac_cv_header_nettle_hmac_h" "$ac_includes_default"
  18917. if test "x$ac_cv_header_nettle_hmac_h" = xyes
  18918. then :
  18919. printf "%s\n" "#define HAVE_NETTLE_HMAC_H 1" >>confdefs.h
  18920. fi
  18921. saved_LIBS=$LIBS
  18922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
  18923. printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
  18924. if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
  18925. then :
  18926. printf %s "(cached) " >&6
  18927. else $as_nop
  18928. ac_check_lib_save_LIBS=$LIBS
  18929. LIBS="-lnettle $LIBS"
  18930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18931. /* end confdefs.h. */
  18932. /* Override any GCC internal prototype to avoid an error.
  18933. Use char because int might match the return type of a GCC
  18934. builtin and then its argument prototype would still apply. */
  18935. char nettle_sha1_init ();
  18936. int
  18937. main (void)
  18938. {
  18939. return nettle_sha1_init ();
  18940. ;
  18941. return 0;
  18942. }
  18943. _ACEOF
  18944. if ac_fn_c_try_link "$LINENO"
  18945. then :
  18946. ac_cv_lib_nettle_nettle_sha1_init=yes
  18947. else $as_nop
  18948. ac_cv_lib_nettle_nettle_sha1_init=no
  18949. fi
  18950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18951. conftest$ac_exeext conftest.$ac_ext
  18952. LIBS=$ac_check_lib_save_LIBS
  18953. fi
  18954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
  18955. printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
  18956. if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
  18957. then :
  18958. printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h
  18959. LIBS="-lnettle $LIBS"
  18960. fi
  18961. if test "$found_MD5" != yes; then
  18962. saved_CPPFLAGS="$CPPFLAGS"
  18963. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  18964. touch "check_crypto_md.h"
  18965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_NETTLE" >&5
  18966. printf %s "checking support for ARCHIVE_CRYPTO_MD5_NETTLE... " >&6; }
  18967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18968. /* end confdefs.h. */
  18969. #define ARCHIVE_MD5_COMPILE_TEST
  18970. #define ARCHIVE_CRYPTO_MD5_NETTLE
  18971. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  18972. $(cat "$srcdir/libarchive/archive_digest.c")
  18973. int
  18974. main(int argc, char **argv)
  18975. {
  18976. archive_md5_ctx ctx;
  18977. archive_md5_init(&ctx);
  18978. archive_md5_update(&ctx, *argv, argc);
  18979. archive_md5_final(&ctx, NULL);
  18980. return 0;
  18981. }
  18982. _ACEOF
  18983. if ac_fn_c_try_link "$LINENO"
  18984. then :
  18985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18986. printf "%s\n" "yes" >&6; }
  18987. found_MD5=yes
  18988. found_NETTLE=yes
  18989. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_NETTLE 1" >>confdefs.h
  18990. else $as_nop
  18991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18992. printf "%s\n" "no" >&6; }
  18993. fi
  18994. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18995. conftest$ac_exeext conftest.$ac_ext
  18996. CPPFLAGS="$saved_CPPFLAGS"
  18997. rm "check_crypto_md.h"
  18998. fi
  18999. if test "$found_RMD160" != yes; then
  19000. saved_CPPFLAGS="$CPPFLAGS"
  19001. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19002. touch "check_crypto_md.h"
  19003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_NETTLE" >&5
  19004. printf %s "checking support for ARCHIVE_CRYPTO_RMD160_NETTLE... " >&6; }
  19005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19006. /* end confdefs.h. */
  19007. #define ARCHIVE_RMD160_COMPILE_TEST
  19008. #define ARCHIVE_CRYPTO_RMD160_NETTLE
  19009. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19010. $(cat "$srcdir/libarchive/archive_digest.c")
  19011. int
  19012. main(int argc, char **argv)
  19013. {
  19014. archive_rmd160_ctx ctx;
  19015. archive_rmd160_init(&ctx);
  19016. archive_rmd160_update(&ctx, *argv, argc);
  19017. archive_rmd160_final(&ctx, NULL);
  19018. return 0;
  19019. }
  19020. _ACEOF
  19021. if ac_fn_c_try_link "$LINENO"
  19022. then :
  19023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19024. printf "%s\n" "yes" >&6; }
  19025. found_RMD160=yes
  19026. found_NETTLE=yes
  19027. printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_NETTLE 1" >>confdefs.h
  19028. else $as_nop
  19029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19030. printf "%s\n" "no" >&6; }
  19031. fi
  19032. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19033. conftest$ac_exeext conftest.$ac_ext
  19034. CPPFLAGS="$saved_CPPFLAGS"
  19035. rm "check_crypto_md.h"
  19036. fi
  19037. if test "$found_SHA1" != yes; then
  19038. saved_CPPFLAGS="$CPPFLAGS"
  19039. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19040. touch "check_crypto_md.h"
  19041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_NETTLE" >&5
  19042. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_NETTLE... " >&6; }
  19043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19044. /* end confdefs.h. */
  19045. #define ARCHIVE_SHA1_COMPILE_TEST
  19046. #define ARCHIVE_CRYPTO_SHA1_NETTLE
  19047. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19048. $(cat "$srcdir/libarchive/archive_digest.c")
  19049. int
  19050. main(int argc, char **argv)
  19051. {
  19052. archive_sha1_ctx ctx;
  19053. archive_sha1_init(&ctx);
  19054. archive_sha1_update(&ctx, *argv, argc);
  19055. archive_sha1_final(&ctx, NULL);
  19056. return 0;
  19057. }
  19058. _ACEOF
  19059. if ac_fn_c_try_link "$LINENO"
  19060. then :
  19061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19062. printf "%s\n" "yes" >&6; }
  19063. found_SHA1=yes
  19064. found_NETTLE=yes
  19065. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_NETTLE 1" >>confdefs.h
  19066. else $as_nop
  19067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19068. printf "%s\n" "no" >&6; }
  19069. fi
  19070. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19071. conftest$ac_exeext conftest.$ac_ext
  19072. CPPFLAGS="$saved_CPPFLAGS"
  19073. rm "check_crypto_md.h"
  19074. fi
  19075. if test "$found_SHA256" != yes; then
  19076. saved_CPPFLAGS="$CPPFLAGS"
  19077. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19078. touch "check_crypto_md.h"
  19079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_NETTLE" >&5
  19080. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_NETTLE... " >&6; }
  19081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19082. /* end confdefs.h. */
  19083. #define ARCHIVE_SHA256_COMPILE_TEST
  19084. #define ARCHIVE_CRYPTO_SHA256_NETTLE
  19085. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19086. $(cat "$srcdir/libarchive/archive_digest.c")
  19087. int
  19088. main(int argc, char **argv)
  19089. {
  19090. archive_sha256_ctx ctx;
  19091. archive_sha256_init(&ctx);
  19092. archive_sha256_update(&ctx, *argv, argc);
  19093. archive_sha256_final(&ctx, NULL);
  19094. return 0;
  19095. }
  19096. _ACEOF
  19097. if ac_fn_c_try_link "$LINENO"
  19098. then :
  19099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19100. printf "%s\n" "yes" >&6; }
  19101. found_SHA256=yes
  19102. found_NETTLE=yes
  19103. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_NETTLE 1" >>confdefs.h
  19104. else $as_nop
  19105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19106. printf "%s\n" "no" >&6; }
  19107. fi
  19108. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19109. conftest$ac_exeext conftest.$ac_ext
  19110. CPPFLAGS="$saved_CPPFLAGS"
  19111. rm "check_crypto_md.h"
  19112. fi
  19113. if test "$found_SHA384" != yes; then
  19114. saved_CPPFLAGS="$CPPFLAGS"
  19115. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19116. touch "check_crypto_md.h"
  19117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_NETTLE" >&5
  19118. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_NETTLE... " >&6; }
  19119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19120. /* end confdefs.h. */
  19121. #define ARCHIVE_SHA384_COMPILE_TEST
  19122. #define ARCHIVE_CRYPTO_SHA384_NETTLE
  19123. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19124. $(cat "$srcdir/libarchive/archive_digest.c")
  19125. int
  19126. main(int argc, char **argv)
  19127. {
  19128. archive_sha384_ctx ctx;
  19129. archive_sha384_init(&ctx);
  19130. archive_sha384_update(&ctx, *argv, argc);
  19131. archive_sha384_final(&ctx, NULL);
  19132. return 0;
  19133. }
  19134. _ACEOF
  19135. if ac_fn_c_try_link "$LINENO"
  19136. then :
  19137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19138. printf "%s\n" "yes" >&6; }
  19139. found_SHA384=yes
  19140. found_NETTLE=yes
  19141. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_NETTLE 1" >>confdefs.h
  19142. else $as_nop
  19143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19144. printf "%s\n" "no" >&6; }
  19145. fi
  19146. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19147. conftest$ac_exeext conftest.$ac_ext
  19148. CPPFLAGS="$saved_CPPFLAGS"
  19149. rm "check_crypto_md.h"
  19150. fi
  19151. if test "$found_SHA512" != yes; then
  19152. saved_CPPFLAGS="$CPPFLAGS"
  19153. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19154. touch "check_crypto_md.h"
  19155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_NETTLE" >&5
  19156. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_NETTLE... " >&6; }
  19157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19158. /* end confdefs.h. */
  19159. #define ARCHIVE_SHA512_COMPILE_TEST
  19160. #define ARCHIVE_CRYPTO_SHA512_NETTLE
  19161. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19162. $(cat "$srcdir/libarchive/archive_digest.c")
  19163. int
  19164. main(int argc, char **argv)
  19165. {
  19166. archive_sha512_ctx ctx;
  19167. archive_sha512_init(&ctx);
  19168. archive_sha512_update(&ctx, *argv, argc);
  19169. archive_sha512_final(&ctx, NULL);
  19170. return 0;
  19171. }
  19172. _ACEOF
  19173. if ac_fn_c_try_link "$LINENO"
  19174. then :
  19175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19176. printf "%s\n" "yes" >&6; }
  19177. found_SHA512=yes
  19178. found_NETTLE=yes
  19179. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_NETTLE 1" >>confdefs.h
  19180. else $as_nop
  19181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19182. printf "%s\n" "no" >&6; }
  19183. fi
  19184. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19185. conftest$ac_exeext conftest.$ac_ext
  19186. CPPFLAGS="$saved_CPPFLAGS"
  19187. rm "check_crypto_md.h"
  19188. fi
  19189. if test "x$found_NETTLE" != "xyes"; then
  19190. LIBS=$saved_LIBS
  19191. fi
  19192. fi
  19193. if test "x$with_openssl" != "xno"; then
  19194. ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
  19195. if test "x$ac_cv_header_openssl_evp_h" = xyes
  19196. then :
  19197. printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
  19198. fi
  19199. saved_LIBS=$LIBS
  19200. LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libcrypto"
  19201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -lcrypto" >&5
  19202. printf %s "checking for OPENSSL_config in -lcrypto... " >&6; }
  19203. if test ${ac_cv_lib_crypto_OPENSSL_config+y}
  19204. then :
  19205. printf %s "(cached) " >&6
  19206. else $as_nop
  19207. ac_check_lib_save_LIBS=$LIBS
  19208. LIBS="-lcrypto $LIBS"
  19209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19210. /* end confdefs.h. */
  19211. /* Override any GCC internal prototype to avoid an error.
  19212. Use char because int might match the return type of a GCC
  19213. builtin and then its argument prototype would still apply. */
  19214. char OPENSSL_config ();
  19215. int
  19216. main (void)
  19217. {
  19218. return OPENSSL_config ();
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. if ac_fn_c_try_link "$LINENO"
  19224. then :
  19225. ac_cv_lib_crypto_OPENSSL_config=yes
  19226. else $as_nop
  19227. ac_cv_lib_crypto_OPENSSL_config=no
  19228. fi
  19229. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19230. conftest$ac_exeext conftest.$ac_ext
  19231. LIBS=$ac_check_lib_save_LIBS
  19232. fi
  19233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_config" >&5
  19234. printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_config" >&6; }
  19235. if test "x$ac_cv_lib_crypto_OPENSSL_config" = xyes
  19236. then :
  19237. printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
  19238. LIBS="-lcrypto $LIBS"
  19239. fi
  19240. if test "$found_MD5" != yes; then
  19241. saved_CPPFLAGS="$CPPFLAGS"
  19242. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19243. touch "check_crypto_md.h"
  19244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_OPENSSL" >&5
  19245. printf %s "checking support for ARCHIVE_CRYPTO_MD5_OPENSSL... " >&6; }
  19246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19247. /* end confdefs.h. */
  19248. #define ARCHIVE_MD5_COMPILE_TEST
  19249. #define ARCHIVE_CRYPTO_MD5_OPENSSL
  19250. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19251. $(cat "$srcdir/libarchive/archive_digest.c")
  19252. int
  19253. main(int argc, char **argv)
  19254. {
  19255. archive_md5_ctx ctx;
  19256. archive_md5_init(&ctx);
  19257. archive_md5_update(&ctx, *argv, argc);
  19258. archive_md5_final(&ctx, NULL);
  19259. return 0;
  19260. }
  19261. _ACEOF
  19262. if ac_fn_c_try_link "$LINENO"
  19263. then :
  19264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19265. printf "%s\n" "yes" >&6; }
  19266. found_MD5=yes
  19267. found_OPENSSL=yes
  19268. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_OPENSSL 1" >>confdefs.h
  19269. else $as_nop
  19270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19271. printf "%s\n" "no" >&6; }
  19272. fi
  19273. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19274. conftest$ac_exeext conftest.$ac_ext
  19275. CPPFLAGS="$saved_CPPFLAGS"
  19276. rm "check_crypto_md.h"
  19277. fi
  19278. if test "$found_RMD160" != yes; then
  19279. saved_CPPFLAGS="$CPPFLAGS"
  19280. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19281. touch "check_crypto_md.h"
  19282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL" >&5
  19283. printf %s "checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL... " >&6; }
  19284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19285. /* end confdefs.h. */
  19286. #define ARCHIVE_RMD160_COMPILE_TEST
  19287. #define ARCHIVE_CRYPTO_RMD160_OPENSSL
  19288. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19289. $(cat "$srcdir/libarchive/archive_digest.c")
  19290. int
  19291. main(int argc, char **argv)
  19292. {
  19293. archive_rmd160_ctx ctx;
  19294. archive_rmd160_init(&ctx);
  19295. archive_rmd160_update(&ctx, *argv, argc);
  19296. archive_rmd160_final(&ctx, NULL);
  19297. return 0;
  19298. }
  19299. _ACEOF
  19300. if ac_fn_c_try_link "$LINENO"
  19301. then :
  19302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19303. printf "%s\n" "yes" >&6; }
  19304. found_RMD160=yes
  19305. found_OPENSSL=yes
  19306. printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_OPENSSL 1" >>confdefs.h
  19307. else $as_nop
  19308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19309. printf "%s\n" "no" >&6; }
  19310. fi
  19311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19312. conftest$ac_exeext conftest.$ac_ext
  19313. CPPFLAGS="$saved_CPPFLAGS"
  19314. rm "check_crypto_md.h"
  19315. fi
  19316. if test "$found_SHA1" != yes; then
  19317. saved_CPPFLAGS="$CPPFLAGS"
  19318. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19319. touch "check_crypto_md.h"
  19320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL" >&5
  19321. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL... " >&6; }
  19322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19323. /* end confdefs.h. */
  19324. #define ARCHIVE_SHA1_COMPILE_TEST
  19325. #define ARCHIVE_CRYPTO_SHA1_OPENSSL
  19326. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19327. $(cat "$srcdir/libarchive/archive_digest.c")
  19328. int
  19329. main(int argc, char **argv)
  19330. {
  19331. archive_sha1_ctx ctx;
  19332. archive_sha1_init(&ctx);
  19333. archive_sha1_update(&ctx, *argv, argc);
  19334. archive_sha1_final(&ctx, NULL);
  19335. return 0;
  19336. }
  19337. _ACEOF
  19338. if ac_fn_c_try_link "$LINENO"
  19339. then :
  19340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19341. printf "%s\n" "yes" >&6; }
  19342. found_SHA1=yes
  19343. found_OPENSSL=yes
  19344. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_OPENSSL 1" >>confdefs.h
  19345. else $as_nop
  19346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19347. printf "%s\n" "no" >&6; }
  19348. fi
  19349. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19350. conftest$ac_exeext conftest.$ac_ext
  19351. CPPFLAGS="$saved_CPPFLAGS"
  19352. rm "check_crypto_md.h"
  19353. fi
  19354. if test "$found_SHA256" != yes; then
  19355. saved_CPPFLAGS="$CPPFLAGS"
  19356. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19357. touch "check_crypto_md.h"
  19358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL" >&5
  19359. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL... " >&6; }
  19360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19361. /* end confdefs.h. */
  19362. #define ARCHIVE_SHA256_COMPILE_TEST
  19363. #define ARCHIVE_CRYPTO_SHA256_OPENSSL
  19364. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19365. $(cat "$srcdir/libarchive/archive_digest.c")
  19366. int
  19367. main(int argc, char **argv)
  19368. {
  19369. archive_sha256_ctx ctx;
  19370. archive_sha256_init(&ctx);
  19371. archive_sha256_update(&ctx, *argv, argc);
  19372. archive_sha256_final(&ctx, NULL);
  19373. return 0;
  19374. }
  19375. _ACEOF
  19376. if ac_fn_c_try_link "$LINENO"
  19377. then :
  19378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19379. printf "%s\n" "yes" >&6; }
  19380. found_SHA256=yes
  19381. found_OPENSSL=yes
  19382. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_OPENSSL 1" >>confdefs.h
  19383. else $as_nop
  19384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19385. printf "%s\n" "no" >&6; }
  19386. fi
  19387. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19388. conftest$ac_exeext conftest.$ac_ext
  19389. CPPFLAGS="$saved_CPPFLAGS"
  19390. rm "check_crypto_md.h"
  19391. fi
  19392. if test "$found_SHA384" != yes; then
  19393. saved_CPPFLAGS="$CPPFLAGS"
  19394. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19395. touch "check_crypto_md.h"
  19396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL" >&5
  19397. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL... " >&6; }
  19398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19399. /* end confdefs.h. */
  19400. #define ARCHIVE_SHA384_COMPILE_TEST
  19401. #define ARCHIVE_CRYPTO_SHA384_OPENSSL
  19402. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19403. $(cat "$srcdir/libarchive/archive_digest.c")
  19404. int
  19405. main(int argc, char **argv)
  19406. {
  19407. archive_sha384_ctx ctx;
  19408. archive_sha384_init(&ctx);
  19409. archive_sha384_update(&ctx, *argv, argc);
  19410. archive_sha384_final(&ctx, NULL);
  19411. return 0;
  19412. }
  19413. _ACEOF
  19414. if ac_fn_c_try_link "$LINENO"
  19415. then :
  19416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19417. printf "%s\n" "yes" >&6; }
  19418. found_SHA384=yes
  19419. found_OPENSSL=yes
  19420. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_OPENSSL 1" >>confdefs.h
  19421. else $as_nop
  19422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19423. printf "%s\n" "no" >&6; }
  19424. fi
  19425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19426. conftest$ac_exeext conftest.$ac_ext
  19427. CPPFLAGS="$saved_CPPFLAGS"
  19428. rm "check_crypto_md.h"
  19429. fi
  19430. if test "$found_SHA512" != yes; then
  19431. saved_CPPFLAGS="$CPPFLAGS"
  19432. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19433. touch "check_crypto_md.h"
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL" >&5
  19435. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL... " >&6; }
  19436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19437. /* end confdefs.h. */
  19438. #define ARCHIVE_SHA512_COMPILE_TEST
  19439. #define ARCHIVE_CRYPTO_SHA512_OPENSSL
  19440. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19441. $(cat "$srcdir/libarchive/archive_digest.c")
  19442. int
  19443. main(int argc, char **argv)
  19444. {
  19445. archive_sha512_ctx ctx;
  19446. archive_sha512_init(&ctx);
  19447. archive_sha512_update(&ctx, *argv, argc);
  19448. archive_sha512_final(&ctx, NULL);
  19449. return 0;
  19450. }
  19451. _ACEOF
  19452. if ac_fn_c_try_link "$LINENO"
  19453. then :
  19454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19455. printf "%s\n" "yes" >&6; }
  19456. found_SHA512=yes
  19457. found_OPENSSL=yes
  19458. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_OPENSSL 1" >>confdefs.h
  19459. else $as_nop
  19460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19461. printf "%s\n" "no" >&6; }
  19462. fi
  19463. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19464. conftest$ac_exeext conftest.$ac_ext
  19465. CPPFLAGS="$saved_CPPFLAGS"
  19466. rm "check_crypto_md.h"
  19467. fi
  19468. ac_fn_c_check_func "$LINENO" "PKCS5_PBKDF2_HMAC_SHA1" "ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1"
  19469. if test "x$ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1" = xyes
  19470. then :
  19471. printf "%s\n" "#define HAVE_PKCS5_PBKDF2_HMAC_SHA1 1" >>confdefs.h
  19472. fi
  19473. fi
  19474. # Probe libmd AFTER OpenSSL/libcrypto.
  19475. # The two are incompatible and OpenSSL is more complete.
  19476. ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
  19477. if test "x$ac_cv_header_md5_h" = xyes
  19478. then :
  19479. printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
  19480. fi
  19481. ac_fn_c_check_header_compile "$LINENO" "ripemd.h" "ac_cv_header_ripemd_h" "$ac_includes_default"
  19482. if test "x$ac_cv_header_ripemd_h" = xyes
  19483. then :
  19484. printf "%s\n" "#define HAVE_RIPEMD_H 1" >>confdefs.h
  19485. fi
  19486. ac_fn_c_check_header_compile "$LINENO" "sha.h" "ac_cv_header_sha_h" "$ac_includes_default"
  19487. if test "x$ac_cv_header_sha_h" = xyes
  19488. then :
  19489. printf "%s\n" "#define HAVE_SHA_H 1" >>confdefs.h
  19490. fi
  19491. ac_fn_c_check_header_compile "$LINENO" "sha256.h" "ac_cv_header_sha256_h" "$ac_includes_default"
  19492. if test "x$ac_cv_header_sha256_h" = xyes
  19493. then :
  19494. printf "%s\n" "#define HAVE_SHA256_H 1" >>confdefs.h
  19495. fi
  19496. ac_fn_c_check_header_compile "$LINENO" "sha512.h" "ac_cv_header_sha512_h" "$ac_includes_default"
  19497. if test "x$ac_cv_header_sha512_h" = xyes
  19498. then :
  19499. printf "%s\n" "#define HAVE_SHA512_H 1" >>confdefs.h
  19500. fi
  19501. saved_LIBS=$LIBS
  19502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
  19503. printf %s "checking for MD5Init in -lmd... " >&6; }
  19504. if test ${ac_cv_lib_md_MD5Init+y}
  19505. then :
  19506. printf %s "(cached) " >&6
  19507. else $as_nop
  19508. ac_check_lib_save_LIBS=$LIBS
  19509. LIBS="-lmd $LIBS"
  19510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19511. /* end confdefs.h. */
  19512. /* Override any GCC internal prototype to avoid an error.
  19513. Use char because int might match the return type of a GCC
  19514. builtin and then its argument prototype would still apply. */
  19515. char MD5Init ();
  19516. int
  19517. main (void)
  19518. {
  19519. return MD5Init ();
  19520. ;
  19521. return 0;
  19522. }
  19523. _ACEOF
  19524. if ac_fn_c_try_link "$LINENO"
  19525. then :
  19526. ac_cv_lib_md_MD5Init=yes
  19527. else $as_nop
  19528. ac_cv_lib_md_MD5Init=no
  19529. fi
  19530. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19531. conftest$ac_exeext conftest.$ac_ext
  19532. LIBS=$ac_check_lib_save_LIBS
  19533. fi
  19534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
  19535. printf "%s\n" "$ac_cv_lib_md_MD5Init" >&6; }
  19536. if test "x$ac_cv_lib_md_MD5Init" = xyes
  19537. then :
  19538. printf "%s\n" "#define HAVE_LIBMD 1" >>confdefs.h
  19539. LIBS="-lmd $LIBS"
  19540. fi
  19541. if test "$found_MD5" != yes; then
  19542. saved_CPPFLAGS="$CPPFLAGS"
  19543. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19544. touch "check_crypto_md.h"
  19545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBMD" >&5
  19546. printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBMD... " >&6; }
  19547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19548. /* end confdefs.h. */
  19549. #define ARCHIVE_MD5_COMPILE_TEST
  19550. #define ARCHIVE_CRYPTO_MD5_LIBMD
  19551. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19552. $(cat "$srcdir/libarchive/archive_digest.c")
  19553. int
  19554. main(int argc, char **argv)
  19555. {
  19556. archive_md5_ctx ctx;
  19557. archive_md5_init(&ctx);
  19558. archive_md5_update(&ctx, *argv, argc);
  19559. archive_md5_final(&ctx, NULL);
  19560. return 0;
  19561. }
  19562. _ACEOF
  19563. if ac_fn_c_try_link "$LINENO"
  19564. then :
  19565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19566. printf "%s\n" "yes" >&6; }
  19567. found_MD5=yes
  19568. found_LIBMD=yes
  19569. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBMD 1" >>confdefs.h
  19570. else $as_nop
  19571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19572. printf "%s\n" "no" >&6; }
  19573. fi
  19574. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19575. conftest$ac_exeext conftest.$ac_ext
  19576. CPPFLAGS="$saved_CPPFLAGS"
  19577. rm "check_crypto_md.h"
  19578. fi
  19579. if test "$found_RMD160" != yes; then
  19580. saved_CPPFLAGS="$CPPFLAGS"
  19581. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19582. touch "check_crypto_md.h"
  19583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD" >&5
  19584. printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBMD... " >&6; }
  19585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19586. /* end confdefs.h. */
  19587. #define ARCHIVE_RMD160_COMPILE_TEST
  19588. #define ARCHIVE_CRYPTO_RMD160_LIBMD
  19589. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19590. $(cat "$srcdir/libarchive/archive_digest.c")
  19591. int
  19592. main(int argc, char **argv)
  19593. {
  19594. archive_rmd160_ctx ctx;
  19595. archive_rmd160_init(&ctx);
  19596. archive_rmd160_update(&ctx, *argv, argc);
  19597. archive_rmd160_final(&ctx, NULL);
  19598. return 0;
  19599. }
  19600. _ACEOF
  19601. if ac_fn_c_try_link "$LINENO"
  19602. then :
  19603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19604. printf "%s\n" "yes" >&6; }
  19605. found_RMD160=yes
  19606. found_LIBMD=yes
  19607. printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBMD 1" >>confdefs.h
  19608. else $as_nop
  19609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19610. printf "%s\n" "no" >&6; }
  19611. fi
  19612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19613. conftest$ac_exeext conftest.$ac_ext
  19614. CPPFLAGS="$saved_CPPFLAGS"
  19615. rm "check_crypto_md.h"
  19616. fi
  19617. if test "$found_SHA1" != yes; then
  19618. saved_CPPFLAGS="$CPPFLAGS"
  19619. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19620. touch "check_crypto_md.h"
  19621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD" >&5
  19622. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBMD... " >&6; }
  19623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19624. /* end confdefs.h. */
  19625. #define ARCHIVE_SHA1_COMPILE_TEST
  19626. #define ARCHIVE_CRYPTO_SHA1_LIBMD
  19627. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19628. $(cat "$srcdir/libarchive/archive_digest.c")
  19629. int
  19630. main(int argc, char **argv)
  19631. {
  19632. archive_sha1_ctx ctx;
  19633. archive_sha1_init(&ctx);
  19634. archive_sha1_update(&ctx, *argv, argc);
  19635. archive_sha1_final(&ctx, NULL);
  19636. return 0;
  19637. }
  19638. _ACEOF
  19639. if ac_fn_c_try_link "$LINENO"
  19640. then :
  19641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19642. printf "%s\n" "yes" >&6; }
  19643. found_SHA1=yes
  19644. found_LIBMD=yes
  19645. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBMD 1" >>confdefs.h
  19646. else $as_nop
  19647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19648. printf "%s\n" "no" >&6; }
  19649. fi
  19650. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19651. conftest$ac_exeext conftest.$ac_ext
  19652. CPPFLAGS="$saved_CPPFLAGS"
  19653. rm "check_crypto_md.h"
  19654. fi
  19655. if test "$found_SHA256" != yes; then
  19656. saved_CPPFLAGS="$CPPFLAGS"
  19657. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19658. touch "check_crypto_md.h"
  19659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD" >&5
  19660. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBMD... " >&6; }
  19661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19662. /* end confdefs.h. */
  19663. #define ARCHIVE_SHA256_COMPILE_TEST
  19664. #define ARCHIVE_CRYPTO_SHA256_LIBMD
  19665. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19666. $(cat "$srcdir/libarchive/archive_digest.c")
  19667. int
  19668. main(int argc, char **argv)
  19669. {
  19670. archive_sha256_ctx ctx;
  19671. archive_sha256_init(&ctx);
  19672. archive_sha256_update(&ctx, *argv, argc);
  19673. archive_sha256_final(&ctx, NULL);
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. if ac_fn_c_try_link "$LINENO"
  19678. then :
  19679. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19680. printf "%s\n" "yes" >&6; }
  19681. found_SHA256=yes
  19682. found_LIBMD=yes
  19683. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBMD 1" >>confdefs.h
  19684. else $as_nop
  19685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19686. printf "%s\n" "no" >&6; }
  19687. fi
  19688. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19689. conftest$ac_exeext conftest.$ac_ext
  19690. CPPFLAGS="$saved_CPPFLAGS"
  19691. rm "check_crypto_md.h"
  19692. fi
  19693. if test "$found_SHA512" != yes; then
  19694. saved_CPPFLAGS="$CPPFLAGS"
  19695. CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
  19696. touch "check_crypto_md.h"
  19697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD" >&5
  19698. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBMD... " >&6; }
  19699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19700. /* end confdefs.h. */
  19701. #define ARCHIVE_SHA512_COMPILE_TEST
  19702. #define ARCHIVE_CRYPTO_SHA512_LIBMD
  19703. #define PLATFORM_CONFIG_H "check_crypto_md.h"
  19704. $(cat "$srcdir/libarchive/archive_digest.c")
  19705. int
  19706. main(int argc, char **argv)
  19707. {
  19708. archive_sha512_ctx ctx;
  19709. archive_sha512_init(&ctx);
  19710. archive_sha512_update(&ctx, *argv, argc);
  19711. archive_sha512_final(&ctx, NULL);
  19712. return 0;
  19713. }
  19714. _ACEOF
  19715. if ac_fn_c_try_link "$LINENO"
  19716. then :
  19717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19718. printf "%s\n" "yes" >&6; }
  19719. found_SHA512=yes
  19720. found_LIBMD=yes
  19721. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBMD 1" >>confdefs.h
  19722. else $as_nop
  19723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19724. printf "%s\n" "no" >&6; }
  19725. fi
  19726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19727. conftest$ac_exeext conftest.$ac_ext
  19728. CPPFLAGS="$saved_CPPFLAGS"
  19729. rm "check_crypto_md.h"
  19730. fi
  19731. if test "x$found_LIBMD" != "xyes"; then
  19732. LIBS=$saved_LIBS
  19733. fi
  19734. case "$host_os" in
  19735. *mingw* | *cygwin* | *msys*)
  19736. if test "$found_MD5" != yes; then
  19737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_WIN" >&5
  19738. printf %s "checking support for ARCHIVE_CRYPTO_MD5_WIN... " >&6; }
  19739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19740. /* end confdefs.h. */
  19741. #define ARCHIVE_MD5_COMPILE_TEST
  19742. #include <windows.h>
  19743. #include <wincrypt.h>
  19744. int
  19745. main(int argc, char **argv)
  19746. {
  19747. (void)argc;
  19748. (void)argv;
  19749. return (CALG_MD5);
  19750. }
  19751. _ACEOF
  19752. if ac_fn_c_try_link "$LINENO"
  19753. then :
  19754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19755. printf "%s\n" "yes" >&6; }
  19756. found_MD5=yes
  19757. found_WIN=yes
  19758. printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_WIN 1" >>confdefs.h
  19759. else $as_nop
  19760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19761. printf "%s\n" "no" >&6; }
  19762. fi
  19763. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19764. conftest$ac_exeext conftest.$ac_ext
  19765. fi
  19766. if test "$found_SHA1" != yes; then
  19767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_WIN" >&5
  19768. printf %s "checking support for ARCHIVE_CRYPTO_SHA1_WIN... " >&6; }
  19769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19770. /* end confdefs.h. */
  19771. #define ARCHIVE_SHA1_COMPILE_TEST
  19772. #include <windows.h>
  19773. #include <wincrypt.h>
  19774. int
  19775. main(int argc, char **argv)
  19776. {
  19777. (void)argc;
  19778. (void)argv;
  19779. return (CALG_SHA1);
  19780. }
  19781. _ACEOF
  19782. if ac_fn_c_try_link "$LINENO"
  19783. then :
  19784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19785. printf "%s\n" "yes" >&6; }
  19786. found_SHA1=yes
  19787. found_WIN=yes
  19788. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_WIN 1" >>confdefs.h
  19789. else $as_nop
  19790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19791. printf "%s\n" "no" >&6; }
  19792. fi
  19793. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19794. conftest$ac_exeext conftest.$ac_ext
  19795. fi
  19796. if test "$found_SHA256" != yes; then
  19797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_WIN" >&5
  19798. printf %s "checking support for ARCHIVE_CRYPTO_SHA256_WIN... " >&6; }
  19799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19800. /* end confdefs.h. */
  19801. #define ARCHIVE_SHA256_COMPILE_TEST
  19802. #include <windows.h>
  19803. #include <wincrypt.h>
  19804. int
  19805. main(int argc, char **argv)
  19806. {
  19807. (void)argc;
  19808. (void)argv;
  19809. return (CALG_SHA_256);
  19810. }
  19811. _ACEOF
  19812. if ac_fn_c_try_link "$LINENO"
  19813. then :
  19814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19815. printf "%s\n" "yes" >&6; }
  19816. found_SHA256=yes
  19817. found_WIN=yes
  19818. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_WIN 1" >>confdefs.h
  19819. else $as_nop
  19820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19821. printf "%s\n" "no" >&6; }
  19822. fi
  19823. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19824. conftest$ac_exeext conftest.$ac_ext
  19825. fi
  19826. if test "$found_SHA384" != yes; then
  19827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_WIN" >&5
  19828. printf %s "checking support for ARCHIVE_CRYPTO_SHA384_WIN... " >&6; }
  19829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19830. /* end confdefs.h. */
  19831. #define ARCHIVE_SHA384_COMPILE_TEST
  19832. #include <windows.h>
  19833. #include <wincrypt.h>
  19834. int
  19835. main(int argc, char **argv)
  19836. {
  19837. (void)argc;
  19838. (void)argv;
  19839. return (CALG_SHA_384);
  19840. }
  19841. _ACEOF
  19842. if ac_fn_c_try_link "$LINENO"
  19843. then :
  19844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19845. printf "%s\n" "yes" >&6; }
  19846. found_SHA384=yes
  19847. found_WIN=yes
  19848. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_WIN 1" >>confdefs.h
  19849. else $as_nop
  19850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19851. printf "%s\n" "no" >&6; }
  19852. fi
  19853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19854. conftest$ac_exeext conftest.$ac_ext
  19855. fi
  19856. if test "$found_SHA512" != yes; then
  19857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_WIN" >&5
  19858. printf %s "checking support for ARCHIVE_CRYPTO_SHA512_WIN... " >&6; }
  19859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19860. /* end confdefs.h. */
  19861. #define ARCHIVE_SHA512_COMPILE_TEST
  19862. #include <windows.h>
  19863. #include <wincrypt.h>
  19864. int
  19865. main(int argc, char **argv)
  19866. {
  19867. (void)argc;
  19868. (void)argv;
  19869. return (CALG_SHA_512);
  19870. }
  19871. _ACEOF
  19872. if ac_fn_c_try_link "$LINENO"
  19873. then :
  19874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19875. printf "%s\n" "yes" >&6; }
  19876. found_SHA512=yes
  19877. found_WIN=yes
  19878. printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_WIN 1" >>confdefs.h
  19879. else $as_nop
  19880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19881. printf "%s\n" "no" >&6; }
  19882. fi
  19883. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19884. conftest$ac_exeext conftest.$ac_ext
  19885. fi
  19886. ;;
  19887. esac
  19888. saved_CFLAGS="$CFLAGS"
  19889. CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
  19890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility annotations" >&5
  19891. printf %s "checking whether compiler supports visibility annotations... " >&6; }
  19892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19893. /* end confdefs.h. */
  19894. int foo( void ) __attribute__((visibility("default")));
  19895. int
  19896. main (void)
  19897. {
  19898. ;
  19899. return 0;
  19900. }
  19901. _ACEOF
  19902. if ac_fn_c_try_link "$LINENO"
  19903. then :
  19904. CFLAGS="$saved_CFLAGS -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY";
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19906. printf "%s\n" "yes" >&6; }
  19907. else $as_nop
  19908. CFLAGS="$saved_CFLAGS"
  19909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19910. printf "%s\n" "no" >&6; }
  19911. fi
  19912. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19913. conftest$ac_exeext conftest.$ac_ext
  19914. # Ensure test directories are present if building out-of-tree
  19915. ac_config_commands="$ac_config_commands mkdirs"
  19916. cat >confcache <<\_ACEOF
  19917. # This file is a shell script that caches the results of configure
  19918. # tests run on this system so they can be shared between configure
  19919. # scripts and configure runs, see configure's option --config-cache.
  19920. # It is not useful on other systems. If it contains results you don't
  19921. # want to keep, you may remove or edit it.
  19922. #
  19923. # config.status only pays attention to the cache file if you give it
  19924. # the --recheck option to rerun configure.
  19925. #
  19926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19928. # following values.
  19929. _ACEOF
  19930. # The following way of writing the cache mishandles newlines in values,
  19931. # but we know of no workaround that is simple, portable, and efficient.
  19932. # So, we kill variables containing newlines.
  19933. # Ultrix sh set writes to stderr and can't be redirected directly,
  19934. # and sets the high bit in the cache file unless we assign to the vars.
  19935. (
  19936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19937. eval ac_val=\$$ac_var
  19938. case $ac_val in #(
  19939. *${as_nl}*)
  19940. case $ac_var in #(
  19941. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  19942. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  19943. esac
  19944. case $ac_var in #(
  19945. _ | IFS | as_nl) ;; #(
  19946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  19947. *) { eval $ac_var=; unset $ac_var;} ;;
  19948. esac ;;
  19949. esac
  19950. done
  19951. (set) 2>&1 |
  19952. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19953. *${as_nl}ac_space=\ *)
  19954. # `set' does not quote correctly, so add quotes: double-quote
  19955. # substitution turns \\\\ into \\, and sed turns \\ into \.
  19956. sed -n \
  19957. "s/'/'\\\\''/g;
  19958. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19959. ;; #(
  19960. *)
  19961. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19962. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19963. ;;
  19964. esac |
  19965. sort
  19966. ) |
  19967. sed '
  19968. /^ac_cv_env_/b end
  19969. t clear
  19970. :clear
  19971. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  19972. t end
  19973. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19974. :end' >>confcache
  19975. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19976. if test -w "$cache_file"; then
  19977. if test "x$cache_file" != "x/dev/null"; then
  19978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  19979. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  19980. if test ! -f "$cache_file" || test -h "$cache_file"; then
  19981. cat confcache >"$cache_file"
  19982. else
  19983. case $cache_file in #(
  19984. */* | ?:*)
  19985. mv -f confcache "$cache_file"$$ &&
  19986. mv -f "$cache_file"$$ "$cache_file" ;; #(
  19987. *)
  19988. mv -f confcache "$cache_file" ;;
  19989. esac
  19990. fi
  19991. fi
  19992. else
  19993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  19994. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  19995. fi
  19996. fi
  19997. rm -f confcache
  19998. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19999. # Let make expand exec_prefix.
  20000. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20001. DEFS=-DHAVE_CONFIG_H
  20002. ac_libobjs=
  20003. ac_ltlibobjs=
  20004. U=
  20005. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20006. # 1. Remove the extension, and $U if already installed.
  20007. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20008. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  20009. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20010. # will be set to the directory where LIBOBJS objects are built.
  20011. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20012. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  20013. done
  20014. LIBOBJS=$ac_libobjs
  20015. LTLIBOBJS=$ac_ltlibobjs
  20016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  20017. printf %s "checking that generated files are newer than configure... " >&6; }
  20018. if test -n "$am_sleep_pid"; then
  20019. # Hide warnings about reused PIDs.
  20020. wait $am_sleep_pid 2>/dev/null
  20021. fi
  20022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  20023. printf "%s\n" "done" >&6; }
  20024. if test -n "$EXEEXT"; then
  20025. am__EXEEXT_TRUE=
  20026. am__EXEEXT_FALSE='#'
  20027. else
  20028. am__EXEEXT_TRUE='#'
  20029. am__EXEEXT_FALSE=
  20030. fi
  20031. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  20032. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  20033. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20034. fi
  20035. if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
  20036. as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
  20037. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20038. fi
  20039. if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
  20040. as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
  20041. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20042. fi
  20043. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20044. as_fn_error $? "conditional \"AMDEP\" was never defined.
  20045. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20046. fi
  20047. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20048. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  20049. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20050. fi
  20051. if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then
  20052. as_fn_error $? "conditional \"BUILD_BSDTAR\" was never defined.
  20053. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20054. fi
  20055. if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then
  20056. as_fn_error $? "conditional \"STATIC_BSDTAR\" was never defined.
  20057. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20058. fi
  20059. if test -z "${BUILD_BSDCAT_TRUE}" && test -z "${BUILD_BSDCAT_FALSE}"; then
  20060. as_fn_error $? "conditional \"BUILD_BSDCAT\" was never defined.
  20061. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20062. fi
  20063. if test -z "${STATIC_BSDCAT_TRUE}" && test -z "${STATIC_BSDCAT_FALSE}"; then
  20064. as_fn_error $? "conditional \"STATIC_BSDCAT\" was never defined.
  20065. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20066. fi
  20067. if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then
  20068. as_fn_error $? "conditional \"BUILD_BSDCPIO\" was never defined.
  20069. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20070. fi
  20071. if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then
  20072. as_fn_error $? "conditional \"STATIC_BSDCPIO\" was never defined.
  20073. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20074. fi
  20075. if test -z "${BUILD_BSDUNZIP_TRUE}" && test -z "${BUILD_BSDUNZIP_FALSE}"; then
  20076. as_fn_error $? "conditional \"BUILD_BSDUNZIP\" was never defined.
  20077. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20078. fi
  20079. if test -z "${STATIC_BSDUNZIP_TRUE}" && test -z "${STATIC_BSDUNZIP_FALSE}"; then
  20080. as_fn_error $? "conditional \"STATIC_BSDUNZIP\" was never defined.
  20081. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20082. fi
  20083. if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then
  20084. as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.
  20085. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20086. fi
  20087. if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then
  20088. as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.
  20089. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20090. fi
  20091. if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then
  20092. as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.
  20093. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20094. fi
  20095. if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then
  20096. as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.
  20097. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20098. fi
  20099. if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then
  20100. as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.
  20101. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  20102. fi
  20103. : "${CONFIG_STATUS=./config.status}"
  20104. ac_write_fail=0
  20105. ac_clean_files_save=$ac_clean_files
  20106. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  20108. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  20109. as_write_fail=0
  20110. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  20111. #! $SHELL
  20112. # Generated by $as_me.
  20113. # Run this file to recreate the current configuration.
  20114. # Compiler output produced by configure, useful for debugging
  20115. # configure, is in config.log if it exists.
  20116. debug=false
  20117. ac_cs_recheck=false
  20118. ac_cs_silent=false
  20119. SHELL=\${CONFIG_SHELL-$SHELL}
  20120. export SHELL
  20121. _ASEOF
  20122. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  20123. ## -------------------- ##
  20124. ## M4sh Initialization. ##
  20125. ## -------------------- ##
  20126. # Be more Bourne compatible
  20127. DUALCASE=1; export DUALCASE # for MKS sh
  20128. as_nop=:
  20129. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  20130. then :
  20131. emulate sh
  20132. NULLCMD=:
  20133. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20134. # is contrary to our usage. Disable this feature.
  20135. alias -g '${1+"$@"}'='"$@"'
  20136. setopt NO_GLOB_SUBST
  20137. else $as_nop
  20138. case `(set -o) 2>/dev/null` in #(
  20139. *posix*) :
  20140. set -o posix ;; #(
  20141. *) :
  20142. ;;
  20143. esac
  20144. fi
  20145. # Reset variables that may have inherited troublesome values from
  20146. # the environment.
  20147. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  20148. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  20149. # side effect of setting IFS to empty, thus disabling word splitting.)
  20150. # Quoting is to prevent editors from complaining about space-tab.
  20151. as_nl='
  20152. '
  20153. export as_nl
  20154. IFS=" "" $as_nl"
  20155. PS1='$ '
  20156. PS2='> '
  20157. PS4='+ '
  20158. # Ensure predictable behavior from utilities with locale-dependent output.
  20159. LC_ALL=C
  20160. export LC_ALL
  20161. LANGUAGE=C
  20162. export LANGUAGE
  20163. # We cannot yet rely on "unset" to work, but we need these variables
  20164. # to be unset--not just set to an empty or harmless value--now, to
  20165. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  20166. # also avoids known problems related to "unset" and subshell syntax
  20167. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  20168. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  20169. do eval test \${$as_var+y} \
  20170. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  20171. done
  20172. # Ensure that fds 0, 1, and 2 are open.
  20173. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  20174. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  20175. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  20176. # The user is always right.
  20177. if ${PATH_SEPARATOR+false} :; then
  20178. PATH_SEPARATOR=:
  20179. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20180. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20181. PATH_SEPARATOR=';'
  20182. }
  20183. fi
  20184. # Find who we are. Look in the path if we contain no directory separator.
  20185. as_myself=
  20186. case $0 in #((
  20187. *[\\/]* ) as_myself=$0 ;;
  20188. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20189. for as_dir in $PATH
  20190. do
  20191. IFS=$as_save_IFS
  20192. case $as_dir in #(((
  20193. '') as_dir=./ ;;
  20194. */) ;;
  20195. *) as_dir=$as_dir/ ;;
  20196. esac
  20197. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  20198. done
  20199. IFS=$as_save_IFS
  20200. ;;
  20201. esac
  20202. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20203. # in which case we are not to be found in the path.
  20204. if test "x$as_myself" = x; then
  20205. as_myself=$0
  20206. fi
  20207. if test ! -f "$as_myself"; then
  20208. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20209. exit 1
  20210. fi
  20211. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  20212. # ----------------------------------------
  20213. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  20214. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  20215. # script with STATUS, using 1 if that was 0.
  20216. as_fn_error ()
  20217. {
  20218. as_status=$1; test $as_status -eq 0 && as_status=1
  20219. if test "$4"; then
  20220. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  20221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  20222. fi
  20223. printf "%s\n" "$as_me: error: $2" >&2
  20224. as_fn_exit $as_status
  20225. } # as_fn_error
  20226. # as_fn_set_status STATUS
  20227. # -----------------------
  20228. # Set $? to STATUS, without forking.
  20229. as_fn_set_status ()
  20230. {
  20231. return $1
  20232. } # as_fn_set_status
  20233. # as_fn_exit STATUS
  20234. # -----------------
  20235. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  20236. as_fn_exit ()
  20237. {
  20238. set +e
  20239. as_fn_set_status $1
  20240. exit $1
  20241. } # as_fn_exit
  20242. # as_fn_unset VAR
  20243. # ---------------
  20244. # Portably unset VAR.
  20245. as_fn_unset ()
  20246. {
  20247. { eval $1=; unset $1;}
  20248. }
  20249. as_unset=as_fn_unset
  20250. # as_fn_append VAR VALUE
  20251. # ----------------------
  20252. # Append the text in VALUE to the end of the definition contained in VAR. Take
  20253. # advantage of any shell optimizations that allow amortized linear growth over
  20254. # repeated appends, instead of the typical quadratic growth present in naive
  20255. # implementations.
  20256. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  20257. then :
  20258. eval 'as_fn_append ()
  20259. {
  20260. eval $1+=\$2
  20261. }'
  20262. else $as_nop
  20263. as_fn_append ()
  20264. {
  20265. eval $1=\$$1\$2
  20266. }
  20267. fi # as_fn_append
  20268. # as_fn_arith ARG...
  20269. # ------------------
  20270. # Perform arithmetic evaluation on the ARGs, and store the result in the
  20271. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  20272. # must be portable across $(()) and expr.
  20273. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  20274. then :
  20275. eval 'as_fn_arith ()
  20276. {
  20277. as_val=$(( $* ))
  20278. }'
  20279. else $as_nop
  20280. as_fn_arith ()
  20281. {
  20282. as_val=`expr "$@" || test $? -eq 1`
  20283. }
  20284. fi # as_fn_arith
  20285. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20286. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20287. as_expr=expr
  20288. else
  20289. as_expr=false
  20290. fi
  20291. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20292. as_basename=basename
  20293. else
  20294. as_basename=false
  20295. fi
  20296. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20297. as_dirname=dirname
  20298. else
  20299. as_dirname=false
  20300. fi
  20301. as_me=`$as_basename -- "$0" ||
  20302. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20303. X"$0" : 'X\(//\)$' \| \
  20304. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20305. printf "%s\n" X/"$0" |
  20306. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20307. s//\1/
  20308. q
  20309. }
  20310. /^X\/\(\/\/\)$/{
  20311. s//\1/
  20312. q
  20313. }
  20314. /^X\/\(\/\).*/{
  20315. s//\1/
  20316. q
  20317. }
  20318. s/.*/./; q'`
  20319. # Avoid depending upon Character Ranges.
  20320. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20321. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20322. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20323. as_cr_digits='0123456789'
  20324. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20325. # Determine whether it's possible to make 'echo' print without a newline.
  20326. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  20327. # for compatibility with existing Makefiles.
  20328. ECHO_C= ECHO_N= ECHO_T=
  20329. case `echo -n x` in #(((((
  20330. -n*)
  20331. case `echo 'xy\c'` in
  20332. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20333. xy) ECHO_C='\c';;
  20334. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  20335. ECHO_T=' ';;
  20336. esac;;
  20337. *)
  20338. ECHO_N='-n';;
  20339. esac
  20340. # For backward compatibility with old third-party macros, we provide
  20341. # the shell variables $as_echo and $as_echo_n. New code should use
  20342. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  20343. as_echo='printf %s\n'
  20344. as_echo_n='printf %s'
  20345. rm -f conf$$ conf$$.exe conf$$.file
  20346. if test -d conf$$.dir; then
  20347. rm -f conf$$.dir/conf$$.file
  20348. else
  20349. rm -f conf$$.dir
  20350. mkdir conf$$.dir 2>/dev/null
  20351. fi
  20352. if (echo >conf$$.file) 2>/dev/null; then
  20353. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20354. as_ln_s='ln -s'
  20355. # ... but there are two gotchas:
  20356. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20357. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20358. # In both cases, we have to default to `cp -pR'.
  20359. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20360. as_ln_s='cp -pR'
  20361. elif ln conf$$.file conf$$ 2>/dev/null; then
  20362. as_ln_s=ln
  20363. else
  20364. as_ln_s='cp -pR'
  20365. fi
  20366. else
  20367. as_ln_s='cp -pR'
  20368. fi
  20369. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20370. rmdir conf$$.dir 2>/dev/null
  20371. # as_fn_mkdir_p
  20372. # -------------
  20373. # Create "$as_dir" as a directory, including parents if necessary.
  20374. as_fn_mkdir_p ()
  20375. {
  20376. case $as_dir in #(
  20377. -*) as_dir=./$as_dir;;
  20378. esac
  20379. test -d "$as_dir" || eval $as_mkdir_p || {
  20380. as_dirs=
  20381. while :; do
  20382. case $as_dir in #(
  20383. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  20384. *) as_qdir=$as_dir;;
  20385. esac
  20386. as_dirs="'$as_qdir' $as_dirs"
  20387. as_dir=`$as_dirname -- "$as_dir" ||
  20388. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20389. X"$as_dir" : 'X\(//\)[^/]' \| \
  20390. X"$as_dir" : 'X\(//\)$' \| \
  20391. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20392. printf "%s\n" X"$as_dir" |
  20393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20394. s//\1/
  20395. q
  20396. }
  20397. /^X\(\/\/\)[^/].*/{
  20398. s//\1/
  20399. q
  20400. }
  20401. /^X\(\/\/\)$/{
  20402. s//\1/
  20403. q
  20404. }
  20405. /^X\(\/\).*/{
  20406. s//\1/
  20407. q
  20408. }
  20409. s/.*/./; q'`
  20410. test -d "$as_dir" && break
  20411. done
  20412. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20413. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  20414. } # as_fn_mkdir_p
  20415. if mkdir -p . 2>/dev/null; then
  20416. as_mkdir_p='mkdir -p "$as_dir"'
  20417. else
  20418. test -d ./-p && rmdir ./-p
  20419. as_mkdir_p=false
  20420. fi
  20421. # as_fn_executable_p FILE
  20422. # -----------------------
  20423. # Test if FILE is an executable regular file.
  20424. as_fn_executable_p ()
  20425. {
  20426. test -f "$1" && test -x "$1"
  20427. } # as_fn_executable_p
  20428. as_test_x='test -x'
  20429. as_executable_p=as_fn_executable_p
  20430. # Sed expression to map a string onto a valid CPP name.
  20431. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20432. # Sed expression to map a string onto a valid variable name.
  20433. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20434. exec 6>&1
  20435. ## ----------------------------------- ##
  20436. ## Main body of $CONFIG_STATUS script. ##
  20437. ## ----------------------------------- ##
  20438. _ASEOF
  20439. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  20440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20441. # Save the log message, to keep $0 and so on meaningful, and to
  20442. # report actual input values of CONFIG_FILES etc. instead of their
  20443. # values after options handling.
  20444. ac_log="
  20445. This file was extended by libarchive $as_me 3.7.0, which was
  20446. generated by GNU Autoconf 2.71. Invocation command line was
  20447. CONFIG_FILES = $CONFIG_FILES
  20448. CONFIG_HEADERS = $CONFIG_HEADERS
  20449. CONFIG_LINKS = $CONFIG_LINKS
  20450. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20451. $ $0 $@
  20452. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20453. "
  20454. _ACEOF
  20455. case $ac_config_files in *"
  20456. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  20457. esac
  20458. case $ac_config_headers in *"
  20459. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  20460. esac
  20461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20462. # Files that config.status was made for.
  20463. config_files="$ac_config_files"
  20464. config_headers="$ac_config_headers"
  20465. config_commands="$ac_config_commands"
  20466. _ACEOF
  20467. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20468. ac_cs_usage="\
  20469. \`$as_me' instantiates files and other configuration actions
  20470. from templates according to the current configuration. Unless the files
  20471. and actions are specified as TAGs, all are instantiated by default.
  20472. Usage: $0 [OPTION]... [TAG]...
  20473. -h, --help print this help, then exit
  20474. -V, --version print version number and configuration settings, then exit
  20475. --config print configuration, then exit
  20476. -q, --quiet, --silent
  20477. do not print progress messages
  20478. -d, --debug don't remove temporary files
  20479. --recheck update $as_me by reconfiguring in the same conditions
  20480. --file=FILE[:TEMPLATE]
  20481. instantiate the configuration file FILE
  20482. --header=FILE[:TEMPLATE]
  20483. instantiate the configuration header FILE
  20484. Configuration files:
  20485. $config_files
  20486. Configuration headers:
  20487. $config_headers
  20488. Configuration commands:
  20489. $config_commands
  20490. Report bugs to <[email protected]>."
  20491. _ACEOF
  20492. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  20493. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  20494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20495. ac_cs_config='$ac_cs_config_escaped'
  20496. ac_cs_version="\\
  20497. libarchive config.status 3.7.0
  20498. configured by $0, generated by GNU Autoconf 2.71,
  20499. with options \\"\$ac_cs_config\\"
  20500. Copyright (C) 2021 Free Software Foundation, Inc.
  20501. This config.status script is free software; the Free Software Foundation
  20502. gives unlimited permission to copy, distribute and modify it."
  20503. ac_pwd='$ac_pwd'
  20504. srcdir='$srcdir'
  20505. INSTALL='$INSTALL'
  20506. MKDIR_P='$MKDIR_P'
  20507. AWK='$AWK'
  20508. test -n "\$AWK" || AWK=awk
  20509. _ACEOF
  20510. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20511. # The default lists apply if the user does not specify any file.
  20512. ac_need_defaults=:
  20513. while test $# != 0
  20514. do
  20515. case $1 in
  20516. --*=?*)
  20517. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20518. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20519. ac_shift=:
  20520. ;;
  20521. --*=)
  20522. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20523. ac_optarg=
  20524. ac_shift=:
  20525. ;;
  20526. *)
  20527. ac_option=$1
  20528. ac_optarg=$2
  20529. ac_shift=shift
  20530. ;;
  20531. esac
  20532. case $ac_option in
  20533. # Handling of the options.
  20534. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20535. ac_cs_recheck=: ;;
  20536. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20537. printf "%s\n" "$ac_cs_version"; exit ;;
  20538. --config | --confi | --conf | --con | --co | --c )
  20539. printf "%s\n" "$ac_cs_config"; exit ;;
  20540. --debug | --debu | --deb | --de | --d | -d )
  20541. debug=: ;;
  20542. --file | --fil | --fi | --f )
  20543. $ac_shift
  20544. case $ac_optarg in
  20545. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20546. '') as_fn_error $? "missing file argument" ;;
  20547. esac
  20548. as_fn_append CONFIG_FILES " '$ac_optarg'"
  20549. ac_need_defaults=false;;
  20550. --header | --heade | --head | --hea )
  20551. $ac_shift
  20552. case $ac_optarg in
  20553. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  20554. esac
  20555. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  20556. ac_need_defaults=false;;
  20557. --he | --h)
  20558. # Conflict between --help and --header
  20559. as_fn_error $? "ambiguous option: \`$1'
  20560. Try \`$0 --help' for more information.";;
  20561. --help | --hel | -h )
  20562. printf "%s\n" "$ac_cs_usage"; exit ;;
  20563. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20564. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20565. ac_cs_silent=: ;;
  20566. # This is an error.
  20567. -*) as_fn_error $? "unrecognized option: \`$1'
  20568. Try \`$0 --help' for more information." ;;
  20569. *) as_fn_append ac_config_targets " $1"
  20570. ac_need_defaults=false ;;
  20571. esac
  20572. shift
  20573. done
  20574. ac_configure_extra_args=
  20575. if $ac_cs_silent; then
  20576. exec 6>/dev/null
  20577. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20578. fi
  20579. _ACEOF
  20580. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20581. if \$ac_cs_recheck; then
  20582. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20583. shift
  20584. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  20585. CONFIG_SHELL='$SHELL'
  20586. export CONFIG_SHELL
  20587. exec "\$@"
  20588. fi
  20589. _ACEOF
  20590. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20591. exec 5>>config.log
  20592. {
  20593. echo
  20594. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20595. ## Running $as_me. ##
  20596. _ASBOX
  20597. printf "%s\n" "$ac_log"
  20598. } >&5
  20599. _ACEOF
  20600. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20601. #
  20602. # INIT-COMMANDS
  20603. #
  20604. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  20605. # The HP-UX ksh and POSIX shell print the target directory to stdout
  20606. # if CDPATH is set.
  20607. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20608. sed_quote_subst='$sed_quote_subst'
  20609. double_quote_subst='$double_quote_subst'
  20610. delay_variable_subst='$delay_variable_subst'
  20611. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  20612. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  20613. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  20614. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  20615. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  20616. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  20617. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  20618. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  20619. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  20620. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  20621. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  20622. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  20623. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  20624. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  20625. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  20626. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  20627. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  20628. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  20629. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  20630. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  20631. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  20632. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  20633. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  20634. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  20635. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  20636. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  20637. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  20638. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  20639. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  20640. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  20641. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  20642. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  20643. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  20644. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  20645. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  20646. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  20647. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  20648. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  20649. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  20650. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  20651. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  20652. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  20653. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  20654. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  20655. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  20656. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  20657. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  20658. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20659. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20660. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  20661. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  20662. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  20663. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  20664. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  20665. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  20666. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  20667. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  20668. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  20669. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  20670. 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"`'
  20671. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  20672. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  20673. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  20674. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  20675. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  20676. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  20677. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  20678. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  20679. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  20680. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  20681. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  20682. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  20683. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  20684. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  20685. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  20686. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  20687. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  20688. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  20689. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  20690. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  20691. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20692. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  20693. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  20694. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  20695. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  20696. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  20697. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  20698. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  20699. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  20700. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20701. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  20702. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  20703. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  20704. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20705. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  20706. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  20707. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  20708. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  20709. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  20710. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  20711. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20712. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  20713. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  20714. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  20715. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  20716. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  20717. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  20718. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  20719. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  20720. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  20721. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  20722. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  20723. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  20724. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  20725. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  20726. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  20727. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  20728. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  20729. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  20730. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  20731. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  20732. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  20733. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  20734. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  20735. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  20736. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  20737. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  20738. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  20739. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  20740. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  20741. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  20742. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  20743. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  20744. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  20745. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  20746. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  20747. LTCC='$LTCC'
  20748. LTCFLAGS='$LTCFLAGS'
  20749. compiler='$compiler_DEFAULT'
  20750. # A function that is used when there is no print builtin or printf.
  20751. func_fallback_echo ()
  20752. {
  20753. eval 'cat <<_LTECHO_EOF
  20754. \$1
  20755. _LTECHO_EOF'
  20756. }
  20757. # Quote evaled strings.
  20758. for var in AS \
  20759. DLLTOOL \
  20760. OBJDUMP \
  20761. SHELL \
  20762. ECHO \
  20763. PATH_SEPARATOR \
  20764. SED \
  20765. GREP \
  20766. EGREP \
  20767. FGREP \
  20768. LD \
  20769. NM \
  20770. LN_S \
  20771. lt_SP2NL \
  20772. lt_NL2SP \
  20773. reload_flag \
  20774. deplibs_check_method \
  20775. file_magic_cmd \
  20776. file_magic_glob \
  20777. want_nocaseglob \
  20778. sharedlib_from_linklib_cmd \
  20779. AR \
  20780. AR_FLAGS \
  20781. archiver_list_spec \
  20782. STRIP \
  20783. RANLIB \
  20784. CC \
  20785. CFLAGS \
  20786. compiler \
  20787. lt_cv_sys_global_symbol_pipe \
  20788. lt_cv_sys_global_symbol_to_cdecl \
  20789. lt_cv_sys_global_symbol_to_import \
  20790. lt_cv_sys_global_symbol_to_c_name_address \
  20791. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  20792. lt_cv_nm_interface \
  20793. nm_file_list_spec \
  20794. lt_cv_truncate_bin \
  20795. lt_prog_compiler_no_builtin_flag \
  20796. lt_prog_compiler_pic \
  20797. lt_prog_compiler_wl \
  20798. lt_prog_compiler_static \
  20799. lt_cv_prog_compiler_c_o \
  20800. need_locks \
  20801. MANIFEST_TOOL \
  20802. DSYMUTIL \
  20803. NMEDIT \
  20804. LIPO \
  20805. OTOOL \
  20806. OTOOL64 \
  20807. shrext_cmds \
  20808. export_dynamic_flag_spec \
  20809. whole_archive_flag_spec \
  20810. compiler_needs_object \
  20811. with_gnu_ld \
  20812. allow_undefined_flag \
  20813. no_undefined_flag \
  20814. hardcode_libdir_flag_spec \
  20815. hardcode_libdir_separator \
  20816. exclude_expsyms \
  20817. include_expsyms \
  20818. file_list_spec \
  20819. variables_saved_for_relink \
  20820. libname_spec \
  20821. library_names_spec \
  20822. soname_spec \
  20823. install_override_mode \
  20824. finish_eval \
  20825. old_striplib \
  20826. striplib; do
  20827. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20828. *[\\\\\\\`\\"\\\$]*)
  20829. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20830. ;;
  20831. *)
  20832. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20833. ;;
  20834. esac
  20835. done
  20836. # Double-quote double-evaled strings.
  20837. for var in reload_cmds \
  20838. old_postinstall_cmds \
  20839. old_postuninstall_cmds \
  20840. old_archive_cmds \
  20841. extract_expsyms_cmds \
  20842. old_archive_from_new_cmds \
  20843. old_archive_from_expsyms_cmds \
  20844. archive_cmds \
  20845. archive_expsym_cmds \
  20846. module_cmds \
  20847. module_expsym_cmds \
  20848. export_symbols_cmds \
  20849. prelink_cmds \
  20850. postlink_cmds \
  20851. postinstall_cmds \
  20852. postuninstall_cmds \
  20853. finish_cmds \
  20854. sys_lib_search_path_spec \
  20855. configure_time_dlsearch_path \
  20856. configure_time_lt_sys_library_path; do
  20857. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  20858. *[\\\\\\\`\\"\\\$]*)
  20859. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  20860. ;;
  20861. *)
  20862. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  20863. ;;
  20864. esac
  20865. done
  20866. ac_aux_dir='$ac_aux_dir'
  20867. # See if we are running on zsh, and set the options that allow our
  20868. # commands through without removal of \ escapes INIT.
  20869. if test -n "\${ZSH_VERSION+set}"; then
  20870. setopt NO_GLOB_SUBST
  20871. fi
  20872. PACKAGE='$PACKAGE'
  20873. VERSION='$VERSION'
  20874. RM='$RM'
  20875. ofile='$ofile'
  20876. _ACEOF
  20877. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20878. # Handling of arguments.
  20879. for ac_config_target in $ac_config_targets
  20880. do
  20881. case $ac_config_target in
  20882. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  20883. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  20884. "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;;
  20885. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20886. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  20887. "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
  20888. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  20889. esac
  20890. done
  20891. # If the user did not use the arguments to specify the items to instantiate,
  20892. # then the envvar interface is used. Set only those that are not.
  20893. # We use the long form for the default assignment because of an extremely
  20894. # bizarre bug on SunOS 4.1.3.
  20895. if $ac_need_defaults; then
  20896. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  20897. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  20898. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  20899. fi
  20900. # Have a temporary directory for convenience. Make it in the build tree
  20901. # simply because there is no reason against having it here, and in addition,
  20902. # creating and moving files from /tmp can sometimes cause problems.
  20903. # Hook for its removal unless debugging.
  20904. # Note that there is a small window in which the directory will not be cleaned:
  20905. # after its creation but before its name has been assigned to `$tmp'.
  20906. $debug ||
  20907. {
  20908. tmp= ac_tmp=
  20909. trap 'exit_status=$?
  20910. : "${ac_tmp:=$tmp}"
  20911. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  20912. ' 0
  20913. trap 'as_fn_exit 1' 1 2 13 15
  20914. }
  20915. # Create a (secure) tmp directory for tmp files.
  20916. {
  20917. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20918. test -d "$tmp"
  20919. } ||
  20920. {
  20921. tmp=./conf$$-$RANDOM
  20922. (umask 077 && mkdir "$tmp")
  20923. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  20924. ac_tmp=$tmp
  20925. # Set up the scripts for CONFIG_FILES section.
  20926. # No need to generate them if there are no CONFIG_FILES.
  20927. # This happens for instance with `./config.status config.h'.
  20928. if test -n "$CONFIG_FILES"; then
  20929. ac_cr=`echo X | tr X '\015'`
  20930. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  20931. # But we know of no other shell where ac_cr would be empty at this
  20932. # point, so we can use a bashism as a fallback.
  20933. if test "x$ac_cr" = x; then
  20934. eval ac_cr=\$\'\\r\'
  20935. fi
  20936. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  20937. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  20938. ac_cs_awk_cr='\\r'
  20939. else
  20940. ac_cs_awk_cr=$ac_cr
  20941. fi
  20942. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  20943. _ACEOF
  20944. {
  20945. echo "cat >conf$$subs.awk <<_ACEOF" &&
  20946. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  20947. echo "_ACEOF"
  20948. } >conf$$subs.sh ||
  20949. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20950. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  20951. ac_delim='%!_!# '
  20952. for ac_last_try in false false false false false :; do
  20953. . ./conf$$subs.sh ||
  20954. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20955. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  20956. if test $ac_delim_n = $ac_delim_num; then
  20957. break
  20958. elif $ac_last_try; then
  20959. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  20960. else
  20961. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20962. fi
  20963. done
  20964. rm -f conf$$subs.sh
  20965. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20966. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  20967. _ACEOF
  20968. sed -n '
  20969. h
  20970. s/^/S["/; s/!.*/"]=/
  20971. p
  20972. g
  20973. s/^[^!]*!//
  20974. :repl
  20975. t repl
  20976. s/'"$ac_delim"'$//
  20977. t delim
  20978. :nl
  20979. h
  20980. s/\(.\{148\}\)..*/\1/
  20981. t more1
  20982. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  20983. p
  20984. n
  20985. b repl
  20986. :more1
  20987. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  20988. p
  20989. g
  20990. s/.\{148\}//
  20991. t nl
  20992. :delim
  20993. h
  20994. s/\(.\{148\}\)..*/\1/
  20995. t more2
  20996. s/["\\]/\\&/g; s/^/"/; s/$/"/
  20997. p
  20998. b
  20999. :more2
  21000. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21001. p
  21002. g
  21003. s/.\{148\}//
  21004. t delim
  21005. ' <conf$$subs.awk | sed '
  21006. /^[^""]/{
  21007. N
  21008. s/\n//
  21009. }
  21010. ' >>$CONFIG_STATUS || ac_write_fail=1
  21011. rm -f conf$$subs.awk
  21012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21013. _ACAWK
  21014. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  21015. for (key in S) S_is_set[key] = 1
  21016. FS = ""
  21017. }
  21018. {
  21019. line = $ 0
  21020. nfields = split(line, field, "@")
  21021. substed = 0
  21022. len = length(field[1])
  21023. for (i = 2; i < nfields; i++) {
  21024. key = field[i]
  21025. keylen = length(key)
  21026. if (S_is_set[key]) {
  21027. value = S[key]
  21028. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21029. len += length(value) + length(field[++i])
  21030. substed = 1
  21031. } else
  21032. len += 1 + keylen
  21033. }
  21034. print line
  21035. }
  21036. _ACAWK
  21037. _ACEOF
  21038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21039. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21040. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21041. else
  21042. cat
  21043. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  21044. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  21045. _ACEOF
  21046. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  21047. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  21048. # trailing colons and then remove the whole line if VPATH becomes empty
  21049. # (actually we leave an empty line to preserve line numbers).
  21050. if test "x$srcdir" = x.; then
  21051. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  21052. h
  21053. s///
  21054. s/^/:/
  21055. s/[ ]*$/:/
  21056. s/:\$(srcdir):/:/g
  21057. s/:\${srcdir}:/:/g
  21058. s/:@srcdir@:/:/g
  21059. s/^:*//
  21060. s/:*$//
  21061. x
  21062. s/\(=[ ]*\).*/\1/
  21063. G
  21064. s/\n//
  21065. s/^[^=]*=[ ]*$//
  21066. }'
  21067. fi
  21068. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21069. fi # test -n "$CONFIG_FILES"
  21070. # Set up the scripts for CONFIG_HEADERS section.
  21071. # No need to generate them if there are no CONFIG_HEADERS.
  21072. # This happens for instance with `./config.status Makefile'.
  21073. if test -n "$CONFIG_HEADERS"; then
  21074. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  21075. BEGIN {
  21076. _ACEOF
  21077. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21078. # here-document in config.status, that substitutes the proper values into
  21079. # config.h.in to produce config.h.
  21080. # Create a delimiter string that does not exist in confdefs.h, to ease
  21081. # handling of long lines.
  21082. ac_delim='%!_!# '
  21083. for ac_last_try in false false :; do
  21084. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  21085. if test -z "$ac_tt"; then
  21086. break
  21087. elif $ac_last_try; then
  21088. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  21089. else
  21090. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21091. fi
  21092. done
  21093. # For the awk script, D is an array of macro values keyed by name,
  21094. # likewise P contains macro parameters if any. Preserve backslash
  21095. # newline sequences.
  21096. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21097. sed -n '
  21098. s/.\{148\}/&'"$ac_delim"'/g
  21099. t rset
  21100. :rset
  21101. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21102. t def
  21103. d
  21104. :def
  21105. s/\\$//
  21106. t bsnl
  21107. s/["\\]/\\&/g
  21108. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21109. D["\1"]=" \3"/p
  21110. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21111. d
  21112. :bsnl
  21113. s/["\\]/\\&/g
  21114. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21115. D["\1"]=" \3\\\\\\n"\\/p
  21116. t cont
  21117. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21118. t cont
  21119. d
  21120. :cont
  21121. n
  21122. s/.\{148\}/&'"$ac_delim"'/g
  21123. t clear
  21124. :clear
  21125. s/\\$//
  21126. t bsnlc
  21127. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21128. d
  21129. :bsnlc
  21130. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21131. b cont
  21132. ' <confdefs.h | sed '
  21133. s/'"$ac_delim"'/"\\\
  21134. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21135. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21136. for (key in D) D_is_set[key] = 1
  21137. FS = ""
  21138. }
  21139. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21140. line = \$ 0
  21141. split(line, arg, " ")
  21142. if (arg[1] == "#") {
  21143. defundef = arg[2]
  21144. mac1 = arg[3]
  21145. } else {
  21146. defundef = substr(arg[1], 2)
  21147. mac1 = arg[2]
  21148. }
  21149. split(mac1, mac2, "(") #)
  21150. macro = mac2[1]
  21151. prefix = substr(line, 1, index(line, defundef) - 1)
  21152. if (D_is_set[macro]) {
  21153. # Preserve the white space surrounding the "#".
  21154. print prefix "define", macro P[macro] D[macro]
  21155. next
  21156. } else {
  21157. # Replace #undef with comments. This is necessary, for example,
  21158. # in the case of _POSIX_SOURCE, which is predefined and required
  21159. # on some systems where configure will not decide to define it.
  21160. if (defundef == "undef") {
  21161. print "/*", prefix defundef, macro, "*/"
  21162. next
  21163. }
  21164. }
  21165. }
  21166. { print }
  21167. _ACAWK
  21168. _ACEOF
  21169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21170. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  21171. fi # test -n "$CONFIG_HEADERS"
  21172. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21173. shift
  21174. for ac_tag
  21175. do
  21176. case $ac_tag in
  21177. :[FHLC]) ac_mode=$ac_tag; continue;;
  21178. esac
  21179. case $ac_mode$ac_tag in
  21180. :[FHL]*:*);;
  21181. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  21182. :[FH]-) ac_tag=-:-;;
  21183. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21184. esac
  21185. ac_save_IFS=$IFS
  21186. IFS=:
  21187. set x $ac_tag
  21188. IFS=$ac_save_IFS
  21189. shift
  21190. ac_file=$1
  21191. shift
  21192. case $ac_mode in
  21193. :L) ac_source=$1;;
  21194. :[FH])
  21195. ac_file_inputs=
  21196. for ac_f
  21197. do
  21198. case $ac_f in
  21199. -) ac_f="$ac_tmp/stdin";;
  21200. *) # Look for the file first in the build tree, then in the source tree
  21201. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21202. # because $ac_f cannot contain `:'.
  21203. test -f "$ac_f" ||
  21204. case $ac_f in
  21205. [\\/$]*) false;;
  21206. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21207. esac ||
  21208. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  21209. esac
  21210. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21211. as_fn_append ac_file_inputs " '$ac_f'"
  21212. done
  21213. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21214. # use $as_me), people would be surprised to read:
  21215. # /* config.h. Generated by config.status. */
  21216. configure_input='Generated from '`
  21217. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21218. `' by configure.'
  21219. if test x"$ac_file" != x-; then
  21220. configure_input="$ac_file. $configure_input"
  21221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  21222. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  21223. fi
  21224. # Neutralize special characters interpreted by sed in replacement strings.
  21225. case $configure_input in #(
  21226. *\&* | *\|* | *\\* )
  21227. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  21228. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21229. *) ac_sed_conf_input=$configure_input;;
  21230. esac
  21231. case $ac_tag in
  21232. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  21233. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  21234. esac
  21235. ;;
  21236. esac
  21237. ac_dir=`$as_dirname -- "$ac_file" ||
  21238. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21239. X"$ac_file" : 'X\(//\)[^/]' \| \
  21240. X"$ac_file" : 'X\(//\)$' \| \
  21241. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21242. printf "%s\n" X"$ac_file" |
  21243. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21244. s//\1/
  21245. q
  21246. }
  21247. /^X\(\/\/\)[^/].*/{
  21248. s//\1/
  21249. q
  21250. }
  21251. /^X\(\/\/\)$/{
  21252. s//\1/
  21253. q
  21254. }
  21255. /^X\(\/\).*/{
  21256. s//\1/
  21257. q
  21258. }
  21259. s/.*/./; q'`
  21260. as_dir="$ac_dir"; as_fn_mkdir_p
  21261. ac_builddir=.
  21262. case "$ac_dir" in
  21263. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21264. *)
  21265. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  21266. # A ".." for each directory in $ac_dir_suffix.
  21267. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21268. case $ac_top_builddir_sub in
  21269. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21270. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21271. esac ;;
  21272. esac
  21273. ac_abs_top_builddir=$ac_pwd
  21274. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21275. # for backward compatibility:
  21276. ac_top_builddir=$ac_top_build_prefix
  21277. case $srcdir in
  21278. .) # We are building in place.
  21279. ac_srcdir=.
  21280. ac_top_srcdir=$ac_top_builddir_sub
  21281. ac_abs_top_srcdir=$ac_pwd ;;
  21282. [\\/]* | ?:[\\/]* ) # Absolute name.
  21283. ac_srcdir=$srcdir$ac_dir_suffix;
  21284. ac_top_srcdir=$srcdir
  21285. ac_abs_top_srcdir=$srcdir ;;
  21286. *) # Relative name.
  21287. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21288. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21289. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21290. esac
  21291. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21292. case $ac_mode in
  21293. :F)
  21294. #
  21295. # CONFIG_FILE
  21296. #
  21297. case $INSTALL in
  21298. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21299. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21300. esac
  21301. ac_MKDIR_P=$MKDIR_P
  21302. case $MKDIR_P in
  21303. [\\/$]* | ?:[\\/]* ) ;;
  21304. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21305. esac
  21306. _ACEOF
  21307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21308. # If the template does not know about datarootdir, expand it.
  21309. # FIXME: This hack should be removed a few years after 2.60.
  21310. ac_datarootdir_hack=; ac_datarootdir_seen=
  21311. ac_sed_dataroot='
  21312. /datarootdir/ {
  21313. p
  21314. q
  21315. }
  21316. /@datadir@/p
  21317. /@docdir@/p
  21318. /@infodir@/p
  21319. /@localedir@/p
  21320. /@mandir@/p'
  21321. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21322. *datarootdir*) ac_datarootdir_seen=yes;;
  21323. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21325. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21326. _ACEOF
  21327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21328. ac_datarootdir_hack='
  21329. s&@datadir@&$datadir&g
  21330. s&@docdir@&$docdir&g
  21331. s&@infodir@&$infodir&g
  21332. s&@localedir@&$localedir&g
  21333. s&@mandir@&$mandir&g
  21334. s&\\\${datarootdir}&$datarootdir&g' ;;
  21335. esac
  21336. _ACEOF
  21337. # Neutralize VPATH when `$srcdir' = `.'.
  21338. # Shell code in configure.ac might set extrasub.
  21339. # FIXME: do we really want to maintain this feature?
  21340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21341. ac_sed_extra="$ac_vpsub
  21342. $extrasub
  21343. _ACEOF
  21344. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21345. :t
  21346. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21347. s|@configure_input@|$ac_sed_conf_input|;t t
  21348. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21349. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21350. s&@srcdir@&$ac_srcdir&;t t
  21351. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21352. s&@top_srcdir@&$ac_top_srcdir&;t t
  21353. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21354. s&@builddir@&$ac_builddir&;t t
  21355. s&@abs_builddir@&$ac_abs_builddir&;t t
  21356. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21357. s&@INSTALL@&$ac_INSTALL&;t t
  21358. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21359. $ac_datarootdir_hack
  21360. "
  21361. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  21362. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21363. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21364. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  21365. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  21366. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  21367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21368. which seems to be undefined. Please make sure it is defined" >&5
  21369. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21370. which seems to be undefined. Please make sure it is defined" >&2;}
  21371. rm -f "$ac_tmp/stdin"
  21372. case $ac_file in
  21373. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  21374. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  21375. esac \
  21376. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21377. ;;
  21378. :H)
  21379. #
  21380. # CONFIG_HEADER
  21381. #
  21382. if test x"$ac_file" != x-; then
  21383. {
  21384. printf "%s\n" "/* $configure_input */" >&1 \
  21385. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  21386. } >"$ac_tmp/config.h" \
  21387. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21388. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  21389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  21390. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  21391. else
  21392. rm -f "$ac_file"
  21393. mv "$ac_tmp/config.h" "$ac_file" \
  21394. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  21395. fi
  21396. else
  21397. printf "%s\n" "/* $configure_input */" >&1 \
  21398. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  21399. || as_fn_error $? "could not create -" "$LINENO" 5
  21400. fi
  21401. # Compute "$ac_file"'s index in $config_headers.
  21402. _am_arg="$ac_file"
  21403. _am_stamp_count=1
  21404. for _am_header in $config_headers :; do
  21405. case $_am_header in
  21406. $_am_arg | $_am_arg:* )
  21407. break ;;
  21408. * )
  21409. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21410. esac
  21411. done
  21412. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21413. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21414. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21415. X"$_am_arg" : 'X\(//\)$' \| \
  21416. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21417. printf "%s\n" X"$_am_arg" |
  21418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21419. s//\1/
  21420. q
  21421. }
  21422. /^X\(\/\/\)[^/].*/{
  21423. s//\1/
  21424. q
  21425. }
  21426. /^X\(\/\/\)$/{
  21427. s//\1/
  21428. q
  21429. }
  21430. /^X\(\/\).*/{
  21431. s//\1/
  21432. q
  21433. }
  21434. s/.*/./; q'`/stamp-h$_am_stamp_count
  21435. ;;
  21436. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  21437. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  21438. ;;
  21439. esac
  21440. case $ac_file$ac_mode in
  21441. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  21442. # Older Autoconf quotes --file arguments for eval, but not when files
  21443. # are listed without --file. Let's play safe and only enable the eval
  21444. # if we detect the quoting.
  21445. # TODO: see whether this extra hack can be removed once we start
  21446. # requiring Autoconf 2.70 or later.
  21447. case $CONFIG_FILES in #(
  21448. *\'*) :
  21449. eval set x "$CONFIG_FILES" ;; #(
  21450. *) :
  21451. set x $CONFIG_FILES ;; #(
  21452. *) :
  21453. ;;
  21454. esac
  21455. shift
  21456. # Used to flag and report bootstrapping failures.
  21457. am_rc=0
  21458. for am_mf
  21459. do
  21460. # Strip MF so we end up with the name of the file.
  21461. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  21462. # Check whether this is an Automake generated Makefile which includes
  21463. # dependency-tracking related rules and includes.
  21464. # Grep'ing the whole file directly is not great: AIX grep has a line
  21465. # limit of 2048, but all sed's we know have understand at least 4000.
  21466. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  21467. || continue
  21468. am_dirpart=`$as_dirname -- "$am_mf" ||
  21469. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21470. X"$am_mf" : 'X\(//\)[^/]' \| \
  21471. X"$am_mf" : 'X\(//\)$' \| \
  21472. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21473. printf "%s\n" X"$am_mf" |
  21474. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21475. s//\1/
  21476. q
  21477. }
  21478. /^X\(\/\/\)[^/].*/{
  21479. s//\1/
  21480. q
  21481. }
  21482. /^X\(\/\/\)$/{
  21483. s//\1/
  21484. q
  21485. }
  21486. /^X\(\/\).*/{
  21487. s//\1/
  21488. q
  21489. }
  21490. s/.*/./; q'`
  21491. am_filepart=`$as_basename -- "$am_mf" ||
  21492. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  21493. X"$am_mf" : 'X\(//\)$' \| \
  21494. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  21495. printf "%s\n" X/"$am_mf" |
  21496. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21497. s//\1/
  21498. q
  21499. }
  21500. /^X\/\(\/\/\)$/{
  21501. s//\1/
  21502. q
  21503. }
  21504. /^X\/\(\/\).*/{
  21505. s//\1/
  21506. q
  21507. }
  21508. s/.*/./; q'`
  21509. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  21510. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21511. | $MAKE -f - am--depfiles" >&5
  21512. (cd "$am_dirpart" \
  21513. && sed -e '/# am--include-marker/d' "$am_filepart" \
  21514. | $MAKE -f - am--depfiles) >&5 2>&5
  21515. ac_status=$?
  21516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21517. (exit $ac_status); } || am_rc=$?
  21518. done
  21519. if test $am_rc -ne 0; then
  21520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21521. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  21522. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  21523. for automatic dependency tracking. If GNU make was not used, consider
  21524. re-running the configure script with MAKE=\"gmake\" (or whatever is
  21525. necessary). You can also try re-running configure with the
  21526. '--disable-dependency-tracking' option to at least be able to build
  21527. the package (albeit without support for automatic dependency tracking).
  21528. See \`config.log' for more details" "$LINENO" 5; }
  21529. fi
  21530. { am_dirpart=; unset am_dirpart;}
  21531. { am_filepart=; unset am_filepart;}
  21532. { am_mf=; unset am_mf;}
  21533. { am_rc=; unset am_rc;}
  21534. rm -f conftest-deps.mk
  21535. }
  21536. ;;
  21537. "libtool":C)
  21538. # See if we are running on zsh, and set the options that allow our
  21539. # commands through without removal of \ escapes.
  21540. if test -n "${ZSH_VERSION+set}"; then
  21541. setopt NO_GLOB_SUBST
  21542. fi
  21543. cfgfile=${ofile}T
  21544. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  21545. $RM "$cfgfile"
  21546. cat <<_LT_EOF >> "$cfgfile"
  21547. #! $SHELL
  21548. # Generated automatically by $as_me ($PACKAGE) $VERSION
  21549. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  21550. # Provide generalized library-building support services.
  21551. # Written by Gordon Matzigkeit, 1996
  21552. # Copyright (C) 2014 Free Software Foundation, Inc.
  21553. # This is free software; see the source for copying conditions. There is NO
  21554. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21555. # GNU Libtool is free software; you can redistribute it and/or modify
  21556. # it under the terms of the GNU General Public License as published by
  21557. # the Free Software Foundation; either version 2 of of the License, or
  21558. # (at your option) any later version.
  21559. #
  21560. # As a special exception to the GNU General Public License, if you
  21561. # distribute this file as part of a program or library that is built
  21562. # using GNU Libtool, you may include this file under the same
  21563. # distribution terms that you use for the rest of that program.
  21564. #
  21565. # GNU Libtool is distributed in the hope that it will be useful, but
  21566. # WITHOUT ANY WARRANTY; without even the implied warranty of
  21567. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21568. # GNU General Public License for more details.
  21569. #
  21570. # You should have received a copy of the GNU General Public License
  21571. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  21572. # The names of the tagged configurations supported by this script.
  21573. available_tags=''
  21574. # Configured defaults for sys_lib_dlsearch_path munging.
  21575. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  21576. # ### BEGIN LIBTOOL CONFIG
  21577. # Assembler program.
  21578. AS=$lt_AS
  21579. # DLL creation program.
  21580. DLLTOOL=$lt_DLLTOOL
  21581. # Object dumper program.
  21582. OBJDUMP=$lt_OBJDUMP
  21583. # Which release of libtool.m4 was used?
  21584. macro_version=$macro_version
  21585. macro_revision=$macro_revision
  21586. # Whether or not to build shared libraries.
  21587. build_libtool_libs=$enable_shared
  21588. # Whether or not to build static libraries.
  21589. build_old_libs=$enable_static
  21590. # What type of objects to build.
  21591. pic_mode=$pic_mode
  21592. # Whether or not to optimize for fast installation.
  21593. fast_install=$enable_fast_install
  21594. # Shared archive member basename,for filename based shared library versioning on AIX.
  21595. shared_archive_member_spec=$shared_archive_member_spec
  21596. # Shell to use when invoking shell scripts.
  21597. SHELL=$lt_SHELL
  21598. # An echo program that protects backslashes.
  21599. ECHO=$lt_ECHO
  21600. # The PATH separator for the build system.
  21601. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  21602. # The host system.
  21603. host_alias=$host_alias
  21604. host=$host
  21605. host_os=$host_os
  21606. # The build system.
  21607. build_alias=$build_alias
  21608. build=$build
  21609. build_os=$build_os
  21610. # A sed program that does not truncate output.
  21611. SED=$lt_SED
  21612. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  21613. Xsed="\$SED -e 1s/^X//"
  21614. # A grep program that handles long lines.
  21615. GREP=$lt_GREP
  21616. # An ERE matcher.
  21617. EGREP=$lt_EGREP
  21618. # A literal string matcher.
  21619. FGREP=$lt_FGREP
  21620. # A BSD- or MS-compatible name lister.
  21621. NM=$lt_NM
  21622. # Whether we need soft or hard links.
  21623. LN_S=$lt_LN_S
  21624. # What is the maximum length of a command?
  21625. max_cmd_len=$max_cmd_len
  21626. # Object file suffix (normally "o").
  21627. objext=$ac_objext
  21628. # Executable file suffix (normally "").
  21629. exeext=$exeext
  21630. # whether the shell understands "unset".
  21631. lt_unset=$lt_unset
  21632. # turn spaces into newlines.
  21633. SP2NL=$lt_lt_SP2NL
  21634. # turn newlines into spaces.
  21635. NL2SP=$lt_lt_NL2SP
  21636. # convert \$build file names to \$host format.
  21637. to_host_file_cmd=$lt_cv_to_host_file_cmd
  21638. # convert \$build files to toolchain format.
  21639. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  21640. # Method to check whether dependent libraries are shared objects.
  21641. deplibs_check_method=$lt_deplibs_check_method
  21642. # Command to use when deplibs_check_method = "file_magic".
  21643. file_magic_cmd=$lt_file_magic_cmd
  21644. # How to find potential files when deplibs_check_method = "file_magic".
  21645. file_magic_glob=$lt_file_magic_glob
  21646. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  21647. want_nocaseglob=$lt_want_nocaseglob
  21648. # Command to associate shared and link libraries.
  21649. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  21650. # The archiver.
  21651. AR=$lt_AR
  21652. # Flags to create an archive.
  21653. AR_FLAGS=$lt_AR_FLAGS
  21654. # How to feed a file listing to the archiver.
  21655. archiver_list_spec=$lt_archiver_list_spec
  21656. # A symbol stripping program.
  21657. STRIP=$lt_STRIP
  21658. # Commands used to install an old-style archive.
  21659. RANLIB=$lt_RANLIB
  21660. old_postinstall_cmds=$lt_old_postinstall_cmds
  21661. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  21662. # Whether to use a lock for old archive extraction.
  21663. lock_old_archive_extraction=$lock_old_archive_extraction
  21664. # A C compiler.
  21665. LTCC=$lt_CC
  21666. # LTCC compiler flags.
  21667. LTCFLAGS=$lt_CFLAGS
  21668. # Take the output of nm and produce a listing of raw symbols and C names.
  21669. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21670. # Transform the output of nm in a proper C declaration.
  21671. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21672. # Transform the output of nm into a list of symbols to manually relocate.
  21673. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  21674. # Transform the output of nm in a C name address pair.
  21675. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21676. # Transform the output of nm in a C name address pair when lib prefix is needed.
  21677. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  21678. # The name lister interface.
  21679. nm_interface=$lt_lt_cv_nm_interface
  21680. # Specify filename containing input files for \$NM.
  21681. nm_file_list_spec=$lt_nm_file_list_spec
  21682. # The root where to search for dependent libraries,and where our libraries should be installed.
  21683. lt_sysroot=$lt_sysroot
  21684. # Command to truncate a binary pipe.
  21685. lt_truncate_bin=$lt_lt_cv_truncate_bin
  21686. # The name of the directory that contains temporary libtool files.
  21687. objdir=$objdir
  21688. # Used to examine libraries when file_magic_cmd begins with "file".
  21689. MAGIC_CMD=$MAGIC_CMD
  21690. # Must we lock files when doing compilation?
  21691. need_locks=$lt_need_locks
  21692. # Manifest tool.
  21693. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  21694. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  21695. DSYMUTIL=$lt_DSYMUTIL
  21696. # Tool to change global to local symbols on Mac OS X.
  21697. NMEDIT=$lt_NMEDIT
  21698. # Tool to manipulate fat objects and archives on Mac OS X.
  21699. LIPO=$lt_LIPO
  21700. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  21701. OTOOL=$lt_OTOOL
  21702. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  21703. OTOOL64=$lt_OTOOL64
  21704. # Old archive suffix (normally "a").
  21705. libext=$libext
  21706. # Shared library suffix (normally ".so").
  21707. shrext_cmds=$lt_shrext_cmds
  21708. # The commands to extract the exported symbol list from a shared archive.
  21709. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21710. # Variables whose values should be saved in libtool wrapper scripts and
  21711. # restored at link time.
  21712. variables_saved_for_relink=$lt_variables_saved_for_relink
  21713. # Do we need the "lib" prefix for modules?
  21714. need_lib_prefix=$need_lib_prefix
  21715. # Do we need a version for libraries?
  21716. need_version=$need_version
  21717. # Library versioning type.
  21718. version_type=$version_type
  21719. # Shared library runtime path variable.
  21720. runpath_var=$runpath_var
  21721. # Shared library path variable.
  21722. shlibpath_var=$shlibpath_var
  21723. # Is shlibpath searched before the hard-coded library search path?
  21724. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21725. # Format of library name prefix.
  21726. libname_spec=$lt_libname_spec
  21727. # List of archive names. First name is the real one, the rest are links.
  21728. # The last name is the one that the linker finds with -lNAME
  21729. library_names_spec=$lt_library_names_spec
  21730. # The coded name of the library, if different from the real name.
  21731. soname_spec=$lt_soname_spec
  21732. # Permission mode override for installation of shared libraries.
  21733. install_override_mode=$lt_install_override_mode
  21734. # Command to use after installation of a shared archive.
  21735. postinstall_cmds=$lt_postinstall_cmds
  21736. # Command to use after uninstallation of a shared archive.
  21737. postuninstall_cmds=$lt_postuninstall_cmds
  21738. # Commands used to finish a libtool library installation in a directory.
  21739. finish_cmds=$lt_finish_cmds
  21740. # As "finish_cmds", except a single script fragment to be evaled but
  21741. # not shown.
  21742. finish_eval=$lt_finish_eval
  21743. # Whether we should hardcode library paths into libraries.
  21744. hardcode_into_libs=$hardcode_into_libs
  21745. # Compile-time system search path for libraries.
  21746. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21747. # Detected run-time system search path for libraries.
  21748. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  21749. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  21750. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  21751. # Whether dlopen is supported.
  21752. dlopen_support=$enable_dlopen
  21753. # Whether dlopen of programs is supported.
  21754. dlopen_self=$enable_dlopen_self
  21755. # Whether dlopen of statically linked programs is supported.
  21756. dlopen_self_static=$enable_dlopen_self_static
  21757. # Commands to strip libraries.
  21758. old_striplib=$lt_old_striplib
  21759. striplib=$lt_striplib
  21760. # The linker used to build libraries.
  21761. LD=$lt_LD
  21762. # How to create reloadable object files.
  21763. reload_flag=$lt_reload_flag
  21764. reload_cmds=$lt_reload_cmds
  21765. # Commands used to build an old-style archive.
  21766. old_archive_cmds=$lt_old_archive_cmds
  21767. # A language specific compiler.
  21768. CC=$lt_compiler
  21769. # Is the compiler the GNU compiler?
  21770. with_gcc=$GCC
  21771. # Compiler flag to turn off builtin functions.
  21772. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  21773. # Additional compiler flags for building library objects.
  21774. pic_flag=$lt_lt_prog_compiler_pic
  21775. # How to pass a linker flag through the compiler.
  21776. wl=$lt_lt_prog_compiler_wl
  21777. # Compiler flag to prevent dynamic linking.
  21778. link_static_flag=$lt_lt_prog_compiler_static
  21779. # Does compiler simultaneously support -c and -o options?
  21780. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  21781. # Whether or not to add -lc for building shared libraries.
  21782. build_libtool_need_lc=$archive_cmds_need_lc
  21783. # Whether or not to disallow shared libs when runtime libs are static.
  21784. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  21785. # Compiler flag to allow reflexive dlopens.
  21786. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  21787. # Compiler flag to generate shared objects directly from archives.
  21788. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  21789. # Whether the compiler copes with passing no objects directly.
  21790. compiler_needs_object=$lt_compiler_needs_object
  21791. # Create an old-style archive from a shared archive.
  21792. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  21793. # Create a temporary old-style archive to link instead of a shared archive.
  21794. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  21795. # Commands used to build a shared archive.
  21796. archive_cmds=$lt_archive_cmds
  21797. archive_expsym_cmds=$lt_archive_expsym_cmds
  21798. # Commands used to build a loadable module if different from building
  21799. # a shared archive.
  21800. module_cmds=$lt_module_cmds
  21801. module_expsym_cmds=$lt_module_expsym_cmds
  21802. # Whether we are building with GNU ld or not.
  21803. with_gnu_ld=$lt_with_gnu_ld
  21804. # Flag that allows shared libraries with undefined symbols to be built.
  21805. allow_undefined_flag=$lt_allow_undefined_flag
  21806. # Flag that enforces no undefined symbols.
  21807. no_undefined_flag=$lt_no_undefined_flag
  21808. # Flag to hardcode \$libdir into a binary during linking.
  21809. # This must work even if \$libdir does not exist
  21810. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21811. # Whether we need a single "-rpath" flag with a separated argument.
  21812. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21813. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21814. # DIR into the resulting binary.
  21815. hardcode_direct=$hardcode_direct
  21816. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  21817. # DIR into the resulting binary and the resulting library dependency is
  21818. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  21819. # library is relocated.
  21820. hardcode_direct_absolute=$hardcode_direct_absolute
  21821. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21822. # into the resulting binary.
  21823. hardcode_minus_L=$hardcode_minus_L
  21824. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21825. # into the resulting binary.
  21826. hardcode_shlibpath_var=$hardcode_shlibpath_var
  21827. # Set to "yes" if building a shared library automatically hardcodes DIR
  21828. # into the library and all subsequent libraries and executables linked
  21829. # against it.
  21830. hardcode_automatic=$hardcode_automatic
  21831. # Set to yes if linker adds runtime paths of dependent libraries
  21832. # to runtime path list.
  21833. inherit_rpath=$inherit_rpath
  21834. # Whether libtool must link a program against all its dependency libraries.
  21835. link_all_deplibs=$link_all_deplibs
  21836. # Set to "yes" if exported symbols are required.
  21837. always_export_symbols=$always_export_symbols
  21838. # The commands to list exported symbols.
  21839. export_symbols_cmds=$lt_export_symbols_cmds
  21840. # Symbols that should not be listed in the preloaded symbols.
  21841. exclude_expsyms=$lt_exclude_expsyms
  21842. # Symbols that must always be exported.
  21843. include_expsyms=$lt_include_expsyms
  21844. # Commands necessary for linking programs (against libraries) with templates.
  21845. prelink_cmds=$lt_prelink_cmds
  21846. # Commands necessary for finishing linking programs.
  21847. postlink_cmds=$lt_postlink_cmds
  21848. # Specify filename containing input files.
  21849. file_list_spec=$lt_file_list_spec
  21850. # How to hardcode a shared library path into an executable.
  21851. hardcode_action=$hardcode_action
  21852. # ### END LIBTOOL CONFIG
  21853. _LT_EOF
  21854. cat <<'_LT_EOF' >> "$cfgfile"
  21855. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  21856. # func_munge_path_list VARIABLE PATH
  21857. # -----------------------------------
  21858. # VARIABLE is name of variable containing _space_ separated list of
  21859. # directories to be munged by the contents of PATH, which is string
  21860. # having a format:
  21861. # "DIR[:DIR]:"
  21862. # string "DIR[ DIR]" will be prepended to VARIABLE
  21863. # ":DIR[:DIR]"
  21864. # string "DIR[ DIR]" will be appended to VARIABLE
  21865. # "DIRP[:DIRP]::[DIRA:]DIRA"
  21866. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  21867. # "DIRA[ DIRA]" will be appended to VARIABLE
  21868. # "DIR[:DIR]"
  21869. # VARIABLE will be replaced by "DIR[ DIR]"
  21870. func_munge_path_list ()
  21871. {
  21872. case x$2 in
  21873. x)
  21874. ;;
  21875. *:)
  21876. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  21877. ;;
  21878. x:*)
  21879. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  21880. ;;
  21881. *::*)
  21882. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  21883. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  21884. ;;
  21885. *)
  21886. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  21887. ;;
  21888. esac
  21889. }
  21890. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  21891. func_cc_basename ()
  21892. {
  21893. for cc_temp in $*""; do
  21894. case $cc_temp in
  21895. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21896. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21897. \-*) ;;
  21898. *) break;;
  21899. esac
  21900. done
  21901. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  21902. }
  21903. # ### END FUNCTIONS SHARED WITH CONFIGURE
  21904. _LT_EOF
  21905. case $host_os in
  21906. aix3*)
  21907. cat <<\_LT_EOF >> "$cfgfile"
  21908. # AIX sometimes has problems with the GCC collect2 program. For some
  21909. # reason, if we set the COLLECT_NAMES environment variable, the problems
  21910. # vanish in a puff of smoke.
  21911. if test set != "${COLLECT_NAMES+set}"; then
  21912. COLLECT_NAMES=
  21913. export COLLECT_NAMES
  21914. fi
  21915. _LT_EOF
  21916. ;;
  21917. esac
  21918. ltmain=$ac_aux_dir/ltmain.sh
  21919. # We use sed instead of cat because bash on DJGPP gets confused if
  21920. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21921. # text mode, it properly converts lines to CR/LF. This bash problem
  21922. # is reportedly fixed, but why not run on old versions too?
  21923. sed '$q' "$ltmain" >> "$cfgfile" \
  21924. || (rm -f "$cfgfile"; exit 1)
  21925. mv -f "$cfgfile" "$ofile" ||
  21926. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21927. chmod +x "$ofile"
  21928. ;;
  21929. "mkdirs":C) mkdir -p libarchive/test tar/test cat/test cpio/test ;;
  21930. esac
  21931. done # for ac_tag
  21932. as_fn_exit 0
  21933. _ACEOF
  21934. ac_clean_files=$ac_clean_files_save
  21935. test $ac_write_fail = 0 ||
  21936. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  21937. # configure is writing to config.log, and then calls config.status.
  21938. # config.status does its own redirection, appending to config.log.
  21939. # Unfortunately, on DOS this fails, as config.log is still kept open
  21940. # by configure, so config.status won't be able to write to it; its
  21941. # output is simply discarded. So we exec the FD to /dev/null,
  21942. # effectively closing config.log, so it can be properly (re)opened and
  21943. # appended to by config.status. When coming back to configure, we
  21944. # need to make the FD available again.
  21945. if test "$no_create" != yes; then
  21946. ac_cs_success=:
  21947. ac_config_status_args=
  21948. test "$silent" = yes &&
  21949. ac_config_status_args="$ac_config_status_args --quiet"
  21950. exec 5>/dev/null
  21951. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21952. exec 5>>config.log
  21953. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21954. # would make configure fail if this is the last instruction.
  21955. $ac_cs_success || as_fn_exit 1
  21956. fi
  21957. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  21958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  21959. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  21960. fi