configure 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for curl -.
  4. #
  5. # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. #
  14. # Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
  15. # This configure script may be copied, distributed and modified under the
  16. # terms of the curl license; see COPYING for more details
  17. ## -------------------------------- ##
  18. ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
  19. ## -------------------------------- ##
  20. xc_configure_preamble_ver_major='1'
  21. xc_configure_preamble_ver_minor='0'
  22. #
  23. # Set IFS to space, tab and newline.
  24. #
  25. xc_space=' '
  26. xc_tab=' '
  27. xc_newline='
  28. '
  29. IFS="$xc_space$xc_tab$xc_newline"
  30. #
  31. # Set internationalization behavior variables.
  32. #
  33. LANG='C'
  34. LC_ALL='C'
  35. LANGUAGE='C'
  36. export LANG
  37. export LC_ALL
  38. export LANGUAGE
  39. #
  40. # Some useful variables.
  41. #
  42. xc_msg_warn='configure: WARNING:'
  43. xc_msg_abrt='Can not continue.'
  44. xc_msg_err='configure: error:'
  45. #
  46. # Verify that 'echo' command is available, otherwise abort.
  47. #
  48. xc_tst_str='unknown'
  49. (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  50. case "x$xc_tst_str" in # ((
  51. xsuccess)
  52. :
  53. ;;
  54. *)
  55. # Try built-in echo, and fail.
  56. echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
  57. exit 1
  58. ;;
  59. esac
  60. #
  61. # Verify that 'test' command is available, otherwise abort.
  62. #
  63. xc_tst_str='unknown'
  64. (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
  65. case "x$xc_tst_str" in # ((
  66. xsuccess)
  67. :
  68. ;;
  69. *)
  70. echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
  71. exit 1
  72. ;;
  73. esac
  74. #
  75. # Verify that 'PATH' variable is set, otherwise abort.
  76. #
  77. xc_tst_str='unknown'
  78. (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
  79. case "x$xc_tst_str" in # ((
  80. xsuccess)
  81. :
  82. ;;
  83. *)
  84. echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
  85. exit 1
  86. ;;
  87. esac
  88. #
  89. # Verify that 'expr' command is available, otherwise abort.
  90. #
  91. xc_tst_str='unknown'
  92. xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
  93. case "x$xc_tst_str" in # ((
  94. x7)
  95. :
  96. ;;
  97. *)
  98. echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
  99. exit 1
  100. ;;
  101. esac
  102. #
  103. # Verify that 'sed' utility is found within 'PATH', otherwise abort.
  104. #
  105. xc_tst_str='unknown'
  106. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  107. | sed -e 's:unknown:success:' 2>/dev/null`
  108. case "x$xc_tst_str" in # ((
  109. xsuccess)
  110. :
  111. ;;
  112. *)
  113. echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
  114. exit 1
  115. ;;
  116. esac
  117. #
  118. # Verify that 'grep' utility is found within 'PATH', otherwise abort.
  119. #
  120. xc_tst_str='unknown'
  121. (`echo "$xc_tst_str" 2>/dev/null \
  122. | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
  123. case "x$xc_tst_str" in # ((
  124. xsuccess)
  125. :
  126. ;;
  127. *)
  128. echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
  129. exit 1
  130. ;;
  131. esac
  132. #
  133. # Verify that 'tr' utility is found within 'PATH', otherwise abort.
  134. #
  135. xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
  136. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  137. | tr -d "0123456789$xc_tab" 2>/dev/null`
  138. case "x$xc_tst_str" in # ((
  139. xsuccess)
  140. :
  141. ;;
  142. *)
  143. echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
  144. exit 1
  145. ;;
  146. esac
  147. #
  148. # Verify that 'wc' utility is found within 'PATH', otherwise abort.
  149. #
  150. xc_tst_str='unknown unknown unknown unknown'
  151. xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
  152. | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
  153. case "x$xc_tst_str" in # ((
  154. x4)
  155. :
  156. ;;
  157. *)
  158. echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
  159. exit 1
  160. ;;
  161. esac
  162. #
  163. # Verify that 'cat' utility is found within 'PATH', otherwise abort.
  164. #
  165. xc_tst_str='unknown'
  166. xc_tst_str=`cat <<_EOT 2>/dev/null \
  167. | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
  168. unknown
  169. unknown
  170. unknown
  171. _EOT`
  172. case "x$xc_tst_str" in # ((
  173. x3)
  174. :
  175. ;;
  176. *)
  177. echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
  178. exit 1
  179. ;;
  180. esac
  181. #
  182. # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
  183. #
  184. # Directory count in 'PATH' when using a colon separator.
  185. xc_tst_dirs_col='x'
  186. xc_tst_prev_IFS=$IFS; IFS=':'
  187. for xc_tst_dir in $PATH; do
  188. IFS=$xc_tst_prev_IFS
  189. xc_tst_dirs_col="x$xc_tst_dirs_col"
  190. done
  191. IFS=$xc_tst_prev_IFS
  192. xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
  193. # Directory count in 'PATH' when using a semicolon separator.
  194. xc_tst_dirs_sem='x'
  195. xc_tst_prev_IFS=$IFS; IFS=';'
  196. for xc_tst_dir in $PATH; do
  197. IFS=$xc_tst_prev_IFS
  198. xc_tst_dirs_sem="x$xc_tst_dirs_sem"
  199. done
  200. IFS=$xc_tst_prev_IFS
  201. xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
  202. if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
  203. # When both counting methods give the same result we do not want to
  204. # chose one over the other, and consider auto-detection not possible.
  205. if test -z "$PATH_SEPARATOR"; then
  206. # User should provide the correct 'PATH_SEPARATOR' definition.
  207. # Until then, guess that it is colon!
  208. echo "$xc_msg_warn path separator not determined, guessing colon" >&2
  209. PATH_SEPARATOR=':'
  210. fi
  211. else
  212. # Separator with the greater directory count is the auto-detected one.
  213. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  214. xc_tst_auto_separator=';'
  215. else
  216. xc_tst_auto_separator=':'
  217. fi
  218. if test -z "$PATH_SEPARATOR"; then
  219. # Simply use the auto-detected one when not already set.
  220. PATH_SEPARATOR=$xc_tst_auto_separator
  221. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  222. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  223. fi
  224. fi
  225. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  226. xc_configure_preamble_result='yes'
  227. ## -------------------- ##
  228. ## M4sh Initialization. ##
  229. ## -------------------- ##
  230. # Be more Bourne compatible
  231. DUALCASE=1; export DUALCASE # for MKS sh
  232. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  233. emulate sh
  234. NULLCMD=:
  235. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  236. # is contrary to our usage. Disable this feature.
  237. alias -g '${1+"$@"}'='"$@"'
  238. setopt NO_GLOB_SUBST
  239. else
  240. case `(set -o) 2>/dev/null` in #(
  241. *posix*) :
  242. set -o posix ;; #(
  243. *) :
  244. ;;
  245. esac
  246. fi
  247. as_nl='
  248. '
  249. export as_nl
  250. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  251. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  252. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  253. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  254. # Prefer a ksh shell builtin over an external printf program on Solaris,
  255. # but without wasting forks for bash or zsh.
  256. if test -z "$BASH_VERSION$ZSH_VERSION" \
  257. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  258. as_echo='print -r --'
  259. as_echo_n='print -rn --'
  260. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  261. as_echo='printf %s\n'
  262. as_echo_n='printf %s'
  263. else
  264. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  265. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  266. as_echo_n='/usr/ucb/echo -n'
  267. else
  268. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  269. as_echo_n_body='eval
  270. arg=$1;
  271. case $arg in #(
  272. *"$as_nl"*)
  273. expr "X$arg" : "X\\(.*\\)$as_nl";
  274. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  275. esac;
  276. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  277. '
  278. export as_echo_n_body
  279. as_echo_n='sh -c $as_echo_n_body as_echo'
  280. fi
  281. export as_echo_body
  282. as_echo='sh -c $as_echo_body as_echo'
  283. fi
  284. # IFS
  285. # We need space, tab and new line, in precisely that order. Quoting is
  286. # there to prevent editors from complaining about space-tab.
  287. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  288. # splitting by setting IFS to empty value.)
  289. IFS=" "" $as_nl"
  290. # Find who we are. Look in the path if we contain no directory separator.
  291. as_myself=
  292. case $0 in #((
  293. *[\\/]* ) as_myself=$0 ;;
  294. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  295. for as_dir in $PATH
  296. do
  297. IFS=$as_save_IFS
  298. test -z "$as_dir" && as_dir=.
  299. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  300. done
  301. IFS=$as_save_IFS
  302. ;;
  303. esac
  304. # We did not find ourselves, most probably we were run as `sh COMMAND'
  305. # in which case we are not to be found in the path.
  306. if test "x$as_myself" = x; then
  307. as_myself=$0
  308. fi
  309. if test ! -f "$as_myself"; then
  310. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  311. exit 1
  312. fi
  313. # Unset variables that we do not need and which cause bugs (e.g. in
  314. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  315. # suppresses any "Segmentation fault" message there. '((' could
  316. # trigger a bug in pdksh 5.2.14.
  317. for as_var in BASH_ENV ENV MAIL MAILPATH
  318. do eval test x\${$as_var+set} = xset \
  319. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  320. done
  321. PS1='$ '
  322. PS2='> '
  323. PS4='+ '
  324. # NLS nuisances.
  325. LC_ALL=C
  326. export LC_ALL
  327. LANGUAGE=C
  328. export LANGUAGE
  329. # CDPATH.
  330. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  331. # Use a proper internal environment variable to ensure we don't fall
  332. # into an infinite loop, continuously re-executing ourselves.
  333. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  334. _as_can_reexec=no; export _as_can_reexec;
  335. # We cannot yet assume a decent shell, so we have to provide a
  336. # neutralization value for shells without unset; and this also
  337. # works around shells that cannot unset nonexistent variables.
  338. # Preserve -v and -x to the replacement shell.
  339. BASH_ENV=/dev/null
  340. ENV=/dev/null
  341. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  342. case $- in # ((((
  343. *v*x* | *x*v* ) as_opts=-vx ;;
  344. *v* ) as_opts=-v ;;
  345. *x* ) as_opts=-x ;;
  346. * ) as_opts= ;;
  347. esac
  348. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  349. # Admittedly, this is quite paranoid, since all the known shells bail
  350. # out after a failed `exec'.
  351. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  352. as_fn_exit 255
  353. fi
  354. # We don't want this to propagate to other subprocesses.
  355. { _as_can_reexec=; unset _as_can_reexec;}
  356. if test "x$CONFIG_SHELL" = x; then
  357. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  358. emulate sh
  359. NULLCMD=:
  360. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  361. # is contrary to our usage. Disable this feature.
  362. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  363. setopt NO_GLOB_SUBST
  364. else
  365. case \`(set -o) 2>/dev/null\` in #(
  366. *posix*) :
  367. set -o posix ;; #(
  368. *) :
  369. ;;
  370. esac
  371. fi
  372. "
  373. as_required="as_fn_return () { (exit \$1); }
  374. as_fn_success () { as_fn_return 0; }
  375. as_fn_failure () { as_fn_return 1; }
  376. as_fn_ret_success () { return 0; }
  377. as_fn_ret_failure () { return 1; }
  378. exitcode=0
  379. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  380. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  381. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  382. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  383. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  384. else
  385. exitcode=1; echo positional parameters were not saved.
  386. fi
  387. test x\$exitcode = x0 || exit 1
  388. test -x / || exit 1"
  389. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  390. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  391. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  392. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  393. test \$(( 1 + 1 )) = 2 || exit 1
  394. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  395. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  396. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  397. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  398. PATH=/empty FPATH=/empty; export PATH FPATH
  399. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  400. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  401. if (eval "$as_required") 2>/dev/null; then :
  402. as_have_required=yes
  403. else
  404. as_have_required=no
  405. fi
  406. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  407. else
  408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  409. as_found=false
  410. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  411. do
  412. IFS=$as_save_IFS
  413. test -z "$as_dir" && as_dir=.
  414. as_found=:
  415. case $as_dir in #(
  416. /*)
  417. for as_base in sh bash ksh sh5; do
  418. # Try only shells that exist, to save several forks.
  419. as_shell=$as_dir/$as_base
  420. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  421. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  422. CONFIG_SHELL=$as_shell as_have_required=yes
  423. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  424. break 2
  425. fi
  426. fi
  427. done;;
  428. esac
  429. as_found=false
  430. done
  431. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  432. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  433. CONFIG_SHELL=$SHELL as_have_required=yes
  434. fi; }
  435. IFS=$as_save_IFS
  436. if test "x$CONFIG_SHELL" != x; then :
  437. export CONFIG_SHELL
  438. # We cannot yet assume a decent shell, so we have to provide a
  439. # neutralization value for shells without unset; and this also
  440. # works around shells that cannot unset nonexistent variables.
  441. # Preserve -v and -x to the replacement shell.
  442. BASH_ENV=/dev/null
  443. ENV=/dev/null
  444. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  445. case $- in # ((((
  446. *v*x* | *x*v* ) as_opts=-vx ;;
  447. *v* ) as_opts=-v ;;
  448. *x* ) as_opts=-x ;;
  449. * ) as_opts= ;;
  450. esac
  451. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  452. # Admittedly, this is quite paranoid, since all the known shells bail
  453. # out after a failed `exec'.
  454. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  455. exit 255
  456. fi
  457. if test x$as_have_required = xno; then :
  458. $as_echo "$0: This script requires a shell more modern than all"
  459. $as_echo "$0: the shells that I found on your system."
  460. if test x${ZSH_VERSION+set} = xset ; then
  461. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  462. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  463. else
  464. $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
  465. $0: mailing list: https://curl.haxx.se/mail/ about your
  466. $0: system, including any error possibly output before this
  467. $0: message. Then install a modern shell, or manually run
  468. $0: the script under such a shell if you do have one."
  469. fi
  470. exit 1
  471. fi
  472. fi
  473. fi
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. export SHELL
  476. # Unset more variables known to interfere with behavior of common tools.
  477. CLICOLOR_FORCE= GREP_OPTIONS=
  478. unset CLICOLOR_FORCE GREP_OPTIONS
  479. ## --------------------- ##
  480. ## M4sh Shell Functions. ##
  481. ## --------------------- ##
  482. # as_fn_unset VAR
  483. # ---------------
  484. # Portably unset VAR.
  485. as_fn_unset ()
  486. {
  487. { eval $1=; unset $1;}
  488. }
  489. as_unset=as_fn_unset
  490. # as_fn_set_status STATUS
  491. # -----------------------
  492. # Set $? to STATUS, without forking.
  493. as_fn_set_status ()
  494. {
  495. return $1
  496. } # as_fn_set_status
  497. # as_fn_exit STATUS
  498. # -----------------
  499. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  500. as_fn_exit ()
  501. {
  502. set +e
  503. as_fn_set_status $1
  504. exit $1
  505. } # as_fn_exit
  506. # as_fn_mkdir_p
  507. # -------------
  508. # Create "$as_dir" as a directory, including parents if necessary.
  509. as_fn_mkdir_p ()
  510. {
  511. case $as_dir in #(
  512. -*) as_dir=./$as_dir;;
  513. esac
  514. test -d "$as_dir" || eval $as_mkdir_p || {
  515. as_dirs=
  516. while :; do
  517. case $as_dir in #(
  518. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  519. *) as_qdir=$as_dir;;
  520. esac
  521. as_dirs="'$as_qdir' $as_dirs"
  522. as_dir=`$as_dirname -- "$as_dir" ||
  523. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  524. X"$as_dir" : 'X\(//\)[^/]' \| \
  525. X"$as_dir" : 'X\(//\)$' \| \
  526. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  527. $as_echo X"$as_dir" |
  528. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  529. s//\1/
  530. q
  531. }
  532. /^X\(\/\/\)[^/].*/{
  533. s//\1/
  534. q
  535. }
  536. /^X\(\/\/\)$/{
  537. s//\1/
  538. q
  539. }
  540. /^X\(\/\).*/{
  541. s//\1/
  542. q
  543. }
  544. s/.*/./; q'`
  545. test -d "$as_dir" && break
  546. done
  547. test -z "$as_dirs" || eval "mkdir $as_dirs"
  548. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  549. } # as_fn_mkdir_p
  550. # as_fn_executable_p FILE
  551. # -----------------------
  552. # Test if FILE is an executable regular file.
  553. as_fn_executable_p ()
  554. {
  555. test -f "$1" && test -x "$1"
  556. } # as_fn_executable_p
  557. # as_fn_append VAR VALUE
  558. # ----------------------
  559. # Append the text in VALUE to the end of the definition contained in VAR. Take
  560. # advantage of any shell optimizations that allow amortized linear growth over
  561. # repeated appends, instead of the typical quadratic growth present in naive
  562. # implementations.
  563. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  564. eval 'as_fn_append ()
  565. {
  566. eval $1+=\$2
  567. }'
  568. else
  569. as_fn_append ()
  570. {
  571. eval $1=\$$1\$2
  572. }
  573. fi # as_fn_append
  574. # as_fn_arith ARG...
  575. # ------------------
  576. # Perform arithmetic evaluation on the ARGs, and store the result in the
  577. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  578. # must be portable across $(()) and expr.
  579. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  580. eval 'as_fn_arith ()
  581. {
  582. as_val=$(( $* ))
  583. }'
  584. else
  585. as_fn_arith ()
  586. {
  587. as_val=`expr "$@" || test $? -eq 1`
  588. }
  589. fi # as_fn_arith
  590. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  591. # ----------------------------------------
  592. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  593. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  594. # script with STATUS, using 1 if that was 0.
  595. as_fn_error ()
  596. {
  597. as_status=$1; test $as_status -eq 0 && as_status=1
  598. if test "$4"; then
  599. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  600. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  601. fi
  602. $as_echo "$as_me: error: $2" >&2
  603. as_fn_exit $as_status
  604. } # as_fn_error
  605. if expr a : '\(a\)' >/dev/null 2>&1 &&
  606. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  607. as_expr=expr
  608. else
  609. as_expr=false
  610. fi
  611. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  612. as_basename=basename
  613. else
  614. as_basename=false
  615. fi
  616. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  617. as_dirname=dirname
  618. else
  619. as_dirname=false
  620. fi
  621. as_me=`$as_basename -- "$0" ||
  622. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  623. X"$0" : 'X\(//\)$' \| \
  624. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  625. $as_echo X/"$0" |
  626. sed '/^.*\/\([^/][^/]*\)\/*$/{
  627. s//\1/
  628. q
  629. }
  630. /^X\/\(\/\/\)$/{
  631. s//\1/
  632. q
  633. }
  634. /^X\/\(\/\).*/{
  635. s//\1/
  636. q
  637. }
  638. s/.*/./; q'`
  639. # Avoid depending upon Character Ranges.
  640. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  641. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  642. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  643. as_cr_digits='0123456789'
  644. as_cr_alnum=$as_cr_Letters$as_cr_digits
  645. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  646. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  647. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  648. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  649. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  650. sed -n '
  651. p
  652. /[$]LINENO/=
  653. ' <$as_myself |
  654. sed '
  655. s/[$]LINENO.*/&-/
  656. t lineno
  657. b
  658. :lineno
  659. N
  660. :loop
  661. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  662. t loop
  663. s/-\n.*//
  664. ' >$as_me.lineno &&
  665. chmod +x "$as_me.lineno" ||
  666. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  667. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  668. # already done that, so ensure we don't try to do so again and fall
  669. # in an infinite loop. This has already happened in practice.
  670. _as_can_reexec=no; export _as_can_reexec
  671. # Don't try to exec as it changes $[0], causing all sort of problems
  672. # (the dirname of $[0] is not the place where we might find the
  673. # original and so on. Autoconf is especially sensitive to this).
  674. . "./$as_me.lineno"
  675. # Exit status is that of the last command.
  676. exit
  677. }
  678. ECHO_C= ECHO_N= ECHO_T=
  679. case `echo -n x` in #(((((
  680. -n*)
  681. case `echo 'xy\c'` in
  682. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  683. xy) ECHO_C='\c';;
  684. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  685. ECHO_T=' ';;
  686. esac;;
  687. *)
  688. ECHO_N='-n';;
  689. esac
  690. rm -f conf$$ conf$$.exe conf$$.file
  691. if test -d conf$$.dir; then
  692. rm -f conf$$.dir/conf$$.file
  693. else
  694. rm -f conf$$.dir
  695. mkdir conf$$.dir 2>/dev/null
  696. fi
  697. if (echo >conf$$.file) 2>/dev/null; then
  698. if ln -s conf$$.file conf$$ 2>/dev/null; then
  699. as_ln_s='ln -s'
  700. # ... but there are two gotchas:
  701. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  702. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  703. # In both cases, we have to default to `cp -pR'.
  704. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  705. as_ln_s='cp -pR'
  706. elif ln conf$$.file conf$$ 2>/dev/null; then
  707. as_ln_s=ln
  708. else
  709. as_ln_s='cp -pR'
  710. fi
  711. else
  712. as_ln_s='cp -pR'
  713. fi
  714. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  715. rmdir conf$$.dir 2>/dev/null
  716. if mkdir -p . 2>/dev/null; then
  717. as_mkdir_p='mkdir -p "$as_dir"'
  718. else
  719. test -d ./-p && rmdir ./-p
  720. as_mkdir_p=false
  721. fi
  722. as_test_x='test -x'
  723. as_executable_p=as_fn_executable_p
  724. # Sed expression to map a string onto a valid CPP name.
  725. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  726. # Sed expression to map a string onto a valid variable name.
  727. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  728. SHELL=${CONFIG_SHELL-/bin/sh}
  729. test -n "$DJDIR" || exec 7<&0 </dev/null
  730. exec 6>&1
  731. # Name of the host.
  732. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  733. # so uname gets run too.
  734. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  735. #
  736. # Initializations.
  737. #
  738. ac_default_prefix=/usr/local
  739. ac_clean_files=
  740. ac_config_libobj_dir=.
  741. LIBOBJS=
  742. cross_compiling=no
  743. subdirs=
  744. MFLAGS=
  745. MAKEFLAGS=
  746. # Identity of this package.
  747. PACKAGE_NAME='curl'
  748. PACKAGE_TARNAME='curl'
  749. PACKAGE_VERSION='-'
  750. PACKAGE_STRING='curl -'
  751. PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
  752. PACKAGE_URL=''
  753. ac_unique_file="lib/urldata.h"
  754. # Factoring default headers for most tests.
  755. ac_includes_default="\
  756. #include <stdio.h>
  757. #ifdef HAVE_SYS_TYPES_H
  758. # include <sys/types.h>
  759. #endif
  760. #ifdef HAVE_SYS_STAT_H
  761. # include <sys/stat.h>
  762. #endif
  763. #ifdef STDC_HEADERS
  764. # include <stdlib.h>
  765. # include <stddef.h>
  766. #else
  767. # ifdef HAVE_STDLIB_H
  768. # include <stdlib.h>
  769. # endif
  770. #endif
  771. #ifdef HAVE_STRING_H
  772. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  773. # include <memory.h>
  774. # endif
  775. # include <string.h>
  776. #endif
  777. #ifdef HAVE_STRINGS_H
  778. # include <strings.h>
  779. #endif
  780. #ifdef HAVE_INTTYPES_H
  781. # include <inttypes.h>
  782. #endif
  783. #ifdef HAVE_STDINT_H
  784. # include <stdint.h>
  785. #endif
  786. #ifdef HAVE_UNISTD_H
  787. # include <unistd.h>
  788. #endif"
  789. enable_option_checking=no
  790. ac_subst_vars='am__EXEEXT_FALSE
  791. am__EXEEXT_TRUE
  792. LTLIBOBJS
  793. LIBOBJS
  794. SSL_BACKENDS
  795. SUPPORT_PROTOCOLS
  796. SUPPORT_FEATURES
  797. ENABLE_STATIC
  798. ENABLE_SHARED
  799. CROSSCOMPILING_FALSE
  800. CROSSCOMPILING_TRUE
  801. BLANK_AT_MAKETIME
  802. CURL_NETWORK_AND_TIME_LIBS
  803. CURL_NETWORK_LIBS
  804. LIBCURL_LIBS
  805. CFLAG_CURL_SYMBOL_HIDING
  806. DOING_CURL_SYMBOL_HIDING_FALSE
  807. DOING_CURL_SYMBOL_HIDING_TRUE
  808. USE_UNIX_SOCKETS
  809. BUILD_LIBHOSTNAME_FALSE
  810. BUILD_LIBHOSTNAME_TRUE
  811. USE_EMBEDDED_ARES_FALSE
  812. USE_EMBEDDED_ARES_TRUE
  813. USE_ARES
  814. subdirs
  815. USE_MANUAL_FALSE
  816. USE_MANUAL_TRUE
  817. MANOPT
  818. NROFF
  819. PERL
  820. IPV6_ENABLED
  821. ZSH_FUNCTIONS_DIR
  822. USE_NGHTTP2
  823. IDN_ENABLED
  824. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
  825. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
  826. CURL_LT_SHLIB_VERSIONED_FLAVOUR
  827. USE_LIBRTMP
  828. USE_LIBSSH
  829. USE_LIBSSH2
  830. LIBMETALINK_CPPFLAGS
  831. LIBMETALINK_LDFLAGS
  832. LIBMETALINK_LIBS
  833. USE_LIBPSL_FALSE
  834. USE_LIBPSL_TRUE
  835. CURL_CA_BUNDLE
  836. CURL_WITH_MULTI_SSL
  837. SSL_ENABLED
  838. USE_AXTLS
  839. NSS_LIBS
  840. USE_NSS
  841. USE_CYASSL
  842. USE_MBEDTLS
  843. USE_POLARSSL
  844. HAVE_GNUTLS_SRP
  845. USE_GNUTLS_NETTLE
  846. USE_GNUTLS
  847. HAVE_OPENSSL_SRP
  848. RANDOM_FILE
  849. SSL_LIBS
  850. USE_DARWINSSL
  851. USE_WINDOWS_SSPI
  852. USE_SCHANNEL
  853. DEFAULT_SSL_BACKEND
  854. BUILD_STUB_GSS_FALSE
  855. BUILD_STUB_GSS_TRUE
  856. USE_OPENLDAP
  857. HAVE_BROTLI
  858. ZLIB_LIBS
  859. HAVE_LIBZ_FALSE
  860. HAVE_LIBZ_TRUE
  861. HAVE_LIBZ
  862. PKGCONFIG
  863. CURL_DISABLE_GOPHER
  864. CURL_DISABLE_SMTP
  865. CURL_DISABLE_SMB
  866. CURL_DISABLE_IMAP
  867. CURL_DISABLE_POP3
  868. CURL_DISABLE_TFTP
  869. CURL_DISABLE_TELNET
  870. CURL_DISABLE_DICT
  871. CURL_DISABLE_PROXY
  872. HAVE_LDAP_SSL
  873. CURL_DISABLE_LDAPS
  874. CURL_DISABLE_LDAP
  875. CURL_DISABLE_FILE
  876. CURL_DISABLE_FTP
  877. CURL_DISABLE_RTSP
  878. CURL_DISABLE_HTTP
  879. DOING_NATIVE_WINDOWS_FALSE
  880. DOING_NATIVE_WINDOWS_TRUE
  881. BUILD_UNITTESTS_FALSE
  882. BUILD_UNITTESTS_TRUE
  883. CURLDEBUG_FALSE
  884. CURLDEBUG_TRUE
  885. USE_EXPLICIT_LIB_DEPS_FALSE
  886. USE_EXPLICIT_LIB_DEPS_TRUE
  887. REQUIRE_LIB_DEPS
  888. CPPFLAG_CURL_STATICLIB
  889. USE_CPPFLAG_CURL_STATICLIB_FALSE
  890. USE_CPPFLAG_CURL_STATICLIB_TRUE
  891. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  892. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  893. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  894. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  895. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
  896. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
  897. LT_SYS_LIBRARY_PATH
  898. OTOOL64
  899. OTOOL
  900. LIPO
  901. NMEDIT
  902. DSYMUTIL
  903. MANIFEST_TOOL
  904. RANLIB
  905. ac_ct_AR
  906. LN_S
  907. NM
  908. ac_ct_DUMPBIN
  909. DUMPBIN
  910. LD
  911. FGREP
  912. LIBTOOL
  913. OBJDUMP
  914. DLLTOOL
  915. AS
  916. AR_FLAGS
  917. host_os
  918. host_vendor
  919. host_cpu
  920. host
  921. build_os
  922. build_vendor
  923. build_cpu
  924. build
  925. PKGADD_VENDOR
  926. PKGADD_NAME
  927. PKGADD_PKG
  928. VERSIONNUM
  929. CURLVERSION
  930. am__fastdepCC_FALSE
  931. am__fastdepCC_TRUE
  932. CCDEPMODE
  933. am__nodep
  934. AMDEPBACKSLASH
  935. AMDEP_FALSE
  936. AMDEP_TRUE
  937. am__include
  938. DEPDIR
  939. am__untar
  940. am__tar
  941. AMTAR
  942. am__leading_dot
  943. SET_MAKE
  944. AWK
  945. mkdir_p
  946. MKDIR_P
  947. INSTALL_STRIP_PROGRAM
  948. STRIP
  949. install_sh
  950. MAKEINFO
  951. AUTOHEADER
  952. AUTOMAKE
  953. AUTOCONF
  954. ACLOCAL
  955. VERSION
  956. PACKAGE
  957. CYGPATH_W
  958. am__isrc
  959. CODE_COVERAGE_RULES
  960. CODE_COVERAGE_LDFLAGS
  961. CODE_COVERAGE_LIBS
  962. CODE_COVERAGE_CXXFLAGS
  963. CODE_COVERAGE_CFLAGS
  964. CODE_COVERAGE_CPPFLAGS
  965. GENHTML
  966. LCOV
  967. GCOV
  968. CODE_COVERAGE_ENABLED
  969. CODE_COVERAGE_ENABLED_FALSE
  970. CODE_COVERAGE_ENABLED_TRUE
  971. CPP
  972. OBJEXT
  973. EXEEXT
  974. ac_ct_CC
  975. CPPFLAGS
  976. LDFLAGS
  977. CFLAGS
  978. CC
  979. INSTALL_DATA
  980. INSTALL_SCRIPT
  981. INSTALL_PROGRAM
  982. libext
  983. AR
  984. EGREP
  985. GREP
  986. SED
  987. CURL_CFLAG_EXTRAS
  988. CONFIGURE_OPTIONS
  989. AM_BACKSLASH
  990. AM_DEFAULT_VERBOSITY
  991. AM_DEFAULT_V
  992. AM_V
  993. MAINT
  994. MAINTAINER_MODE_FALSE
  995. MAINTAINER_MODE_TRUE
  996. target_alias
  997. host_alias
  998. build_alias
  999. LIBS
  1000. ECHO_T
  1001. ECHO_N
  1002. ECHO_C
  1003. DEFS
  1004. mandir
  1005. localedir
  1006. libdir
  1007. psdir
  1008. pdfdir
  1009. dvidir
  1010. htmldir
  1011. infodir
  1012. docdir
  1013. oldincludedir
  1014. includedir
  1015. runstatedir
  1016. localstatedir
  1017. sharedstatedir
  1018. sysconfdir
  1019. datadir
  1020. datarootdir
  1021. libexecdir
  1022. sbindir
  1023. bindir
  1024. program_transform_name
  1025. prefix
  1026. exec_prefix
  1027. PACKAGE_URL
  1028. PACKAGE_BUGREPORT
  1029. PACKAGE_STRING
  1030. PACKAGE_VERSION
  1031. PACKAGE_TARNAME
  1032. PACKAGE_NAME
  1033. SHELL
  1034. PATH_SEPARATOR
  1035. am__quote'
  1036. ac_subst_files=''
  1037. ac_user_opts='
  1038. enable_option_checking
  1039. enable_maintainer_mode
  1040. enable_silent_rules
  1041. enable_debug
  1042. enable_optimize
  1043. enable_warnings
  1044. enable_werror
  1045. enable_curldebug
  1046. enable_symbol_hiding
  1047. enable_hidden_symbols
  1048. enable_ares
  1049. enable_rt
  1050. with_gcov
  1051. enable_code_coverage
  1052. enable_dependency_tracking
  1053. enable_largefile
  1054. enable_shared
  1055. enable_static
  1056. with_pic
  1057. enable_fast_install
  1058. with_aix_soname
  1059. with_gnu_ld
  1060. with_sysroot
  1061. enable_libtool_lock
  1062. enable_http
  1063. enable_ftp
  1064. enable_file
  1065. enable_ldap
  1066. enable_ldaps
  1067. enable_rtsp
  1068. enable_proxy
  1069. enable_dict
  1070. enable_telnet
  1071. enable_tftp
  1072. enable_pop3
  1073. enable_imap
  1074. enable_smb
  1075. enable_smtp
  1076. enable_gopher
  1077. enable_manual
  1078. enable_libcurl_option
  1079. enable_libgcc
  1080. with_zlib
  1081. with_brotli
  1082. with_ldap_lib
  1083. with_lber_lib
  1084. enable_ipv6
  1085. with_gssapi_includes
  1086. with_gssapi_libs
  1087. with_gssapi
  1088. with_default_ssl_backend
  1089. with_winssl
  1090. with_darwinssl
  1091. with_ssl
  1092. with_egd_socket
  1093. with_random
  1094. with_gnutls
  1095. with_polarssl
  1096. with_mbedtls
  1097. with_cyassl
  1098. with_wolfssl
  1099. with_nss
  1100. with_axtls
  1101. with_ca_bundle
  1102. with_ca_path
  1103. with_ca_fallback
  1104. with_libpsl
  1105. with_libmetalink
  1106. with_libssh2
  1107. with_libssh
  1108. with_librtmp
  1109. enable_versioned_symbols
  1110. with_winidn
  1111. with_libidn2
  1112. with_nghttp2
  1113. with_zsh_functions_dir
  1114. enable_threaded_resolver
  1115. enable_pthreads
  1116. enable_verbose
  1117. enable_sspi
  1118. enable_crypto_auth
  1119. enable_ntlm_wb
  1120. enable_tls_srp
  1121. enable_unix_sockets
  1122. enable_cookies
  1123. '
  1124. ac_precious_vars='build_alias
  1125. host_alias
  1126. target_alias
  1127. CC
  1128. CFLAGS
  1129. LDFLAGS
  1130. LIBS
  1131. CPPFLAGS
  1132. CPP
  1133. LT_SYS_LIBRARY_PATH'
  1134. ac_subdirs_all='ares'
  1135. # Initialize some variables set by options.
  1136. ac_init_help=
  1137. ac_init_version=false
  1138. ac_unrecognized_opts=
  1139. ac_unrecognized_sep=
  1140. # The variables have the same names as the options, with
  1141. # dashes changed to underlines.
  1142. cache_file=/dev/null
  1143. exec_prefix=NONE
  1144. no_create=
  1145. no_recursion=
  1146. prefix=NONE
  1147. program_prefix=NONE
  1148. program_suffix=NONE
  1149. program_transform_name=s,x,x,
  1150. silent=
  1151. site=
  1152. srcdir=
  1153. verbose=
  1154. x_includes=NONE
  1155. x_libraries=NONE
  1156. # Installation directory options.
  1157. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1158. # and all the variables that are supposed to be based on exec_prefix
  1159. # by default will actually change.
  1160. # Use braces instead of parens because sh, perl, etc. also accept them.
  1161. # (The list follows the same order as the GNU Coding Standards.)
  1162. bindir='${exec_prefix}/bin'
  1163. sbindir='${exec_prefix}/sbin'
  1164. libexecdir='${exec_prefix}/libexec'
  1165. datarootdir='${prefix}/share'
  1166. datadir='${datarootdir}'
  1167. sysconfdir='${prefix}/etc'
  1168. sharedstatedir='${prefix}/com'
  1169. localstatedir='${prefix}/var'
  1170. runstatedir='${localstatedir}/run'
  1171. includedir='${prefix}/include'
  1172. oldincludedir='/usr/include'
  1173. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1174. infodir='${datarootdir}/info'
  1175. htmldir='${docdir}'
  1176. dvidir='${docdir}'
  1177. pdfdir='${docdir}'
  1178. psdir='${docdir}'
  1179. libdir='${exec_prefix}/lib'
  1180. localedir='${datarootdir}/locale'
  1181. mandir='${datarootdir}/man'
  1182. ac_prev=
  1183. ac_dashdash=
  1184. for ac_option
  1185. do
  1186. # If the previous option needs an argument, assign it.
  1187. if test -n "$ac_prev"; then
  1188. eval $ac_prev=\$ac_option
  1189. ac_prev=
  1190. continue
  1191. fi
  1192. case $ac_option in
  1193. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1194. *=) ac_optarg= ;;
  1195. *) ac_optarg=yes ;;
  1196. esac
  1197. # Accept the important Cygnus configure options, so we can diagnose typos.
  1198. case $ac_dashdash$ac_option in
  1199. --)
  1200. ac_dashdash=yes ;;
  1201. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1202. ac_prev=bindir ;;
  1203. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1204. bindir=$ac_optarg ;;
  1205. -build | --build | --buil | --bui | --bu)
  1206. ac_prev=build_alias ;;
  1207. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1208. build_alias=$ac_optarg ;;
  1209. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1210. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1211. ac_prev=cache_file ;;
  1212. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1213. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1214. cache_file=$ac_optarg ;;
  1215. --config-cache | -C)
  1216. cache_file=config.cache ;;
  1217. -datadir | --datadir | --datadi | --datad)
  1218. ac_prev=datadir ;;
  1219. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1220. datadir=$ac_optarg ;;
  1221. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1222. | --dataroo | --dataro | --datar)
  1223. ac_prev=datarootdir ;;
  1224. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1225. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1226. datarootdir=$ac_optarg ;;
  1227. -disable-* | --disable-*)
  1228. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1229. # Reject names that are not valid shell variable names.
  1230. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1231. as_fn_error $? "invalid feature name: $ac_useropt"
  1232. ac_useropt_orig=$ac_useropt
  1233. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1234. case $ac_user_opts in
  1235. *"
  1236. "enable_$ac_useropt"
  1237. "*) ;;
  1238. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1239. ac_unrecognized_sep=', ';;
  1240. esac
  1241. eval enable_$ac_useropt=no ;;
  1242. -docdir | --docdir | --docdi | --doc | --do)
  1243. ac_prev=docdir ;;
  1244. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1245. docdir=$ac_optarg ;;
  1246. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1247. ac_prev=dvidir ;;
  1248. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1249. dvidir=$ac_optarg ;;
  1250. -enable-* | --enable-*)
  1251. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1252. # Reject names that are not valid shell variable names.
  1253. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1254. as_fn_error $? "invalid feature name: $ac_useropt"
  1255. ac_useropt_orig=$ac_useropt
  1256. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1257. case $ac_user_opts in
  1258. *"
  1259. "enable_$ac_useropt"
  1260. "*) ;;
  1261. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1262. ac_unrecognized_sep=', ';;
  1263. esac
  1264. eval enable_$ac_useropt=\$ac_optarg ;;
  1265. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1266. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1267. | --exec | --exe | --ex)
  1268. ac_prev=exec_prefix ;;
  1269. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1270. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1271. | --exec=* | --exe=* | --ex=*)
  1272. exec_prefix=$ac_optarg ;;
  1273. -gas | --gas | --ga | --g)
  1274. # Obsolete; use --with-gas.
  1275. with_gas=yes ;;
  1276. -help | --help | --hel | --he | -h)
  1277. ac_init_help=long ;;
  1278. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1279. ac_init_help=recursive ;;
  1280. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1281. ac_init_help=short ;;
  1282. -host | --host | --hos | --ho)
  1283. ac_prev=host_alias ;;
  1284. -host=* | --host=* | --hos=* | --ho=*)
  1285. host_alias=$ac_optarg ;;
  1286. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1287. ac_prev=htmldir ;;
  1288. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1289. | --ht=*)
  1290. htmldir=$ac_optarg ;;
  1291. -includedir | --includedir | --includedi | --included | --include \
  1292. | --includ | --inclu | --incl | --inc)
  1293. ac_prev=includedir ;;
  1294. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1295. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1296. includedir=$ac_optarg ;;
  1297. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1298. ac_prev=infodir ;;
  1299. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1300. infodir=$ac_optarg ;;
  1301. -libdir | --libdir | --libdi | --libd)
  1302. ac_prev=libdir ;;
  1303. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1304. libdir=$ac_optarg ;;
  1305. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1306. | --libexe | --libex | --libe)
  1307. ac_prev=libexecdir ;;
  1308. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1309. | --libexe=* | --libex=* | --libe=*)
  1310. libexecdir=$ac_optarg ;;
  1311. -localedir | --localedir | --localedi | --localed | --locale)
  1312. ac_prev=localedir ;;
  1313. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1314. localedir=$ac_optarg ;;
  1315. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1316. | --localstate | --localstat | --localsta | --localst | --locals)
  1317. ac_prev=localstatedir ;;
  1318. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1319. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1320. localstatedir=$ac_optarg ;;
  1321. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1322. ac_prev=mandir ;;
  1323. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1324. mandir=$ac_optarg ;;
  1325. -nfp | --nfp | --nf)
  1326. # Obsolete; use --without-fp.
  1327. with_fp=no ;;
  1328. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1329. | --no-cr | --no-c | -n)
  1330. no_create=yes ;;
  1331. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1332. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1333. no_recursion=yes ;;
  1334. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1335. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1336. | --oldin | --oldi | --old | --ol | --o)
  1337. ac_prev=oldincludedir ;;
  1338. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1339. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1340. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1341. oldincludedir=$ac_optarg ;;
  1342. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1343. ac_prev=prefix ;;
  1344. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1345. prefix=$ac_optarg ;;
  1346. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1347. | --program-pre | --program-pr | --program-p)
  1348. ac_prev=program_prefix ;;
  1349. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1350. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1351. program_prefix=$ac_optarg ;;
  1352. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1353. | --program-suf | --program-su | --program-s)
  1354. ac_prev=program_suffix ;;
  1355. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1356. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1357. program_suffix=$ac_optarg ;;
  1358. -program-transform-name | --program-transform-name \
  1359. | --program-transform-nam | --program-transform-na \
  1360. | --program-transform-n | --program-transform- \
  1361. | --program-transform | --program-transfor \
  1362. | --program-transfo | --program-transf \
  1363. | --program-trans | --program-tran \
  1364. | --progr-tra | --program-tr | --program-t)
  1365. ac_prev=program_transform_name ;;
  1366. -program-transform-name=* | --program-transform-name=* \
  1367. | --program-transform-nam=* | --program-transform-na=* \
  1368. | --program-transform-n=* | --program-transform-=* \
  1369. | --program-transform=* | --program-transfor=* \
  1370. | --program-transfo=* | --program-transf=* \
  1371. | --program-trans=* | --program-tran=* \
  1372. | --progr-tra=* | --program-tr=* | --program-t=*)
  1373. program_transform_name=$ac_optarg ;;
  1374. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1375. ac_prev=pdfdir ;;
  1376. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1377. pdfdir=$ac_optarg ;;
  1378. -psdir | --psdir | --psdi | --psd | --ps)
  1379. ac_prev=psdir ;;
  1380. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1381. psdir=$ac_optarg ;;
  1382. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1383. | -silent | --silent | --silen | --sile | --sil)
  1384. silent=yes ;;
  1385. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1386. | --runstate | --runstat | --runsta | --runst | --runs \
  1387. | --run | --ru | --r)
  1388. ac_prev=runstatedir ;;
  1389. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1390. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1391. | --run=* | --ru=* | --r=*)
  1392. runstatedir=$ac_optarg ;;
  1393. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1394. ac_prev=sbindir ;;
  1395. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1396. | --sbi=* | --sb=*)
  1397. sbindir=$ac_optarg ;;
  1398. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1399. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1400. | --sharedst | --shareds | --shared | --share | --shar \
  1401. | --sha | --sh)
  1402. ac_prev=sharedstatedir ;;
  1403. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1404. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1405. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1406. | --sha=* | --sh=*)
  1407. sharedstatedir=$ac_optarg ;;
  1408. -site | --site | --sit)
  1409. ac_prev=site ;;
  1410. -site=* | --site=* | --sit=*)
  1411. site=$ac_optarg ;;
  1412. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1413. ac_prev=srcdir ;;
  1414. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1415. srcdir=$ac_optarg ;;
  1416. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1417. | --syscon | --sysco | --sysc | --sys | --sy)
  1418. ac_prev=sysconfdir ;;
  1419. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1420. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1421. sysconfdir=$ac_optarg ;;
  1422. -target | --target | --targe | --targ | --tar | --ta | --t)
  1423. ac_prev=target_alias ;;
  1424. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1425. target_alias=$ac_optarg ;;
  1426. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1427. verbose=yes ;;
  1428. -version | --version | --versio | --versi | --vers | -V)
  1429. ac_init_version=: ;;
  1430. -with-* | --with-*)
  1431. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1432. # Reject names that are not valid shell variable names.
  1433. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1434. as_fn_error $? "invalid package name: $ac_useropt"
  1435. ac_useropt_orig=$ac_useropt
  1436. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1437. case $ac_user_opts in
  1438. *"
  1439. "with_$ac_useropt"
  1440. "*) ;;
  1441. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1442. ac_unrecognized_sep=', ';;
  1443. esac
  1444. eval with_$ac_useropt=\$ac_optarg ;;
  1445. -without-* | --without-*)
  1446. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1447. # Reject names that are not valid shell variable names.
  1448. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1449. as_fn_error $? "invalid package name: $ac_useropt"
  1450. ac_useropt_orig=$ac_useropt
  1451. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1452. case $ac_user_opts in
  1453. *"
  1454. "with_$ac_useropt"
  1455. "*) ;;
  1456. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1457. ac_unrecognized_sep=', ';;
  1458. esac
  1459. eval with_$ac_useropt=no ;;
  1460. --x)
  1461. # Obsolete; use --with-x.
  1462. with_x=yes ;;
  1463. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1464. | --x-incl | --x-inc | --x-in | --x-i)
  1465. ac_prev=x_includes ;;
  1466. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1467. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1468. x_includes=$ac_optarg ;;
  1469. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1470. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1471. ac_prev=x_libraries ;;
  1472. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1473. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1474. x_libraries=$ac_optarg ;;
  1475. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1476. Try \`$0 --help' for more information"
  1477. ;;
  1478. *=*)
  1479. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1480. # Reject names that are not valid shell variable names.
  1481. case $ac_envvar in #(
  1482. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1483. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1484. esac
  1485. eval $ac_envvar=\$ac_optarg
  1486. export $ac_envvar ;;
  1487. *)
  1488. # FIXME: should be removed in autoconf 3.0.
  1489. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1490. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1491. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1492. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1493. ;;
  1494. esac
  1495. done
  1496. if test -n "$ac_prev"; then
  1497. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1498. as_fn_error $? "missing argument to $ac_option"
  1499. fi
  1500. if test -n "$ac_unrecognized_opts"; then
  1501. case $enable_option_checking in
  1502. no) ;;
  1503. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1504. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1505. esac
  1506. fi
  1507. # Check all directory arguments for consistency.
  1508. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1509. datadir sysconfdir sharedstatedir localstatedir includedir \
  1510. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1511. libdir localedir mandir runstatedir
  1512. do
  1513. eval ac_val=\$$ac_var
  1514. # Remove trailing slashes.
  1515. case $ac_val in
  1516. */ )
  1517. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1518. eval $ac_var=\$ac_val;;
  1519. esac
  1520. # Be sure to have absolute directory names.
  1521. case $ac_val in
  1522. [\\/$]* | ?:[\\/]* ) continue;;
  1523. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1524. esac
  1525. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1526. done
  1527. # There might be people who depend on the old broken behavior: `$host'
  1528. # used to hold the argument of --host etc.
  1529. # FIXME: To remove some day.
  1530. build=$build_alias
  1531. host=$host_alias
  1532. target=$target_alias
  1533. # FIXME: To remove some day.
  1534. if test "x$host_alias" != x; then
  1535. if test "x$build_alias" = x; then
  1536. cross_compiling=maybe
  1537. elif test "x$build_alias" != "x$host_alias"; then
  1538. cross_compiling=yes
  1539. fi
  1540. fi
  1541. ac_tool_prefix=
  1542. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1543. test "$silent" = yes && exec 6>/dev/null
  1544. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1545. ac_ls_di=`ls -di .` &&
  1546. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1547. as_fn_error $? "working directory cannot be determined"
  1548. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1549. as_fn_error $? "pwd does not report name of working directory"
  1550. # Find the source files, if location was not specified.
  1551. if test -z "$srcdir"; then
  1552. ac_srcdir_defaulted=yes
  1553. # Try the directory containing this script, then the parent directory.
  1554. ac_confdir=`$as_dirname -- "$as_myself" ||
  1555. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1556. X"$as_myself" : 'X\(//\)[^/]' \| \
  1557. X"$as_myself" : 'X\(//\)$' \| \
  1558. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1559. $as_echo X"$as_myself" |
  1560. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1561. s//\1/
  1562. q
  1563. }
  1564. /^X\(\/\/\)[^/].*/{
  1565. s//\1/
  1566. q
  1567. }
  1568. /^X\(\/\/\)$/{
  1569. s//\1/
  1570. q
  1571. }
  1572. /^X\(\/\).*/{
  1573. s//\1/
  1574. q
  1575. }
  1576. s/.*/./; q'`
  1577. srcdir=$ac_confdir
  1578. if test ! -r "$srcdir/$ac_unique_file"; then
  1579. srcdir=..
  1580. fi
  1581. else
  1582. ac_srcdir_defaulted=no
  1583. fi
  1584. if test ! -r "$srcdir/$ac_unique_file"; then
  1585. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1586. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1587. fi
  1588. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1589. ac_abs_confdir=`(
  1590. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1591. pwd)`
  1592. # When building in place, set srcdir=.
  1593. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1594. srcdir=.
  1595. fi
  1596. # Remove unnecessary trailing slashes from srcdir.
  1597. # Double slashes in file names in object file debugging info
  1598. # mess up M-x gdb in Emacs.
  1599. case $srcdir in
  1600. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1601. esac
  1602. for ac_var in $ac_precious_vars; do
  1603. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1604. eval ac_env_${ac_var}_value=\$${ac_var}
  1605. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1606. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1607. done
  1608. #
  1609. # Report the --help message.
  1610. #
  1611. if test "$ac_init_help" = "long"; then
  1612. # Omit some internal or obsolete options to make the list less imposing.
  1613. # This message is too long to be a string in the A/UX 3.1 sh.
  1614. cat <<_ACEOF
  1615. \`configure' configures curl - to adapt to many kinds of systems.
  1616. Usage: $0 [OPTION]... [VAR=VALUE]...
  1617. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1618. VAR=VALUE. See below for descriptions of some of the useful variables.
  1619. Defaults for the options are specified in brackets.
  1620. Configuration:
  1621. -h, --help display this help and exit
  1622. --help=short display options specific to this package
  1623. --help=recursive display the short help of all the included packages
  1624. -V, --version display version information and exit
  1625. -q, --quiet, --silent do not print \`checking ...' messages
  1626. --cache-file=FILE cache test results in FILE [disabled]
  1627. -C, --config-cache alias for \`--cache-file=config.cache'
  1628. -n, --no-create do not create output files
  1629. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1630. Installation directories:
  1631. --prefix=PREFIX install architecture-independent files in PREFIX
  1632. [$ac_default_prefix]
  1633. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1634. [PREFIX]
  1635. By default, \`make install' will install all the files in
  1636. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1637. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1638. for instance \`--prefix=\$HOME'.
  1639. For better control, use the options below.
  1640. Fine tuning of the installation directories:
  1641. --bindir=DIR user executables [EPREFIX/bin]
  1642. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1643. --libexecdir=DIR program executables [EPREFIX/libexec]
  1644. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1645. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1646. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1647. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1648. --libdir=DIR object code libraries [EPREFIX/lib]
  1649. --includedir=DIR C header files [PREFIX/include]
  1650. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1651. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1652. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1653. --infodir=DIR info documentation [DATAROOTDIR/info]
  1654. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1655. --mandir=DIR man documentation [DATAROOTDIR/man]
  1656. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1657. --htmldir=DIR html documentation [DOCDIR]
  1658. --dvidir=DIR dvi documentation [DOCDIR]
  1659. --pdfdir=DIR pdf documentation [DOCDIR]
  1660. --psdir=DIR ps documentation [DOCDIR]
  1661. _ACEOF
  1662. cat <<\_ACEOF
  1663. Program names:
  1664. --program-prefix=PREFIX prepend PREFIX to installed program names
  1665. --program-suffix=SUFFIX append SUFFIX to installed program names
  1666. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1667. System types:
  1668. --build=BUILD configure for building on BUILD [guessed]
  1669. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1670. _ACEOF
  1671. fi
  1672. if test -n "$ac_init_help"; then
  1673. case $ac_init_help in
  1674. short | recursive ) echo "Configuration of curl -:";;
  1675. esac
  1676. cat <<\_ACEOF
  1677. Optional Features:
  1678. --disable-option-checking ignore unrecognized --enable/--with options
  1679. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1680. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1681. --enable-maintainer-mode
  1682. enable make rules and dependencies not useful (and
  1683. sometimes confusing) to the casual installer
  1684. --enable-silent-rules less verbose build output (undo: "make V=1")
  1685. --disable-silent-rules verbose build output (undo: "make V=0")
  1686. --enable-debug Enable debug build options
  1687. --disable-debug Disable debug build options
  1688. --enable-optimize Enable compiler optimizations
  1689. --disable-optimize Disable compiler optimizations
  1690. --enable-warnings Enable strict compiler warnings
  1691. --disable-warnings Disable strict compiler warnings
  1692. --enable-werror Enable compiler warnings as errors
  1693. --disable-werror Disable compiler warnings as errors
  1694. --enable-curldebug Enable curl debug memory tracking
  1695. --disable-curldebug Disable curl debug memory tracking
  1696. --enable-symbol-hiding Enable hiding of library internal symbols
  1697. --disable-symbol-hiding Disable hiding of library internal symbols
  1698. --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
  1699. --disable-hidden-symbols
  1700. To be deprecated, use --disable-symbol-hiding
  1701. --enable-ares[=PATH] Enable c-ares for DNS lookups
  1702. --disable-ares Disable c-ares for DNS lookups
  1703. --disable-rt disable dependency on -lrt
  1704. --enable-code-coverage Whether to enable code coverage support
  1705. --enable-dependency-tracking
  1706. do not reject slow dependency extractors
  1707. --disable-dependency-tracking
  1708. speeds up one-time build
  1709. --disable-largefile omit support for large files
  1710. --enable-shared[=PKGS] build shared libraries [default=yes]
  1711. --enable-static[=PKGS] build static libraries [default=yes]
  1712. --enable-fast-install[=PKGS]
  1713. optimize for fast installation [default=yes]
  1714. --disable-libtool-lock avoid locking (might break parallel builds)
  1715. --enable-http Enable HTTP support
  1716. --disable-http Disable HTTP support
  1717. --enable-ftp Enable FTP support
  1718. --disable-ftp Disable FTP support
  1719. --enable-file Enable FILE support
  1720. --disable-file Disable FILE support
  1721. --enable-ldap Enable LDAP support
  1722. --disable-ldap Disable LDAP support
  1723. --enable-ldaps Enable LDAPS support
  1724. --disable-ldaps Disable LDAPS support
  1725. --enable-rtsp Enable RTSP support
  1726. --disable-rtsp Disable RTSP support
  1727. --enable-proxy Enable proxy support
  1728. --disable-proxy Disable proxy support
  1729. --enable-dict Enable DICT support
  1730. --disable-dict Disable DICT support
  1731. --enable-telnet Enable TELNET support
  1732. --disable-telnet Disable TELNET support
  1733. --enable-tftp Enable TFTP support
  1734. --disable-tftp Disable TFTP support
  1735. --enable-pop3 Enable POP3 support
  1736. --disable-pop3 Disable POP3 support
  1737. --enable-imap Enable IMAP support
  1738. --disable-imap Disable IMAP support
  1739. --enable-smb Enable SMB/CIFS support
  1740. --disable-smb Disable SMB/CIFS support
  1741. --enable-smtp Enable SMTP support
  1742. --disable-smtp Disable SMTP support
  1743. --enable-gopher Enable Gopher support
  1744. --disable-gopher Disable Gopher support
  1745. --enable-manual Enable built-in manual
  1746. --disable-manual Disable built-in manual
  1747. --enable-libcurl-option Enable --libcurl C code generation support
  1748. --disable-libcurl-option
  1749. Disable --libcurl C code generation support
  1750. --enable-libgcc use libgcc when linking
  1751. --enable-ipv6 Enable IPv6 (with IPv4) support
  1752. --disable-ipv6 Disable IPv6 support
  1753. --enable-versioned-symbols
  1754. Enable versioned symbols in shared library
  1755. --disable-versioned-symbols
  1756. Disable versioned symbols in shared library
  1757. --enable-threaded-resolver
  1758. Enable threaded resolver
  1759. --disable-threaded-resolver
  1760. Disable threaded resolver
  1761. --enable-pthreads Enable POSIX threads (default for threaded resolver)
  1762. --disable-pthreads Disable POSIX threads
  1763. --enable-verbose Enable verbose strings
  1764. --disable-verbose Disable verbose strings
  1765. --enable-sspi Enable SSPI
  1766. --disable-sspi Disable SSPI
  1767. --enable-crypto-auth Enable cryptographic authentication
  1768. --disable-crypto-auth Disable cryptographic authentication
  1769. --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
  1770. helper, where FILE is ntlm_auth's absolute filename
  1771. (default: /usr/bin/ntlm_auth)
  1772. --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
  1773. helper
  1774. --enable-tls-srp Enable TLS-SRP authentication
  1775. --disable-tls-srp Disable TLS-SRP authentication
  1776. --enable-unix-sockets Enable Unix domain sockets
  1777. --disable-unix-sockets Disable Unix domain sockets
  1778. --enable-cookies Enable cookies support
  1779. --disable-cookies Disable cookies support
  1780. Optional Packages:
  1781. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1782. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1783. --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
  1784. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1785. both]
  1786. --with-aix-soname=aix|svr4|both
  1787. shared library versioning (aka "SONAME") variant to
  1788. provide on AIX, [default=aix].
  1789. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1790. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1791. compiler's sysroot if not specified).
  1792. --with-zlib=PATH search for zlib in PATH
  1793. --without-zlib disable use of zlib
  1794. --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
  1795. installation; when possible, set the PKG_CONFIG_PATH
  1796. environment variable instead of using this option
  1797. --without-brotli disable BROTLI
  1798. --with-ldap-lib=libname Specify name of ldap lib file
  1799. --with-lber-lib=libname Specify name of lber lib file
  1800. --with-gssapi-includes=DIR
  1801. Specify location of GSS-API headers
  1802. --with-gssapi-libs=DIR Specify location of GSS-API libs
  1803. --with-gssapi=DIR Where to look for GSS-API
  1804. --with-default-ssl-backend=NAME
  1805. Use NAME as default SSL backend
  1806. --without-default-ssl-backend
  1807. Use implicit default SSL backend
  1808. --with-winssl enable Windows native SSL/TLS
  1809. --without-winssl disable Windows native SSL/TLS
  1810. --with-darwinssl enable Apple OS native SSL/TLS
  1811. --without-darwinssl disable Apple OS native SSL/TLS
  1812. --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1813. installation (default: /usr/local/ssl); when
  1814. possible, set the PKG_CONFIG_PATH environment
  1815. variable instead of using this option
  1816. --without-ssl disable OpenSSL
  1817. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1818. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1819. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1820. installation root
  1821. --without-gnutls disable GnuTLS detection
  1822. --with-polarssl=PATH where to look for PolarSSL, PATH points to the
  1823. installation root
  1824. --without-polarssl disable PolarSSL detection
  1825. --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
  1826. installation root
  1827. --without-mbedtls disable mbedTLS detection
  1828. --with-cyassl=PATH where to look for CyaSSL, PATH points to the
  1829. installation root (default: system lib default)
  1830. --without-cyassl disable CyaSSL detection
  1831. --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
  1832. installation root (default: system lib default)
  1833. --without-wolfssl disable WolfSSL detection
  1834. --with-nss=PATH where to look for NSS, PATH points to the
  1835. installation root
  1836. --without-nss disable NSS detection
  1837. --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
  1838. installation prefix (default: /usr/local). Ignored
  1839. if another SSL engine is selected.
  1840. --without-axtls disable axTLS
  1841. --with-ca-bundle=FILE Path to a file containing CA certificates (example:
  1842. /etc/ca-bundle.crt)
  1843. --without-ca-bundle Don't use a default CA bundle
  1844. --with-ca-path=DIRECTORY
  1845. Path to a directory containing CA certificates
  1846. stored individually, with their filenames in a hash
  1847. format. This option can be used with OpenSSL, GnuTLS
  1848. and PolarSSL backends. Refer to OpenSSL c_rehash for
  1849. details. (example: /etc/certificates)
  1850. --without-ca-path Don't use a default CA path
  1851. --with-ca-fallback Use the built in CA store of the SSL library
  1852. --without-ca-fallback Don't use the built in CA store of the SSL library
  1853. --without-libpsl disable support for libpsl cookie checking
  1854. --with-libmetalink=PATH where to look for libmetalink, PATH points to the
  1855. installation root
  1856. --without-libmetalink disable libmetalink detection
  1857. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1858. LIBSSH2 installation; when possible, set the
  1859. PKG_CONFIG_PATH environment variable instead of
  1860. using this option
  1861. --with-libssh2 enable LIBSSH2
  1862. --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
  1863. installation; when possible, set the PKG_CONFIG_PATH
  1864. environment variable instead of using this option
  1865. --with-libssh enable LIBSSH
  1866. --with-librtmp=PATH Where to look for librtmp, PATH points to the
  1867. LIBRTMP installation; when possible, set the
  1868. PKG_CONFIG_PATH environment variable instead of
  1869. using this option
  1870. --without-librtmp disable LIBRTMP
  1871. --with-winidn=PATH enable Windows native IDN
  1872. --without-winidn disable Windows native IDN
  1873. --with-libidn2=PATH Enable libidn2 usage
  1874. --without-libidn2 Disable libidn2 usage
  1875. --with-nghttp2=PATH Enable nghttp2 usage
  1876. --without-nghttp2 Disable nghttp2 usage
  1877. --with-zsh-functions-dir=PATH
  1878. Install zsh completions to PATH
  1879. --without-zsh-functions-dir
  1880. Do not install zsh completions
  1881. Some influential environment variables:
  1882. CC C compiler command
  1883. CFLAGS C compiler flags
  1884. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1885. nonstandard directory <lib dir>
  1886. LIBS libraries to pass to the linker, e.g. -l<library>
  1887. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1888. you have headers in a nonstandard directory <include dir>
  1889. CPP C preprocessor
  1890. LT_SYS_LIBRARY_PATH
  1891. User-defined run-time library search path.
  1892. Use these variables to override the choices made by `configure' or to help
  1893. it to find libraries and programs with nonstandard names/locations.
  1894. Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
  1895. _ACEOF
  1896. ac_status=$?
  1897. fi
  1898. if test "$ac_init_help" = "recursive"; then
  1899. # If there are subdirs, report their specific --help.
  1900. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1901. test -d "$ac_dir" ||
  1902. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1903. continue
  1904. ac_builddir=.
  1905. case "$ac_dir" in
  1906. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1907. *)
  1908. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1909. # A ".." for each directory in $ac_dir_suffix.
  1910. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1911. case $ac_top_builddir_sub in
  1912. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1913. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1914. esac ;;
  1915. esac
  1916. ac_abs_top_builddir=$ac_pwd
  1917. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1918. # for backward compatibility:
  1919. ac_top_builddir=$ac_top_build_prefix
  1920. case $srcdir in
  1921. .) # We are building in place.
  1922. ac_srcdir=.
  1923. ac_top_srcdir=$ac_top_builddir_sub
  1924. ac_abs_top_srcdir=$ac_pwd ;;
  1925. [\\/]* | ?:[\\/]* ) # Absolute name.
  1926. ac_srcdir=$srcdir$ac_dir_suffix;
  1927. ac_top_srcdir=$srcdir
  1928. ac_abs_top_srcdir=$srcdir ;;
  1929. *) # Relative name.
  1930. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1931. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1932. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1933. esac
  1934. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1935. cd "$ac_dir" || { ac_status=$?; continue; }
  1936. # Check for guested configure.
  1937. if test -f "$ac_srcdir/configure.gnu"; then
  1938. echo &&
  1939. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1940. elif test -f "$ac_srcdir/configure"; then
  1941. echo &&
  1942. $SHELL "$ac_srcdir/configure" --help=recursive
  1943. else
  1944. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1945. fi || ac_status=$?
  1946. cd "$ac_pwd" || { ac_status=$?; break; }
  1947. done
  1948. fi
  1949. test -n "$ac_init_help" && exit $ac_status
  1950. if $ac_init_version; then
  1951. cat <<\_ACEOF
  1952. curl configure -
  1953. generated by GNU Autoconf 2.69
  1954. Copyright (C) 2012 Free Software Foundation, Inc.
  1955. This configure script is free software; the Free Software Foundation
  1956. gives unlimited permission to copy, distribute and modify it.
  1957. Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
  1958. This configure script may be copied, distributed and modified under the
  1959. terms of the curl license; see COPYING for more details
  1960. _ACEOF
  1961. exit
  1962. fi
  1963. ## ------------------------ ##
  1964. ## Autoconf initialization. ##
  1965. ## ------------------------ ##
  1966. # ac_fn_c_try_compile LINENO
  1967. # --------------------------
  1968. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1969. ac_fn_c_try_compile ()
  1970. {
  1971. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1972. rm -f conftest.$ac_objext
  1973. if { { ac_try="$ac_compile"
  1974. case "(($ac_try" in
  1975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1976. *) ac_try_echo=$ac_try;;
  1977. esac
  1978. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1979. $as_echo "$ac_try_echo"; } >&5
  1980. (eval "$ac_compile") 2>conftest.err
  1981. ac_status=$?
  1982. if test -s conftest.err; then
  1983. grep -v '^ *+' conftest.err >conftest.er1
  1984. cat conftest.er1 >&5
  1985. mv -f conftest.er1 conftest.err
  1986. fi
  1987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1988. test $ac_status = 0; } && {
  1989. test -z "$ac_c_werror_flag" ||
  1990. test ! -s conftest.err
  1991. } && test -s conftest.$ac_objext; then :
  1992. ac_retval=0
  1993. else
  1994. $as_echo "$as_me: failed program was:" >&5
  1995. sed 's/^/| /' conftest.$ac_ext >&5
  1996. ac_retval=1
  1997. fi
  1998. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1999. as_fn_set_status $ac_retval
  2000. } # ac_fn_c_try_compile
  2001. # ac_fn_c_try_cpp LINENO
  2002. # ----------------------
  2003. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2004. ac_fn_c_try_cpp ()
  2005. {
  2006. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2007. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2008. case "(($ac_try" in
  2009. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2010. *) ac_try_echo=$ac_try;;
  2011. esac
  2012. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2013. $as_echo "$ac_try_echo"; } >&5
  2014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2015. ac_status=$?
  2016. if test -s conftest.err; then
  2017. grep -v '^ *+' conftest.err >conftest.er1
  2018. cat conftest.er1 >&5
  2019. mv -f conftest.er1 conftest.err
  2020. fi
  2021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2022. test $ac_status = 0; } > conftest.i && {
  2023. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2024. test ! -s conftest.err
  2025. }; then :
  2026. ac_retval=0
  2027. else
  2028. $as_echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. ac_retval=1
  2031. fi
  2032. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2033. as_fn_set_status $ac_retval
  2034. } # ac_fn_c_try_cpp
  2035. # ac_fn_c_try_link LINENO
  2036. # -----------------------
  2037. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2038. ac_fn_c_try_link ()
  2039. {
  2040. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2041. rm -f conftest.$ac_objext conftest$ac_exeext
  2042. if { { ac_try="$ac_link"
  2043. case "(($ac_try" in
  2044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2045. *) ac_try_echo=$ac_try;;
  2046. esac
  2047. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2048. $as_echo "$ac_try_echo"; } >&5
  2049. (eval "$ac_link") 2>conftest.err
  2050. ac_status=$?
  2051. if test -s conftest.err; then
  2052. grep -v '^ *+' conftest.err >conftest.er1
  2053. cat conftest.er1 >&5
  2054. mv -f conftest.er1 conftest.err
  2055. fi
  2056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2057. test $ac_status = 0; } && {
  2058. test -z "$ac_c_werror_flag" ||
  2059. test ! -s conftest.err
  2060. } && test -s conftest$ac_exeext && {
  2061. test "$cross_compiling" = yes ||
  2062. test -x conftest$ac_exeext
  2063. }; then :
  2064. ac_retval=0
  2065. else
  2066. $as_echo "$as_me: failed program was:" >&5
  2067. sed 's/^/| /' conftest.$ac_ext >&5
  2068. ac_retval=1
  2069. fi
  2070. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2071. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2072. # interfere with the next link command; also delete a directory that is
  2073. # left behind by Apple's compiler. We do this before executing the actions.
  2074. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2075. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2076. as_fn_set_status $ac_retval
  2077. } # ac_fn_c_try_link
  2078. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2079. # -------------------------------------------------------
  2080. # Tests whether HEADER exists and can be compiled using the include files in
  2081. # INCLUDES, setting the cache variable VAR accordingly.
  2082. ac_fn_c_check_header_compile ()
  2083. {
  2084. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2086. $as_echo_n "checking for $2... " >&6; }
  2087. if eval \${$3+:} false; then :
  2088. $as_echo_n "(cached) " >&6
  2089. else
  2090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2091. /* end confdefs.h. */
  2092. $4
  2093. #include <$2>
  2094. _ACEOF
  2095. if ac_fn_c_try_compile "$LINENO"; then :
  2096. eval "$3=yes"
  2097. else
  2098. eval "$3=no"
  2099. fi
  2100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2101. fi
  2102. eval ac_res=\$$3
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2104. $as_echo "$ac_res" >&6; }
  2105. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2106. } # ac_fn_c_check_header_compile
  2107. # ac_fn_c_try_run LINENO
  2108. # ----------------------
  2109. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2110. # that executables *can* be run.
  2111. ac_fn_c_try_run ()
  2112. {
  2113. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2114. if { { ac_try="$ac_link"
  2115. case "(($ac_try" in
  2116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2117. *) ac_try_echo=$ac_try;;
  2118. esac
  2119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2120. $as_echo "$ac_try_echo"; } >&5
  2121. (eval "$ac_link") 2>&5
  2122. ac_status=$?
  2123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2124. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2125. { { case "(($ac_try" in
  2126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2127. *) ac_try_echo=$ac_try;;
  2128. esac
  2129. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2130. $as_echo "$ac_try_echo"; } >&5
  2131. (eval "$ac_try") 2>&5
  2132. ac_status=$?
  2133. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2134. test $ac_status = 0; }; }; then :
  2135. ac_retval=0
  2136. else
  2137. $as_echo "$as_me: program exited with status $ac_status" >&5
  2138. $as_echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. ac_retval=$ac_status
  2141. fi
  2142. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2143. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2144. as_fn_set_status $ac_retval
  2145. } # ac_fn_c_try_run
  2146. # ac_fn_c_check_func LINENO FUNC VAR
  2147. # ----------------------------------
  2148. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2149. ac_fn_c_check_func ()
  2150. {
  2151. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2153. $as_echo_n "checking for $2... " >&6; }
  2154. if eval \${$3+:} false; then :
  2155. $as_echo_n "(cached) " >&6
  2156. else
  2157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2158. /* end confdefs.h. */
  2159. #define $2 innocuous_$2
  2160. #ifdef __STDC__
  2161. # include <limits.h>
  2162. #else
  2163. # include <assert.h>
  2164. #endif
  2165. #undef $2
  2166. #ifdef __cplusplus
  2167. extern "C"
  2168. #endif
  2169. char $2 ();
  2170. #if defined __stub_$2 || defined __stub___$2
  2171. choke me
  2172. #endif
  2173. int main (void)
  2174. {
  2175. return $2 ();
  2176. ;
  2177. return 0;
  2178. }
  2179. _ACEOF
  2180. if ac_fn_c_try_link "$LINENO"; then :
  2181. eval "$3=yes"
  2182. else
  2183. eval "$3=no"
  2184. fi
  2185. rm -f core conftest.err conftest.$ac_objext \
  2186. conftest$ac_exeext conftest.$ac_ext
  2187. fi
  2188. eval ac_res=\$$3
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2190. $as_echo "$ac_res" >&6; }
  2191. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2192. } # ac_fn_c_check_func
  2193. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2194. # -------------------------------------------------------
  2195. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2196. # the include files in INCLUDES and setting the cache variable VAR
  2197. # accordingly.
  2198. ac_fn_c_check_header_mongrel ()
  2199. {
  2200. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2201. if eval \${$3+:} false; then :
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2203. $as_echo_n "checking for $2... " >&6; }
  2204. if eval \${$3+:} false; then :
  2205. $as_echo_n "(cached) " >&6
  2206. fi
  2207. eval ac_res=\$$3
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2209. $as_echo "$ac_res" >&6; }
  2210. else
  2211. # Is the header compilable?
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2213. $as_echo_n "checking $2 usability... " >&6; }
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $4
  2217. #include <$2>
  2218. _ACEOF
  2219. if ac_fn_c_try_compile "$LINENO"; then :
  2220. ac_header_compiler=yes
  2221. else
  2222. ac_header_compiler=no
  2223. fi
  2224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2226. $as_echo "$ac_header_compiler" >&6; }
  2227. # Is the header present?
  2228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2229. $as_echo_n "checking $2 presence... " >&6; }
  2230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2231. /* end confdefs.h. */
  2232. #include <$2>
  2233. _ACEOF
  2234. if ac_fn_c_try_cpp "$LINENO"; then :
  2235. ac_header_preproc=yes
  2236. else
  2237. ac_header_preproc=no
  2238. fi
  2239. rm -f conftest.err conftest.i conftest.$ac_ext
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2241. $as_echo "$ac_header_preproc" >&6; }
  2242. # So? What about this header?
  2243. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2244. yes:no: )
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2246. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2248. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2249. ;;
  2250. no:yes:* )
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2252. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2254. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2256. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2258. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2260. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2261. ( $as_echo "## ----------------------------------------------------------------------- ##
  2262. ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
  2263. ## ----------------------------------------------------------------------- ##"
  2264. ) | sed "s/^/$as_me: WARNING: /" >&2
  2265. ;;
  2266. esac
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2268. $as_echo_n "checking for $2... " >&6; }
  2269. if eval \${$3+:} false; then :
  2270. $as_echo_n "(cached) " >&6
  2271. else
  2272. eval "$3=\$ac_header_compiler"
  2273. fi
  2274. eval ac_res=\$$3
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2276. $as_echo "$ac_res" >&6; }
  2277. fi
  2278. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2279. } # ac_fn_c_check_header_mongrel
  2280. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2281. # -------------------------------------------
  2282. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2283. # variable VAR accordingly.
  2284. ac_fn_c_check_type ()
  2285. {
  2286. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2288. $as_echo_n "checking for $2... " >&6; }
  2289. if eval \${$3+:} false; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. eval "$3=no"
  2293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2294. /* end confdefs.h. */
  2295. $4
  2296. int main (void)
  2297. {
  2298. if (sizeof ($2))
  2299. return 0;
  2300. ;
  2301. return 0;
  2302. }
  2303. _ACEOF
  2304. if ac_fn_c_try_compile "$LINENO"; then :
  2305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2306. /* end confdefs.h. */
  2307. $4
  2308. int main (void)
  2309. {
  2310. if (sizeof (($2)))
  2311. return 0;
  2312. ;
  2313. return 0;
  2314. }
  2315. _ACEOF
  2316. if ac_fn_c_try_compile "$LINENO"; then :
  2317. else
  2318. eval "$3=yes"
  2319. fi
  2320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2321. fi
  2322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2323. fi
  2324. eval ac_res=\$$3
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2326. $as_echo "$ac_res" >&6; }
  2327. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2328. } # ac_fn_c_check_type
  2329. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2330. # ---------------------------------------------
  2331. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2332. # accordingly.
  2333. ac_fn_c_check_decl ()
  2334. {
  2335. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2336. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2337. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2339. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2340. if eval \${$3+:} false; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2344. /* end confdefs.h. */
  2345. $4
  2346. int main (void)
  2347. {
  2348. #ifndef $as_decl_name
  2349. #ifdef __cplusplus
  2350. (void) $as_decl_use;
  2351. #else
  2352. (void) $as_decl_name;
  2353. #endif
  2354. #endif
  2355. ;
  2356. return 0;
  2357. }
  2358. _ACEOF
  2359. if ac_fn_c_try_compile "$LINENO"; then :
  2360. eval "$3=yes"
  2361. else
  2362. eval "$3=no"
  2363. fi
  2364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2365. fi
  2366. eval ac_res=\$$3
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2368. $as_echo "$ac_res" >&6; }
  2369. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2370. } # ac_fn_c_check_decl
  2371. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2372. # ----------------------------------------------------
  2373. # Tries to find if the field MEMBER exists in type AGGR, after including
  2374. # INCLUDES, setting cache variable VAR accordingly.
  2375. ac_fn_c_check_member ()
  2376. {
  2377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2379. $as_echo_n "checking for $2.$3... " >&6; }
  2380. if eval \${$4+:} false; then :
  2381. $as_echo_n "(cached) " >&6
  2382. else
  2383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2384. /* end confdefs.h. */
  2385. $5
  2386. int main (void)
  2387. {
  2388. static $2 ac_aggr;
  2389. if (ac_aggr.$3)
  2390. return 0;
  2391. ;
  2392. return 0;
  2393. }
  2394. _ACEOF
  2395. if ac_fn_c_try_compile "$LINENO"; then :
  2396. eval "$4=yes"
  2397. else
  2398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2399. /* end confdefs.h. */
  2400. $5
  2401. int main (void)
  2402. {
  2403. static $2 ac_aggr;
  2404. if (sizeof ac_aggr.$3)
  2405. return 0;
  2406. ;
  2407. return 0;
  2408. }
  2409. _ACEOF
  2410. if ac_fn_c_try_compile "$LINENO"; then :
  2411. eval "$4=yes"
  2412. else
  2413. eval "$4=no"
  2414. fi
  2415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2416. fi
  2417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2418. fi
  2419. eval ac_res=\$$4
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2421. $as_echo "$ac_res" >&6; }
  2422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2423. } # ac_fn_c_check_member
  2424. cat >config.log <<_ACEOF
  2425. This file contains any messages produced by compilers while
  2426. running configure, to aid debugging if configure makes a mistake.
  2427. It was created by curl $as_me -, which was
  2428. generated by GNU Autoconf 2.69. Invocation command line was
  2429. $ $0 $@
  2430. _ACEOF
  2431. exec 5>>config.log
  2432. {
  2433. cat <<_ASUNAME
  2434. ## --------- ##
  2435. ## Platform. ##
  2436. ## --------- ##
  2437. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2438. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2439. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2440. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2441. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2442. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2443. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2444. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2445. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2446. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2447. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2448. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2449. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2450. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2451. _ASUNAME
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. $as_echo "PATH: $as_dir"
  2458. done
  2459. IFS=$as_save_IFS
  2460. } >&5
  2461. cat >&5 <<_ACEOF
  2462. ## ----------- ##
  2463. ## Core tests. ##
  2464. ## ----------- ##
  2465. _ACEOF
  2466. # Keep a trace of the command line.
  2467. # Strip out --no-create and --no-recursion so they do not pile up.
  2468. # Strip out --silent because we don't want to record it for future runs.
  2469. # Also quote any args containing shell meta-characters.
  2470. # Make two passes to allow for proper duplicate-argument suppression.
  2471. ac_configure_args=
  2472. ac_configure_args0=
  2473. ac_configure_args1=
  2474. ac_must_keep_next=false
  2475. for ac_pass in 1 2
  2476. do
  2477. for ac_arg
  2478. do
  2479. case $ac_arg in
  2480. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2481. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2482. | -silent | --silent | --silen | --sile | --sil)
  2483. continue ;;
  2484. *\'*)
  2485. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2486. esac
  2487. case $ac_pass in
  2488. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2489. 2)
  2490. as_fn_append ac_configure_args1 " '$ac_arg'"
  2491. if test $ac_must_keep_next = true; then
  2492. ac_must_keep_next=false # Got value, back to normal.
  2493. else
  2494. case $ac_arg in
  2495. *=* | --config-cache | -C | -disable-* | --disable-* \
  2496. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2497. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2498. | -with-* | --with-* | -without-* | --without-* | --x)
  2499. case "$ac_configure_args0 " in
  2500. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2501. esac
  2502. ;;
  2503. -* ) ac_must_keep_next=true ;;
  2504. esac
  2505. fi
  2506. as_fn_append ac_configure_args " '$ac_arg'"
  2507. ;;
  2508. esac
  2509. done
  2510. done
  2511. { ac_configure_args0=; unset ac_configure_args0;}
  2512. { ac_configure_args1=; unset ac_configure_args1;}
  2513. # When interrupted or exit'd, cleanup temporary files, and complete
  2514. # config.log. We remove comments because anyway the quotes in there
  2515. # would cause problems or look ugly.
  2516. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2517. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2518. trap 'exit_status=$?
  2519. # Save into config.log some information that might help in debugging.
  2520. {
  2521. echo
  2522. $as_echo "## ---------------- ##
  2523. ## Cache variables. ##
  2524. ## ---------------- ##"
  2525. echo
  2526. # The following way of writing the cache mishandles newlines in values,
  2527. (
  2528. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2529. eval ac_val=\$$ac_var
  2530. case $ac_val in #(
  2531. *${as_nl}*)
  2532. case $ac_var in #(
  2533. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2534. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2535. esac
  2536. case $ac_var in #(
  2537. _ | IFS | as_nl) ;; #(
  2538. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2539. *) { eval $ac_var=; unset $ac_var;} ;;
  2540. esac ;;
  2541. esac
  2542. done
  2543. (set) 2>&1 |
  2544. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2545. *${as_nl}ac_space=\ *)
  2546. sed -n \
  2547. "s/'\''/'\''\\\\'\'''\''/g;
  2548. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2549. ;; #(
  2550. *)
  2551. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2552. ;;
  2553. esac |
  2554. sort
  2555. )
  2556. echo
  2557. $as_echo "## ----------------- ##
  2558. ## Output variables. ##
  2559. ## ----------------- ##"
  2560. echo
  2561. for ac_var in $ac_subst_vars
  2562. do
  2563. eval ac_val=\$$ac_var
  2564. case $ac_val in
  2565. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2566. esac
  2567. $as_echo "$ac_var='\''$ac_val'\''"
  2568. done | sort
  2569. echo
  2570. if test -n "$ac_subst_files"; then
  2571. $as_echo "## ------------------- ##
  2572. ## File substitutions. ##
  2573. ## ------------------- ##"
  2574. echo
  2575. for ac_var in $ac_subst_files
  2576. do
  2577. eval ac_val=\$$ac_var
  2578. case $ac_val in
  2579. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2580. esac
  2581. $as_echo "$ac_var='\''$ac_val'\''"
  2582. done | sort
  2583. echo
  2584. fi
  2585. if test -s confdefs.h; then
  2586. $as_echo "## ----------- ##
  2587. ## confdefs.h. ##
  2588. ## ----------- ##"
  2589. echo
  2590. cat confdefs.h
  2591. echo
  2592. fi
  2593. test "$ac_signal" != 0 &&
  2594. $as_echo "$as_me: caught signal $ac_signal"
  2595. $as_echo "$as_me: exit $exit_status"
  2596. } >&5
  2597. rm -f core *.core core.conftest.* &&
  2598. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2599. exit $exit_status
  2600. ' 0
  2601. for ac_signal in 1 2 13 15; do
  2602. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2603. done
  2604. ac_signal=0
  2605. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2606. rm -f -r conftest* confdefs.h
  2607. $as_echo "/* confdefs.h */" > confdefs.h
  2608. # Predefined preprocessor variables.
  2609. cat >>confdefs.h <<_ACEOF
  2610. #define PACKAGE_NAME "$PACKAGE_NAME"
  2611. _ACEOF
  2612. cat >>confdefs.h <<_ACEOF
  2613. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2614. _ACEOF
  2615. cat >>confdefs.h <<_ACEOF
  2616. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2617. _ACEOF
  2618. cat >>confdefs.h <<_ACEOF
  2619. #define PACKAGE_STRING "$PACKAGE_STRING"
  2620. _ACEOF
  2621. cat >>confdefs.h <<_ACEOF
  2622. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2623. _ACEOF
  2624. cat >>confdefs.h <<_ACEOF
  2625. #define PACKAGE_URL "$PACKAGE_URL"
  2626. _ACEOF
  2627. # Let the site file select an alternate cache file if it wants to.
  2628. # Prefer an explicitly selected file to automatically selected ones.
  2629. ac_site_file1=NONE
  2630. ac_site_file2=NONE
  2631. if test -n "$CONFIG_SITE"; then
  2632. # We do not want a PATH search for config.site.
  2633. case $CONFIG_SITE in #((
  2634. -*) ac_site_file1=./$CONFIG_SITE;;
  2635. */*) ac_site_file1=$CONFIG_SITE;;
  2636. *) ac_site_file1=./$CONFIG_SITE;;
  2637. esac
  2638. elif test "x$prefix" != xNONE; then
  2639. ac_site_file1=$prefix/share/config.site
  2640. ac_site_file2=$prefix/etc/config.site
  2641. else
  2642. ac_site_file1=$ac_default_prefix/share/config.site
  2643. ac_site_file2=$ac_default_prefix/etc/config.site
  2644. fi
  2645. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2646. do
  2647. test "x$ac_site_file" = xNONE && continue
  2648. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2650. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2651. sed 's/^/| /' "$ac_site_file" >&5
  2652. . "$ac_site_file" \
  2653. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2654. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2655. as_fn_error $? "failed to load site script $ac_site_file
  2656. See \`config.log' for more details" "$LINENO" 5; }
  2657. fi
  2658. done
  2659. if test -r "$cache_file"; then
  2660. # Some versions of bash will fail to source /dev/null (special files
  2661. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2662. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2664. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2665. case $cache_file in
  2666. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2667. *) . "./$cache_file";;
  2668. esac
  2669. fi
  2670. else
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2672. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2673. >$cache_file
  2674. fi
  2675. # Check that the precious variables saved in the cache have kept the same
  2676. # value.
  2677. ac_cache_corrupted=false
  2678. for ac_var in $ac_precious_vars; do
  2679. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2680. eval ac_new_set=\$ac_env_${ac_var}_set
  2681. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2682. eval ac_new_val=\$ac_env_${ac_var}_value
  2683. case $ac_old_set,$ac_new_set in
  2684. set,)
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2686. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2687. ac_cache_corrupted=: ;;
  2688. ,set)
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2690. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2691. ac_cache_corrupted=: ;;
  2692. ,);;
  2693. *)
  2694. if test "x$ac_old_val" != "x$ac_new_val"; then
  2695. # differences in whitespace do not lead to failure.
  2696. ac_old_val_w=`echo x $ac_old_val`
  2697. ac_new_val_w=`echo x $ac_new_val`
  2698. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2700. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2701. ac_cache_corrupted=:
  2702. else
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2704. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2705. eval $ac_var=\$ac_old_val
  2706. fi
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2708. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2710. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2711. fi;;
  2712. esac
  2713. # Pass precious variables to config.status.
  2714. if test "$ac_new_set" = set; then
  2715. case $ac_new_val in
  2716. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2717. *) ac_arg=$ac_var=$ac_new_val ;;
  2718. esac
  2719. case " $ac_configure_args " in
  2720. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2721. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2722. esac
  2723. fi
  2724. done
  2725. if $ac_cache_corrupted; then
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2727. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2729. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2730. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2731. fi
  2732. ## -------------------- ##
  2733. ## Main body of script. ##
  2734. ## -------------------- ##
  2735. ac_ext=c
  2736. ac_cpp='$CPP $CPPFLAGS'
  2737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2740. # using curl-override.m4
  2741. ac_config_headers="$ac_config_headers lib/curl_config.h"
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2743. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2744. # Check whether --enable-maintainer-mode was given.
  2745. if test "${enable_maintainer_mode+set}" = set; then :
  2746. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2747. else
  2748. USE_MAINTAINER_MODE=no
  2749. fi
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2751. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2752. if test $USE_MAINTAINER_MODE = yes; then
  2753. MAINTAINER_MODE_TRUE=
  2754. MAINTAINER_MODE_FALSE='#'
  2755. else
  2756. MAINTAINER_MODE_TRUE='#'
  2757. MAINTAINER_MODE_FALSE=
  2758. fi
  2759. MAINT=$MAINTAINER_MODE_TRUE
  2760. # Check whether --enable-silent-rules was given.
  2761. if test "${enable_silent_rules+set}" = set; then :
  2762. enableval=$enable_silent_rules;
  2763. fi
  2764. case $enable_silent_rules in # (((
  2765. yes) AM_DEFAULT_VERBOSITY=0;;
  2766. no) AM_DEFAULT_VERBOSITY=1;;
  2767. *) AM_DEFAULT_VERBOSITY=0;;
  2768. esac
  2769. am_make=${MAKE-make}
  2770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2771. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2772. if ${am_cv_make_support_nested_variables+:} false; then :
  2773. $as_echo_n "(cached) " >&6
  2774. else
  2775. if $as_echo 'TRUE=$(BAR$(V))
  2776. BAR0=false
  2777. BAR1=true
  2778. V=1
  2779. am__doit:
  2780. @$(TRUE)
  2781. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2782. am_cv_make_support_nested_variables=yes
  2783. else
  2784. am_cv_make_support_nested_variables=no
  2785. fi
  2786. fi
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2788. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2789. if test $am_cv_make_support_nested_variables = yes; then
  2790. AM_V='$(V)'
  2791. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2792. else
  2793. AM_V=$AM_DEFAULT_VERBOSITY
  2794. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2795. fi
  2796. AM_BACKSLASH='\'
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  2798. $as_echo_n "checking whether to enable debug build options... " >&6; }
  2799. OPT_DEBUG_BUILD="default"
  2800. # Check whether --enable-debug was given.
  2801. if test "${enable_debug+set}" = set; then :
  2802. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  2803. fi
  2804. case "$OPT_DEBUG_BUILD" in
  2805. no)
  2806. want_debug="no"
  2807. ;;
  2808. default)
  2809. want_debug="no"
  2810. ;;
  2811. *)
  2812. want_debug="yes"
  2813. $as_echo "#define DEBUGBUILD 1" >>confdefs.h
  2814. ;;
  2815. esac
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  2817. $as_echo "$want_debug" >&6; }
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  2819. $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
  2820. OPT_COMPILER_OPTIMIZE="default"
  2821. # Check whether --enable-optimize was given.
  2822. if test "${enable_optimize+set}" = set; then :
  2823. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  2824. fi
  2825. case "$OPT_COMPILER_OPTIMIZE" in
  2826. no)
  2827. want_optimize="no"
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2829. $as_echo "no" >&6; }
  2830. ;;
  2831. default)
  2832. if test "$want_debug" = "yes"; then
  2833. want_optimize="assume_no"
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
  2835. $as_echo "(assumed) no" >&6; }
  2836. else
  2837. want_optimize="assume_yes"
  2838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2839. $as_echo "(assumed) yes" >&6; }
  2840. fi
  2841. ;;
  2842. *)
  2843. want_optimize="yes"
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2845. $as_echo "yes" >&6; }
  2846. ;;
  2847. esac
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  2849. $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
  2850. OPT_COMPILER_WARNINGS="default"
  2851. # Check whether --enable-warnings was given.
  2852. if test "${enable_warnings+set}" = set; then :
  2853. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  2854. fi
  2855. case "$OPT_COMPILER_WARNINGS" in
  2856. no)
  2857. want_warnings="no"
  2858. ;;
  2859. default)
  2860. want_warnings="$want_debug"
  2861. ;;
  2862. *)
  2863. want_warnings="yes"
  2864. ;;
  2865. esac
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  2867. $as_echo "$want_warnings" >&6; }
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  2869. $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
  2870. OPT_COMPILER_WERROR="default"
  2871. # Check whether --enable-werror was given.
  2872. if test "${enable_werror+set}" = set; then :
  2873. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  2874. fi
  2875. case "$OPT_COMPILER_WERROR" in
  2876. no)
  2877. want_werror="no"
  2878. ;;
  2879. default)
  2880. want_werror="no"
  2881. ;;
  2882. *)
  2883. want_werror="yes"
  2884. ;;
  2885. esac
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  2887. $as_echo "$want_werror" >&6; }
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
  2889. $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
  2890. OPT_CURLDEBUG_BUILD="default"
  2891. # Check whether --enable-curldebug was given.
  2892. if test "${enable_curldebug+set}" = set; then :
  2893. enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
  2894. fi
  2895. case "$OPT_CURLDEBUG_BUILD" in
  2896. no)
  2897. want_curldebug="no"
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. ;;
  2901. default)
  2902. if test "$want_debug" = "yes"; then
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2904. $as_echo "(assumed) yes" >&6; }
  2905. $as_echo "#define CURLDEBUG 1" >>confdefs.h
  2906. else
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2908. $as_echo "no" >&6; }
  2909. fi
  2910. want_curldebug_assumed="yes"
  2911. want_curldebug="$want_debug"
  2912. ;;
  2913. *)
  2914. want_curldebug="yes"
  2915. $as_echo "#define CURLDEBUG 1" >>confdefs.h
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2917. $as_echo "yes" >&6; }
  2918. ;;
  2919. esac
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  2921. $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
  2922. OPT_SYMBOL_HIDING="default"
  2923. # Check whether --enable-symbol-hiding was given.
  2924. if test "${enable_symbol_hiding+set}" = set; then :
  2925. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  2926. fi
  2927. # Check whether --enable-hidden-symbols was given.
  2928. if test "${enable_hidden_symbols+set}" = set; then :
  2929. enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
  2930. fi
  2931. case "$OPT_SYMBOL_HIDING" in
  2932. no)
  2933. want_symbol_hiding="no"
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. ;;
  2937. default)
  2938. want_symbol_hiding="yes"
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2940. $as_echo "yes" >&6; }
  2941. ;;
  2942. *)
  2943. want_symbol_hiding="yes"
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2945. $as_echo "yes" >&6; }
  2946. ;;
  2947. esac
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
  2949. $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
  2950. OPT_ARES="default"
  2951. # Check whether --enable-ares was given.
  2952. if test "${enable_ares+set}" = set; then :
  2953. enableval=$enable_ares; OPT_ARES=$enableval
  2954. fi
  2955. case "$OPT_ARES" in
  2956. no)
  2957. want_ares="no"
  2958. ;;
  2959. default)
  2960. want_ares="no"
  2961. ;;
  2962. *)
  2963. want_ares="yes"
  2964. if test -n "$enableval" && test "$enableval" != "yes"; then
  2965. want_ares_path="$enableval"
  2966. fi
  2967. ;;
  2968. esac
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
  2970. $as_echo "$want_ares" >&6; }
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
  2972. $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
  2973. OPT_RT="default"
  2974. # Check whether --enable-rt was given.
  2975. if test "${enable_rt+set}" = set; then :
  2976. enableval=$enable_rt; OPT_RT=$enableval
  2977. fi
  2978. case "$OPT_RT" in
  2979. no)
  2980. dontwant_rt="yes"
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2982. $as_echo "yes" >&6; }
  2983. ;;
  2984. default)
  2985. dontwant_rt="no"
  2986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
  2987. $as_echo "(assumed no)" >&6; }
  2988. ;;
  2989. *)
  2990. dontwant_rt="no"
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2992. $as_echo "no" >&6; }
  2993. ;;
  2994. esac
  2995. #
  2996. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  2997. #
  2998. if test -z "$xc_configure_preamble_result"; then
  2999. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  3000. fi
  3001. #
  3002. # Check that 'PATH_SEPARATOR' has already been set.
  3003. #
  3004. if test -z "$xc_PATH_SEPARATOR"; then
  3005. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  3006. fi
  3007. if test -z "$PATH_SEPARATOR"; then
  3008. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  3011. $as_echo_n "checking for path separator... " >&6; }
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  3013. $as_echo "$PATH_SEPARATOR" >&6; }
  3014. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  3016. $as_echo_n "checking for initial path separator... " >&6; }
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  3018. $as_echo "$xc_PATH_SEPARATOR" >&6; }
  3019. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  3020. fi
  3021. #
  3022. # save the configure arguments
  3023. #
  3024. CONFIGURE_OPTIONS="\"$ac_configure_args\""
  3025. CURL_CFLAG_EXTRAS=""
  3026. if test X"$want_werror" = Xyes; then
  3027. CURL_CFLAG_EXTRAS="-Werror"
  3028. if test "$compiler_id" = "GNU_C"; then
  3029. if test "$compiler_num" -ge "500"; then
  3030. CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
  3031. fi
  3032. fi
  3033. fi
  3034. if test -z "$SED"; then
  3035. # Extract the first word of "sed", so it can be a program name with args.
  3036. set dummy sed; ac_word=$2
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3038. $as_echo_n "checking for $ac_word... " >&6; }
  3039. if ${ac_cv_path_SED+:} false; then :
  3040. $as_echo_n "(cached) " >&6
  3041. else
  3042. case $SED in
  3043. [\\/]* | ?:[\\/]*)
  3044. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  3045. ;;
  3046. *)
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3049. for as_dir in $as_dummy
  3050. do
  3051. IFS=$as_save_IFS
  3052. test -z "$as_dir" && as_dir=.
  3053. for ac_exec_ext in '' $ac_executable_extensions; do
  3054. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3055. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  3056. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3057. break 2
  3058. fi
  3059. done
  3060. done
  3061. IFS=$as_save_IFS
  3062. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  3063. ;;
  3064. esac
  3065. fi
  3066. SED=$ac_cv_path_SED
  3067. if test -n "$SED"; then
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3069. $as_echo "$SED" >&6; }
  3070. else
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3072. $as_echo "no" >&6; }
  3073. fi
  3074. if test -z "$SED" || test "$SED" = "not_found"; then
  3075. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  3076. fi
  3077. fi
  3078. if test -z "$GREP"; then
  3079. # Extract the first word of "grep", so it can be a program name with args.
  3080. set dummy grep; ac_word=$2
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3082. $as_echo_n "checking for $ac_word... " >&6; }
  3083. if ${ac_cv_path_GREP+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. case $GREP in
  3087. [\\/]* | ?:[\\/]*)
  3088. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  3089. ;;
  3090. *)
  3091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3092. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3093. for as_dir in $as_dummy
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3099. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3101. break 2
  3102. fi
  3103. done
  3104. done
  3105. IFS=$as_save_IFS
  3106. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3107. ;;
  3108. esac
  3109. fi
  3110. GREP=$ac_cv_path_GREP
  3111. if test -n "$GREP"; then
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3113. $as_echo "$GREP" >&6; }
  3114. else
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3116. $as_echo "no" >&6; }
  3117. fi
  3118. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3119. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3120. fi
  3121. fi
  3122. if test -z "$EGREP"; then
  3123. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3125. $as_echo_n "checking for egrep... " >&6; }
  3126. EGREP="$GREP -E"
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3128. $as_echo "$EGREP" >&6; }
  3129. else
  3130. # Extract the first word of "egrep", so it can be a program name with args.
  3131. set dummy egrep; ac_word=$2
  3132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3133. $as_echo_n "checking for $ac_word... " >&6; }
  3134. if ${ac_cv_path_EGREP+:} false; then :
  3135. $as_echo_n "(cached) " >&6
  3136. else
  3137. case $EGREP in
  3138. [\\/]* | ?:[\\/]*)
  3139. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3140. ;;
  3141. *)
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3144. for as_dir in $as_dummy
  3145. do
  3146. IFS=$as_save_IFS
  3147. test -z "$as_dir" && as_dir=.
  3148. for ac_exec_ext in '' $ac_executable_extensions; do
  3149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3150. ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3152. break 2
  3153. fi
  3154. done
  3155. done
  3156. IFS=$as_save_IFS
  3157. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3158. ;;
  3159. esac
  3160. fi
  3161. EGREP=$ac_cv_path_EGREP
  3162. if test -n "$EGREP"; then
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3164. $as_echo "$EGREP" >&6; }
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3167. $as_echo "no" >&6; }
  3168. fi
  3169. fi
  3170. fi
  3171. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3172. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3173. fi
  3174. if test -z "$AR"; then
  3175. if test -n "$ac_tool_prefix"; then
  3176. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3177. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if ${ac_cv_path_AR+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. case $AR in
  3184. [\\/]* | ?:[\\/]*)
  3185. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3186. ;;
  3187. *)
  3188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3189. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3190. for as_dir in $as_dummy
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3196. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. ;;
  3204. esac
  3205. fi
  3206. AR=$ac_cv_path_AR
  3207. if test -n "$AR"; then
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3209. $as_echo "$AR" >&6; }
  3210. else
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3212. $as_echo "no" >&6; }
  3213. fi
  3214. fi
  3215. if test -z "$ac_cv_path_AR"; then
  3216. ac_pt_AR=$AR
  3217. # Extract the first word of "ar", so it can be a program name with args.
  3218. set dummy ar; ac_word=$2
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3220. $as_echo_n "checking for $ac_word... " >&6; }
  3221. if ${ac_cv_path_ac_pt_AR+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. case $ac_pt_AR in
  3225. [\\/]* | ?:[\\/]*)
  3226. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3227. ;;
  3228. *)
  3229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3230. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3231. for as_dir in $as_dummy
  3232. do
  3233. IFS=$as_save_IFS
  3234. test -z "$as_dir" && as_dir=.
  3235. for ac_exec_ext in '' $ac_executable_extensions; do
  3236. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3237. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  3238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239. break 2
  3240. fi
  3241. done
  3242. done
  3243. IFS=$as_save_IFS
  3244. ;;
  3245. esac
  3246. fi
  3247. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3248. if test -n "$ac_pt_AR"; then
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3250. $as_echo "$ac_pt_AR" >&6; }
  3251. else
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3253. $as_echo "no" >&6; }
  3254. fi
  3255. if test "x$ac_pt_AR" = x; then
  3256. AR="not_found"
  3257. else
  3258. case $cross_compiling:$ac_tool_warned in
  3259. yes:)
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3262. ac_tool_warned=yes ;;
  3263. esac
  3264. AR=$ac_pt_AR
  3265. fi
  3266. else
  3267. AR="$ac_cv_path_AR"
  3268. fi
  3269. if test -z "$AR" || test "$AR" = "not_found"; then
  3270. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3271. fi
  3272. fi
  3273. CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
  3274. xc_prog_cc_prev_IFS=$IFS
  3275. xc_prog_cc_prev_LIBS=$LIBS
  3276. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3277. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3278. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3279. xc_bad_var_libs=no
  3280. for xc_word in $LIBS; do
  3281. case "$xc_word" in
  3282. -l* | --library=*)
  3283. :
  3284. ;;
  3285. *)
  3286. xc_bad_var_libs=yes
  3287. ;;
  3288. esac
  3289. done
  3290. if test $xc_bad_var_libs = yes; then
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3292. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  3294. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  3295. fi
  3296. xc_bad_var_ldflags=no
  3297. for xc_word in $LDFLAGS; do
  3298. case "$xc_word" in
  3299. -D*)
  3300. xc_bad_var_ldflags=yes
  3301. ;;
  3302. -U*)
  3303. xc_bad_var_ldflags=yes
  3304. ;;
  3305. -I*)
  3306. xc_bad_var_ldflags=yes
  3307. ;;
  3308. -l* | --library=*)
  3309. xc_bad_var_ldflags=yes
  3310. ;;
  3311. esac
  3312. done
  3313. if test $xc_bad_var_ldflags = yes; then
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3315. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  3316. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  3317. for xc_word in $LDFLAGS; do
  3318. case "$xc_word" in
  3319. -D*)
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3321. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3322. ;;
  3323. -U*)
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3325. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3326. ;;
  3327. -I*)
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3329. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3330. ;;
  3331. -l* | --library=*)
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3333. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3334. ;;
  3335. esac
  3336. done
  3337. fi
  3338. xc_bad_var_cppflags=no
  3339. for xc_word in $CPPFLAGS; do
  3340. case "$xc_word" in
  3341. -rpath*)
  3342. xc_bad_var_cppflags=yes
  3343. ;;
  3344. -L* | --library-path=*)
  3345. xc_bad_var_cppflags=yes
  3346. ;;
  3347. -l* | --library=*)
  3348. xc_bad_var_cppflags=yes
  3349. ;;
  3350. esac
  3351. done
  3352. if test $xc_bad_var_cppflags = yes; then
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  3354. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  3355. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  3356. for xc_word in $CPPFLAGS; do
  3357. case "$xc_word" in
  3358. -rpath*)
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3360. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3361. ;;
  3362. -L* | --library-path=*)
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3364. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3365. ;;
  3366. -l* | --library=*)
  3367. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3368. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3369. ;;
  3370. esac
  3371. done
  3372. fi
  3373. xc_bad_var_cflags=no
  3374. for xc_word in $CFLAGS; do
  3375. case "$xc_word" in
  3376. -D*)
  3377. xc_bad_var_cflags=yes
  3378. ;;
  3379. -U*)
  3380. xc_bad_var_cflags=yes
  3381. ;;
  3382. -I*)
  3383. xc_bad_var_cflags=yes
  3384. ;;
  3385. -rpath*)
  3386. xc_bad_var_cflags=yes
  3387. ;;
  3388. -L* | --library-path=*)
  3389. xc_bad_var_cflags=yes
  3390. ;;
  3391. -l* | --library=*)
  3392. xc_bad_var_cflags=yes
  3393. ;;
  3394. esac
  3395. done
  3396. if test $xc_bad_var_cflags = yes; then
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  3398. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  3399. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  3400. for xc_word in $CFLAGS; do
  3401. case "$xc_word" in
  3402. -D*)
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3404. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3405. ;;
  3406. -U*)
  3407. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3408. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3409. ;;
  3410. -I*)
  3411. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3412. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3413. ;;
  3414. -rpath*)
  3415. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3416. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3417. ;;
  3418. -L* | --library-path=*)
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3420. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3421. ;;
  3422. -l* | --library=*)
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3424. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3425. ;;
  3426. esac
  3427. done
  3428. fi
  3429. if test $xc_bad_var_libs = yes ||
  3430. test $xc_bad_var_cflags = yes ||
  3431. test $xc_bad_var_ldflags = yes ||
  3432. test $xc_bad_var_cppflags = yes; then
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  3434. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  3435. fi
  3436. ac_aux_dir=
  3437. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3438. if test -f "$ac_dir/install-sh"; then
  3439. ac_aux_dir=$ac_dir
  3440. ac_install_sh="$ac_aux_dir/install-sh -c"
  3441. break
  3442. elif test -f "$ac_dir/install.sh"; then
  3443. ac_aux_dir=$ac_dir
  3444. ac_install_sh="$ac_aux_dir/install.sh -c"
  3445. break
  3446. elif test -f "$ac_dir/shtool"; then
  3447. ac_aux_dir=$ac_dir
  3448. ac_install_sh="$ac_aux_dir/shtool install -c"
  3449. break
  3450. fi
  3451. done
  3452. if test -z "$ac_aux_dir"; then
  3453. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3454. fi
  3455. # These three variables are undocumented and unsupported,
  3456. # and are intended to be withdrawn in a future Autoconf release.
  3457. # They can cause serious problems if a builder's source tree is in a directory
  3458. # whose full name contains unusual characters.
  3459. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3460. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3461. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3462. # Find a good install program. We prefer a C program (faster),
  3463. # so one script is as good as another. But avoid the broken or
  3464. # incompatible versions:
  3465. # SysV /etc/install, /usr/sbin/install
  3466. # SunOS /usr/etc/install
  3467. # IRIX /sbin/install
  3468. # AIX /bin/install
  3469. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3470. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3471. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3472. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3473. # OS/2's system install, which has a completely different semantic
  3474. # ./install, which can be erroneously created by make from ./install.sh.
  3475. # Reject install programs that cannot install multiple files.
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3477. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3478. if test -z "$INSTALL"; then
  3479. if ${ac_cv_path_install+:} false; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. # Account for people who put trailing slashes in PATH elements.
  3488. case $as_dir/ in #((
  3489. ./ | .// | /[cC]/* | \
  3490. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3491. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3492. /usr/ucb/* ) ;;
  3493. *)
  3494. # OSF1 and SCO ODT 3.0 have their own names for install.
  3495. # Don't use installbsd from OSF since it installs stuff as root
  3496. # by default.
  3497. for ac_prog in ginstall scoinst install; do
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3500. if test $ac_prog = install &&
  3501. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3502. # AIX install. It has an incompatible calling convention.
  3503. :
  3504. elif test $ac_prog = install &&
  3505. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3506. # program-specific install script used by HP pwplus--don't use.
  3507. :
  3508. else
  3509. rm -rf conftest.one conftest.two conftest.dir
  3510. echo one > conftest.one
  3511. echo two > conftest.two
  3512. mkdir conftest.dir
  3513. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3514. test -s conftest.one && test -s conftest.two &&
  3515. test -s conftest.dir/conftest.one &&
  3516. test -s conftest.dir/conftest.two
  3517. then
  3518. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3519. break 3
  3520. fi
  3521. fi
  3522. fi
  3523. done
  3524. done
  3525. ;;
  3526. esac
  3527. done
  3528. IFS=$as_save_IFS
  3529. rm -rf conftest.one conftest.two conftest.dir
  3530. fi
  3531. if test "${ac_cv_path_install+set}" = set; then
  3532. INSTALL=$ac_cv_path_install
  3533. else
  3534. # As a last resort, use the slow shell script. Don't cache a
  3535. # value for INSTALL within a source directory, because that will
  3536. # break other packages using the cache if that directory is
  3537. # removed, or if the value is a relative name.
  3538. INSTALL=$ac_install_sh
  3539. fi
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3542. $as_echo "$INSTALL" >&6; }
  3543. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3544. # It thinks the first close brace ends the variable substitution.
  3545. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3546. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3547. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3548. # Expand $ac_aux_dir to an absolute path.
  3549. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3550. ac_ext=c
  3551. ac_cpp='$CPP $CPPFLAGS'
  3552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3555. if test -n "$ac_tool_prefix"; then
  3556. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3557. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3559. $as_echo_n "checking for $ac_word... " >&6; }
  3560. if ${ac_cv_prog_CC+:} false; then :
  3561. $as_echo_n "(cached) " >&6
  3562. else
  3563. if test -n "$CC"; then
  3564. ac_cv_prog_CC="$CC" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. test -z "$as_dir" && as_dir=.
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3573. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. fi
  3581. fi
  3582. CC=$ac_cv_prog_CC
  3583. if test -n "$CC"; then
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3585. $as_echo "$CC" >&6; }
  3586. else
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. fi
  3590. fi
  3591. if test -z "$ac_cv_prog_CC"; then
  3592. ac_ct_CC=$CC
  3593. # Extract the first word of "gcc", so it can be a program name with args.
  3594. set dummy gcc; ac_word=$2
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. $as_echo_n "checking for $ac_word... " >&6; }
  3597. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. if test -n "$ac_ct_CC"; then
  3601. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3602. else
  3603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3604. for as_dir in $PATH
  3605. do
  3606. IFS=$as_save_IFS
  3607. test -z "$as_dir" && as_dir=.
  3608. for ac_exec_ext in '' $ac_executable_extensions; do
  3609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3610. ac_cv_prog_ac_ct_CC="gcc"
  3611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3612. break 2
  3613. fi
  3614. done
  3615. done
  3616. IFS=$as_save_IFS
  3617. fi
  3618. fi
  3619. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3620. if test -n "$ac_ct_CC"; then
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3622. $as_echo "$ac_ct_CC" >&6; }
  3623. else
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3625. $as_echo "no" >&6; }
  3626. fi
  3627. if test "x$ac_ct_CC" = x; then
  3628. CC=""
  3629. else
  3630. case $cross_compiling:$ac_tool_warned in
  3631. yes:)
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3634. ac_tool_warned=yes ;;
  3635. esac
  3636. CC=$ac_ct_CC
  3637. fi
  3638. else
  3639. CC="$ac_cv_prog_CC"
  3640. fi
  3641. if test -z "$CC"; then
  3642. if test -n "$ac_tool_prefix"; then
  3643. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3644. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3646. $as_echo_n "checking for $ac_word... " >&6; }
  3647. if ${ac_cv_prog_CC+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -n "$CC"; then
  3651. ac_cv_prog_CC="$CC" # Let the user override the test.
  3652. else
  3653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3654. for as_dir in $PATH
  3655. do
  3656. IFS=$as_save_IFS
  3657. test -z "$as_dir" && as_dir=.
  3658. for ac_exec_ext in '' $ac_executable_extensions; do
  3659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3660. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3662. break 2
  3663. fi
  3664. done
  3665. done
  3666. IFS=$as_save_IFS
  3667. fi
  3668. fi
  3669. CC=$ac_cv_prog_CC
  3670. if test -n "$CC"; then
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3672. $as_echo "$CC" >&6; }
  3673. else
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3675. $as_echo "no" >&6; }
  3676. fi
  3677. fi
  3678. fi
  3679. if test -z "$CC"; then
  3680. # Extract the first word of "cc", so it can be a program name with args.
  3681. set dummy cc; ac_word=$2
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3683. $as_echo_n "checking for $ac_word... " >&6; }
  3684. if ${ac_cv_prog_CC+:} false; then :
  3685. $as_echo_n "(cached) " >&6
  3686. else
  3687. if test -n "$CC"; then
  3688. ac_cv_prog_CC="$CC" # Let the user override the test.
  3689. else
  3690. ac_prog_rejected=no
  3691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3692. for as_dir in $PATH
  3693. do
  3694. IFS=$as_save_IFS
  3695. test -z "$as_dir" && as_dir=.
  3696. for ac_exec_ext in '' $ac_executable_extensions; do
  3697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3698. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3699. ac_prog_rejected=yes
  3700. continue
  3701. fi
  3702. ac_cv_prog_CC="cc"
  3703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3704. break 2
  3705. fi
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. if test $ac_prog_rejected = yes; then
  3710. # We found a bogon in the path, so make sure we never use it.
  3711. set dummy $ac_cv_prog_CC
  3712. shift
  3713. if test $# != 0; then
  3714. # We chose a different compiler from the bogus one.
  3715. # However, it has the same basename, so the bogon will be chosen
  3716. # first if we set CC to just the basename; use the full file name.
  3717. shift
  3718. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3719. fi
  3720. fi
  3721. fi
  3722. fi
  3723. CC=$ac_cv_prog_CC
  3724. if test -n "$CC"; then
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3726. $as_echo "$CC" >&6; }
  3727. else
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3729. $as_echo "no" >&6; }
  3730. fi
  3731. fi
  3732. if test -z "$CC"; then
  3733. if test -n "$ac_tool_prefix"; then
  3734. for ac_prog in cl.exe
  3735. do
  3736. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3737. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3739. $as_echo_n "checking for $ac_word... " >&6; }
  3740. if ${ac_cv_prog_CC+:} false; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if test -n "$CC"; then
  3744. ac_cv_prog_CC="$CC" # Let the user override the test.
  3745. else
  3746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3747. for as_dir in $PATH
  3748. do
  3749. IFS=$as_save_IFS
  3750. test -z "$as_dir" && as_dir=.
  3751. for ac_exec_ext in '' $ac_executable_extensions; do
  3752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3753. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3755. break 2
  3756. fi
  3757. done
  3758. done
  3759. IFS=$as_save_IFS
  3760. fi
  3761. fi
  3762. CC=$ac_cv_prog_CC
  3763. if test -n "$CC"; then
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3765. $as_echo "$CC" >&6; }
  3766. else
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3768. $as_echo "no" >&6; }
  3769. fi
  3770. test -n "$CC" && break
  3771. done
  3772. fi
  3773. if test -z "$CC"; then
  3774. ac_ct_CC=$CC
  3775. for ac_prog in cl.exe
  3776. do
  3777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3778. set dummy $ac_prog; ac_word=$2
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3780. $as_echo_n "checking for $ac_word... " >&6; }
  3781. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if test -n "$ac_ct_CC"; then
  3785. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3786. else
  3787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3788. for as_dir in $PATH
  3789. do
  3790. IFS=$as_save_IFS
  3791. test -z "$as_dir" && as_dir=.
  3792. for ac_exec_ext in '' $ac_executable_extensions; do
  3793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3794. ac_cv_prog_ac_ct_CC="$ac_prog"
  3795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3796. break 2
  3797. fi
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. fi
  3802. fi
  3803. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3804. if test -n "$ac_ct_CC"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3806. $as_echo "$ac_ct_CC" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. test -n "$ac_ct_CC" && break
  3812. done
  3813. if test "x$ac_ct_CC" = x; then
  3814. CC=""
  3815. else
  3816. case $cross_compiling:$ac_tool_warned in
  3817. yes:)
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3819. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3820. ac_tool_warned=yes ;;
  3821. esac
  3822. CC=$ac_ct_CC
  3823. fi
  3824. fi
  3825. fi
  3826. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3828. as_fn_error $? "no acceptable C compiler found in \$PATH
  3829. See \`config.log' for more details" "$LINENO" 5; }
  3830. # Provide some information about the compiler.
  3831. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3832. set X $ac_compile
  3833. ac_compiler=$2
  3834. for ac_option in --version -v -V -qversion; do
  3835. { { ac_try="$ac_compiler $ac_option >&5"
  3836. case "(($ac_try" in
  3837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3838. *) ac_try_echo=$ac_try;;
  3839. esac
  3840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3841. $as_echo "$ac_try_echo"; } >&5
  3842. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3843. ac_status=$?
  3844. if test -s conftest.err; then
  3845. sed '10a\
  3846. ... rest of stderr output deleted ...
  3847. 10q' conftest.err >conftest.er1
  3848. cat conftest.er1 >&5
  3849. fi
  3850. rm -f conftest.er1 conftest.err
  3851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3852. test $ac_status = 0; }
  3853. done
  3854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3855. /* end confdefs.h. */
  3856. int main (void)
  3857. {
  3858. ;
  3859. return 0;
  3860. }
  3861. _ACEOF
  3862. ac_clean_files_save=$ac_clean_files
  3863. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3864. # Try to create an executable without -o first, disregard a.out.
  3865. # It will help us diagnose broken compilers, and finding out an intuition
  3866. # of exeext.
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3868. $as_echo_n "checking whether the C compiler works... " >&6; }
  3869. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3870. # The possible output files:
  3871. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3872. ac_rmfiles=
  3873. for ac_file in $ac_files
  3874. do
  3875. case $ac_file in
  3876. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3877. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3878. esac
  3879. done
  3880. rm -f $ac_rmfiles
  3881. if { { ac_try="$ac_link_default"
  3882. case "(($ac_try" in
  3883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3884. *) ac_try_echo=$ac_try;;
  3885. esac
  3886. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3887. $as_echo "$ac_try_echo"; } >&5
  3888. (eval "$ac_link_default") 2>&5
  3889. ac_status=$?
  3890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3891. test $ac_status = 0; }; then :
  3892. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3893. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3894. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3895. # so that the user can short-circuit this test for compilers unknown to
  3896. # Autoconf.
  3897. for ac_file in $ac_files ''
  3898. do
  3899. test -f "$ac_file" || continue
  3900. case $ac_file in
  3901. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3902. ;;
  3903. [ab].out )
  3904. # We found the default executable, but exeext='' is most
  3905. # certainly right.
  3906. break;;
  3907. *.* )
  3908. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3909. then :; else
  3910. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3911. fi
  3912. # We set ac_cv_exeext here because the later test for it is not
  3913. # safe: cross compilers may not add the suffix if given an `-o'
  3914. # argument, so we may need to know it at that point already.
  3915. # Even if this section looks crufty: it has the advantage of
  3916. # actually working.
  3917. break;;
  3918. * )
  3919. break;;
  3920. esac
  3921. done
  3922. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3923. else
  3924. ac_file=''
  3925. fi
  3926. if test -z "$ac_file"; then :
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3928. $as_echo "no" >&6; }
  3929. $as_echo "$as_me: failed program was:" >&5
  3930. sed 's/^/| /' conftest.$ac_ext >&5
  3931. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3932. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3933. as_fn_error 77 "C compiler cannot create executables
  3934. See \`config.log' for more details" "$LINENO" 5; }
  3935. else
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3937. $as_echo "yes" >&6; }
  3938. fi
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3940. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3942. $as_echo "$ac_file" >&6; }
  3943. ac_exeext=$ac_cv_exeext
  3944. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3945. ac_clean_files=$ac_clean_files_save
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3947. $as_echo_n "checking for suffix of executables... " >&6; }
  3948. if { { ac_try="$ac_link"
  3949. case "(($ac_try" in
  3950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3951. *) ac_try_echo=$ac_try;;
  3952. esac
  3953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3954. $as_echo "$ac_try_echo"; } >&5
  3955. (eval "$ac_link") 2>&5
  3956. ac_status=$?
  3957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3958. test $ac_status = 0; }; then :
  3959. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3960. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3961. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3962. # `rm'.
  3963. for ac_file in conftest.exe conftest conftest.*; do
  3964. test -f "$ac_file" || continue
  3965. case $ac_file in
  3966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3967. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3968. break;;
  3969. * ) break;;
  3970. esac
  3971. done
  3972. else
  3973. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3974. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3975. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3976. See \`config.log' for more details" "$LINENO" 5; }
  3977. fi
  3978. rm -f conftest conftest$ac_cv_exeext
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3980. $as_echo "$ac_cv_exeext" >&6; }
  3981. rm -f conftest.$ac_ext
  3982. EXEEXT=$ac_cv_exeext
  3983. ac_exeext=$EXEEXT
  3984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3985. /* end confdefs.h. */
  3986. #include <stdio.h>
  3987. int main (void)
  3988. {
  3989. FILE *f = fopen ("conftest.out", "w");
  3990. return ferror (f) || fclose (f) != 0;
  3991. ;
  3992. return 0;
  3993. }
  3994. _ACEOF
  3995. ac_clean_files="$ac_clean_files conftest.out"
  3996. # Check that the compiler produces executables we can run. If not, either
  3997. # the compiler is broken, or we cross compile.
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3999. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4000. if test "$cross_compiling" != yes; then
  4001. { { ac_try="$ac_link"
  4002. case "(($ac_try" in
  4003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4004. *) ac_try_echo=$ac_try;;
  4005. esac
  4006. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4007. $as_echo "$ac_try_echo"; } >&5
  4008. (eval "$ac_link") 2>&5
  4009. ac_status=$?
  4010. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4011. test $ac_status = 0; }
  4012. if { ac_try='./conftest$ac_cv_exeext'
  4013. { { case "(($ac_try" in
  4014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4015. *) ac_try_echo=$ac_try;;
  4016. esac
  4017. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4018. $as_echo "$ac_try_echo"; } >&5
  4019. (eval "$ac_try") 2>&5
  4020. ac_status=$?
  4021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4022. test $ac_status = 0; }; }; then
  4023. cross_compiling=no
  4024. else
  4025. if test "$cross_compiling" = maybe; then
  4026. cross_compiling=yes
  4027. else
  4028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4030. as_fn_error $? "cannot run C compiled programs.
  4031. If you meant to cross compile, use \`--host'.
  4032. See \`config.log' for more details" "$LINENO" 5; }
  4033. fi
  4034. fi
  4035. fi
  4036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4037. $as_echo "$cross_compiling" >&6; }
  4038. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4039. ac_clean_files=$ac_clean_files_save
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4041. $as_echo_n "checking for suffix of object files... " >&6; }
  4042. if ${ac_cv_objext+:} false; then :
  4043. $as_echo_n "(cached) " >&6
  4044. else
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. int main (void)
  4048. {
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. rm -f conftest.o conftest.obj
  4054. if { { ac_try="$ac_compile"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4060. $as_echo "$ac_try_echo"; } >&5
  4061. (eval "$ac_compile") 2>&5
  4062. ac_status=$?
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4064. test $ac_status = 0; }; then :
  4065. for ac_file in conftest.o conftest.obj conftest.*; do
  4066. test -f "$ac_file" || continue;
  4067. case $ac_file in
  4068. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4069. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4070. break;;
  4071. esac
  4072. done
  4073. else
  4074. $as_echo "$as_me: failed program was:" >&5
  4075. sed 's/^/| /' conftest.$ac_ext >&5
  4076. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4078. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4079. See \`config.log' for more details" "$LINENO" 5; }
  4080. fi
  4081. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4082. fi
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4084. $as_echo "$ac_cv_objext" >&6; }
  4085. OBJEXT=$ac_cv_objext
  4086. ac_objext=$OBJEXT
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4088. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4089. if ${ac_cv_c_compiler_gnu+:} false; then :
  4090. $as_echo_n "(cached) " >&6
  4091. else
  4092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4093. /* end confdefs.h. */
  4094. int main (void)
  4095. {
  4096. #ifndef __GNUC__
  4097. choke me
  4098. #endif
  4099. ;
  4100. return 0;
  4101. }
  4102. _ACEOF
  4103. if ac_fn_c_try_compile "$LINENO"; then :
  4104. ac_compiler_gnu=yes
  4105. else
  4106. ac_compiler_gnu=no
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4109. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4110. fi
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4112. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4113. if test $ac_compiler_gnu = yes; then
  4114. GCC=yes
  4115. else
  4116. GCC=
  4117. fi
  4118. ac_test_CFLAGS=${CFLAGS+set}
  4119. ac_save_CFLAGS=$CFLAGS
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4121. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4122. if ${ac_cv_prog_cc_g+:} false; then :
  4123. $as_echo_n "(cached) " >&6
  4124. else
  4125. ac_save_c_werror_flag=$ac_c_werror_flag
  4126. ac_c_werror_flag=yes
  4127. ac_cv_prog_cc_g=no
  4128. CFLAGS="-g"
  4129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4130. /* end confdefs.h. */
  4131. int main (void)
  4132. {
  4133. ;
  4134. return 0;
  4135. }
  4136. _ACEOF
  4137. if ac_fn_c_try_compile "$LINENO"; then :
  4138. ac_cv_prog_cc_g=yes
  4139. else
  4140. CFLAGS=""
  4141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4142. /* end confdefs.h. */
  4143. int main (void)
  4144. {
  4145. ;
  4146. return 0;
  4147. }
  4148. _ACEOF
  4149. if ac_fn_c_try_compile "$LINENO"; then :
  4150. else
  4151. ac_c_werror_flag=$ac_save_c_werror_flag
  4152. CFLAGS="-g"
  4153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4154. /* end confdefs.h. */
  4155. int main (void)
  4156. {
  4157. ;
  4158. return 0;
  4159. }
  4160. _ACEOF
  4161. if ac_fn_c_try_compile "$LINENO"; then :
  4162. ac_cv_prog_cc_g=yes
  4163. fi
  4164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4165. fi
  4166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4167. fi
  4168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. ac_c_werror_flag=$ac_save_c_werror_flag
  4170. fi
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4172. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4173. if test "$ac_test_CFLAGS" = set; then
  4174. CFLAGS=$ac_save_CFLAGS
  4175. elif test $ac_cv_prog_cc_g = yes; then
  4176. if test "$GCC" = yes; then
  4177. CFLAGS="-g -O2"
  4178. else
  4179. CFLAGS="-g"
  4180. fi
  4181. else
  4182. if test "$GCC" = yes; then
  4183. CFLAGS="-O2"
  4184. else
  4185. CFLAGS=
  4186. fi
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4189. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4190. if ${ac_cv_prog_cc_c89+:} false; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. ac_cv_prog_cc_c89=no
  4194. ac_save_CC=$CC
  4195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4196. /* end confdefs.h. */
  4197. #include <stdarg.h>
  4198. #include <stdio.h>
  4199. struct stat;
  4200. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4201. struct buf { int x; };
  4202. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4203. static char *e (p, i)
  4204. char **p;
  4205. int i;
  4206. {
  4207. return p[i];
  4208. }
  4209. static char *f (char * (*g) (char **, int), char **p, ...)
  4210. {
  4211. char *s;
  4212. va_list v;
  4213. va_start (v,p);
  4214. s = g (p, va_arg (v,int));
  4215. va_end (v);
  4216. return s;
  4217. }
  4218. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4219. function prototypes and stuff, but not '\xHH' hex character constants.
  4220. These don't provoke an error unfortunately, instead are silently treated
  4221. as 'x'. The following induces an error, until -std is added to get
  4222. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4223. array size at least. It's necessary to write '\x00'==0 to get something
  4224. that's true only with -std. */
  4225. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4226. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4227. inside strings and character constants. */
  4228. #define FOO(x) 'x'
  4229. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4230. int test (int i, double x);
  4231. struct s1 {int (*f) (int a);};
  4232. struct s2 {int (*f) (double a);};
  4233. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4234. int argc;
  4235. char **argv;
  4236. int main (void)
  4237. {
  4238. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4239. ;
  4240. return 0;
  4241. }
  4242. _ACEOF
  4243. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4244. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4245. do
  4246. CC="$ac_save_CC $ac_arg"
  4247. if ac_fn_c_try_compile "$LINENO"; then :
  4248. ac_cv_prog_cc_c89=$ac_arg
  4249. fi
  4250. rm -f core conftest.err conftest.$ac_objext
  4251. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4252. done
  4253. rm -f conftest.$ac_ext
  4254. CC=$ac_save_CC
  4255. fi
  4256. # AC_CACHE_VAL
  4257. case "x$ac_cv_prog_cc_c89" in
  4258. x)
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4260. $as_echo "none needed" >&6; } ;;
  4261. xno)
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4263. $as_echo "unsupported" >&6; } ;;
  4264. *)
  4265. CC="$CC $ac_cv_prog_cc_c89"
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4267. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4268. esac
  4269. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4270. fi
  4271. ac_ext=c
  4272. ac_cpp='$CPP $CPPFLAGS'
  4273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4276. ac_ext=c
  4277. ac_cpp='$CPP $CPPFLAGS'
  4278. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4279. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4280. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4282. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4283. if ${am_cv_prog_cc_c_o+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4287. /* end confdefs.h. */
  4288. int main (void)
  4289. {
  4290. ;
  4291. return 0;
  4292. }
  4293. _ACEOF
  4294. # Make sure it works both with $CC and with simple cc.
  4295. # Following AC_PROG_CC_C_O, we do the test twice because some
  4296. # compilers refuse to overwrite an existing .o file with -o,
  4297. # though they will create one.
  4298. am_cv_prog_cc_c_o=yes
  4299. for am_i in 1 2; do
  4300. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4301. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4302. ac_status=$?
  4303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4304. (exit $ac_status); } \
  4305. && test -f conftest2.$ac_objext; then
  4306. : OK
  4307. else
  4308. am_cv_prog_cc_c_o=no
  4309. break
  4310. fi
  4311. done
  4312. rm -f core conftest*
  4313. unset am_i
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4316. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4317. if test "$am_cv_prog_cc_c_o" != yes; then
  4318. # Losing compiler, so override with the script.
  4319. # FIXME: It is wrong to rewrite CC.
  4320. # But if we don't then we get into trouble of one sort or another.
  4321. # A longer-term fix would be to have automake use am__CC in this case,
  4322. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4323. CC="$am_aux_dir/compile $CC"
  4324. fi
  4325. ac_ext=c
  4326. ac_cpp='$CPP $CPPFLAGS'
  4327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4330. ac_ext=c
  4331. ac_cpp='$CPP $CPPFLAGS'
  4332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4336. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4337. # On Suns, sometimes $CPP names a directory.
  4338. if test -n "$CPP" && test -d "$CPP"; then
  4339. CPP=
  4340. fi
  4341. if test -z "$CPP"; then
  4342. if ${ac_cv_prog_CPP+:} false; then :
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. # Double quotes because CPP needs to be expanded
  4346. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4347. do
  4348. ac_preproc_ok=false
  4349. for ac_c_preproc_warn_flag in '' yes
  4350. do
  4351. # Use a header file that comes with gcc, so configuring glibc
  4352. # with a fresh cross-compiler works.
  4353. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4354. # <limits.h> exists even on freestanding compilers.
  4355. # On the NeXT, cc -E runs the code through the compiler's parser,
  4356. # not just through cpp. "Syntax error" is here to catch this case.
  4357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4358. /* end confdefs.h. */
  4359. #ifdef __STDC__
  4360. # include <limits.h>
  4361. #else
  4362. # include <assert.h>
  4363. #endif
  4364. Syntax error
  4365. _ACEOF
  4366. if ac_fn_c_try_cpp "$LINENO"; then :
  4367. else
  4368. # Broken: fails on valid input.
  4369. continue
  4370. fi
  4371. rm -f conftest.err conftest.i conftest.$ac_ext
  4372. # OK, works on sane cases. Now check whether nonexistent headers
  4373. # can be detected and how.
  4374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4375. /* end confdefs.h. */
  4376. #include <ac_nonexistent.h>
  4377. _ACEOF
  4378. if ac_fn_c_try_cpp "$LINENO"; then :
  4379. # Broken: success on invalid input.
  4380. continue
  4381. else
  4382. # Passes both tests.
  4383. ac_preproc_ok=:
  4384. break
  4385. fi
  4386. rm -f conftest.err conftest.i conftest.$ac_ext
  4387. done
  4388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4389. rm -f conftest.i conftest.err conftest.$ac_ext
  4390. if $ac_preproc_ok; then :
  4391. break
  4392. fi
  4393. done
  4394. ac_cv_prog_CPP=$CPP
  4395. fi
  4396. CPP=$ac_cv_prog_CPP
  4397. else
  4398. ac_cv_prog_CPP=$CPP
  4399. fi
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4401. $as_echo "$CPP" >&6; }
  4402. ac_preproc_ok=false
  4403. for ac_c_preproc_warn_flag in '' yes
  4404. do
  4405. # Use a header file that comes with gcc, so configuring glibc
  4406. # with a fresh cross-compiler works.
  4407. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4408. # <limits.h> exists even on freestanding compilers.
  4409. # On the NeXT, cc -E runs the code through the compiler's parser,
  4410. # not just through cpp. "Syntax error" is here to catch this case.
  4411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4412. /* end confdefs.h. */
  4413. #ifdef __STDC__
  4414. # include <limits.h>
  4415. #else
  4416. # include <assert.h>
  4417. #endif
  4418. Syntax error
  4419. _ACEOF
  4420. if ac_fn_c_try_cpp "$LINENO"; then :
  4421. else
  4422. # Broken: fails on valid input.
  4423. continue
  4424. fi
  4425. rm -f conftest.err conftest.i conftest.$ac_ext
  4426. # OK, works on sane cases. Now check whether nonexistent headers
  4427. # can be detected and how.
  4428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4429. /* end confdefs.h. */
  4430. #include <ac_nonexistent.h>
  4431. _ACEOF
  4432. if ac_fn_c_try_cpp "$LINENO"; then :
  4433. # Broken: success on invalid input.
  4434. continue
  4435. else
  4436. # Passes both tests.
  4437. ac_preproc_ok=:
  4438. break
  4439. fi
  4440. rm -f conftest.err conftest.i conftest.$ac_ext
  4441. done
  4442. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4443. rm -f conftest.i conftest.err conftest.$ac_ext
  4444. if $ac_preproc_ok; then :
  4445. else
  4446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4448. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4449. See \`config.log' for more details" "$LINENO" 5; }
  4450. fi
  4451. ac_ext=c
  4452. ac_cpp='$CPP $CPPFLAGS'
  4453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4456. IFS=$xc_prog_cc_prev_IFS
  4457. LIBS=$xc_prog_cc_prev_LIBS
  4458. CFLAGS=$xc_prog_cc_prev_CFLAGS
  4459. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  4460. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4462. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4463. if ${ac_cv_path_SED+:} false; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4467. for ac_i in 1 2 3 4 5 6 7; do
  4468. ac_script="$ac_script$as_nl$ac_script"
  4469. done
  4470. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4471. { ac_script=; unset ac_script;}
  4472. if test -z "$SED"; then
  4473. ac_path_SED_found=false
  4474. # Loop through the user's path and test for each of PROGNAME-LIST
  4475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4476. for as_dir in $PATH
  4477. do
  4478. IFS=$as_save_IFS
  4479. test -z "$as_dir" && as_dir=.
  4480. for ac_prog in sed gsed; do
  4481. for ac_exec_ext in '' $ac_executable_extensions; do
  4482. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4483. as_fn_executable_p "$ac_path_SED" || continue
  4484. # Check for GNU ac_path_SED and select it if it is found.
  4485. # Check for GNU $ac_path_SED
  4486. case `"$ac_path_SED" --version 2>&1` in
  4487. *GNU*)
  4488. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4489. *)
  4490. ac_count=0
  4491. $as_echo_n 0123456789 >"conftest.in"
  4492. while :
  4493. do
  4494. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4495. mv "conftest.tmp" "conftest.in"
  4496. cp "conftest.in" "conftest.nl"
  4497. $as_echo '' >> "conftest.nl"
  4498. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4499. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4500. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4501. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4502. # Best one so far, save it but keep looking for a better one
  4503. ac_cv_path_SED="$ac_path_SED"
  4504. ac_path_SED_max=$ac_count
  4505. fi
  4506. # 10*(2^10) chars as input seems more than enough
  4507. test $ac_count -gt 10 && break
  4508. done
  4509. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4510. esac
  4511. $ac_path_SED_found && break 3
  4512. done
  4513. done
  4514. done
  4515. IFS=$as_save_IFS
  4516. if test -z "$ac_cv_path_SED"; then
  4517. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4518. fi
  4519. else
  4520. ac_cv_path_SED=$SED
  4521. fi
  4522. fi
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4524. $as_echo "$ac_cv_path_SED" >&6; }
  4525. SED="$ac_cv_path_SED"
  4526. rm -f conftest.sed
  4527. if test "$GCC" = "yes" ; then :
  4528. # allow to override gcov location
  4529. # Check whether --with-gcov was given.
  4530. if test "${with_gcov+set}" = set; then :
  4531. withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
  4532. else
  4533. _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
  4536. $as_echo_n "checking whether to build with code coverage support... " >&6; }
  4537. # Check whether --enable-code-coverage was given.
  4538. if test "${enable_code_coverage+set}" = set; then :
  4539. enableval=$enable_code_coverage;
  4540. else
  4541. enable_code_coverage=no
  4542. fi
  4543. if test x$enable_code_coverage = xyes; then
  4544. CODE_COVERAGE_ENABLED_TRUE=
  4545. CODE_COVERAGE_ENABLED_FALSE='#'
  4546. else
  4547. CODE_COVERAGE_ENABLED_TRUE='#'
  4548. CODE_COVERAGE_ENABLED_FALSE=
  4549. fi
  4550. CODE_COVERAGE_ENABLED=$enable_code_coverage
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
  4552. $as_echo "$enable_code_coverage" >&6; }
  4553. if test "$enable_code_coverage" = "yes" ; then :
  4554. # check for gcov
  4555. if test -n "$ac_tool_prefix"; then
  4556. # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  4557. set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4559. $as_echo_n "checking for $ac_word... " >&6; }
  4560. if ${ac_cv_prog_GCOV+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. if test -n "$GCOV"; then
  4564. ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
  4565. else
  4566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4567. for as_dir in $PATH
  4568. do
  4569. IFS=$as_save_IFS
  4570. test -z "$as_dir" && as_dir=.
  4571. for ac_exec_ext in '' $ac_executable_extensions; do
  4572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4573. ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  4574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4575. break 2
  4576. fi
  4577. done
  4578. done
  4579. IFS=$as_save_IFS
  4580. fi
  4581. fi
  4582. GCOV=$ac_cv_prog_GCOV
  4583. if test -n "$GCOV"; then
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
  4585. $as_echo "$GCOV" >&6; }
  4586. else
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4588. $as_echo "no" >&6; }
  4589. fi
  4590. fi
  4591. if test -z "$ac_cv_prog_GCOV"; then
  4592. ac_ct_GCOV=$GCOV
  4593. # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
  4594. set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$ac_ct_GCOV"; then
  4601. ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4610. ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
  4620. if test -n "$ac_ct_GCOV"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
  4622. $as_echo "$ac_ct_GCOV" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. if test "x$ac_ct_GCOV" = x; then
  4628. GCOV=":"
  4629. else
  4630. case $cross_compiling:$ac_tool_warned in
  4631. yes:)
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4633. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4634. ac_tool_warned=yes ;;
  4635. esac
  4636. GCOV=$ac_ct_GCOV
  4637. fi
  4638. else
  4639. GCOV="$ac_cv_prog_GCOV"
  4640. fi
  4641. if test "X$GCOV" = "X:"; then :
  4642. as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
  4643. fi
  4644. if test "$GCC" = "no" ; then :
  4645. as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
  4646. fi
  4647. # Extract the first word of "lcov", so it can be a program name with args.
  4648. set dummy lcov; ac_word=$2
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4650. $as_echo_n "checking for $ac_word... " >&6; }
  4651. if ${ac_cv_prog_LCOV+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. if test -n "$LCOV"; then
  4655. ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4664. ac_cv_prog_LCOV="lcov"
  4665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. LCOV=$ac_cv_prog_LCOV
  4674. if test -n "$LCOV"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
  4676. $as_echo "$LCOV" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. fi
  4681. # Extract the first word of "genhtml", so it can be a program name with args.
  4682. set dummy genhtml; ac_word=$2
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4684. $as_echo_n "checking for $ac_word... " >&6; }
  4685. if ${ac_cv_prog_GENHTML+:} false; then :
  4686. $as_echo_n "(cached) " >&6
  4687. else
  4688. if test -n "$GENHTML"; then
  4689. ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
  4690. else
  4691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4692. for as_dir in $PATH
  4693. do
  4694. IFS=$as_save_IFS
  4695. test -z "$as_dir" && as_dir=.
  4696. for ac_exec_ext in '' $ac_executable_extensions; do
  4697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4698. ac_cv_prog_GENHTML="genhtml"
  4699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4700. break 2
  4701. fi
  4702. done
  4703. done
  4704. IFS=$as_save_IFS
  4705. fi
  4706. fi
  4707. GENHTML=$ac_cv_prog_GENHTML
  4708. if test -n "$GENHTML"; then
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
  4710. $as_echo "$GENHTML" >&6; }
  4711. else
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. if test -z "$LCOV" ; then :
  4716. as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
  4717. fi
  4718. if test -z "$GENHTML" ; then :
  4719. as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
  4720. fi
  4721. CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
  4722. CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  4723. CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
  4724. CODE_COVERAGE_LIBS="-lgcov"
  4725. CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
  4726. CODE_COVERAGE_RULES_CHECK='
  4727. -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
  4728. $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
  4729. '
  4730. CODE_COVERAGE_RULES_CAPTURE='
  4731. $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
  4732. $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
  4733. -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
  4734. $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
  4735. @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
  4736. '
  4737. CODE_COVERAGE_RULES_CLEAN='
  4738. clean: code-coverage-clean
  4739. distclean: code-coverage-clean
  4740. code-coverage-clean:
  4741. -$(LCOV) --directory $(top_builddir) -z
  4742. -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  4743. -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
  4744. '
  4745. else
  4746. CODE_COVERAGE_RULES_CHECK='
  4747. @echo "Need to reconfigure with --enable-code-coverage"
  4748. '
  4749. CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
  4750. CODE_COVERAGE_RULES_CLEAN=''
  4751. fi
  4752. CODE_COVERAGE_RULES='
  4753. # Code coverage
  4754. #
  4755. # Optional:
  4756. # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
  4757. # Multiple directories may be specified, separated by whitespace.
  4758. # (Default: $(top_builddir))
  4759. # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
  4760. # by lcov for code coverage. (Default:
  4761. # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
  4762. # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
  4763. # reports to be created. (Default:
  4764. # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
  4765. # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
  4766. # set to 0 to disable it and leave empty to stay with the default.
  4767. # (Default: empty)
  4768. # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
  4769. # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  4770. # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
  4771. # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  4772. # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
  4773. # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
  4774. # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  4775. # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
  4776. # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  4777. # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
  4778. # lcov instance. (Default: empty)
  4779. # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
  4780. # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  4781. # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
  4782. # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
  4783. # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
  4784. # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  4785. # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
  4786. #
  4787. # The generated report will be titled using the $(PACKAGE_NAME) and
  4788. # $(PACKAGE_VERSION). In order to add the current git hash to the title,
  4789. # use the git-version-gen script, available online.
  4790. # Optional variables
  4791. CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
  4792. CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
  4793. CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
  4794. CODE_COVERAGE_BRANCH_COVERAGE ?=
  4795. CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  4796. --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  4797. CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
  4798. CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
  4799. CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
  4800. CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
  4801. CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
  4802. CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
  4803. CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
  4804. $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
  4805. --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
  4806. CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
  4807. CODE_COVERAGE_IGNORE_PATTERN ?=
  4808. GITIGNOREFILES ?=
  4809. GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
  4810. code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
  4811. code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
  4812. code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
  4813. $(CODE_COVERAGE_OUTPUT_FILE);
  4814. code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
  4815. code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
  4816. code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
  4817. $(CODE_COVERAGE_IGNORE_PATTERN);
  4818. code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
  4819. code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
  4820. code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
  4821. code_coverage_quiet = $(code_coverage_quiet_$(V))
  4822. code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
  4823. code_coverage_quiet_0 = --quiet
  4824. # sanitizes the test-name: replaces with underscores: dashes and dots
  4825. code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
  4826. # Use recursive makes in order to ignore errors during check
  4827. check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
  4828. # Capture code coverage data
  4829. code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
  4830. # Hook rule executed before code-coverage-capture, overridable by the user
  4831. code-coverage-capture-hook:
  4832. '"$CODE_COVERAGE_RULES_CLEAN"'
  4833. A''M_DISTCHECK_CONFIGURE_FLAGS ?=
  4834. A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
  4835. .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
  4836. '
  4837. else
  4838. # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
  4839. CODE_COVERAGE_ENABLED_TRUE='#'
  4840. fi
  4841. am__api_version='1.16'
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4843. $as_echo_n "checking whether build environment is sane... " >&6; }
  4844. # Reject unsafe characters in $srcdir or the absolute working directory
  4845. # name. Accept space and tab only in the latter.
  4846. am_lf='
  4847. '
  4848. case `pwd` in
  4849. *[\\\"\#\$\&\'\`$am_lf]*)
  4850. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4851. esac
  4852. case $srcdir in
  4853. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4854. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  4855. esac
  4856. # Do 'set' in a subshell so we don't clobber the current shell's
  4857. # arguments. Must try -L first in case configure is actually a
  4858. # symlink; some systems play weird games with the mod time of symlinks
  4859. # (eg FreeBSD returns the mod time of the symlink's containing
  4860. # directory).
  4861. if (
  4862. am_has_slept=no
  4863. for am_try in 1 2; do
  4864. echo "timestamp, slept: $am_has_slept" > conftest.file
  4865. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4866. if test "$*" = "X"; then
  4867. # -L didn't work.
  4868. set X `ls -t "$srcdir/configure" conftest.file`
  4869. fi
  4870. if test "$*" != "X $srcdir/configure conftest.file" \
  4871. && test "$*" != "X conftest.file $srcdir/configure"; then
  4872. # If neither matched, then we have a broken ls. This can happen
  4873. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4874. # broken ls alias from the environment. This has actually
  4875. # happened. Such a system could not be considered "sane".
  4876. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  4877. alias in your environment" "$LINENO" 5
  4878. fi
  4879. if test "$2" = conftest.file || test $am_try -eq 2; then
  4880. break
  4881. fi
  4882. # Just in case.
  4883. sleep 1
  4884. am_has_slept=yes
  4885. done
  4886. test "$2" = conftest.file
  4887. )
  4888. then
  4889. # Ok.
  4890. :
  4891. else
  4892. as_fn_error $? "newly created file is older than distributed files!
  4893. Check your system clock" "$LINENO" 5
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4896. $as_echo "yes" >&6; }
  4897. # If we didn't sleep, we still need to ensure time stamps of config.status and
  4898. # generated files are strictly newer.
  4899. am_sleep_pid=
  4900. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  4901. ( sleep 1 ) &
  4902. am_sleep_pid=$!
  4903. fi
  4904. rm -f conftest.file
  4905. test "$program_prefix" != NONE &&
  4906. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4907. # Use a double $ so make ignores it.
  4908. test "$program_suffix" != NONE &&
  4909. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4910. # Double any \ or $.
  4911. # By default was `s,x,x', remove it if useless.
  4912. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4913. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4914. if test x"${MISSING+set}" != xset; then
  4915. case $am_aux_dir in
  4916. *\ * | *\ *)
  4917. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4918. *)
  4919. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4920. esac
  4921. fi
  4922. # Use eval to expand $SHELL
  4923. if eval "$MISSING --is-lightweight"; then
  4924. am_missing_run="$MISSING "
  4925. else
  4926. am_missing_run=
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  4928. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  4929. fi
  4930. if test x"${install_sh+set}" != xset; then
  4931. case $am_aux_dir in
  4932. *\ * | *\ *)
  4933. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4934. *)
  4935. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4936. esac
  4937. fi
  4938. # Installed binaries are usually stripped using 'strip' when the user
  4939. # run "make install-strip". However 'strip' might not be the right
  4940. # tool to use in cross-compilation environments, therefore Automake
  4941. # will honor the 'STRIP' environment variable to overrule this program.
  4942. if test "$cross_compiling" != no; then
  4943. if test -n "$ac_tool_prefix"; then
  4944. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4945. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if ${ac_cv_prog_STRIP+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$STRIP"; then
  4952. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4961. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. STRIP=$ac_cv_prog_STRIP
  4971. if test -n "$STRIP"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4973. $as_echo "$STRIP" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. fi
  4979. if test -z "$ac_cv_prog_STRIP"; then
  4980. ac_ct_STRIP=$STRIP
  4981. # Extract the first word of "strip", so it can be a program name with args.
  4982. set dummy strip; ac_word=$2
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4984. $as_echo_n "checking for $ac_word... " >&6; }
  4985. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4986. $as_echo_n "(cached) " >&6
  4987. else
  4988. if test -n "$ac_ct_STRIP"; then
  4989. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4990. else
  4991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4992. for as_dir in $PATH
  4993. do
  4994. IFS=$as_save_IFS
  4995. test -z "$as_dir" && as_dir=.
  4996. for ac_exec_ext in '' $ac_executable_extensions; do
  4997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4998. ac_cv_prog_ac_ct_STRIP="strip"
  4999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5000. break 2
  5001. fi
  5002. done
  5003. done
  5004. IFS=$as_save_IFS
  5005. fi
  5006. fi
  5007. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5008. if test -n "$ac_ct_STRIP"; then
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5010. $as_echo "$ac_ct_STRIP" >&6; }
  5011. else
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5013. $as_echo "no" >&6; }
  5014. fi
  5015. if test "x$ac_ct_STRIP" = x; then
  5016. STRIP=":"
  5017. else
  5018. case $cross_compiling:$ac_tool_warned in
  5019. yes:)
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5022. ac_tool_warned=yes ;;
  5023. esac
  5024. STRIP=$ac_ct_STRIP
  5025. fi
  5026. else
  5027. STRIP="$ac_cv_prog_STRIP"
  5028. fi
  5029. fi
  5030. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  5032. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  5033. if test -z "$MKDIR_P"; then
  5034. if ${ac_cv_path_mkdir+:} false; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  5039. do
  5040. IFS=$as_save_IFS
  5041. test -z "$as_dir" && as_dir=.
  5042. for ac_prog in mkdir gmkdir; do
  5043. for ac_exec_ext in '' $ac_executable_extensions; do
  5044. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  5045. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  5046. 'mkdir (GNU coreutils) '* | \
  5047. 'mkdir (coreutils) '* | \
  5048. 'mkdir (fileutils) '4.1*)
  5049. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  5050. break 3;;
  5051. esac
  5052. done
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. test -d ./--version && rmdir ./--version
  5058. if test "${ac_cv_path_mkdir+set}" = set; then
  5059. MKDIR_P="$ac_cv_path_mkdir -p"
  5060. else
  5061. # As a last resort, use the slow shell script. Don't cache a
  5062. # value for MKDIR_P within a source directory, because that will
  5063. # break other packages using the cache if that directory is
  5064. # removed, or if the value is a relative name.
  5065. MKDIR_P="$ac_install_sh -d"
  5066. fi
  5067. fi
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  5069. $as_echo "$MKDIR_P" >&6; }
  5070. for ac_prog in gawk mawk nawk awk
  5071. do
  5072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5073. set dummy $ac_prog; ac_word=$2
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5075. $as_echo_n "checking for $ac_word... " >&6; }
  5076. if ${ac_cv_prog_AWK+:} false; then :
  5077. $as_echo_n "(cached) " >&6
  5078. else
  5079. if test -n "$AWK"; then
  5080. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5081. else
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH
  5084. do
  5085. IFS=$as_save_IFS
  5086. test -z "$as_dir" && as_dir=.
  5087. for ac_exec_ext in '' $ac_executable_extensions; do
  5088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5089. ac_cv_prog_AWK="$ac_prog"
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5091. break 2
  5092. fi
  5093. done
  5094. done
  5095. IFS=$as_save_IFS
  5096. fi
  5097. fi
  5098. AWK=$ac_cv_prog_AWK
  5099. if test -n "$AWK"; then
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5101. $as_echo "$AWK" >&6; }
  5102. else
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. $as_echo "no" >&6; }
  5105. fi
  5106. test -n "$AWK" && break
  5107. done
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  5109. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  5110. set x ${MAKE-make}
  5111. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  5112. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. cat >conftest.make <<\_ACEOF
  5116. SHELL = /bin/sh
  5117. all:
  5118. @echo '@@@%%%=$(MAKE)=@@@%%%'
  5119. _ACEOF
  5120. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  5121. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  5122. *@@@%%%=?*=@@@%%%*)
  5123. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5124. *)
  5125. eval ac_cv_prog_make_${ac_make}_set=no;;
  5126. esac
  5127. rm -f conftest.make
  5128. fi
  5129. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5131. $as_echo "yes" >&6; }
  5132. SET_MAKE=
  5133. else
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5135. $as_echo "no" >&6; }
  5136. SET_MAKE="MAKE=${MAKE-make}"
  5137. fi
  5138. rm -rf .tst 2>/dev/null
  5139. mkdir .tst 2>/dev/null
  5140. if test -d .tst; then
  5141. am__leading_dot=.
  5142. else
  5143. am__leading_dot=_
  5144. fi
  5145. rmdir .tst 2>/dev/null
  5146. DEPDIR="${am__leading_dot}deps"
  5147. ac_config_commands="$ac_config_commands depfiles"
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  5149. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  5150. cat > confinc.mk << 'END'
  5151. am__doit:
  5152. @echo this is the am__doit target >confinc.out
  5153. .PHONY: am__doit
  5154. END
  5155. am__include="#"
  5156. am__quote=
  5157. # BSD make does it like this.
  5158. echo '.include "confinc.mk" # ignored' > confmf.BSD
  5159. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  5160. echo 'include confinc.mk # ignored' > confmf.GNU
  5161. _am_result=no
  5162. for s in GNU BSD; do
  5163. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  5164. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  5165. ac_status=$?
  5166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5167. (exit $ac_status); }
  5168. case $?:`cat confinc.out 2>/dev/null` in #(
  5169. '0:this is the am__doit target') :
  5170. case $s in #(
  5171. BSD) :
  5172. am__include='.include' am__quote='"' ;; #(
  5173. *) :
  5174. am__include='include' am__quote='' ;;
  5175. esac ;; #(
  5176. *) :
  5177. ;;
  5178. esac
  5179. if test "$am__include" != "#"; then
  5180. _am_result="yes ($s style)"
  5181. break
  5182. fi
  5183. done
  5184. rm -f confinc.* confmf.*
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  5186. $as_echo "${_am_result}" >&6; }
  5187. # Check whether --enable-dependency-tracking was given.
  5188. if test "${enable_dependency_tracking+set}" = set; then :
  5189. enableval=$enable_dependency_tracking;
  5190. fi
  5191. if test "x$enable_dependency_tracking" != xno; then
  5192. am_depcomp="$ac_aux_dir/depcomp"
  5193. AMDEPBACKSLASH='\'
  5194. am__nodep='_no'
  5195. fi
  5196. if test "x$enable_dependency_tracking" != xno; then
  5197. AMDEP_TRUE=
  5198. AMDEP_FALSE='#'
  5199. else
  5200. AMDEP_TRUE='#'
  5201. AMDEP_FALSE=
  5202. fi
  5203. ## --------------------------------------- ##
  5204. ## Start of automake initialization code ##
  5205. ## --------------------------------------- ##
  5206. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  5207. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  5208. # is not polluted with repeated "-I."
  5209. am__isrc=' -I$(srcdir)'
  5210. # test to see if srcdir already configured
  5211. if test -f $srcdir/config.status; then
  5212. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  5213. fi
  5214. fi
  5215. # test whether we have cygpath
  5216. if test -z "$CYGPATH_W"; then
  5217. if (cygpath --version) >/dev/null 2>/dev/null; then
  5218. CYGPATH_W='cygpath -w'
  5219. else
  5220. CYGPATH_W=echo
  5221. fi
  5222. fi
  5223. # Define the identity of the package.
  5224. PACKAGE='curl'
  5225. VERSION='-'
  5226. cat >>confdefs.h <<_ACEOF
  5227. #define PACKAGE "$PACKAGE"
  5228. _ACEOF
  5229. cat >>confdefs.h <<_ACEOF
  5230. #define VERSION "$VERSION"
  5231. _ACEOF
  5232. # Some tools Automake needs.
  5233. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  5234. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  5235. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  5236. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  5237. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  5238. # For better backward compatibility. To be removed once Automake 1.9.x
  5239. # dies out for good. For more background, see:
  5240. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  5241. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  5242. mkdir_p='$(MKDIR_P)'
  5243. # We need awk for the "check" target (and possibly the TAP driver). The
  5244. # system "awk" is bad on some platforms.
  5245. # Always define AMTAR for backward compatibility. Yes, it's still used
  5246. # in the wild :-( We should find a proper way to deprecate it ...
  5247. AMTAR='$${TAR-tar}'
  5248. # We'll loop over all known methods to create a tar archive until one works.
  5249. _am_tools='gnutar pax cpio none'
  5250. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  5251. depcc="$CC" am_compiler_list=
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5253. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5254. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5255. $as_echo_n "(cached) " >&6
  5256. else
  5257. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5258. # We make a subdir and do the tests there. Otherwise we can end up
  5259. # making bogus files that we don't know about and never remove. For
  5260. # instance it was reported that on HP-UX the gcc test will end up
  5261. # making a dummy file named 'D' -- because '-MD' means "put the output
  5262. # in D".
  5263. rm -rf conftest.dir
  5264. mkdir conftest.dir
  5265. # Copy depcomp to subdir because otherwise we won't find it if we're
  5266. # using a relative directory.
  5267. cp "$am_depcomp" conftest.dir
  5268. cd conftest.dir
  5269. # We will build objects and dependencies in a subdirectory because
  5270. # it helps to detect inapplicable dependency modes. For instance
  5271. # both Tru64's cc and ICC support -MD to output dependencies as a
  5272. # side effect of compilation, but ICC will put the dependencies in
  5273. # the current directory while Tru64 will put them in the object
  5274. # directory.
  5275. mkdir sub
  5276. am_cv_CC_dependencies_compiler_type=none
  5277. if test "$am_compiler_list" = ""; then
  5278. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5279. fi
  5280. am__universal=false
  5281. case " $depcc " in #(
  5282. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5283. esac
  5284. for depmode in $am_compiler_list; do
  5285. # Setup a source with many dependencies, because some compilers
  5286. # like to wrap large dependency lists on column 80 (with \), and
  5287. # we should not choose a depcomp mode which is confused by this.
  5288. #
  5289. # We need to recreate these files for each test, as the compiler may
  5290. # overwrite some of them when testing with obscure command lines.
  5291. # This happens at least with the AIX C compiler.
  5292. : > sub/conftest.c
  5293. for i in 1 2 3 4 5 6; do
  5294. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5295. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5296. # Solaris 10 /bin/sh.
  5297. echo '/* dummy */' > sub/conftst$i.h
  5298. done
  5299. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5300. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5301. # mode. It turns out that the SunPro C++ compiler does not properly
  5302. # handle '-M -o', and we need to detect this. Also, some Intel
  5303. # versions had trouble with output in subdirs.
  5304. am__obj=sub/conftest.${OBJEXT-o}
  5305. am__minus_obj="-o $am__obj"
  5306. case $depmode in
  5307. gcc)
  5308. # This depmode causes a compiler race in universal mode.
  5309. test "$am__universal" = false || continue
  5310. ;;
  5311. nosideeffect)
  5312. # After this tag, mechanisms are not by side-effect, so they'll
  5313. # only be used when explicitly requested.
  5314. if test "x$enable_dependency_tracking" = xyes; then
  5315. continue
  5316. else
  5317. break
  5318. fi
  5319. ;;
  5320. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5321. # This compiler won't grok '-c -o', but also, the minuso test has
  5322. # not run yet. These depmodes are late enough in the game, and
  5323. # so weak that their functioning should not be impacted.
  5324. am__obj=conftest.${OBJEXT-o}
  5325. am__minus_obj=
  5326. ;;
  5327. none) break ;;
  5328. esac
  5329. if depmode=$depmode \
  5330. source=sub/conftest.c object=$am__obj \
  5331. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5332. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5333. >/dev/null 2>conftest.err &&
  5334. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5335. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5336. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5337. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5338. # icc doesn't choke on unknown options, it will just issue warnings
  5339. # or remarks (even with -Werror). So we grep stderr for any message
  5340. # that says an option was ignored or not supported.
  5341. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5342. # icc: Command line warning: ignoring option '-M'; no argument required
  5343. # The diagnosis changed in icc 8.0:
  5344. # icc: Command line remark: option '-MP' not supported
  5345. if (grep 'ignoring option' conftest.err ||
  5346. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5347. am_cv_CC_dependencies_compiler_type=$depmode
  5348. break
  5349. fi
  5350. fi
  5351. done
  5352. cd ..
  5353. rm -rf conftest.dir
  5354. else
  5355. am_cv_CC_dependencies_compiler_type=none
  5356. fi
  5357. fi
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5359. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5360. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5361. if
  5362. test "x$enable_dependency_tracking" != xno \
  5363. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5364. am__fastdepCC_TRUE=
  5365. am__fastdepCC_FALSE='#'
  5366. else
  5367. am__fastdepCC_TRUE='#'
  5368. am__fastdepCC_FALSE=
  5369. fi
  5370. # POSIX will say in a future version that running "rm -f" with no argument
  5371. # is OK; and we want to be able to make that assumption in our Makefile
  5372. # recipes. So use an aggressive probe to check that the usage we want is
  5373. # actually supported "in the wild" to an acceptable degree.
  5374. # See automake bug#10828.
  5375. # To make any issue more visible, cause the running configure to be aborted
  5376. # by default if the 'rm' program in use doesn't match our expectations; the
  5377. # user can still override this though.
  5378. if rm -f && rm -fr && rm -rf; then : OK; else
  5379. cat >&2 <<'END'
  5380. Oops!
  5381. Your 'rm' program seems unable to run without file operands specified
  5382. on the command line, even when the '-f' option is present. This is contrary
  5383. to the behaviour of most rm programs out there, and not conforming with
  5384. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  5385. Please tell bug-automake@gnu.org about your system, including the value
  5386. of your $PATH and any error possibly output before this message. This
  5387. can help us improve future automake versions.
  5388. END
  5389. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  5390. echo 'Configuration will proceed anyway, since you have set the' >&2
  5391. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  5392. echo >&2
  5393. else
  5394. cat >&2 <<'END'
  5395. Aborting the configuration process, to ensure you take notice of the issue.
  5396. You can download and install GNU coreutils to get an 'rm' implementation
  5397. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  5398. If you want to complete the configuration process using your problematic
  5399. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  5400. to "yes", and re-run configure.
  5401. END
  5402. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  5403. fi
  5404. fi
  5405. ## ------------------------------------- ##
  5406. ## End of automake initialization code ##
  5407. ## ------------------------------------- ##
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
  5409. $as_echo_n "checking curl version... " >&6; }
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
  5411. $as_echo "$CURLVERSION" >&6; }
  5412. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
  5413. PKGADD_PKG="HAXXcurl"
  5414. PKGADD_NAME="curl - a client that groks URLs"
  5415. PKGADD_VENDOR="curl.haxx.se"
  5416. curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
  5417. curl_ssh_msg="no (--with-libssh2)"
  5418. curl_zlib_msg="no (--with-zlib)"
  5419. curl_brotli_msg="no (--with-brotli)"
  5420. curl_gss_msg="no (--with-gssapi)"
  5421. curl_tls_srp_msg="no (--enable-tls-srp)"
  5422. curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
  5423. curl_ipv6_msg="no (--enable-ipv6)"
  5424. curl_unix_sockets_msg="no (--enable-unix-sockets)"
  5425. curl_idn_msg="no (--with-{libidn2,winidn})"
  5426. curl_manual_msg="no (--enable-manual)"
  5427. curl_libcurl_msg="enabled (--disable-libcurl-option)"
  5428. curl_verbose_msg="enabled (--disable-verbose)"
  5429. curl_sspi_msg="no (--enable-sspi)"
  5430. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  5431. curl_ldaps_msg="no (--enable-ldaps)"
  5432. curl_rtsp_msg="no (--enable-rtsp)"
  5433. curl_rtmp_msg="no (--with-librtmp)"
  5434. curl_mtlnk_msg="no (--with-libmetalink)"
  5435. curl_psl_msg="no (--with-libpsl)"
  5436. ssl_backends=
  5437. INITIAL_LDFLAGS=$LDFLAGS
  5438. INITIAL_LIBS=$LIBS
  5439. # Make sure we can run config.sub.
  5440. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  5441. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5443. $as_echo_n "checking build system type... " >&6; }
  5444. if ${ac_cv_build+:} false; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. ac_build_alias=$build_alias
  5448. test "x$ac_build_alias" = x &&
  5449. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5450. test "x$ac_build_alias" = x &&
  5451. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5452. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5453. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5454. fi
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5456. $as_echo "$ac_cv_build" >&6; }
  5457. case $ac_cv_build in
  5458. *-*-*) ;;
  5459. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5460. esac
  5461. build=$ac_cv_build
  5462. ac_save_IFS=$IFS; IFS='-'
  5463. set x $ac_cv_build
  5464. shift
  5465. build_cpu=$1
  5466. build_vendor=$2
  5467. shift; shift
  5468. # Remember, the first character of IFS is used to create $*,
  5469. # except with old shells:
  5470. build_os=$*
  5471. IFS=$ac_save_IFS
  5472. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5474. $as_echo_n "checking host system type... " >&6; }
  5475. if ${ac_cv_host+:} false; then :
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. if test "x$host_alias" = x; then
  5479. ac_cv_host=$ac_cv_build
  5480. else
  5481. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5482. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5483. fi
  5484. fi
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5486. $as_echo "$ac_cv_host" >&6; }
  5487. case $ac_cv_host in
  5488. *-*-*) ;;
  5489. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5490. esac
  5491. host=$ac_cv_host
  5492. ac_save_IFS=$IFS; IFS='-'
  5493. set x $ac_cv_host
  5494. shift
  5495. host_cpu=$1
  5496. host_vendor=$2
  5497. shift; shift
  5498. # Remember, the first character of IFS is used to create $*,
  5499. # except with old shells:
  5500. host_os=$*
  5501. IFS=$ac_save_IFS
  5502. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5503. cat >>confdefs.h <<_ACEOF
  5504. #define OS "${host}"
  5505. _ACEOF
  5506. # Silence warning: ar: 'u' modifier ignored since 'D' is the default
  5507. AR_FLAGS=cr
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5509. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5510. if ${ac_cv_path_GREP+:} false; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. if test -z "$GREP"; then
  5514. ac_path_GREP_found=false
  5515. # Loop through the user's path and test for each of PROGNAME-LIST
  5516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5517. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5518. do
  5519. IFS=$as_save_IFS
  5520. test -z "$as_dir" && as_dir=.
  5521. for ac_prog in grep ggrep; do
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5524. as_fn_executable_p "$ac_path_GREP" || continue
  5525. # Check for GNU ac_path_GREP and select it if it is found.
  5526. # Check for GNU $ac_path_GREP
  5527. case `"$ac_path_GREP" --version 2>&1` in
  5528. *GNU*)
  5529. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5530. *)
  5531. ac_count=0
  5532. $as_echo_n 0123456789 >"conftest.in"
  5533. while :
  5534. do
  5535. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5536. mv "conftest.tmp" "conftest.in"
  5537. cp "conftest.in" "conftest.nl"
  5538. $as_echo 'GREP' >> "conftest.nl"
  5539. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5540. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5541. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5542. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5543. # Best one so far, save it but keep looking for a better one
  5544. ac_cv_path_GREP="$ac_path_GREP"
  5545. ac_path_GREP_max=$ac_count
  5546. fi
  5547. # 10*(2^10) chars as input seems more than enough
  5548. test $ac_count -gt 10 && break
  5549. done
  5550. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5551. esac
  5552. $ac_path_GREP_found && break 3
  5553. done
  5554. done
  5555. done
  5556. IFS=$as_save_IFS
  5557. if test -z "$ac_cv_path_GREP"; then
  5558. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5559. fi
  5560. else
  5561. ac_cv_path_GREP=$GREP
  5562. fi
  5563. fi
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5565. $as_echo "$ac_cv_path_GREP" >&6; }
  5566. GREP="$ac_cv_path_GREP"
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5568. $as_echo_n "checking for egrep... " >&6; }
  5569. if ${ac_cv_path_EGREP+:} false; then :
  5570. $as_echo_n "(cached) " >&6
  5571. else
  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. test -z "$as_dir" && as_dir=.
  5583. for ac_prog in egrep; do
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5586. as_fn_executable_p "$ac_path_EGREP" || continue
  5587. # Check for GNU ac_path_EGREP and select it if it is found.
  5588. # Check for GNU $ac_path_EGREP
  5589. case `"$ac_path_EGREP" --version 2>&1` in
  5590. *GNU*)
  5591. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5592. *)
  5593. ac_count=0
  5594. $as_echo_n 0123456789 >"conftest.in"
  5595. while :
  5596. do
  5597. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5598. mv "conftest.tmp" "conftest.in"
  5599. cp "conftest.in" "conftest.nl"
  5600. $as_echo 'EGREP' >> "conftest.nl"
  5601. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5602. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5603. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5604. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5605. # Best one so far, save it but keep looking for a better one
  5606. ac_cv_path_EGREP="$ac_path_EGREP"
  5607. ac_path_EGREP_max=$ac_count
  5608. fi
  5609. # 10*(2^10) chars as input seems more than enough
  5610. test $ac_count -gt 10 && break
  5611. done
  5612. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5613. esac
  5614. $ac_path_EGREP_found && break 3
  5615. done
  5616. done
  5617. done
  5618. IFS=$as_save_IFS
  5619. if test -z "$ac_cv_path_EGREP"; then
  5620. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5621. fi
  5622. else
  5623. ac_cv_path_EGREP=$EGREP
  5624. fi
  5625. fi
  5626. fi
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5628. $as_echo "$ac_cv_path_EGREP" >&6; }
  5629. EGREP="$ac_cv_path_EGREP"
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  5631. $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  5632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5633. /* end confdefs.h. */
  5634. #ifdef _AIX
  5635. yes_this_is_aix
  5636. #endif
  5637. _ACEOF
  5638. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5639. $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5641. $as_echo "yes" >&6; }
  5642. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5643. else
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5645. $as_echo "no" >&6; }
  5646. fi
  5647. rm -f conftest*
  5648. #
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  5650. $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
  5651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5652. /* end confdefs.h. */
  5653. int main (void)
  5654. {
  5655. #ifdef _THREAD_SAFE
  5656. int dummy=1;
  5657. #else
  5658. force compilation error
  5659. #endif
  5660. ;
  5661. return 0;
  5662. }
  5663. _ACEOF
  5664. if ac_fn_c_try_compile "$LINENO"; then :
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5666. $as_echo "yes" >&6; }
  5667. tmp_thread_safe_initially_defined="yes"
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. tmp_thread_safe_initially_defined="no"
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5674. #
  5675. if test "$tmp_thread_safe_initially_defined" = "no"; then
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  5677. $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
  5678. case $host_os in
  5679. aix[123].* | aix4.[012].*)
  5680. tmp_need_thread_safe="no"
  5681. ;;
  5682. aix*)
  5683. tmp_need_thread_safe="yes"
  5684. ;;
  5685. *)
  5686. tmp_need_thread_safe="no"
  5687. ;;
  5688. esac
  5689. if test "$tmp_need_thread_safe" = "yes"; then
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5691. $as_echo "yes" >&6; }
  5692. else
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5694. $as_echo "no" >&6; }
  5695. fi
  5696. fi
  5697. #
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  5699. $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
  5700. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  5701. test "$tmp_need_thread_safe" = "yes"; then
  5702. $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
  5703. cat >>confdefs.h <<_EOF
  5704. #ifndef _THREAD_SAFE
  5705. # define _THREAD_SAFE
  5706. #endif
  5707. _EOF
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5709. $as_echo "yes" >&6; }
  5710. else
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5712. $as_echo "no" >&6; }
  5713. fi
  5714. #
  5715. #
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  5717. $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
  5718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5719. /* end confdefs.h. */
  5720. int main (void)
  5721. {
  5722. #ifdef _REENTRANT
  5723. int dummy=1;
  5724. #else
  5725. force compilation error
  5726. #endif
  5727. ;
  5728. return 0;
  5729. }
  5730. _ACEOF
  5731. if ac_fn_c_try_compile "$LINENO"; then :
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5733. $as_echo "yes" >&6; }
  5734. tmp_reentrant_initially_defined="yes"
  5735. else
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5737. $as_echo "no" >&6; }
  5738. tmp_reentrant_initially_defined="no"
  5739. fi
  5740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5741. #
  5742. if test "$tmp_reentrant_initially_defined" = "no"; then
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  5744. $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
  5745. case $host_os in
  5746. solaris*)
  5747. tmp_need_reentrant="yes"
  5748. ;;
  5749. *)
  5750. tmp_need_reentrant="no"
  5751. ;;
  5752. esac
  5753. if test "$tmp_need_reentrant" = "no"; then
  5754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5755. /* end confdefs.h. */
  5756. #include <errno.h>
  5757. int main (void)
  5758. {
  5759. if(0 != errno)
  5760. return 1;
  5761. ;
  5762. return 0;
  5763. }
  5764. _ACEOF
  5765. if ac_fn_c_try_compile "$LINENO"; then :
  5766. tmp_errno="yes"
  5767. else
  5768. tmp_errno="no"
  5769. fi
  5770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5771. if test "$tmp_errno" = "yes"; then
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. #include <errno.h>
  5775. int main (void)
  5776. {
  5777. #ifdef errno
  5778. int dummy=1;
  5779. #else
  5780. force compilation error
  5781. #endif
  5782. ;
  5783. return 0;
  5784. }
  5785. _ACEOF
  5786. if ac_fn_c_try_compile "$LINENO"; then :
  5787. tmp_errno="errno_macro_defined"
  5788. else
  5789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5790. /* end confdefs.h. */
  5791. #define _REENTRANT
  5792. #include <errno.h>
  5793. int main (void)
  5794. {
  5795. #ifdef errno
  5796. int dummy=1;
  5797. #else
  5798. force compilation error
  5799. #endif
  5800. ;
  5801. return 0;
  5802. }
  5803. _ACEOF
  5804. if ac_fn_c_try_compile "$LINENO"; then :
  5805. tmp_errno="errno_macro_needs_reentrant"
  5806. tmp_need_reentrant="yes"
  5807. fi
  5808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5809. fi
  5810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5811. fi
  5812. fi
  5813. if test "$tmp_need_reentrant" = "no"; then
  5814. if test "$tmp_need_reentrant" = "no"; then
  5815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5816. /* end confdefs.h. */
  5817. #define gmtime_r innocuous_gmtime_r
  5818. #ifdef __STDC__
  5819. # include <limits.h>
  5820. #else
  5821. # include <assert.h>
  5822. #endif
  5823. #undef gmtime_r
  5824. #ifdef __cplusplus
  5825. extern "C"
  5826. #endif
  5827. char gmtime_r ();
  5828. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  5829. choke me
  5830. #endif
  5831. int main (void)
  5832. {
  5833. return gmtime_r ();
  5834. ;
  5835. return 0;
  5836. }
  5837. _ACEOF
  5838. if ac_fn_c_try_link "$LINENO"; then :
  5839. tmp_gmtime_r="yes"
  5840. else
  5841. tmp_gmtime_r="no"
  5842. fi
  5843. rm -f core conftest.err conftest.$ac_objext \
  5844. conftest$ac_exeext conftest.$ac_ext
  5845. if test "$tmp_gmtime_r" = "yes"; then
  5846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5847. /* end confdefs.h. */
  5848. #include <sys/types.h>
  5849. #include <time.h>
  5850. _ACEOF
  5851. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5852. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  5853. tmp_gmtime_r="proto_declared"
  5854. else
  5855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5856. /* end confdefs.h. */
  5857. #define _REENTRANT
  5858. #include <sys/types.h>
  5859. #include <time.h>
  5860. _ACEOF
  5861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5862. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  5863. tmp_gmtime_r="proto_needs_reentrant"
  5864. tmp_need_reentrant="yes"
  5865. fi
  5866. rm -f conftest*
  5867. fi
  5868. rm -f conftest*
  5869. fi
  5870. fi
  5871. if test "$tmp_need_reentrant" = "no"; then
  5872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5873. /* end confdefs.h. */
  5874. #define localtime_r innocuous_localtime_r
  5875. #ifdef __STDC__
  5876. # include <limits.h>
  5877. #else
  5878. # include <assert.h>
  5879. #endif
  5880. #undef localtime_r
  5881. #ifdef __cplusplus
  5882. extern "C"
  5883. #endif
  5884. char localtime_r ();
  5885. #if defined __stub_localtime_r || defined __stub___localtime_r
  5886. choke me
  5887. #endif
  5888. int main (void)
  5889. {
  5890. return localtime_r ();
  5891. ;
  5892. return 0;
  5893. }
  5894. _ACEOF
  5895. if ac_fn_c_try_link "$LINENO"; then :
  5896. tmp_localtime_r="yes"
  5897. else
  5898. tmp_localtime_r="no"
  5899. fi
  5900. rm -f core conftest.err conftest.$ac_objext \
  5901. conftest$ac_exeext conftest.$ac_ext
  5902. if test "$tmp_localtime_r" = "yes"; then
  5903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5904. /* end confdefs.h. */
  5905. #include <sys/types.h>
  5906. #include <time.h>
  5907. _ACEOF
  5908. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5909. $EGREP "localtime_r" >/dev/null 2>&1; then :
  5910. tmp_localtime_r="proto_declared"
  5911. else
  5912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5913. /* end confdefs.h. */
  5914. #define _REENTRANT
  5915. #include <sys/types.h>
  5916. #include <time.h>
  5917. _ACEOF
  5918. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5919. $EGREP "localtime_r" >/dev/null 2>&1; then :
  5920. tmp_localtime_r="proto_needs_reentrant"
  5921. tmp_need_reentrant="yes"
  5922. fi
  5923. rm -f conftest*
  5924. fi
  5925. rm -f conftest*
  5926. fi
  5927. fi
  5928. if test "$tmp_need_reentrant" = "no"; then
  5929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5930. /* end confdefs.h. */
  5931. #define strerror_r innocuous_strerror_r
  5932. #ifdef __STDC__
  5933. # include <limits.h>
  5934. #else
  5935. # include <assert.h>
  5936. #endif
  5937. #undef strerror_r
  5938. #ifdef __cplusplus
  5939. extern "C"
  5940. #endif
  5941. char strerror_r ();
  5942. #if defined __stub_strerror_r || defined __stub___strerror_r
  5943. choke me
  5944. #endif
  5945. int main (void)
  5946. {
  5947. return strerror_r ();
  5948. ;
  5949. return 0;
  5950. }
  5951. _ACEOF
  5952. if ac_fn_c_try_link "$LINENO"; then :
  5953. tmp_strerror_r="yes"
  5954. else
  5955. tmp_strerror_r="no"
  5956. fi
  5957. rm -f core conftest.err conftest.$ac_objext \
  5958. conftest$ac_exeext conftest.$ac_ext
  5959. if test "$tmp_strerror_r" = "yes"; then
  5960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5961. /* end confdefs.h. */
  5962. #include <sys/types.h>
  5963. #include <string.h>
  5964. _ACEOF
  5965. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5966. $EGREP "strerror_r" >/dev/null 2>&1; then :
  5967. tmp_strerror_r="proto_declared"
  5968. else
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. #define _REENTRANT
  5972. #include <sys/types.h>
  5973. #include <string.h>
  5974. _ACEOF
  5975. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5976. $EGREP "strerror_r" >/dev/null 2>&1; then :
  5977. tmp_strerror_r="proto_needs_reentrant"
  5978. tmp_need_reentrant="yes"
  5979. fi
  5980. rm -f conftest*
  5981. fi
  5982. rm -f conftest*
  5983. fi
  5984. fi
  5985. if test "$tmp_need_reentrant" = "no"; then
  5986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5987. /* end confdefs.h. */
  5988. #define strtok_r innocuous_strtok_r
  5989. #ifdef __STDC__
  5990. # include <limits.h>
  5991. #else
  5992. # include <assert.h>
  5993. #endif
  5994. #undef strtok_r
  5995. #ifdef __cplusplus
  5996. extern "C"
  5997. #endif
  5998. char strtok_r ();
  5999. #if defined __stub_strtok_r || defined __stub___strtok_r
  6000. choke me
  6001. #endif
  6002. int main (void)
  6003. {
  6004. return strtok_r ();
  6005. ;
  6006. return 0;
  6007. }
  6008. _ACEOF
  6009. if ac_fn_c_try_link "$LINENO"; then :
  6010. tmp_strtok_r="yes"
  6011. else
  6012. tmp_strtok_r="no"
  6013. fi
  6014. rm -f core conftest.err conftest.$ac_objext \
  6015. conftest$ac_exeext conftest.$ac_ext
  6016. if test "$tmp_strtok_r" = "yes"; then
  6017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6018. /* end confdefs.h. */
  6019. #include <sys/types.h>
  6020. #include <string.h>
  6021. _ACEOF
  6022. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6023. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6024. tmp_strtok_r="proto_declared"
  6025. else
  6026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6027. /* end confdefs.h. */
  6028. #define _REENTRANT
  6029. #include <sys/types.h>
  6030. #include <string.h>
  6031. _ACEOF
  6032. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6033. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6034. tmp_strtok_r="proto_needs_reentrant"
  6035. tmp_need_reentrant="yes"
  6036. fi
  6037. rm -f conftest*
  6038. fi
  6039. rm -f conftest*
  6040. fi
  6041. fi
  6042. if test "$tmp_need_reentrant" = "no"; then
  6043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6044. /* end confdefs.h. */
  6045. #define inet_ntoa_r innocuous_inet_ntoa_r
  6046. #ifdef __STDC__
  6047. # include <limits.h>
  6048. #else
  6049. # include <assert.h>
  6050. #endif
  6051. #undef inet_ntoa_r
  6052. #ifdef __cplusplus
  6053. extern "C"
  6054. #endif
  6055. char inet_ntoa_r ();
  6056. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  6057. choke me
  6058. #endif
  6059. int main (void)
  6060. {
  6061. return inet_ntoa_r ();
  6062. ;
  6063. return 0;
  6064. }
  6065. _ACEOF
  6066. if ac_fn_c_try_link "$LINENO"; then :
  6067. tmp_inet_ntoa_r="yes"
  6068. else
  6069. tmp_inet_ntoa_r="no"
  6070. fi
  6071. rm -f core conftest.err conftest.$ac_objext \
  6072. conftest$ac_exeext conftest.$ac_ext
  6073. if test "$tmp_inet_ntoa_r" = "yes"; then
  6074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6075. /* end confdefs.h. */
  6076. #include <sys/types.h>
  6077. #include <sys/socket.h>
  6078. #include <netinet/in.h>
  6079. #include <arpa/inet.h>
  6080. _ACEOF
  6081. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6082. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6083. tmp_inet_ntoa_r="proto_declared"
  6084. else
  6085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6086. /* end confdefs.h. */
  6087. #define _REENTRANT
  6088. #include <sys/types.h>
  6089. #include <sys/socket.h>
  6090. #include <netinet/in.h>
  6091. #include <arpa/inet.h>
  6092. _ACEOF
  6093. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6094. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6095. tmp_inet_ntoa_r="proto_needs_reentrant"
  6096. tmp_need_reentrant="yes"
  6097. fi
  6098. rm -f conftest*
  6099. fi
  6100. rm -f conftest*
  6101. fi
  6102. fi
  6103. if test "$tmp_need_reentrant" = "no"; then
  6104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6105. /* end confdefs.h. */
  6106. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  6107. #ifdef __STDC__
  6108. # include <limits.h>
  6109. #else
  6110. # include <assert.h>
  6111. #endif
  6112. #undef gethostbyaddr_r
  6113. #ifdef __cplusplus
  6114. extern "C"
  6115. #endif
  6116. char gethostbyaddr_r ();
  6117. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  6118. choke me
  6119. #endif
  6120. int main (void)
  6121. {
  6122. return gethostbyaddr_r ();
  6123. ;
  6124. return 0;
  6125. }
  6126. _ACEOF
  6127. if ac_fn_c_try_link "$LINENO"; then :
  6128. tmp_gethostbyaddr_r="yes"
  6129. else
  6130. tmp_gethostbyaddr_r="no"
  6131. fi
  6132. rm -f core conftest.err conftest.$ac_objext \
  6133. conftest$ac_exeext conftest.$ac_ext
  6134. if test "$tmp_gethostbyaddr_r" = "yes"; then
  6135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6136. /* end confdefs.h. */
  6137. #include <sys/types.h>
  6138. #include <netdb.h>
  6139. _ACEOF
  6140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6141. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6142. tmp_gethostbyaddr_r="proto_declared"
  6143. else
  6144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6145. /* end confdefs.h. */
  6146. #define _REENTRANT
  6147. #include <sys/types.h>
  6148. #include <netdb.h>
  6149. _ACEOF
  6150. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6151. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6152. tmp_gethostbyaddr_r="proto_needs_reentrant"
  6153. tmp_need_reentrant="yes"
  6154. fi
  6155. rm -f conftest*
  6156. fi
  6157. rm -f conftest*
  6158. fi
  6159. fi
  6160. if test "$tmp_need_reentrant" = "no"; then
  6161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6162. /* end confdefs.h. */
  6163. #define gethostbyname_r innocuous_gethostbyname_r
  6164. #ifdef __STDC__
  6165. # include <limits.h>
  6166. #else
  6167. # include <assert.h>
  6168. #endif
  6169. #undef gethostbyname_r
  6170. #ifdef __cplusplus
  6171. extern "C"
  6172. #endif
  6173. char gethostbyname_r ();
  6174. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6175. choke me
  6176. #endif
  6177. int main (void)
  6178. {
  6179. return gethostbyname_r ();
  6180. ;
  6181. return 0;
  6182. }
  6183. _ACEOF
  6184. if ac_fn_c_try_link "$LINENO"; then :
  6185. tmp_gethostbyname_r="yes"
  6186. else
  6187. tmp_gethostbyname_r="no"
  6188. fi
  6189. rm -f core conftest.err conftest.$ac_objext \
  6190. conftest$ac_exeext conftest.$ac_ext
  6191. if test "$tmp_gethostbyname_r" = "yes"; then
  6192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6193. /* end confdefs.h. */
  6194. #include <sys/types.h>
  6195. #include <netdb.h>
  6196. _ACEOF
  6197. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6198. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6199. tmp_gethostbyname_r="proto_declared"
  6200. else
  6201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6202. /* end confdefs.h. */
  6203. #define _REENTRANT
  6204. #include <sys/types.h>
  6205. #include <netdb.h>
  6206. _ACEOF
  6207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6208. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6209. tmp_gethostbyname_r="proto_needs_reentrant"
  6210. tmp_need_reentrant="yes"
  6211. fi
  6212. rm -f conftest*
  6213. fi
  6214. rm -f conftest*
  6215. fi
  6216. fi
  6217. if test "$tmp_need_reentrant" = "no"; then
  6218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6219. /* end confdefs.h. */
  6220. #define getprotobyname_r innocuous_getprotobyname_r
  6221. #ifdef __STDC__
  6222. # include <limits.h>
  6223. #else
  6224. # include <assert.h>
  6225. #endif
  6226. #undef getprotobyname_r
  6227. #ifdef __cplusplus
  6228. extern "C"
  6229. #endif
  6230. char getprotobyname_r ();
  6231. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6232. choke me
  6233. #endif
  6234. int main (void)
  6235. {
  6236. return getprotobyname_r ();
  6237. ;
  6238. return 0;
  6239. }
  6240. _ACEOF
  6241. if ac_fn_c_try_link "$LINENO"; then :
  6242. tmp_getprotobyname_r="yes"
  6243. else
  6244. tmp_getprotobyname_r="no"
  6245. fi
  6246. rm -f core conftest.err conftest.$ac_objext \
  6247. conftest$ac_exeext conftest.$ac_ext
  6248. if test "$tmp_getprotobyname_r" = "yes"; then
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. #include <sys/types.h>
  6252. #include <netdb.h>
  6253. _ACEOF
  6254. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6255. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6256. tmp_getprotobyname_r="proto_declared"
  6257. else
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h. */
  6260. #define _REENTRANT
  6261. #include <sys/types.h>
  6262. #include <netdb.h>
  6263. _ACEOF
  6264. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6265. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6266. tmp_getprotobyname_r="proto_needs_reentrant"
  6267. tmp_need_reentrant="yes"
  6268. fi
  6269. rm -f conftest*
  6270. fi
  6271. rm -f conftest*
  6272. fi
  6273. fi
  6274. if test "$tmp_need_reentrant" = "no"; then
  6275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6276. /* end confdefs.h. */
  6277. #define getservbyport_r innocuous_getservbyport_r
  6278. #ifdef __STDC__
  6279. # include <limits.h>
  6280. #else
  6281. # include <assert.h>
  6282. #endif
  6283. #undef getservbyport_r
  6284. #ifdef __cplusplus
  6285. extern "C"
  6286. #endif
  6287. char getservbyport_r ();
  6288. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  6289. choke me
  6290. #endif
  6291. int main (void)
  6292. {
  6293. return getservbyport_r ();
  6294. ;
  6295. return 0;
  6296. }
  6297. _ACEOF
  6298. if ac_fn_c_try_link "$LINENO"; then :
  6299. tmp_getservbyport_r="yes"
  6300. else
  6301. tmp_getservbyport_r="no"
  6302. fi
  6303. rm -f core conftest.err conftest.$ac_objext \
  6304. conftest$ac_exeext conftest.$ac_ext
  6305. if test "$tmp_getservbyport_r" = "yes"; then
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. #include <sys/types.h>
  6309. #include <netdb.h>
  6310. _ACEOF
  6311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6312. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6313. tmp_getservbyport_r="proto_declared"
  6314. else
  6315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6316. /* end confdefs.h. */
  6317. #define _REENTRANT
  6318. #include <sys/types.h>
  6319. #include <netdb.h>
  6320. _ACEOF
  6321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6322. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6323. tmp_getservbyport_r="proto_needs_reentrant"
  6324. tmp_need_reentrant="yes"
  6325. fi
  6326. rm -f conftest*
  6327. fi
  6328. rm -f conftest*
  6329. fi
  6330. fi
  6331. fi
  6332. if test "$tmp_need_reentrant" = "yes"; then
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6334. $as_echo "yes" >&6; }
  6335. else
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6337. $as_echo "no" >&6; }
  6338. fi
  6339. fi
  6340. #
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  6342. $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
  6343. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6344. test "$tmp_need_reentrant" = "yes"; then
  6345. $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
  6346. cat >>confdefs.h <<_EOF
  6347. #ifndef _REENTRANT
  6348. # define _REENTRANT
  6349. #endif
  6350. _EOF
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6352. $as_echo "yes" >&6; }
  6353. else
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6355. $as_echo "no" >&6; }
  6356. fi
  6357. #
  6358. # Check whether --enable-largefile was given.
  6359. if test "${enable_largefile+set}" = set; then :
  6360. enableval=$enable_largefile;
  6361. fi
  6362. if test "$enable_largefile" != no; then
  6363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6364. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6365. if ${ac_cv_sys_largefile_CC+:} false; then :
  6366. $as_echo_n "(cached) " >&6
  6367. else
  6368. ac_cv_sys_largefile_CC=no
  6369. if test "$GCC" != yes; then
  6370. ac_save_CC=$CC
  6371. while :; do
  6372. # IRIX 6.2 and later do not support large files by default,
  6373. # so use the C compiler's -n32 option if that helps.
  6374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6375. /* end confdefs.h. */
  6376. #include <sys/types.h>
  6377. /* Check that off_t can represent 2**63 - 1 correctly.
  6378. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6379. since some C++ compilers masquerading as C compilers
  6380. incorrectly reject 9223372036854775807. */
  6381. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6382. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6383. && LARGE_OFF_T % 2147483647 == 1)
  6384. ? 1 : -1];
  6385. int main (void)
  6386. {
  6387. ;
  6388. return 0;
  6389. }
  6390. _ACEOF
  6391. if ac_fn_c_try_compile "$LINENO"; then :
  6392. break
  6393. fi
  6394. rm -f core conftest.err conftest.$ac_objext
  6395. CC="$CC -n32"
  6396. if ac_fn_c_try_compile "$LINENO"; then :
  6397. ac_cv_sys_largefile_CC=' -n32'; break
  6398. fi
  6399. rm -f core conftest.err conftest.$ac_objext
  6400. break
  6401. done
  6402. CC=$ac_save_CC
  6403. rm -f conftest.$ac_ext
  6404. fi
  6405. fi
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6407. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6408. if test "$ac_cv_sys_largefile_CC" != no; then
  6409. CC=$CC$ac_cv_sys_largefile_CC
  6410. fi
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6412. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6413. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. while :; do
  6417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6418. /* end confdefs.h. */
  6419. #include <sys/types.h>
  6420. /* Check that off_t can represent 2**63 - 1 correctly.
  6421. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6422. since some C++ compilers masquerading as C compilers
  6423. incorrectly reject 9223372036854775807. */
  6424. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6425. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6426. && LARGE_OFF_T % 2147483647 == 1)
  6427. ? 1 : -1];
  6428. int main (void)
  6429. {
  6430. ;
  6431. return 0;
  6432. }
  6433. _ACEOF
  6434. if ac_fn_c_try_compile "$LINENO"; then :
  6435. ac_cv_sys_file_offset_bits=no; break
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6439. /* end confdefs.h. */
  6440. #define _FILE_OFFSET_BITS 64
  6441. #include <sys/types.h>
  6442. /* Check that off_t can represent 2**63 - 1 correctly.
  6443. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6444. since some C++ compilers masquerading as C compilers
  6445. incorrectly reject 9223372036854775807. */
  6446. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6447. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6448. && LARGE_OFF_T % 2147483647 == 1)
  6449. ? 1 : -1];
  6450. int main (void)
  6451. {
  6452. ;
  6453. return 0;
  6454. }
  6455. _ACEOF
  6456. if ac_fn_c_try_compile "$LINENO"; then :
  6457. ac_cv_sys_file_offset_bits=64; break
  6458. fi
  6459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6460. ac_cv_sys_file_offset_bits=unknown
  6461. break
  6462. done
  6463. fi
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6465. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6466. case $ac_cv_sys_file_offset_bits in #(
  6467. no | unknown) ;;
  6468. *)
  6469. cat >>confdefs.h <<_ACEOF
  6470. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6471. _ACEOF
  6472. ;;
  6473. esac
  6474. rm -rf conftest*
  6475. if test $ac_cv_sys_file_offset_bits = unknown; then
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6477. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6478. if ${ac_cv_sys_large_files+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. while :; do
  6482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6483. /* end confdefs.h. */
  6484. #include <sys/types.h>
  6485. /* Check that off_t can represent 2**63 - 1 correctly.
  6486. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6487. since some C++ compilers masquerading as C compilers
  6488. incorrectly reject 9223372036854775807. */
  6489. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6490. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6491. && LARGE_OFF_T % 2147483647 == 1)
  6492. ? 1 : -1];
  6493. int main (void)
  6494. {
  6495. ;
  6496. return 0;
  6497. }
  6498. _ACEOF
  6499. if ac_fn_c_try_compile "$LINENO"; then :
  6500. ac_cv_sys_large_files=no; break
  6501. fi
  6502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. #define _LARGE_FILES 1
  6506. #include <sys/types.h>
  6507. /* Check that off_t can represent 2**63 - 1 correctly.
  6508. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6509. since some C++ compilers masquerading as C compilers
  6510. incorrectly reject 9223372036854775807. */
  6511. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6512. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6513. && LARGE_OFF_T % 2147483647 == 1)
  6514. ? 1 : -1];
  6515. int main (void)
  6516. {
  6517. ;
  6518. return 0;
  6519. }
  6520. _ACEOF
  6521. if ac_fn_c_try_compile "$LINENO"; then :
  6522. ac_cv_sys_large_files=1; break
  6523. fi
  6524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6525. ac_cv_sys_large_files=unknown
  6526. break
  6527. done
  6528. fi
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  6530. $as_echo "$ac_cv_sys_large_files" >&6; }
  6531. case $ac_cv_sys_large_files in #(
  6532. no | unknown) ;;
  6533. *)
  6534. cat >>confdefs.h <<_ACEOF
  6535. #define _LARGE_FILES $ac_cv_sys_large_files
  6536. _ACEOF
  6537. ;;
  6538. esac
  6539. rm -rf conftest*
  6540. fi
  6541. fi
  6542. case `pwd` in
  6543. *\ * | *\ *)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6545. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6546. esac
  6547. macro_version='2.4.6'
  6548. macro_revision='2.4.6'
  6549. ltmain=$ac_aux_dir/ltmain.sh
  6550. # Backslashify metacharacters that are still active within
  6551. # double-quoted strings.
  6552. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6553. # Same as above, but do not quote variable references.
  6554. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6555. # Sed substitution to delay expansion of an escaped shell variable in a
  6556. # double_quote_subst'ed string.
  6557. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6558. # Sed substitution to delay expansion of an escaped single quote.
  6559. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6560. # Sed substitution to avoid accidental globbing in evaled expressions
  6561. no_glob_subst='s/\*/\\\*/g'
  6562. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6563. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6564. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6566. $as_echo_n "checking how to print strings... " >&6; }
  6567. # Test print first, because it will be a builtin if present.
  6568. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6569. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6570. ECHO='print -r --'
  6571. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6572. ECHO='printf %s\n'
  6573. else
  6574. # Use this function as a fallback that always works.
  6575. func_fallback_echo ()
  6576. {
  6577. eval 'cat <<_LTECHO_EOF
  6578. $1
  6579. _LTECHO_EOF'
  6580. }
  6581. ECHO='func_fallback_echo'
  6582. fi
  6583. # func_echo_all arg...
  6584. # Invoke $ECHO with all args, space-separated.
  6585. func_echo_all ()
  6586. {
  6587. $ECHO ""
  6588. }
  6589. case $ECHO in
  6590. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6591. $as_echo "printf" >&6; } ;;
  6592. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6593. $as_echo "print -r" >&6; } ;;
  6594. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6595. $as_echo "cat" >&6; } ;;
  6596. esac
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6598. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6599. if ${ac_cv_path_SED+:} false; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6603. for ac_i in 1 2 3 4 5 6 7; do
  6604. ac_script="$ac_script$as_nl$ac_script"
  6605. done
  6606. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6607. { ac_script=; unset ac_script;}
  6608. if test -z "$SED"; then
  6609. ac_path_SED_found=false
  6610. # Loop through the user's path and test for each of PROGNAME-LIST
  6611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6612. for as_dir in $PATH
  6613. do
  6614. IFS=$as_save_IFS
  6615. test -z "$as_dir" && as_dir=.
  6616. for ac_prog in sed gsed; do
  6617. for ac_exec_ext in '' $ac_executable_extensions; do
  6618. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6619. as_fn_executable_p "$ac_path_SED" || continue
  6620. # Check for GNU ac_path_SED and select it if it is found.
  6621. # Check for GNU $ac_path_SED
  6622. case `"$ac_path_SED" --version 2>&1` in
  6623. *GNU*)
  6624. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6625. *)
  6626. ac_count=0
  6627. $as_echo_n 0123456789 >"conftest.in"
  6628. while :
  6629. do
  6630. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6631. mv "conftest.tmp" "conftest.in"
  6632. cp "conftest.in" "conftest.nl"
  6633. $as_echo '' >> "conftest.nl"
  6634. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6635. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6636. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6637. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6638. # Best one so far, save it but keep looking for a better one
  6639. ac_cv_path_SED="$ac_path_SED"
  6640. ac_path_SED_max=$ac_count
  6641. fi
  6642. # 10*(2^10) chars as input seems more than enough
  6643. test $ac_count -gt 10 && break
  6644. done
  6645. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6646. esac
  6647. $ac_path_SED_found && break 3
  6648. done
  6649. done
  6650. done
  6651. IFS=$as_save_IFS
  6652. if test -z "$ac_cv_path_SED"; then
  6653. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6654. fi
  6655. else
  6656. ac_cv_path_SED=$SED
  6657. fi
  6658. fi
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6660. $as_echo "$ac_cv_path_SED" >&6; }
  6661. SED="$ac_cv_path_SED"
  6662. rm -f conftest.sed
  6663. test -z "$SED" && SED=sed
  6664. Xsed="$SED -e 1s/^X//"
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6666. $as_echo_n "checking for fgrep... " >&6; }
  6667. if ${ac_cv_path_FGREP+:} false; then :
  6668. $as_echo_n "(cached) " >&6
  6669. else
  6670. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6671. then ac_cv_path_FGREP="$GREP -F"
  6672. else
  6673. if test -z "$FGREP"; then
  6674. ac_path_FGREP_found=false
  6675. # Loop through the user's path and test for each of PROGNAME-LIST
  6676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6677. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6678. do
  6679. IFS=$as_save_IFS
  6680. test -z "$as_dir" && as_dir=.
  6681. for ac_prog in fgrep; do
  6682. for ac_exec_ext in '' $ac_executable_extensions; do
  6683. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6684. as_fn_executable_p "$ac_path_FGREP" || continue
  6685. # Check for GNU ac_path_FGREP and select it if it is found.
  6686. # Check for GNU $ac_path_FGREP
  6687. case `"$ac_path_FGREP" --version 2>&1` in
  6688. *GNU*)
  6689. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6690. *)
  6691. ac_count=0
  6692. $as_echo_n 0123456789 >"conftest.in"
  6693. while :
  6694. do
  6695. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6696. mv "conftest.tmp" "conftest.in"
  6697. cp "conftest.in" "conftest.nl"
  6698. $as_echo 'FGREP' >> "conftest.nl"
  6699. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6700. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6701. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6702. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6703. # Best one so far, save it but keep looking for a better one
  6704. ac_cv_path_FGREP="$ac_path_FGREP"
  6705. ac_path_FGREP_max=$ac_count
  6706. fi
  6707. # 10*(2^10) chars as input seems more than enough
  6708. test $ac_count -gt 10 && break
  6709. done
  6710. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6711. esac
  6712. $ac_path_FGREP_found && break 3
  6713. done
  6714. done
  6715. done
  6716. IFS=$as_save_IFS
  6717. if test -z "$ac_cv_path_FGREP"; then
  6718. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6719. fi
  6720. else
  6721. ac_cv_path_FGREP=$FGREP
  6722. fi
  6723. fi
  6724. fi
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6726. $as_echo "$ac_cv_path_FGREP" >&6; }
  6727. FGREP="$ac_cv_path_FGREP"
  6728. test -z "$GREP" && GREP=grep
  6729. # Check whether --with-gnu-ld was given.
  6730. if test "${with_gnu_ld+set}" = set; then :
  6731. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  6732. else
  6733. with_gnu_ld=no
  6734. fi
  6735. ac_prog=ld
  6736. if test yes = "$GCC"; then
  6737. # Check if gcc -print-prog-name=ld gives a path.
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6739. $as_echo_n "checking for ld used by $CC... " >&6; }
  6740. case $host in
  6741. *-*-mingw*)
  6742. # gcc leaves a trailing carriage return, which upsets mingw
  6743. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6744. *)
  6745. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6746. esac
  6747. case $ac_prog in
  6748. # Accept absolute paths.
  6749. [\\/]* | ?:[\\/]*)
  6750. re_direlt='/[^/][^/]*/\.\./'
  6751. # Canonicalize the pathname of ld
  6752. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6753. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6754. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6755. done
  6756. test -z "$LD" && LD=$ac_prog
  6757. ;;
  6758. "")
  6759. # If it fails, then pretend we aren't using GCC.
  6760. ac_prog=ld
  6761. ;;
  6762. *)
  6763. # If it is relative, then search for the first ld in PATH.
  6764. with_gnu_ld=unknown
  6765. ;;
  6766. esac
  6767. elif test yes = "$with_gnu_ld"; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6769. $as_echo_n "checking for GNU ld... " >&6; }
  6770. else
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6772. $as_echo_n "checking for non-GNU ld... " >&6; }
  6773. fi
  6774. if ${lt_cv_path_LD+:} false; then :
  6775. $as_echo_n "(cached) " >&6
  6776. else
  6777. if test -z "$LD"; then
  6778. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6779. for ac_dir in $PATH; do
  6780. IFS=$lt_save_ifs
  6781. test -z "$ac_dir" && ac_dir=.
  6782. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6783. lt_cv_path_LD=$ac_dir/$ac_prog
  6784. # Check to see if the program is GNU ld. I'd rather use --version,
  6785. # but apparently some variants of GNU ld only accept -v.
  6786. # Break only if it was the GNU/non-GNU ld that we prefer.
  6787. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6788. *GNU* | *'with BFD'*)
  6789. test no != "$with_gnu_ld" && break
  6790. ;;
  6791. *)
  6792. test yes != "$with_gnu_ld" && break
  6793. ;;
  6794. esac
  6795. fi
  6796. done
  6797. IFS=$lt_save_ifs
  6798. else
  6799. lt_cv_path_LD=$LD # Let the user override the test with a path.
  6800. fi
  6801. fi
  6802. LD=$lt_cv_path_LD
  6803. if test -n "$LD"; then
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6805. $as_echo "$LD" >&6; }
  6806. else
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6808. $as_echo "no" >&6; }
  6809. fi
  6810. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6812. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6813. if ${lt_cv_prog_gnu_ld+:} false; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6817. case `$LD -v 2>&1 </dev/null` in
  6818. *GNU* | *'with BFD'*)
  6819. lt_cv_prog_gnu_ld=yes
  6820. ;;
  6821. *)
  6822. lt_cv_prog_gnu_ld=no
  6823. ;;
  6824. esac
  6825. fi
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6827. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  6828. with_gnu_ld=$lt_cv_prog_gnu_ld
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  6830. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  6831. if ${lt_cv_path_NM+:} false; then :
  6832. $as_echo_n "(cached) " >&6
  6833. else
  6834. if test -n "$NM"; then
  6835. # Let the user override the test.
  6836. lt_cv_path_NM=$NM
  6837. else
  6838. lt_nm_to_check=${ac_tool_prefix}nm
  6839. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6840. lt_nm_to_check="$lt_nm_to_check nm"
  6841. fi
  6842. for lt_tmp_nm in $lt_nm_to_check; do
  6843. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  6844. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6845. IFS=$lt_save_ifs
  6846. test -z "$ac_dir" && ac_dir=.
  6847. tmp_nm=$ac_dir/$lt_tmp_nm
  6848. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  6849. # Check to see if the nm accepts a BSD-compat flag.
  6850. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  6851. # nm: unknown option "B" ignored
  6852. # Tru64's nm complains that /dev/null is an invalid object file
  6853. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  6854. case $build_os in
  6855. mingw*) lt_bad_file=conftest.nm/nofile ;;
  6856. *) lt_bad_file=/dev/null ;;
  6857. esac
  6858. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  6859. *$lt_bad_file* | *'Invalid file or object type'*)
  6860. lt_cv_path_NM="$tmp_nm -B"
  6861. break 2
  6862. ;;
  6863. *)
  6864. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6865. */dev/null*)
  6866. lt_cv_path_NM="$tmp_nm -p"
  6867. break 2
  6868. ;;
  6869. *)
  6870. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6871. continue # so that we can try to find one that supports BSD flags
  6872. ;;
  6873. esac
  6874. ;;
  6875. esac
  6876. fi
  6877. done
  6878. IFS=$lt_save_ifs
  6879. done
  6880. : ${lt_cv_path_NM=no}
  6881. fi
  6882. fi
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6884. $as_echo "$lt_cv_path_NM" >&6; }
  6885. if test no != "$lt_cv_path_NM"; then
  6886. NM=$lt_cv_path_NM
  6887. else
  6888. # Didn't find any BSD compatible name lister, look for dumpbin.
  6889. if test -n "$DUMPBIN"; then :
  6890. # Let the user override the test.
  6891. else
  6892. if test -n "$ac_tool_prefix"; then
  6893. for ac_prog in dumpbin "link -dump"
  6894. do
  6895. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6896. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6898. $as_echo_n "checking for $ac_word... " >&6; }
  6899. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. if test -n "$DUMPBIN"; then
  6903. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6904. else
  6905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6906. for as_dir in $PATH
  6907. do
  6908. IFS=$as_save_IFS
  6909. test -z "$as_dir" && as_dir=.
  6910. for ac_exec_ext in '' $ac_executable_extensions; do
  6911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6912. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6914. break 2
  6915. fi
  6916. done
  6917. done
  6918. IFS=$as_save_IFS
  6919. fi
  6920. fi
  6921. DUMPBIN=$ac_cv_prog_DUMPBIN
  6922. if test -n "$DUMPBIN"; then
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6924. $as_echo "$DUMPBIN" >&6; }
  6925. else
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6927. $as_echo "no" >&6; }
  6928. fi
  6929. test -n "$DUMPBIN" && break
  6930. done
  6931. fi
  6932. if test -z "$DUMPBIN"; then
  6933. ac_ct_DUMPBIN=$DUMPBIN
  6934. for ac_prog in dumpbin "link -dump"
  6935. do
  6936. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6937. set dummy $ac_prog; ac_word=$2
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6939. $as_echo_n "checking for $ac_word... " >&6; }
  6940. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. if test -n "$ac_ct_DUMPBIN"; then
  6944. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6945. else
  6946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6947. for as_dir in $PATH
  6948. do
  6949. IFS=$as_save_IFS
  6950. test -z "$as_dir" && as_dir=.
  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_ac_ct_DUMPBIN="$ac_prog"
  6954. $as_echo "$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. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6963. if test -n "$ac_ct_DUMPBIN"; then
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6965. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6966. else
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6968. $as_echo "no" >&6; }
  6969. fi
  6970. test -n "$ac_ct_DUMPBIN" && break
  6971. done
  6972. if test "x$ac_ct_DUMPBIN" = x; then
  6973. DUMPBIN=":"
  6974. else
  6975. case $cross_compiling:$ac_tool_warned in
  6976. yes:)
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6979. ac_tool_warned=yes ;;
  6980. esac
  6981. DUMPBIN=$ac_ct_DUMPBIN
  6982. fi
  6983. fi
  6984. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  6985. *COFF*)
  6986. DUMPBIN="$DUMPBIN -symbols -headers"
  6987. ;;
  6988. *)
  6989. DUMPBIN=:
  6990. ;;
  6991. esac
  6992. fi
  6993. if test : != "$DUMPBIN"; then
  6994. NM=$DUMPBIN
  6995. fi
  6996. fi
  6997. test -z "$NM" && NM=nm
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6999. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7000. if ${lt_cv_nm_interface+:} false; then :
  7001. $as_echo_n "(cached) " >&6
  7002. else
  7003. lt_cv_nm_interface="BSD nm"
  7004. echo "int some_variable = 0;" > conftest.$ac_ext
  7005. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7006. (eval "$ac_compile" 2>conftest.err)
  7007. cat conftest.err >&5
  7008. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7009. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7010. cat conftest.err >&5
  7011. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7012. cat conftest.out >&5
  7013. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7014. lt_cv_nm_interface="MS dumpbin"
  7015. fi
  7016. rm -f conftest*
  7017. fi
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7019. $as_echo "$lt_cv_nm_interface" >&6; }
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7021. $as_echo_n "checking whether ln -s works... " >&6; }
  7022. LN_S=$as_ln_s
  7023. if test "$LN_S" = "ln -s"; then
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7025. $as_echo "yes" >&6; }
  7026. else
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7028. $as_echo "no, using $LN_S" >&6; }
  7029. fi
  7030. # find the maximum length of command line arguments
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7032. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7033. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. i=0
  7037. teststring=ABCD
  7038. case $build_os in
  7039. msdosdjgpp*)
  7040. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7041. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7042. # during glob expansion). Even if it were fixed, the result of this
  7043. # check would be larger than it should be.
  7044. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7045. ;;
  7046. gnu*)
  7047. # Under GNU Hurd, this test is not required because there is
  7048. # no limit to the length of command line arguments.
  7049. # Libtool will interpret -1 as no limit whatsoever
  7050. lt_cv_sys_max_cmd_len=-1;
  7051. ;;
  7052. cygwin* | mingw* | cegcc*)
  7053. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7054. # about 5 minutes as the teststring grows exponentially.
  7055. # Worse, since 9x/ME are not pre-emptively multitasking,
  7056. # you end up with a "frozen" computer, even though with patience
  7057. # the test eventually succeeds (with a max line length of 256k).
  7058. # Instead, let's just punt: use the minimum linelength reported by
  7059. # all of the supported platforms: 8192 (on NT/2K/XP).
  7060. lt_cv_sys_max_cmd_len=8192;
  7061. ;;
  7062. mint*)
  7063. # On MiNT this can take a long time and run out of memory.
  7064. lt_cv_sys_max_cmd_len=8192;
  7065. ;;
  7066. amigaos*)
  7067. # On AmigaOS with pdksh, this test takes hours, literally.
  7068. # So we just punt and use a minimum line length of 8192.
  7069. lt_cv_sys_max_cmd_len=8192;
  7070. ;;
  7071. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  7072. # This has been around since 386BSD, at least. Likely further.
  7073. if test -x /sbin/sysctl; then
  7074. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7075. elif test -x /usr/sbin/sysctl; then
  7076. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7077. else
  7078. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7079. fi
  7080. # And add a safety zone
  7081. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7082. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7083. ;;
  7084. interix*)
  7085. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7086. lt_cv_sys_max_cmd_len=196608
  7087. ;;
  7088. os2*)
  7089. # The test takes a long time on OS/2.
  7090. lt_cv_sys_max_cmd_len=8192
  7091. ;;
  7092. osf*)
  7093. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7094. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7095. # nice to cause kernel panics so lets avoid the loop below.
  7096. # First set a reasonable default.
  7097. lt_cv_sys_max_cmd_len=16384
  7098. #
  7099. if test -x /sbin/sysconfig; then
  7100. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7101. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7102. esac
  7103. fi
  7104. ;;
  7105. sco3.2v5*)
  7106. lt_cv_sys_max_cmd_len=102400
  7107. ;;
  7108. sysv5* | sco5v6* | sysv4.2uw2*)
  7109. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7110. if test -n "$kargmax"; then
  7111. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7112. else
  7113. lt_cv_sys_max_cmd_len=32768
  7114. fi
  7115. ;;
  7116. *)
  7117. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7118. if test -n "$lt_cv_sys_max_cmd_len" && \
  7119. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7120. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7121. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7122. else
  7123. # Make teststring a little bigger before we do anything with it.
  7124. # a 1K string should be a reasonable start.
  7125. for i in 1 2 3 4 5 6 7 8; do
  7126. teststring=$teststring$teststring
  7127. done
  7128. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7129. # If test is not a shell built-in, we'll probably end up computing a
  7130. # maximum length that is only half of the actual maximum length, but
  7131. # we can't tell.
  7132. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7133. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7134. test 17 != "$i" # 1/2 MB should be enough
  7135. do
  7136. i=`expr $i + 1`
  7137. teststring=$teststring$teststring
  7138. done
  7139. # Only check the string length outside the loop.
  7140. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7141. teststring=
  7142. # Add a significant safety factor because C++ compilers can tack on
  7143. # massive amounts of additional arguments before passing them to the
  7144. # linker. It appears as though 1/2 is a usable value.
  7145. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7146. fi
  7147. ;;
  7148. esac
  7149. fi
  7150. if test -n "$lt_cv_sys_max_cmd_len"; then
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7152. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7153. else
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7155. $as_echo "none" >&6; }
  7156. fi
  7157. max_cmd_len=$lt_cv_sys_max_cmd_len
  7158. : ${CP="cp -f"}
  7159. : ${MV="mv -f"}
  7160. : ${RM="rm -f"}
  7161. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7162. lt_unset=unset
  7163. else
  7164. lt_unset=false
  7165. fi
  7166. # test EBCDIC or ASCII
  7167. case `echo X|tr X '\101'` in
  7168. A) # ASCII based system
  7169. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7170. lt_SP2NL='tr \040 \012'
  7171. lt_NL2SP='tr \015\012 \040\040'
  7172. ;;
  7173. *) # EBCDIC based system
  7174. lt_SP2NL='tr \100 \n'
  7175. lt_NL2SP='tr \r\n \100\100'
  7176. ;;
  7177. esac
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7179. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7180. if ${lt_cv_to_host_file_cmd+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. case $host in
  7184. *-*-mingw* )
  7185. case $build in
  7186. *-*-mingw* ) # actually msys
  7187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7188. ;;
  7189. *-*-cygwin* )
  7190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7191. ;;
  7192. * ) # otherwise, assume *nix
  7193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7194. ;;
  7195. esac
  7196. ;;
  7197. *-*-cygwin* )
  7198. case $build in
  7199. *-*-mingw* ) # actually msys
  7200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7201. ;;
  7202. *-*-cygwin* )
  7203. lt_cv_to_host_file_cmd=func_convert_file_noop
  7204. ;;
  7205. * ) # otherwise, assume *nix
  7206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7207. ;;
  7208. esac
  7209. ;;
  7210. * ) # unhandled hosts (and "normal" native builds)
  7211. lt_cv_to_host_file_cmd=func_convert_file_noop
  7212. ;;
  7213. esac
  7214. fi
  7215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7217. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7219. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7220. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7221. $as_echo_n "(cached) " >&6
  7222. else
  7223. #assume ordinary cross tools, or native build.
  7224. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7225. case $host in
  7226. *-*-mingw* )
  7227. case $build in
  7228. *-*-mingw* ) # actually msys
  7229. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7230. ;;
  7231. esac
  7232. ;;
  7233. esac
  7234. fi
  7235. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7237. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7239. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7240. if ${lt_cv_ld_reload_flag+:} false; then :
  7241. $as_echo_n "(cached) " >&6
  7242. else
  7243. lt_cv_ld_reload_flag='-r'
  7244. fi
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7246. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7247. reload_flag=$lt_cv_ld_reload_flag
  7248. case $reload_flag in
  7249. "" | " "*) ;;
  7250. *) reload_flag=" $reload_flag" ;;
  7251. esac
  7252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7253. case $host_os in
  7254. cygwin* | mingw* | pw32* | cegcc*)
  7255. if test yes != "$GCC"; then
  7256. reload_cmds=false
  7257. fi
  7258. ;;
  7259. darwin*)
  7260. if test yes = "$GCC"; then
  7261. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7262. else
  7263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7264. fi
  7265. ;;
  7266. esac
  7267. if test -n "$ac_tool_prefix"; then
  7268. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7269. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7271. $as_echo_n "checking for $ac_word... " >&6; }
  7272. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. if test -n "$OBJDUMP"; then
  7276. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7277. else
  7278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7279. for as_dir in $PATH
  7280. do
  7281. IFS=$as_save_IFS
  7282. test -z "$as_dir" && as_dir=.
  7283. for ac_exec_ext in '' $ac_executable_extensions; do
  7284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7287. break 2
  7288. fi
  7289. done
  7290. done
  7291. IFS=$as_save_IFS
  7292. fi
  7293. fi
  7294. OBJDUMP=$ac_cv_prog_OBJDUMP
  7295. if test -n "$OBJDUMP"; then
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7297. $as_echo "$OBJDUMP" >&6; }
  7298. else
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7300. $as_echo "no" >&6; }
  7301. fi
  7302. fi
  7303. if test -z "$ac_cv_prog_OBJDUMP"; then
  7304. ac_ct_OBJDUMP=$OBJDUMP
  7305. # Extract the first word of "objdump", so it can be a program name with args.
  7306. set dummy objdump; ac_word=$2
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7308. $as_echo_n "checking for $ac_word... " >&6; }
  7309. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7310. $as_echo_n "(cached) " >&6
  7311. else
  7312. if test -n "$ac_ct_OBJDUMP"; then
  7313. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7314. else
  7315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7316. for as_dir in $PATH
  7317. do
  7318. IFS=$as_save_IFS
  7319. test -z "$as_dir" && as_dir=.
  7320. for ac_exec_ext in '' $ac_executable_extensions; do
  7321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7322. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7324. break 2
  7325. fi
  7326. done
  7327. done
  7328. IFS=$as_save_IFS
  7329. fi
  7330. fi
  7331. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7332. if test -n "$ac_ct_OBJDUMP"; then
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7334. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7335. else
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7337. $as_echo "no" >&6; }
  7338. fi
  7339. if test "x$ac_ct_OBJDUMP" = x; then
  7340. OBJDUMP="false"
  7341. else
  7342. case $cross_compiling:$ac_tool_warned in
  7343. yes:)
  7344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7346. ac_tool_warned=yes ;;
  7347. esac
  7348. OBJDUMP=$ac_ct_OBJDUMP
  7349. fi
  7350. else
  7351. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7352. fi
  7353. test -z "$OBJDUMP" && OBJDUMP=objdump
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7355. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7356. if ${lt_cv_deplibs_check_method+:} false; then :
  7357. $as_echo_n "(cached) " >&6
  7358. else
  7359. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7360. lt_cv_file_magic_test_file=
  7361. lt_cv_deplibs_check_method='unknown'
  7362. # Need to set the preceding variable on all platforms that support
  7363. # interlibrary dependencies.
  7364. # 'none' -- dependencies not supported.
  7365. # 'unknown' -- same as none, but documents that we really don't know.
  7366. # 'pass_all' -- all dependencies passed with no checks.
  7367. # 'test_compile' -- check by making test program.
  7368. # 'file_magic [[regex]]' -- check by looking for files in library path
  7369. # that responds to the $file_magic_cmd with a given extended regex.
  7370. # If you have 'file' or equivalent on your system and you're not sure
  7371. # whether 'pass_all' will *always* work, you probably want this one.
  7372. case $host_os in
  7373. aix[4-9]*)
  7374. lt_cv_deplibs_check_method=pass_all
  7375. ;;
  7376. beos*)
  7377. lt_cv_deplibs_check_method=pass_all
  7378. ;;
  7379. bsdi[45]*)
  7380. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7381. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7382. lt_cv_file_magic_test_file=/shlib/libc.so
  7383. ;;
  7384. cygwin*)
  7385. # func_win32_libid is a shell function defined in ltmain.sh
  7386. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7387. lt_cv_file_magic_cmd='func_win32_libid'
  7388. ;;
  7389. mingw* | pw32*)
  7390. # Base MSYS/MinGW do not provide the 'file' command needed by
  7391. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7392. # unless we find 'file', for example because we are cross-compiling.
  7393. if ( file / ) >/dev/null 2>&1; then
  7394. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7395. lt_cv_file_magic_cmd='func_win32_libid'
  7396. else
  7397. # Keep this pattern in sync with the one in func_win32_libid.
  7398. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7399. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7400. fi
  7401. ;;
  7402. cegcc*)
  7403. # use the weaker test based on 'objdump'. See mingw*.
  7404. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7405. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7406. ;;
  7407. darwin* | rhapsody*)
  7408. lt_cv_deplibs_check_method=pass_all
  7409. ;;
  7410. freebsd* | dragonfly*)
  7411. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7412. case $host_cpu in
  7413. i*86 )
  7414. # Not sure whether the presence of OpenBSD here was a mistake.
  7415. # Let's accept both of them until this is cleared up.
  7416. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7417. lt_cv_file_magic_cmd=/usr/bin/file
  7418. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7419. ;;
  7420. esac
  7421. else
  7422. lt_cv_deplibs_check_method=pass_all
  7423. fi
  7424. ;;
  7425. haiku*)
  7426. lt_cv_deplibs_check_method=pass_all
  7427. ;;
  7428. hpux10.20* | hpux11*)
  7429. lt_cv_file_magic_cmd=/usr/bin/file
  7430. case $host_cpu in
  7431. ia64*)
  7432. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7433. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7434. ;;
  7435. hppa*64*)
  7436. 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]'
  7437. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7438. ;;
  7439. *)
  7440. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7441. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7442. ;;
  7443. esac
  7444. ;;
  7445. interix[3-9]*)
  7446. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7447. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7448. ;;
  7449. irix5* | irix6* | nonstopux*)
  7450. case $LD in
  7451. *-32|*"-32 ") libmagic=32-bit;;
  7452. *-n32|*"-n32 ") libmagic=N32;;
  7453. *-64|*"-64 ") libmagic=64-bit;;
  7454. *) libmagic=never-match;;
  7455. esac
  7456. lt_cv_deplibs_check_method=pass_all
  7457. ;;
  7458. # This must be glibc/ELF.
  7459. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7460. lt_cv_deplibs_check_method=pass_all
  7461. ;;
  7462. netbsd* | netbsdelf*-gnu)
  7463. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7464. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7465. else
  7466. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7467. fi
  7468. ;;
  7469. newos6*)
  7470. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7471. lt_cv_file_magic_cmd=/usr/bin/file
  7472. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7473. ;;
  7474. *nto* | *qnx*)
  7475. lt_cv_deplibs_check_method=pass_all
  7476. ;;
  7477. openbsd* | bitrig*)
  7478. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  7479. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7480. else
  7481. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7482. fi
  7483. ;;
  7484. osf3* | osf4* | osf5*)
  7485. lt_cv_deplibs_check_method=pass_all
  7486. ;;
  7487. rdos*)
  7488. lt_cv_deplibs_check_method=pass_all
  7489. ;;
  7490. solaris*)
  7491. lt_cv_deplibs_check_method=pass_all
  7492. ;;
  7493. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7494. lt_cv_deplibs_check_method=pass_all
  7495. ;;
  7496. sysv4 | sysv4.3*)
  7497. case $host_vendor in
  7498. motorola)
  7499. 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]'
  7500. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7501. ;;
  7502. ncr)
  7503. lt_cv_deplibs_check_method=pass_all
  7504. ;;
  7505. sequent)
  7506. lt_cv_file_magic_cmd='/bin/file'
  7507. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7508. ;;
  7509. sni)
  7510. lt_cv_file_magic_cmd='/bin/file'
  7511. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7512. lt_cv_file_magic_test_file=/lib/libc.so
  7513. ;;
  7514. siemens)
  7515. lt_cv_deplibs_check_method=pass_all
  7516. ;;
  7517. pc)
  7518. lt_cv_deplibs_check_method=pass_all
  7519. ;;
  7520. esac
  7521. ;;
  7522. tpf*)
  7523. lt_cv_deplibs_check_method=pass_all
  7524. ;;
  7525. os2*)
  7526. lt_cv_deplibs_check_method=pass_all
  7527. ;;
  7528. esac
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7531. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7532. file_magic_glob=
  7533. want_nocaseglob=no
  7534. if test "$build" = "$host"; then
  7535. case $host_os in
  7536. mingw* | pw32*)
  7537. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7538. want_nocaseglob=yes
  7539. else
  7540. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7541. fi
  7542. ;;
  7543. esac
  7544. fi
  7545. file_magic_cmd=$lt_cv_file_magic_cmd
  7546. deplibs_check_method=$lt_cv_deplibs_check_method
  7547. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7548. if test -n "$ac_tool_prefix"; then
  7549. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7550. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7552. $as_echo_n "checking for $ac_word... " >&6; }
  7553. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7554. $as_echo_n "(cached) " >&6
  7555. else
  7556. if test -n "$DLLTOOL"; then
  7557. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7558. else
  7559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7560. for as_dir in $PATH
  7561. do
  7562. IFS=$as_save_IFS
  7563. test -z "$as_dir" && as_dir=.
  7564. for ac_exec_ext in '' $ac_executable_extensions; do
  7565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7566. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7568. break 2
  7569. fi
  7570. done
  7571. done
  7572. IFS=$as_save_IFS
  7573. fi
  7574. fi
  7575. DLLTOOL=$ac_cv_prog_DLLTOOL
  7576. if test -n "$DLLTOOL"; then
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7578. $as_echo "$DLLTOOL" >&6; }
  7579. else
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7581. $as_echo "no" >&6; }
  7582. fi
  7583. fi
  7584. if test -z "$ac_cv_prog_DLLTOOL"; then
  7585. ac_ct_DLLTOOL=$DLLTOOL
  7586. # Extract the first word of "dlltool", so it can be a program name with args.
  7587. set dummy dlltool; ac_word=$2
  7588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7589. $as_echo_n "checking for $ac_word... " >&6; }
  7590. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7591. $as_echo_n "(cached) " >&6
  7592. else
  7593. if test -n "$ac_ct_DLLTOOL"; then
  7594. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7595. else
  7596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7597. for as_dir in $PATH
  7598. do
  7599. IFS=$as_save_IFS
  7600. test -z "$as_dir" && as_dir=.
  7601. for ac_exec_ext in '' $ac_executable_extensions; do
  7602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7603. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7605. break 2
  7606. fi
  7607. done
  7608. done
  7609. IFS=$as_save_IFS
  7610. fi
  7611. fi
  7612. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7613. if test -n "$ac_ct_DLLTOOL"; then
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7615. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7616. else
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7618. $as_echo "no" >&6; }
  7619. fi
  7620. if test "x$ac_ct_DLLTOOL" = x; then
  7621. DLLTOOL="false"
  7622. else
  7623. case $cross_compiling:$ac_tool_warned in
  7624. yes:)
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7627. ac_tool_warned=yes ;;
  7628. esac
  7629. DLLTOOL=$ac_ct_DLLTOOL
  7630. fi
  7631. else
  7632. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7633. fi
  7634. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7636. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7637. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7641. case $host_os in
  7642. cygwin* | mingw* | pw32* | cegcc*)
  7643. # two different shell functions defined in ltmain.sh;
  7644. # decide which one to use based on capabilities of $DLLTOOL
  7645. case `$DLLTOOL --help 2>&1` in
  7646. *--identify-strict*)
  7647. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7648. ;;
  7649. *)
  7650. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7651. ;;
  7652. esac
  7653. ;;
  7654. *)
  7655. # fallback: assume linklib IS sharedlib
  7656. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  7657. ;;
  7658. esac
  7659. fi
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7661. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7662. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7663. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7664. if test -n "$ac_tool_prefix"; then
  7665. for ac_prog in ar
  7666. do
  7667. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7668. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7670. $as_echo_n "checking for $ac_word... " >&6; }
  7671. if ${ac_cv_prog_AR+:} false; then :
  7672. $as_echo_n "(cached) " >&6
  7673. else
  7674. if test -n "$AR"; then
  7675. ac_cv_prog_AR="$AR" # Let the user override the test.
  7676. else
  7677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7678. for as_dir in $PATH
  7679. do
  7680. IFS=$as_save_IFS
  7681. test -z "$as_dir" && as_dir=.
  7682. for ac_exec_ext in '' $ac_executable_extensions; do
  7683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7684. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7686. break 2
  7687. fi
  7688. done
  7689. done
  7690. IFS=$as_save_IFS
  7691. fi
  7692. fi
  7693. AR=$ac_cv_prog_AR
  7694. if test -n "$AR"; then
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7696. $as_echo "$AR" >&6; }
  7697. else
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7699. $as_echo "no" >&6; }
  7700. fi
  7701. test -n "$AR" && break
  7702. done
  7703. fi
  7704. if test -z "$AR"; then
  7705. ac_ct_AR=$AR
  7706. for ac_prog in ar
  7707. do
  7708. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7709. set dummy $ac_prog; ac_word=$2
  7710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7711. $as_echo_n "checking for $ac_word... " >&6; }
  7712. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7713. $as_echo_n "(cached) " >&6
  7714. else
  7715. if test -n "$ac_ct_AR"; then
  7716. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7717. else
  7718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7719. for as_dir in $PATH
  7720. do
  7721. IFS=$as_save_IFS
  7722. test -z "$as_dir" && as_dir=.
  7723. for ac_exec_ext in '' $ac_executable_extensions; do
  7724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7725. ac_cv_prog_ac_ct_AR="$ac_prog"
  7726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7727. break 2
  7728. fi
  7729. done
  7730. done
  7731. IFS=$as_save_IFS
  7732. fi
  7733. fi
  7734. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7735. if test -n "$ac_ct_AR"; then
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7737. $as_echo "$ac_ct_AR" >&6; }
  7738. else
  7739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7740. $as_echo "no" >&6; }
  7741. fi
  7742. test -n "$ac_ct_AR" && break
  7743. done
  7744. if test "x$ac_ct_AR" = x; then
  7745. AR="false"
  7746. else
  7747. case $cross_compiling:$ac_tool_warned in
  7748. yes:)
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7750. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7751. ac_tool_warned=yes ;;
  7752. esac
  7753. AR=$ac_ct_AR
  7754. fi
  7755. fi
  7756. : ${AR=ar}
  7757. : ${AR_FLAGS=cru}
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  7759. $as_echo_n "checking for archiver @FILE support... " >&6; }
  7760. if ${lt_cv_ar_at_file+:} false; then :
  7761. $as_echo_n "(cached) " >&6
  7762. else
  7763. lt_cv_ar_at_file=no
  7764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7765. /* end confdefs.h. */
  7766. int main (void)
  7767. {
  7768. ;
  7769. return 0;
  7770. }
  7771. _ACEOF
  7772. if ac_fn_c_try_compile "$LINENO"; then :
  7773. echo conftest.$ac_objext > conftest.lst
  7774. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  7775. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7776. (eval $lt_ar_try) 2>&5
  7777. ac_status=$?
  7778. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7779. test $ac_status = 0; }
  7780. if test 0 -eq "$ac_status"; then
  7781. # Ensure the archiver fails upon bogus file names.
  7782. rm -f conftest.$ac_objext libconftest.a
  7783. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  7784. (eval $lt_ar_try) 2>&5
  7785. ac_status=$?
  7786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7787. test $ac_status = 0; }
  7788. if test 0 -ne "$ac_status"; then
  7789. lt_cv_ar_at_file=@
  7790. fi
  7791. fi
  7792. rm -f conftest.* libconftest.a
  7793. fi
  7794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7795. fi
  7796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  7797. $as_echo "$lt_cv_ar_at_file" >&6; }
  7798. if test no = "$lt_cv_ar_at_file"; then
  7799. archiver_list_spec=
  7800. else
  7801. archiver_list_spec=$lt_cv_ar_at_file
  7802. fi
  7803. if test -n "$ac_tool_prefix"; then
  7804. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7805. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7807. $as_echo_n "checking for $ac_word... " >&6; }
  7808. if ${ac_cv_prog_STRIP+:} false; then :
  7809. $as_echo_n "(cached) " >&6
  7810. else
  7811. if test -n "$STRIP"; then
  7812. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7813. else
  7814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7815. for as_dir in $PATH
  7816. do
  7817. IFS=$as_save_IFS
  7818. test -z "$as_dir" && as_dir=.
  7819. for ac_exec_ext in '' $ac_executable_extensions; do
  7820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7821. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7823. break 2
  7824. fi
  7825. done
  7826. done
  7827. IFS=$as_save_IFS
  7828. fi
  7829. fi
  7830. STRIP=$ac_cv_prog_STRIP
  7831. if test -n "$STRIP"; then
  7832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  7833. $as_echo "$STRIP" >&6; }
  7834. else
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7836. $as_echo "no" >&6; }
  7837. fi
  7838. fi
  7839. if test -z "$ac_cv_prog_STRIP"; then
  7840. ac_ct_STRIP=$STRIP
  7841. # Extract the first word of "strip", so it can be a program name with args.
  7842. set dummy strip; ac_word=$2
  7843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7844. $as_echo_n "checking for $ac_word... " >&6; }
  7845. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  7846. $as_echo_n "(cached) " >&6
  7847. else
  7848. if test -n "$ac_ct_STRIP"; then
  7849. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7850. else
  7851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7852. for as_dir in $PATH
  7853. do
  7854. IFS=$as_save_IFS
  7855. test -z "$as_dir" && as_dir=.
  7856. for ac_exec_ext in '' $ac_executable_extensions; do
  7857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7858. ac_cv_prog_ac_ct_STRIP="strip"
  7859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7860. break 2
  7861. fi
  7862. done
  7863. done
  7864. IFS=$as_save_IFS
  7865. fi
  7866. fi
  7867. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7868. if test -n "$ac_ct_STRIP"; then
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  7870. $as_echo "$ac_ct_STRIP" >&6; }
  7871. else
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7873. $as_echo "no" >&6; }
  7874. fi
  7875. if test "x$ac_ct_STRIP" = x; then
  7876. STRIP=":"
  7877. else
  7878. case $cross_compiling:$ac_tool_warned in
  7879. yes:)
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7882. ac_tool_warned=yes ;;
  7883. esac
  7884. STRIP=$ac_ct_STRIP
  7885. fi
  7886. else
  7887. STRIP="$ac_cv_prog_STRIP"
  7888. fi
  7889. test -z "$STRIP" && STRIP=:
  7890. if test -n "$ac_tool_prefix"; then
  7891. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7892. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. $as_echo_n "checking for $ac_word... " >&6; }
  7895. if ${ac_cv_prog_RANLIB+:} false; then :
  7896. $as_echo_n "(cached) " >&6
  7897. else
  7898. if test -n "$RANLIB"; then
  7899. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7900. else
  7901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7902. for as_dir in $PATH
  7903. do
  7904. IFS=$as_save_IFS
  7905. test -z "$as_dir" && as_dir=.
  7906. for ac_exec_ext in '' $ac_executable_extensions; do
  7907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7908. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7910. break 2
  7911. fi
  7912. done
  7913. done
  7914. IFS=$as_save_IFS
  7915. fi
  7916. fi
  7917. RANLIB=$ac_cv_prog_RANLIB
  7918. if test -n "$RANLIB"; then
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7920. $as_echo "$RANLIB" >&6; }
  7921. else
  7922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7923. $as_echo "no" >&6; }
  7924. fi
  7925. fi
  7926. if test -z "$ac_cv_prog_RANLIB"; then
  7927. ac_ct_RANLIB=$RANLIB
  7928. # Extract the first word of "ranlib", so it can be a program name with args.
  7929. set dummy ranlib; ac_word=$2
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7931. $as_echo_n "checking for $ac_word... " >&6; }
  7932. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  7933. $as_echo_n "(cached) " >&6
  7934. else
  7935. if test -n "$ac_ct_RANLIB"; then
  7936. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7937. else
  7938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7939. for as_dir in $PATH
  7940. do
  7941. IFS=$as_save_IFS
  7942. test -z "$as_dir" && as_dir=.
  7943. for ac_exec_ext in '' $ac_executable_extensions; do
  7944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7945. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7947. break 2
  7948. fi
  7949. done
  7950. done
  7951. IFS=$as_save_IFS
  7952. fi
  7953. fi
  7954. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7955. if test -n "$ac_ct_RANLIB"; then
  7956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  7957. $as_echo "$ac_ct_RANLIB" >&6; }
  7958. else
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7960. $as_echo "no" >&6; }
  7961. fi
  7962. if test "x$ac_ct_RANLIB" = x; then
  7963. RANLIB=":"
  7964. else
  7965. case $cross_compiling:$ac_tool_warned in
  7966. yes:)
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7969. ac_tool_warned=yes ;;
  7970. esac
  7971. RANLIB=$ac_ct_RANLIB
  7972. fi
  7973. else
  7974. RANLIB="$ac_cv_prog_RANLIB"
  7975. fi
  7976. test -z "$RANLIB" && RANLIB=:
  7977. # Determine commands to create old-style static archives.
  7978. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  7979. old_postinstall_cmds='chmod 644 $oldlib'
  7980. old_postuninstall_cmds=
  7981. if test -n "$RANLIB"; then
  7982. case $host_os in
  7983. bitrig* | openbsd*)
  7984. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  7985. ;;
  7986. *)
  7987. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  7988. ;;
  7989. esac
  7990. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  7991. fi
  7992. case $host_os in
  7993. darwin*)
  7994. lock_old_archive_extraction=yes ;;
  7995. *)
  7996. lock_old_archive_extraction=no ;;
  7997. esac
  7998. # If no C compiler was specified, use CC.
  7999. LTCC=${LTCC-"$CC"}
  8000. # If no C compiler flags were specified, use CFLAGS.
  8001. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8002. # Allow CC to be a program name with arguments.
  8003. compiler=$CC
  8004. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8006. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8007. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8008. $as_echo_n "(cached) " >&6
  8009. else
  8010. # These are sane defaults that work on at least a few old systems.
  8011. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8012. # Character class describing NM global symbol codes.
  8013. symcode='[BCDEGRST]'
  8014. # Regexp to match symbols that can be accessed directly from C.
  8015. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8016. # Define system-specific variables.
  8017. case $host_os in
  8018. aix*)
  8019. symcode='[BCDT]'
  8020. ;;
  8021. cygwin* | mingw* | pw32* | cegcc*)
  8022. symcode='[ABCDGISTW]'
  8023. ;;
  8024. hpux*)
  8025. if test ia64 = "$host_cpu"; then
  8026. symcode='[ABCDEGRST]'
  8027. fi
  8028. ;;
  8029. irix* | nonstopux*)
  8030. symcode='[BCDEGRST]'
  8031. ;;
  8032. osf*)
  8033. symcode='[BCDEGQRST]'
  8034. ;;
  8035. solaris*)
  8036. symcode='[BDRT]'
  8037. ;;
  8038. sco3.2v5*)
  8039. symcode='[DT]'
  8040. ;;
  8041. sysv4.2uw2*)
  8042. symcode='[DT]'
  8043. ;;
  8044. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8045. symcode='[ABDT]'
  8046. ;;
  8047. sysv4)
  8048. symcode='[DFNSTU]'
  8049. ;;
  8050. esac
  8051. # If we're using GNU nm, then use its standard symbol codes.
  8052. case `$NM -V 2>&1` in
  8053. *GNU* | *'with BFD'*)
  8054. symcode='[ABCDGIRSTW]' ;;
  8055. esac
  8056. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8057. # Gets list of data symbols to import.
  8058. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8059. # Adjust the below global symbol transforms to fixup imported variables.
  8060. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8061. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  8062. lt_c_name_lib_hook="\
  8063. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  8064. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  8065. else
  8066. # Disable hooks by default.
  8067. lt_cv_sys_global_symbol_to_import=
  8068. lt_cdecl_hook=
  8069. lt_c_name_hook=
  8070. lt_c_name_lib_hook=
  8071. fi
  8072. # Transform an extracted symbol line into a proper C declaration.
  8073. # Some systems (esp. on ia64) link data and code symbols differently,
  8074. # so use this general approach.
  8075. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  8076. $lt_cdecl_hook\
  8077. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  8078. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  8079. # Transform an extracted symbol line into symbol name and symbol address
  8080. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  8081. $lt_c_name_hook\
  8082. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8083. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  8084. # Transform an extracted symbol line into symbol name with lib prefix and
  8085. # symbol address.
  8086. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  8087. $lt_c_name_lib_hook\
  8088. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  8089. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  8090. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  8091. # Handle CRLF in mingw tool chain
  8092. opt_cr=
  8093. case $build_os in
  8094. mingw*)
  8095. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8096. ;;
  8097. esac
  8098. # Try without a prefix underscore, then with it.
  8099. for ac_symprfx in "" "_"; do
  8100. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8101. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8102. # Write the raw and C identifiers.
  8103. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8104. # Fake it for dumpbin and say T for any non-static function,
  8105. # D for any global variable and I for any imported variable.
  8106. # Also find C++ and __fastcall symbols from MSVC++,
  8107. # which start with @ or ?.
  8108. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8109. " {last_section=section; section=\$ 3};"\
  8110. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8111. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8112. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  8113. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  8114. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  8115. " \$ 0!~/External *\|/{next};"\
  8116. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8117. " {if(hide[section]) next};"\
  8118. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  8119. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  8120. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  8121. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  8122. " ' prfx=^$ac_symprfx"
  8123. else
  8124. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8125. fi
  8126. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8127. # Check to see that the pipe works correctly.
  8128. pipe_works=no
  8129. rm -f conftest*
  8130. cat > conftest.$ac_ext <<_LT_EOF
  8131. #ifdef __cplusplus
  8132. extern "C" {
  8133. #endif
  8134. char nm_test_var;
  8135. void nm_test_func(void);
  8136. void nm_test_func(void){}
  8137. #ifdef __cplusplus
  8138. }
  8139. #endif
  8140. int main(){nm_test_var='a';nm_test_func();return(0);}
  8141. _LT_EOF
  8142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8143. (eval $ac_compile) 2>&5
  8144. ac_status=$?
  8145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8146. test $ac_status = 0; }; then
  8147. # Now try to grab the symbols.
  8148. nlist=conftest.nm
  8149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8150. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8151. ac_status=$?
  8152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8153. test $ac_status = 0; } && test -s "$nlist"; then
  8154. # Try sorting and uniquifying the output.
  8155. if sort "$nlist" | uniq > "$nlist"T; then
  8156. mv -f "$nlist"T "$nlist"
  8157. else
  8158. rm -f "$nlist"T
  8159. fi
  8160. # Make sure that we snagged all the symbols we need.
  8161. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8162. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8163. cat <<_LT_EOF > conftest.$ac_ext
  8164. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8165. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  8166. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  8167. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8168. # define LT_DLSYM_CONST
  8169. #elif defined __osf__
  8170. /* This system does not cope well with relocations in const data. */
  8171. # define LT_DLSYM_CONST
  8172. #else
  8173. # define LT_DLSYM_CONST const
  8174. #endif
  8175. #ifdef __cplusplus
  8176. extern "C" {
  8177. #endif
  8178. _LT_EOF
  8179. # Now generate the symbol file.
  8180. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8181. cat <<_LT_EOF >> conftest.$ac_ext
  8182. /* The mapping between symbol names and symbols. */
  8183. LT_DLSYM_CONST struct {
  8184. const char *name;
  8185. void *address;
  8186. }
  8187. lt__PROGRAM__LTX_preloaded_symbols[] =
  8188. {
  8189. { "@PROGRAM@", (void *) 0 },
  8190. _LT_EOF
  8191. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8192. cat <<\_LT_EOF >> conftest.$ac_ext
  8193. {0, (void *) 0}
  8194. };
  8195. /* This works around a problem in FreeBSD linker */
  8196. #ifdef FREEBSD_WORKAROUND
  8197. static const void *lt_preloaded_setup() {
  8198. return lt__PROGRAM__LTX_preloaded_symbols;
  8199. }
  8200. #endif
  8201. #ifdef __cplusplus
  8202. }
  8203. #endif
  8204. _LT_EOF
  8205. # Now try linking the two files.
  8206. mv -f conftest.$ac_objext conftstm.$ac_objext
  8207. lt_globsym_save_LIBS=$LIBS
  8208. lt_globsym_save_CFLAGS=$CFLAGS
  8209. LIBS=conftstm.$ac_objext
  8210. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8211. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8212. (eval $ac_link) 2>&5
  8213. ac_status=$?
  8214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8215. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  8216. pipe_works=yes
  8217. fi
  8218. LIBS=$lt_globsym_save_LIBS
  8219. CFLAGS=$lt_globsym_save_CFLAGS
  8220. else
  8221. echo "cannot find nm_test_func in $nlist" >&5
  8222. fi
  8223. else
  8224. echo "cannot find nm_test_var in $nlist" >&5
  8225. fi
  8226. else
  8227. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8228. fi
  8229. else
  8230. echo "$progname: failed program was:" >&5
  8231. cat conftest.$ac_ext >&5
  8232. fi
  8233. rm -rf conftest* conftst*
  8234. # Do not use the global_symbol_pipe unless it works.
  8235. if test yes = "$pipe_works"; then
  8236. break
  8237. else
  8238. lt_cv_sys_global_symbol_pipe=
  8239. fi
  8240. done
  8241. fi
  8242. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8243. lt_cv_sys_global_symbol_to_cdecl=
  8244. fi
  8245. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8247. $as_echo "failed" >&6; }
  8248. else
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8250. $as_echo "ok" >&6; }
  8251. fi
  8252. # Response file support.
  8253. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8254. nm_file_list_spec='@'
  8255. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8256. nm_file_list_spec='@'
  8257. fi
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8259. $as_echo_n "checking for sysroot... " >&6; }
  8260. # Check whether --with-sysroot was given.
  8261. if test "${with_sysroot+set}" = set; then :
  8262. withval=$with_sysroot;
  8263. else
  8264. with_sysroot=no
  8265. fi
  8266. lt_sysroot=
  8267. case $with_sysroot in #(
  8268. yes)
  8269. if test yes = "$GCC"; then
  8270. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8271. fi
  8272. ;; #(
  8273. /*)
  8274. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8275. ;; #(
  8276. no|'')
  8277. ;; #(
  8278. *)
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  8280. $as_echo "$with_sysroot" >&6; }
  8281. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8282. ;;
  8283. esac
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8285. $as_echo "${lt_sysroot:-no}" >&6; }
  8286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  8287. $as_echo_n "checking for a working dd... " >&6; }
  8288. if ${ac_cv_path_lt_DD+:} false; then :
  8289. $as_echo_n "(cached) " >&6
  8290. else
  8291. printf 0123456789abcdef0123456789abcdef >conftest.i
  8292. cat conftest.i conftest.i >conftest2.i
  8293. : ${lt_DD:=$DD}
  8294. if test -z "$lt_DD"; then
  8295. ac_path_lt_DD_found=false
  8296. # Loop through the user's path and test for each of PROGNAME-LIST
  8297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8298. for as_dir in $PATH
  8299. do
  8300. IFS=$as_save_IFS
  8301. test -z "$as_dir" && as_dir=.
  8302. for ac_prog in dd; do
  8303. for ac_exec_ext in '' $ac_executable_extensions; do
  8304. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  8305. as_fn_executable_p "$ac_path_lt_DD" || continue
  8306. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8307. cmp -s conftest.i conftest.out \
  8308. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  8309. fi
  8310. $ac_path_lt_DD_found && break 3
  8311. done
  8312. done
  8313. done
  8314. IFS=$as_save_IFS
  8315. if test -z "$ac_cv_path_lt_DD"; then
  8316. :
  8317. fi
  8318. else
  8319. ac_cv_path_lt_DD=$lt_DD
  8320. fi
  8321. rm -f conftest.i conftest2.i conftest.out
  8322. fi
  8323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  8324. $as_echo "$ac_cv_path_lt_DD" >&6; }
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  8326. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  8327. if ${lt_cv_truncate_bin+:} false; then :
  8328. $as_echo_n "(cached) " >&6
  8329. else
  8330. printf 0123456789abcdef0123456789abcdef >conftest.i
  8331. cat conftest.i conftest.i >conftest2.i
  8332. lt_cv_truncate_bin=
  8333. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  8334. cmp -s conftest.i conftest.out \
  8335. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  8336. fi
  8337. rm -f conftest.i conftest2.i conftest.out
  8338. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  8339. fi
  8340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  8341. $as_echo "$lt_cv_truncate_bin" >&6; }
  8342. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  8343. func_cc_basename ()
  8344. {
  8345. for cc_temp in $*""; do
  8346. case $cc_temp in
  8347. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8348. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8349. \-*) ;;
  8350. *) break;;
  8351. esac
  8352. done
  8353. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8354. }
  8355. # Check whether --enable-libtool-lock was given.
  8356. if test "${enable_libtool_lock+set}" = set; then :
  8357. enableval=$enable_libtool_lock;
  8358. fi
  8359. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  8360. # Some flags need to be propagated to the compiler or linker for good
  8361. # libtool support.
  8362. case $host in
  8363. ia64-*-hpux*)
  8364. # Find out what ABI is being produced by ac_compile, and set mode
  8365. # options accordingly.
  8366. echo 'int i;' > conftest.$ac_ext
  8367. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8368. (eval $ac_compile) 2>&5
  8369. ac_status=$?
  8370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8371. test $ac_status = 0; }; then
  8372. case `/usr/bin/file conftest.$ac_objext` in
  8373. *ELF-32*)
  8374. HPUX_IA64_MODE=32
  8375. ;;
  8376. *ELF-64*)
  8377. HPUX_IA64_MODE=64
  8378. ;;
  8379. esac
  8380. fi
  8381. rm -rf conftest*
  8382. ;;
  8383. *-*-irix6*)
  8384. # Find out what ABI is being produced by ac_compile, and set linker
  8385. # options accordingly.
  8386. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8387. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8388. (eval $ac_compile) 2>&5
  8389. ac_status=$?
  8390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8391. test $ac_status = 0; }; then
  8392. if test yes = "$lt_cv_prog_gnu_ld"; then
  8393. case `/usr/bin/file conftest.$ac_objext` in
  8394. *32-bit*)
  8395. LD="${LD-ld} -melf32bsmip"
  8396. ;;
  8397. *N32*)
  8398. LD="${LD-ld} -melf32bmipn32"
  8399. ;;
  8400. *64-bit*)
  8401. LD="${LD-ld} -melf64bmip"
  8402. ;;
  8403. esac
  8404. else
  8405. case `/usr/bin/file conftest.$ac_objext` in
  8406. *32-bit*)
  8407. LD="${LD-ld} -32"
  8408. ;;
  8409. *N32*)
  8410. LD="${LD-ld} -n32"
  8411. ;;
  8412. *64-bit*)
  8413. LD="${LD-ld} -64"
  8414. ;;
  8415. esac
  8416. fi
  8417. fi
  8418. rm -rf conftest*
  8419. ;;
  8420. mips64*-*linux*)
  8421. # Find out what ABI is being produced by ac_compile, and set linker
  8422. # options accordingly.
  8423. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8425. (eval $ac_compile) 2>&5
  8426. ac_status=$?
  8427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8428. test $ac_status = 0; }; then
  8429. emul=elf
  8430. case `/usr/bin/file conftest.$ac_objext` in
  8431. *32-bit*)
  8432. emul="${emul}32"
  8433. ;;
  8434. *64-bit*)
  8435. emul="${emul}64"
  8436. ;;
  8437. esac
  8438. case `/usr/bin/file conftest.$ac_objext` in
  8439. *MSB*)
  8440. emul="${emul}btsmip"
  8441. ;;
  8442. *LSB*)
  8443. emul="${emul}ltsmip"
  8444. ;;
  8445. esac
  8446. case `/usr/bin/file conftest.$ac_objext` in
  8447. *N32*)
  8448. emul="${emul}n32"
  8449. ;;
  8450. esac
  8451. LD="${LD-ld} -m $emul"
  8452. fi
  8453. rm -rf conftest*
  8454. ;;
  8455. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8456. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8457. # Find out what ABI is being produced by ac_compile, and set linker
  8458. # options accordingly. Note that the listed cases only cover the
  8459. # situations where additional linker options are needed (such as when
  8460. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  8461. # vice versa); the common cases where no linker options are needed do
  8462. # not appear in the list.
  8463. echo 'int i;' > conftest.$ac_ext
  8464. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8465. (eval $ac_compile) 2>&5
  8466. ac_status=$?
  8467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8468. test $ac_status = 0; }; then
  8469. case `/usr/bin/file conftest.o` in
  8470. *32-bit*)
  8471. case $host in
  8472. x86_64-*kfreebsd*-gnu)
  8473. LD="${LD-ld} -m elf_i386_fbsd"
  8474. ;;
  8475. x86_64-*linux*)
  8476. case `/usr/bin/file conftest.o` in
  8477. *x86-64*)
  8478. LD="${LD-ld} -m elf32_x86_64"
  8479. ;;
  8480. *)
  8481. LD="${LD-ld} -m elf_i386"
  8482. ;;
  8483. esac
  8484. ;;
  8485. powerpc64le-*linux*)
  8486. LD="${LD-ld} -m elf32lppclinux"
  8487. ;;
  8488. powerpc64-*linux*)
  8489. LD="${LD-ld} -m elf32ppclinux"
  8490. ;;
  8491. s390x-*linux*)
  8492. LD="${LD-ld} -m elf_s390"
  8493. ;;
  8494. sparc64-*linux*)
  8495. LD="${LD-ld} -m elf32_sparc"
  8496. ;;
  8497. esac
  8498. ;;
  8499. *64-bit*)
  8500. case $host in
  8501. x86_64-*kfreebsd*-gnu)
  8502. LD="${LD-ld} -m elf_x86_64_fbsd"
  8503. ;;
  8504. x86_64-*linux*)
  8505. LD="${LD-ld} -m elf_x86_64"
  8506. ;;
  8507. powerpcle-*linux*)
  8508. LD="${LD-ld} -m elf64lppc"
  8509. ;;
  8510. powerpc-*linux*)
  8511. LD="${LD-ld} -m elf64ppc"
  8512. ;;
  8513. s390*-*linux*|s390*-*tpf*)
  8514. LD="${LD-ld} -m elf64_s390"
  8515. ;;
  8516. sparc*-*linux*)
  8517. LD="${LD-ld} -m elf64_sparc"
  8518. ;;
  8519. esac
  8520. ;;
  8521. esac
  8522. fi
  8523. rm -rf conftest*
  8524. ;;
  8525. *-*-sco3.2v5*)
  8526. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8527. SAVE_CFLAGS=$CFLAGS
  8528. CFLAGS="$CFLAGS -belf"
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8530. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8531. if ${lt_cv_cc_needs_belf+:} false; then :
  8532. $as_echo_n "(cached) " >&6
  8533. else
  8534. ac_ext=c
  8535. ac_cpp='$CPP $CPPFLAGS'
  8536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8540. /* end confdefs.h. */
  8541. int main (void)
  8542. {
  8543. ;
  8544. return 0;
  8545. }
  8546. _ACEOF
  8547. if ac_fn_c_try_link "$LINENO"; then :
  8548. lt_cv_cc_needs_belf=yes
  8549. else
  8550. lt_cv_cc_needs_belf=no
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext \
  8553. conftest$ac_exeext conftest.$ac_ext
  8554. ac_ext=c
  8555. ac_cpp='$CPP $CPPFLAGS'
  8556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8559. fi
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8561. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8562. if test yes != "$lt_cv_cc_needs_belf"; then
  8563. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8564. CFLAGS=$SAVE_CFLAGS
  8565. fi
  8566. ;;
  8567. *-*solaris*)
  8568. # Find out what ABI is being produced by ac_compile, and set linker
  8569. # options accordingly.
  8570. echo 'int i;' > conftest.$ac_ext
  8571. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8572. (eval $ac_compile) 2>&5
  8573. ac_status=$?
  8574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8575. test $ac_status = 0; }; then
  8576. case `/usr/bin/file conftest.o` in
  8577. *64-bit*)
  8578. case $lt_cv_prog_gnu_ld in
  8579. yes*)
  8580. case $host in
  8581. i?86-*-solaris*|x86_64-*-solaris*)
  8582. LD="${LD-ld} -m elf_x86_64"
  8583. ;;
  8584. sparc*-*-solaris*)
  8585. LD="${LD-ld} -m elf64_sparc"
  8586. ;;
  8587. esac
  8588. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8589. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8590. LD=${LD-ld}_sol2
  8591. fi
  8592. ;;
  8593. *)
  8594. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8595. LD="${LD-ld} -64"
  8596. fi
  8597. ;;
  8598. esac
  8599. ;;
  8600. esac
  8601. fi
  8602. rm -rf conftest*
  8603. ;;
  8604. esac
  8605. need_locks=$enable_libtool_lock
  8606. if test -n "$ac_tool_prefix"; then
  8607. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8608. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8610. $as_echo_n "checking for $ac_word... " >&6; }
  8611. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8612. $as_echo_n "(cached) " >&6
  8613. else
  8614. if test -n "$MANIFEST_TOOL"; then
  8615. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8616. else
  8617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8618. for as_dir in $PATH
  8619. do
  8620. IFS=$as_save_IFS
  8621. test -z "$as_dir" && as_dir=.
  8622. for ac_exec_ext in '' $ac_executable_extensions; do
  8623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8624. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8626. break 2
  8627. fi
  8628. done
  8629. done
  8630. IFS=$as_save_IFS
  8631. fi
  8632. fi
  8633. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8634. if test -n "$MANIFEST_TOOL"; then
  8635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8636. $as_echo "$MANIFEST_TOOL" >&6; }
  8637. else
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8639. $as_echo "no" >&6; }
  8640. fi
  8641. fi
  8642. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8643. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8644. # Extract the first word of "mt", so it can be a program name with args.
  8645. set dummy mt; ac_word=$2
  8646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8647. $as_echo_n "checking for $ac_word... " >&6; }
  8648. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8649. $as_echo_n "(cached) " >&6
  8650. else
  8651. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8652. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8653. else
  8654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8655. for as_dir in $PATH
  8656. do
  8657. IFS=$as_save_IFS
  8658. test -z "$as_dir" && as_dir=.
  8659. for ac_exec_ext in '' $ac_executable_extensions; do
  8660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8661. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8663. break 2
  8664. fi
  8665. done
  8666. done
  8667. IFS=$as_save_IFS
  8668. fi
  8669. fi
  8670. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8671. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8673. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8674. else
  8675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8676. $as_echo "no" >&6; }
  8677. fi
  8678. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8679. MANIFEST_TOOL=":"
  8680. else
  8681. case $cross_compiling:$ac_tool_warned in
  8682. yes:)
  8683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8685. ac_tool_warned=yes ;;
  8686. esac
  8687. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8688. fi
  8689. else
  8690. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8691. fi
  8692. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8694. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8695. if ${lt_cv_path_mainfest_tool+:} false; then :
  8696. $as_echo_n "(cached) " >&6
  8697. else
  8698. lt_cv_path_mainfest_tool=no
  8699. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8700. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8701. cat conftest.err >&5
  8702. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8703. lt_cv_path_mainfest_tool=yes
  8704. fi
  8705. rm -f conftest*
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8708. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8709. if test yes != "$lt_cv_path_mainfest_tool"; then
  8710. MANIFEST_TOOL=:
  8711. fi
  8712. case $host_os in
  8713. rhapsody* | darwin*)
  8714. if test -n "$ac_tool_prefix"; then
  8715. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8716. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8718. $as_echo_n "checking for $ac_word... " >&6; }
  8719. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8720. $as_echo_n "(cached) " >&6
  8721. else
  8722. if test -n "$DSYMUTIL"; then
  8723. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8724. else
  8725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8726. for as_dir in $PATH
  8727. do
  8728. IFS=$as_save_IFS
  8729. test -z "$as_dir" && as_dir=.
  8730. for ac_exec_ext in '' $ac_executable_extensions; do
  8731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8732. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8734. break 2
  8735. fi
  8736. done
  8737. done
  8738. IFS=$as_save_IFS
  8739. fi
  8740. fi
  8741. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8742. if test -n "$DSYMUTIL"; then
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8744. $as_echo "$DSYMUTIL" >&6; }
  8745. else
  8746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8747. $as_echo "no" >&6; }
  8748. fi
  8749. fi
  8750. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8751. ac_ct_DSYMUTIL=$DSYMUTIL
  8752. # Extract the first word of "dsymutil", so it can be a program name with args.
  8753. set dummy dsymutil; ac_word=$2
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8755. $as_echo_n "checking for $ac_word... " >&6; }
  8756. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8757. $as_echo_n "(cached) " >&6
  8758. else
  8759. if test -n "$ac_ct_DSYMUTIL"; then
  8760. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8761. else
  8762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8763. for as_dir in $PATH
  8764. do
  8765. IFS=$as_save_IFS
  8766. test -z "$as_dir" && as_dir=.
  8767. for ac_exec_ext in '' $ac_executable_extensions; do
  8768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8769. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8771. break 2
  8772. fi
  8773. done
  8774. done
  8775. IFS=$as_save_IFS
  8776. fi
  8777. fi
  8778. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8779. if test -n "$ac_ct_DSYMUTIL"; then
  8780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8781. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8782. else
  8783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8784. $as_echo "no" >&6; }
  8785. fi
  8786. if test "x$ac_ct_DSYMUTIL" = x; then
  8787. DSYMUTIL=":"
  8788. else
  8789. case $cross_compiling:$ac_tool_warned in
  8790. yes:)
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8793. ac_tool_warned=yes ;;
  8794. esac
  8795. DSYMUTIL=$ac_ct_DSYMUTIL
  8796. fi
  8797. else
  8798. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8799. fi
  8800. if test -n "$ac_tool_prefix"; then
  8801. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8802. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8804. $as_echo_n "checking for $ac_word... " >&6; }
  8805. if ${ac_cv_prog_NMEDIT+:} false; then :
  8806. $as_echo_n "(cached) " >&6
  8807. else
  8808. if test -n "$NMEDIT"; then
  8809. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8810. else
  8811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8812. for as_dir in $PATH
  8813. do
  8814. IFS=$as_save_IFS
  8815. test -z "$as_dir" && as_dir=.
  8816. for ac_exec_ext in '' $ac_executable_extensions; do
  8817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8818. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8820. break 2
  8821. fi
  8822. done
  8823. done
  8824. IFS=$as_save_IFS
  8825. fi
  8826. fi
  8827. NMEDIT=$ac_cv_prog_NMEDIT
  8828. if test -n "$NMEDIT"; then
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8830. $as_echo "$NMEDIT" >&6; }
  8831. else
  8832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8833. $as_echo "no" >&6; }
  8834. fi
  8835. fi
  8836. if test -z "$ac_cv_prog_NMEDIT"; then
  8837. ac_ct_NMEDIT=$NMEDIT
  8838. # Extract the first word of "nmedit", so it can be a program name with args.
  8839. set dummy nmedit; ac_word=$2
  8840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8841. $as_echo_n "checking for $ac_word... " >&6; }
  8842. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8843. $as_echo_n "(cached) " >&6
  8844. else
  8845. if test -n "$ac_ct_NMEDIT"; then
  8846. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8847. else
  8848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8849. for as_dir in $PATH
  8850. do
  8851. IFS=$as_save_IFS
  8852. test -z "$as_dir" && as_dir=.
  8853. for ac_exec_ext in '' $ac_executable_extensions; do
  8854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8855. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8857. break 2
  8858. fi
  8859. done
  8860. done
  8861. IFS=$as_save_IFS
  8862. fi
  8863. fi
  8864. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8865. if test -n "$ac_ct_NMEDIT"; then
  8866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8867. $as_echo "$ac_ct_NMEDIT" >&6; }
  8868. else
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8870. $as_echo "no" >&6; }
  8871. fi
  8872. if test "x$ac_ct_NMEDIT" = x; then
  8873. NMEDIT=":"
  8874. else
  8875. case $cross_compiling:$ac_tool_warned in
  8876. yes:)
  8877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8879. ac_tool_warned=yes ;;
  8880. esac
  8881. NMEDIT=$ac_ct_NMEDIT
  8882. fi
  8883. else
  8884. NMEDIT="$ac_cv_prog_NMEDIT"
  8885. fi
  8886. if test -n "$ac_tool_prefix"; then
  8887. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  8888. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  8889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8890. $as_echo_n "checking for $ac_word... " >&6; }
  8891. if ${ac_cv_prog_LIPO+:} false; then :
  8892. $as_echo_n "(cached) " >&6
  8893. else
  8894. if test -n "$LIPO"; then
  8895. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  8896. else
  8897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8898. for as_dir in $PATH
  8899. do
  8900. IFS=$as_save_IFS
  8901. test -z "$as_dir" && as_dir=.
  8902. for ac_exec_ext in '' $ac_executable_extensions; do
  8903. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8904. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  8905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8906. break 2
  8907. fi
  8908. done
  8909. done
  8910. IFS=$as_save_IFS
  8911. fi
  8912. fi
  8913. LIPO=$ac_cv_prog_LIPO
  8914. if test -n "$LIPO"; then
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  8916. $as_echo "$LIPO" >&6; }
  8917. else
  8918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8919. $as_echo "no" >&6; }
  8920. fi
  8921. fi
  8922. if test -z "$ac_cv_prog_LIPO"; then
  8923. ac_ct_LIPO=$LIPO
  8924. # Extract the first word of "lipo", so it can be a program name with args.
  8925. set dummy lipo; ac_word=$2
  8926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8927. $as_echo_n "checking for $ac_word... " >&6; }
  8928. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  8929. $as_echo_n "(cached) " >&6
  8930. else
  8931. if test -n "$ac_ct_LIPO"; then
  8932. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  8933. else
  8934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8935. for as_dir in $PATH
  8936. do
  8937. IFS=$as_save_IFS
  8938. test -z "$as_dir" && as_dir=.
  8939. for ac_exec_ext in '' $ac_executable_extensions; do
  8940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8941. ac_cv_prog_ac_ct_LIPO="lipo"
  8942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8943. break 2
  8944. fi
  8945. done
  8946. done
  8947. IFS=$as_save_IFS
  8948. fi
  8949. fi
  8950. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  8951. if test -n "$ac_ct_LIPO"; then
  8952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  8953. $as_echo "$ac_ct_LIPO" >&6; }
  8954. else
  8955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8956. $as_echo "no" >&6; }
  8957. fi
  8958. if test "x$ac_ct_LIPO" = x; then
  8959. LIPO=":"
  8960. else
  8961. case $cross_compiling:$ac_tool_warned in
  8962. yes:)
  8963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8965. ac_tool_warned=yes ;;
  8966. esac
  8967. LIPO=$ac_ct_LIPO
  8968. fi
  8969. else
  8970. LIPO="$ac_cv_prog_LIPO"
  8971. fi
  8972. if test -n "$ac_tool_prefix"; then
  8973. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  8974. set dummy ${ac_tool_prefix}otool; ac_word=$2
  8975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8976. $as_echo_n "checking for $ac_word... " >&6; }
  8977. if ${ac_cv_prog_OTOOL+:} false; then :
  8978. $as_echo_n "(cached) " >&6
  8979. else
  8980. if test -n "$OTOOL"; then
  8981. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  8982. else
  8983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8984. for as_dir in $PATH
  8985. do
  8986. IFS=$as_save_IFS
  8987. test -z "$as_dir" && as_dir=.
  8988. for ac_exec_ext in '' $ac_executable_extensions; do
  8989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8990. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  8991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8992. break 2
  8993. fi
  8994. done
  8995. done
  8996. IFS=$as_save_IFS
  8997. fi
  8998. fi
  8999. OTOOL=$ac_cv_prog_OTOOL
  9000. if test -n "$OTOOL"; then
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9002. $as_echo "$OTOOL" >&6; }
  9003. else
  9004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9005. $as_echo "no" >&6; }
  9006. fi
  9007. fi
  9008. if test -z "$ac_cv_prog_OTOOL"; then
  9009. ac_ct_OTOOL=$OTOOL
  9010. # Extract the first word of "otool", so it can be a program name with args.
  9011. set dummy otool; ac_word=$2
  9012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9013. $as_echo_n "checking for $ac_word... " >&6; }
  9014. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9015. $as_echo_n "(cached) " >&6
  9016. else
  9017. if test -n "$ac_ct_OTOOL"; then
  9018. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9019. else
  9020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9021. for as_dir in $PATH
  9022. do
  9023. IFS=$as_save_IFS
  9024. test -z "$as_dir" && as_dir=.
  9025. for ac_exec_ext in '' $ac_executable_extensions; do
  9026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9027. ac_cv_prog_ac_ct_OTOOL="otool"
  9028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9029. break 2
  9030. fi
  9031. done
  9032. done
  9033. IFS=$as_save_IFS
  9034. fi
  9035. fi
  9036. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9037. if test -n "$ac_ct_OTOOL"; then
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9039. $as_echo "$ac_ct_OTOOL" >&6; }
  9040. else
  9041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9042. $as_echo "no" >&6; }
  9043. fi
  9044. if test "x$ac_ct_OTOOL" = x; then
  9045. OTOOL=":"
  9046. else
  9047. case $cross_compiling:$ac_tool_warned in
  9048. yes:)
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9051. ac_tool_warned=yes ;;
  9052. esac
  9053. OTOOL=$ac_ct_OTOOL
  9054. fi
  9055. else
  9056. OTOOL="$ac_cv_prog_OTOOL"
  9057. fi
  9058. if test -n "$ac_tool_prefix"; then
  9059. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9060. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9062. $as_echo_n "checking for $ac_word... " >&6; }
  9063. if ${ac_cv_prog_OTOOL64+:} false; then :
  9064. $as_echo_n "(cached) " >&6
  9065. else
  9066. if test -n "$OTOOL64"; then
  9067. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9068. else
  9069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9070. for as_dir in $PATH
  9071. do
  9072. IFS=$as_save_IFS
  9073. test -z "$as_dir" && as_dir=.
  9074. for ac_exec_ext in '' $ac_executable_extensions; do
  9075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9076. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9078. break 2
  9079. fi
  9080. done
  9081. done
  9082. IFS=$as_save_IFS
  9083. fi
  9084. fi
  9085. OTOOL64=$ac_cv_prog_OTOOL64
  9086. if test -n "$OTOOL64"; then
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9088. $as_echo "$OTOOL64" >&6; }
  9089. else
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9091. $as_echo "no" >&6; }
  9092. fi
  9093. fi
  9094. if test -z "$ac_cv_prog_OTOOL64"; then
  9095. ac_ct_OTOOL64=$OTOOL64
  9096. # Extract the first word of "otool64", so it can be a program name with args.
  9097. set dummy otool64; ac_word=$2
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9099. $as_echo_n "checking for $ac_word... " >&6; }
  9100. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9101. $as_echo_n "(cached) " >&6
  9102. else
  9103. if test -n "$ac_ct_OTOOL64"; then
  9104. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9105. else
  9106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9107. for as_dir in $PATH
  9108. do
  9109. IFS=$as_save_IFS
  9110. test -z "$as_dir" && as_dir=.
  9111. for ac_exec_ext in '' $ac_executable_extensions; do
  9112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9113. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9115. break 2
  9116. fi
  9117. done
  9118. done
  9119. IFS=$as_save_IFS
  9120. fi
  9121. fi
  9122. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9123. if test -n "$ac_ct_OTOOL64"; then
  9124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9125. $as_echo "$ac_ct_OTOOL64" >&6; }
  9126. else
  9127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9128. $as_echo "no" >&6; }
  9129. fi
  9130. if test "x$ac_ct_OTOOL64" = x; then
  9131. OTOOL64=":"
  9132. else
  9133. case $cross_compiling:$ac_tool_warned in
  9134. yes:)
  9135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9137. ac_tool_warned=yes ;;
  9138. esac
  9139. OTOOL64=$ac_ct_OTOOL64
  9140. fi
  9141. else
  9142. OTOOL64="$ac_cv_prog_OTOOL64"
  9143. fi
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9145. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9146. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9147. $as_echo_n "(cached) " >&6
  9148. else
  9149. lt_cv_apple_cc_single_mod=no
  9150. if test -z "$LT_MULTI_MODULE"; then
  9151. # By default we will add the -single_module flag. You can override
  9152. # by either setting the environment variable LT_MULTI_MODULE
  9153. # non-empty at configure time, or by adding -multi_module to the
  9154. # link flags.
  9155. rm -rf libconftest.dylib*
  9156. echo "int foo(void){return 1;}" > conftest.c
  9157. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9158. -dynamiclib -Wl,-single_module conftest.c" >&5
  9159. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9160. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9161. _lt_result=$?
  9162. # If there is a non-empty error log, and "single_module"
  9163. # appears in it, assume the flag caused a linker warning
  9164. if test -s conftest.err && $GREP single_module conftest.err; then
  9165. cat conftest.err >&5
  9166. # Otherwise, if the output was created with a 0 exit code from
  9167. # the compiler, it worked.
  9168. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  9169. lt_cv_apple_cc_single_mod=yes
  9170. else
  9171. cat conftest.err >&5
  9172. fi
  9173. rm -rf libconftest.dylib*
  9174. rm -f conftest.*
  9175. fi
  9176. fi
  9177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9178. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9180. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9181. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9182. $as_echo_n "(cached) " >&6
  9183. else
  9184. lt_cv_ld_exported_symbols_list=no
  9185. save_LDFLAGS=$LDFLAGS
  9186. echo "_main" > conftest.sym
  9187. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9189. /* end confdefs.h. */
  9190. int main (void)
  9191. {
  9192. ;
  9193. return 0;
  9194. }
  9195. _ACEOF
  9196. if ac_fn_c_try_link "$LINENO"; then :
  9197. lt_cv_ld_exported_symbols_list=yes
  9198. else
  9199. lt_cv_ld_exported_symbols_list=no
  9200. fi
  9201. rm -f core conftest.err conftest.$ac_objext \
  9202. conftest$ac_exeext conftest.$ac_ext
  9203. LDFLAGS=$save_LDFLAGS
  9204. fi
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9206. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9208. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9209. if ${lt_cv_ld_force_load+:} false; then :
  9210. $as_echo_n "(cached) " >&6
  9211. else
  9212. lt_cv_ld_force_load=no
  9213. cat > conftest.c << _LT_EOF
  9214. int forced_loaded() { return 2;}
  9215. _LT_EOF
  9216. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9217. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9218. echo "$AR cru libconftest.a conftest.o" >&5
  9219. $AR cru libconftest.a conftest.o 2>&5
  9220. echo "$RANLIB libconftest.a" >&5
  9221. $RANLIB libconftest.a 2>&5
  9222. cat > conftest.c << _LT_EOF
  9223. int main() { return 0;}
  9224. _LT_EOF
  9225. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9226. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9227. _lt_result=$?
  9228. if test -s conftest.err && $GREP force_load conftest.err; then
  9229. cat conftest.err >&5
  9230. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  9231. lt_cv_ld_force_load=yes
  9232. else
  9233. cat conftest.err >&5
  9234. fi
  9235. rm -f conftest.err libconftest.a conftest conftest.c
  9236. rm -rf conftest.dSYM
  9237. fi
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9239. $as_echo "$lt_cv_ld_force_load" >&6; }
  9240. case $host_os in
  9241. rhapsody* | darwin1.[012])
  9242. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  9243. darwin1.*)
  9244. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9245. darwin*) # darwin 5.x on
  9246. # if running on 10.5 or later, the deployment target defaults
  9247. # to the OS version, if on x86, and 10.4, the deployment
  9248. # target defaults to 10.4. Don't you love it?
  9249. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9250. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9251. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9252. 10.[012][,.]*)
  9253. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  9254. 10.*)
  9255. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  9256. esac
  9257. ;;
  9258. esac
  9259. if test yes = "$lt_cv_apple_cc_single_mod"; then
  9260. _lt_dar_single_mod='$single_module'
  9261. fi
  9262. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  9263. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  9264. else
  9265. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  9266. fi
  9267. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  9268. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9269. else
  9270. _lt_dsymutil=
  9271. fi
  9272. ;;
  9273. esac
  9274. # func_munge_path_list VARIABLE PATH
  9275. # -----------------------------------
  9276. # VARIABLE is name of variable containing _space_ separated list of
  9277. # directories to be munged by the contents of PATH, which is string
  9278. # having a format:
  9279. # "DIR[:DIR]:"
  9280. # string "DIR[ DIR]" will be prepended to VARIABLE
  9281. # ":DIR[:DIR]"
  9282. # string "DIR[ DIR]" will be appended to VARIABLE
  9283. # "DIRP[:DIRP]::[DIRA:]DIRA"
  9284. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  9285. # "DIRA[ DIRA]" will be appended to VARIABLE
  9286. # "DIR[:DIR]"
  9287. # VARIABLE will be replaced by "DIR[ DIR]"
  9288. func_munge_path_list ()
  9289. {
  9290. case x$2 in
  9291. x)
  9292. ;;
  9293. *:)
  9294. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  9295. ;;
  9296. x:*)
  9297. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  9298. ;;
  9299. *::*)
  9300. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  9301. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  9302. ;;
  9303. *)
  9304. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  9305. ;;
  9306. esac
  9307. }
  9308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9309. $as_echo_n "checking for ANSI C header files... " >&6; }
  9310. if ${ac_cv_header_stdc+:} false; then :
  9311. $as_echo_n "(cached) " >&6
  9312. else
  9313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9314. /* end confdefs.h. */
  9315. #include <stdlib.h>
  9316. #include <stdarg.h>
  9317. #include <string.h>
  9318. #include <float.h>
  9319. int main (void)
  9320. {
  9321. ;
  9322. return 0;
  9323. }
  9324. _ACEOF
  9325. if ac_fn_c_try_compile "$LINENO"; then :
  9326. ac_cv_header_stdc=yes
  9327. else
  9328. ac_cv_header_stdc=no
  9329. fi
  9330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9331. if test $ac_cv_header_stdc = yes; then
  9332. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h. */
  9335. #include <string.h>
  9336. _ACEOF
  9337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9338. $EGREP "memchr" >/dev/null 2>&1; then :
  9339. else
  9340. ac_cv_header_stdc=no
  9341. fi
  9342. rm -f conftest*
  9343. fi
  9344. if test $ac_cv_header_stdc = yes; then
  9345. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9347. /* end confdefs.h. */
  9348. #include <stdlib.h>
  9349. _ACEOF
  9350. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9351. $EGREP "free" >/dev/null 2>&1; then :
  9352. else
  9353. ac_cv_header_stdc=no
  9354. fi
  9355. rm -f conftest*
  9356. fi
  9357. if test $ac_cv_header_stdc = yes; then
  9358. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9359. if test "$cross_compiling" = yes; then :
  9360. :
  9361. else
  9362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9363. /* end confdefs.h. */
  9364. #include <ctype.h>
  9365. #include <stdlib.h>
  9366. #if ((' ' & 0x0FF) == 0x020)
  9367. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9368. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9369. #else
  9370. # define ISLOWER(c) \
  9371. (('a' <= (c) && (c) <= 'i') \
  9372. || ('j' <= (c) && (c) <= 'r') \
  9373. || ('s' <= (c) && (c) <= 'z'))
  9374. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9375. #endif
  9376. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9377. int
  9378. main ()
  9379. {
  9380. int i;
  9381. for (i = 0; i < 256; i++)
  9382. if (XOR (islower (i), ISLOWER (i))
  9383. || toupper (i) != TOUPPER (i))
  9384. return 2;
  9385. return 0;
  9386. }
  9387. _ACEOF
  9388. if ac_fn_c_try_run "$LINENO"; then :
  9389. else
  9390. ac_cv_header_stdc=no
  9391. fi
  9392. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9393. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9394. fi
  9395. fi
  9396. fi
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9398. $as_echo "$ac_cv_header_stdc" >&6; }
  9399. if test $ac_cv_header_stdc = yes; then
  9400. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  9401. fi
  9402. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  9403. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  9404. inttypes.h stdint.h unistd.h
  9405. do :
  9406. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9407. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  9408. "
  9409. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9410. cat >>confdefs.h <<_ACEOF
  9411. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9412. _ACEOF
  9413. fi
  9414. done
  9415. for ac_header in dlfcn.h
  9416. do :
  9417. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9418. "
  9419. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9420. cat >>confdefs.h <<_ACEOF
  9421. #define HAVE_DLFCN_H 1
  9422. _ACEOF
  9423. fi
  9424. done
  9425. # ------------------------------------ #
  9426. # Determine libtool default behavior #
  9427. # ------------------------------------ #
  9428. #
  9429. # Default behavior is to enable shared and static libraries on systems
  9430. # where libtool knows how to build both library versions, and does not
  9431. # require separate configuration and build runs for each flavor.
  9432. #
  9433. xc_lt_want_enable_shared='yes'
  9434. xc_lt_want_enable_static='yes'
  9435. #
  9436. # User may have disabled shared or static libraries.
  9437. #
  9438. case "x$enable_shared" in # (
  9439. xno)
  9440. xc_lt_want_enable_shared='no'
  9441. ;;
  9442. esac
  9443. case "x$enable_static" in # (
  9444. xno)
  9445. xc_lt_want_enable_static='no'
  9446. ;;
  9447. esac
  9448. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  9449. test "x$xc_lt_want_enable_static" = 'xno'; then
  9450. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  9451. fi
  9452. #
  9453. # Default behavior on systems that require independent configuration
  9454. # and build runs for shared and static is to enable shared libraries
  9455. # and disable static ones. On these systems option '--disable-shared'
  9456. # must be used in order to build a proper static library.
  9457. #
  9458. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  9459. test "x$xc_lt_want_enable_static" = 'xyes'; then
  9460. case $host_os in # (
  9461. pw32* | cegcc* | os2* | aix*)
  9462. xc_lt_want_enable_static='no'
  9463. ;;
  9464. esac
  9465. fi
  9466. #
  9467. # Make libtool aware of current shared and static library preferences
  9468. # taking in account that, depending on host characteristics, libtool
  9469. # may modify these option preferences later in this configure script.
  9470. #
  9471. enable_shared=$xc_lt_want_enable_shared
  9472. enable_static=$xc_lt_want_enable_static
  9473. #
  9474. # Default behavior is to build PIC objects for shared libraries and
  9475. # non-PIC objects for static libraries.
  9476. #
  9477. xc_lt_want_with_pic='default'
  9478. #
  9479. # User may have specified PIC preference.
  9480. #
  9481. case "x$with_pic" in # ((
  9482. xno)
  9483. xc_lt_want_with_pic='no'
  9484. ;;
  9485. xyes)
  9486. xc_lt_want_with_pic='yes'
  9487. ;;
  9488. esac
  9489. #
  9490. # Default behavior on some systems where building a shared library out
  9491. # of non-PIC compiled objects will fail with following linker error
  9492. # "relocation R_X86_64_32 can not be used when making a shared object"
  9493. # is to build PIC objects even for static libraries. This behavior may
  9494. # be overridden using 'configure --disable-shared --without-pic'.
  9495. #
  9496. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  9497. case $host_cpu in # (
  9498. x86_64 | amd64 | ia64)
  9499. case $host_os in # (
  9500. linux* | freebsd*)
  9501. xc_lt_want_with_pic='yes'
  9502. ;;
  9503. esac
  9504. ;;
  9505. esac
  9506. fi
  9507. #
  9508. # Make libtool aware of current PIC preference taking in account that,
  9509. # depending on host characteristics, libtool may modify PIC default
  9510. # behavior to fit host system idiosyncrasies later in this script.
  9511. #
  9512. with_pic=$xc_lt_want_with_pic
  9513. ## ----------------------- ##
  9514. ## Start of libtool code ##
  9515. ## ----------------------- ##
  9516. # Set options
  9517. enable_win32_dll=yes
  9518. case $host in
  9519. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  9520. if test -n "$ac_tool_prefix"; then
  9521. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  9522. set dummy ${ac_tool_prefix}as; ac_word=$2
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9524. $as_echo_n "checking for $ac_word... " >&6; }
  9525. if ${ac_cv_prog_AS+:} false; then :
  9526. $as_echo_n "(cached) " >&6
  9527. else
  9528. if test -n "$AS"; then
  9529. ac_cv_prog_AS="$AS" # Let the user override the test.
  9530. else
  9531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9532. for as_dir in $PATH
  9533. do
  9534. IFS=$as_save_IFS
  9535. test -z "$as_dir" && as_dir=.
  9536. for ac_exec_ext in '' $ac_executable_extensions; do
  9537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9538. ac_cv_prog_AS="${ac_tool_prefix}as"
  9539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9540. break 2
  9541. fi
  9542. done
  9543. done
  9544. IFS=$as_save_IFS
  9545. fi
  9546. fi
  9547. AS=$ac_cv_prog_AS
  9548. if test -n "$AS"; then
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9550. $as_echo "$AS" >&6; }
  9551. else
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9553. $as_echo "no" >&6; }
  9554. fi
  9555. fi
  9556. if test -z "$ac_cv_prog_AS"; then
  9557. ac_ct_AS=$AS
  9558. # Extract the first word of "as", so it can be a program name with args.
  9559. set dummy as; ac_word=$2
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9561. $as_echo_n "checking for $ac_word... " >&6; }
  9562. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  9563. $as_echo_n "(cached) " >&6
  9564. else
  9565. if test -n "$ac_ct_AS"; then
  9566. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  9567. else
  9568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9569. for as_dir in $PATH
  9570. do
  9571. IFS=$as_save_IFS
  9572. test -z "$as_dir" && as_dir=.
  9573. for ac_exec_ext in '' $ac_executable_extensions; do
  9574. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9575. ac_cv_prog_ac_ct_AS="as"
  9576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9577. break 2
  9578. fi
  9579. done
  9580. done
  9581. IFS=$as_save_IFS
  9582. fi
  9583. fi
  9584. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  9585. if test -n "$ac_ct_AS"; then
  9586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  9587. $as_echo "$ac_ct_AS" >&6; }
  9588. else
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9590. $as_echo "no" >&6; }
  9591. fi
  9592. if test "x$ac_ct_AS" = x; then
  9593. AS="false"
  9594. else
  9595. case $cross_compiling:$ac_tool_warned in
  9596. yes:)
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9598. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9599. ac_tool_warned=yes ;;
  9600. esac
  9601. AS=$ac_ct_AS
  9602. fi
  9603. else
  9604. AS="$ac_cv_prog_AS"
  9605. fi
  9606. if test -n "$ac_tool_prefix"; then
  9607. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9608. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9610. $as_echo_n "checking for $ac_word... " >&6; }
  9611. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9612. $as_echo_n "(cached) " >&6
  9613. else
  9614. if test -n "$DLLTOOL"; then
  9615. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9616. else
  9617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9618. for as_dir in $PATH
  9619. do
  9620. IFS=$as_save_IFS
  9621. test -z "$as_dir" && as_dir=.
  9622. for ac_exec_ext in '' $ac_executable_extensions; do
  9623. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9624. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9626. break 2
  9627. fi
  9628. done
  9629. done
  9630. IFS=$as_save_IFS
  9631. fi
  9632. fi
  9633. DLLTOOL=$ac_cv_prog_DLLTOOL
  9634. if test -n "$DLLTOOL"; then
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9636. $as_echo "$DLLTOOL" >&6; }
  9637. else
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9639. $as_echo "no" >&6; }
  9640. fi
  9641. fi
  9642. if test -z "$ac_cv_prog_DLLTOOL"; then
  9643. ac_ct_DLLTOOL=$DLLTOOL
  9644. # Extract the first word of "dlltool", so it can be a program name with args.
  9645. set dummy dlltool; ac_word=$2
  9646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9647. $as_echo_n "checking for $ac_word... " >&6; }
  9648. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9649. $as_echo_n "(cached) " >&6
  9650. else
  9651. if test -n "$ac_ct_DLLTOOL"; then
  9652. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9653. else
  9654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9655. for as_dir in $PATH
  9656. do
  9657. IFS=$as_save_IFS
  9658. test -z "$as_dir" && as_dir=.
  9659. for ac_exec_ext in '' $ac_executable_extensions; do
  9660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9661. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9663. break 2
  9664. fi
  9665. done
  9666. done
  9667. IFS=$as_save_IFS
  9668. fi
  9669. fi
  9670. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9671. if test -n "$ac_ct_DLLTOOL"; then
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9673. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9674. else
  9675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9676. $as_echo "no" >&6; }
  9677. fi
  9678. if test "x$ac_ct_DLLTOOL" = x; then
  9679. DLLTOOL="false"
  9680. else
  9681. case $cross_compiling:$ac_tool_warned in
  9682. yes:)
  9683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9685. ac_tool_warned=yes ;;
  9686. esac
  9687. DLLTOOL=$ac_ct_DLLTOOL
  9688. fi
  9689. else
  9690. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9691. fi
  9692. if test -n "$ac_tool_prefix"; then
  9693. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9694. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9696. $as_echo_n "checking for $ac_word... " >&6; }
  9697. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9698. $as_echo_n "(cached) " >&6
  9699. else
  9700. if test -n "$OBJDUMP"; then
  9701. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9702. else
  9703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9704. for as_dir in $PATH
  9705. do
  9706. IFS=$as_save_IFS
  9707. test -z "$as_dir" && as_dir=.
  9708. for ac_exec_ext in '' $ac_executable_extensions; do
  9709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9710. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9712. break 2
  9713. fi
  9714. done
  9715. done
  9716. IFS=$as_save_IFS
  9717. fi
  9718. fi
  9719. OBJDUMP=$ac_cv_prog_OBJDUMP
  9720. if test -n "$OBJDUMP"; then
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9722. $as_echo "$OBJDUMP" >&6; }
  9723. else
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9725. $as_echo "no" >&6; }
  9726. fi
  9727. fi
  9728. if test -z "$ac_cv_prog_OBJDUMP"; then
  9729. ac_ct_OBJDUMP=$OBJDUMP
  9730. # Extract the first word of "objdump", so it can be a program name with args.
  9731. set dummy objdump; ac_word=$2
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9733. $as_echo_n "checking for $ac_word... " >&6; }
  9734. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9735. $as_echo_n "(cached) " >&6
  9736. else
  9737. if test -n "$ac_ct_OBJDUMP"; then
  9738. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9739. else
  9740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9741. for as_dir in $PATH
  9742. do
  9743. IFS=$as_save_IFS
  9744. test -z "$as_dir" && as_dir=.
  9745. for ac_exec_ext in '' $ac_executable_extensions; do
  9746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9747. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9749. break 2
  9750. fi
  9751. done
  9752. done
  9753. IFS=$as_save_IFS
  9754. fi
  9755. fi
  9756. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9757. if test -n "$ac_ct_OBJDUMP"; then
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9759. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9760. else
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9762. $as_echo "no" >&6; }
  9763. fi
  9764. if test "x$ac_ct_OBJDUMP" = x; then
  9765. OBJDUMP="false"
  9766. else
  9767. case $cross_compiling:$ac_tool_warned in
  9768. yes:)
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9771. ac_tool_warned=yes ;;
  9772. esac
  9773. OBJDUMP=$ac_ct_OBJDUMP
  9774. fi
  9775. else
  9776. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9777. fi
  9778. ;;
  9779. esac
  9780. test -z "$AS" && AS=as
  9781. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9782. test -z "$OBJDUMP" && OBJDUMP=objdump
  9783. enable_dlopen=no
  9784. # Check whether --enable-shared was given.
  9785. if test "${enable_shared+set}" = set; then :
  9786. enableval=$enable_shared; p=${PACKAGE-default}
  9787. case $enableval in
  9788. yes) enable_shared=yes ;;
  9789. no) enable_shared=no ;;
  9790. *)
  9791. enable_shared=no
  9792. # Look at the argument we got. We use all the common list separators.
  9793. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9794. for pkg in $enableval; do
  9795. IFS=$lt_save_ifs
  9796. if test "X$pkg" = "X$p"; then
  9797. enable_shared=yes
  9798. fi
  9799. done
  9800. IFS=$lt_save_ifs
  9801. ;;
  9802. esac
  9803. else
  9804. enable_shared=yes
  9805. fi
  9806. # Check whether --enable-static was given.
  9807. if test "${enable_static+set}" = set; then :
  9808. enableval=$enable_static; p=${PACKAGE-default}
  9809. case $enableval in
  9810. yes) enable_static=yes ;;
  9811. no) enable_static=no ;;
  9812. *)
  9813. enable_static=no
  9814. # Look at the argument we got. We use all the common list separators.
  9815. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9816. for pkg in $enableval; do
  9817. IFS=$lt_save_ifs
  9818. if test "X$pkg" = "X$p"; then
  9819. enable_static=yes
  9820. fi
  9821. done
  9822. IFS=$lt_save_ifs
  9823. ;;
  9824. esac
  9825. else
  9826. enable_static=yes
  9827. fi
  9828. # Check whether --with-pic was given.
  9829. if test "${with_pic+set}" = set; then :
  9830. withval=$with_pic; lt_p=${PACKAGE-default}
  9831. case $withval in
  9832. yes|no) pic_mode=$withval ;;
  9833. *)
  9834. pic_mode=default
  9835. # Look at the argument we got. We use all the common list separators.
  9836. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9837. for lt_pkg in $withval; do
  9838. IFS=$lt_save_ifs
  9839. if test "X$lt_pkg" = "X$lt_p"; then
  9840. pic_mode=yes
  9841. fi
  9842. done
  9843. IFS=$lt_save_ifs
  9844. ;;
  9845. esac
  9846. else
  9847. pic_mode=default
  9848. fi
  9849. # Check whether --enable-fast-install was given.
  9850. if test "${enable_fast_install+set}" = set; then :
  9851. enableval=$enable_fast_install; p=${PACKAGE-default}
  9852. case $enableval in
  9853. yes) enable_fast_install=yes ;;
  9854. no) enable_fast_install=no ;;
  9855. *)
  9856. enable_fast_install=no
  9857. # Look at the argument we got. We use all the common list separators.
  9858. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  9859. for pkg in $enableval; do
  9860. IFS=$lt_save_ifs
  9861. if test "X$pkg" = "X$p"; then
  9862. enable_fast_install=yes
  9863. fi
  9864. done
  9865. IFS=$lt_save_ifs
  9866. ;;
  9867. esac
  9868. else
  9869. enable_fast_install=yes
  9870. fi
  9871. shared_archive_member_spec=
  9872. case $host,$enable_shared in
  9873. power*-*-aix[5-9]*,yes)
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  9875. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  9876. # Check whether --with-aix-soname was given.
  9877. if test "${with_aix_soname+set}" = set; then :
  9878. withval=$with_aix_soname; case $withval in
  9879. aix|svr4|both)
  9880. ;;
  9881. *)
  9882. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  9883. ;;
  9884. esac
  9885. lt_cv_with_aix_soname=$with_aix_soname
  9886. else
  9887. if ${lt_cv_with_aix_soname+:} false; then :
  9888. $as_echo_n "(cached) " >&6
  9889. else
  9890. lt_cv_with_aix_soname=aix
  9891. fi
  9892. with_aix_soname=$lt_cv_with_aix_soname
  9893. fi
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  9895. $as_echo "$with_aix_soname" >&6; }
  9896. if test aix != "$with_aix_soname"; then
  9897. # For the AIX way of multilib, we name the shared archive member
  9898. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  9899. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  9900. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  9901. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  9902. if test 64 = "${OBJECT_MODE-32}"; then
  9903. shared_archive_member_spec=shr_64
  9904. else
  9905. shared_archive_member_spec=shr
  9906. fi
  9907. fi
  9908. ;;
  9909. *)
  9910. with_aix_soname=aix
  9911. ;;
  9912. esac
  9913. # This can be used to rebuild libtool when needed
  9914. LIBTOOL_DEPS=$ltmain
  9915. # Always use our own libtool.
  9916. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9917. test -z "$LN_S" && LN_S="ln -s"
  9918. if test -n "${ZSH_VERSION+set}"; then
  9919. setopt NO_GLOB_SUBST
  9920. fi
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9922. $as_echo_n "checking for objdir... " >&6; }
  9923. if ${lt_cv_objdir+:} false; then :
  9924. $as_echo_n "(cached) " >&6
  9925. else
  9926. rm -f .libs 2>/dev/null
  9927. mkdir .libs 2>/dev/null
  9928. if test -d .libs; then
  9929. lt_cv_objdir=.libs
  9930. else
  9931. # MS-DOS does not allow filenames that begin with a dot.
  9932. lt_cv_objdir=_libs
  9933. fi
  9934. rmdir .libs 2>/dev/null
  9935. fi
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9937. $as_echo "$lt_cv_objdir" >&6; }
  9938. objdir=$lt_cv_objdir
  9939. cat >>confdefs.h <<_ACEOF
  9940. #define LT_OBJDIR "$lt_cv_objdir/"
  9941. _ACEOF
  9942. case $host_os in
  9943. aix3*)
  9944. # AIX sometimes has problems with the GCC collect2 program. For some
  9945. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9946. # vanish in a puff of smoke.
  9947. if test set != "${COLLECT_NAMES+set}"; then
  9948. COLLECT_NAMES=
  9949. export COLLECT_NAMES
  9950. fi
  9951. ;;
  9952. esac
  9953. # Global variables:
  9954. ofile=libtool
  9955. can_build_shared=yes
  9956. # All known linkers require a '.a' archive for static linking (except MSVC,
  9957. # which needs '.lib').
  9958. libext=a
  9959. with_gnu_ld=$lt_cv_prog_gnu_ld
  9960. old_CC=$CC
  9961. old_CFLAGS=$CFLAGS
  9962. # Set sane defaults for various variables
  9963. test -z "$CC" && CC=cc
  9964. test -z "$LTCC" && LTCC=$CC
  9965. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9966. test -z "$LD" && LD=ld
  9967. test -z "$ac_objext" && ac_objext=o
  9968. func_cc_basename $compiler
  9969. cc_basename=$func_cc_basename_result
  9970. # Only perform the check for file, if the check method requires it
  9971. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9972. case $deplibs_check_method in
  9973. file_magic*)
  9974. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9976. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9977. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9978. $as_echo_n "(cached) " >&6
  9979. else
  9980. case $MAGIC_CMD in
  9981. [\\/*] | ?:[\\/]*)
  9982. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  9983. ;;
  9984. *)
  9985. lt_save_MAGIC_CMD=$MAGIC_CMD
  9986. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  9987. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9988. for ac_dir in $ac_dummy; do
  9989. IFS=$lt_save_ifs
  9990. test -z "$ac_dir" && ac_dir=.
  9991. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  9992. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  9993. if test -n "$file_magic_test_file"; then
  9994. case $deplibs_check_method in
  9995. "file_magic "*)
  9996. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9997. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  9998. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9999. $EGREP "$file_magic_regex" > /dev/null; then
  10000. :
  10001. else
  10002. cat <<_LT_EOF 1>&2
  10003. *** Warning: the command libtool uses to detect shared libraries,
  10004. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10005. *** The result is that libtool may fail to recognize shared libraries
  10006. *** as such. This will affect the creation of libtool libraries that
  10007. *** depend on shared libraries, but programs linked with such libtool
  10008. *** libraries will work regardless of this problem. Nevertheless, you
  10009. *** may want to report the problem to your system manager and/or to
  10010. *** bug-libtool@gnu.org
  10011. _LT_EOF
  10012. fi ;;
  10013. esac
  10014. fi
  10015. break
  10016. fi
  10017. done
  10018. IFS=$lt_save_ifs
  10019. MAGIC_CMD=$lt_save_MAGIC_CMD
  10020. ;;
  10021. esac
  10022. fi
  10023. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10024. if test -n "$MAGIC_CMD"; then
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10026. $as_echo "$MAGIC_CMD" >&6; }
  10027. else
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10029. $as_echo "no" >&6; }
  10030. fi
  10031. if test -z "$lt_cv_path_MAGIC_CMD"; then
  10032. if test -n "$ac_tool_prefix"; then
  10033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10034. $as_echo_n "checking for file... " >&6; }
  10035. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10036. $as_echo_n "(cached) " >&6
  10037. else
  10038. case $MAGIC_CMD in
  10039. [\\/*] | ?:[\\/]*)
  10040. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10041. ;;
  10042. *)
  10043. lt_save_MAGIC_CMD=$MAGIC_CMD
  10044. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10045. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10046. for ac_dir in $ac_dummy; do
  10047. IFS=$lt_save_ifs
  10048. test -z "$ac_dir" && ac_dir=.
  10049. if test -f "$ac_dir/file"; then
  10050. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10051. if test -n "$file_magic_test_file"; then
  10052. case $deplibs_check_method in
  10053. "file_magic "*)
  10054. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10055. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10056. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10057. $EGREP "$file_magic_regex" > /dev/null; then
  10058. :
  10059. else
  10060. cat <<_LT_EOF 1>&2
  10061. *** Warning: the command libtool uses to detect shared libraries,
  10062. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10063. *** The result is that libtool may fail to recognize shared libraries
  10064. *** as such. This will affect the creation of libtool libraries that
  10065. *** depend on shared libraries, but programs linked with such libtool
  10066. *** libraries will work regardless of this problem. Nevertheless, you
  10067. *** may want to report the problem to your system manager and/or to
  10068. *** bug-libtool@gnu.org
  10069. _LT_EOF
  10070. fi ;;
  10071. esac
  10072. fi
  10073. break
  10074. fi
  10075. done
  10076. IFS=$lt_save_ifs
  10077. MAGIC_CMD=$lt_save_MAGIC_CMD
  10078. ;;
  10079. esac
  10080. fi
  10081. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10082. if test -n "$MAGIC_CMD"; then
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10084. $as_echo "$MAGIC_CMD" >&6; }
  10085. else
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10087. $as_echo "no" >&6; }
  10088. fi
  10089. else
  10090. MAGIC_CMD=:
  10091. fi
  10092. fi
  10093. fi
  10094. ;;
  10095. esac
  10096. # Use C for the default configuration in the libtool script
  10097. lt_save_CC=$CC
  10098. ac_ext=c
  10099. ac_cpp='$CPP $CPPFLAGS'
  10100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10103. # Source file extension for C test sources.
  10104. ac_ext=c
  10105. # Object file extension for compiled C test sources.
  10106. objext=o
  10107. objext=$objext
  10108. # Code to be used in simple compile tests
  10109. lt_simple_compile_test_code="int some_variable = 0;"
  10110. # Code to be used in simple link tests
  10111. lt_simple_link_test_code='int main(){return(0);}'
  10112. # If no C compiler was specified, use CC.
  10113. LTCC=${LTCC-"$CC"}
  10114. # If no C compiler flags were specified, use CFLAGS.
  10115. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10116. # Allow CC to be a program name with arguments.
  10117. compiler=$CC
  10118. # Save the default compiler, since it gets overwritten when the other
  10119. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10120. compiler_DEFAULT=$CC
  10121. # save warnings/boilerplate of simple test code
  10122. ac_outfile=conftest.$ac_objext
  10123. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10124. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10125. _lt_compiler_boilerplate=`cat conftest.err`
  10126. $RM conftest*
  10127. ac_outfile=conftest.$ac_objext
  10128. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10129. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10130. _lt_linker_boilerplate=`cat conftest.err`
  10131. $RM -r conftest*
  10132. ## CAVEAT EMPTOR:
  10133. ## There is no encapsulation within the following macros, do not change
  10134. ## the running order or otherwise move them around unless you know exactly
  10135. ## what you are doing...
  10136. if test -n "$compiler"; then
  10137. lt_prog_compiler_no_builtin_flag=
  10138. if test yes = "$GCC"; then
  10139. case $cc_basename in
  10140. nvcc*)
  10141. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10142. *)
  10143. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10144. esac
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10146. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10147. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10148. $as_echo_n "(cached) " >&6
  10149. else
  10150. lt_cv_prog_compiler_rtti_exceptions=no
  10151. ac_outfile=conftest.$ac_objext
  10152. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10153. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  10154. # Insert the option either (1) after the last *FLAGS variable, or
  10155. # (2) before a word containing "conftest.", or (3) at the end.
  10156. # Note that $ac_compile itself does not contain backslashes and begins
  10157. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10158. # The option is referenced via a variable to avoid confusing sed.
  10159. lt_compile=`echo "$ac_compile" | $SED \
  10160. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10161. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10162. -e 's:$: $lt_compiler_flag:'`
  10163. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10164. (eval "$lt_compile" 2>conftest.err)
  10165. ac_status=$?
  10166. cat conftest.err >&5
  10167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10168. if (exit $ac_status) && test -s "$ac_outfile"; then
  10169. # The compiler can only warn and ignore the option if not recognized
  10170. # So say no if there are warnings other than the usual output.
  10171. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10172. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10173. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10174. lt_cv_prog_compiler_rtti_exceptions=yes
  10175. fi
  10176. fi
  10177. $RM conftest*
  10178. fi
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10180. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10181. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  10182. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10183. else
  10184. :
  10185. fi
  10186. fi
  10187. lt_prog_compiler_wl=
  10188. lt_prog_compiler_pic=
  10189. lt_prog_compiler_static=
  10190. if test yes = "$GCC"; then
  10191. lt_prog_compiler_wl='-Wl,'
  10192. lt_prog_compiler_static='-static'
  10193. case $host_os in
  10194. aix*)
  10195. # All AIX code is PIC.
  10196. if test ia64 = "$host_cpu"; then
  10197. # AIX 5 now supports IA64 processor
  10198. lt_prog_compiler_static='-Bstatic'
  10199. fi
  10200. lt_prog_compiler_pic='-fPIC'
  10201. ;;
  10202. amigaos*)
  10203. case $host_cpu in
  10204. powerpc)
  10205. # see comment about AmigaOS4 .so support
  10206. lt_prog_compiler_pic='-fPIC'
  10207. ;;
  10208. m68k)
  10209. # FIXME: we need at least 68020 code to build shared libraries, but
  10210. # adding the '-m68020' flag to GCC prevents building anything better,
  10211. # like '-m68040'.
  10212. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10213. ;;
  10214. esac
  10215. ;;
  10216. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10217. # PIC is the default for these OSes.
  10218. ;;
  10219. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10220. # This hack is so that the source file can tell whether it is being
  10221. # built for inclusion in a dll (and should export symbols for example).
  10222. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10223. # (--disable-auto-import) libraries
  10224. lt_prog_compiler_pic='-DDLL_EXPORT'
  10225. case $host_os in
  10226. os2*)
  10227. lt_prog_compiler_static='$wl-static'
  10228. ;;
  10229. esac
  10230. ;;
  10231. darwin* | rhapsody*)
  10232. # PIC is the default on this platform
  10233. # Common symbols not allowed in MH_DYLIB files
  10234. lt_prog_compiler_pic='-fno-common'
  10235. ;;
  10236. haiku*)
  10237. # PIC is the default for Haiku.
  10238. # The "-static" flag exists, but is broken.
  10239. lt_prog_compiler_static=
  10240. ;;
  10241. hpux*)
  10242. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10243. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10244. # sets the default TLS model and affects inlining.
  10245. case $host_cpu in
  10246. hppa*64*)
  10247. # +Z the default
  10248. ;;
  10249. *)
  10250. lt_prog_compiler_pic='-fPIC'
  10251. ;;
  10252. esac
  10253. ;;
  10254. interix[3-9]*)
  10255. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10256. # Instead, we relocate shared libraries at runtime.
  10257. ;;
  10258. msdosdjgpp*)
  10259. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10260. # on systems that don't support them.
  10261. lt_prog_compiler_can_build_shared=no
  10262. enable_shared=no
  10263. ;;
  10264. *nto* | *qnx*)
  10265. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10266. # it will coredump.
  10267. lt_prog_compiler_pic='-fPIC -shared'
  10268. ;;
  10269. sysv4*MP*)
  10270. if test -d /usr/nec; then
  10271. lt_prog_compiler_pic=-Kconform_pic
  10272. fi
  10273. ;;
  10274. *)
  10275. lt_prog_compiler_pic='-fPIC'
  10276. ;;
  10277. esac
  10278. case $cc_basename in
  10279. nvcc*) # Cuda Compiler Driver 2.2
  10280. lt_prog_compiler_wl='-Xlinker '
  10281. if test -n "$lt_prog_compiler_pic"; then
  10282. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10283. fi
  10284. ;;
  10285. esac
  10286. else
  10287. # PORTME Check for flag to pass linker flags through the system compiler.
  10288. case $host_os in
  10289. aix*)
  10290. lt_prog_compiler_wl='-Wl,'
  10291. if test ia64 = "$host_cpu"; then
  10292. # AIX 5 now supports IA64 processor
  10293. lt_prog_compiler_static='-Bstatic'
  10294. else
  10295. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10296. fi
  10297. ;;
  10298. darwin* | rhapsody*)
  10299. # PIC is the default on this platform
  10300. # Common symbols not allowed in MH_DYLIB files
  10301. lt_prog_compiler_pic='-fno-common'
  10302. case $cc_basename in
  10303. nagfor*)
  10304. # NAG Fortran compiler
  10305. lt_prog_compiler_wl='-Wl,-Wl,,'
  10306. lt_prog_compiler_pic='-PIC'
  10307. lt_prog_compiler_static='-Bstatic'
  10308. ;;
  10309. esac
  10310. ;;
  10311. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10312. # This hack is so that the source file can tell whether it is being
  10313. # built for inclusion in a dll (and should export symbols for example).
  10314. lt_prog_compiler_pic='-DDLL_EXPORT'
  10315. case $host_os in
  10316. os2*)
  10317. lt_prog_compiler_static='$wl-static'
  10318. ;;
  10319. esac
  10320. ;;
  10321. hpux9* | hpux10* | hpux11*)
  10322. lt_prog_compiler_wl='-Wl,'
  10323. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10324. # not for PA HP-UX.
  10325. case $host_cpu in
  10326. hppa*64*|ia64*)
  10327. # +Z the default
  10328. ;;
  10329. *)
  10330. lt_prog_compiler_pic='+Z'
  10331. ;;
  10332. esac
  10333. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10334. lt_prog_compiler_static='$wl-a ${wl}archive'
  10335. ;;
  10336. irix5* | irix6* | nonstopux*)
  10337. lt_prog_compiler_wl='-Wl,'
  10338. # PIC (with -KPIC) is the default.
  10339. lt_prog_compiler_static='-non_shared'
  10340. ;;
  10341. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10342. case $cc_basename in
  10343. # old Intel for x86_64, which still supported -KPIC.
  10344. ecc*)
  10345. lt_prog_compiler_wl='-Wl,'
  10346. lt_prog_compiler_pic='-KPIC'
  10347. lt_prog_compiler_static='-static'
  10348. ;;
  10349. # icc used to be incompatible with GCC.
  10350. # ICC 10 doesn't accept -KPIC any more.
  10351. icc* | ifort*)
  10352. lt_prog_compiler_wl='-Wl,'
  10353. lt_prog_compiler_pic='-fPIC'
  10354. lt_prog_compiler_static='-static'
  10355. ;;
  10356. # Lahey Fortran 8.1.
  10357. lf95*)
  10358. lt_prog_compiler_wl='-Wl,'
  10359. lt_prog_compiler_pic='--shared'
  10360. lt_prog_compiler_static='--static'
  10361. ;;
  10362. nagfor*)
  10363. # NAG Fortran compiler
  10364. lt_prog_compiler_wl='-Wl,-Wl,,'
  10365. lt_prog_compiler_pic='-PIC'
  10366. lt_prog_compiler_static='-Bstatic'
  10367. ;;
  10368. tcc*)
  10369. # Fabrice Bellard et al's Tiny C Compiler
  10370. lt_prog_compiler_wl='-Wl,'
  10371. lt_prog_compiler_pic='-fPIC'
  10372. lt_prog_compiler_static='-static'
  10373. ;;
  10374. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10375. # Portland Group compilers (*not* the Pentium gcc compiler,
  10376. # which looks to be a dead project)
  10377. lt_prog_compiler_wl='-Wl,'
  10378. lt_prog_compiler_pic='-fpic'
  10379. lt_prog_compiler_static='-Bstatic'
  10380. ;;
  10381. ccc*)
  10382. lt_prog_compiler_wl='-Wl,'
  10383. # All Alpha code is PIC.
  10384. lt_prog_compiler_static='-non_shared'
  10385. ;;
  10386. xl* | bgxl* | bgf* | mpixl*)
  10387. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10388. lt_prog_compiler_wl='-Wl,'
  10389. lt_prog_compiler_pic='-qpic'
  10390. lt_prog_compiler_static='-qstaticlink'
  10391. ;;
  10392. *)
  10393. case `$CC -V 2>&1 | sed 5q` in
  10394. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10395. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10396. lt_prog_compiler_pic='-KPIC'
  10397. lt_prog_compiler_static='-Bstatic'
  10398. lt_prog_compiler_wl=''
  10399. ;;
  10400. *Sun\ F* | *Sun*Fortran*)
  10401. lt_prog_compiler_pic='-KPIC'
  10402. lt_prog_compiler_static='-Bstatic'
  10403. lt_prog_compiler_wl='-Qoption ld '
  10404. ;;
  10405. *Sun\ C*)
  10406. # Sun C 5.9
  10407. lt_prog_compiler_pic='-KPIC'
  10408. lt_prog_compiler_static='-Bstatic'
  10409. lt_prog_compiler_wl='-Wl,'
  10410. ;;
  10411. *Intel*\ [CF]*Compiler*)
  10412. lt_prog_compiler_wl='-Wl,'
  10413. lt_prog_compiler_pic='-fPIC'
  10414. lt_prog_compiler_static='-static'
  10415. ;;
  10416. *Portland\ Group*)
  10417. lt_prog_compiler_wl='-Wl,'
  10418. lt_prog_compiler_pic='-fpic'
  10419. lt_prog_compiler_static='-Bstatic'
  10420. ;;
  10421. esac
  10422. ;;
  10423. esac
  10424. ;;
  10425. newsos6)
  10426. lt_prog_compiler_pic='-KPIC'
  10427. lt_prog_compiler_static='-Bstatic'
  10428. ;;
  10429. *nto* | *qnx*)
  10430. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10431. # it will coredump.
  10432. lt_prog_compiler_pic='-fPIC -shared'
  10433. ;;
  10434. osf3* | osf4* | osf5*)
  10435. lt_prog_compiler_wl='-Wl,'
  10436. # All OSF/1 code is PIC.
  10437. lt_prog_compiler_static='-non_shared'
  10438. ;;
  10439. rdos*)
  10440. lt_prog_compiler_static='-non_shared'
  10441. ;;
  10442. solaris*)
  10443. lt_prog_compiler_pic='-KPIC'
  10444. lt_prog_compiler_static='-Bstatic'
  10445. case $cc_basename in
  10446. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10447. lt_prog_compiler_wl='-Qoption ld ';;
  10448. *)
  10449. lt_prog_compiler_wl='-Wl,';;
  10450. esac
  10451. ;;
  10452. sunos4*)
  10453. lt_prog_compiler_wl='-Qoption ld '
  10454. lt_prog_compiler_pic='-PIC'
  10455. lt_prog_compiler_static='-Bstatic'
  10456. ;;
  10457. sysv4 | sysv4.2uw2* | sysv4.3*)
  10458. lt_prog_compiler_wl='-Wl,'
  10459. lt_prog_compiler_pic='-KPIC'
  10460. lt_prog_compiler_static='-Bstatic'
  10461. ;;
  10462. sysv4*MP*)
  10463. if test -d /usr/nec; then
  10464. lt_prog_compiler_pic='-Kconform_pic'
  10465. lt_prog_compiler_static='-Bstatic'
  10466. fi
  10467. ;;
  10468. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10469. lt_prog_compiler_wl='-Wl,'
  10470. lt_prog_compiler_pic='-KPIC'
  10471. lt_prog_compiler_static='-Bstatic'
  10472. ;;
  10473. unicos*)
  10474. lt_prog_compiler_wl='-Wl,'
  10475. lt_prog_compiler_can_build_shared=no
  10476. ;;
  10477. uts4*)
  10478. lt_prog_compiler_pic='-pic'
  10479. lt_prog_compiler_static='-Bstatic'
  10480. ;;
  10481. *)
  10482. lt_prog_compiler_can_build_shared=no
  10483. ;;
  10484. esac
  10485. fi
  10486. case $host_os in
  10487. # For platforms that do not support PIC, -DPIC is meaningless:
  10488. *djgpp*)
  10489. lt_prog_compiler_pic=
  10490. ;;
  10491. *)
  10492. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10493. ;;
  10494. esac
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10496. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10497. if ${lt_cv_prog_compiler_pic+:} false; then :
  10498. $as_echo_n "(cached) " >&6
  10499. else
  10500. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10501. fi
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10503. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10504. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10505. #
  10506. # Check to make sure the PIC flag actually works.
  10507. #
  10508. if test -n "$lt_prog_compiler_pic"; then
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10510. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10511. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10512. $as_echo_n "(cached) " >&6
  10513. else
  10514. lt_cv_prog_compiler_pic_works=no
  10515. ac_outfile=conftest.$ac_objext
  10516. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10517. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  10518. # Insert the option either (1) after the last *FLAGS variable, or
  10519. # (2) before a word containing "conftest.", or (3) at the end.
  10520. # Note that $ac_compile itself does not contain backslashes and begins
  10521. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10522. # The option is referenced via a variable to avoid confusing sed.
  10523. lt_compile=`echo "$ac_compile" | $SED \
  10524. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10525. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10526. -e 's:$: $lt_compiler_flag:'`
  10527. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10528. (eval "$lt_compile" 2>conftest.err)
  10529. ac_status=$?
  10530. cat conftest.err >&5
  10531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10532. if (exit $ac_status) && test -s "$ac_outfile"; then
  10533. # The compiler can only warn and ignore the option if not recognized
  10534. # So say no if there are warnings other than the usual output.
  10535. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10536. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10537. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10538. lt_cv_prog_compiler_pic_works=yes
  10539. fi
  10540. fi
  10541. $RM conftest*
  10542. fi
  10543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10544. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10545. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  10546. case $lt_prog_compiler_pic in
  10547. "" | " "*) ;;
  10548. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10549. esac
  10550. else
  10551. lt_prog_compiler_pic=
  10552. lt_prog_compiler_can_build_shared=no
  10553. fi
  10554. fi
  10555. #
  10556. # Check to make sure the static flag actually works.
  10557. #
  10558. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10560. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10561. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10562. $as_echo_n "(cached) " >&6
  10563. else
  10564. lt_cv_prog_compiler_static_works=no
  10565. save_LDFLAGS=$LDFLAGS
  10566. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10567. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10568. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10569. # The linker can only warn and ignore the option if not recognized
  10570. # So say no if there are warnings
  10571. if test -s conftest.err; then
  10572. # Append any errors to the config.log.
  10573. cat conftest.err 1>&5
  10574. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10575. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10576. if diff conftest.exp conftest.er2 >/dev/null; then
  10577. lt_cv_prog_compiler_static_works=yes
  10578. fi
  10579. else
  10580. lt_cv_prog_compiler_static_works=yes
  10581. fi
  10582. fi
  10583. $RM -r conftest*
  10584. LDFLAGS=$save_LDFLAGS
  10585. fi
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10587. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10588. if test yes = "$lt_cv_prog_compiler_static_works"; then
  10589. :
  10590. else
  10591. lt_prog_compiler_static=
  10592. fi
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10594. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10595. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. lt_cv_prog_compiler_c_o=no
  10599. $RM -r conftest 2>/dev/null
  10600. mkdir conftest
  10601. cd conftest
  10602. mkdir out
  10603. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10604. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10605. # Insert the option either (1) after the last *FLAGS variable, or
  10606. # (2) before a word containing "conftest.", or (3) at the end.
  10607. # Note that $ac_compile itself does not contain backslashes and begins
  10608. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10609. lt_compile=`echo "$ac_compile" | $SED \
  10610. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10611. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10612. -e 's:$: $lt_compiler_flag:'`
  10613. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10614. (eval "$lt_compile" 2>out/conftest.err)
  10615. ac_status=$?
  10616. cat out/conftest.err >&5
  10617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10618. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10619. then
  10620. # The compiler can only warn and ignore the option if not recognized
  10621. # So say no if there are warnings
  10622. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10623. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10624. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10625. lt_cv_prog_compiler_c_o=yes
  10626. fi
  10627. fi
  10628. chmod u+w . 2>&5
  10629. $RM conftest*
  10630. # SGI C++ compiler will create directory out/ii_files/ for
  10631. # template instantiation
  10632. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10633. $RM out/* && rmdir out
  10634. cd ..
  10635. $RM -r conftest
  10636. $RM conftest*
  10637. fi
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10639. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10641. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10642. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10643. $as_echo_n "(cached) " >&6
  10644. else
  10645. lt_cv_prog_compiler_c_o=no
  10646. $RM -r conftest 2>/dev/null
  10647. mkdir conftest
  10648. cd conftest
  10649. mkdir out
  10650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10651. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10652. # Insert the option either (1) after the last *FLAGS variable, or
  10653. # (2) before a word containing "conftest.", or (3) at the end.
  10654. # Note that $ac_compile itself does not contain backslashes and begins
  10655. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10656. lt_compile=`echo "$ac_compile" | $SED \
  10657. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10658. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10659. -e 's:$: $lt_compiler_flag:'`
  10660. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10661. (eval "$lt_compile" 2>out/conftest.err)
  10662. ac_status=$?
  10663. cat out/conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10666. then
  10667. # The compiler can only warn and ignore the option if not recognized
  10668. # So say no if there are warnings
  10669. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10670. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10671. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10672. lt_cv_prog_compiler_c_o=yes
  10673. fi
  10674. fi
  10675. chmod u+w . 2>&5
  10676. $RM conftest*
  10677. # SGI C++ compiler will create directory out/ii_files/ for
  10678. # template instantiation
  10679. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10680. $RM out/* && rmdir out
  10681. cd ..
  10682. $RM -r conftest
  10683. $RM conftest*
  10684. fi
  10685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10686. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10687. hard_links=nottested
  10688. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  10689. # do not overwrite the value of need_locks provided by the user
  10690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10691. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10692. hard_links=yes
  10693. $RM conftest*
  10694. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10695. touch conftest.a
  10696. ln conftest.a conftest.b 2>&5 || hard_links=no
  10697. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10699. $as_echo "$hard_links" >&6; }
  10700. if test no = "$hard_links"; then
  10701. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  10702. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  10703. need_locks=warn
  10704. fi
  10705. else
  10706. need_locks=no
  10707. fi
  10708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10709. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10710. runpath_var=
  10711. allow_undefined_flag=
  10712. always_export_symbols=no
  10713. archive_cmds=
  10714. archive_expsym_cmds=
  10715. compiler_needs_object=no
  10716. enable_shared_with_static_runtimes=no
  10717. export_dynamic_flag_spec=
  10718. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10719. hardcode_automatic=no
  10720. hardcode_direct=no
  10721. hardcode_direct_absolute=no
  10722. hardcode_libdir_flag_spec=
  10723. hardcode_libdir_separator=
  10724. hardcode_minus_L=no
  10725. hardcode_shlibpath_var=unsupported
  10726. inherit_rpath=no
  10727. link_all_deplibs=unknown
  10728. module_cmds=
  10729. module_expsym_cmds=
  10730. old_archive_from_new_cmds=
  10731. old_archive_from_expsyms_cmds=
  10732. thread_safe_flag_spec=
  10733. whole_archive_flag_spec=
  10734. # include_expsyms should be a list of space-separated symbols to be *always*
  10735. # included in the symbol list
  10736. include_expsyms=
  10737. # exclude_expsyms can be an extended regexp of symbols to exclude
  10738. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  10739. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  10740. # as well as any symbol that contains 'd'.
  10741. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10742. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10743. # platforms (ab)use it in PIC code, but their linkers get confused if
  10744. # the symbol is explicitly referenced. Since portable code cannot
  10745. # rely on this symbol name, it's probably fine to never include it in
  10746. # preloaded symbol tables.
  10747. # Exclude shared library initialization/finalization symbols.
  10748. extract_expsyms_cmds=
  10749. case $host_os in
  10750. cygwin* | mingw* | pw32* | cegcc*)
  10751. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10752. # When not using gcc, we currently assume that we are using
  10753. # Microsoft Visual C++.
  10754. if test yes != "$GCC"; then
  10755. with_gnu_ld=no
  10756. fi
  10757. ;;
  10758. interix*)
  10759. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10760. with_gnu_ld=yes
  10761. ;;
  10762. openbsd* | bitrig*)
  10763. with_gnu_ld=no
  10764. ;;
  10765. linux* | k*bsd*-gnu | gnu*)
  10766. link_all_deplibs=no
  10767. ;;
  10768. esac
  10769. ld_shlibs=yes
  10770. # On some targets, GNU ld is compatible enough with the native linker
  10771. # that we're better off using the native interface for both.
  10772. lt_use_gnu_ld_interface=no
  10773. if test yes = "$with_gnu_ld"; then
  10774. case $host_os in
  10775. aix*)
  10776. # The AIX port of GNU ld has always aspired to compatibility
  10777. # with the native linker. However, as the warning in the GNU ld
  10778. # block says, versions before 2.19.5* couldn't really create working
  10779. # shared libraries, regardless of the interface used.
  10780. case `$LD -v 2>&1` in
  10781. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10782. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10783. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10784. *)
  10785. lt_use_gnu_ld_interface=yes
  10786. ;;
  10787. esac
  10788. ;;
  10789. *)
  10790. lt_use_gnu_ld_interface=yes
  10791. ;;
  10792. esac
  10793. fi
  10794. if test yes = "$lt_use_gnu_ld_interface"; then
  10795. # If archive_cmds runs LD, not CC, wlarc should be empty
  10796. wlarc='$wl'
  10797. # Set some defaults for GNU ld with shared library support. These
  10798. # are reset later if shared libraries are not supported. Putting them
  10799. # here allows them to be overridden if necessary.
  10800. runpath_var=LD_RUN_PATH
  10801. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10802. export_dynamic_flag_spec='$wl--export-dynamic'
  10803. # ancient GNU ld didn't support --whole-archive et. al.
  10804. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10805. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  10806. else
  10807. whole_archive_flag_spec=
  10808. fi
  10809. supports_anon_versioning=no
  10810. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  10811. *GNU\ gold*) supports_anon_versioning=yes ;;
  10812. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10813. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10814. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10815. *\ 2.11.*) ;; # other 2.11 versions
  10816. *) supports_anon_versioning=yes ;;
  10817. esac
  10818. # See if GNU ld supports shared libraries.
  10819. case $host_os in
  10820. aix[3-9]*)
  10821. # On AIX/PPC, the GNU linker is very broken
  10822. if test ia64 != "$host_cpu"; then
  10823. ld_shlibs=no
  10824. cat <<_LT_EOF 1>&2
  10825. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10826. *** to be unable to reliably create shared libraries on AIX.
  10827. *** Therefore, libtool is disabling shared libraries support. If you
  10828. *** really care for shared libraries, you may want to install binutils
  10829. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10830. *** You will then need to restart the configuration process.
  10831. _LT_EOF
  10832. fi
  10833. ;;
  10834. amigaos*)
  10835. case $host_cpu in
  10836. powerpc)
  10837. # see comment about AmigaOS4 .so support
  10838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10839. archive_expsym_cmds=''
  10840. ;;
  10841. m68k)
  10842. 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)'
  10843. hardcode_libdir_flag_spec='-L$libdir'
  10844. hardcode_minus_L=yes
  10845. ;;
  10846. esac
  10847. ;;
  10848. beos*)
  10849. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10850. allow_undefined_flag=unsupported
  10851. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10852. # support --undefined. This deserves some investigation. FIXME
  10853. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10854. else
  10855. ld_shlibs=no
  10856. fi
  10857. ;;
  10858. cygwin* | mingw* | pw32* | cegcc*)
  10859. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10860. # as there is no search path for DLLs.
  10861. hardcode_libdir_flag_spec='-L$libdir'
  10862. export_dynamic_flag_spec='$wl--export-all-symbols'
  10863. allow_undefined_flag=unsupported
  10864. always_export_symbols=no
  10865. enable_shared_with_static_runtimes=yes
  10866. 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'
  10867. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10868. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10869. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10870. # If the export-symbols file already is a .def file, use it as
  10871. # is; otherwise, prepend EXPORTS...
  10872. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  10873. cp $export_symbols $output_objdir/$soname.def;
  10874. else
  10875. echo EXPORTS > $output_objdir/$soname.def;
  10876. cat $export_symbols >> $output_objdir/$soname.def;
  10877. fi~
  10878. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10879. else
  10880. ld_shlibs=no
  10881. fi
  10882. ;;
  10883. haiku*)
  10884. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10885. link_all_deplibs=yes
  10886. ;;
  10887. os2*)
  10888. hardcode_libdir_flag_spec='-L$libdir'
  10889. hardcode_minus_L=yes
  10890. allow_undefined_flag=unsupported
  10891. shrext_cmds=.dll
  10892. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10893. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10894. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10895. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10896. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  10897. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10898. emximp -o $lib $output_objdir/$libname.def'
  10899. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  10900. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  10901. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  10902. $ECHO EXPORTS >> $output_objdir/$libname.def~
  10903. prefix_cmds="$SED"~
  10904. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  10905. prefix_cmds="$prefix_cmds -e 1d";
  10906. fi~
  10907. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  10908. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  10909. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  10910. emximp -o $lib $output_objdir/$libname.def'
  10911. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  10912. enable_shared_with_static_runtimes=yes
  10913. ;;
  10914. interix[3-9]*)
  10915. hardcode_direct=no
  10916. hardcode_shlibpath_var=no
  10917. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  10918. export_dynamic_flag_spec='$wl-E'
  10919. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10920. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10921. # default) and relocated if they conflict, which is a slow very memory
  10922. # consuming and fragmenting process. To avoid this, we pick a random,
  10923. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10924. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10925. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10926. 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'
  10927. ;;
  10928. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10929. tmp_diet=no
  10930. if test linux-dietlibc = "$host_os"; then
  10931. case $cc_basename in
  10932. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10933. esac
  10934. fi
  10935. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10936. && test no = "$tmp_diet"
  10937. then
  10938. tmp_addflag=' $pic_flag'
  10939. tmp_sharedflag='-shared'
  10940. case $cc_basename,$host_cpu in
  10941. pgcc*) # Portland Group C compiler
  10942. 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'
  10943. tmp_addflag=' $pic_flag'
  10944. ;;
  10945. pgf77* | pgf90* | pgf95* | pgfortran*)
  10946. # Portland Group f77 and f90 compilers
  10947. 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'
  10948. tmp_addflag=' $pic_flag -Mnomain' ;;
  10949. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10950. tmp_addflag=' -i_dynamic' ;;
  10951. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10952. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10953. ifc* | ifort*) # Intel Fortran compiler
  10954. tmp_addflag=' -nofor_main' ;;
  10955. lf95*) # Lahey Fortran 8.1
  10956. whole_archive_flag_spec=
  10957. tmp_sharedflag='--shared' ;;
  10958. nagfor*) # NAGFOR 5.3
  10959. tmp_sharedflag='-Wl,-shared' ;;
  10960. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10961. tmp_sharedflag='-qmkshrobj'
  10962. tmp_addflag= ;;
  10963. nvcc*) # Cuda Compiler Driver 2.2
  10964. 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'
  10965. compiler_needs_object=yes
  10966. ;;
  10967. esac
  10968. case `$CC -V 2>&1 | sed 5q` in
  10969. *Sun\ C*) # Sun C 5.9
  10970. 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'
  10971. compiler_needs_object=yes
  10972. tmp_sharedflag='-G' ;;
  10973. *Sun\ F*) # Sun Fortran 8.3
  10974. tmp_sharedflag='-G' ;;
  10975. esac
  10976. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  10977. if test yes = "$supports_anon_versioning"; then
  10978. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10979. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10980. echo "local: *; };" >> $output_objdir/$libname.ver~
  10981. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  10982. fi
  10983. case $cc_basename in
  10984. tcc*)
  10985. export_dynamic_flag_spec='-rdynamic'
  10986. ;;
  10987. xlf* | bgf* | bgxlf* | mpixlf*)
  10988. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10989. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10990. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  10991. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10992. if test yes = "$supports_anon_versioning"; then
  10993. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10994. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10995. echo "local: *; };" >> $output_objdir/$libname.ver~
  10996. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10997. fi
  10998. ;;
  10999. esac
  11000. else
  11001. ld_shlibs=no
  11002. fi
  11003. ;;
  11004. netbsd* | netbsdelf*-gnu)
  11005. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11006. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11007. wlarc=
  11008. else
  11009. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11010. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11011. fi
  11012. ;;
  11013. solaris*)
  11014. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11015. ld_shlibs=no
  11016. cat <<_LT_EOF 1>&2
  11017. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11018. *** create shared libraries on Solaris systems. Therefore, libtool
  11019. *** is disabling shared libraries support. We urge you to upgrade GNU
  11020. *** binutils to release 2.9.1 or newer. Another option is to modify
  11021. *** your PATH or compiler configuration so that the native linker is
  11022. *** used, and then restart.
  11023. _LT_EOF
  11024. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11025. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11026. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11027. else
  11028. ld_shlibs=no
  11029. fi
  11030. ;;
  11031. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11032. case `$LD -v 2>&1` in
  11033. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11034. ld_shlibs=no
  11035. cat <<_LT_EOF 1>&2
  11036. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  11037. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11038. *** is disabling shared libraries support. We urge you to upgrade GNU
  11039. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11040. *** your PATH or compiler configuration so that the native linker is
  11041. *** used, and then restart.
  11042. _LT_EOF
  11043. ;;
  11044. *)
  11045. # For security reasons, it is highly recommended that you always
  11046. # use absolute paths for naming shared libraries, and exclude the
  11047. # DT_RUNPATH tag from executables and libraries. But doing so
  11048. # requires that you compile everything twice, which is a pain.
  11049. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11050. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11051. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11052. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11053. else
  11054. ld_shlibs=no
  11055. fi
  11056. ;;
  11057. esac
  11058. ;;
  11059. sunos4*)
  11060. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11061. wlarc=
  11062. hardcode_direct=yes
  11063. hardcode_shlibpath_var=no
  11064. ;;
  11065. *)
  11066. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11067. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11068. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  11069. else
  11070. ld_shlibs=no
  11071. fi
  11072. ;;
  11073. esac
  11074. if test no = "$ld_shlibs"; then
  11075. runpath_var=
  11076. hardcode_libdir_flag_spec=
  11077. export_dynamic_flag_spec=
  11078. whole_archive_flag_spec=
  11079. fi
  11080. else
  11081. # PORTME fill in a description of your system's linker (not GNU ld)
  11082. case $host_os in
  11083. aix3*)
  11084. allow_undefined_flag=unsupported
  11085. always_export_symbols=yes
  11086. 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'
  11087. # Note: this linker hardcodes the directories in LIBPATH if there
  11088. # are no directories specified by -L.
  11089. hardcode_minus_L=yes
  11090. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  11091. # Neither direct hardcoding nor static linking is supported with a
  11092. # broken collect2.
  11093. hardcode_direct=unsupported
  11094. fi
  11095. ;;
  11096. aix[4-9]*)
  11097. if test ia64 = "$host_cpu"; then
  11098. # On IA64, the linker does run time linking by default, so we don't
  11099. # have to do anything special.
  11100. aix_use_runtimelinking=no
  11101. exp_sym_flag='-Bexport'
  11102. no_entry_flag=
  11103. else
  11104. # If we're using GNU nm, then we don't want the "-C" option.
  11105. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  11106. # Without the "-l" option, or with the "-B" option, AIX nm treats
  11107. # weak defined symbols like other global defined symbols, whereas
  11108. # GNU nm marks them as "W".
  11109. # While the 'weak' keyword is ignored in the Export File, we need
  11110. # it in the Import File for the 'aix-soname' feature, so we have
  11111. # to replace the "-B" option with "-P" for AIX nm.
  11112. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11113. 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'
  11114. else
  11115. 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'
  11116. fi
  11117. aix_use_runtimelinking=no
  11118. # Test if we are trying to use run time linking or normal
  11119. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11120. # have runtime linking enabled, and use it for executables.
  11121. # For shared libraries, we enable/disable runtime linking
  11122. # depending on the kind of the shared library created -
  11123. # when "with_aix_soname,aix_use_runtimelinking" is:
  11124. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  11125. # "aix,yes" lib.so shared, rtl:yes, for executables
  11126. # lib.a static archive
  11127. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  11128. # lib.a(lib.so.V) shared, rtl:no, for executables
  11129. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  11130. # lib.a(lib.so.V) shared, rtl:no
  11131. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  11132. # lib.a static archive
  11133. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11134. for ld_flag in $LDFLAGS; do
  11135. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  11136. aix_use_runtimelinking=yes
  11137. break
  11138. fi
  11139. done
  11140. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  11141. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  11142. # so we don't have lib.a shared libs to link our executables.
  11143. # We have to force runtime linking in this case.
  11144. aix_use_runtimelinking=yes
  11145. LDFLAGS="$LDFLAGS -Wl,-brtl"
  11146. fi
  11147. ;;
  11148. esac
  11149. exp_sym_flag='-bexport'
  11150. no_entry_flag='-bnoentry'
  11151. fi
  11152. # When large executables or shared objects are built, AIX ld can
  11153. # have problems creating the table of contents. If linking a library
  11154. # or program results in "error TOC overflow" add -mminimal-toc to
  11155. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11156. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11157. archive_cmds=''
  11158. hardcode_direct=yes
  11159. hardcode_direct_absolute=yes
  11160. hardcode_libdir_separator=':'
  11161. link_all_deplibs=yes
  11162. file_list_spec='$wl-f,'
  11163. case $with_aix_soname,$aix_use_runtimelinking in
  11164. aix,*) ;; # traditional, no import file
  11165. svr4,* | *,yes) # use import file
  11166. # The Import File defines what to hardcode.
  11167. hardcode_direct=no
  11168. hardcode_direct_absolute=no
  11169. ;;
  11170. esac
  11171. if test yes = "$GCC"; then
  11172. case $host_os in aix4.[012]|aix4.[012].*)
  11173. # We only want to do this on AIX 4.2 and lower, the check
  11174. # below for broken collect2 doesn't work under 4.3+
  11175. collect2name=`$CC -print-prog-name=collect2`
  11176. if test -f "$collect2name" &&
  11177. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11178. then
  11179. # We have reworked collect2
  11180. :
  11181. else
  11182. # We have old collect2
  11183. hardcode_direct=unsupported
  11184. # It fails to find uninstalled libraries when the uninstalled
  11185. # path is not listed in the libpath. Setting hardcode_minus_L
  11186. # to unsupported forces relinking
  11187. hardcode_minus_L=yes
  11188. hardcode_libdir_flag_spec='-L$libdir'
  11189. hardcode_libdir_separator=
  11190. fi
  11191. ;;
  11192. esac
  11193. shared_flag='-shared'
  11194. if test yes = "$aix_use_runtimelinking"; then
  11195. shared_flag="$shared_flag "'$wl-G'
  11196. fi
  11197. # Need to ensure runtime linking is disabled for the traditional
  11198. # shared library, or the linker may eventually find shared libraries
  11199. # /with/ Import File - we do not want to mix them.
  11200. shared_flag_aix='-shared'
  11201. shared_flag_svr4='-shared $wl-G'
  11202. else
  11203. # not using gcc
  11204. if test ia64 = "$host_cpu"; then
  11205. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11206. # chokes on -Wl,-G. The following line is correct:
  11207. shared_flag='-G'
  11208. else
  11209. if test yes = "$aix_use_runtimelinking"; then
  11210. shared_flag='$wl-G'
  11211. else
  11212. shared_flag='$wl-bM:SRE'
  11213. fi
  11214. shared_flag_aix='$wl-bM:SRE'
  11215. shared_flag_svr4='$wl-G'
  11216. fi
  11217. fi
  11218. export_dynamic_flag_spec='$wl-bexpall'
  11219. # It seems that -bexpall does not export symbols beginning with
  11220. # underscore (_), so it is better to generate a list of symbols to export.
  11221. always_export_symbols=yes
  11222. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  11223. # Warning - without using the other runtime loading flags (-brtl),
  11224. # -berok will link without error, but may produce a broken library.
  11225. allow_undefined_flag='-berok'
  11226. # Determine the default libpath from the value encoded in an
  11227. # empty executable.
  11228. if test set = "${lt_cv_aix_libpath+set}"; then
  11229. aix_libpath=$lt_cv_aix_libpath
  11230. else
  11231. if ${lt_cv_aix_libpath_+:} false; then :
  11232. $as_echo_n "(cached) " >&6
  11233. else
  11234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11235. /* end confdefs.h. */
  11236. int main (void)
  11237. {
  11238. ;
  11239. return 0;
  11240. }
  11241. _ACEOF
  11242. if ac_fn_c_try_link "$LINENO"; then :
  11243. lt_aix_libpath_sed='
  11244. /Import File Strings/,/^$/ {
  11245. /^0/ {
  11246. s/^0 *\([^ ]*\) *$/\1/
  11247. p
  11248. }
  11249. }'
  11250. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11251. # Check for a 64-bit object if we didn't find anything.
  11252. if test -z "$lt_cv_aix_libpath_"; then
  11253. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11254. fi
  11255. fi
  11256. rm -f core conftest.err conftest.$ac_objext \
  11257. conftest$ac_exeext conftest.$ac_ext
  11258. if test -z "$lt_cv_aix_libpath_"; then
  11259. lt_cv_aix_libpath_=/usr/lib:/lib
  11260. fi
  11261. fi
  11262. aix_libpath=$lt_cv_aix_libpath_
  11263. fi
  11264. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11265. 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
  11266. else
  11267. if test ia64 = "$host_cpu"; then
  11268. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  11269. allow_undefined_flag="-z nodefs"
  11270. 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"
  11271. else
  11272. # Determine the default libpath from the value encoded in an
  11273. # empty executable.
  11274. if test set = "${lt_cv_aix_libpath+set}"; then
  11275. aix_libpath=$lt_cv_aix_libpath
  11276. else
  11277. if ${lt_cv_aix_libpath_+:} false; then :
  11278. $as_echo_n "(cached) " >&6
  11279. else
  11280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11281. /* end confdefs.h. */
  11282. int main (void)
  11283. {
  11284. ;
  11285. return 0;
  11286. }
  11287. _ACEOF
  11288. if ac_fn_c_try_link "$LINENO"; then :
  11289. lt_aix_libpath_sed='
  11290. /Import File Strings/,/^$/ {
  11291. /^0/ {
  11292. s/^0 *\([^ ]*\) *$/\1/
  11293. p
  11294. }
  11295. }'
  11296. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11297. # Check for a 64-bit object if we didn't find anything.
  11298. if test -z "$lt_cv_aix_libpath_"; then
  11299. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11300. fi
  11301. fi
  11302. rm -f core conftest.err conftest.$ac_objext \
  11303. conftest$ac_exeext conftest.$ac_ext
  11304. if test -z "$lt_cv_aix_libpath_"; then
  11305. lt_cv_aix_libpath_=/usr/lib:/lib
  11306. fi
  11307. fi
  11308. aix_libpath=$lt_cv_aix_libpath_
  11309. fi
  11310. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  11311. # Warning - without using the other run time loading flags,
  11312. # -berok will link without error, but may produce a broken library.
  11313. no_undefined_flag=' $wl-bernotok'
  11314. allow_undefined_flag=' $wl-berok'
  11315. if test yes = "$with_gnu_ld"; then
  11316. # We only use this code for GNU lds that support --whole-archive.
  11317. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  11318. else
  11319. # Exported symbols can be pulled into shared objects from archives
  11320. whole_archive_flag_spec='$convenience'
  11321. fi
  11322. archive_cmds_need_lc=yes
  11323. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  11324. # -brtl affects multiple linker settings, -berok does not and is overridden later
  11325. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  11326. if test svr4 != "$with_aix_soname"; then
  11327. # This is similar to how AIX traditionally builds its shared libraries.
  11328. 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'
  11329. fi
  11330. if test aix != "$with_aix_soname"; then
  11331. 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'
  11332. else
  11333. # used by -dlpreopen to get the symbols
  11334. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  11335. fi
  11336. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  11337. fi
  11338. fi
  11339. ;;
  11340. amigaos*)
  11341. case $host_cpu in
  11342. powerpc)
  11343. # see comment about AmigaOS4 .so support
  11344. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11345. archive_expsym_cmds=''
  11346. ;;
  11347. m68k)
  11348. 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)'
  11349. hardcode_libdir_flag_spec='-L$libdir'
  11350. hardcode_minus_L=yes
  11351. ;;
  11352. esac
  11353. ;;
  11354. bsdi[45]*)
  11355. export_dynamic_flag_spec=-rdynamic
  11356. ;;
  11357. cygwin* | mingw* | pw32* | cegcc*)
  11358. # When not using gcc, we currently assume that we are using
  11359. # Microsoft Visual C++.
  11360. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11361. # no search path for DLLs.
  11362. case $cc_basename in
  11363. cl*)
  11364. # Native MSVC
  11365. hardcode_libdir_flag_spec=' '
  11366. allow_undefined_flag=unsupported
  11367. always_export_symbols=yes
  11368. file_list_spec='@'
  11369. # Tell ltmain to make .lib files, not .a files.
  11370. libext=lib
  11371. # Tell ltmain to make .dll files, not .so files.
  11372. shrext_cmds=.dll
  11373. # FIXME: Setting linknames here is a bad hack.
  11374. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  11375. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  11376. cp "$export_symbols" "$output_objdir/$soname.def";
  11377. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  11378. else
  11379. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  11380. fi~
  11381. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11382. linknames='
  11383. # The linker will not automatically build a static lib if we build a DLL.
  11384. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11385. enable_shared_with_static_runtimes=yes
  11386. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11387. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11388. # Don't use ranlib
  11389. old_postinstall_cmds='chmod 644 $oldlib'
  11390. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11391. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11392. case $lt_outputfile in
  11393. *.exe|*.EXE) ;;
  11394. *)
  11395. lt_outputfile=$lt_outputfile.exe
  11396. lt_tool_outputfile=$lt_tool_outputfile.exe
  11397. ;;
  11398. esac~
  11399. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  11400. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11401. $RM "$lt_outputfile.manifest";
  11402. fi'
  11403. ;;
  11404. *)
  11405. # Assume MSVC wrapper
  11406. hardcode_libdir_flag_spec=' '
  11407. allow_undefined_flag=unsupported
  11408. # Tell ltmain to make .lib files, not .a files.
  11409. libext=lib
  11410. # Tell ltmain to make .dll files, not .so files.
  11411. shrext_cmds=.dll
  11412. # FIXME: Setting linknames here is a bad hack.
  11413. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11414. # The linker will automatically build a .lib file if we build a DLL.
  11415. old_archive_from_new_cmds='true'
  11416. # FIXME: Should let the user specify the lib program.
  11417. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11418. enable_shared_with_static_runtimes=yes
  11419. ;;
  11420. esac
  11421. ;;
  11422. darwin* | rhapsody*)
  11423. archive_cmds_need_lc=no
  11424. hardcode_direct=no
  11425. hardcode_automatic=yes
  11426. hardcode_shlibpath_var=unsupported
  11427. if test yes = "$lt_cv_ld_force_load"; then
  11428. 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\"`'
  11429. else
  11430. whole_archive_flag_spec=''
  11431. fi
  11432. link_all_deplibs=yes
  11433. allow_undefined_flag=$_lt_dar_allow_undefined
  11434. case $cc_basename in
  11435. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  11436. *) _lt_dar_can_shared=$GCC ;;
  11437. esac
  11438. if test yes = "$_lt_dar_can_shared"; then
  11439. output_verbose_link_cmd=func_echo_all
  11440. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  11441. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  11442. 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"
  11443. 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"
  11444. else
  11445. ld_shlibs=no
  11446. fi
  11447. ;;
  11448. dgux*)
  11449. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11450. hardcode_libdir_flag_spec='-L$libdir'
  11451. hardcode_shlibpath_var=no
  11452. ;;
  11453. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11454. # support. Future versions do this automatically, but an explicit c++rt0.o
  11455. # does not break anything, and helps significantly (at the cost of a little
  11456. # extra space).
  11457. freebsd2.2*)
  11458. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11459. hardcode_libdir_flag_spec='-R$libdir'
  11460. hardcode_direct=yes
  11461. hardcode_shlibpath_var=no
  11462. ;;
  11463. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11464. freebsd2.*)
  11465. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11466. hardcode_direct=yes
  11467. hardcode_minus_L=yes
  11468. hardcode_shlibpath_var=no
  11469. ;;
  11470. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11471. freebsd* | dragonfly*)
  11472. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11473. hardcode_libdir_flag_spec='-R$libdir'
  11474. hardcode_direct=yes
  11475. hardcode_shlibpath_var=no
  11476. ;;
  11477. hpux9*)
  11478. if test yes = "$GCC"; then
  11479. 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 -f $output_objdir/$soname $lib'
  11480. else
  11481. 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 -f $output_objdir/$soname $lib'
  11482. fi
  11483. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11484. hardcode_libdir_separator=:
  11485. hardcode_direct=yes
  11486. # hardcode_minus_L: Not really in the search PATH,
  11487. # but as the default location of the library.
  11488. hardcode_minus_L=yes
  11489. export_dynamic_flag_spec='$wl-E'
  11490. ;;
  11491. hpux10*)
  11492. if test yes,no = "$GCC,$with_gnu_ld"; then
  11493. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11494. else
  11495. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11496. fi
  11497. if test no = "$with_gnu_ld"; then
  11498. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11499. hardcode_libdir_separator=:
  11500. hardcode_direct=yes
  11501. hardcode_direct_absolute=yes
  11502. export_dynamic_flag_spec='$wl-E'
  11503. # hardcode_minus_L: Not really in the search PATH,
  11504. # but as the default location of the library.
  11505. hardcode_minus_L=yes
  11506. fi
  11507. ;;
  11508. hpux11*)
  11509. if test yes,no = "$GCC,$with_gnu_ld"; then
  11510. case $host_cpu in
  11511. hppa*64*)
  11512. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11513. ;;
  11514. ia64*)
  11515. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11516. ;;
  11517. *)
  11518. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11519. ;;
  11520. esac
  11521. else
  11522. case $host_cpu in
  11523. hppa*64*)
  11524. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11525. ;;
  11526. ia64*)
  11527. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11528. ;;
  11529. *)
  11530. # Older versions of the 11.00 compiler do not understand -b yet
  11531. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11533. $as_echo_n "checking if $CC understands -b... " >&6; }
  11534. if ${lt_cv_prog_compiler__b+:} false; then :
  11535. $as_echo_n "(cached) " >&6
  11536. else
  11537. lt_cv_prog_compiler__b=no
  11538. save_LDFLAGS=$LDFLAGS
  11539. LDFLAGS="$LDFLAGS -b"
  11540. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11541. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11542. # The linker can only warn and ignore the option if not recognized
  11543. # So say no if there are warnings
  11544. if test -s conftest.err; then
  11545. # Append any errors to the config.log.
  11546. cat conftest.err 1>&5
  11547. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11548. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11549. if diff conftest.exp conftest.er2 >/dev/null; then
  11550. lt_cv_prog_compiler__b=yes
  11551. fi
  11552. else
  11553. lt_cv_prog_compiler__b=yes
  11554. fi
  11555. fi
  11556. $RM -r conftest*
  11557. LDFLAGS=$save_LDFLAGS
  11558. fi
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11560. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11561. if test yes = "$lt_cv_prog_compiler__b"; then
  11562. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11563. else
  11564. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11565. fi
  11566. ;;
  11567. esac
  11568. fi
  11569. if test no = "$with_gnu_ld"; then
  11570. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  11571. hardcode_libdir_separator=:
  11572. case $host_cpu in
  11573. hppa*64*|ia64*)
  11574. hardcode_direct=no
  11575. hardcode_shlibpath_var=no
  11576. ;;
  11577. *)
  11578. hardcode_direct=yes
  11579. hardcode_direct_absolute=yes
  11580. export_dynamic_flag_spec='$wl-E'
  11581. # hardcode_minus_L: Not really in the search PATH,
  11582. # but as the default location of the library.
  11583. hardcode_minus_L=yes
  11584. ;;
  11585. esac
  11586. fi
  11587. ;;
  11588. irix5* | irix6* | nonstopux*)
  11589. if test yes = "$GCC"; then
  11590. 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'
  11591. # Try to use the -exported_symbol ld option, if it does not
  11592. # work, assume that -exports_file does not work either and
  11593. # implicitly export all symbols.
  11594. # This should be the same for all languages, so no per-tag cache variable.
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11596. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11597. if ${lt_cv_irix_exported_symbol+:} false; then :
  11598. $as_echo_n "(cached) " >&6
  11599. else
  11600. save_LDFLAGS=$LDFLAGS
  11601. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  11602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11603. /* end confdefs.h. */
  11604. int foo (void) { return 0; }
  11605. _ACEOF
  11606. if ac_fn_c_try_link "$LINENO"; then :
  11607. lt_cv_irix_exported_symbol=yes
  11608. else
  11609. lt_cv_irix_exported_symbol=no
  11610. fi
  11611. rm -f core conftest.err conftest.$ac_objext \
  11612. conftest$ac_exeext conftest.$ac_ext
  11613. LDFLAGS=$save_LDFLAGS
  11614. fi
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11616. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11617. if test yes = "$lt_cv_irix_exported_symbol"; then
  11618. 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'
  11619. fi
  11620. link_all_deplibs=no
  11621. else
  11622. 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'
  11623. 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'
  11624. fi
  11625. archive_cmds_need_lc='no'
  11626. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11627. hardcode_libdir_separator=:
  11628. inherit_rpath=yes
  11629. link_all_deplibs=yes
  11630. ;;
  11631. linux*)
  11632. case $cc_basename in
  11633. tcc*)
  11634. # Fabrice Bellard et al's Tiny C Compiler
  11635. ld_shlibs=yes
  11636. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11637. ;;
  11638. esac
  11639. ;;
  11640. netbsd* | netbsdelf*-gnu)
  11641. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11642. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11643. else
  11644. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11645. fi
  11646. hardcode_libdir_flag_spec='-R$libdir'
  11647. hardcode_direct=yes
  11648. hardcode_shlibpath_var=no
  11649. ;;
  11650. newsos6)
  11651. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11652. hardcode_direct=yes
  11653. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11654. hardcode_libdir_separator=:
  11655. hardcode_shlibpath_var=no
  11656. ;;
  11657. *nto* | *qnx*)
  11658. ;;
  11659. openbsd* | bitrig*)
  11660. if test -f /usr/libexec/ld.so; then
  11661. hardcode_direct=yes
  11662. hardcode_shlibpath_var=no
  11663. hardcode_direct_absolute=yes
  11664. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  11665. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11666. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  11667. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11668. export_dynamic_flag_spec='$wl-E'
  11669. else
  11670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11671. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11672. fi
  11673. else
  11674. ld_shlibs=no
  11675. fi
  11676. ;;
  11677. os2*)
  11678. hardcode_libdir_flag_spec='-L$libdir'
  11679. hardcode_minus_L=yes
  11680. allow_undefined_flag=unsupported
  11681. shrext_cmds=.dll
  11682. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11683. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11684. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11685. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11686. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11687. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11688. emximp -o $lib $output_objdir/$libname.def'
  11689. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11690. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11691. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11692. $ECHO EXPORTS >> $output_objdir/$libname.def~
  11693. prefix_cmds="$SED"~
  11694. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11695. prefix_cmds="$prefix_cmds -e 1d";
  11696. fi~
  11697. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11698. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11699. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11700. emximp -o $lib $output_objdir/$libname.def'
  11701. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11702. enable_shared_with_static_runtimes=yes
  11703. ;;
  11704. osf3*)
  11705. if test yes = "$GCC"; then
  11706. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11707. 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'
  11708. else
  11709. allow_undefined_flag=' -expect_unresolved \*'
  11710. 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'
  11711. fi
  11712. archive_cmds_need_lc='no'
  11713. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11714. hardcode_libdir_separator=:
  11715. ;;
  11716. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11717. if test yes = "$GCC"; then
  11718. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  11719. 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'
  11720. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11721. else
  11722. allow_undefined_flag=' -expect_unresolved \*'
  11723. 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'
  11724. 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~
  11725. $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'
  11726. # Both c and cxx compiler support -rpath directly
  11727. hardcode_libdir_flag_spec='-rpath $libdir'
  11728. fi
  11729. archive_cmds_need_lc='no'
  11730. hardcode_libdir_separator=:
  11731. ;;
  11732. solaris*)
  11733. no_undefined_flag=' -z defs'
  11734. if test yes = "$GCC"; then
  11735. wlarc='$wl'
  11736. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  11737. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11738. $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'
  11739. else
  11740. case `$CC -V 2>&1` in
  11741. *"Compilers 5.0"*)
  11742. wlarc=''
  11743. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11744. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11745. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11746. ;;
  11747. *)
  11748. wlarc='$wl'
  11749. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11750. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11751. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11752. ;;
  11753. esac
  11754. fi
  11755. hardcode_libdir_flag_spec='-R$libdir'
  11756. hardcode_shlibpath_var=no
  11757. case $host_os in
  11758. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11759. *)
  11760. # The compiler driver will combine and reorder linker options,
  11761. # but understands '-z linker_flag'. GCC discards it without '$wl',
  11762. # but is careful enough not to reorder.
  11763. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11764. if test yes = "$GCC"; then
  11765. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  11766. else
  11767. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11768. fi
  11769. ;;
  11770. esac
  11771. link_all_deplibs=yes
  11772. ;;
  11773. sunos4*)
  11774. if test sequent = "$host_vendor"; then
  11775. # Use $CC to link under sequent, because it throws in some extra .o
  11776. # files that make .init and .fini sections work.
  11777. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11778. else
  11779. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11780. fi
  11781. hardcode_libdir_flag_spec='-L$libdir'
  11782. hardcode_direct=yes
  11783. hardcode_minus_L=yes
  11784. hardcode_shlibpath_var=no
  11785. ;;
  11786. sysv4)
  11787. case $host_vendor in
  11788. sni)
  11789. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11790. hardcode_direct=yes # is this really true???
  11791. ;;
  11792. siemens)
  11793. ## LD is ld it makes a PLAMLIB
  11794. ## CC just makes a GrossModule.
  11795. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11796. reload_cmds='$CC -r -o $output$reload_objs'
  11797. hardcode_direct=no
  11798. ;;
  11799. motorola)
  11800. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11801. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11802. ;;
  11803. esac
  11804. runpath_var='LD_RUN_PATH'
  11805. hardcode_shlibpath_var=no
  11806. ;;
  11807. sysv4.3*)
  11808. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11809. hardcode_shlibpath_var=no
  11810. export_dynamic_flag_spec='-Bexport'
  11811. ;;
  11812. sysv4*MP*)
  11813. if test -d /usr/nec; then
  11814. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11815. hardcode_shlibpath_var=no
  11816. runpath_var=LD_RUN_PATH
  11817. hardcode_runpath_var=yes
  11818. ld_shlibs=yes
  11819. fi
  11820. ;;
  11821. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11822. no_undefined_flag='$wl-z,text'
  11823. archive_cmds_need_lc=no
  11824. hardcode_shlibpath_var=no
  11825. runpath_var='LD_RUN_PATH'
  11826. if test yes = "$GCC"; then
  11827. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11828. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11829. else
  11830. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11831. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11832. fi
  11833. ;;
  11834. sysv5* | sco3.2v5* | sco5v6*)
  11835. # Note: We CANNOT use -z defs as we might desire, because we do not
  11836. # link with -lc, and that would cause any symbols used from libc to
  11837. # always be unresolved, which means just about no library would
  11838. # ever link correctly. If we're not using GNU ld we use -z text
  11839. # though, which does catch some bad symbols but isn't as heavy-handed
  11840. # as -z defs.
  11841. no_undefined_flag='$wl-z,text'
  11842. allow_undefined_flag='$wl-z,nodefs'
  11843. archive_cmds_need_lc=no
  11844. hardcode_shlibpath_var=no
  11845. hardcode_libdir_flag_spec='$wl-R,$libdir'
  11846. hardcode_libdir_separator=':'
  11847. link_all_deplibs=yes
  11848. export_dynamic_flag_spec='$wl-Bexport'
  11849. runpath_var='LD_RUN_PATH'
  11850. if test yes = "$GCC"; then
  11851. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11852. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11853. else
  11854. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11855. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11856. fi
  11857. ;;
  11858. uts4*)
  11859. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11860. hardcode_libdir_flag_spec='-L$libdir'
  11861. hardcode_shlibpath_var=no
  11862. ;;
  11863. *)
  11864. ld_shlibs=no
  11865. ;;
  11866. esac
  11867. if test sni = "$host_vendor"; then
  11868. case $host in
  11869. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11870. export_dynamic_flag_spec='$wl-Blargedynsym'
  11871. ;;
  11872. esac
  11873. fi
  11874. fi
  11875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11876. $as_echo "$ld_shlibs" >&6; }
  11877. test no = "$ld_shlibs" && can_build_shared=no
  11878. with_gnu_ld=$with_gnu_ld
  11879. #
  11880. # Do we need to explicitly link libc?
  11881. #
  11882. case "x$archive_cmds_need_lc" in
  11883. x|xyes)
  11884. # Assume -lc should be added
  11885. archive_cmds_need_lc=yes
  11886. if test yes,yes = "$GCC,$enable_shared"; then
  11887. case $archive_cmds in
  11888. *'~'*)
  11889. # FIXME: we may have to deal with multi-command sequences.
  11890. ;;
  11891. '$CC '*)
  11892. # Test whether the compiler implicitly links with -lc since on some
  11893. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11894. # to ld, don't add -lc before -lgcc.
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11896. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11897. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11898. $as_echo_n "(cached) " >&6
  11899. else
  11900. $RM conftest*
  11901. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11903. (eval $ac_compile) 2>&5
  11904. ac_status=$?
  11905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11906. test $ac_status = 0; } 2>conftest.err; then
  11907. soname=conftest
  11908. lib=conftest
  11909. libobjs=conftest.$ac_objext
  11910. deplibs=
  11911. wl=$lt_prog_compiler_wl
  11912. pic_flag=$lt_prog_compiler_pic
  11913. compiler_flags=-v
  11914. linker_flags=-v
  11915. verstring=
  11916. output_objdir=.
  11917. libname=conftest
  11918. lt_save_allow_undefined_flag=$allow_undefined_flag
  11919. allow_undefined_flag=
  11920. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11921. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11922. ac_status=$?
  11923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11924. test $ac_status = 0; }
  11925. then
  11926. lt_cv_archive_cmds_need_lc=no
  11927. else
  11928. lt_cv_archive_cmds_need_lc=yes
  11929. fi
  11930. allow_undefined_flag=$lt_save_allow_undefined_flag
  11931. else
  11932. cat conftest.err 1>&5
  11933. fi
  11934. $RM conftest*
  11935. fi
  11936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11937. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11938. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11939. ;;
  11940. esac
  11941. fi
  11942. ;;
  11943. esac
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11945. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11946. if test yes = "$GCC"; then
  11947. case $host_os in
  11948. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  11949. *) lt_awk_arg='/^libraries:/' ;;
  11950. esac
  11951. case $host_os in
  11952. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  11953. *) lt_sed_strip_eq='s|=/|/|g' ;;
  11954. esac
  11955. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11956. case $lt_search_path_spec in
  11957. *\;*)
  11958. # if the path contains ";" then we assume it to be the separator
  11959. # otherwise default to the standard path separator (i.e. ":") - it is
  11960. # assumed that no part of a normal pathname contains ";" but that should
  11961. # okay in the real world where ";" in dirpaths is itself problematic.
  11962. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11963. ;;
  11964. *)
  11965. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11966. ;;
  11967. esac
  11968. # Ok, now we have the path, separated by spaces, we can step through it
  11969. # and add multilib dir if necessary...
  11970. lt_tmp_lt_search_path_spec=
  11971. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11972. # ...but if some path component already ends with the multilib dir we assume
  11973. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  11974. case "$lt_multi_os_dir; $lt_search_path_spec " in
  11975. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  11976. lt_multi_os_dir=
  11977. ;;
  11978. esac
  11979. for lt_sys_path in $lt_search_path_spec; do
  11980. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  11981. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  11982. elif test -n "$lt_multi_os_dir"; then
  11983. test -d "$lt_sys_path" && \
  11984. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11985. fi
  11986. done
  11987. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11988. BEGIN {RS = " "; FS = "/|\n";} {
  11989. lt_foo = "";
  11990. lt_count = 0;
  11991. for (lt_i = NF; lt_i > 0; lt_i--) {
  11992. if ($lt_i != "" && $lt_i != ".") {
  11993. if ($lt_i == "..") {
  11994. lt_count++;
  11995. } else {
  11996. if (lt_count == 0) {
  11997. lt_foo = "/" $lt_i lt_foo;
  11998. } else {
  11999. lt_count--;
  12000. }
  12001. }
  12002. }
  12003. }
  12004. if (lt_foo != "") { lt_freq[lt_foo]++; }
  12005. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  12006. }'`
  12007. # AWK program above erroneously prepends '/' to C:/dos/paths
  12008. # for these hosts.
  12009. case $host_os in
  12010. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  12011. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  12012. esac
  12013. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  12014. else
  12015. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12016. fi
  12017. library_names_spec=
  12018. libname_spec='lib$name'
  12019. soname_spec=
  12020. shrext_cmds=.so
  12021. postinstall_cmds=
  12022. postuninstall_cmds=
  12023. finish_cmds=
  12024. finish_eval=
  12025. shlibpath_var=
  12026. shlibpath_overrides_runpath=unknown
  12027. version_type=none
  12028. dynamic_linker="$host_os ld.so"
  12029. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12030. need_lib_prefix=unknown
  12031. hardcode_into_libs=no
  12032. # when you set need_version to no, make sure it does not cause -set_version
  12033. # flags to be left without arguments
  12034. need_version=unknown
  12035. case $host_os in
  12036. aix3*)
  12037. version_type=linux # correct to gnu/linux during the next big refactor
  12038. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  12039. shlibpath_var=LIBPATH
  12040. # AIX 3 has no versioning support, so we append a major version to the name.
  12041. soname_spec='$libname$release$shared_ext$major'
  12042. ;;
  12043. aix[4-9]*)
  12044. version_type=linux # correct to gnu/linux during the next big refactor
  12045. need_lib_prefix=no
  12046. need_version=no
  12047. hardcode_into_libs=yes
  12048. if test ia64 = "$host_cpu"; then
  12049. # AIX 5 supports IA64
  12050. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  12051. shlibpath_var=LD_LIBRARY_PATH
  12052. else
  12053. # With GCC up to 2.95.x, collect2 would create an import file
  12054. # for dependence libraries. The import file would start with
  12055. # the line '#! .'. This would cause the generated library to
  12056. # depend on '.', always an invalid library. This was fixed in
  12057. # development snapshots of GCC prior to 3.0.
  12058. case $host_os in
  12059. aix4 | aix4.[01] | aix4.[01].*)
  12060. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12061. echo ' yes '
  12062. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  12063. :
  12064. else
  12065. can_build_shared=no
  12066. fi
  12067. ;;
  12068. esac
  12069. # Using Import Files as archive members, it is possible to support
  12070. # filename-based versioning of shared library archives on AIX. While
  12071. # this would work for both with and without runtime linking, it will
  12072. # prevent static linking of such archives. So we do filename-based
  12073. # shared library versioning with .so extension only, which is used
  12074. # when both runtime linking and shared linking is enabled.
  12075. # Unfortunately, runtime linking may impact performance, so we do
  12076. # not want this to be the default eventually. Also, we use the
  12077. # versioned .so libs for executables only if there is the -brtl
  12078. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  12079. # To allow for filename-based versioning support, we need to create
  12080. # libNAME.so.V as an archive file, containing:
  12081. # *) an Import File, referring to the versioned filename of the
  12082. # archive as well as the shared archive member, telling the
  12083. # bitwidth (32 or 64) of that shared object, and providing the
  12084. # list of exported symbols of that shared object, eventually
  12085. # decorated with the 'weak' keyword
  12086. # *) the shared object with the F_LOADONLY flag set, to really avoid
  12087. # it being seen by the linker.
  12088. # At run time we better use the real file rather than another symlink,
  12089. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  12090. case $with_aix_soname,$aix_use_runtimelinking in
  12091. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  12092. # soname into executable. Probably we can add versioning support to
  12093. # collect2, so additional links can be useful in future.
  12094. aix,yes) # traditional libtool
  12095. dynamic_linker='AIX unversionable lib.so'
  12096. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12097. # instead of lib<name>.a to let people know that these are not
  12098. # typical AIX shared libraries.
  12099. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12100. ;;
  12101. aix,no) # traditional AIX only
  12102. dynamic_linker='AIX lib.a(lib.so.V)'
  12103. # We preserve .a as extension for shared libraries through AIX4.2
  12104. # and later when we are not doing run time linking.
  12105. library_names_spec='$libname$release.a $libname.a'
  12106. soname_spec='$libname$release$shared_ext$major'
  12107. ;;
  12108. svr4,*) # full svr4 only
  12109. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  12110. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12111. # We do not specify a path in Import Files, so LIBPATH fires.
  12112. shlibpath_overrides_runpath=yes
  12113. ;;
  12114. *,yes) # both, prefer svr4
  12115. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  12116. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  12117. # unpreferred sharedlib libNAME.a needs extra handling
  12118. 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"'
  12119. 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"'
  12120. # We do not specify a path in Import Files, so LIBPATH fires.
  12121. shlibpath_overrides_runpath=yes
  12122. ;;
  12123. *,no) # both, prefer aix
  12124. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  12125. library_names_spec='$libname$release.a $libname.a'
  12126. soname_spec='$libname$release$shared_ext$major'
  12127. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  12128. 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)'
  12129. 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"'
  12130. ;;
  12131. esac
  12132. shlibpath_var=LIBPATH
  12133. fi
  12134. ;;
  12135. amigaos*)
  12136. case $host_cpu in
  12137. powerpc)
  12138. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12139. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12141. ;;
  12142. m68k)
  12143. library_names_spec='$libname.ixlibrary $libname.a'
  12144. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12145. 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'
  12146. ;;
  12147. esac
  12148. ;;
  12149. beos*)
  12150. library_names_spec='$libname$shared_ext'
  12151. dynamic_linker="$host_os ld.so"
  12152. shlibpath_var=LIBRARY_PATH
  12153. ;;
  12154. bsdi[45]*)
  12155. version_type=linux # correct to gnu/linux during the next big refactor
  12156. need_version=no
  12157. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12158. soname_spec='$libname$release$shared_ext$major'
  12159. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12160. shlibpath_var=LD_LIBRARY_PATH
  12161. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12162. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12163. # the default ld.so.conf also contains /usr/contrib/lib and
  12164. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12165. # libtool to hard-code these into programs
  12166. ;;
  12167. cygwin* | mingw* | pw32* | cegcc*)
  12168. version_type=windows
  12169. shrext_cmds=.dll
  12170. need_version=no
  12171. need_lib_prefix=no
  12172. case $GCC,$cc_basename in
  12173. yes,*)
  12174. # gcc
  12175. library_names_spec='$libname.dll.a'
  12176. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12177. postinstall_cmds='base_file=`basename \$file`~
  12178. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12179. dldir=$destdir/`dirname \$dlpath`~
  12180. test -d \$dldir || mkdir -p \$dldir~
  12181. $install_prog $dir/$dlname \$dldir/$dlname~
  12182. chmod a+x \$dldir/$dlname~
  12183. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12184. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12185. fi'
  12186. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12187. dlpath=$dir/\$dldll~
  12188. $RM \$dlpath'
  12189. shlibpath_overrides_runpath=yes
  12190. case $host_os in
  12191. cygwin*)
  12192. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12193. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12194. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  12195. ;;
  12196. mingw* | cegcc*)
  12197. # MinGW DLLs use traditional 'lib' prefix
  12198. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12199. ;;
  12200. pw32*)
  12201. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12202. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12203. ;;
  12204. esac
  12205. dynamic_linker='Win32 ld.exe'
  12206. ;;
  12207. *,cl*)
  12208. # Native MSVC
  12209. libname_spec='$name'
  12210. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  12211. library_names_spec='$libname.dll.lib'
  12212. case $build_os in
  12213. mingw*)
  12214. sys_lib_search_path_spec=
  12215. lt_save_ifs=$IFS
  12216. IFS=';'
  12217. for lt_path in $LIB
  12218. do
  12219. IFS=$lt_save_ifs
  12220. # Let DOS variable expansion print the short 8.3 style file name.
  12221. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12222. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12223. done
  12224. IFS=$lt_save_ifs
  12225. # Convert to MSYS style.
  12226. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12227. ;;
  12228. cygwin*)
  12229. # Convert to unix form, then to dos form, then back to unix form
  12230. # but this time dos style (no spaces!) so that the unix form looks
  12231. # like /cygdrive/c/PROGRA~1:/cygdr...
  12232. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12233. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12234. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12235. ;;
  12236. *)
  12237. sys_lib_search_path_spec=$LIB
  12238. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12239. # It is most probably a Windows format PATH.
  12240. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12241. else
  12242. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12243. fi
  12244. # FIXME: find the short name or the path components, as spaces are
  12245. # common. (e.g. "Program Files" -> "PROGRA~1")
  12246. ;;
  12247. esac
  12248. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12249. postinstall_cmds='base_file=`basename \$file`~
  12250. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  12251. dldir=$destdir/`dirname \$dlpath`~
  12252. test -d \$dldir || mkdir -p \$dldir~
  12253. $install_prog $dir/$dlname \$dldir/$dlname'
  12254. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12255. dlpath=$dir/\$dldll~
  12256. $RM \$dlpath'
  12257. shlibpath_overrides_runpath=yes
  12258. dynamic_linker='Win32 link.exe'
  12259. ;;
  12260. *)
  12261. # Assume MSVC wrapper
  12262. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  12263. dynamic_linker='Win32 ld.exe'
  12264. ;;
  12265. esac
  12266. # FIXME: first we should search . and the directory the executable is in
  12267. shlibpath_var=PATH
  12268. ;;
  12269. darwin* | rhapsody*)
  12270. dynamic_linker="$host_os dyld"
  12271. version_type=darwin
  12272. need_lib_prefix=no
  12273. need_version=no
  12274. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  12275. soname_spec='$libname$release$major$shared_ext'
  12276. shlibpath_overrides_runpath=yes
  12277. shlibpath_var=DYLD_LIBRARY_PATH
  12278. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12279. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12280. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12281. ;;
  12282. dgux*)
  12283. version_type=linux # correct to gnu/linux during the next big refactor
  12284. need_lib_prefix=no
  12285. need_version=no
  12286. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12287. soname_spec='$libname$release$shared_ext$major'
  12288. shlibpath_var=LD_LIBRARY_PATH
  12289. ;;
  12290. freebsd* | dragonfly*)
  12291. # DragonFly does not have aout. When/if they implement a new
  12292. # versioning mechanism, adjust this.
  12293. if test -x /usr/bin/objformat; then
  12294. objformat=`/usr/bin/objformat`
  12295. else
  12296. case $host_os in
  12297. freebsd[23].*) objformat=aout ;;
  12298. *) objformat=elf ;;
  12299. esac
  12300. fi
  12301. version_type=freebsd-$objformat
  12302. case $version_type in
  12303. freebsd-elf*)
  12304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12305. soname_spec='$libname$release$shared_ext$major'
  12306. need_version=no
  12307. need_lib_prefix=no
  12308. ;;
  12309. freebsd-*)
  12310. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12311. need_version=yes
  12312. ;;
  12313. esac
  12314. shlibpath_var=LD_LIBRARY_PATH
  12315. case $host_os in
  12316. freebsd2.*)
  12317. shlibpath_overrides_runpath=yes
  12318. ;;
  12319. freebsd3.[01]* | freebsdelf3.[01]*)
  12320. shlibpath_overrides_runpath=yes
  12321. hardcode_into_libs=yes
  12322. ;;
  12323. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12324. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12325. shlibpath_overrides_runpath=no
  12326. hardcode_into_libs=yes
  12327. ;;
  12328. *) # from 4.6 on, and DragonFly
  12329. shlibpath_overrides_runpath=yes
  12330. hardcode_into_libs=yes
  12331. ;;
  12332. esac
  12333. ;;
  12334. haiku*)
  12335. version_type=linux # correct to gnu/linux during the next big refactor
  12336. need_lib_prefix=no
  12337. need_version=no
  12338. dynamic_linker="$host_os runtime_loader"
  12339. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12340. soname_spec='$libname$release$shared_ext$major'
  12341. shlibpath_var=LIBRARY_PATH
  12342. shlibpath_overrides_runpath=no
  12343. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12344. hardcode_into_libs=yes
  12345. ;;
  12346. hpux9* | hpux10* | hpux11*)
  12347. # Give a soname corresponding to the major version so that dld.sl refuses to
  12348. # link against other versions.
  12349. version_type=sunos
  12350. need_lib_prefix=no
  12351. need_version=no
  12352. case $host_cpu in
  12353. ia64*)
  12354. shrext_cmds='.so'
  12355. hardcode_into_libs=yes
  12356. dynamic_linker="$host_os dld.so"
  12357. shlibpath_var=LD_LIBRARY_PATH
  12358. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12360. soname_spec='$libname$release$shared_ext$major'
  12361. if test 32 = "$HPUX_IA64_MODE"; then
  12362. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12363. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  12364. else
  12365. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12366. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  12367. fi
  12368. ;;
  12369. hppa*64*)
  12370. shrext_cmds='.sl'
  12371. hardcode_into_libs=yes
  12372. dynamic_linker="$host_os dld.sl"
  12373. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12374. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12375. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12376. soname_spec='$libname$release$shared_ext$major'
  12377. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12378. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12379. ;;
  12380. *)
  12381. shrext_cmds='.sl'
  12382. dynamic_linker="$host_os dld.sl"
  12383. shlibpath_var=SHLIB_PATH
  12384. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12385. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12386. soname_spec='$libname$release$shared_ext$major'
  12387. ;;
  12388. esac
  12389. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12390. postinstall_cmds='chmod 555 $lib'
  12391. # or fails outright, so override atomically:
  12392. install_override_mode=555
  12393. ;;
  12394. interix[3-9]*)
  12395. version_type=linux # correct to gnu/linux during the next big refactor
  12396. need_lib_prefix=no
  12397. need_version=no
  12398. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12399. soname_spec='$libname$release$shared_ext$major'
  12400. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12401. shlibpath_var=LD_LIBRARY_PATH
  12402. shlibpath_overrides_runpath=no
  12403. hardcode_into_libs=yes
  12404. ;;
  12405. irix5* | irix6* | nonstopux*)
  12406. case $host_os in
  12407. nonstopux*) version_type=nonstopux ;;
  12408. *)
  12409. if test yes = "$lt_cv_prog_gnu_ld"; then
  12410. version_type=linux # correct to gnu/linux during the next big refactor
  12411. else
  12412. version_type=irix
  12413. fi ;;
  12414. esac
  12415. need_lib_prefix=no
  12416. need_version=no
  12417. soname_spec='$libname$release$shared_ext$major'
  12418. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  12419. case $host_os in
  12420. irix5* | nonstopux*)
  12421. libsuff= shlibsuff=
  12422. ;;
  12423. *)
  12424. case $LD in # libtool.m4 will add one of these switches to LD
  12425. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12426. libsuff= shlibsuff= libmagic=32-bit;;
  12427. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12428. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12429. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12430. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12431. *) libsuff= shlibsuff= libmagic=never-match;;
  12432. esac
  12433. ;;
  12434. esac
  12435. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12436. shlibpath_overrides_runpath=no
  12437. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  12438. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  12439. hardcode_into_libs=yes
  12440. ;;
  12441. # No shared lib support for Linux oldld, aout, or coff.
  12442. linux*oldld* | linux*aout* | linux*coff*)
  12443. dynamic_linker=no
  12444. ;;
  12445. linux*android*)
  12446. version_type=none # Android doesn't support versioned libraries.
  12447. need_lib_prefix=no
  12448. need_version=no
  12449. library_names_spec='$libname$release$shared_ext'
  12450. soname_spec='$libname$release$shared_ext'
  12451. finish_cmds=
  12452. shlibpath_var=LD_LIBRARY_PATH
  12453. shlibpath_overrides_runpath=yes
  12454. # This implies no fast_install, which is unacceptable.
  12455. # Some rework will be needed to allow for fast_install
  12456. # before this can be enabled.
  12457. hardcode_into_libs=yes
  12458. dynamic_linker='Android linker'
  12459. # Don't embed -rpath directories since the linker doesn't support them.
  12460. hardcode_libdir_flag_spec='-L$libdir'
  12461. ;;
  12462. # This must be glibc/ELF.
  12463. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12464. version_type=linux # correct to gnu/linux during the next big refactor
  12465. need_lib_prefix=no
  12466. need_version=no
  12467. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12468. soname_spec='$libname$release$shared_ext$major'
  12469. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12470. shlibpath_var=LD_LIBRARY_PATH
  12471. shlibpath_overrides_runpath=no
  12472. # Some binutils ld are patched to set DT_RUNPATH
  12473. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12474. $as_echo_n "(cached) " >&6
  12475. else
  12476. lt_cv_shlibpath_overrides_runpath=no
  12477. save_LDFLAGS=$LDFLAGS
  12478. save_libdir=$libdir
  12479. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12480. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12482. /* end confdefs.h. */
  12483. int main (void)
  12484. {
  12485. ;
  12486. return 0;
  12487. }
  12488. _ACEOF
  12489. if ac_fn_c_try_link "$LINENO"; then :
  12490. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12491. lt_cv_shlibpath_overrides_runpath=yes
  12492. fi
  12493. fi
  12494. rm -f core conftest.err conftest.$ac_objext \
  12495. conftest$ac_exeext conftest.$ac_ext
  12496. LDFLAGS=$save_LDFLAGS
  12497. libdir=$save_libdir
  12498. fi
  12499. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12500. # This implies no fast_install, which is unacceptable.
  12501. # Some rework will be needed to allow for fast_install
  12502. # before this can be enabled.
  12503. hardcode_into_libs=yes
  12504. # Ideally, we could use ldconfig to report *all* directores which are
  12505. # searched for libraries, however this is still not possible. Aside from not
  12506. # being certain /sbin/ldconfig is available, command
  12507. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  12508. # even though it is searched at run-time. Try to do the best guess by
  12509. # appending ld.so.conf contents (and includes) to the search path.
  12510. if test -f /etc/ld.so.conf; then
  12511. 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' ' '`
  12512. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12513. fi
  12514. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12515. # powerpc, because MkLinux only supported shared libraries with the
  12516. # GNU dynamic linker. Since this was broken with cross compilers,
  12517. # most powerpc-linux boxes support dynamic linking these days and
  12518. # people can always --disable-shared, the test was removed, and we
  12519. # assume the GNU/Linux dynamic linker is in use.
  12520. dynamic_linker='GNU/Linux ld.so'
  12521. ;;
  12522. netbsdelf*-gnu)
  12523. version_type=linux
  12524. need_lib_prefix=no
  12525. need_version=no
  12526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12527. soname_spec='${libname}${release}${shared_ext}$major'
  12528. shlibpath_var=LD_LIBRARY_PATH
  12529. shlibpath_overrides_runpath=no
  12530. hardcode_into_libs=yes
  12531. dynamic_linker='NetBSD ld.elf_so'
  12532. ;;
  12533. netbsd*)
  12534. version_type=sunos
  12535. need_lib_prefix=no
  12536. need_version=no
  12537. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12538. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12539. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12540. dynamic_linker='NetBSD (a.out) ld.so'
  12541. else
  12542. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12543. soname_spec='$libname$release$shared_ext$major'
  12544. dynamic_linker='NetBSD ld.elf_so'
  12545. fi
  12546. shlibpath_var=LD_LIBRARY_PATH
  12547. shlibpath_overrides_runpath=yes
  12548. hardcode_into_libs=yes
  12549. ;;
  12550. newsos6)
  12551. version_type=linux # correct to gnu/linux during the next big refactor
  12552. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12553. shlibpath_var=LD_LIBRARY_PATH
  12554. shlibpath_overrides_runpath=yes
  12555. ;;
  12556. *nto* | *qnx*)
  12557. version_type=qnx
  12558. need_lib_prefix=no
  12559. need_version=no
  12560. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12561. soname_spec='$libname$release$shared_ext$major'
  12562. shlibpath_var=LD_LIBRARY_PATH
  12563. shlibpath_overrides_runpath=no
  12564. hardcode_into_libs=yes
  12565. dynamic_linker='ldqnx.so'
  12566. ;;
  12567. openbsd* | bitrig*)
  12568. version_type=sunos
  12569. sys_lib_dlsearch_path_spec=/usr/lib
  12570. need_lib_prefix=no
  12571. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12572. need_version=no
  12573. else
  12574. need_version=yes
  12575. fi
  12576. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12577. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12578. shlibpath_var=LD_LIBRARY_PATH
  12579. shlibpath_overrides_runpath=yes
  12580. ;;
  12581. os2*)
  12582. libname_spec='$name'
  12583. version_type=windows
  12584. shrext_cmds=.dll
  12585. need_version=no
  12586. need_lib_prefix=no
  12587. # OS/2 can only load a DLL with a base name of 8 characters or less.
  12588. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  12589. v=$($ECHO $release$versuffix | tr -d .-);
  12590. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  12591. $ECHO $n$v`$shared_ext'
  12592. library_names_spec='${libname}_dll.$libext'
  12593. dynamic_linker='OS/2 ld.exe'
  12594. shlibpath_var=BEGINLIBPATH
  12595. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  12596. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12597. postinstall_cmds='base_file=`basename \$file`~
  12598. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  12599. dldir=$destdir/`dirname \$dlpath`~
  12600. test -d \$dldir || mkdir -p \$dldir~
  12601. $install_prog $dir/$dlname \$dldir/$dlname~
  12602. chmod a+x \$dldir/$dlname~
  12603. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12604. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12605. fi'
  12606. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  12607. dlpath=$dir/\$dldll~
  12608. $RM \$dlpath'
  12609. ;;
  12610. osf3* | osf4* | osf5*)
  12611. version_type=osf
  12612. need_lib_prefix=no
  12613. need_version=no
  12614. soname_spec='$libname$release$shared_ext$major'
  12615. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12616. shlibpath_var=LD_LIBRARY_PATH
  12617. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12618. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12619. ;;
  12620. rdos*)
  12621. dynamic_linker=no
  12622. ;;
  12623. solaris*)
  12624. version_type=linux # correct to gnu/linux during the next big refactor
  12625. need_lib_prefix=no
  12626. need_version=no
  12627. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12628. soname_spec='$libname$release$shared_ext$major'
  12629. shlibpath_var=LD_LIBRARY_PATH
  12630. shlibpath_overrides_runpath=yes
  12631. hardcode_into_libs=yes
  12632. # ldd complains unless libraries are executable
  12633. postinstall_cmds='chmod +x $lib'
  12634. ;;
  12635. sunos4*)
  12636. version_type=sunos
  12637. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  12638. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12639. shlibpath_var=LD_LIBRARY_PATH
  12640. shlibpath_overrides_runpath=yes
  12641. if test yes = "$with_gnu_ld"; then
  12642. need_lib_prefix=no
  12643. fi
  12644. need_version=yes
  12645. ;;
  12646. sysv4 | sysv4.3*)
  12647. version_type=linux # correct to gnu/linux during the next big refactor
  12648. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12649. soname_spec='$libname$release$shared_ext$major'
  12650. shlibpath_var=LD_LIBRARY_PATH
  12651. case $host_vendor in
  12652. sni)
  12653. shlibpath_overrides_runpath=no
  12654. need_lib_prefix=no
  12655. runpath_var=LD_RUN_PATH
  12656. ;;
  12657. siemens)
  12658. need_lib_prefix=no
  12659. ;;
  12660. motorola)
  12661. need_lib_prefix=no
  12662. need_version=no
  12663. shlibpath_overrides_runpath=no
  12664. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12665. ;;
  12666. esac
  12667. ;;
  12668. sysv4*MP*)
  12669. if test -d /usr/nec; then
  12670. version_type=linux # correct to gnu/linux during the next big refactor
  12671. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  12672. soname_spec='$libname$shared_ext.$major'
  12673. shlibpath_var=LD_LIBRARY_PATH
  12674. fi
  12675. ;;
  12676. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12677. version_type=sco
  12678. need_lib_prefix=no
  12679. need_version=no
  12680. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  12681. soname_spec='$libname$release$shared_ext$major'
  12682. shlibpath_var=LD_LIBRARY_PATH
  12683. shlibpath_overrides_runpath=yes
  12684. hardcode_into_libs=yes
  12685. if test yes = "$with_gnu_ld"; then
  12686. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12687. else
  12688. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12689. case $host_os in
  12690. sco3.2v5*)
  12691. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12692. ;;
  12693. esac
  12694. fi
  12695. sys_lib_dlsearch_path_spec='/usr/lib'
  12696. ;;
  12697. tpf*)
  12698. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12699. version_type=linux # correct to gnu/linux during the next big refactor
  12700. need_lib_prefix=no
  12701. need_version=no
  12702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12703. shlibpath_var=LD_LIBRARY_PATH
  12704. shlibpath_overrides_runpath=no
  12705. hardcode_into_libs=yes
  12706. ;;
  12707. uts4*)
  12708. version_type=linux # correct to gnu/linux during the next big refactor
  12709. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  12710. soname_spec='$libname$release$shared_ext$major'
  12711. shlibpath_var=LD_LIBRARY_PATH
  12712. ;;
  12713. *)
  12714. dynamic_linker=no
  12715. ;;
  12716. esac
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12718. $as_echo "$dynamic_linker" >&6; }
  12719. test no = "$dynamic_linker" && can_build_shared=no
  12720. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12721. if test yes = "$GCC"; then
  12722. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12723. fi
  12724. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  12725. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  12726. fi
  12727. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  12728. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  12729. fi
  12730. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  12731. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  12732. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  12733. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  12734. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  12735. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12737. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12738. hardcode_action=
  12739. if test -n "$hardcode_libdir_flag_spec" ||
  12740. test -n "$runpath_var" ||
  12741. test yes = "$hardcode_automatic"; then
  12742. # We can hardcode non-existent directories.
  12743. if test no != "$hardcode_direct" &&
  12744. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12745. # have to relink, otherwise we might link with an installed library
  12746. # when we should be linking with a yet-to-be-installed one
  12747. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  12748. test no != "$hardcode_minus_L"; then
  12749. # Linking always hardcodes the temporary library directory.
  12750. hardcode_action=relink
  12751. else
  12752. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12753. hardcode_action=immediate
  12754. fi
  12755. else
  12756. # We cannot hardcode anything, or else we can only hardcode existing
  12757. # directories.
  12758. hardcode_action=unsupported
  12759. fi
  12760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12761. $as_echo "$hardcode_action" >&6; }
  12762. if test relink = "$hardcode_action" ||
  12763. test yes = "$inherit_rpath"; then
  12764. # Fast installation is not supported
  12765. enable_fast_install=no
  12766. elif test yes = "$shlibpath_overrides_runpath" ||
  12767. test no = "$enable_shared"; then
  12768. # Fast installation is not necessary
  12769. enable_fast_install=needless
  12770. fi
  12771. if test yes != "$enable_dlopen"; then
  12772. enable_dlopen=unknown
  12773. enable_dlopen_self=unknown
  12774. enable_dlopen_self_static=unknown
  12775. else
  12776. lt_cv_dlopen=no
  12777. lt_cv_dlopen_libs=
  12778. case $host_os in
  12779. beos*)
  12780. lt_cv_dlopen=load_add_on
  12781. lt_cv_dlopen_libs=
  12782. lt_cv_dlopen_self=yes
  12783. ;;
  12784. mingw* | pw32* | cegcc*)
  12785. lt_cv_dlopen=LoadLibrary
  12786. lt_cv_dlopen_libs=
  12787. ;;
  12788. cygwin*)
  12789. lt_cv_dlopen=dlopen
  12790. lt_cv_dlopen_libs=
  12791. ;;
  12792. darwin*)
  12793. # if libdl is installed we need to link against it
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12795. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12796. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12797. $as_echo_n "(cached) " >&6
  12798. else
  12799. ac_check_lib_save_LIBS=$LIBS
  12800. LIBS="-ldl $LIBS"
  12801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12802. /* end confdefs.h. */
  12803. #ifdef __cplusplus
  12804. extern "C"
  12805. #endif
  12806. char dlopen ();
  12807. int main (void)
  12808. {
  12809. return dlopen ();
  12810. ;
  12811. return 0;
  12812. }
  12813. _ACEOF
  12814. if ac_fn_c_try_link "$LINENO"; then :
  12815. ac_cv_lib_dl_dlopen=yes
  12816. else
  12817. ac_cv_lib_dl_dlopen=no
  12818. fi
  12819. rm -f core conftest.err conftest.$ac_objext \
  12820. conftest$ac_exeext conftest.$ac_ext
  12821. LIBS=$ac_check_lib_save_LIBS
  12822. fi
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12824. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12825. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12826. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12827. else
  12828. lt_cv_dlopen=dyld
  12829. lt_cv_dlopen_libs=
  12830. lt_cv_dlopen_self=yes
  12831. fi
  12832. ;;
  12833. tpf*)
  12834. # Don't try to run any link tests for TPF. We know it's impossible
  12835. # because TPF is a cross-compiler, and we know how we open DSOs.
  12836. lt_cv_dlopen=dlopen
  12837. lt_cv_dlopen_libs=
  12838. lt_cv_dlopen_self=no
  12839. ;;
  12840. *)
  12841. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12842. if test "x$ac_cv_func_shl_load" = xyes; then :
  12843. lt_cv_dlopen=shl_load
  12844. else
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12846. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12847. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12848. $as_echo_n "(cached) " >&6
  12849. else
  12850. ac_check_lib_save_LIBS=$LIBS
  12851. LIBS="-ldld $LIBS"
  12852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12853. /* end confdefs.h. */
  12854. #ifdef __cplusplus
  12855. extern "C"
  12856. #endif
  12857. char shl_load ();
  12858. int main (void)
  12859. {
  12860. return shl_load ();
  12861. ;
  12862. return 0;
  12863. }
  12864. _ACEOF
  12865. if ac_fn_c_try_link "$LINENO"; then :
  12866. ac_cv_lib_dld_shl_load=yes
  12867. else
  12868. ac_cv_lib_dld_shl_load=no
  12869. fi
  12870. rm -f core conftest.err conftest.$ac_objext \
  12871. conftest$ac_exeext conftest.$ac_ext
  12872. LIBS=$ac_check_lib_save_LIBS
  12873. fi
  12874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12875. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12876. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12877. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  12878. else
  12879. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12880. if test "x$ac_cv_func_dlopen" = xyes; then :
  12881. lt_cv_dlopen=dlopen
  12882. else
  12883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12884. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12885. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12886. $as_echo_n "(cached) " >&6
  12887. else
  12888. ac_check_lib_save_LIBS=$LIBS
  12889. LIBS="-ldl $LIBS"
  12890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12891. /* end confdefs.h. */
  12892. #ifdef __cplusplus
  12893. extern "C"
  12894. #endif
  12895. char dlopen ();
  12896. int main (void)
  12897. {
  12898. return dlopen ();
  12899. ;
  12900. return 0;
  12901. }
  12902. _ACEOF
  12903. if ac_fn_c_try_link "$LINENO"; then :
  12904. ac_cv_lib_dl_dlopen=yes
  12905. else
  12906. ac_cv_lib_dl_dlopen=no
  12907. fi
  12908. rm -f core conftest.err conftest.$ac_objext \
  12909. conftest$ac_exeext conftest.$ac_ext
  12910. LIBS=$ac_check_lib_save_LIBS
  12911. fi
  12912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12913. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12914. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12915. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  12916. else
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12918. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12919. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12920. $as_echo_n "(cached) " >&6
  12921. else
  12922. ac_check_lib_save_LIBS=$LIBS
  12923. LIBS="-lsvld $LIBS"
  12924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12925. /* end confdefs.h. */
  12926. #ifdef __cplusplus
  12927. extern "C"
  12928. #endif
  12929. char dlopen ();
  12930. int main (void)
  12931. {
  12932. return dlopen ();
  12933. ;
  12934. return 0;
  12935. }
  12936. _ACEOF
  12937. if ac_fn_c_try_link "$LINENO"; then :
  12938. ac_cv_lib_svld_dlopen=yes
  12939. else
  12940. ac_cv_lib_svld_dlopen=no
  12941. fi
  12942. rm -f core conftest.err conftest.$ac_objext \
  12943. conftest$ac_exeext conftest.$ac_ext
  12944. LIBS=$ac_check_lib_save_LIBS
  12945. fi
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12947. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12948. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12949. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  12950. else
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12952. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12953. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12954. $as_echo_n "(cached) " >&6
  12955. else
  12956. ac_check_lib_save_LIBS=$LIBS
  12957. LIBS="-ldld $LIBS"
  12958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12959. /* end confdefs.h. */
  12960. #ifdef __cplusplus
  12961. extern "C"
  12962. #endif
  12963. char dld_link ();
  12964. int main (void)
  12965. {
  12966. return dld_link ();
  12967. ;
  12968. return 0;
  12969. }
  12970. _ACEOF
  12971. if ac_fn_c_try_link "$LINENO"; then :
  12972. ac_cv_lib_dld_dld_link=yes
  12973. else
  12974. ac_cv_lib_dld_dld_link=no
  12975. fi
  12976. rm -f core conftest.err conftest.$ac_objext \
  12977. conftest$ac_exeext conftest.$ac_ext
  12978. LIBS=$ac_check_lib_save_LIBS
  12979. fi
  12980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12981. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12982. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12983. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  12984. fi
  12985. fi
  12986. fi
  12987. fi
  12988. fi
  12989. fi
  12990. ;;
  12991. esac
  12992. if test no = "$lt_cv_dlopen"; then
  12993. enable_dlopen=no
  12994. else
  12995. enable_dlopen=yes
  12996. fi
  12997. case $lt_cv_dlopen in
  12998. dlopen)
  12999. save_CPPFLAGS=$CPPFLAGS
  13000. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13001. save_LDFLAGS=$LDFLAGS
  13002. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13003. save_LIBS=$LIBS
  13004. LIBS="$lt_cv_dlopen_libs $LIBS"
  13005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13006. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  13007. if ${lt_cv_dlopen_self+:} false; then :
  13008. $as_echo_n "(cached) " >&6
  13009. else
  13010. if test yes = "$cross_compiling"; then :
  13011. lt_cv_dlopen_self=cross
  13012. else
  13013. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13014. lt_status=$lt_dlunknown
  13015. cat > conftest.$ac_ext <<_LT_EOF
  13016. #line $LINENO "configure"
  13017. #include "confdefs.h"
  13018. #if HAVE_DLFCN_H
  13019. #include <dlfcn.h>
  13020. #endif
  13021. #include <stdio.h>
  13022. #ifdef RTLD_GLOBAL
  13023. # define LT_DLGLOBAL RTLD_GLOBAL
  13024. #else
  13025. # ifdef DL_GLOBAL
  13026. # define LT_DLGLOBAL DL_GLOBAL
  13027. # else
  13028. # define LT_DLGLOBAL 0
  13029. # endif
  13030. #endif
  13031. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13032. find out it does not work in some platform. */
  13033. #ifndef LT_DLLAZY_OR_NOW
  13034. # ifdef RTLD_LAZY
  13035. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13036. # else
  13037. # ifdef DL_LAZY
  13038. # define LT_DLLAZY_OR_NOW DL_LAZY
  13039. # else
  13040. # ifdef RTLD_NOW
  13041. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13042. # else
  13043. # ifdef DL_NOW
  13044. # define LT_DLLAZY_OR_NOW DL_NOW
  13045. # else
  13046. # define LT_DLLAZY_OR_NOW 0
  13047. # endif
  13048. # endif
  13049. # endif
  13050. # endif
  13051. #endif
  13052. /* When -fvisibility=hidden is used, assume the code has been annotated
  13053. correspondingly for the symbols needed. */
  13054. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13055. int fnord () __attribute__((visibility("default")));
  13056. #endif
  13057. int fnord () { return 42; }
  13058. int main ()
  13059. {
  13060. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13061. int status = $lt_dlunknown;
  13062. if (self)
  13063. {
  13064. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13065. else
  13066. {
  13067. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13068. else puts (dlerror ());
  13069. }
  13070. /* dlclose (self); */
  13071. }
  13072. else
  13073. puts (dlerror ());
  13074. return status;
  13075. }
  13076. _LT_EOF
  13077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13078. (eval $ac_link) 2>&5
  13079. ac_status=$?
  13080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13081. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13082. (./conftest; exit; ) >&5 2>/dev/null
  13083. lt_status=$?
  13084. case x$lt_status in
  13085. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13086. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13087. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  13088. esac
  13089. else :
  13090. # compilation failed
  13091. lt_cv_dlopen_self=no
  13092. fi
  13093. fi
  13094. rm -fr conftest*
  13095. fi
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13097. $as_echo "$lt_cv_dlopen_self" >&6; }
  13098. if test yes = "$lt_cv_dlopen_self"; then
  13099. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13101. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  13102. if ${lt_cv_dlopen_self_static+:} false; then :
  13103. $as_echo_n "(cached) " >&6
  13104. else
  13105. if test yes = "$cross_compiling"; then :
  13106. lt_cv_dlopen_self_static=cross
  13107. else
  13108. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13109. lt_status=$lt_dlunknown
  13110. cat > conftest.$ac_ext <<_LT_EOF
  13111. #line $LINENO "configure"
  13112. #include "confdefs.h"
  13113. #if HAVE_DLFCN_H
  13114. #include <dlfcn.h>
  13115. #endif
  13116. #include <stdio.h>
  13117. #ifdef RTLD_GLOBAL
  13118. # define LT_DLGLOBAL RTLD_GLOBAL
  13119. #else
  13120. # ifdef DL_GLOBAL
  13121. # define LT_DLGLOBAL DL_GLOBAL
  13122. # else
  13123. # define LT_DLGLOBAL 0
  13124. # endif
  13125. #endif
  13126. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13127. find out it does not work in some platform. */
  13128. #ifndef LT_DLLAZY_OR_NOW
  13129. # ifdef RTLD_LAZY
  13130. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13131. # else
  13132. # ifdef DL_LAZY
  13133. # define LT_DLLAZY_OR_NOW DL_LAZY
  13134. # else
  13135. # ifdef RTLD_NOW
  13136. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13137. # else
  13138. # ifdef DL_NOW
  13139. # define LT_DLLAZY_OR_NOW DL_NOW
  13140. # else
  13141. # define LT_DLLAZY_OR_NOW 0
  13142. # endif
  13143. # endif
  13144. # endif
  13145. # endif
  13146. #endif
  13147. /* When -fvisibility=hidden is used, assume the code has been annotated
  13148. correspondingly for the symbols needed. */
  13149. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  13150. int fnord () __attribute__((visibility("default")));
  13151. #endif
  13152. int fnord () { return 42; }
  13153. int main ()
  13154. {
  13155. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13156. int status = $lt_dlunknown;
  13157. if (self)
  13158. {
  13159. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13160. else
  13161. {
  13162. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13163. else puts (dlerror ());
  13164. }
  13165. /* dlclose (self); */
  13166. }
  13167. else
  13168. puts (dlerror ());
  13169. return status;
  13170. }
  13171. _LT_EOF
  13172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13173. (eval $ac_link) 2>&5
  13174. ac_status=$?
  13175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13176. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  13177. (./conftest; exit; ) >&5 2>/dev/null
  13178. lt_status=$?
  13179. case x$lt_status in
  13180. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13181. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13182. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  13183. esac
  13184. else :
  13185. # compilation failed
  13186. lt_cv_dlopen_self_static=no
  13187. fi
  13188. fi
  13189. rm -fr conftest*
  13190. fi
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13192. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  13193. fi
  13194. CPPFLAGS=$save_CPPFLAGS
  13195. LDFLAGS=$save_LDFLAGS
  13196. LIBS=$save_LIBS
  13197. ;;
  13198. esac
  13199. case $lt_cv_dlopen_self in
  13200. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  13201. *) enable_dlopen_self=unknown ;;
  13202. esac
  13203. case $lt_cv_dlopen_self_static in
  13204. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  13205. *) enable_dlopen_self_static=unknown ;;
  13206. esac
  13207. fi
  13208. striplib=
  13209. old_striplib=
  13210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13211. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  13212. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  13213. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13214. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13216. $as_echo "yes" >&6; }
  13217. else
  13218. # FIXME - insert some real tests, host_os isn't really good enough
  13219. case $host_os in
  13220. darwin*)
  13221. if test -n "$STRIP"; then
  13222. striplib="$STRIP -x"
  13223. old_striplib="$STRIP -S"
  13224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13225. $as_echo "yes" >&6; }
  13226. else
  13227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13228. $as_echo "no" >&6; }
  13229. fi
  13230. ;;
  13231. *)
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13233. $as_echo "no" >&6; }
  13234. ;;
  13235. esac
  13236. fi
  13237. # Report what library types will actually be built
  13238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  13239. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  13240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  13241. $as_echo "$can_build_shared" >&6; }
  13242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  13243. $as_echo_n "checking whether to build shared libraries... " >&6; }
  13244. test no = "$can_build_shared" && enable_shared=no
  13245. # On AIX, shared libraries and static libraries use the same namespace, and
  13246. # are all built from PIC.
  13247. case $host_os in
  13248. aix3*)
  13249. test yes = "$enable_shared" && enable_static=no
  13250. if test -n "$RANLIB"; then
  13251. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13252. postinstall_cmds='$RANLIB $lib'
  13253. fi
  13254. ;;
  13255. aix[4-9]*)
  13256. if test ia64 != "$host_cpu"; then
  13257. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  13258. yes,aix,yes) ;; # shared object as lib.so file only
  13259. yes,svr4,*) ;; # shared object as lib.so archive member only
  13260. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  13261. esac
  13262. fi
  13263. ;;
  13264. esac
  13265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  13266. $as_echo "$enable_shared" >&6; }
  13267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  13268. $as_echo_n "checking whether to build static libraries... " >&6; }
  13269. # Make sure either enable_shared or enable_static is yes.
  13270. test yes = "$enable_shared" || enable_static=yes
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  13272. $as_echo "$enable_static" >&6; }
  13273. fi
  13274. ac_ext=c
  13275. ac_cpp='$CPP $CPPFLAGS'
  13276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13279. CC=$lt_save_CC
  13280. ac_config_commands="$ac_config_commands libtool"
  13281. # Only expand once:
  13282. ## --------------------- ##
  13283. ## End of libtool code ##
  13284. ## --------------------- ##
  13285. #
  13286. # Verify if finally libtool shared libraries will be built
  13287. #
  13288. case "x$enable_shared" in # ((
  13289. xyes | xno)
  13290. xc_lt_build_shared=$enable_shared
  13291. ;;
  13292. *)
  13293. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  13294. ;;
  13295. esac
  13296. #
  13297. # Verify if finally libtool static libraries will be built
  13298. #
  13299. case "x$enable_static" in # ((
  13300. xyes | xno)
  13301. xc_lt_build_static=$enable_static
  13302. ;;
  13303. *)
  13304. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  13305. ;;
  13306. esac
  13307. #
  13308. # Verify if libtool shared libraries should be linked using flag -version-info
  13309. #
  13310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  13311. $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
  13312. xc_lt_shlib_use_version_info='yes'
  13313. if test "x$version_type" = 'xnone'; then
  13314. xc_lt_shlib_use_version_info='no'
  13315. fi
  13316. case $host_os in # (
  13317. amigaos*)
  13318. xc_lt_shlib_use_version_info='yes'
  13319. ;;
  13320. esac
  13321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  13322. $as_echo "$xc_lt_shlib_use_version_info" >&6; }
  13323. #
  13324. # Verify if libtool shared libraries should be linked using flag -no-undefined
  13325. #
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  13327. $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
  13328. xc_lt_shlib_use_no_undefined='no'
  13329. if test "x$allow_undefined" = 'xno'; then
  13330. xc_lt_shlib_use_no_undefined='yes'
  13331. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  13332. xc_lt_shlib_use_no_undefined='yes'
  13333. fi
  13334. case $host_os in # (
  13335. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  13336. xc_lt_shlib_use_no_undefined='yes'
  13337. ;;
  13338. esac
  13339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  13340. $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
  13341. #
  13342. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  13343. #
  13344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  13345. $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
  13346. xc_lt_shlib_use_mimpure_text='no'
  13347. case $host_os in # (
  13348. solaris2*)
  13349. if test "x$GCC" = 'xyes'; then
  13350. xc_lt_shlib_use_mimpure_text='yes'
  13351. fi
  13352. ;;
  13353. esac
  13354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  13355. $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
  13356. #
  13357. # Find out whether libtool libraries would be built wit PIC
  13358. #
  13359. case "x$pic_mode" in # ((((
  13360. xdefault)
  13361. xc_lt_build_shared_with_pic='yes'
  13362. xc_lt_build_static_with_pic='no'
  13363. ;;
  13364. xyes)
  13365. xc_lt_build_shared_with_pic='yes'
  13366. xc_lt_build_static_with_pic='yes'
  13367. ;;
  13368. xno)
  13369. xc_lt_build_shared_with_pic='no'
  13370. xc_lt_build_static_with_pic='no'
  13371. ;;
  13372. *)
  13373. xc_lt_build_shared_with_pic='unknown'
  13374. xc_lt_build_static_with_pic='unknown'
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  13376. $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  13377. ;;
  13378. esac
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  13380. $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  13382. $as_echo "$xc_lt_build_shared_with_pic" >&6; }
  13383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  13384. $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  13386. $as_echo "$xc_lt_build_static_with_pic" >&6; }
  13387. #
  13388. # Verify if libtool shared libraries will be built while static not built
  13389. #
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  13391. $as_echo_n "checking whether to build shared libraries only... " >&6; }
  13392. if test "$xc_lt_build_shared" = 'yes' &&
  13393. test "$xc_lt_build_static" = 'no'; then
  13394. xc_lt_build_shared_only='yes'
  13395. else
  13396. xc_lt_build_shared_only='no'
  13397. fi
  13398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  13399. $as_echo "$xc_lt_build_shared_only" >&6; }
  13400. #
  13401. # Verify if libtool static libraries will be built while shared not built
  13402. #
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  13404. $as_echo_n "checking whether to build static libraries only... " >&6; }
  13405. if test "$xc_lt_build_static" = 'yes' &&
  13406. test "$xc_lt_build_shared" = 'no'; then
  13407. xc_lt_build_static_only='yes'
  13408. else
  13409. xc_lt_build_static_only='no'
  13410. fi
  13411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  13412. $as_echo "$xc_lt_build_static_only" >&6; }
  13413. #
  13414. # Automake conditionals based on libtool related checks
  13415. #
  13416. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  13417. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
  13418. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  13419. else
  13420. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  13421. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
  13422. fi
  13423. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  13424. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  13425. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  13426. else
  13427. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  13428. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  13429. fi
  13430. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  13431. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  13432. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  13433. else
  13434. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  13435. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  13436. fi
  13437. #
  13438. # Due to libtool and automake machinery limitations of not allowing
  13439. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  13440. # inclusion of these in shared or static libraries, we are forced to
  13441. # build using separate configure runs for shared and static libraries
  13442. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  13443. # to compile objects for each kind of library. Notice that relying on
  13444. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  13445. # user might for example choose to build static libraries with PIC.
  13446. #
  13447. #
  13448. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  13449. # targeting a static library and not building its shared counterpart.
  13450. #
  13451. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13452. USE_CPPFLAG_CURL_STATICLIB_TRUE=
  13453. USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
  13454. else
  13455. USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
  13456. USE_CPPFLAG_CURL_STATICLIB_FALSE=
  13457. fi
  13458. #
  13459. # Make staticlib CPPFLAG variable and its definition visible in output
  13460. # files unconditionally, providing an empty definition unless strictly
  13461. # targeting a static library and not building its shared counterpart.
  13462. #
  13463. CPPFLAG_CURL_STATICLIB=
  13464. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13465. CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
  13466. fi
  13467. # Determine whether all dependent libraries must be specified when linking
  13468. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  13469. then
  13470. REQUIRE_LIB_DEPS=no
  13471. else
  13472. REQUIRE_LIB_DEPS=yes
  13473. fi
  13474. if test x$REQUIRE_LIB_DEPS = xyes; then
  13475. USE_EXPLICIT_LIB_DEPS_TRUE=
  13476. USE_EXPLICIT_LIB_DEPS_FALSE='#'
  13477. else
  13478. USE_EXPLICIT_LIB_DEPS_TRUE='#'
  13479. USE_EXPLICIT_LIB_DEPS_FALSE=
  13480. fi
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13482. $as_echo_n "checking for inline... " >&6; }
  13483. if ${ac_cv_c_inline+:} false; then :
  13484. $as_echo_n "(cached) " >&6
  13485. else
  13486. ac_cv_c_inline=no
  13487. for ac_kw in inline __inline__ __inline; do
  13488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13489. /* end confdefs.h. */
  13490. #ifndef __cplusplus
  13491. typedef int foo_t;
  13492. static $ac_kw foo_t static_foo () {return 0; }
  13493. $ac_kw foo_t foo () {return 0; }
  13494. #endif
  13495. _ACEOF
  13496. if ac_fn_c_try_compile "$LINENO"; then :
  13497. ac_cv_c_inline=$ac_kw
  13498. fi
  13499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13500. test "$ac_cv_c_inline" != no && break
  13501. done
  13502. fi
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13504. $as_echo "$ac_cv_c_inline" >&6; }
  13505. case $ac_cv_c_inline in
  13506. inline | yes) ;;
  13507. *)
  13508. case $ac_cv_c_inline in
  13509. no) ac_val=;;
  13510. *) ac_val=$ac_cv_c_inline;;
  13511. esac
  13512. cat >>confdefs.h <<_ACEOF
  13513. #ifndef __cplusplus
  13514. #define inline $ac_val
  13515. #endif
  13516. _ACEOF
  13517. ;;
  13518. esac
  13519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
  13520. $as_echo_n "checking if cpp -P is needed... " >&6; }
  13521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13522. /* end confdefs.h. */
  13523. #include <errno.h>
  13524. TEST EINVAL TEST
  13525. _ACEOF
  13526. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13527. $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
  13528. cpp=no
  13529. else
  13530. cpp=yes
  13531. fi
  13532. rm -f conftest*
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
  13534. $as_echo "$cpp" >&6; }
  13535. if test "x$cpp" = "xyes"; then
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
  13537. $as_echo_n "checking if cpp -P works... " >&6; }
  13538. OLDCPPFLAGS=$CPPFLAGS
  13539. CPPFLAGS="$CPPFLAGS -P"
  13540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13541. /* end confdefs.h. */
  13542. #include <errno.h>
  13543. TEST EINVAL TEST
  13544. _ACEOF
  13545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13546. $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
  13547. cpp_p=yes
  13548. else
  13549. cpp_p=no
  13550. fi
  13551. rm -f conftest*
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
  13553. $as_echo "$cpp_p" >&6; }
  13554. if test "x$cpp_p" = "xno"; then
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
  13556. $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
  13557. # without -P
  13558. CPPPFLAG=""
  13559. else
  13560. # with -P
  13561. CPPPFLAG="-P"
  13562. fi
  13563. CPPFLAGS=$OLDCPPFLAGS
  13564. else
  13565. # without -P
  13566. CPPPFLAG=""
  13567. fi
  13568. #
  13569. compiler_id="unknown"
  13570. compiler_num="0"
  13571. #
  13572. flags_dbg_all="unknown"
  13573. flags_dbg_yes="unknown"
  13574. flags_dbg_off="unknown"
  13575. flags_opt_all="unknown"
  13576. flags_opt_yes="unknown"
  13577. flags_opt_off="unknown"
  13578. #
  13579. flags_prefer_cppflags="no"
  13580. #
  13581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  13582. $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
  13583. OLDCPPFLAGS=$CPPFLAGS
  13584. # CPPPFLAG comes from CURL_CPP_P
  13585. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13586. if test -z "$SED"; then
  13587. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13588. fi
  13589. if test -z "$GREP"; then
  13590. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13591. fi
  13592. tmp_exp=""
  13593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13594. /* end confdefs.h. */
  13595. #ifdef __DECC
  13596. CURL_DEF_TOKEN __DECC
  13597. #endif
  13598. _ACEOF
  13599. if ac_fn_c_try_cpp "$LINENO"; then :
  13600. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13601. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13602. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13603. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13604. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  13605. tmp_exp=""
  13606. fi
  13607. fi
  13608. rm -f conftest.err conftest.i conftest.$ac_ext
  13609. if test -z "$tmp_exp"; then
  13610. curl_cv_have_def___DECC=no
  13611. else
  13612. curl_cv_have_def___DECC=yes
  13613. curl_cv_def___DECC=$tmp_exp
  13614. fi
  13615. CPPFLAGS=$OLDCPPFLAGS
  13616. OLDCPPFLAGS=$CPPFLAGS
  13617. # CPPPFLAG comes from CURL_CPP_P
  13618. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13619. if test -z "$SED"; then
  13620. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13621. fi
  13622. if test -z "$GREP"; then
  13623. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13624. fi
  13625. tmp_exp=""
  13626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13627. /* end confdefs.h. */
  13628. #ifdef __DECC_VER
  13629. CURL_DEF_TOKEN __DECC_VER
  13630. #endif
  13631. _ACEOF
  13632. if ac_fn_c_try_cpp "$LINENO"; then :
  13633. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13634. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13635. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13636. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13637. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  13638. tmp_exp=""
  13639. fi
  13640. fi
  13641. rm -f conftest.err conftest.i conftest.$ac_ext
  13642. if test -z "$tmp_exp"; then
  13643. curl_cv_have_def___DECC_VER=no
  13644. else
  13645. curl_cv_have_def___DECC_VER=yes
  13646. curl_cv_def___DECC_VER=$tmp_exp
  13647. fi
  13648. CPPFLAGS=$OLDCPPFLAGS
  13649. if test "$curl_cv_have_def___DECC" = "yes" &&
  13650. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13652. $as_echo "yes" >&6; }
  13653. compiler_id="DEC_C"
  13654. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13655. flags_dbg_yes="-g2"
  13656. flags_dbg_off=""
  13657. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  13658. flags_opt_yes="-O1"
  13659. flags_opt_off="-O0"
  13660. else
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13662. $as_echo "no" >&6; }
  13663. fi
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  13665. $as_echo_n "checking if compiler is HP-UX C... " >&6; }
  13666. OLDCPPFLAGS=$CPPFLAGS
  13667. # CPPPFLAG comes from CURL_CPP_P
  13668. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13669. if test -z "$SED"; then
  13670. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13671. fi
  13672. if test -z "$GREP"; then
  13673. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13674. fi
  13675. tmp_exp=""
  13676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13677. /* end confdefs.h. */
  13678. #ifdef __HP_cc
  13679. CURL_DEF_TOKEN __HP_cc
  13680. #endif
  13681. _ACEOF
  13682. if ac_fn_c_try_cpp "$LINENO"; then :
  13683. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13684. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13685. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13686. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13687. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  13688. tmp_exp=""
  13689. fi
  13690. fi
  13691. rm -f conftest.err conftest.i conftest.$ac_ext
  13692. if test -z "$tmp_exp"; then
  13693. curl_cv_have_def___HP_cc=no
  13694. else
  13695. curl_cv_have_def___HP_cc=yes
  13696. curl_cv_def___HP_cc=$tmp_exp
  13697. fi
  13698. CPPFLAGS=$OLDCPPFLAGS
  13699. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13701. $as_echo "yes" >&6; }
  13702. compiler_id="HP_UX_C"
  13703. flags_dbg_all="-g -s"
  13704. flags_dbg_yes="-g"
  13705. flags_dbg_off="-s"
  13706. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  13707. flags_opt_yes="+O2"
  13708. flags_opt_off="+O0"
  13709. else
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13711. $as_echo "no" >&6; }
  13712. fi
  13713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  13714. $as_echo_n "checking if compiler is IBM C... " >&6; }
  13715. OLDCPPFLAGS=$CPPFLAGS
  13716. # CPPPFLAG comes from CURL_CPP_P
  13717. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13718. if test -z "$SED"; then
  13719. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13720. fi
  13721. if test -z "$GREP"; then
  13722. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13723. fi
  13724. tmp_exp=""
  13725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13726. /* end confdefs.h. */
  13727. #ifdef __IBMC__
  13728. CURL_DEF_TOKEN __IBMC__
  13729. #endif
  13730. _ACEOF
  13731. if ac_fn_c_try_cpp "$LINENO"; then :
  13732. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13733. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13734. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13735. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13736. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  13737. tmp_exp=""
  13738. fi
  13739. fi
  13740. rm -f conftest.err conftest.i conftest.$ac_ext
  13741. if test -z "$tmp_exp"; then
  13742. curl_cv_have_def___IBMC__=no
  13743. else
  13744. curl_cv_have_def___IBMC__=yes
  13745. curl_cv_def___IBMC__=$tmp_exp
  13746. fi
  13747. CPPFLAGS=$OLDCPPFLAGS
  13748. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  13749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13750. $as_echo "yes" >&6; }
  13751. compiler_id="IBM_C"
  13752. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13753. flags_dbg_yes="-g"
  13754. flags_dbg_off=""
  13755. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  13756. flags_opt_all="$flags_opt_all -qnooptimize"
  13757. flags_opt_all="$flags_opt_all -qoptimize=0"
  13758. flags_opt_all="$flags_opt_all -qoptimize=1"
  13759. flags_opt_all="$flags_opt_all -qoptimize=2"
  13760. flags_opt_all="$flags_opt_all -qoptimize=3"
  13761. flags_opt_all="$flags_opt_all -qoptimize=4"
  13762. flags_opt_all="$flags_opt_all -qoptimize=5"
  13763. flags_opt_yes="-O2"
  13764. flags_opt_off="-qnooptimize"
  13765. flags_prefer_cppflags="yes"
  13766. else
  13767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13768. $as_echo "no" >&6; }
  13769. fi
  13770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  13771. $as_echo_n "checking if compiler is Intel C... " >&6; }
  13772. OLDCPPFLAGS=$CPPFLAGS
  13773. # CPPPFLAG comes from CURL_CPP_P
  13774. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13775. if test -z "$SED"; then
  13776. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13777. fi
  13778. if test -z "$GREP"; then
  13779. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13780. fi
  13781. tmp_exp=""
  13782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13783. /* end confdefs.h. */
  13784. #ifdef __INTEL_COMPILER
  13785. CURL_DEF_TOKEN __INTEL_COMPILER
  13786. #endif
  13787. _ACEOF
  13788. if ac_fn_c_try_cpp "$LINENO"; then :
  13789. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13790. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13791. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13792. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13793. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  13794. tmp_exp=""
  13795. fi
  13796. fi
  13797. rm -f conftest.err conftest.i conftest.$ac_ext
  13798. if test -z "$tmp_exp"; then
  13799. curl_cv_have_def___INTEL_COMPILER=no
  13800. else
  13801. curl_cv_have_def___INTEL_COMPILER=yes
  13802. curl_cv_def___INTEL_COMPILER=$tmp_exp
  13803. fi
  13804. CPPFLAGS=$OLDCPPFLAGS
  13805. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13807. $as_echo "yes" >&6; }
  13808. compiler_num="$curl_cv_def___INTEL_COMPILER"
  13809. OLDCPPFLAGS=$CPPFLAGS
  13810. # CPPPFLAG comes from CURL_CPP_P
  13811. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13812. if test -z "$SED"; then
  13813. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13814. fi
  13815. if test -z "$GREP"; then
  13816. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13817. fi
  13818. tmp_exp=""
  13819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13820. /* end confdefs.h. */
  13821. #ifdef __unix__
  13822. CURL_DEF_TOKEN __unix__
  13823. #endif
  13824. _ACEOF
  13825. if ac_fn_c_try_cpp "$LINENO"; then :
  13826. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13827. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13828. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13829. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13830. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  13831. tmp_exp=""
  13832. fi
  13833. fi
  13834. rm -f conftest.err conftest.i conftest.$ac_ext
  13835. if test -z "$tmp_exp"; then
  13836. curl_cv_have_def___unix__=no
  13837. else
  13838. curl_cv_have_def___unix__=yes
  13839. curl_cv_def___unix__=$tmp_exp
  13840. fi
  13841. CPPFLAGS=$OLDCPPFLAGS
  13842. if test "$curl_cv_have_def___unix__" = "yes"; then
  13843. compiler_id="INTEL_UNIX_C"
  13844. flags_dbg_all="-g -g0"
  13845. flags_dbg_yes="-g"
  13846. flags_dbg_off=""
  13847. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  13848. flags_opt_yes="-O2"
  13849. flags_opt_off="-O0"
  13850. else
  13851. compiler_id="INTEL_WINDOWS_C"
  13852. flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
  13853. flags_dbg_all="$flags_dbg_all /debug"
  13854. flags_dbg_all="$flags_dbg_all /debug:none"
  13855. flags_dbg_all="$flags_dbg_all /debug:minimal"
  13856. flags_dbg_all="$flags_dbg_all /debug:partial"
  13857. flags_dbg_all="$flags_dbg_all /debug:full"
  13858. flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
  13859. flags_dbg_all="$flags_dbg_all /debug:extended"
  13860. flags_dbg_yes="/Zi /Oy-"
  13861. flags_dbg_off="/debug:none /Oy-"
  13862. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  13863. flags_opt_yes="/O2"
  13864. flags_opt_off="/Od"
  13865. fi
  13866. else
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13868. $as_echo "no" >&6; }
  13869. fi
  13870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  13871. $as_echo_n "checking if compiler is clang... " >&6; }
  13872. OLDCPPFLAGS=$CPPFLAGS
  13873. # CPPPFLAG comes from CURL_CPP_P
  13874. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13875. if test -z "$SED"; then
  13876. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13877. fi
  13878. if test -z "$GREP"; then
  13879. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13880. fi
  13881. tmp_exp=""
  13882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13883. /* end confdefs.h. */
  13884. #ifdef __clang__
  13885. CURL_DEF_TOKEN __clang__
  13886. #endif
  13887. _ACEOF
  13888. if ac_fn_c_try_cpp "$LINENO"; then :
  13889. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13890. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13891. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13892. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13893. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  13894. tmp_exp=""
  13895. fi
  13896. fi
  13897. rm -f conftest.err conftest.i conftest.$ac_ext
  13898. if test -z "$tmp_exp"; then
  13899. curl_cv_have_def___clang__=no
  13900. else
  13901. curl_cv_have_def___clang__=yes
  13902. curl_cv_def___clang__=$tmp_exp
  13903. fi
  13904. CPPFLAGS=$OLDCPPFLAGS
  13905. if test "$curl_cv_have_def___clang__" = "yes"; then
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13907. $as_echo "yes" >&6; }
  13908. compiler_id="CLANG"
  13909. fullclangver=`$CC -v 2>&1 | grep version`
  13910. clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
  13911. if test -z "$clangver"; then
  13912. if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
  13913. clangver="3.7"
  13914. else
  13915. clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
  13916. fi
  13917. fi
  13918. clangvhi=`echo $clangver | cut -d . -f1`
  13919. clangvlo=`echo $clangver | cut -d . -f2`
  13920. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  13921. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13922. flags_dbg_all="$flags_dbg_all -ggdb"
  13923. flags_dbg_all="$flags_dbg_all -gstabs"
  13924. flags_dbg_all="$flags_dbg_all -gstabs+"
  13925. flags_dbg_all="$flags_dbg_all -gcoff"
  13926. flags_dbg_all="$flags_dbg_all -gxcoff"
  13927. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13928. flags_dbg_all="$flags_dbg_all -gvms"
  13929. flags_dbg_yes="-g"
  13930. flags_dbg_off=""
  13931. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  13932. flags_opt_yes="-Os"
  13933. flags_opt_off="-O0"
  13934. else
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13936. $as_echo "no" >&6; }
  13937. fi
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  13939. $as_echo_n "checking if compiler is GNU C... " >&6; }
  13940. OLDCPPFLAGS=$CPPFLAGS
  13941. # CPPPFLAG comes from CURL_CPP_P
  13942. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13943. if test -z "$SED"; then
  13944. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13945. fi
  13946. if test -z "$GREP"; then
  13947. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13948. fi
  13949. tmp_exp=""
  13950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13951. /* end confdefs.h. */
  13952. #ifdef __GNUC__
  13953. CURL_DEF_TOKEN __GNUC__
  13954. #endif
  13955. _ACEOF
  13956. if ac_fn_c_try_cpp "$LINENO"; then :
  13957. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13958. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13959. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13960. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13961. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13962. tmp_exp=""
  13963. fi
  13964. fi
  13965. rm -f conftest.err conftest.i conftest.$ac_ext
  13966. if test -z "$tmp_exp"; then
  13967. curl_cv_have_def___GNUC__=no
  13968. else
  13969. curl_cv_have_def___GNUC__=yes
  13970. curl_cv_def___GNUC__=$tmp_exp
  13971. fi
  13972. CPPFLAGS=$OLDCPPFLAGS
  13973. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  13974. test "$compiler_id" = "unknown"; then
  13975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13976. $as_echo "yes" >&6; }
  13977. compiler_id="GNU_C"
  13978. gccver=`$CC -dumpversion`
  13979. gccvhi=`echo $gccver | cut -d . -f1`
  13980. gccvlo=`echo $gccver | cut -d . -f2`
  13981. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  13982. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13983. flags_dbg_all="$flags_dbg_all -ggdb"
  13984. flags_dbg_all="$flags_dbg_all -gstabs"
  13985. flags_dbg_all="$flags_dbg_all -gstabs+"
  13986. flags_dbg_all="$flags_dbg_all -gcoff"
  13987. flags_dbg_all="$flags_dbg_all -gxcoff"
  13988. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13989. flags_dbg_all="$flags_dbg_all -gvms"
  13990. flags_dbg_yes="-g"
  13991. flags_dbg_off=""
  13992. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
  13993. flags_opt_yes="-O2"
  13994. flags_opt_off="-O0"
  13995. OLDCPPFLAGS=$CPPFLAGS
  13996. # CPPPFLAG comes from CURL_CPP_P
  13997. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  13998. if test -z "$SED"; then
  13999. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14000. fi
  14001. if test -z "$GREP"; then
  14002. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14003. fi
  14004. tmp_exp=""
  14005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14006. /* end confdefs.h. */
  14007. #ifdef _WIN32
  14008. CURL_DEF_TOKEN _WIN32
  14009. #endif
  14010. _ACEOF
  14011. if ac_fn_c_try_cpp "$LINENO"; then :
  14012. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14013. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14014. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14015. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14016. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  14017. tmp_exp=""
  14018. fi
  14019. fi
  14020. rm -f conftest.err conftest.i conftest.$ac_ext
  14021. if test -z "$tmp_exp"; then
  14022. curl_cv_have_def__WIN32=no
  14023. else
  14024. curl_cv_have_def__WIN32=yes
  14025. curl_cv_def__WIN32=$tmp_exp
  14026. fi
  14027. CPPFLAGS=$OLDCPPFLAGS
  14028. else
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14030. $as_echo "no" >&6; }
  14031. fi
  14032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  14033. $as_echo_n "checking if compiler is LCC... " >&6; }
  14034. OLDCPPFLAGS=$CPPFLAGS
  14035. # CPPPFLAG comes from CURL_CPP_P
  14036. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14037. if test -z "$SED"; then
  14038. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14039. fi
  14040. if test -z "$GREP"; then
  14041. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14042. fi
  14043. tmp_exp=""
  14044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14045. /* end confdefs.h. */
  14046. #ifdef __LCC__
  14047. CURL_DEF_TOKEN __LCC__
  14048. #endif
  14049. _ACEOF
  14050. if ac_fn_c_try_cpp "$LINENO"; then :
  14051. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14052. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14053. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14054. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14055. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  14056. tmp_exp=""
  14057. fi
  14058. fi
  14059. rm -f conftest.err conftest.i conftest.$ac_ext
  14060. if test -z "$tmp_exp"; then
  14061. curl_cv_have_def___LCC__=no
  14062. else
  14063. curl_cv_have_def___LCC__=yes
  14064. curl_cv_def___LCC__=$tmp_exp
  14065. fi
  14066. CPPFLAGS=$OLDCPPFLAGS
  14067. if test "$curl_cv_have_def___LCC__" = "yes"; then
  14068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14069. $as_echo "yes" >&6; }
  14070. compiler_id="LCC"
  14071. flags_dbg_all="-g"
  14072. flags_dbg_yes="-g"
  14073. flags_dbg_off=""
  14074. flags_opt_all=""
  14075. flags_opt_yes=""
  14076. flags_opt_off=""
  14077. else
  14078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14079. $as_echo "no" >&6; }
  14080. fi
  14081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  14082. $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
  14083. OLDCPPFLAGS=$CPPFLAGS
  14084. # CPPPFLAG comes from CURL_CPP_P
  14085. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14086. if test -z "$SED"; then
  14087. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14088. fi
  14089. if test -z "$GREP"; then
  14090. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14091. fi
  14092. tmp_exp=""
  14093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14094. /* end confdefs.h. */
  14095. #ifdef __GNUC__
  14096. CURL_DEF_TOKEN __GNUC__
  14097. #endif
  14098. _ACEOF
  14099. if ac_fn_c_try_cpp "$LINENO"; then :
  14100. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14101. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14102. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14103. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14104. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14105. tmp_exp=""
  14106. fi
  14107. fi
  14108. rm -f conftest.err conftest.i conftest.$ac_ext
  14109. if test -z "$tmp_exp"; then
  14110. curl_cv_have_def___GNUC__=no
  14111. else
  14112. curl_cv_have_def___GNUC__=yes
  14113. curl_cv_def___GNUC__=$tmp_exp
  14114. fi
  14115. CPPFLAGS=$OLDCPPFLAGS
  14116. OLDCPPFLAGS=$CPPFLAGS
  14117. # CPPPFLAG comes from CURL_CPP_P
  14118. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14119. if test -z "$SED"; then
  14120. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14121. fi
  14122. if test -z "$GREP"; then
  14123. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14124. fi
  14125. tmp_exp=""
  14126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14127. /* end confdefs.h. */
  14128. #ifdef _COMPILER_VERSION
  14129. CURL_DEF_TOKEN _COMPILER_VERSION
  14130. #endif
  14131. _ACEOF
  14132. if ac_fn_c_try_cpp "$LINENO"; then :
  14133. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14134. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14135. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14136. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14137. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  14138. tmp_exp=""
  14139. fi
  14140. fi
  14141. rm -f conftest.err conftest.i conftest.$ac_ext
  14142. if test -z "$tmp_exp"; then
  14143. curl_cv_have_def__COMPILER_VERSION=no
  14144. else
  14145. curl_cv_have_def__COMPILER_VERSION=yes
  14146. curl_cv_def__COMPILER_VERSION=$tmp_exp
  14147. fi
  14148. CPPFLAGS=$OLDCPPFLAGS
  14149. OLDCPPFLAGS=$CPPFLAGS
  14150. # CPPPFLAG comes from CURL_CPP_P
  14151. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14152. if test -z "$SED"; then
  14153. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14154. fi
  14155. if test -z "$GREP"; then
  14156. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14157. fi
  14158. tmp_exp=""
  14159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14160. /* end confdefs.h. */
  14161. #ifdef _SGI_COMPILER_VERSION
  14162. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  14163. #endif
  14164. _ACEOF
  14165. if ac_fn_c_try_cpp "$LINENO"; then :
  14166. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14167. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14168. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14169. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14170. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  14171. tmp_exp=""
  14172. fi
  14173. fi
  14174. rm -f conftest.err conftest.i conftest.$ac_ext
  14175. if test -z "$tmp_exp"; then
  14176. curl_cv_have_def__SGI_COMPILER_VERSION=no
  14177. else
  14178. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  14179. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  14180. fi
  14181. CPPFLAGS=$OLDCPPFLAGS
  14182. if test "$curl_cv_have_def___GNUC__" = "no" &&
  14183. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  14184. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14186. $as_echo "yes" >&6; }
  14187. compiler_id="SGI_MIPSPRO_C"
  14188. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  14189. flags_dbg_yes="-g"
  14190. flags_dbg_off=""
  14191. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  14192. flags_opt_yes="-O2"
  14193. flags_opt_off="-O0"
  14194. else
  14195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14196. $as_echo "no" >&6; }
  14197. fi
  14198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  14199. $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
  14200. OLDCPPFLAGS=$CPPFLAGS
  14201. # CPPPFLAG comes from CURL_CPP_P
  14202. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14203. if test -z "$SED"; then
  14204. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14205. fi
  14206. if test -z "$GREP"; then
  14207. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14208. fi
  14209. tmp_exp=""
  14210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14211. /* end confdefs.h. */
  14212. #ifdef __GNUC__
  14213. CURL_DEF_TOKEN __GNUC__
  14214. #endif
  14215. _ACEOF
  14216. if ac_fn_c_try_cpp "$LINENO"; then :
  14217. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14218. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14219. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14220. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14221. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  14222. tmp_exp=""
  14223. fi
  14224. fi
  14225. rm -f conftest.err conftest.i conftest.$ac_ext
  14226. if test -z "$tmp_exp"; then
  14227. curl_cv_have_def___GNUC__=no
  14228. else
  14229. curl_cv_have_def___GNUC__=yes
  14230. curl_cv_def___GNUC__=$tmp_exp
  14231. fi
  14232. CPPFLAGS=$OLDCPPFLAGS
  14233. OLDCPPFLAGS=$CPPFLAGS
  14234. # CPPPFLAG comes from CURL_CPP_P
  14235. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14236. if test -z "$SED"; then
  14237. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14238. fi
  14239. if test -z "$GREP"; then
  14240. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14241. fi
  14242. tmp_exp=""
  14243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14244. /* end confdefs.h. */
  14245. #ifdef __sgi
  14246. CURL_DEF_TOKEN __sgi
  14247. #endif
  14248. _ACEOF
  14249. if ac_fn_c_try_cpp "$LINENO"; then :
  14250. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14251. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14252. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14253. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14254. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  14255. tmp_exp=""
  14256. fi
  14257. fi
  14258. rm -f conftest.err conftest.i conftest.$ac_ext
  14259. if test -z "$tmp_exp"; then
  14260. curl_cv_have_def___sgi=no
  14261. else
  14262. curl_cv_have_def___sgi=yes
  14263. curl_cv_def___sgi=$tmp_exp
  14264. fi
  14265. CPPFLAGS=$OLDCPPFLAGS
  14266. if test "$curl_cv_have_def___GNUC__" = "no" &&
  14267. test "$curl_cv_have_def___sgi" = "yes" &&
  14268. test "$compiler_id" = "unknown"; then
  14269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14270. $as_echo "yes" >&6; }
  14271. compiler_id="SGI_MIPS_C"
  14272. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  14273. flags_dbg_yes="-g"
  14274. flags_dbg_off=""
  14275. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  14276. flags_opt_yes="-O2"
  14277. flags_opt_off="-O0"
  14278. else
  14279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14280. $as_echo "no" >&6; }
  14281. fi
  14282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  14283. $as_echo_n "checking if compiler is SunPro C... " >&6; }
  14284. OLDCPPFLAGS=$CPPFLAGS
  14285. # CPPPFLAG comes from CURL_CPP_P
  14286. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14287. if test -z "$SED"; then
  14288. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14289. fi
  14290. if test -z "$GREP"; then
  14291. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14292. fi
  14293. tmp_exp=""
  14294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14295. /* end confdefs.h. */
  14296. #ifdef __SUNPRO_C
  14297. CURL_DEF_TOKEN __SUNPRO_C
  14298. #endif
  14299. _ACEOF
  14300. if ac_fn_c_try_cpp "$LINENO"; then :
  14301. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14302. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14303. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14304. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14305. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  14306. tmp_exp=""
  14307. fi
  14308. fi
  14309. rm -f conftest.err conftest.i conftest.$ac_ext
  14310. if test -z "$tmp_exp"; then
  14311. curl_cv_have_def___SUNPRO_C=no
  14312. else
  14313. curl_cv_have_def___SUNPRO_C=yes
  14314. curl_cv_def___SUNPRO_C=$tmp_exp
  14315. fi
  14316. CPPFLAGS=$OLDCPPFLAGS
  14317. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14319. $as_echo "yes" >&6; }
  14320. compiler_id="SUNPRO_C"
  14321. flags_dbg_all="-g -s"
  14322. flags_dbg_yes="-g"
  14323. flags_dbg_off="-s"
  14324. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  14325. flags_opt_yes="-xO2"
  14326. flags_opt_off=""
  14327. else
  14328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14329. $as_echo "no" >&6; }
  14330. fi
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  14332. $as_echo_n "checking if compiler is Tiny C... " >&6; }
  14333. OLDCPPFLAGS=$CPPFLAGS
  14334. # CPPPFLAG comes from CURL_CPP_P
  14335. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14336. if test -z "$SED"; then
  14337. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14338. fi
  14339. if test -z "$GREP"; then
  14340. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14341. fi
  14342. tmp_exp=""
  14343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14344. /* end confdefs.h. */
  14345. #ifdef __TINYC__
  14346. CURL_DEF_TOKEN __TINYC__
  14347. #endif
  14348. _ACEOF
  14349. if ac_fn_c_try_cpp "$LINENO"; then :
  14350. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14351. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14352. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14353. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14354. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  14355. tmp_exp=""
  14356. fi
  14357. fi
  14358. rm -f conftest.err conftest.i conftest.$ac_ext
  14359. if test -z "$tmp_exp"; then
  14360. curl_cv_have_def___TINYC__=no
  14361. else
  14362. curl_cv_have_def___TINYC__=yes
  14363. curl_cv_def___TINYC__=$tmp_exp
  14364. fi
  14365. CPPFLAGS=$OLDCPPFLAGS
  14366. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14368. $as_echo "yes" >&6; }
  14369. compiler_id="TINY_C"
  14370. flags_dbg_all="-g -b"
  14371. flags_dbg_yes="-g"
  14372. flags_dbg_off=""
  14373. flags_opt_all=""
  14374. flags_opt_yes=""
  14375. flags_opt_off=""
  14376. else
  14377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14378. $as_echo "no" >&6; }
  14379. fi
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
  14381. $as_echo_n "checking if compiler is Watcom C... " >&6; }
  14382. OLDCPPFLAGS=$CPPFLAGS
  14383. # CPPPFLAG comes from CURL_CPP_P
  14384. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14385. if test -z "$SED"; then
  14386. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14387. fi
  14388. if test -z "$GREP"; then
  14389. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14390. fi
  14391. tmp_exp=""
  14392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14393. /* end confdefs.h. */
  14394. #ifdef __WATCOMC__
  14395. CURL_DEF_TOKEN __WATCOMC__
  14396. #endif
  14397. _ACEOF
  14398. if ac_fn_c_try_cpp "$LINENO"; then :
  14399. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14400. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14401. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14402. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14403. if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
  14404. tmp_exp=""
  14405. fi
  14406. fi
  14407. rm -f conftest.err conftest.i conftest.$ac_ext
  14408. if test -z "$tmp_exp"; then
  14409. curl_cv_have_def___WATCOMC__=no
  14410. else
  14411. curl_cv_have_def___WATCOMC__=yes
  14412. curl_cv_def___WATCOMC__=$tmp_exp
  14413. fi
  14414. CPPFLAGS=$OLDCPPFLAGS
  14415. if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14417. $as_echo "yes" >&6; }
  14418. OLDCPPFLAGS=$CPPFLAGS
  14419. # CPPPFLAG comes from CURL_CPP_P
  14420. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  14421. if test -z "$SED"; then
  14422. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  14423. fi
  14424. if test -z "$GREP"; then
  14425. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  14426. fi
  14427. tmp_exp=""
  14428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14429. /* end confdefs.h. */
  14430. #ifdef __UNIX__
  14431. CURL_DEF_TOKEN __UNIX__
  14432. #endif
  14433. _ACEOF
  14434. if ac_fn_c_try_cpp "$LINENO"; then :
  14435. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14436. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14437. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14438. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14439. if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
  14440. tmp_exp=""
  14441. fi
  14442. fi
  14443. rm -f conftest.err conftest.i conftest.$ac_ext
  14444. if test -z "$tmp_exp"; then
  14445. curl_cv_have_def___UNIX__=no
  14446. else
  14447. curl_cv_have_def___UNIX__=yes
  14448. curl_cv_def___UNIX__=$tmp_exp
  14449. fi
  14450. CPPFLAGS=$OLDCPPFLAGS
  14451. if test "$curl_cv_have_def___UNIX__" = "yes"; then
  14452. compiler_id="WATCOM_UNIX_C"
  14453. flags_dbg_all="-g1 -g1+ -g2 -g3"
  14454. flags_dbg_yes="-g2"
  14455. flags_dbg_off=""
  14456. flags_opt_all="-O0 -O1 -O2 -O3"
  14457. flags_opt_yes="-O2"
  14458. flags_opt_off="-O0"
  14459. else
  14460. compiler_id="WATCOM_WINDOWS_C"
  14461. flags_dbg_all=""
  14462. flags_dbg_yes=""
  14463. flags_dbg_off=""
  14464. flags_opt_all=""
  14465. flags_opt_yes=""
  14466. flags_opt_off=""
  14467. fi
  14468. else
  14469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14470. $as_echo "no" >&6; }
  14471. fi
  14472. #
  14473. if test "$compiler_id" = "unknown"; then
  14474. cat <<_EOF 1>&2
  14475. ***
  14476. *** Warning: This configure script does not have information about the
  14477. *** compiler you are using, relative to the flags required to enable or
  14478. *** disable generation of debug info, optimization options or warnings.
  14479. ***
  14480. *** Whatever settings are present in CFLAGS will be used for this run.
  14481. ***
  14482. *** If you wish to help the curl project to better support your compiler
  14483. *** you can report this and the required info on the libcurl development
  14484. *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
  14485. ***
  14486. _EOF
  14487. fi
  14488. squeeze() {
  14489. _sqz_result=""
  14490. eval _sqz_input=\$$1
  14491. for _sqz_token in $_sqz_input; do
  14492. if test -z "$_sqz_result"; then
  14493. _sqz_result="$_sqz_token"
  14494. else
  14495. _sqz_result="$_sqz_result $_sqz_token"
  14496. fi
  14497. done
  14498. eval $1=\$_sqz_result
  14499. return 0
  14500. }
  14501. #
  14502. if test "$compiler_id" != "unknown"; then
  14503. #
  14504. if test "$compiler_id" = "GNU_C" ||
  14505. test "$compiler_id" = "CLANG"; then
  14506. if test "$compiler_id" = "GNU_C" ||
  14507. test "$compiler_id" = "CLANG"; then
  14508. tmp_has_include="no"
  14509. tmp_chg_FLAGS="$CFLAGS"
  14510. for word1 in $tmp_chg_FLAGS; do
  14511. case "$word1" in
  14512. -I*)
  14513. tmp_has_include="yes"
  14514. ;;
  14515. esac
  14516. done
  14517. if test "$tmp_has_include" = "yes"; then
  14518. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14519. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14520. CFLAGS="$tmp_chg_FLAGS"
  14521. squeeze CFLAGS
  14522. fi
  14523. tmp_has_include="no"
  14524. tmp_chg_FLAGS="$CPPFLAGS"
  14525. for word1 in $tmp_chg_FLAGS; do
  14526. case "$word1" in
  14527. -I*)
  14528. tmp_has_include="yes"
  14529. ;;
  14530. esac
  14531. done
  14532. if test "$tmp_has_include" = "yes"; then
  14533. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14534. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14535. CPPFLAGS="$tmp_chg_FLAGS"
  14536. squeeze CPPFLAGS
  14537. fi
  14538. fi
  14539. fi
  14540. #
  14541. tmp_save_CPPFLAGS="$CPPFLAGS"
  14542. tmp_save_CFLAGS="$CFLAGS"
  14543. tmp_CPPFLAGS=""
  14544. tmp_CFLAGS=""
  14545. #
  14546. case "$compiler_id" in
  14547. #
  14548. CLANG)
  14549. #
  14550. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  14551. ;;
  14552. #
  14553. DEC_C)
  14554. #
  14555. tmp_CFLAGS="$tmp_CFLAGS -std1"
  14556. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  14557. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  14558. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  14559. ;;
  14560. #
  14561. GNU_C)
  14562. #
  14563. if test "$compiler_num" -ge "295"; then
  14564. tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
  14565. fi
  14566. ;;
  14567. #
  14568. HP_UX_C)
  14569. #
  14570. tmp_CFLAGS="$tmp_CFLAGS -z"
  14571. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  14572. ;;
  14573. #
  14574. IBM_C)
  14575. #
  14576. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  14577. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  14578. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  14579. ;;
  14580. #
  14581. INTEL_UNIX_C)
  14582. #
  14583. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  14584. tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
  14585. tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
  14586. ;;
  14587. #
  14588. INTEL_WINDOWS_C)
  14589. #
  14590. tmp_CFLAGS="$tmp_CFLAGS"
  14591. ;;
  14592. #
  14593. LCC)
  14594. #
  14595. tmp_CFLAGS="$tmp_CFLAGS -n"
  14596. ;;
  14597. #
  14598. SGI_MIPS_C)
  14599. #
  14600. tmp_CFLAGS="$tmp_CFLAGS"
  14601. ;;
  14602. #
  14603. SGI_MIPSPRO_C)
  14604. #
  14605. tmp_CFLAGS="$tmp_CFLAGS"
  14606. ;;
  14607. #
  14608. SUNPRO_C)
  14609. #
  14610. tmp_CFLAGS="$tmp_CFLAGS"
  14611. ;;
  14612. #
  14613. TINY_C)
  14614. #
  14615. tmp_CFLAGS="$tmp_CFLAGS"
  14616. ;;
  14617. #
  14618. WATCOM_UNIX_C)
  14619. #
  14620. tmp_CFLAGS="$tmp_CFLAGS"
  14621. ;;
  14622. #
  14623. WATCOM_WINDOWS_C)
  14624. #
  14625. tmp_CFLAGS="$tmp_CFLAGS"
  14626. ;;
  14627. #
  14628. esac
  14629. #
  14630. squeeze tmp_CPPFLAGS
  14631. squeeze tmp_CFLAGS
  14632. #
  14633. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  14634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  14635. $as_echo_n "checking if compiler accepts some basic options... " >&6; }
  14636. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  14637. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  14638. squeeze CPPFLAGS
  14639. squeeze CFLAGS
  14640. tmp_compiler_works="unknown"
  14641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14642. /* end confdefs.h. */
  14643. int main (void)
  14644. {
  14645. int i = 1;
  14646. return i;
  14647. ;
  14648. return 0;
  14649. }
  14650. _ACEOF
  14651. if ac_fn_c_try_compile "$LINENO"; then :
  14652. tmp_compiler_works="yes"
  14653. else
  14654. tmp_compiler_works="no"
  14655. echo " " >&6
  14656. sed 's/^/cc-fail: /' conftest.err >&6
  14657. echo " " >&6
  14658. fi
  14659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14660. if test "$tmp_compiler_works" = "yes"; then
  14661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14662. /* end confdefs.h. */
  14663. int main (void)
  14664. {
  14665. int i = 1;
  14666. return i;
  14667. ;
  14668. return 0;
  14669. }
  14670. _ACEOF
  14671. if ac_fn_c_try_link "$LINENO"; then :
  14672. tmp_compiler_works="yes"
  14673. else
  14674. tmp_compiler_works="no"
  14675. echo " " >&6
  14676. sed 's/^/link-fail: /' conftest.err >&6
  14677. echo " " >&6
  14678. fi
  14679. rm -f core conftest.err conftest.$ac_objext \
  14680. conftest$ac_exeext conftest.$ac_ext
  14681. fi
  14682. if test "x$cross_compiling" != "xyes" &&
  14683. test "$tmp_compiler_works" = "yes"; then
  14684. if test "$cross_compiling" = yes; then :
  14685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14687. as_fn_error $? "cannot run test program while cross compiling
  14688. See \`config.log' for more details" "$LINENO" 5; }
  14689. else
  14690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14691. /* end confdefs.h. */
  14692. # ifdef __STDC__
  14693. # include <stdlib.h>
  14694. # endif
  14695. int main (void)
  14696. {
  14697. int i = 0;
  14698. exit(i);
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_c_try_run "$LINENO"; then :
  14704. tmp_compiler_works="yes"
  14705. else
  14706. tmp_compiler_works="no"
  14707. echo " " >&6
  14708. echo "run-fail: test program exited with status $ac_status" >&6
  14709. echo " " >&6
  14710. fi
  14711. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14712. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14713. fi
  14714. fi
  14715. if test "$tmp_compiler_works" = "yes"; then
  14716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14717. $as_echo "yes" >&6; }
  14718. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14719. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  14720. else
  14721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14722. $as_echo "no" >&6; }
  14723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14724. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  14725. CPPFLAGS="$tmp_save_CPPFLAGS"
  14726. CFLAGS="$tmp_save_CFLAGS"
  14727. fi
  14728. fi
  14729. #
  14730. fi
  14731. #
  14732. if test "$compiler_id" != "unknown"; then
  14733. #
  14734. tmp_save_CFLAGS="$CFLAGS"
  14735. tmp_save_CPPFLAGS="$CPPFLAGS"
  14736. #
  14737. tmp_options=""
  14738. tmp_CFLAGS="$CFLAGS"
  14739. tmp_CPPFLAGS="$CPPFLAGS"
  14740. ac_var_stripped=""
  14741. for word1 in $tmp_CFLAGS; do
  14742. ac_var_strip_word="no"
  14743. for word2 in $flags_dbg_all; do
  14744. if test "$word1" = "$word2"; then
  14745. ac_var_strip_word="yes"
  14746. fi
  14747. done
  14748. if test "$ac_var_strip_word" = "no"; then
  14749. ac_var_stripped="$ac_var_stripped $word1"
  14750. fi
  14751. done
  14752. tmp_CFLAGS="$ac_var_stripped"
  14753. squeeze tmp_CFLAGS
  14754. ac_var_stripped=""
  14755. for word1 in $tmp_CPPFLAGS; do
  14756. ac_var_strip_word="no"
  14757. for word2 in $flags_dbg_all; do
  14758. if test "$word1" = "$word2"; then
  14759. ac_var_strip_word="yes"
  14760. fi
  14761. done
  14762. if test "$ac_var_strip_word" = "no"; then
  14763. ac_var_stripped="$ac_var_stripped $word1"
  14764. fi
  14765. done
  14766. tmp_CPPFLAGS="$ac_var_stripped"
  14767. squeeze tmp_CPPFLAGS
  14768. #
  14769. if test "$want_debug" = "yes"; then
  14770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  14771. $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
  14772. tmp_options="$flags_dbg_yes"
  14773. fi
  14774. if test "$want_debug" = "no"; then
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
  14776. $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
  14777. tmp_options="$flags_dbg_off"
  14778. fi
  14779. #
  14780. if test "$flags_prefer_cppflags" = "yes"; then
  14781. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14782. CFLAGS="$tmp_CFLAGS"
  14783. else
  14784. CPPFLAGS="$tmp_CPPFLAGS"
  14785. CFLAGS="$tmp_CFLAGS $tmp_options"
  14786. fi
  14787. squeeze CPPFLAGS
  14788. squeeze CFLAGS
  14789. tmp_compiler_works="unknown"
  14790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14791. /* end confdefs.h. */
  14792. int main (void)
  14793. {
  14794. int i = 1;
  14795. return i;
  14796. ;
  14797. return 0;
  14798. }
  14799. _ACEOF
  14800. if ac_fn_c_try_compile "$LINENO"; then :
  14801. tmp_compiler_works="yes"
  14802. else
  14803. tmp_compiler_works="no"
  14804. echo " " >&6
  14805. sed 's/^/cc-fail: /' conftest.err >&6
  14806. echo " " >&6
  14807. fi
  14808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14809. if test "$tmp_compiler_works" = "yes"; then
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. int main (void)
  14813. {
  14814. int i = 1;
  14815. return i;
  14816. ;
  14817. return 0;
  14818. }
  14819. _ACEOF
  14820. if ac_fn_c_try_link "$LINENO"; then :
  14821. tmp_compiler_works="yes"
  14822. else
  14823. tmp_compiler_works="no"
  14824. echo " " >&6
  14825. sed 's/^/link-fail: /' conftest.err >&6
  14826. echo " " >&6
  14827. fi
  14828. rm -f core conftest.err conftest.$ac_objext \
  14829. conftest$ac_exeext conftest.$ac_ext
  14830. fi
  14831. if test "x$cross_compiling" != "xyes" &&
  14832. test "$tmp_compiler_works" = "yes"; then
  14833. if test "$cross_compiling" = yes; then :
  14834. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14835. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14836. as_fn_error $? "cannot run test program while cross compiling
  14837. See \`config.log' for more details" "$LINENO" 5; }
  14838. else
  14839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14840. /* end confdefs.h. */
  14841. # ifdef __STDC__
  14842. # include <stdlib.h>
  14843. # endif
  14844. int main (void)
  14845. {
  14846. int i = 0;
  14847. exit(i);
  14848. ;
  14849. return 0;
  14850. }
  14851. _ACEOF
  14852. if ac_fn_c_try_run "$LINENO"; then :
  14853. tmp_compiler_works="yes"
  14854. else
  14855. tmp_compiler_works="no"
  14856. echo " " >&6
  14857. echo "run-fail: test program exited with status $ac_status" >&6
  14858. echo " " >&6
  14859. fi
  14860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14861. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14862. fi
  14863. fi
  14864. if test "$tmp_compiler_works" = "yes"; then
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14866. $as_echo "yes" >&6; }
  14867. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  14868. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  14869. else
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14871. $as_echo "no" >&6; }
  14872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  14873. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  14874. CPPFLAGS="$tmp_save_CPPFLAGS"
  14875. CFLAGS="$tmp_save_CFLAGS"
  14876. fi
  14877. #
  14878. fi
  14879. #
  14880. if test "$compiler_id" != "unknown"; then
  14881. #
  14882. tmp_save_CFLAGS="$CFLAGS"
  14883. tmp_save_CPPFLAGS="$CPPFLAGS"
  14884. #
  14885. tmp_options=""
  14886. tmp_CFLAGS="$CFLAGS"
  14887. tmp_CPPFLAGS="$CPPFLAGS"
  14888. honor_optimize_option="yes"
  14889. #
  14890. #
  14891. if test "$want_optimize" = "assume_no" ||
  14892. test "$want_optimize" = "assume_yes"; then
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  14894. $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
  14895. ac_var_match_word="no"
  14896. for word1 in $tmp_CFLAGS; do
  14897. for word2 in $flags_opt_all; do
  14898. if test "$word1" = "$word2"; then
  14899. ac_var_match_word="yes"
  14900. fi
  14901. done
  14902. done
  14903. if test "$ac_var_match_word" = "yes"; then
  14904. honor_optimize_option="no"
  14905. fi
  14906. ac_var_match_word="no"
  14907. for word1 in $tmp_CPPFLAGS; do
  14908. for word2 in $flags_opt_all; do
  14909. if test "$word1" = "$word2"; then
  14910. ac_var_match_word="yes"
  14911. fi
  14912. done
  14913. done
  14914. if test "$ac_var_match_word" = "yes"; then
  14915. honor_optimize_option="no"
  14916. fi
  14917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  14918. $as_echo "$honor_optimize_option" >&6; }
  14919. if test "$honor_optimize_option" = "yes"; then
  14920. if test "$want_optimize" = "assume_yes"; then
  14921. want_optimize="yes"
  14922. fi
  14923. if test "$want_optimize" = "assume_no"; then
  14924. want_optimize="no"
  14925. fi
  14926. fi
  14927. fi
  14928. #
  14929. if test "$honor_optimize_option" = "yes"; then
  14930. ac_var_stripped=""
  14931. for word1 in $tmp_CFLAGS; do
  14932. ac_var_strip_word="no"
  14933. for word2 in $flags_opt_all; do
  14934. if test "$word1" = "$word2"; then
  14935. ac_var_strip_word="yes"
  14936. fi
  14937. done
  14938. if test "$ac_var_strip_word" = "no"; then
  14939. ac_var_stripped="$ac_var_stripped $word1"
  14940. fi
  14941. done
  14942. tmp_CFLAGS="$ac_var_stripped"
  14943. squeeze tmp_CFLAGS
  14944. ac_var_stripped=""
  14945. for word1 in $tmp_CPPFLAGS; do
  14946. ac_var_strip_word="no"
  14947. for word2 in $flags_opt_all; do
  14948. if test "$word1" = "$word2"; then
  14949. ac_var_strip_word="yes"
  14950. fi
  14951. done
  14952. if test "$ac_var_strip_word" = "no"; then
  14953. ac_var_stripped="$ac_var_stripped $word1"
  14954. fi
  14955. done
  14956. tmp_CPPFLAGS="$ac_var_stripped"
  14957. squeeze tmp_CPPFLAGS
  14958. if test "$want_optimize" = "yes"; then
  14959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  14960. $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
  14961. tmp_options="$flags_opt_yes"
  14962. fi
  14963. if test "$want_optimize" = "no"; then
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  14965. $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
  14966. tmp_options="$flags_opt_off"
  14967. fi
  14968. if test "$flags_prefer_cppflags" = "yes"; then
  14969. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14970. CFLAGS="$tmp_CFLAGS"
  14971. else
  14972. CPPFLAGS="$tmp_CPPFLAGS"
  14973. CFLAGS="$tmp_CFLAGS $tmp_options"
  14974. fi
  14975. squeeze CPPFLAGS
  14976. squeeze CFLAGS
  14977. tmp_compiler_works="unknown"
  14978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14979. /* end confdefs.h. */
  14980. int main (void)
  14981. {
  14982. int i = 1;
  14983. return i;
  14984. ;
  14985. return 0;
  14986. }
  14987. _ACEOF
  14988. if ac_fn_c_try_compile "$LINENO"; then :
  14989. tmp_compiler_works="yes"
  14990. else
  14991. tmp_compiler_works="no"
  14992. echo " " >&6
  14993. sed 's/^/cc-fail: /' conftest.err >&6
  14994. echo " " >&6
  14995. fi
  14996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14997. if test "$tmp_compiler_works" = "yes"; then
  14998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14999. /* end confdefs.h. */
  15000. int main (void)
  15001. {
  15002. int i = 1;
  15003. return i;
  15004. ;
  15005. return 0;
  15006. }
  15007. _ACEOF
  15008. if ac_fn_c_try_link "$LINENO"; then :
  15009. tmp_compiler_works="yes"
  15010. else
  15011. tmp_compiler_works="no"
  15012. echo " " >&6
  15013. sed 's/^/link-fail: /' conftest.err >&6
  15014. echo " " >&6
  15015. fi
  15016. rm -f core conftest.err conftest.$ac_objext \
  15017. conftest$ac_exeext conftest.$ac_ext
  15018. fi
  15019. if test "x$cross_compiling" != "xyes" &&
  15020. test "$tmp_compiler_works" = "yes"; then
  15021. if test "$cross_compiling" = yes; then :
  15022. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15023. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15024. as_fn_error $? "cannot run test program while cross compiling
  15025. See \`config.log' for more details" "$LINENO" 5; }
  15026. else
  15027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15028. /* end confdefs.h. */
  15029. # ifdef __STDC__
  15030. # include <stdlib.h>
  15031. # endif
  15032. int main (void)
  15033. {
  15034. int i = 0;
  15035. exit(i);
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_run "$LINENO"; then :
  15041. tmp_compiler_works="yes"
  15042. else
  15043. tmp_compiler_works="no"
  15044. echo " " >&6
  15045. echo "run-fail: test program exited with status $ac_status" >&6
  15046. echo " " >&6
  15047. fi
  15048. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15049. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15050. fi
  15051. fi
  15052. if test "$tmp_compiler_works" = "yes"; then
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15054. $as_echo "yes" >&6; }
  15055. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  15056. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  15057. else
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15059. $as_echo "no" >&6; }
  15060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  15061. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  15062. CPPFLAGS="$tmp_save_CPPFLAGS"
  15063. CFLAGS="$tmp_save_CFLAGS"
  15064. fi
  15065. fi
  15066. #
  15067. fi
  15068. #
  15069. if test "$compiler_id" != "unknown"; then
  15070. #
  15071. tmp_save_CPPFLAGS="$CPPFLAGS"
  15072. tmp_save_CFLAGS="$CFLAGS"
  15073. tmp_CPPFLAGS=""
  15074. tmp_CFLAGS=""
  15075. #
  15076. case "$compiler_id" in
  15077. #
  15078. CLANG)
  15079. #
  15080. if test "$want_warnings" = "yes"; then
  15081. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  15082. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  15083. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  15084. tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
  15085. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  15086. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  15087. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  15088. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  15089. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  15090. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  15091. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  15092. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  15093. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  15094. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  15095. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  15096. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  15097. tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
  15098. #
  15099. if test "$compiler_num" -ge "101"; then
  15100. tmp_CFLAGS="$tmp_CFLAGS -Wunused"
  15101. fi
  15102. #
  15103. if test "$compiler_num" -ge "208"; then
  15104. tmp_CFLAGS="$tmp_CFLAGS -Wvla"
  15105. fi
  15106. #
  15107. if test "$compiler_num" -ge "209"; then
  15108. tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
  15109. fi
  15110. #
  15111. if test "$compiler_num" -ge "302"; then
  15112. case $host_os in
  15113. cygwin* | mingw*)
  15114. ;;
  15115. *)
  15116. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
  15117. ;;
  15118. esac
  15119. fi
  15120. #
  15121. if test "$compiler_num" -ge "306"; then
  15122. tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
  15123. fi
  15124. #
  15125. if test "$compiler_num" -ge "309"; then
  15126. tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
  15127. # avoid the varargs warning, fixed in 4.0
  15128. # https://bugs.llvm.org/show_bug.cgi?id=29140
  15129. if test "$compiler_num" -lt "400"; then
  15130. tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
  15131. fi
  15132. fi
  15133. fi
  15134. ;;
  15135. #
  15136. DEC_C)
  15137. #
  15138. if test "$want_warnings" = "yes"; then
  15139. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  15140. fi
  15141. ;;
  15142. #
  15143. GNU_C)
  15144. #
  15145. if test "$want_warnings" = "yes"; then
  15146. #
  15147. if test "x$cross_compiling" != "xyes" ||
  15148. test "$compiler_num" -ge "300"; then
  15149. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  15150. fi
  15151. #
  15152. tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
  15153. #
  15154. if test "$compiler_num" -ge "104"; then
  15155. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  15156. if test "x$cross_compiling" != "xyes" ||
  15157. test "$compiler_num" -ge "300"; then
  15158. tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
  15159. fi
  15160. fi
  15161. #
  15162. if test "$compiler_num" -ge "207"; then
  15163. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  15164. if test "x$cross_compiling" != "xyes" ||
  15165. test "$compiler_num" -ge "300"; then
  15166. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  15167. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  15168. fi
  15169. fi
  15170. #
  15171. if test "$compiler_num" -ge "295"; then
  15172. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  15173. tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
  15174. fi
  15175. #
  15176. if test "$compiler_num" -ge "296"; then
  15177. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  15178. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  15179. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  15180. fi
  15181. #
  15182. if test "$compiler_num" -ge "297"; then
  15183. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  15184. fi
  15185. #
  15186. if test "$compiler_num" -ge "300"; then
  15187. tmp_CFLAGS="$tmp_CFLAGS"
  15188. fi
  15189. #
  15190. if test "$compiler_num" -ge "303"; then
  15191. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  15192. fi
  15193. #
  15194. if test "$compiler_num" -ge "304"; then
  15195. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  15196. tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
  15197. fi
  15198. #
  15199. if test "$compiler_num" -ge "400"; then
  15200. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  15201. fi
  15202. #
  15203. if test "$compiler_num" -ge "402"; then
  15204. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  15205. fi
  15206. #
  15207. if test "$compiler_num" -ge "403"; then
  15208. tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
  15209. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
  15210. tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
  15211. tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
  15212. tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
  15213. fi
  15214. #
  15215. if test "$compiler_num" -ge "405"; then
  15216. if test "$curl_cv_have_def__WIN32" = "yes"; then
  15217. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  15218. fi
  15219. fi
  15220. #
  15221. if test "$compiler_num" -ge "406"; then
  15222. tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
  15223. fi
  15224. #
  15225. if test "$compiler_num" -ge "408"; then
  15226. tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
  15227. fi
  15228. #
  15229. if test "$compiler_num" -ge "500"; then
  15230. tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
  15231. fi
  15232. #
  15233. if test "$compiler_num" -ge "600"; then
  15234. tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
  15235. tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
  15236. tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
  15237. tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
  15238. tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
  15239. fi
  15240. #
  15241. if test "$compiler_num" -ge "700"; then
  15242. tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
  15243. tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
  15244. tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
  15245. tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
  15246. tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
  15247. tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
  15248. fi
  15249. #
  15250. fi
  15251. #
  15252. if test "$compiler_num" -ge "300"; then
  15253. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  15254. else
  15255. if test "x$cross_compiling" = "xyes"; then
  15256. if test "$compiler_num" -ge "104"; then
  15257. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  15258. fi
  15259. if test "$compiler_num" -ge "207"; then
  15260. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  15261. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  15262. fi
  15263. fi
  15264. fi
  15265. ;;
  15266. #
  15267. HP_UX_C)
  15268. #
  15269. if test "$want_warnings" = "yes"; then
  15270. tmp_CFLAGS="$tmp_CFLAGS +w1"
  15271. fi
  15272. ;;
  15273. #
  15274. IBM_C)
  15275. #
  15276. tmp_CFLAGS="$tmp_CFLAGS"
  15277. ;;
  15278. #
  15279. INTEL_UNIX_C)
  15280. #
  15281. if test "$want_warnings" = "yes"; then
  15282. if test "$compiler_num" -gt "600"; then
  15283. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  15284. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  15285. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  15286. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  15287. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  15288. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  15289. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  15290. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  15291. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  15292. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  15293. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  15294. fi
  15295. fi
  15296. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  15297. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  15298. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  15299. if test "$compiler_num" -ge "1000"; then
  15300. tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
  15301. fi
  15302. ;;
  15303. #
  15304. INTEL_WINDOWS_C)
  15305. #
  15306. tmp_CFLAGS="$tmp_CFLAGS"
  15307. ;;
  15308. #
  15309. LCC)
  15310. #
  15311. if test "$want_warnings" = "yes"; then
  15312. tmp_CFLAGS="$tmp_CFLAGS"
  15313. fi
  15314. ;;
  15315. #
  15316. SGI_MIPS_C)
  15317. #
  15318. if test "$want_warnings" = "yes"; then
  15319. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  15320. fi
  15321. ;;
  15322. #
  15323. SGI_MIPSPRO_C)
  15324. #
  15325. if test "$want_warnings" = "yes"; then
  15326. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  15327. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  15328. fi
  15329. ;;
  15330. #
  15331. SUNPRO_C)
  15332. #
  15333. if test "$want_warnings" = "yes"; then
  15334. tmp_CFLAGS="$tmp_CFLAGS -v"
  15335. fi
  15336. ;;
  15337. #
  15338. TINY_C)
  15339. #
  15340. if test "$want_warnings" = "yes"; then
  15341. tmp_CFLAGS="$tmp_CFLAGS -Wall"
  15342. tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
  15343. tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
  15344. fi
  15345. ;;
  15346. #
  15347. WATCOM_UNIX_C)
  15348. #
  15349. if test "$want_warnings" = "yes"; then
  15350. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  15351. fi
  15352. ;;
  15353. #
  15354. WATCOM_WINDOWS_C)
  15355. #
  15356. tmp_CFLAGS="$tmp_CFLAGS"
  15357. ;;
  15358. #
  15359. esac
  15360. #
  15361. squeeze tmp_CPPFLAGS
  15362. squeeze tmp_CFLAGS
  15363. #
  15364. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  15366. $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
  15367. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  15368. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15369. squeeze CPPFLAGS
  15370. squeeze CFLAGS
  15371. tmp_compiler_works="unknown"
  15372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15373. /* end confdefs.h. */
  15374. int main (void)
  15375. {
  15376. int i = 1;
  15377. return i;
  15378. ;
  15379. return 0;
  15380. }
  15381. _ACEOF
  15382. if ac_fn_c_try_compile "$LINENO"; then :
  15383. tmp_compiler_works="yes"
  15384. else
  15385. tmp_compiler_works="no"
  15386. echo " " >&6
  15387. sed 's/^/cc-fail: /' conftest.err >&6
  15388. echo " " >&6
  15389. fi
  15390. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15391. if test "$tmp_compiler_works" = "yes"; then
  15392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15393. /* end confdefs.h. */
  15394. int main (void)
  15395. {
  15396. int i = 1;
  15397. return i;
  15398. ;
  15399. return 0;
  15400. }
  15401. _ACEOF
  15402. if ac_fn_c_try_link "$LINENO"; then :
  15403. tmp_compiler_works="yes"
  15404. else
  15405. tmp_compiler_works="no"
  15406. echo " " >&6
  15407. sed 's/^/link-fail: /' conftest.err >&6
  15408. echo " " >&6
  15409. fi
  15410. rm -f core conftest.err conftest.$ac_objext \
  15411. conftest$ac_exeext conftest.$ac_ext
  15412. fi
  15413. if test "x$cross_compiling" != "xyes" &&
  15414. test "$tmp_compiler_works" = "yes"; then
  15415. if test "$cross_compiling" = yes; then :
  15416. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15417. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15418. as_fn_error $? "cannot run test program while cross compiling
  15419. See \`config.log' for more details" "$LINENO" 5; }
  15420. else
  15421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15422. /* end confdefs.h. */
  15423. # ifdef __STDC__
  15424. # include <stdlib.h>
  15425. # endif
  15426. int main (void)
  15427. {
  15428. int i = 0;
  15429. exit(i);
  15430. ;
  15431. return 0;
  15432. }
  15433. _ACEOF
  15434. if ac_fn_c_try_run "$LINENO"; then :
  15435. tmp_compiler_works="yes"
  15436. else
  15437. tmp_compiler_works="no"
  15438. echo " " >&6
  15439. echo "run-fail: test program exited with status $ac_status" >&6
  15440. echo " " >&6
  15441. fi
  15442. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15443. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15444. fi
  15445. fi
  15446. if test "$tmp_compiler_works" = "yes"; then
  15447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15448. $as_echo "yes" >&6; }
  15449. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15450. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  15451. else
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15453. $as_echo "no" >&6; }
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  15455. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  15456. CPPFLAGS="$tmp_save_CPPFLAGS"
  15457. CFLAGS="$tmp_save_CFLAGS"
  15458. fi
  15459. fi
  15460. #
  15461. fi
  15462. if test "$compiler_id" = "INTEL_UNIX_C"; then
  15463. #
  15464. if test "$compiler_num" -ge "1000"; then
  15465. CFLAGS="$CFLAGS -shared-intel"
  15466. elif test "$compiler_num" -ge "900"; then
  15467. CFLAGS="$CFLAGS -i-dynamic"
  15468. fi
  15469. #
  15470. fi
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  15472. $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
  15473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15474. /* end confdefs.h. */
  15475. int main (void)
  15476. {
  15477. force compilation error
  15478. ;
  15479. return 0;
  15480. }
  15481. _ACEOF
  15482. if ac_fn_c_try_compile "$LINENO"; then :
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15484. $as_echo "no" >&6; }
  15485. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  15486. else
  15487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15488. $as_echo "yes" >&6; }
  15489. fi
  15490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  15492. $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
  15493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15494. /* end confdefs.h. */
  15495. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  15496. int main (void)
  15497. {
  15498. bad_t dummy;
  15499. ;
  15500. return 0;
  15501. }
  15502. _ACEOF
  15503. if ac_fn_c_try_compile "$LINENO"; then :
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15505. $as_echo "no" >&6; }
  15506. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  15507. else
  15508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15509. $as_echo "yes" >&6; }
  15510. fi
  15511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  15513. $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
  15514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15515. /* end confdefs.h. */
  15516. # include <stdlib.h>
  15517. int rand(int n);
  15518. int rand(int n)
  15519. {
  15520. if(n)
  15521. return ++n;
  15522. else
  15523. return n;
  15524. }
  15525. int main (void)
  15526. {
  15527. int i[2]={0,0};
  15528. int j = rand(i[0]);
  15529. if(j)
  15530. return j;
  15531. ;
  15532. return 0;
  15533. }
  15534. _ACEOF
  15535. if ac_fn_c_try_compile "$LINENO"; then :
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15537. $as_echo "no" >&6; }
  15538. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  15539. else
  15540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15541. $as_echo "yes" >&6; }
  15542. fi
  15543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  15545. $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
  15546. supports_symbol_hiding="no"
  15547. symbol_hiding_CFLAGS=""
  15548. symbol_hiding_EXTERN=""
  15549. tmp_CFLAGS=""
  15550. tmp_EXTERN=""
  15551. case "$compiler_id" in
  15552. CLANG)
  15553. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15554. tmp_CFLAGS="-fvisibility=hidden"
  15555. supports_symbol_hiding="yes"
  15556. ;;
  15557. GNU_C)
  15558. if test "$compiler_num" -ge "304"; then
  15559. if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
  15560. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15561. tmp_CFLAGS="-fvisibility=hidden"
  15562. supports_symbol_hiding="yes"
  15563. fi
  15564. fi
  15565. ;;
  15566. INTEL_UNIX_C)
  15567. if test "$compiler_num" -ge "900"; then
  15568. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  15569. tmp_save_CFLAGS="$CFLAGS"
  15570. CFLAGS="$CFLAGS -fvisibility=hidden"
  15571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15572. /* end confdefs.h. */
  15573. # include <stdio.h>
  15574. int main (void)
  15575. {
  15576. printf("icc fvisibility bug test");
  15577. ;
  15578. return 0;
  15579. }
  15580. _ACEOF
  15581. if ac_fn_c_try_link "$LINENO"; then :
  15582. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15583. tmp_CFLAGS="-fvisibility=hidden"
  15584. supports_symbol_hiding="yes"
  15585. fi
  15586. rm -f core conftest.err conftest.$ac_objext \
  15587. conftest$ac_exeext conftest.$ac_ext
  15588. CFLAGS="$tmp_save_CFLAGS"
  15589. fi
  15590. fi
  15591. ;;
  15592. SUNPRO_C)
  15593. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  15594. tmp_EXTERN="__global"
  15595. tmp_CFLAGS="-xldscope=hidden"
  15596. supports_symbol_hiding="yes"
  15597. fi
  15598. ;;
  15599. esac
  15600. if test "$supports_symbol_hiding" = "yes"; then
  15601. tmp_save_CFLAGS="$CFLAGS"
  15602. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15603. squeeze CFLAGS
  15604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15605. /* end confdefs.h. */
  15606. $tmp_EXTERN char *dummy(char *buff);
  15607. char *dummy(char *buff)
  15608. {
  15609. if(buff)
  15610. return ++buff;
  15611. else
  15612. return buff;
  15613. }
  15614. int main (void)
  15615. {
  15616. char b[16];
  15617. char *r = dummy(&b[0]);
  15618. if(r)
  15619. return (int)*r;
  15620. ;
  15621. return 0;
  15622. }
  15623. _ACEOF
  15624. if ac_fn_c_try_compile "$LINENO"; then :
  15625. supports_symbol_hiding="yes"
  15626. if test -f conftest.err; then
  15627. grep 'visibility' conftest.err >/dev/null
  15628. if test "$?" -eq "0"; then
  15629. supports_symbol_hiding="no"
  15630. fi
  15631. fi
  15632. else
  15633. supports_symbol_hiding="no"
  15634. echo " " >&6
  15635. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  15636. sed 's/^/cc-err: /' conftest.err >&6
  15637. echo " " >&6
  15638. fi
  15639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15640. CFLAGS="$tmp_save_CFLAGS"
  15641. fi
  15642. if test "$supports_symbol_hiding" = "yes"; then
  15643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15644. $as_echo "yes" >&6; }
  15645. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  15646. symbol_hiding_EXTERN="$tmp_EXTERN"
  15647. else
  15648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15649. $as_echo "no" >&6; }
  15650. fi
  15651. supports_curldebug="unknown"
  15652. if test "$want_curldebug" = "yes"; then
  15653. if test "x$enable_shared" != "xno" &&
  15654. test "x$enable_shared" != "xyes"; then
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
  15656. $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
  15657. supports_curldebug="no"
  15658. fi
  15659. if test "x$enable_static" != "xno" &&
  15660. test "x$enable_static" != "xyes"; then
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
  15662. $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
  15663. supports_curldebug="no"
  15664. fi
  15665. if test "$supports_curldebug" != "no"; then
  15666. if test "$enable_shared" = "yes" &&
  15667. test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  15668. supports_curldebug="no"
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
  15670. $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
  15671. fi
  15672. fi
  15673. fi
  15674. #
  15675. if test "$want_curldebug" = "yes"; then
  15676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
  15677. $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
  15678. test "$supports_curldebug" = "no" || supports_curldebug="yes"
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
  15680. $as_echo "$supports_curldebug" >&6; }
  15681. if test "$supports_curldebug" = "no"; then
  15682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
  15683. $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
  15684. want_curldebug="no"
  15685. fi
  15686. fi
  15687. if test x$want_curldebug = xyes; then
  15688. CURLDEBUG_TRUE=
  15689. CURLDEBUG_FALSE='#'
  15690. else
  15691. CURLDEBUG_TRUE='#'
  15692. CURLDEBUG_FALSE=
  15693. fi
  15694. supports_unittests=yes
  15695. # cross-compilation of unit tests static library/programs fails when
  15696. # libcurl shared library is built. This might be due to a libtool or
  15697. # automake issue. In this case we disable unit tests.
  15698. if test "x$cross_compiling" != "xno" &&
  15699. test "x$enable_shared" != "xno"; then
  15700. supports_unittests=no
  15701. fi
  15702. # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
  15703. # a problem related with OpenSSL headers and library versions not matching.
  15704. # Disable unit tests while time to further investigate this is found.
  15705. case $host in
  15706. mips-sgi-irix6.5)
  15707. if test "$compiler_id" = "GNU_C"; then
  15708. supports_unittests=no
  15709. fi
  15710. ;;
  15711. esac
  15712. # All AIX autobuilds fails unit tests linking against unittests library
  15713. # due to unittests library being built with no symbols or members. Libtool ?
  15714. # Disable unit tests while time to further investigate this is found.
  15715. case $host_os in
  15716. aix*)
  15717. supports_unittests=no
  15718. ;;
  15719. esac
  15720. if test "x$want_debug" = "xyes" &&
  15721. test "x$supports_unittests" = "xyes"; then
  15722. want_unittests=yes
  15723. else
  15724. want_unittests=no
  15725. fi
  15726. if test x$want_unittests = xyes; then
  15727. BUILD_UNITTESTS_TRUE=
  15728. BUILD_UNITTESTS_FALSE='#'
  15729. else
  15730. BUILD_UNITTESTS_TRUE='#'
  15731. BUILD_UNITTESTS_FALSE=
  15732. fi
  15733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  15734. $as_echo_n "checking for windows.h... " >&6; }
  15735. if ${curl_cv_header_windows_h+:} false; then :
  15736. $as_echo_n "(cached) " >&6
  15737. else
  15738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15739. /* end confdefs.h. */
  15740. #undef inline
  15741. #ifndef WIN32_LEAN_AND_MEAN
  15742. #define WIN32_LEAN_AND_MEAN
  15743. #endif
  15744. #include <windows.h>
  15745. int main (void)
  15746. {
  15747. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15748. HAVE_WINDOWS_H shall not be defined.
  15749. #else
  15750. int dummy=2*WINVER;
  15751. #endif
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_compile "$LINENO"; then :
  15757. curl_cv_header_windows_h="yes"
  15758. else
  15759. curl_cv_header_windows_h="no"
  15760. fi
  15761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15762. fi
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  15764. $as_echo "$curl_cv_header_windows_h" >&6; }
  15765. case "$curl_cv_header_windows_h" in
  15766. yes)
  15767. cat >>confdefs.h <<_ACEOF
  15768. #define HAVE_WINDOWS_H 1
  15769. _ACEOF
  15770. ;;
  15771. esac
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  15773. $as_echo_n "checking whether build target is a native Windows one... " >&6; }
  15774. if ${curl_cv_native_windows+:} false; then :
  15775. $as_echo_n "(cached) " >&6
  15776. else
  15777. if test "$curl_cv_header_windows_h" = "no"; then
  15778. curl_cv_native_windows="no"
  15779. else
  15780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15781. /* end confdefs.h. */
  15782. int main (void)
  15783. {
  15784. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  15785. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  15786. int dummy=1;
  15787. #else
  15788. Not a native Windows build target.
  15789. #endif
  15790. ;
  15791. return 0;
  15792. }
  15793. _ACEOF
  15794. if ac_fn_c_try_compile "$LINENO"; then :
  15795. curl_cv_native_windows="yes"
  15796. else
  15797. curl_cv_native_windows="no"
  15798. fi
  15799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15800. fi
  15801. fi
  15802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
  15803. $as_echo "$curl_cv_native_windows" >&6; }
  15804. if test "x$curl_cv_native_windows" = xyes; then
  15805. DOING_NATIVE_WINDOWS_TRUE=
  15806. DOING_NATIVE_WINDOWS_FALSE='#'
  15807. else
  15808. DOING_NATIVE_WINDOWS_TRUE='#'
  15809. DOING_NATIVE_WINDOWS_FALSE=
  15810. fi
  15811. case X-"$curl_cv_native_windows" in
  15812. X-yes)
  15813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  15814. $as_echo_n "checking for winsock.h... " >&6; }
  15815. if ${curl_cv_header_winsock_h+:} false; then :
  15816. $as_echo_n "(cached) " >&6
  15817. else
  15818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15819. /* end confdefs.h. */
  15820. #undef inline
  15821. #ifndef WIN32_LEAN_AND_MEAN
  15822. #define WIN32_LEAN_AND_MEAN
  15823. #endif
  15824. #include <windows.h>
  15825. #include <winsock.h>
  15826. int main (void)
  15827. {
  15828. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15829. HAVE_WINSOCK_H shall not be defined.
  15830. #else
  15831. int dummy=WSACleanup();
  15832. #endif
  15833. ;
  15834. return 0;
  15835. }
  15836. _ACEOF
  15837. if ac_fn_c_try_compile "$LINENO"; then :
  15838. curl_cv_header_winsock_h="yes"
  15839. else
  15840. curl_cv_header_winsock_h="no"
  15841. fi
  15842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15843. fi
  15844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
  15845. $as_echo "$curl_cv_header_winsock_h" >&6; }
  15846. case "$curl_cv_header_winsock_h" in
  15847. yes)
  15848. cat >>confdefs.h <<_ACEOF
  15849. #define HAVE_WINSOCK_H 1
  15850. _ACEOF
  15851. ;;
  15852. esac
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  15854. $as_echo_n "checking for winsock2.h... " >&6; }
  15855. if ${curl_cv_header_winsock2_h+:} false; then :
  15856. $as_echo_n "(cached) " >&6
  15857. else
  15858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15859. /* end confdefs.h. */
  15860. #undef inline
  15861. #ifndef WIN32_LEAN_AND_MEAN
  15862. #define WIN32_LEAN_AND_MEAN
  15863. #endif
  15864. #include <windows.h>
  15865. #include <winsock2.h>
  15866. int main (void)
  15867. {
  15868. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15869. HAVE_WINSOCK2_H shall not be defined.
  15870. #else
  15871. int dummy=2*IPPROTO_ESP;
  15872. #endif
  15873. ;
  15874. return 0;
  15875. }
  15876. _ACEOF
  15877. if ac_fn_c_try_compile "$LINENO"; then :
  15878. curl_cv_header_winsock2_h="yes"
  15879. else
  15880. curl_cv_header_winsock2_h="no"
  15881. fi
  15882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15883. fi
  15884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  15885. $as_echo "$curl_cv_header_winsock2_h" >&6; }
  15886. case "$curl_cv_header_winsock2_h" in
  15887. yes)
  15888. cat >>confdefs.h <<_ACEOF
  15889. #define HAVE_WINSOCK2_H 1
  15890. _ACEOF
  15891. ;;
  15892. esac
  15893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  15894. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  15895. if ${curl_cv_header_ws2tcpip_h+:} false; then :
  15896. $as_echo_n "(cached) " >&6
  15897. else
  15898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15899. /* end confdefs.h. */
  15900. #undef inline
  15901. #ifndef WIN32_LEAN_AND_MEAN
  15902. #define WIN32_LEAN_AND_MEAN
  15903. #endif
  15904. #include <windows.h>
  15905. #include <winsock2.h>
  15906. #include <ws2tcpip.h>
  15907. int main (void)
  15908. {
  15909. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15910. HAVE_WS2TCPIP_H shall not be defined.
  15911. #else
  15912. int dummy=2*IP_PKTINFO;
  15913. #endif
  15914. ;
  15915. return 0;
  15916. }
  15917. _ACEOF
  15918. if ac_fn_c_try_compile "$LINENO"; then :
  15919. curl_cv_header_ws2tcpip_h="yes"
  15920. else
  15921. curl_cv_header_ws2tcpip_h="no"
  15922. fi
  15923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15924. fi
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  15926. $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
  15927. case "$curl_cv_header_ws2tcpip_h" in
  15928. yes)
  15929. cat >>confdefs.h <<_ACEOF
  15930. #define HAVE_WS2TCPIP_H 1
  15931. _ACEOF
  15932. ;;
  15933. esac
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
  15935. $as_echo_n "checking for winldap.h... " >&6; }
  15936. if ${curl_cv_header_winldap_h+:} false; then :
  15937. $as_echo_n "(cached) " >&6
  15938. else
  15939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15940. /* end confdefs.h. */
  15941. #undef inline
  15942. #ifdef HAVE_WINDOWS_H
  15943. #ifndef WIN32_LEAN_AND_MEAN
  15944. #define WIN32_LEAN_AND_MEAN
  15945. #endif
  15946. #include <windows.h>
  15947. #endif
  15948. #include <winldap.h>
  15949. int main (void)
  15950. {
  15951. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15952. HAVE_WINLDAP_H shall not be defined.
  15953. #else
  15954. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  15955. ULONG res = ldap_unbind(ldp);
  15956. #endif
  15957. ;
  15958. return 0;
  15959. }
  15960. _ACEOF
  15961. if ac_fn_c_try_compile "$LINENO"; then :
  15962. curl_cv_header_winldap_h="yes"
  15963. else
  15964. curl_cv_header_winldap_h="no"
  15965. fi
  15966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15967. fi
  15968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
  15969. $as_echo "$curl_cv_header_winldap_h" >&6; }
  15970. case "$curl_cv_header_winldap_h" in
  15971. yes)
  15972. cat >>confdefs.h <<_ACEOF
  15973. #define HAVE_WINLDAP_H 1
  15974. _ACEOF
  15975. ;;
  15976. esac
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
  15978. $as_echo_n "checking for winber.h... " >&6; }
  15979. if ${curl_cv_header_winber_h+:} false; then :
  15980. $as_echo_n "(cached) " >&6
  15981. else
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. #undef inline
  15985. #ifdef HAVE_WINDOWS_H
  15986. #ifndef WIN32_LEAN_AND_MEAN
  15987. #define WIN32_LEAN_AND_MEAN
  15988. #endif
  15989. #include <windows.h>
  15990. #endif
  15991. #include <winldap.h>
  15992. #include <winber.h>
  15993. int main (void)
  15994. {
  15995. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15996. HAVE_WINBER_H shall not be defined.
  15997. #else
  15998. BERVAL *bvp = NULL;
  15999. BerElement *bep = ber_init(bvp);
  16000. ber_free(bep, 1);
  16001. #endif
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. if ac_fn_c_try_compile "$LINENO"; then :
  16007. curl_cv_header_winber_h="yes"
  16008. else
  16009. curl_cv_header_winber_h="no"
  16010. fi
  16011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16012. fi
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
  16014. $as_echo "$curl_cv_header_winber_h" >&6; }
  16015. case "$curl_cv_header_winber_h" in
  16016. yes)
  16017. cat >>confdefs.h <<_ACEOF
  16018. #define HAVE_WINBER_H 1
  16019. _ACEOF
  16020. ;;
  16021. esac
  16022. ;;
  16023. *)
  16024. curl_cv_header_winsock_h="no"
  16025. curl_cv_header_winsock2_h="no"
  16026. curl_cv_header_ws2tcpip_h="no"
  16027. curl_cv_header_winldap_h="no"
  16028. curl_cv_header_winber_h="no"
  16029. ;;
  16030. esac
  16031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
  16032. $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
  16033. curl_win32_file_api="no"
  16034. if test "$curl_cv_header_windows_h" = "yes"; then
  16035. if test x"$enable_largefile" != "xno"; then
  16036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16037. /* end confdefs.h. */
  16038. int main (void)
  16039. {
  16040. #if !defined(_WIN32_WCE) && \
  16041. (defined(__MINGW32__) || \
  16042. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  16043. int dummy=1;
  16044. #else
  16045. WIN32 large file API not supported.
  16046. #endif
  16047. ;
  16048. return 0;
  16049. }
  16050. _ACEOF
  16051. if ac_fn_c_try_compile "$LINENO"; then :
  16052. curl_win32_file_api="win32_large_files"
  16053. fi
  16054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16055. fi
  16056. if test "$curl_win32_file_api" = "no"; then
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. int main (void)
  16060. {
  16061. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  16062. int dummy=1;
  16063. #else
  16064. WIN32 small file API not supported.
  16065. #endif
  16066. ;
  16067. return 0;
  16068. }
  16069. _ACEOF
  16070. if ac_fn_c_try_compile "$LINENO"; then :
  16071. curl_win32_file_api="win32_small_files"
  16072. fi
  16073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16074. fi
  16075. fi
  16076. case "$curl_win32_file_api" in
  16077. win32_large_files)
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
  16079. $as_echo "yes (large file enabled)" >&6; }
  16080. cat >>confdefs.h <<_ACEOF
  16081. #define USE_WIN32_LARGE_FILES 1
  16082. _ACEOF
  16083. ;;
  16084. win32_small_files)
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
  16086. $as_echo "yes (large file disabled)" >&6; }
  16087. cat >>confdefs.h <<_ACEOF
  16088. #define USE_WIN32_SMALL_FILES 1
  16089. _ACEOF
  16090. ;;
  16091. *)
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16093. $as_echo "no" >&6; }
  16094. ;;
  16095. esac
  16096. tst_cflags="no"
  16097. case $host_os in
  16098. darwin*)
  16099. tst_cflags="yes"
  16100. ;;
  16101. esac
  16102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
  16103. $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
  16104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
  16105. $as_echo "$tst_cflags" >&6; };
  16106. if test "$tst_cflags" = "yes"; then
  16107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
  16108. $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
  16109. min=""
  16110. if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
  16111. min="-mmacosx-version-min=10.8"
  16112. CFLAGS="$CFLAGS $min"
  16113. fi
  16114. if test -z "$min"; then
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
  16116. $as_echo "set by user" >&6; }
  16117. else
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
  16119. $as_echo "$min set" >&6; }
  16120. fi
  16121. old_CFLAGS=$CFLAGS
  16122. CFLAGS="$CFLAGS -Werror=partial-availability"
  16123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
  16124. $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
  16125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16126. /* end confdefs.h. */
  16127. int main (void)
  16128. {
  16129. ;
  16130. return 0;
  16131. }
  16132. _ACEOF
  16133. if ac_fn_c_try_compile "$LINENO"; then :
  16134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16135. $as_echo "yes" >&6; }
  16136. else
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16138. $as_echo "no" >&6; }
  16139. CFLAGS=$old_CFLAGS
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16142. fi
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
  16144. $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
  16145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16146. /* end confdefs.h. */
  16147. #include <stdlib.h>
  16148. int main (void)
  16149. {
  16150. if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
  16151. ;
  16152. return 0;
  16153. }
  16154. _ACEOF
  16155. if ac_fn_c_try_compile "$LINENO"; then :
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16157. $as_echo "yes" >&6; }
  16158. cat >>confdefs.h <<_ACEOF
  16159. #define HAVE_BUILTIN_AVAILABLE 1
  16160. _ACEOF
  16161. else
  16162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16163. $as_echo "no" >&6; }
  16164. fi
  16165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
  16167. $as_echo_n "checking whether to support http... " >&6; }
  16168. # Check whether --enable-http was given.
  16169. if test "${enable_http+set}" = set; then :
  16170. enableval=$enable_http; case "$enableval" in
  16171. no)
  16172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16173. $as_echo "no" >&6; }
  16174. $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
  16175. disable_http="yes"
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
  16177. $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
  16178. CURL_DISABLE_HTTP=1
  16179. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  16180. CURL_DISABLE_RTSP=1
  16181. ;;
  16182. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16183. $as_echo "yes" >&6; }
  16184. ;;
  16185. esac
  16186. else
  16187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16188. $as_echo "yes" >&6; }
  16189. fi
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
  16191. $as_echo_n "checking whether to support ftp... " >&6; }
  16192. # Check whether --enable-ftp was given.
  16193. if test "${enable_ftp+set}" = set; then :
  16194. enableval=$enable_ftp; case "$enableval" in
  16195. no)
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16197. $as_echo "no" >&6; }
  16198. $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
  16199. CURL_DISABLE_FTP=1
  16200. ;;
  16201. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16202. $as_echo "yes" >&6; }
  16203. ;;
  16204. esac
  16205. else
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16207. $as_echo "yes" >&6; }
  16208. fi
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
  16210. $as_echo_n "checking whether to support file... " >&6; }
  16211. # Check whether --enable-file was given.
  16212. if test "${enable_file+set}" = set; then :
  16213. enableval=$enable_file; case "$enableval" in
  16214. no)
  16215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16216. $as_echo "no" >&6; }
  16217. $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
  16218. CURL_DISABLE_FILE=1
  16219. ;;
  16220. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16221. $as_echo "yes" >&6; }
  16222. ;;
  16223. esac
  16224. else
  16225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16226. $as_echo "yes" >&6; }
  16227. fi
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
  16229. $as_echo_n "checking whether to support ldap... " >&6; }
  16230. # Check whether --enable-ldap was given.
  16231. if test "${enable_ldap+set}" = set; then :
  16232. enableval=$enable_ldap; case "$enableval" in
  16233. no)
  16234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16235. $as_echo "no" >&6; }
  16236. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  16237. CURL_DISABLE_LDAP=1
  16238. ;;
  16239. *)
  16240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16241. $as_echo "yes" >&6; }
  16242. ;;
  16243. esac
  16244. else
  16245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16246. $as_echo "yes" >&6; }
  16247. fi
  16248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
  16249. $as_echo_n "checking whether to support ldaps... " >&6; }
  16250. # Check whether --enable-ldaps was given.
  16251. if test "${enable_ldaps+set}" = set; then :
  16252. enableval=$enable_ldaps; case "$enableval" in
  16253. no)
  16254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16255. $as_echo "no" >&6; }
  16256. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  16257. CURL_DISABLE_LDAPS=1
  16258. ;;
  16259. *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  16260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
  16261. $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
  16262. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  16263. CURL_DISABLE_LDAPS=1
  16264. else
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16266. $as_echo "yes" >&6; }
  16267. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  16268. HAVE_LDAP_SSL=1
  16269. fi
  16270. ;;
  16271. esac
  16272. else
  16273. if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  16274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16275. $as_echo "no" >&6; }
  16276. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  16277. CURL_DISABLE_LDAPS=1
  16278. else
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16280. $as_echo "yes" >&6; }
  16281. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  16282. HAVE_LDAP_SSL=1
  16283. fi
  16284. fi
  16285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
  16286. $as_echo_n "checking whether to support rtsp... " >&6; }
  16287. # Check whether --enable-rtsp was given.
  16288. if test "${enable_rtsp+set}" = set; then :
  16289. enableval=$enable_rtsp; case "$enableval" in
  16290. no)
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16292. $as_echo "no" >&6; }
  16293. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  16294. CURL_DISABLE_RTSP=1
  16295. ;;
  16296. *) if test x$CURL_DISABLE_HTTP = x1 ; then
  16297. as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
  16298. else
  16299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16300. $as_echo "yes" >&6; }
  16301. curl_rtsp_msg="enabled"
  16302. fi
  16303. ;;
  16304. esac
  16305. else
  16306. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  16307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16308. $as_echo "yes" >&6; }
  16309. curl_rtsp_msg="enabled"
  16310. else
  16311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16312. $as_echo "no" >&6; }
  16313. fi
  16314. fi
  16315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
  16316. $as_echo_n "checking whether to support proxies... " >&6; }
  16317. # Check whether --enable-proxy was given.
  16318. if test "${enable_proxy+set}" = set; then :
  16319. enableval=$enable_proxy; case "$enableval" in
  16320. no)
  16321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16322. $as_echo "no" >&6; }
  16323. $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
  16324. CURL_DISABLE_PROXY=1
  16325. ;;
  16326. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16327. $as_echo "yes" >&6; }
  16328. ;;
  16329. esac
  16330. else
  16331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16332. $as_echo "yes" >&6; }
  16333. fi
  16334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
  16335. $as_echo_n "checking whether to support dict... " >&6; }
  16336. # Check whether --enable-dict was given.
  16337. if test "${enable_dict+set}" = set; then :
  16338. enableval=$enable_dict; case "$enableval" in
  16339. no)
  16340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16341. $as_echo "no" >&6; }
  16342. $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
  16343. CURL_DISABLE_DICT=1
  16344. ;;
  16345. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16346. $as_echo "yes" >&6; }
  16347. ;;
  16348. esac
  16349. else
  16350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16351. $as_echo "yes" >&6; }
  16352. fi
  16353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
  16354. $as_echo_n "checking whether to support telnet... " >&6; }
  16355. # Check whether --enable-telnet was given.
  16356. if test "${enable_telnet+set}" = set; then :
  16357. enableval=$enable_telnet; case "$enableval" in
  16358. no)
  16359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16360. $as_echo "no" >&6; }
  16361. $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
  16362. CURL_DISABLE_TELNET=1
  16363. ;;
  16364. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16365. $as_echo "yes" >&6; }
  16366. ;;
  16367. esac
  16368. else
  16369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16370. $as_echo "yes" >&6; }
  16371. fi
  16372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
  16373. $as_echo_n "checking whether to support tftp... " >&6; }
  16374. # Check whether --enable-tftp was given.
  16375. if test "${enable_tftp+set}" = set; then :
  16376. enableval=$enable_tftp; case "$enableval" in
  16377. no)
  16378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16379. $as_echo "no" >&6; }
  16380. $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
  16381. CURL_DISABLE_TFTP=1
  16382. ;;
  16383. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16384. $as_echo "yes" >&6; }
  16385. ;;
  16386. esac
  16387. else
  16388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16389. $as_echo "yes" >&6; }
  16390. fi
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
  16392. $as_echo_n "checking whether to support pop3... " >&6; }
  16393. # Check whether --enable-pop3 was given.
  16394. if test "${enable_pop3+set}" = set; then :
  16395. enableval=$enable_pop3; case "$enableval" in
  16396. no)
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16398. $as_echo "no" >&6; }
  16399. $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
  16400. CURL_DISABLE_POP3=1
  16401. ;;
  16402. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16403. $as_echo "yes" >&6; }
  16404. ;;
  16405. esac
  16406. else
  16407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16408. $as_echo "yes" >&6; }
  16409. fi
  16410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
  16411. $as_echo_n "checking whether to support imap... " >&6; }
  16412. # Check whether --enable-imap was given.
  16413. if test "${enable_imap+set}" = set; then :
  16414. enableval=$enable_imap; case "$enableval" in
  16415. no)
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16417. $as_echo "no" >&6; }
  16418. $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
  16419. CURL_DISABLE_IMAP=1
  16420. ;;
  16421. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16422. $as_echo "yes" >&6; }
  16423. ;;
  16424. esac
  16425. else
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16427. $as_echo "yes" >&6; }
  16428. fi
  16429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
  16430. $as_echo_n "checking whether to support smb... " >&6; }
  16431. # Check whether --enable-smb was given.
  16432. if test "${enable_smb+set}" = set; then :
  16433. enableval=$enable_smb; case "$enableval" in
  16434. no)
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16436. $as_echo "no" >&6; }
  16437. $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
  16438. CURL_DISABLE_SMB=1
  16439. ;;
  16440. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16441. $as_echo "yes" >&6; }
  16442. ;;
  16443. esac
  16444. else
  16445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16446. $as_echo "yes" >&6; }
  16447. fi
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
  16449. $as_echo_n "checking whether to support smtp... " >&6; }
  16450. # Check whether --enable-smtp was given.
  16451. if test "${enable_smtp+set}" = set; then :
  16452. enableval=$enable_smtp; case "$enableval" in
  16453. no)
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16455. $as_echo "no" >&6; }
  16456. $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
  16457. CURL_DISABLE_SMTP=1
  16458. ;;
  16459. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16460. $as_echo "yes" >&6; }
  16461. ;;
  16462. esac
  16463. else
  16464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16465. $as_echo "yes" >&6; }
  16466. fi
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
  16468. $as_echo_n "checking whether to support gopher... " >&6; }
  16469. # Check whether --enable-gopher was given.
  16470. if test "${enable_gopher+set}" = set; then :
  16471. enableval=$enable_gopher; case "$enableval" in
  16472. no)
  16473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16474. $as_echo "no" >&6; }
  16475. $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
  16476. CURL_DISABLE_GOPHER=1
  16477. ;;
  16478. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16479. $as_echo "yes" >&6; }
  16480. ;;
  16481. esac
  16482. else
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16484. $as_echo "yes" >&6; }
  16485. fi
  16486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
  16487. $as_echo_n "checking whether to provide built-in manual... " >&6; }
  16488. # Check whether --enable-manual was given.
  16489. if test "${enable_manual+set}" = set; then :
  16490. enableval=$enable_manual; case "$enableval" in
  16491. no)
  16492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16493. $as_echo "no" >&6; }
  16494. ;;
  16495. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16496. $as_echo "yes" >&6; }
  16497. USE_MANUAL="1"
  16498. ;;
  16499. esac
  16500. else
  16501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16502. $as_echo "yes" >&6; }
  16503. USE_MANUAL="1"
  16504. fi
  16505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
  16506. $as_echo_n "checking whether to enable generation of C code... " >&6; }
  16507. # Check whether --enable-libcurl_option was given.
  16508. if test "${enable_libcurl_option+set}" = set; then :
  16509. enableval=$enable_libcurl_option; case "$enableval" in
  16510. no)
  16511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16512. $as_echo "no" >&6; }
  16513. $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
  16514. curl_libcurl_msg="no"
  16515. ;;
  16516. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16517. $as_echo "yes" >&6; }
  16518. ;;
  16519. esac
  16520. else
  16521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16522. $as_echo "yes" >&6; }
  16523. fi
  16524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  16525. $as_echo_n "checking whether to use libgcc... " >&6; }
  16526. # Check whether --enable-libgcc was given.
  16527. if test "${enable_libgcc+set}" = set; then :
  16528. enableval=$enable_libgcc; case "$enableval" in
  16529. yes)
  16530. LIBS="-lgcc $LIBS"
  16531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16532. $as_echo "yes" >&6; }
  16533. ;;
  16534. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16535. $as_echo "no" >&6; }
  16536. ;;
  16537. esac
  16538. else
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16540. $as_echo "no" >&6; }
  16541. fi
  16542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  16543. $as_echo_n "checking if X/Open network library is required... " >&6; }
  16544. tst_lib_xnet_required="no"
  16545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16546. /* end confdefs.h. */
  16547. int main (void)
  16548. {
  16549. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  16550. return 0;
  16551. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  16552. return 0;
  16553. #else
  16554. force compilation error
  16555. #endif
  16556. }
  16557. _ACEOF
  16558. if ac_fn_c_try_compile "$LINENO"; then :
  16559. tst_lib_xnet_required="yes"
  16560. LIBS="-lxnet $LIBS"
  16561. fi
  16562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  16564. $as_echo "$tst_lib_xnet_required" >&6; }
  16565. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  16566. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  16567. HAVE_GETHOSTBYNAME="1"
  16568. else
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  16570. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  16571. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  16572. $as_echo_n "(cached) " >&6
  16573. else
  16574. ac_check_lib_save_LIBS=$LIBS
  16575. LIBS="-lnsl $LIBS"
  16576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16577. /* end confdefs.h. */
  16578. #ifdef __cplusplus
  16579. extern "C"
  16580. #endif
  16581. char gethostbyname ();
  16582. int main (void)
  16583. {
  16584. return gethostbyname ();
  16585. ;
  16586. return 0;
  16587. }
  16588. _ACEOF
  16589. if ac_fn_c_try_link "$LINENO"; then :
  16590. ac_cv_lib_nsl_gethostbyname=yes
  16591. else
  16592. ac_cv_lib_nsl_gethostbyname=no
  16593. fi
  16594. rm -f core conftest.err conftest.$ac_objext \
  16595. conftest$ac_exeext conftest.$ac_ext
  16596. LIBS=$ac_check_lib_save_LIBS
  16597. fi
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16599. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16600. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16601. HAVE_GETHOSTBYNAME="1"
  16602. LIBS="-lnsl $LIBS"
  16603. fi
  16604. fi
  16605. if test "$HAVE_GETHOSTBYNAME" != "1"
  16606. then
  16607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  16608. $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  16609. if ${ac_cv_lib_socket_gethostbyname+:} false; then :
  16610. $as_echo_n "(cached) " >&6
  16611. else
  16612. ac_check_lib_save_LIBS=$LIBS
  16613. LIBS="-lsocket $LIBS"
  16614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16615. /* end confdefs.h. */
  16616. #ifdef __cplusplus
  16617. extern "C"
  16618. #endif
  16619. char gethostbyname ();
  16620. int main (void)
  16621. {
  16622. return gethostbyname ();
  16623. ;
  16624. return 0;
  16625. }
  16626. _ACEOF
  16627. if ac_fn_c_try_link "$LINENO"; then :
  16628. ac_cv_lib_socket_gethostbyname=yes
  16629. else
  16630. ac_cv_lib_socket_gethostbyname=no
  16631. fi
  16632. rm -f core conftest.err conftest.$ac_objext \
  16633. conftest$ac_exeext conftest.$ac_ext
  16634. LIBS=$ac_check_lib_save_LIBS
  16635. fi
  16636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  16637. $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  16638. if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
  16639. HAVE_GETHOSTBYNAME="1"
  16640. LIBS="-lsocket $LIBS"
  16641. fi
  16642. fi
  16643. if test "$HAVE_GETHOSTBYNAME" != "1"
  16644. then
  16645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
  16646. $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
  16647. if ${ac_cv_lib_watt_gethostbyname+:} false; then :
  16648. $as_echo_n "(cached) " >&6
  16649. else
  16650. ac_check_lib_save_LIBS=$LIBS
  16651. LIBS="-lwatt $LIBS"
  16652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16653. /* end confdefs.h. */
  16654. #ifdef __cplusplus
  16655. extern "C"
  16656. #endif
  16657. char gethostbyname ();
  16658. int main (void)
  16659. {
  16660. return gethostbyname ();
  16661. ;
  16662. return 0;
  16663. }
  16664. _ACEOF
  16665. if ac_fn_c_try_link "$LINENO"; then :
  16666. ac_cv_lib_watt_gethostbyname=yes
  16667. else
  16668. ac_cv_lib_watt_gethostbyname=no
  16669. fi
  16670. rm -f core conftest.err conftest.$ac_objext \
  16671. conftest$ac_exeext conftest.$ac_ext
  16672. LIBS=$ac_check_lib_save_LIBS
  16673. fi
  16674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
  16675. $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
  16676. if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
  16677. HAVE_GETHOSTBYNAME="1"
  16678. CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
  16679. LDFLAGS="-L/dev/env/WATT_ROOT/lib"
  16680. LIBS="-lwatt $LIBS"
  16681. fi
  16682. fi
  16683. if test "$HAVE_GETHOSTBYNAME" != "1"
  16684. then
  16685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  16686. $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
  16687. my_ac_save_LIBS=$LIBS
  16688. LIBS="-lnsl -lsocket $LIBS"
  16689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16690. /* end confdefs.h. */
  16691. int main (void)
  16692. {
  16693. gethostbyname();
  16694. ;
  16695. return 0;
  16696. }
  16697. _ACEOF
  16698. if ac_fn_c_try_link "$LINENO"; then :
  16699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16700. $as_echo "yes" >&6; }
  16701. HAVE_GETHOSTBYNAME="1"
  16702. else
  16703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16704. $as_echo "no" >&6; }
  16705. LIBS=$my_ac_save_LIBS
  16706. fi
  16707. rm -f core conftest.err conftest.$ac_objext \
  16708. conftest$ac_exeext conftest.$ac_ext
  16709. fi
  16710. if test "$HAVE_GETHOSTBYNAME" != "1"
  16711. then
  16712. if test "$curl_cv_header_windows_h" = "yes"; then
  16713. if test "$curl_cv_header_winsock_h" = "yes"; then
  16714. case $host in
  16715. *-*-mingw32ce*)
  16716. winsock_LIB="-lwinsock"
  16717. ;;
  16718. *)
  16719. winsock_LIB="-lwsock32"
  16720. ;;
  16721. esac
  16722. fi
  16723. if test "$curl_cv_header_winsock2_h" = "yes"; then
  16724. winsock_LIB="-lws2_32"
  16725. fi
  16726. if test ! -z "$winsock_LIB"; then
  16727. my_ac_save_LIBS=$LIBS
  16728. LIBS="$winsock_LIB $LIBS"
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  16730. $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
  16731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16732. /* end confdefs.h. */
  16733. #ifdef HAVE_WINDOWS_H
  16734. #ifndef WIN32_LEAN_AND_MEAN
  16735. #define WIN32_LEAN_AND_MEAN
  16736. #endif
  16737. #include <windows.h>
  16738. #ifdef HAVE_WINSOCK2_H
  16739. #include <winsock2.h>
  16740. #else
  16741. #ifdef HAVE_WINSOCK_H
  16742. #include <winsock.h>
  16743. #endif
  16744. #endif
  16745. #endif
  16746. int main (void)
  16747. {
  16748. gethostbyname("www.dummysite.com");
  16749. ;
  16750. return 0;
  16751. }
  16752. _ACEOF
  16753. if ac_fn_c_try_link "$LINENO"; then :
  16754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16755. $as_echo "yes" >&6; }
  16756. HAVE_GETHOSTBYNAME="1"
  16757. else
  16758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16759. $as_echo "no" >&6; }
  16760. winsock_LIB=""
  16761. LIBS=$my_ac_save_LIBS
  16762. fi
  16763. rm -f core conftest.err conftest.$ac_objext \
  16764. conftest$ac_exeext conftest.$ac_ext
  16765. fi
  16766. fi
  16767. fi
  16768. if test "$HAVE_GETHOSTBYNAME" != "1"
  16769. then
  16770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  16771. $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
  16772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16773. /* end confdefs.h. */
  16774. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  16775. #include <netdb.h>
  16776. int main (void)
  16777. {
  16778. gethostbyname("www.dummysite.com");
  16779. ;
  16780. return 0;
  16781. }
  16782. _ACEOF
  16783. if ac_fn_c_try_link "$LINENO"; then :
  16784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16785. $as_echo "yes" >&6; }
  16786. HAVE_GETHOSTBYNAME="1"
  16787. else
  16788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16789. $as_echo "no" >&6; }
  16790. fi
  16791. rm -f core conftest.err conftest.$ac_objext \
  16792. conftest$ac_exeext conftest.$ac_ext
  16793. fi
  16794. if test "$HAVE_GETHOSTBYNAME" != "1"
  16795. then
  16796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  16797. $as_echo_n "checking for gethostbyname for eCos... " >&6; }
  16798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16799. /* end confdefs.h. */
  16800. #include <stdio.h>
  16801. #include <netdb.h>
  16802. int main (void)
  16803. {
  16804. gethostbyname("www.dummysite.com");
  16805. ;
  16806. return 0;
  16807. }
  16808. _ACEOF
  16809. if ac_fn_c_try_link "$LINENO"; then :
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16811. $as_echo "yes" >&6; }
  16812. HAVE_GETHOSTBYNAME="1"
  16813. else
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16815. $as_echo "no" >&6; }
  16816. fi
  16817. rm -f core conftest.err conftest.$ac_objext \
  16818. conftest$ac_exeext conftest.$ac_ext
  16819. fi
  16820. if test "$HAVE_GETHOSTBYNAME" != "1"
  16821. then
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
  16823. $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
  16824. if ${ac_cv_lib_network_gethostbyname+:} false; then :
  16825. $as_echo_n "(cached) " >&6
  16826. else
  16827. ac_check_lib_save_LIBS=$LIBS
  16828. LIBS="-lnetwork $LIBS"
  16829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16830. /* end confdefs.h. */
  16831. #ifdef __cplusplus
  16832. extern "C"
  16833. #endif
  16834. char gethostbyname ();
  16835. int main (void)
  16836. {
  16837. return gethostbyname ();
  16838. ;
  16839. return 0;
  16840. }
  16841. _ACEOF
  16842. if ac_fn_c_try_link "$LINENO"; then :
  16843. ac_cv_lib_network_gethostbyname=yes
  16844. else
  16845. ac_cv_lib_network_gethostbyname=no
  16846. fi
  16847. rm -f core conftest.err conftest.$ac_objext \
  16848. conftest$ac_exeext conftest.$ac_ext
  16849. LIBS=$ac_check_lib_save_LIBS
  16850. fi
  16851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
  16852. $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
  16853. if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
  16854. HAVE_GETHOSTBYNAME="1"
  16855. LIBS="-lnetwork $LIBS"
  16856. fi
  16857. fi
  16858. if test "$HAVE_GETHOSTBYNAME" != "1"
  16859. then
  16860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
  16861. $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
  16862. if ${ac_cv_lib_net_gethostbyname+:} false; then :
  16863. $as_echo_n "(cached) " >&6
  16864. else
  16865. ac_check_lib_save_LIBS=$LIBS
  16866. LIBS="-lnet $LIBS"
  16867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16868. /* end confdefs.h. */
  16869. #ifdef __cplusplus
  16870. extern "C"
  16871. #endif
  16872. char gethostbyname ();
  16873. int main (void)
  16874. {
  16875. return gethostbyname ();
  16876. ;
  16877. return 0;
  16878. }
  16879. _ACEOF
  16880. if ac_fn_c_try_link "$LINENO"; then :
  16881. ac_cv_lib_net_gethostbyname=yes
  16882. else
  16883. ac_cv_lib_net_gethostbyname=no
  16884. fi
  16885. rm -f core conftest.err conftest.$ac_objext \
  16886. conftest$ac_exeext conftest.$ac_ext
  16887. LIBS=$ac_check_lib_save_LIBS
  16888. fi
  16889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
  16890. $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
  16891. if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
  16892. HAVE_GETHOSTBYNAME="1"
  16893. LIBS="-lnet $LIBS"
  16894. fi
  16895. fi
  16896. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  16897. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  16898. fi
  16899. curl_includes_winsock2="\
  16900. /* includes start */
  16901. #ifdef HAVE_WINDOWS_H
  16902. # ifndef WIN32_LEAN_AND_MEAN
  16903. # define WIN32_LEAN_AND_MEAN
  16904. # endif
  16905. # include <windows.h>
  16906. # ifdef HAVE_WINSOCK2_H
  16907. # include <winsock2.h>
  16908. # else
  16909. # ifdef HAVE_WINSOCK_H
  16910. # include <winsock.h>
  16911. # endif
  16912. # endif
  16913. #endif
  16914. /* includes end */"
  16915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  16916. $as_echo_n "checking for windows.h... " >&6; }
  16917. if ${curl_cv_header_windows_h+:} false; then :
  16918. $as_echo_n "(cached) " >&6
  16919. else
  16920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16921. /* end confdefs.h. */
  16922. #undef inline
  16923. #ifndef WIN32_LEAN_AND_MEAN
  16924. #define WIN32_LEAN_AND_MEAN
  16925. #endif
  16926. #include <windows.h>
  16927. int main (void)
  16928. {
  16929. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16930. HAVE_WINDOWS_H shall not be defined.
  16931. #else
  16932. int dummy=2*WINVER;
  16933. #endif
  16934. ;
  16935. return 0;
  16936. }
  16937. _ACEOF
  16938. if ac_fn_c_try_compile "$LINENO"; then :
  16939. curl_cv_header_windows_h="yes"
  16940. else
  16941. curl_cv_header_windows_h="no"
  16942. fi
  16943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16944. fi
  16945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  16946. $as_echo "$curl_cv_header_windows_h" >&6; }
  16947. case "$curl_cv_header_windows_h" in
  16948. yes)
  16949. cat >>confdefs.h <<_ACEOF
  16950. #define HAVE_WINDOWS_H 1
  16951. _ACEOF
  16952. ;;
  16953. esac
  16954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  16955. $as_echo_n "checking for winsock.h... " >&6; }
  16956. if ${curl_cv_header_winsock_h+:} false; then :
  16957. $as_echo_n "(cached) " >&6
  16958. else
  16959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16960. /* end confdefs.h. */
  16961. #undef inline
  16962. #ifndef WIN32_LEAN_AND_MEAN
  16963. #define WIN32_LEAN_AND_MEAN
  16964. #endif
  16965. #include <windows.h>
  16966. #include <winsock.h>
  16967. int main (void)
  16968. {
  16969. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16970. HAVE_WINSOCK_H shall not be defined.
  16971. #else
  16972. int dummy=WSACleanup();
  16973. #endif
  16974. ;
  16975. return 0;
  16976. }
  16977. _ACEOF
  16978. if ac_fn_c_try_compile "$LINENO"; then :
  16979. curl_cv_header_winsock_h="yes"
  16980. else
  16981. curl_cv_header_winsock_h="no"
  16982. fi
  16983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16984. fi
  16985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
  16986. $as_echo "$curl_cv_header_winsock_h" >&6; }
  16987. case "$curl_cv_header_winsock_h" in
  16988. yes)
  16989. cat >>confdefs.h <<_ACEOF
  16990. #define HAVE_WINSOCK_H 1
  16991. _ACEOF
  16992. ;;
  16993. esac
  16994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  16995. $as_echo_n "checking for winsock2.h... " >&6; }
  16996. if ${curl_cv_header_winsock2_h+:} false; then :
  16997. $as_echo_n "(cached) " >&6
  16998. else
  16999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17000. /* end confdefs.h. */
  17001. #undef inline
  17002. #ifndef WIN32_LEAN_AND_MEAN
  17003. #define WIN32_LEAN_AND_MEAN
  17004. #endif
  17005. #include <windows.h>
  17006. #include <winsock2.h>
  17007. int main (void)
  17008. {
  17009. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  17010. HAVE_WINSOCK2_H shall not be defined.
  17011. #else
  17012. int dummy=2*IPPROTO_ESP;
  17013. #endif
  17014. ;
  17015. return 0;
  17016. }
  17017. _ACEOF
  17018. if ac_fn_c_try_compile "$LINENO"; then :
  17019. curl_cv_header_winsock2_h="yes"
  17020. else
  17021. curl_cv_header_winsock2_h="no"
  17022. fi
  17023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17024. fi
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  17026. $as_echo "$curl_cv_header_winsock2_h" >&6; }
  17027. case "$curl_cv_header_winsock2_h" in
  17028. yes)
  17029. cat >>confdefs.h <<_ACEOF
  17030. #define HAVE_WINSOCK2_H 1
  17031. _ACEOF
  17032. ;;
  17033. esac
  17034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  17035. $as_echo_n "checking for connect in libraries... " >&6; }
  17036. tst_connect_save_LIBS="$LIBS"
  17037. tst_connect_need_LIBS="unknown"
  17038. for tst_lib in '' '-lsocket' ; do
  17039. if test "$tst_connect_need_LIBS" = "unknown"; then
  17040. LIBS="$tst_lib $tst_connect_save_LIBS"
  17041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17042. /* end confdefs.h. */
  17043. $curl_includes_winsock2
  17044. #ifndef HAVE_WINDOWS_H
  17045. int connect(int, void*, int);
  17046. #endif
  17047. int main (void)
  17048. {
  17049. if(0 != connect(0, 0, 0))
  17050. return 1;
  17051. ;
  17052. return 0;
  17053. }
  17054. _ACEOF
  17055. if ac_fn_c_try_link "$LINENO"; then :
  17056. tst_connect_need_LIBS="$tst_lib"
  17057. fi
  17058. rm -f core conftest.err conftest.$ac_objext \
  17059. conftest$ac_exeext conftest.$ac_ext
  17060. fi
  17061. done
  17062. LIBS="$tst_connect_save_LIBS"
  17063. #
  17064. case X-"$tst_connect_need_LIBS" in
  17065. X-unknown)
  17066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  17067. $as_echo "cannot find connect" >&6; }
  17068. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  17069. ;;
  17070. X-)
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17072. $as_echo "yes" >&6; }
  17073. ;;
  17074. *)
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  17076. $as_echo "$tst_connect_need_LIBS" >&6; }
  17077. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  17078. ;;
  17079. esac
  17080. CURL_NETWORK_LIBS=$LIBS
  17081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  17082. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  17083. if ${ac_cv_header_time+:} false; then :
  17084. $as_echo_n "(cached) " >&6
  17085. else
  17086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17087. /* end confdefs.h. */
  17088. #include <sys/types.h>
  17089. #include <sys/time.h>
  17090. #include <time.h>
  17091. int main (void)
  17092. {
  17093. if ((struct tm *) 0)
  17094. return 0;
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. if ac_fn_c_try_compile "$LINENO"; then :
  17100. ac_cv_header_time=yes
  17101. else
  17102. ac_cv_header_time=no
  17103. fi
  17104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17105. fi
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  17107. $as_echo "$ac_cv_header_time" >&6; }
  17108. if test $ac_cv_header_time = yes; then
  17109. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  17110. fi
  17111. for ac_header in sys/types.h sys/time.h time.h
  17112. do :
  17113. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17114. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  17115. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17116. cat >>confdefs.h <<_ACEOF
  17117. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17118. _ACEOF
  17119. fi
  17120. done
  17121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  17122. $as_echo_n "checking for monotonic clock_gettime... " >&6; }
  17123. #
  17124. if test "x$dontwant_rt" = "xno" ; then
  17125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17126. /* end confdefs.h. */
  17127. #ifdef HAVE_SYS_TYPES_H
  17128. #include <sys/types.h>
  17129. #endif
  17130. #ifdef HAVE_SYS_TIME_H
  17131. #include <sys/time.h>
  17132. #ifdef TIME_WITH_SYS_TIME
  17133. #include <time.h>
  17134. #endif
  17135. #else
  17136. #ifdef HAVE_TIME_H
  17137. #include <time.h>
  17138. #endif
  17139. #endif
  17140. int main (void)
  17141. {
  17142. struct timespec ts;
  17143. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  17144. ;
  17145. return 0;
  17146. }
  17147. _ACEOF
  17148. if ac_fn_c_try_compile "$LINENO"; then :
  17149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17150. $as_echo "yes" >&6; }
  17151. curl_func_clock_gettime="yes"
  17152. else
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17154. $as_echo "no" >&6; }
  17155. curl_func_clock_gettime="no"
  17156. fi
  17157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17158. fi
  17159. #
  17160. if test "$curl_func_clock_gettime" = "yes"; then
  17161. #
  17162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  17163. $as_echo_n "checking for clock_gettime in libraries... " >&6; }
  17164. #
  17165. curl_cv_save_LIBS="$LIBS"
  17166. curl_cv_gclk_LIBS="unknown"
  17167. #
  17168. for x_xlibs in '' '-lrt' '-lposix4' ; do
  17169. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  17170. if test -z "$x_xlibs"; then
  17171. LIBS="$curl_cv_save_LIBS"
  17172. else
  17173. LIBS="$x_xlibs $curl_cv_save_LIBS"
  17174. fi
  17175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17176. /* end confdefs.h. */
  17177. #ifdef HAVE_SYS_TYPES_H
  17178. #include <sys/types.h>
  17179. #endif
  17180. #ifdef HAVE_SYS_TIME_H
  17181. #include <sys/time.h>
  17182. #ifdef TIME_WITH_SYS_TIME
  17183. #include <time.h>
  17184. #endif
  17185. #else
  17186. #ifdef HAVE_TIME_H
  17187. #include <time.h>
  17188. #endif
  17189. #endif
  17190. int main (void)
  17191. {
  17192. struct timespec ts;
  17193. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  17194. ;
  17195. return 0;
  17196. }
  17197. _ACEOF
  17198. if ac_fn_c_try_link "$LINENO"; then :
  17199. curl_cv_gclk_LIBS="$x_xlibs"
  17200. fi
  17201. rm -f core conftest.err conftest.$ac_objext \
  17202. conftest$ac_exeext conftest.$ac_ext
  17203. fi
  17204. done
  17205. #
  17206. LIBS="$curl_cv_save_LIBS"
  17207. #
  17208. case X-"$curl_cv_gclk_LIBS" in
  17209. X-unknown)
  17210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  17211. $as_echo "cannot find clock_gettime" >&6; }
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  17213. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  17214. curl_func_clock_gettime="no"
  17215. ;;
  17216. X-)
  17217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  17218. $as_echo "no additional lib required" >&6; }
  17219. curl_func_clock_gettime="yes"
  17220. ;;
  17221. *)
  17222. if test -z "$curl_cv_save_LIBS"; then
  17223. LIBS="$curl_cv_gclk_LIBS"
  17224. else
  17225. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  17226. fi
  17227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  17228. $as_echo "$curl_cv_gclk_LIBS" >&6; }
  17229. curl_func_clock_gettime="yes"
  17230. ;;
  17231. esac
  17232. #
  17233. if test "x$cross_compiling" != "xyes" &&
  17234. test "$curl_func_clock_gettime" = "yes"; then
  17235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  17236. $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
  17237. if test "$cross_compiling" = yes; then :
  17238. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17240. as_fn_error $? "cannot run test program while cross compiling
  17241. See \`config.log' for more details" "$LINENO" 5; }
  17242. else
  17243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17244. /* end confdefs.h. */
  17245. #ifdef HAVE_STDLIB_H
  17246. #include <stdlib.h>
  17247. #endif
  17248. #ifdef HAVE_SYS_TYPES_H
  17249. #include <sys/types.h>
  17250. #endif
  17251. #ifdef HAVE_SYS_TIME_H
  17252. #include <sys/time.h>
  17253. #ifdef TIME_WITH_SYS_TIME
  17254. #include <time.h>
  17255. #endif
  17256. #else
  17257. #ifdef HAVE_TIME_H
  17258. #include <time.h>
  17259. #endif
  17260. #endif
  17261. int main (void)
  17262. {
  17263. struct timespec ts;
  17264. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  17265. exit(0);
  17266. else
  17267. exit(1);
  17268. ;
  17269. return 0;
  17270. }
  17271. _ACEOF
  17272. if ac_fn_c_try_run "$LINENO"; then :
  17273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17274. $as_echo "yes" >&6; }
  17275. else
  17276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17277. $as_echo "no" >&6; }
  17278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  17279. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  17280. curl_func_clock_gettime="no"
  17281. LIBS="$curl_cv_save_LIBS"
  17282. fi
  17283. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17284. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17285. fi
  17286. fi
  17287. #
  17288. case "$curl_func_clock_gettime" in
  17289. yes)
  17290. cat >>confdefs.h <<_ACEOF
  17291. #define HAVE_CLOCK_GETTIME_MONOTONIC 1
  17292. _ACEOF
  17293. ;;
  17294. esac
  17295. #
  17296. fi
  17297. #
  17298. CURL_NETWORK_AND_TIME_LIBS=$LIBS
  17299. clean_CPPFLAGS=$CPPFLAGS
  17300. clean_LDFLAGS=$LDFLAGS
  17301. clean_LIBS=$LIBS
  17302. ZLIB_LIBS=""
  17303. # Check whether --with-zlib was given.
  17304. if test "${with_zlib+set}" = set; then :
  17305. withval=$with_zlib; OPT_ZLIB="$withval"
  17306. fi
  17307. if test "$OPT_ZLIB" = "no" ; then
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
  17309. $as_echo "$as_me: WARNING: zlib disabled" >&2;}
  17310. else
  17311. if test "$OPT_ZLIB" = "yes" ; then
  17312. OPT_ZLIB=""
  17313. fi
  17314. if test -z "$OPT_ZLIB" ; then
  17315. if test -n "$PKG_CONFIG"; then
  17316. PKGCONFIG="$PKG_CONFIG"
  17317. else
  17318. if test -n "$ac_tool_prefix"; then
  17319. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17320. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17322. $as_echo_n "checking for $ac_word... " >&6; }
  17323. if ${ac_cv_path_PKGCONFIG+:} false; then :
  17324. $as_echo_n "(cached) " >&6
  17325. else
  17326. case $PKGCONFIG in
  17327. [\\/]* | ?:[\\/]*)
  17328. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  17329. ;;
  17330. *)
  17331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17332. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17333. for as_dir in $as_dummy
  17334. do
  17335. IFS=$as_save_IFS
  17336. test -z "$as_dir" && as_dir=.
  17337. for ac_exec_ext in '' $ac_executable_extensions; do
  17338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17339. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17341. break 2
  17342. fi
  17343. done
  17344. done
  17345. IFS=$as_save_IFS
  17346. ;;
  17347. esac
  17348. fi
  17349. PKGCONFIG=$ac_cv_path_PKGCONFIG
  17350. if test -n "$PKGCONFIG"; then
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  17352. $as_echo "$PKGCONFIG" >&6; }
  17353. else
  17354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17355. $as_echo "no" >&6; }
  17356. fi
  17357. fi
  17358. if test -z "$ac_cv_path_PKGCONFIG"; then
  17359. ac_pt_PKGCONFIG=$PKGCONFIG
  17360. # Extract the first word of "pkg-config", so it can be a program name with args.
  17361. set dummy pkg-config; ac_word=$2
  17362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17363. $as_echo_n "checking for $ac_word... " >&6; }
  17364. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  17365. $as_echo_n "(cached) " >&6
  17366. else
  17367. case $ac_pt_PKGCONFIG in
  17368. [\\/]* | ?:[\\/]*)
  17369. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  17370. ;;
  17371. *)
  17372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17373. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17374. for as_dir in $as_dummy
  17375. do
  17376. IFS=$as_save_IFS
  17377. test -z "$as_dir" && as_dir=.
  17378. for ac_exec_ext in '' $ac_executable_extensions; do
  17379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17380. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17382. break 2
  17383. fi
  17384. done
  17385. done
  17386. IFS=$as_save_IFS
  17387. ;;
  17388. esac
  17389. fi
  17390. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  17391. if test -n "$ac_pt_PKGCONFIG"; then
  17392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  17393. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  17394. else
  17395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17396. $as_echo "no" >&6; }
  17397. fi
  17398. if test "x$ac_pt_PKGCONFIG" = x; then
  17399. PKGCONFIG="no"
  17400. else
  17401. case $cross_compiling:$ac_tool_warned in
  17402. yes:)
  17403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17404. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17405. ac_tool_warned=yes ;;
  17406. esac
  17407. PKGCONFIG=$ac_pt_PKGCONFIG
  17408. fi
  17409. else
  17410. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  17411. fi
  17412. fi
  17413. if test "x$PKGCONFIG" != "xno"; then
  17414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
  17415. $as_echo_n "checking for zlib options with pkg-config... " >&6; }
  17416. itexists=`
  17417. if test -n ""; then
  17418. PKG_CONFIG_LIBDIR=""
  17419. export PKG_CONFIG_LIBDIR
  17420. fi
  17421. $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
  17422. if test -z "$itexists"; then
  17423. PKGCONFIG="no"
  17424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17425. $as_echo "no" >&6; }
  17426. else
  17427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  17428. $as_echo "found" >&6; }
  17429. fi
  17430. fi
  17431. if test "$PKGCONFIG" != "no" ; then
  17432. LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
  17433. LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
  17434. CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
  17435. OPT_ZLIB=""
  17436. HAVE_LIBZ="1"
  17437. fi
  17438. if test -z "$HAVE_LIBZ"; then
  17439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  17440. $as_echo_n "checking for inflateEnd in -lz... " >&6; }
  17441. if ${ac_cv_lib_z_inflateEnd+:} false; then :
  17442. $as_echo_n "(cached) " >&6
  17443. else
  17444. ac_check_lib_save_LIBS=$LIBS
  17445. LIBS="-lz $LIBS"
  17446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17447. /* end confdefs.h. */
  17448. #ifdef __cplusplus
  17449. extern "C"
  17450. #endif
  17451. char inflateEnd ();
  17452. int main (void)
  17453. {
  17454. return inflateEnd ();
  17455. ;
  17456. return 0;
  17457. }
  17458. _ACEOF
  17459. if ac_fn_c_try_link "$LINENO"; then :
  17460. ac_cv_lib_z_inflateEnd=yes
  17461. else
  17462. ac_cv_lib_z_inflateEnd=no
  17463. fi
  17464. rm -f core conftest.err conftest.$ac_objext \
  17465. conftest$ac_exeext conftest.$ac_ext
  17466. LIBS=$ac_check_lib_save_LIBS
  17467. fi
  17468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  17469. $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
  17470. if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
  17471. HAVE_LIBZ="1"
  17472. LIBS="-lz $LIBS"
  17473. else
  17474. OPT_ZLIB="/usr/local"
  17475. fi
  17476. fi
  17477. fi
  17478. if test -n "$OPT_ZLIB"; then
  17479. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  17480. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  17481. fi
  17482. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  17483. if test "x$ac_cv_header_zlib_h" = xyes; then :
  17484. HAVE_ZLIB_H="1"
  17485. if test "$HAVE_LIBZ" != "1"; then
  17486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
  17487. $as_echo_n "checking for gzread in -lz... " >&6; }
  17488. if ${ac_cv_lib_z_gzread+:} false; then :
  17489. $as_echo_n "(cached) " >&6
  17490. else
  17491. ac_check_lib_save_LIBS=$LIBS
  17492. LIBS="-lz $LIBS"
  17493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17494. /* end confdefs.h. */
  17495. #ifdef __cplusplus
  17496. extern "C"
  17497. #endif
  17498. char gzread ();
  17499. int main (void)
  17500. {
  17501. return gzread ();
  17502. ;
  17503. return 0;
  17504. }
  17505. _ACEOF
  17506. if ac_fn_c_try_link "$LINENO"; then :
  17507. ac_cv_lib_z_gzread=yes
  17508. else
  17509. ac_cv_lib_z_gzread=no
  17510. fi
  17511. rm -f core conftest.err conftest.$ac_objext \
  17512. conftest$ac_exeext conftest.$ac_ext
  17513. LIBS=$ac_check_lib_save_LIBS
  17514. fi
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
  17516. $as_echo "$ac_cv_lib_z_gzread" >&6; }
  17517. if test "x$ac_cv_lib_z_gzread" = xyes; then :
  17518. HAVE_LIBZ="1"
  17519. LIBS="-lz $LIBS"
  17520. else
  17521. CPPFLAGS=$clean_CPPFLAGS
  17522. LDFLAGS=$clean_LDFLAGS
  17523. fi
  17524. fi
  17525. else
  17526. CPPFLAGS=$clean_CPPFLAGS
  17527. LDFLAGS=$clean_LDFLAGS
  17528. fi
  17529. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  17530. then
  17531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
  17532. $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  17533. HAVE_LIBZ=""
  17534. CPPFLAGS=$clean_CPPFLAGS
  17535. LDFLAGS=$clean_LDFLAGS
  17536. LIBS=$clean_LIBS
  17537. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  17538. then
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
  17540. $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  17541. CPPFLAGS=$clean_CPPFLAGS
  17542. LDFLAGS=$clean_LDFLAGS
  17543. LIBS=$clean_LIBS
  17544. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  17545. then
  17546. $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
  17547. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  17548. ZLIB_LIBS="-lz"
  17549. LIBS="-lz $clean_LIBS"
  17550. AMFIXLIB="1"
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
  17552. $as_echo "$as_me: found both libz and libz.h header" >&6;}
  17553. curl_zlib_msg="enabled"
  17554. fi
  17555. fi
  17556. if test x"$AMFIXLIB" = x1; then
  17557. HAVE_LIBZ_TRUE=
  17558. HAVE_LIBZ_FALSE='#'
  17559. else
  17560. HAVE_LIBZ_TRUE='#'
  17561. HAVE_LIBZ_FALSE=
  17562. fi
  17563. OPT_BROTLI=off
  17564. # Check whether --with-brotli was given.
  17565. if test "${with_brotli+set}" = set; then :
  17566. withval=$with_brotli; OPT_BROTLI=$withval
  17567. fi
  17568. if test X"$OPT_BROTLI" != Xno; then
  17569. CLEANLDFLAGS="$LDFLAGS"
  17570. CLEANCPPFLAGS="$CPPFLAGS"
  17571. CLEANLIBS="$LIBS"
  17572. case "$OPT_BROTLI" in
  17573. yes)
  17574. if test -n "$PKG_CONFIG"; then
  17575. PKGCONFIG="$PKG_CONFIG"
  17576. else
  17577. if test -n "$ac_tool_prefix"; then
  17578. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17579. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17581. $as_echo_n "checking for $ac_word... " >&6; }
  17582. if ${ac_cv_path_PKGCONFIG+:} false; then :
  17583. $as_echo_n "(cached) " >&6
  17584. else
  17585. case $PKGCONFIG in
  17586. [\\/]* | ?:[\\/]*)
  17587. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  17588. ;;
  17589. *)
  17590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17591. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17592. for as_dir in $as_dummy
  17593. do
  17594. IFS=$as_save_IFS
  17595. test -z "$as_dir" && as_dir=.
  17596. for ac_exec_ext in '' $ac_executable_extensions; do
  17597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17598. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17600. break 2
  17601. fi
  17602. done
  17603. done
  17604. IFS=$as_save_IFS
  17605. ;;
  17606. esac
  17607. fi
  17608. PKGCONFIG=$ac_cv_path_PKGCONFIG
  17609. if test -n "$PKGCONFIG"; then
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  17611. $as_echo "$PKGCONFIG" >&6; }
  17612. else
  17613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17614. $as_echo "no" >&6; }
  17615. fi
  17616. fi
  17617. if test -z "$ac_cv_path_PKGCONFIG"; then
  17618. ac_pt_PKGCONFIG=$PKGCONFIG
  17619. # Extract the first word of "pkg-config", so it can be a program name with args.
  17620. set dummy pkg-config; ac_word=$2
  17621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17622. $as_echo_n "checking for $ac_word... " >&6; }
  17623. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  17624. $as_echo_n "(cached) " >&6
  17625. else
  17626. case $ac_pt_PKGCONFIG in
  17627. [\\/]* | ?:[\\/]*)
  17628. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  17629. ;;
  17630. *)
  17631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17632. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17633. for as_dir in $as_dummy
  17634. do
  17635. IFS=$as_save_IFS
  17636. test -z "$as_dir" && as_dir=.
  17637. for ac_exec_ext in '' $ac_executable_extensions; do
  17638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17639. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17641. break 2
  17642. fi
  17643. done
  17644. done
  17645. IFS=$as_save_IFS
  17646. ;;
  17647. esac
  17648. fi
  17649. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  17650. if test -n "$ac_pt_PKGCONFIG"; then
  17651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  17652. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  17653. else
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17655. $as_echo "no" >&6; }
  17656. fi
  17657. if test "x$ac_pt_PKGCONFIG" = x; then
  17658. PKGCONFIG="no"
  17659. else
  17660. case $cross_compiling:$ac_tool_warned in
  17661. yes:)
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17663. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17664. ac_tool_warned=yes ;;
  17665. esac
  17666. PKGCONFIG=$ac_pt_PKGCONFIG
  17667. fi
  17668. else
  17669. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  17670. fi
  17671. fi
  17672. if test "x$PKGCONFIG" != "xno"; then
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
  17674. $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
  17675. itexists=`
  17676. if test -n ""; then
  17677. PKG_CONFIG_LIBDIR=""
  17678. export PKG_CONFIG_LIBDIR
  17679. fi
  17680. $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
  17681. if test -z "$itexists"; then
  17682. PKGCONFIG="no"
  17683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17684. $as_echo "no" >&6; }
  17685. else
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  17687. $as_echo "found" >&6; }
  17688. fi
  17689. fi
  17690. if test "$PKGCONFIG" != "no" ; then
  17691. LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
  17692. LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
  17693. CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
  17694. version=`$PKGCONFIG --modversion libbrotlidec`
  17695. DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
  17696. fi
  17697. ;;
  17698. off)
  17699. ;;
  17700. *)
  17701. PREFIX_BROTLI=$OPT_BROTLI
  17702. ;;
  17703. esac
  17704. if test -n "$PREFIX_BROTLI"; then
  17705. LIB_BROTLI="-lbrotlidec"
  17706. LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
  17707. CPP_BROTLI=-I${PREFIX_BROTLI}/include
  17708. DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
  17709. fi
  17710. LDFLAGS="$LDFLAGS $LD_BROTLI"
  17711. CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
  17712. LIBS="$LIB_BROTLI $LIBS"
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
  17714. $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
  17715. if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
  17716. $as_echo_n "(cached) " >&6
  17717. else
  17718. ac_check_lib_save_LIBS=$LIBS
  17719. LIBS="-lbrotlidec $LIBS"
  17720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17721. /* end confdefs.h. */
  17722. #ifdef __cplusplus
  17723. extern "C"
  17724. #endif
  17725. char BrotliDecoderDecompress ();
  17726. int main (void)
  17727. {
  17728. return BrotliDecoderDecompress ();
  17729. ;
  17730. return 0;
  17731. }
  17732. _ACEOF
  17733. if ac_fn_c_try_link "$LINENO"; then :
  17734. ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
  17735. else
  17736. ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
  17737. fi
  17738. rm -f core conftest.err conftest.$ac_objext \
  17739. conftest$ac_exeext conftest.$ac_ext
  17740. LIBS=$ac_check_lib_save_LIBS
  17741. fi
  17742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
  17743. $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
  17744. if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
  17745. cat >>confdefs.h <<_ACEOF
  17746. #define HAVE_LIBBROTLIDEC 1
  17747. _ACEOF
  17748. LIBS="-lbrotlidec $LIBS"
  17749. fi
  17750. for ac_header in brotli/decode.h
  17751. do :
  17752. ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
  17753. if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
  17754. cat >>confdefs.h <<_ACEOF
  17755. #define HAVE_BROTLI_DECODE_H 1
  17756. _ACEOF
  17757. curl_brotli_msg="enabled (libbrotlidec)"
  17758. HAVE_BROTLI=1
  17759. $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
  17760. HAVE_BROTLI=1
  17761. fi
  17762. done
  17763. if test X"$OPT_BROTLI" != Xoff &&
  17764. test "$HAVE_BROTLI" != "1"; then
  17765. as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
  17766. fi
  17767. if test "$HAVE_BROTLI" = "1"; then
  17768. if test -n "$DIR_BROTLI"; then
  17769. if test "x$cross_compiling" != "xyes"; then
  17770. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
  17771. export CURL_LIBRARY_PATH
  17772. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
  17773. $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
  17774. fi
  17775. fi
  17776. else
  17777. LDFLAGS=$CLEANLDFLAGS
  17778. CPPFLAGS=$CLEANCPPFLAGS
  17779. LIBS=$CLEANLIBS
  17780. fi
  17781. fi
  17782. LDAPLIBNAME=""
  17783. # Check whether --with-ldap-lib was given.
  17784. if test "${with_ldap_lib+set}" = set; then :
  17785. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  17786. fi
  17787. LBERLIBNAME=""
  17788. # Check whether --with-lber-lib was given.
  17789. if test "${with_lber_lib+set}" = set; then :
  17790. withval=$with_lber_lib; LBERLIBNAME="$withval"
  17791. fi
  17792. if test x$CURL_DISABLE_LDAP != x1 ; then
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
  17794. $as_echo_n "checking for lber.h... " >&6; }
  17795. if ${curl_cv_header_lber_h+:} false; then :
  17796. $as_echo_n "(cached) " >&6
  17797. else
  17798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17799. /* end confdefs.h. */
  17800. #undef inline
  17801. #ifdef HAVE_WINDOWS_H
  17802. #ifndef WIN32_LEAN_AND_MEAN
  17803. #define WIN32_LEAN_AND_MEAN
  17804. #endif
  17805. #include <windows.h>
  17806. #else
  17807. #ifdef HAVE_SYS_TYPES_H
  17808. #include <sys/types.h>
  17809. #endif
  17810. #endif
  17811. #ifndef NULL
  17812. #define NULL (void *)0
  17813. #endif
  17814. #include <lber.h>
  17815. int main (void)
  17816. {
  17817. BerValue *bvp = NULL;
  17818. BerElement *bep = ber_init(bvp);
  17819. ber_free(bep, 1);
  17820. ;
  17821. return 0;
  17822. }
  17823. _ACEOF
  17824. if ac_fn_c_try_compile "$LINENO"; then :
  17825. curl_cv_header_lber_h="yes"
  17826. else
  17827. curl_cv_header_lber_h="no"
  17828. fi
  17829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17830. fi
  17831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
  17832. $as_echo "$curl_cv_header_lber_h" >&6; }
  17833. if test "$curl_cv_header_lber_h" = "yes"; then
  17834. cat >>confdefs.h <<_ACEOF
  17835. #define HAVE_LBER_H 1
  17836. _ACEOF
  17837. #
  17838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17839. /* end confdefs.h. */
  17840. #undef inline
  17841. #ifdef HAVE_WINDOWS_H
  17842. #ifndef WIN32_LEAN_AND_MEAN
  17843. #define WIN32_LEAN_AND_MEAN
  17844. #endif
  17845. #include <windows.h>
  17846. #else
  17847. #ifdef HAVE_SYS_TYPES_H
  17848. #include <sys/types.h>
  17849. #endif
  17850. #endif
  17851. #ifndef NULL
  17852. #define NULL (void *)0
  17853. #endif
  17854. #ifndef LDAP_DEPRECATED
  17855. #define LDAP_DEPRECATED 1
  17856. #endif
  17857. #include <ldap.h>
  17858. int main (void)
  17859. {
  17860. BerValue *bvp = NULL;
  17861. BerElement *bep = ber_init(bvp);
  17862. ber_free(bep, 1);
  17863. ;
  17864. return 0;
  17865. }
  17866. _ACEOF
  17867. if ac_fn_c_try_compile "$LINENO"; then :
  17868. curl_cv_need_header_lber_h="no"
  17869. else
  17870. curl_cv_need_header_lber_h="yes"
  17871. fi
  17872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17873. #
  17874. case "$curl_cv_need_header_lber_h" in
  17875. yes)
  17876. cat >>confdefs.h <<_ACEOF
  17877. #define NEED_LBER_H 1
  17878. _ACEOF
  17879. ;;
  17880. esac
  17881. fi
  17882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
  17883. $as_echo_n "checking for ldap.h... " >&6; }
  17884. if ${curl_cv_header_ldap_h+:} false; then :
  17885. $as_echo_n "(cached) " >&6
  17886. else
  17887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17888. /* end confdefs.h. */
  17889. #undef inline
  17890. #ifdef HAVE_WINDOWS_H
  17891. #ifndef WIN32_LEAN_AND_MEAN
  17892. #define WIN32_LEAN_AND_MEAN
  17893. #endif
  17894. #include <windows.h>
  17895. #else
  17896. #ifdef HAVE_SYS_TYPES_H
  17897. #include <sys/types.h>
  17898. #endif
  17899. #endif
  17900. #ifndef LDAP_DEPRECATED
  17901. #define LDAP_DEPRECATED 1
  17902. #endif
  17903. #ifdef NEED_LBER_H
  17904. #include <lber.h>
  17905. #endif
  17906. #include <ldap.h>
  17907. int main (void)
  17908. {
  17909. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17910. int res = ldap_unbind(ldp);
  17911. ;
  17912. return 0;
  17913. }
  17914. _ACEOF
  17915. if ac_fn_c_try_compile "$LINENO"; then :
  17916. curl_cv_header_ldap_h="yes"
  17917. else
  17918. curl_cv_header_ldap_h="no"
  17919. fi
  17920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17921. fi
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
  17923. $as_echo "$curl_cv_header_ldap_h" >&6; }
  17924. case "$curl_cv_header_ldap_h" in
  17925. yes)
  17926. cat >>confdefs.h <<_ACEOF
  17927. #define HAVE_LDAP_H 1
  17928. _ACEOF
  17929. ;;
  17930. esac
  17931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
  17932. $as_echo_n "checking for ldapssl.h... " >&6; }
  17933. if ${curl_cv_header_ldapssl_h+:} false; then :
  17934. $as_echo_n "(cached) " >&6
  17935. else
  17936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17937. /* end confdefs.h. */
  17938. #undef inline
  17939. #ifdef HAVE_WINDOWS_H
  17940. #ifndef WIN32_LEAN_AND_MEAN
  17941. #define WIN32_LEAN_AND_MEAN
  17942. #endif
  17943. #include <windows.h>
  17944. #else
  17945. #ifdef HAVE_SYS_TYPES_H
  17946. #include <sys/types.h>
  17947. #endif
  17948. #endif
  17949. #ifndef NULL
  17950. #define NULL (void *)0
  17951. #endif
  17952. #ifndef LDAP_DEPRECATED
  17953. #define LDAP_DEPRECATED 1
  17954. #endif
  17955. #ifdef NEED_LBER_H
  17956. #include <lber.h>
  17957. #endif
  17958. #ifdef HAVE_LDAP_H
  17959. #include <ldap.h>
  17960. #endif
  17961. #include <ldapssl.h>
  17962. int main (void)
  17963. {
  17964. char *cert_label = NULL;
  17965. LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"; then :
  17971. curl_cv_header_ldapssl_h="yes"
  17972. else
  17973. curl_cv_header_ldapssl_h="no"
  17974. fi
  17975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17976. fi
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
  17978. $as_echo "$curl_cv_header_ldapssl_h" >&6; }
  17979. case "$curl_cv_header_ldapssl_h" in
  17980. yes)
  17981. cat >>confdefs.h <<_ACEOF
  17982. #define HAVE_LDAPSSL_H 1
  17983. _ACEOF
  17984. ;;
  17985. esac
  17986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
  17987. $as_echo_n "checking for ldap_ssl.h... " >&6; }
  17988. if ${curl_cv_header_ldap_ssl_h+:} false; then :
  17989. $as_echo_n "(cached) " >&6
  17990. else
  17991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17992. /* end confdefs.h. */
  17993. #undef inline
  17994. #ifdef HAVE_WINDOWS_H
  17995. #ifndef WIN32_LEAN_AND_MEAN
  17996. #define WIN32_LEAN_AND_MEAN
  17997. #endif
  17998. #include <windows.h>
  17999. #else
  18000. #ifdef HAVE_SYS_TYPES_H
  18001. #include <sys/types.h>
  18002. #endif
  18003. #endif
  18004. #ifndef LDAP_DEPRECATED
  18005. #define LDAP_DEPRECATED 1
  18006. #endif
  18007. #ifdef NEED_LBER_H
  18008. #include <lber.h>
  18009. #endif
  18010. #ifdef HAVE_LDAP_H
  18011. #include <ldap.h>
  18012. #endif
  18013. #include <ldap_ssl.h>
  18014. int main (void)
  18015. {
  18016. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  18017. ;
  18018. return 0;
  18019. }
  18020. _ACEOF
  18021. if ac_fn_c_try_compile "$LINENO"; then :
  18022. curl_cv_header_ldap_ssl_h="yes"
  18023. else
  18024. curl_cv_header_ldap_ssl_h="no"
  18025. fi
  18026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18027. fi
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
  18029. $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
  18030. case "$curl_cv_header_ldap_ssl_h" in
  18031. yes)
  18032. cat >>confdefs.h <<_ACEOF
  18033. #define HAVE_LDAP_SSL_H 1
  18034. _ACEOF
  18035. ;;
  18036. esac
  18037. if test -z "$LDAPLIBNAME" ; then
  18038. if test "$curl_cv_native_windows" = "yes"; then
  18039. LDAPLIBNAME="wldap32"
  18040. LBERLIBNAME="no"
  18041. fi
  18042. fi
  18043. if test "$LDAPLIBNAME" ; then
  18044. as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
  18045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  18046. $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
  18047. if eval \${$as_ac_Lib+:} false; then :
  18048. $as_echo_n "(cached) " >&6
  18049. else
  18050. ac_check_lib_save_LIBS=$LIBS
  18051. LIBS="-l"$LDAPLIBNAME" $LIBS"
  18052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18053. /* end confdefs.h. */
  18054. #ifdef __cplusplus
  18055. extern "C"
  18056. #endif
  18057. char ldap_init ();
  18058. int main (void)
  18059. {
  18060. return ldap_init ();
  18061. ;
  18062. return 0;
  18063. }
  18064. _ACEOF
  18065. if ac_fn_c_try_link "$LINENO"; then :
  18066. eval "$as_ac_Lib=yes"
  18067. else
  18068. eval "$as_ac_Lib=no"
  18069. fi
  18070. rm -f core conftest.err conftest.$ac_objext \
  18071. conftest$ac_exeext conftest.$ac_ext
  18072. LIBS=$ac_check_lib_save_LIBS
  18073. fi
  18074. eval ac_res=\$$as_ac_Lib
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18076. $as_echo "$ac_res" >&6; }
  18077. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18078. cat >>confdefs.h <<_ACEOF
  18079. #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  18080. _ACEOF
  18081. LIBS="-l"$LDAPLIBNAME" $LIBS"
  18082. else
  18083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  18084. $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  18085. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  18086. CURL_DISABLE_LDAP=1
  18087. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  18088. CURL_DISABLE_LDAPS=1
  18089. fi
  18090. else
  18091. #
  18092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
  18093. $as_echo_n "checking for LDAP libraries... " >&6; }
  18094. #
  18095. u_libs=""
  18096. #
  18097. #
  18098. curl_cv_save_LIBS="$LIBS"
  18099. curl_cv_ldap_LIBS="unknown"
  18100. #
  18101. for x_nlibs in '' "$u_libs" \
  18102. '-lldap' \
  18103. '-lldap -llber' \
  18104. '-llber -lldap' \
  18105. '-lldapssl -lldapx -lldapsdk' \
  18106. '-lldapsdk -lldapx -lldapssl' ; do
  18107. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  18108. if test -z "$x_nlibs"; then
  18109. LIBS="$curl_cv_save_LIBS"
  18110. else
  18111. LIBS="$x_nlibs $curl_cv_save_LIBS"
  18112. fi
  18113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18114. /* end confdefs.h. */
  18115. #undef inline
  18116. #ifdef HAVE_WINDOWS_H
  18117. #ifndef WIN32_LEAN_AND_MEAN
  18118. #define WIN32_LEAN_AND_MEAN
  18119. #endif
  18120. #include <windows.h>
  18121. #else
  18122. #ifdef HAVE_SYS_TYPES_H
  18123. #include <sys/types.h>
  18124. #endif
  18125. #endif
  18126. #ifndef NULL
  18127. #define NULL (void *)0
  18128. #endif
  18129. #ifndef LDAP_DEPRECATED
  18130. #define LDAP_DEPRECATED 1
  18131. #endif
  18132. #ifdef NEED_LBER_H
  18133. #include <lber.h>
  18134. #endif
  18135. #ifdef HAVE_LDAP_H
  18136. #include <ldap.h>
  18137. #endif
  18138. int main (void)
  18139. {
  18140. BerValue *bvp = NULL;
  18141. BerElement *bep = ber_init(bvp);
  18142. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  18143. int res = ldap_unbind(ldp);
  18144. ber_free(bep, 1);
  18145. ;
  18146. return 0;
  18147. }
  18148. _ACEOF
  18149. if ac_fn_c_try_link "$LINENO"; then :
  18150. curl_cv_ldap_LIBS="$x_nlibs"
  18151. fi
  18152. rm -f core conftest.err conftest.$ac_objext \
  18153. conftest$ac_exeext conftest.$ac_ext
  18154. fi
  18155. done
  18156. #
  18157. LIBS="$curl_cv_save_LIBS"
  18158. #
  18159. case X-"$curl_cv_ldap_LIBS" in
  18160. X-unknown)
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
  18162. $as_echo "cannot find LDAP libraries" >&6; }
  18163. ;;
  18164. X-)
  18165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  18166. $as_echo "no additional lib required" >&6; }
  18167. ;;
  18168. *)
  18169. if test -z "$curl_cv_save_LIBS"; then
  18170. LIBS="$curl_cv_ldap_LIBS"
  18171. else
  18172. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  18173. fi
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
  18175. $as_echo "$curl_cv_ldap_LIBS" >&6; }
  18176. ;;
  18177. esac
  18178. #
  18179. case X-"$curl_cv_ldap_LIBS" in
  18180. X-unknown)
  18181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  18182. $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  18183. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  18184. CURL_DISABLE_LDAP=1
  18185. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  18186. CURL_DISABLE_LDAPS=1
  18187. ;;
  18188. esac
  18189. fi
  18190. fi
  18191. if test x$CURL_DISABLE_LDAP != x1 ; then
  18192. if test "$LBERLIBNAME" ; then
  18193. if test "$LBERLIBNAME" != "no" ; then
  18194. as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  18196. $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
  18197. if eval \${$as_ac_Lib+:} false; then :
  18198. $as_echo_n "(cached) " >&6
  18199. else
  18200. ac_check_lib_save_LIBS=$LIBS
  18201. LIBS="-l"$LBERLIBNAME" $LIBS"
  18202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18203. /* end confdefs.h. */
  18204. #ifdef __cplusplus
  18205. extern "C"
  18206. #endif
  18207. char ber_free ();
  18208. int main (void)
  18209. {
  18210. return ber_free ();
  18211. ;
  18212. return 0;
  18213. }
  18214. _ACEOF
  18215. if ac_fn_c_try_link "$LINENO"; then :
  18216. eval "$as_ac_Lib=yes"
  18217. else
  18218. eval "$as_ac_Lib=no"
  18219. fi
  18220. rm -f core conftest.err conftest.$ac_objext \
  18221. conftest$ac_exeext conftest.$ac_ext
  18222. LIBS=$ac_check_lib_save_LIBS
  18223. fi
  18224. eval ac_res=\$$as_ac_Lib
  18225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18226. $as_echo "$ac_res" >&6; }
  18227. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18228. cat >>confdefs.h <<_ACEOF
  18229. #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  18230. _ACEOF
  18231. LIBS="-l"$LBERLIBNAME" $LIBS"
  18232. else
  18233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  18234. $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  18235. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  18236. CURL_DISABLE_LDAP=1
  18237. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  18238. CURL_DISABLE_LDAPS=1
  18239. fi
  18240. fi
  18241. fi
  18242. fi
  18243. if test x$CURL_DISABLE_LDAP != x1 ; then
  18244. for ac_func in ldap_url_parse ldap_init_fd
  18245. do :
  18246. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18247. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18248. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18249. cat >>confdefs.h <<_ACEOF
  18250. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18251. _ACEOF
  18252. fi
  18253. done
  18254. if test "$LDAPLIBNAME" = "wldap32"; then
  18255. curl_ldap_msg="enabled (winldap)"
  18256. $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
  18257. else
  18258. curl_ldap_msg="enabled (OpenLDAP)"
  18259. if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
  18260. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  18261. USE_OPENLDAP=1
  18262. fi
  18263. fi
  18264. fi
  18265. if test x$CURL_DISABLE_LDAPS != x1 ; then
  18266. curl_ldaps_msg="enabled"
  18267. fi
  18268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
  18269. $as_echo_n "checking whether to enable IPv6... " >&6; }
  18270. # Check whether --enable-ipv6 was given.
  18271. if test "${enable_ipv6+set}" = set; then :
  18272. enableval=$enable_ipv6; case "$enableval" in
  18273. no)
  18274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18275. $as_echo "no" >&6; }
  18276. ipv6=no
  18277. ;;
  18278. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18279. $as_echo "yes" >&6; }
  18280. ipv6=yes
  18281. ;;
  18282. esac
  18283. else
  18284. if test "$cross_compiling" = yes; then :
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18286. $as_echo "yes" >&6; }
  18287. ipv6=yes
  18288. else
  18289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18290. /* end confdefs.h. */
  18291. /* is AF_INET6 available? */
  18292. #include <sys/types.h>
  18293. #ifdef HAVE_WINSOCK2_H
  18294. #include <winsock2.h>
  18295. #else
  18296. #include <sys/socket.h>
  18297. #endif
  18298. #include <stdlib.h> /* for exit() */
  18299. main()
  18300. {
  18301. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  18302. exit(1);
  18303. else
  18304. exit(0);
  18305. }
  18306. _ACEOF
  18307. if ac_fn_c_try_run "$LINENO"; then :
  18308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18309. $as_echo "yes" >&6; }
  18310. ipv6=yes
  18311. else
  18312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18313. $as_echo "no" >&6; }
  18314. ipv6=no
  18315. fi
  18316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18317. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18318. fi
  18319. fi
  18320. if test "$ipv6" = "yes"; then
  18321. curl_ipv6_msg="enabled"
  18322. fi
  18323. # Check if struct sockaddr_in6 have sin6_scope_id member
  18324. if test "$ipv6" = yes; then
  18325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
  18326. $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
  18327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18328. /* end confdefs.h. */
  18329. #include <sys/types.h>
  18330. #ifdef HAVE_WINSOCK2_H
  18331. #include <winsock2.h>
  18332. #include <ws2tcpip.h>
  18333. #else
  18334. #include <netinet/in.h>
  18335. #if defined (__TANDEM)
  18336. # include <netinet/in6.h>
  18337. #endif
  18338. #endif
  18339. int main (void)
  18340. {
  18341. struct sockaddr_in6 s; s.sin6_scope_id = 0;
  18342. ;
  18343. return 0;
  18344. }
  18345. _ACEOF
  18346. if ac_fn_c_try_compile "$LINENO"; then :
  18347. have_sin6_scope_id=yes
  18348. fi
  18349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18350. if test "$have_sin6_scope_id" = yes; then
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18352. $as_echo "yes" >&6; }
  18353. $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  18354. else
  18355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18356. $as_echo "no" >&6; }
  18357. fi
  18358. fi
  18359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
  18360. $as_echo_n "checking if argv can be written to... " >&6; }
  18361. old=$LD_LIBRARY_PATH
  18362. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  18363. export LD_LIBRARY_PATH
  18364. if test "$cross_compiling" = yes; then :
  18365. curl_cv_writable_argv=cross
  18366. else
  18367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18368. /* end confdefs.h. */
  18369. int main(int argc, char ** argv) {
  18370. argv00 = ' ';
  18371. return (argv00 == ' ')?0:1;
  18372. }
  18373. _ACEOF
  18374. if ac_fn_c_try_run "$LINENO"; then :
  18375. curl_cv_writable_argv=yes
  18376. else
  18377. curl_cv_writable_argv=no
  18378. fi
  18379. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18380. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18381. fi
  18382. LD_LIBRARY_PATH=$old # restore
  18383. case $curl_cv_writable_argv in
  18384. yes)
  18385. $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
  18386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18387. $as_echo "yes" >&6; }
  18388. ;;
  18389. no)
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18391. $as_echo "no" >&6; }
  18392. ;;
  18393. *)
  18394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18395. $as_echo "no" >&6; }
  18396. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
  18397. $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  18398. ;;
  18399. esac
  18400. GSSAPI_ROOT="/usr"
  18401. # Check whether --with-gssapi-includes was given.
  18402. if test "${with_gssapi_includes+set}" = set; then :
  18403. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  18404. want_gss="yes"
  18405. fi
  18406. # Check whether --with-gssapi-libs was given.
  18407. if test "${with_gssapi_libs+set}" = set; then :
  18408. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  18409. want_gss="yes"
  18410. fi
  18411. # Check whether --with-gssapi was given.
  18412. if test "${with_gssapi+set}" = set; then :
  18413. withval=$with_gssapi;
  18414. GSSAPI_ROOT="$withval"
  18415. if test x"$GSSAPI_ROOT" != xno; then
  18416. want_gss="yes"
  18417. if test x"$GSSAPI_ROOT" = xyes; then
  18418. GSSAPI_ROOT="/usr"
  18419. fi
  18420. fi
  18421. fi
  18422. : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
  18423. save_CPPFLAGS="$CPPFLAGS"
  18424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
  18425. $as_echo_n "checking if GSS-API support is requested... " >&6; }
  18426. if test x"$want_gss" = xyes; then
  18427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18428. $as_echo "yes" >&6; }
  18429. if test -z "$GSSAPI_INCS"; then
  18430. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  18431. GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
  18432. elif test -f "$KRB5CONFIG"; then
  18433. GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
  18434. elif test "$GSSAPI_ROOT" != "yes"; then
  18435. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  18436. fi
  18437. fi
  18438. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  18439. ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
  18440. if test "x$ac_cv_header_gss_h" = xyes; then :
  18441. $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
  18442. gnu_gss=yes
  18443. else
  18444. for ac_header in gssapi/gssapi.h
  18445. do :
  18446. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
  18447. if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
  18448. cat >>confdefs.h <<_ACEOF
  18449. #define HAVE_GSSAPI_GSSAPI_H 1
  18450. _ACEOF
  18451. else
  18452. not_mit=1
  18453. fi
  18454. done
  18455. for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  18456. do :
  18457. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18458. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  18459. $ac_includes_default
  18460. #ifdef HAVE_GSSAPI_GSSAPI_H
  18461. #include <gssapi/gssapi.h>
  18462. #endif
  18463. "
  18464. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18465. cat >>confdefs.h <<_ACEOF
  18466. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18467. _ACEOF
  18468. else
  18469. not_mit=1
  18470. fi
  18471. done
  18472. if test "x$not_mit" = "x1"; then
  18473. ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
  18474. if test "x$ac_cv_header_gssapi_h" = xyes; then :
  18475. $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
  18476. else
  18477. want_gss=no
  18478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
  18479. $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
  18480. fi
  18481. else
  18482. $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
  18483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  18484. $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
  18485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18486. /* end confdefs.h. */
  18487. #include <gssapi/gssapi.h>
  18488. #include <gssapi/gssapi_generic.h>
  18489. #include <gssapi/gssapi_krb5.h>
  18490. int main (void)
  18491. {
  18492. gss_import_name(
  18493. (OM_uint32 *)0,
  18494. (gss_buffer_t)0,
  18495. GSS_C_NT_HOSTBASED_SERVICE,
  18496. (gss_name_t *)0);
  18497. ;
  18498. return 0;
  18499. }
  18500. _ACEOF
  18501. if ac_fn_c_try_compile "$LINENO"; then :
  18502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18503. $as_echo "yes" >&6; }
  18504. else
  18505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18506. $as_echo "no" >&6; }
  18507. $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
  18508. fi
  18509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18510. fi
  18511. fi
  18512. else
  18513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18514. $as_echo "no" >&6; }
  18515. fi
  18516. if test x"$want_gss" = xyes; then
  18517. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  18518. HAVE_GSSAPI=1
  18519. curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
  18520. if test -n "$gnu_gss"; then
  18521. curl_gss_msg="enabled (GNU GSS)"
  18522. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  18523. LIBS="-lgss $LIBS"
  18524. elif test -z "$GSSAPI_LIB_DIR"; then
  18525. case $host in
  18526. *-*-darwin*)
  18527. LIBS="-lgssapi_krb5 -lresolv $LIBS"
  18528. ;;
  18529. *)
  18530. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  18531. gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
  18532. LIBS="$gss_libs $LIBS"
  18533. elif test -f "$KRB5CONFIG"; then
  18534. gss_libs=`$KRB5CONFIG --libs gssapi`
  18535. LIBS="$gss_libs $LIBS"
  18536. else
  18537. case $host in
  18538. *-hp-hpux*)
  18539. gss_libname="gss"
  18540. ;;
  18541. *)
  18542. gss_libname="gssapi"
  18543. ;;
  18544. esac
  18545. if test "$GSSAPI_ROOT" != "yes"; then
  18546. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  18547. LIBS="-l$gss_libname $LIBS"
  18548. else
  18549. LIBS="-l$gss_libname $LIBS"
  18550. fi
  18551. fi
  18552. ;;
  18553. esac
  18554. else
  18555. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  18556. case $host in
  18557. *-hp-hpux*)
  18558. LIBS="-lgss $LIBS"
  18559. ;;
  18560. *)
  18561. LIBS="-lgssapi $LIBS"
  18562. ;;
  18563. esac
  18564. fi
  18565. else
  18566. CPPFLAGS="$save_CPPFLAGS"
  18567. fi
  18568. build_libstubgss=no
  18569. if test x"$want_gss" = "xyes"; then
  18570. build_libstubgss=yes
  18571. fi
  18572. if test "x$build_libstubgss" = "xyes"; then
  18573. BUILD_STUB_GSS_TRUE=
  18574. BUILD_STUB_GSS_FALSE='#'
  18575. else
  18576. BUILD_STUB_GSS_TRUE='#'
  18577. BUILD_STUB_GSS_FALSE=
  18578. fi
  18579. DEFAULT_SSL_BACKEND=no
  18580. VALID_DEFAULT_SSL_BACKEND=
  18581. # Check whether --with-default-ssl-backend was given.
  18582. if test "${with_default_ssl_backend+set}" = set; then :
  18583. withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
  18584. fi
  18585. case "$DEFAULT_SSL_BACKEND" in
  18586. no)
  18587. ;;
  18588. default|yes)
  18589. as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
  18590. ;;
  18591. *)
  18592. VALID_DEFAULT_SSL_BACKEND=no
  18593. ;;
  18594. esac
  18595. OPT_WINSSL=no
  18596. # Check whether --with-winssl was given.
  18597. if test "${with_winssl+set}" = set; then :
  18598. withval=$with_winssl; OPT_WINSSL=$withval
  18599. fi
  18600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
  18601. $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
  18602. if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
  18603. ssl_msg=
  18604. if test "x$OPT_WINSSL" != "xno" &&
  18605. test "x$curl_cv_native_windows" = "xyes"; then
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18607. $as_echo "yes" >&6; }
  18608. $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
  18609. USE_SCHANNEL=1
  18610. ssl_msg="Windows-native"
  18611. test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  18612. WINSSL_ENABLED=1
  18613. # --with-winssl implies --enable-sspi
  18614. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  18615. USE_WINDOWS_SSPI=1
  18616. curl_sspi_msg="enabled"
  18617. LIBS="-lcrypt32 $LIBS"
  18618. else
  18619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18620. $as_echo "no" >&6; }
  18621. fi
  18622. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  18623. else
  18624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18625. $as_echo "no" >&6; }
  18626. fi
  18627. OPT_DARWINSSL=no
  18628. # Check whether --with-darwinssl was given.
  18629. if test "${with_darwinssl+set}" = set; then :
  18630. withval=$with_darwinssl; OPT_DARWINSSL=$withval
  18631. fi
  18632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
  18633. $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
  18634. if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
  18635. if test "x$OPT_DARWINSSL" != "xno" &&
  18636. test -d "/System/Library/Frameworks/Security.framework"; then
  18637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18638. $as_echo "yes" >&6; }
  18639. $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
  18640. USE_DARWINSSL=1
  18641. ssl_msg="Apple OS-native"
  18642. test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  18643. DARWINSSL_ENABLED=1
  18644. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
  18645. else
  18646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18647. $as_echo "no" >&6; }
  18648. fi
  18649. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  18650. else
  18651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18652. $as_echo "no" >&6; }
  18653. fi
  18654. OPT_SSL=off
  18655. ca="no"
  18656. # Check whether --with-ssl was given.
  18657. if test "${with_ssl+set}" = set; then :
  18658. withval=$with_ssl; OPT_SSL=$withval
  18659. fi
  18660. if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
  18661. test X"$OPT_SSL" != Xno; then
  18662. ssl_msg=
  18663. CLEANLDFLAGS="$LDFLAGS"
  18664. CLEANCPPFLAGS="$CPPFLAGS"
  18665. CLEANLIBS="$LIBS"
  18666. case $host in
  18667. *-*-msys* | *-*-mingw*)
  18668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
  18669. $as_echo_n "checking for gdi32... " >&6; }
  18670. my_ac_save_LIBS=$LIBS
  18671. LIBS="-lgdi32 $LIBS"
  18672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18673. /* end confdefs.h. */
  18674. #include <windef.h>
  18675. #include <wingdi.h>
  18676. int main (void)
  18677. {
  18678. GdiFlush();
  18679. ;
  18680. return 0;
  18681. }
  18682. _ACEOF
  18683. if ac_fn_c_try_link "$LINENO"; then :
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18685. $as_echo "yes" >&6; }
  18686. else
  18687. LIBS=$my_ac_save_LIBS
  18688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18689. $as_echo "no" >&6; }
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. ;;
  18694. esac
  18695. case "$OPT_SSL" in
  18696. yes)
  18697. if test x$cross_compiling != xyes; then
  18698. PKGTEST="yes"
  18699. fi
  18700. PREFIX_OPENSSL=/usr/local/ssl
  18701. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  18702. ;;
  18703. off)
  18704. if test x$cross_compiling != xyes; then
  18705. PKGTEST="yes"
  18706. fi
  18707. PREFIX_OPENSSL=
  18708. ;;
  18709. *)
  18710. PKGTEST="no"
  18711. PREFIX_OPENSSL=$OPT_SSL
  18712. OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
  18713. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  18714. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  18715. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  18716. PKGTEST="yes"
  18717. elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
  18718. as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
  18719. fi
  18720. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  18721. if test "$PREFIX_OPENSSL" != "/usr" ; then
  18722. SSL_LDFLAGS="-L$LIB_OPENSSL"
  18723. SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
  18724. fi
  18725. SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
  18726. ;;
  18727. esac
  18728. if test "$PKGTEST" = "yes"; then
  18729. if test -n "$PKG_CONFIG"; then
  18730. PKGCONFIG="$PKG_CONFIG"
  18731. else
  18732. if test -n "$ac_tool_prefix"; then
  18733. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18734. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18736. $as_echo_n "checking for $ac_word... " >&6; }
  18737. if ${ac_cv_path_PKGCONFIG+:} false; then :
  18738. $as_echo_n "(cached) " >&6
  18739. else
  18740. case $PKGCONFIG in
  18741. [\\/]* | ?:[\\/]*)
  18742. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  18743. ;;
  18744. *)
  18745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18746. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18747. for as_dir in $as_dummy
  18748. do
  18749. IFS=$as_save_IFS
  18750. test -z "$as_dir" && as_dir=.
  18751. for ac_exec_ext in '' $ac_executable_extensions; do
  18752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18753. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18755. break 2
  18756. fi
  18757. done
  18758. done
  18759. IFS=$as_save_IFS
  18760. ;;
  18761. esac
  18762. fi
  18763. PKGCONFIG=$ac_cv_path_PKGCONFIG
  18764. if test -n "$PKGCONFIG"; then
  18765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  18766. $as_echo "$PKGCONFIG" >&6; }
  18767. else
  18768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18769. $as_echo "no" >&6; }
  18770. fi
  18771. fi
  18772. if test -z "$ac_cv_path_PKGCONFIG"; then
  18773. ac_pt_PKGCONFIG=$PKGCONFIG
  18774. # Extract the first word of "pkg-config", so it can be a program name with args.
  18775. set dummy pkg-config; ac_word=$2
  18776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18777. $as_echo_n "checking for $ac_word... " >&6; }
  18778. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  18779. $as_echo_n "(cached) " >&6
  18780. else
  18781. case $ac_pt_PKGCONFIG in
  18782. [\\/]* | ?:[\\/]*)
  18783. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  18784. ;;
  18785. *)
  18786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18787. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18788. for as_dir in $as_dummy
  18789. do
  18790. IFS=$as_save_IFS
  18791. test -z "$as_dir" && as_dir=.
  18792. for ac_exec_ext in '' $ac_executable_extensions; do
  18793. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18794. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18796. break 2
  18797. fi
  18798. done
  18799. done
  18800. IFS=$as_save_IFS
  18801. ;;
  18802. esac
  18803. fi
  18804. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  18805. if test -n "$ac_pt_PKGCONFIG"; then
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  18807. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  18808. else
  18809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18810. $as_echo "no" >&6; }
  18811. fi
  18812. if test "x$ac_pt_PKGCONFIG" = x; then
  18813. PKGCONFIG="no"
  18814. else
  18815. case $cross_compiling:$ac_tool_warned in
  18816. yes:)
  18817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18819. ac_tool_warned=yes ;;
  18820. esac
  18821. PKGCONFIG=$ac_pt_PKGCONFIG
  18822. fi
  18823. else
  18824. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  18825. fi
  18826. fi
  18827. if test "x$PKGCONFIG" != "xno"; then
  18828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
  18829. $as_echo_n "checking for openssl options with pkg-config... " >&6; }
  18830. itexists=`
  18831. if test -n "$OPENSSL_PCDIR"; then
  18832. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18833. export PKG_CONFIG_LIBDIR
  18834. fi
  18835. $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
  18836. if test -z "$itexists"; then
  18837. PKGCONFIG="no"
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18839. $as_echo "no" >&6; }
  18840. else
  18841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  18842. $as_echo "found" >&6; }
  18843. fi
  18844. fi
  18845. if test "$PKGCONFIG" != "no" ; then
  18846. SSL_LIBS=`
  18847. if test -n "$OPENSSL_PCDIR"; then
  18848. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18849. export PKG_CONFIG_LIBDIR
  18850. fi
  18851. $PKGCONFIG --libs-only-l openssl 2>/dev/null`
  18852. SSL_LDFLAGS=`
  18853. if test -n "$OPENSSL_PCDIR"; then
  18854. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18855. export PKG_CONFIG_LIBDIR
  18856. fi
  18857. $PKGCONFIG --libs-only-L openssl 2>/dev/null`
  18858. SSL_CPPFLAGS=`
  18859. if test -n "$OPENSSL_PCDIR"; then
  18860. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  18861. export PKG_CONFIG_LIBDIR
  18862. fi
  18863. $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
  18865. $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
  18866. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
  18867. $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
  18868. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
  18869. $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
  18870. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
  18871. LIBS="$SSL_LIBS $LIBS"
  18872. fi
  18873. fi
  18874. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  18875. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  18876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
  18877. $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
  18878. if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
  18879. $as_echo_n "(cached) " >&6
  18880. else
  18881. ac_check_lib_save_LIBS=$LIBS
  18882. LIBS="-lcrypto $LIBS"
  18883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18884. /* end confdefs.h. */
  18885. #ifdef __cplusplus
  18886. extern "C"
  18887. #endif
  18888. char HMAC_Update ();
  18889. int main (void)
  18890. {
  18891. return HMAC_Update ();
  18892. ;
  18893. return 0;
  18894. }
  18895. _ACEOF
  18896. if ac_fn_c_try_link "$LINENO"; then :
  18897. ac_cv_lib_crypto_HMAC_Update=yes
  18898. else
  18899. ac_cv_lib_crypto_HMAC_Update=no
  18900. fi
  18901. rm -f core conftest.err conftest.$ac_objext \
  18902. conftest$ac_exeext conftest.$ac_ext
  18903. LIBS=$ac_check_lib_save_LIBS
  18904. fi
  18905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
  18906. $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
  18907. if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
  18908. HAVECRYPTO="yes"
  18909. LIBS="-lcrypto $LIBS"
  18910. else
  18911. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  18912. if test "$PKGCONFIG" = "no" ; then
  18913. # only set this if pkg-config wasn't used
  18914. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  18915. fi
  18916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
  18917. $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
  18918. if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
  18919. $as_echo_n "(cached) " >&6
  18920. else
  18921. ac_check_lib_save_LIBS=$LIBS
  18922. LIBS="-lcrypto $LIBS"
  18923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18924. /* end confdefs.h. */
  18925. #ifdef __cplusplus
  18926. extern "C"
  18927. #endif
  18928. char HMAC_Init_ex ();
  18929. int main (void)
  18930. {
  18931. return HMAC_Init_ex ();
  18932. ;
  18933. return 0;
  18934. }
  18935. _ACEOF
  18936. if ac_fn_c_try_link "$LINENO"; then :
  18937. ac_cv_lib_crypto_HMAC_Init_ex=yes
  18938. else
  18939. ac_cv_lib_crypto_HMAC_Init_ex=no
  18940. fi
  18941. rm -f core conftest.err conftest.$ac_objext \
  18942. conftest$ac_exeext conftest.$ac_ext
  18943. LIBS=$ac_check_lib_save_LIBS
  18944. fi
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
  18946. $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
  18947. if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
  18948. HAVECRYPTO="yes"
  18949. LIBS="-lcrypto $LIBS"
  18950. else
  18951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
  18952. $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
  18953. LIBS="$CLEANLIBS -lcrypto -ldl"
  18954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18955. /* end confdefs.h. */
  18956. #include <openssl/err.h>
  18957. int main (void)
  18958. {
  18959. ERR_clear_error();
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. if ac_fn_c_try_link "$LINENO"; then :
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18966. $as_echo "yes" >&6; }
  18967. HAVECRYPTO="yes"
  18968. else
  18969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18970. $as_echo "no" >&6; }
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
  18972. $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
  18973. LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
  18974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18975. /* end confdefs.h. */
  18976. #include <openssl/err.h>
  18977. int main (void)
  18978. {
  18979. ERR_clear_error();
  18980. ;
  18981. return 0;
  18982. }
  18983. _ACEOF
  18984. if ac_fn_c_try_link "$LINENO"; then :
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18986. $as_echo "yes" >&6; }
  18987. HAVECRYPTO="yes"
  18988. else
  18989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18990. $as_echo "no" >&6; }
  18991. LDFLAGS="$CLEANLDFLAGS"
  18992. CPPFLAGS="$CLEANCPPFLAGS"
  18993. LIBS="$CLEANLIBS"
  18994. fi
  18995. rm -f core conftest.err conftest.$ac_objext \
  18996. conftest$ac_exeext conftest.$ac_ext
  18997. fi
  18998. rm -f core conftest.err conftest.$ac_objext \
  18999. conftest$ac_exeext conftest.$ac_ext
  19000. fi
  19001. fi
  19002. if test X"$HAVECRYPTO" = X"yes"; then
  19003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  19004. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  19005. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  19006. $as_echo_n "(cached) " >&6
  19007. else
  19008. ac_check_lib_save_LIBS=$LIBS
  19009. LIBS="-lssl $LIBS"
  19010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19011. /* end confdefs.h. */
  19012. #ifdef __cplusplus
  19013. extern "C"
  19014. #endif
  19015. char SSL_connect ();
  19016. int main (void)
  19017. {
  19018. return SSL_connect ();
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. if ac_fn_c_try_link "$LINENO"; then :
  19024. ac_cv_lib_ssl_SSL_connect=yes
  19025. else
  19026. ac_cv_lib_ssl_SSL_connect=no
  19027. fi
  19028. rm -f core conftest.err conftest.$ac_objext \
  19029. conftest$ac_exeext conftest.$ac_ext
  19030. LIBS=$ac_check_lib_save_LIBS
  19031. fi
  19032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  19033. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  19034. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  19035. cat >>confdefs.h <<_ACEOF
  19036. #define HAVE_LIBSSL 1
  19037. _ACEOF
  19038. LIBS="-lssl $LIBS"
  19039. fi
  19040. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
  19042. $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
  19043. OLIBS=$LIBS
  19044. LIBS="-lRSAglue -lrsaref $LIBS"
  19045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  19046. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  19047. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  19048. $as_echo_n "(cached) " >&6
  19049. else
  19050. ac_check_lib_save_LIBS=$LIBS
  19051. LIBS="-lssl $LIBS"
  19052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19053. /* end confdefs.h. */
  19054. #ifdef __cplusplus
  19055. extern "C"
  19056. #endif
  19057. char SSL_connect ();
  19058. int main (void)
  19059. {
  19060. return SSL_connect ();
  19061. ;
  19062. return 0;
  19063. }
  19064. _ACEOF
  19065. if ac_fn_c_try_link "$LINENO"; then :
  19066. ac_cv_lib_ssl_SSL_connect=yes
  19067. else
  19068. ac_cv_lib_ssl_SSL_connect=no
  19069. fi
  19070. rm -f core conftest.err conftest.$ac_objext \
  19071. conftest$ac_exeext conftest.$ac_ext
  19072. LIBS=$ac_check_lib_save_LIBS
  19073. fi
  19074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  19075. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  19076. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  19077. cat >>confdefs.h <<_ACEOF
  19078. #define HAVE_LIBSSL 1
  19079. _ACEOF
  19080. LIBS="-lssl $LIBS"
  19081. fi
  19082. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19084. $as_echo "no" >&6; }
  19085. LIBS=$OLIBS
  19086. else
  19087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19088. $as_echo "yes" >&6; }
  19089. fi
  19090. else
  19091. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
  19092. openssl/pem.h openssl/ssl.h openssl/err.h
  19093. do :
  19094. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19095. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19096. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19097. cat >>confdefs.h <<_ACEOF
  19098. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19099. _ACEOF
  19100. ssl_msg="OpenSSL"
  19101. test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  19102. OPENSSL_ENABLED=1
  19103. $as_echo "#define USE_OPENSSL 1" >>confdefs.h
  19104. fi
  19105. done
  19106. if test $ac_cv_header_openssl_x509_h = no; then
  19107. for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
  19108. do :
  19109. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19110. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  19111. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  19112. cat >>confdefs.h <<_ACEOF
  19113. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19114. _ACEOF
  19115. fi
  19116. done
  19117. if test $ac_cv_header_x509_h = yes &&
  19118. test $ac_cv_header_crypto_h = yes &&
  19119. test $ac_cv_header_ssl_h = yes; then
  19120. ssl_msg="OpenSSL"
  19121. OPENSSL_ENABLED=1
  19122. fi
  19123. fi
  19124. fi
  19125. if test X"$OPENSSL_ENABLED" != X"1"; then
  19126. LIBS="$CLEANLIBS"
  19127. fi
  19128. if test X"$OPT_SSL" != Xoff &&
  19129. test "$OPENSSL_ENABLED" != "1"; then
  19130. as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  19131. fi
  19132. fi
  19133. if test X"$OPENSSL_ENABLED" = X"1"; then
  19134. for ac_func in RAND_egd \
  19135. ENGINE_cleanup \
  19136. SSL_get_shutdown \
  19137. SSLv2_client_method
  19138. do :
  19139. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19140. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19141. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19142. cat >>confdefs.h <<_ACEOF
  19143. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19144. _ACEOF
  19145. fi
  19146. done
  19147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
  19148. $as_echo_n "checking for BoringSSL... " >&6; }
  19149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19150. /* end confdefs.h. */
  19151. #include <openssl/base.h>
  19152. int main (void)
  19153. {
  19154. #ifndef OPENSSL_IS_BORINGSSL
  19155. #error not boringssl
  19156. #endif
  19157. ;
  19158. return 0;
  19159. }
  19160. _ACEOF
  19161. if ac_fn_c_try_compile "$LINENO"; then :
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19163. $as_echo "yes" >&6; }
  19164. cat >>confdefs.h <<_ACEOF
  19165. #define HAVE_BORINGSSL 1
  19166. _ACEOF
  19167. ssl_msg="BoringSSL"
  19168. else
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19170. $as_echo "no" >&6; }
  19171. fi
  19172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
  19174. $as_echo_n "checking for libressl... " >&6; }
  19175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19176. /* end confdefs.h. */
  19177. #include <openssl/opensslv.h>
  19178. int main (void)
  19179. {
  19180. int dummy = LIBRESSL_VERSION_NUMBER;
  19181. ;
  19182. return 0;
  19183. }
  19184. _ACEOF
  19185. if ac_fn_c_try_compile "$LINENO"; then :
  19186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19187. $as_echo "yes" >&6; }
  19188. cat >>confdefs.h <<_ACEOF
  19189. #define HAVE_LIBRESSL 1
  19190. _ACEOF
  19191. ssl_msg="libressl"
  19192. else
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19194. $as_echo "no" >&6; }
  19195. fi
  19196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19197. fi
  19198. if test "$OPENSSL_ENABLED" = "1"; then
  19199. if test -n "$LIB_OPENSSL"; then
  19200. if test "x$cross_compiling" != "xyes"; then
  19201. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
  19202. export CURL_LIBRARY_PATH
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
  19204. $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
  19205. fi
  19206. fi
  19207. #
  19208. #
  19209. tst_api="unknown"
  19210. #
  19211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
  19212. $as_echo_n "checking for OpenSSL headers version... " >&6; }
  19213. OLDCPPFLAGS=$CPPFLAGS
  19214. # CPPPFLAG comes from CURL_CPP_P
  19215. CPPFLAGS="$CPPFLAGS $CPPPFLAG"
  19216. if test -z "$SED"; then
  19217. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  19218. fi
  19219. if test -z "$GREP"; then
  19220. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  19221. fi
  19222. tmp_exp=""
  19223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19224. /* end confdefs.h. */
  19225. # ifdef USE_OPENSSL
  19226. # include <openssl/crypto.h>
  19227. # else
  19228. # include <crypto.h>
  19229. # endif
  19230. #ifdef OPENSSL_VERSION_NUMBER
  19231. CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
  19232. #endif
  19233. _ACEOF
  19234. if ac_fn_c_try_cpp "$LINENO"; then :
  19235. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  19236. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  19237. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  19238. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  19239. if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
  19240. tmp_exp=""
  19241. fi
  19242. fi
  19243. rm -f conftest.err conftest.i conftest.$ac_ext
  19244. if test -z "$tmp_exp"; then
  19245. curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
  19246. else
  19247. curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
  19248. curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
  19249. fi
  19250. CPPFLAGS=$OLDCPPFLAGS
  19251. if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
  19252. tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
  19253. case "x$tst_verlen" in
  19254. x6)
  19255. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  19256. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
  19257. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  19258. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  19259. ;;
  19260. x11|x10)
  19261. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  19262. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  19263. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
  19264. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  19265. ;;
  19266. *)
  19267. tst_api="unknown"
  19268. ;;
  19269. esac
  19270. case $tst_api in
  19271. 0x111) tst_show="1.1.1" ;;
  19272. 0x110) tst_show="1.1.0" ;;
  19273. 0x102) tst_show="1.0.2" ;;
  19274. 0x101) tst_show="1.0.1" ;;
  19275. 0x100) tst_show="1.0.0" ;;
  19276. 0x099) tst_show="0.9.9" ;;
  19277. 0x098) tst_show="0.9.8" ;;
  19278. 0x097) tst_show="0.9.7" ;;
  19279. 0x096) tst_show="0.9.6" ;;
  19280. 0x095) tst_show="0.9.5" ;;
  19281. 0x094) tst_show="0.9.4" ;;
  19282. 0x093) tst_show="0.9.3" ;;
  19283. 0x092) tst_show="0.9.2" ;;
  19284. 0x091) tst_show="0.9.1" ;;
  19285. *) tst_show="unknown" ;;
  19286. esac
  19287. tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
  19288. else
  19289. tst_show="unknown"
  19290. fi
  19291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  19292. $as_echo "$tst_show" >&6; }
  19293. #
  19294. curl_openssl_api_headers=$tst_api
  19295. #
  19296. tst_api="unknown"
  19297. #
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
  19299. $as_echo_n "checking for OpenSSL library version... " >&6; }
  19300. if test "$tst_api" = "unknown"; then
  19301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19302. /* end confdefs.h. */
  19303. #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
  19304. #ifdef __STDC__
  19305. # include <limits.h>
  19306. #else
  19307. # include <assert.h>
  19308. #endif
  19309. #undef ERR_clear_last_mark
  19310. #ifdef __cplusplus
  19311. extern "C"
  19312. #endif
  19313. char ERR_clear_last_mark ();
  19314. #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
  19315. choke me
  19316. #endif
  19317. int main (void)
  19318. {
  19319. return ERR_clear_last_mark ();
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_link "$LINENO"; then :
  19325. tst_api="0x111"
  19326. fi
  19327. rm -f core conftest.err conftest.$ac_objext \
  19328. conftest$ac_exeext conftest.$ac_ext
  19329. fi
  19330. if test "$tst_api" = "unknown"; then
  19331. case $host in
  19332. *-*-vms*)
  19333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19334. /* end confdefs.h. */
  19335. #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
  19336. #ifdef __STDC__
  19337. # include <limits.h>
  19338. #else
  19339. # include <assert.h>
  19340. #endif
  19341. #undef SSL_CTX_set_not_resumbl_sess_cb
  19342. #ifdef __cplusplus
  19343. extern "C"
  19344. #endif
  19345. char SSL_CTX_set_not_resumbl_sess_cb ();
  19346. #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
  19347. choke me
  19348. #endif
  19349. int main (void)
  19350. {
  19351. return SSL_CTX_set_not_resumbl_sess_cb ();
  19352. ;
  19353. return 0;
  19354. }
  19355. _ACEOF
  19356. if ac_fn_c_try_link "$LINENO"; then :
  19357. tst_api="0x110"
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext \
  19360. conftest$ac_exeext conftest.$ac_ext
  19361. ;;
  19362. *)
  19363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19364. /* end confdefs.h. */
  19365. #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
  19366. #ifdef __STDC__
  19367. # include <limits.h>
  19368. #else
  19369. # include <assert.h>
  19370. #endif
  19371. #undef SSL_CTX_set_not_resumable_session_callback
  19372. #ifdef __cplusplus
  19373. extern "C"
  19374. #endif
  19375. char SSL_CTX_set_not_resumable_session_callback ();
  19376. #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
  19377. choke me
  19378. #endif
  19379. int main (void)
  19380. {
  19381. return SSL_CTX_set_not_resumable_session_callback ();
  19382. ;
  19383. return 0;
  19384. }
  19385. _ACEOF
  19386. if ac_fn_c_try_link "$LINENO"; then :
  19387. tst_api="0x110"
  19388. fi
  19389. rm -f core conftest.err conftest.$ac_objext \
  19390. conftest$ac_exeext conftest.$ac_ext
  19391. ;;
  19392. esac
  19393. fi
  19394. if test "$tst_api" = "unknown"; then
  19395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19396. /* end confdefs.h. */
  19397. #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
  19398. #ifdef __STDC__
  19399. # include <limits.h>
  19400. #else
  19401. # include <assert.h>
  19402. #endif
  19403. #undef SSL_CONF_CTX_new
  19404. #ifdef __cplusplus
  19405. extern "C"
  19406. #endif
  19407. char SSL_CONF_CTX_new ();
  19408. #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
  19409. choke me
  19410. #endif
  19411. int main (void)
  19412. {
  19413. return SSL_CONF_CTX_new ();
  19414. ;
  19415. return 0;
  19416. }
  19417. _ACEOF
  19418. if ac_fn_c_try_link "$LINENO"; then :
  19419. tst_api="0x102"
  19420. fi
  19421. rm -f core conftest.err conftest.$ac_objext \
  19422. conftest$ac_exeext conftest.$ac_ext
  19423. fi
  19424. if test "$tst_api" = "unknown"; then
  19425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19426. /* end confdefs.h. */
  19427. #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
  19428. #ifdef __STDC__
  19429. # include <limits.h>
  19430. #else
  19431. # include <assert.h>
  19432. #endif
  19433. #undef SSL_renegotiate_abbreviated
  19434. #ifdef __cplusplus
  19435. extern "C"
  19436. #endif
  19437. char SSL_renegotiate_abbreviated ();
  19438. #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
  19439. choke me
  19440. #endif
  19441. int main (void)
  19442. {
  19443. return SSL_renegotiate_abbreviated ();
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. if ac_fn_c_try_link "$LINENO"; then :
  19449. tst_api="0x101"
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext \
  19452. conftest$ac_exeext conftest.$ac_ext
  19453. fi
  19454. if test "$tst_api" = "unknown"; then
  19455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19456. /* end confdefs.h. */
  19457. #define OBJ_add_sigid innocuous_OBJ_add_sigid
  19458. #ifdef __STDC__
  19459. # include <limits.h>
  19460. #else
  19461. # include <assert.h>
  19462. #endif
  19463. #undef OBJ_add_sigid
  19464. #ifdef __cplusplus
  19465. extern "C"
  19466. #endif
  19467. char OBJ_add_sigid ();
  19468. #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
  19469. choke me
  19470. #endif
  19471. int main (void)
  19472. {
  19473. return OBJ_add_sigid ();
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_link "$LINENO"; then :
  19479. tst_api="0x100"
  19480. fi
  19481. rm -f core conftest.err conftest.$ac_objext \
  19482. conftest$ac_exeext conftest.$ac_ext
  19483. fi
  19484. if test "$tst_api" = "unknown"; then
  19485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19486. /* end confdefs.h. */
  19487. #define ERR_set_mark innocuous_ERR_set_mark
  19488. #ifdef __STDC__
  19489. # include <limits.h>
  19490. #else
  19491. # include <assert.h>
  19492. #endif
  19493. #undef ERR_set_mark
  19494. #ifdef __cplusplus
  19495. extern "C"
  19496. #endif
  19497. char ERR_set_mark ();
  19498. #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
  19499. choke me
  19500. #endif
  19501. int main (void)
  19502. {
  19503. return ERR_set_mark ();
  19504. ;
  19505. return 0;
  19506. }
  19507. _ACEOF
  19508. if ac_fn_c_try_link "$LINENO"; then :
  19509. tst_api="0x098"
  19510. fi
  19511. rm -f core conftest.err conftest.$ac_objext \
  19512. conftest$ac_exeext conftest.$ac_ext
  19513. fi
  19514. if test "$tst_api" = "unknown"; then
  19515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19516. /* end confdefs.h. */
  19517. #define ERR_peek_last_error innocuous_ERR_peek_last_error
  19518. #ifdef __STDC__
  19519. # include <limits.h>
  19520. #else
  19521. # include <assert.h>
  19522. #endif
  19523. #undef ERR_peek_last_error
  19524. #ifdef __cplusplus
  19525. extern "C"
  19526. #endif
  19527. char ERR_peek_last_error ();
  19528. #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
  19529. choke me
  19530. #endif
  19531. int main (void)
  19532. {
  19533. return ERR_peek_last_error ();
  19534. ;
  19535. return 0;
  19536. }
  19537. _ACEOF
  19538. if ac_fn_c_try_link "$LINENO"; then :
  19539. tst_api="0x097"
  19540. fi
  19541. rm -f core conftest.err conftest.$ac_objext \
  19542. conftest$ac_exeext conftest.$ac_ext
  19543. fi
  19544. if test "$tst_api" = "unknown"; then
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
  19548. #ifdef __STDC__
  19549. # include <limits.h>
  19550. #else
  19551. # include <assert.h>
  19552. #endif
  19553. #undef c2i_ASN1_OBJECT
  19554. #ifdef __cplusplus
  19555. extern "C"
  19556. #endif
  19557. char c2i_ASN1_OBJECT ();
  19558. #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
  19559. choke me
  19560. #endif
  19561. int main (void)
  19562. {
  19563. return c2i_ASN1_OBJECT ();
  19564. ;
  19565. return 0;
  19566. }
  19567. _ACEOF
  19568. if ac_fn_c_try_link "$LINENO"; then :
  19569. tst_api="0x096"
  19570. fi
  19571. rm -f core conftest.err conftest.$ac_objext \
  19572. conftest$ac_exeext conftest.$ac_ext
  19573. fi
  19574. if test "$tst_api" = "unknown"; then
  19575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19576. /* end confdefs.h. */
  19577. #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
  19578. #ifdef __STDC__
  19579. # include <limits.h>
  19580. #else
  19581. # include <assert.h>
  19582. #endif
  19583. #undef SSL_CTX_set_purpose
  19584. #ifdef __cplusplus
  19585. extern "C"
  19586. #endif
  19587. char SSL_CTX_set_purpose ();
  19588. #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
  19589. choke me
  19590. #endif
  19591. int main (void)
  19592. {
  19593. return SSL_CTX_set_purpose ();
  19594. ;
  19595. return 0;
  19596. }
  19597. _ACEOF
  19598. if ac_fn_c_try_link "$LINENO"; then :
  19599. tst_api="0x095"
  19600. fi
  19601. rm -f core conftest.err conftest.$ac_objext \
  19602. conftest$ac_exeext conftest.$ac_ext
  19603. fi
  19604. if test "$tst_api" = "unknown"; then
  19605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19606. /* end confdefs.h. */
  19607. #define OBJ_obj2txt innocuous_OBJ_obj2txt
  19608. #ifdef __STDC__
  19609. # include <limits.h>
  19610. #else
  19611. # include <assert.h>
  19612. #endif
  19613. #undef OBJ_obj2txt
  19614. #ifdef __cplusplus
  19615. extern "C"
  19616. #endif
  19617. char OBJ_obj2txt ();
  19618. #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
  19619. choke me
  19620. #endif
  19621. int main (void)
  19622. {
  19623. return OBJ_obj2txt ();
  19624. ;
  19625. return 0;
  19626. }
  19627. _ACEOF
  19628. if ac_fn_c_try_link "$LINENO"; then :
  19629. tst_api="0x094"
  19630. fi
  19631. rm -f core conftest.err conftest.$ac_objext \
  19632. conftest$ac_exeext conftest.$ac_ext
  19633. fi
  19634. if test "$tst_api" = "unknown"; then
  19635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19636. /* end confdefs.h. */
  19637. #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
  19638. #ifdef __STDC__
  19639. # include <limits.h>
  19640. #else
  19641. # include <assert.h>
  19642. #endif
  19643. #undef SSL_get_verify_depth
  19644. #ifdef __cplusplus
  19645. extern "C"
  19646. #endif
  19647. char SSL_get_verify_depth ();
  19648. #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
  19649. choke me
  19650. #endif
  19651. int main (void)
  19652. {
  19653. return SSL_get_verify_depth ();
  19654. ;
  19655. return 0;
  19656. }
  19657. _ACEOF
  19658. if ac_fn_c_try_link "$LINENO"; then :
  19659. tst_api="0x093"
  19660. fi
  19661. rm -f core conftest.err conftest.$ac_objext \
  19662. conftest$ac_exeext conftest.$ac_ext
  19663. fi
  19664. if test "$tst_api" = "unknown"; then
  19665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19666. /* end confdefs.h. */
  19667. #define SSL_library_init innocuous_SSL_library_init
  19668. #ifdef __STDC__
  19669. # include <limits.h>
  19670. #else
  19671. # include <assert.h>
  19672. #endif
  19673. #undef SSL_library_init
  19674. #ifdef __cplusplus
  19675. extern "C"
  19676. #endif
  19677. char SSL_library_init ();
  19678. #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
  19679. choke me
  19680. #endif
  19681. int main (void)
  19682. {
  19683. return SSL_library_init ();
  19684. ;
  19685. return 0;
  19686. }
  19687. _ACEOF
  19688. if ac_fn_c_try_link "$LINENO"; then :
  19689. tst_api="0x092"
  19690. fi
  19691. rm -f core conftest.err conftest.$ac_objext \
  19692. conftest$ac_exeext conftest.$ac_ext
  19693. fi
  19694. if test "$tst_api" = "unknown"; then
  19695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19696. /* end confdefs.h. */
  19697. #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
  19698. #ifdef __STDC__
  19699. # include <limits.h>
  19700. #else
  19701. # include <assert.h>
  19702. #endif
  19703. #undef SSL_CTX_set_cipher_list
  19704. #ifdef __cplusplus
  19705. extern "C"
  19706. #endif
  19707. char SSL_CTX_set_cipher_list ();
  19708. #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
  19709. choke me
  19710. #endif
  19711. int main (void)
  19712. {
  19713. return SSL_CTX_set_cipher_list ();
  19714. ;
  19715. return 0;
  19716. }
  19717. _ACEOF
  19718. if ac_fn_c_try_link "$LINENO"; then :
  19719. tst_api="0x091"
  19720. fi
  19721. rm -f core conftest.err conftest.$ac_objext \
  19722. conftest$ac_exeext conftest.$ac_ext
  19723. fi
  19724. case $tst_api in
  19725. 0x111) tst_show="1.1.1" ;;
  19726. 0x110) tst_show="1.1.0" ;;
  19727. 0x102) tst_show="1.0.2" ;;
  19728. 0x101) tst_show="1.0.1" ;;
  19729. 0x100) tst_show="1.0.0" ;;
  19730. 0x099) tst_show="0.9.9" ;;
  19731. 0x098) tst_show="0.9.8" ;;
  19732. 0x097) tst_show="0.9.7" ;;
  19733. 0x096) tst_show="0.9.6" ;;
  19734. 0x095) tst_show="0.9.5" ;;
  19735. 0x094) tst_show="0.9.4" ;;
  19736. 0x093) tst_show="0.9.3" ;;
  19737. 0x092) tst_show="0.9.2" ;;
  19738. 0x091) tst_show="0.9.1" ;;
  19739. *) tst_show="unknown" ;;
  19740. esac
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  19742. $as_echo "$tst_show" >&6; }
  19743. #
  19744. curl_openssl_api_library=$tst_api
  19745. #
  19746. tst_match="yes"
  19747. #
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
  19749. $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
  19750. if test "$curl_openssl_api_headers" = "unknown" ||
  19751. test "$curl_openssl_api_library" = "unknown"; then
  19752. tst_match="fail"
  19753. tst_warns="Can not compare OpenSSL headers and library versions."
  19754. elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
  19755. tst_match="no"
  19756. tst_warns="OpenSSL headers and library versions do not match."
  19757. fi
  19758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
  19759. $as_echo "$tst_match" >&6; }
  19760. if test "$tst_match" != "yes"; then
  19761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
  19762. $as_echo "$as_me: WARNING: $tst_warns" >&2;}
  19763. fi
  19764. check_for_ca_bundle=1
  19765. fi
  19766. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  19767. fi
  19768. if test X"$OPENSSL_ENABLED" = X"1"; then
  19769. # Check whether --with-egd-socket was given.
  19770. if test "${with_egd_socket+set}" = set; then :
  19771. withval=$with_egd_socket; EGD_SOCKET="$withval"
  19772. fi
  19773. if test -n "$EGD_SOCKET" ; then
  19774. cat >>confdefs.h <<_ACEOF
  19775. #define EGD_SOCKET "$EGD_SOCKET"
  19776. _ACEOF
  19777. fi
  19778. # Check whether --with-random was given.
  19779. if test "${with_random+set}" = set; then :
  19780. withval=$with_random; RANDOM_FILE="$withval"
  19781. else
  19782. if test x$cross_compiling != xyes; then
  19783. as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  19784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  19785. $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
  19786. if eval \${$as_ac_File+:} false; then :
  19787. $as_echo_n "(cached) " >&6
  19788. else
  19789. test "$cross_compiling" = yes &&
  19790. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  19791. if test -r ""/dev/urandom""; then
  19792. eval "$as_ac_File=yes"
  19793. else
  19794. eval "$as_ac_File=no"
  19795. fi
  19796. fi
  19797. eval ac_res=\$$as_ac_File
  19798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19799. $as_echo "$ac_res" >&6; }
  19800. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  19801. RANDOM_FILE="/dev/urandom"
  19802. fi
  19803. else
  19804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
  19805. $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
  19806. fi
  19807. fi
  19808. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  19809. cat >>confdefs.h <<_ACEOF
  19810. #define RANDOM_FILE "$RANDOM_FILE"
  19811. _ACEOF
  19812. fi
  19813. fi
  19814. if test "$OPENSSL_ENABLED" = "1"; then
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
  19816. $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
  19817. if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
  19818. $as_echo_n "(cached) " >&6
  19819. else
  19820. ac_check_lib_save_LIBS=$LIBS
  19821. LIBS="-lcrypto $LIBS"
  19822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19823. /* end confdefs.h. */
  19824. #ifdef __cplusplus
  19825. extern "C"
  19826. #endif
  19827. char SRP_Calc_client_key ();
  19828. int main (void)
  19829. {
  19830. return SRP_Calc_client_key ();
  19831. ;
  19832. return 0;
  19833. }
  19834. _ACEOF
  19835. if ac_fn_c_try_link "$LINENO"; then :
  19836. ac_cv_lib_crypto_SRP_Calc_client_key=yes
  19837. else
  19838. ac_cv_lib_crypto_SRP_Calc_client_key=no
  19839. fi
  19840. rm -f core conftest.err conftest.$ac_objext \
  19841. conftest$ac_exeext conftest.$ac_ext
  19842. LIBS=$ac_check_lib_save_LIBS
  19843. fi
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
  19845. $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
  19846. if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
  19847. $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
  19848. HAVE_OPENSSL_SRP=1
  19849. fi
  19850. fi
  19851. OPT_GNUTLS=no
  19852. # Check whether --with-gnutls was given.
  19853. if test "${with_gnutls+set}" = set; then :
  19854. withval=$with_gnutls; OPT_GNUTLS=$withval
  19855. fi
  19856. if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
  19857. ssl_msg=
  19858. if test X"$OPT_GNUTLS" != Xno; then
  19859. addld=""
  19860. addlib=""
  19861. gtlslib=""
  19862. version=""
  19863. addcflags=""
  19864. if test "x$OPT_GNUTLS" = "xyes"; then
  19865. if test -n "$PKG_CONFIG"; then
  19866. PKGCONFIG="$PKG_CONFIG"
  19867. else
  19868. if test -n "$ac_tool_prefix"; then
  19869. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19870. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19872. $as_echo_n "checking for $ac_word... " >&6; }
  19873. if ${ac_cv_path_PKGCONFIG+:} false; then :
  19874. $as_echo_n "(cached) " >&6
  19875. else
  19876. case $PKGCONFIG in
  19877. [\\/]* | ?:[\\/]*)
  19878. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19879. ;;
  19880. *)
  19881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19882. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19883. for as_dir in $as_dummy
  19884. do
  19885. IFS=$as_save_IFS
  19886. test -z "$as_dir" && as_dir=.
  19887. for ac_exec_ext in '' $ac_executable_extensions; do
  19888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19889. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19891. break 2
  19892. fi
  19893. done
  19894. done
  19895. IFS=$as_save_IFS
  19896. ;;
  19897. esac
  19898. fi
  19899. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19900. if test -n "$PKGCONFIG"; then
  19901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19902. $as_echo "$PKGCONFIG" >&6; }
  19903. else
  19904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19905. $as_echo "no" >&6; }
  19906. fi
  19907. fi
  19908. if test -z "$ac_cv_path_PKGCONFIG"; then
  19909. ac_pt_PKGCONFIG=$PKGCONFIG
  19910. # Extract the first word of "pkg-config", so it can be a program name with args.
  19911. set dummy pkg-config; ac_word=$2
  19912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19913. $as_echo_n "checking for $ac_word... " >&6; }
  19914. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  19915. $as_echo_n "(cached) " >&6
  19916. else
  19917. case $ac_pt_PKGCONFIG in
  19918. [\\/]* | ?:[\\/]*)
  19919. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19920. ;;
  19921. *)
  19922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19923. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19924. for as_dir in $as_dummy
  19925. do
  19926. IFS=$as_save_IFS
  19927. test -z "$as_dir" && as_dir=.
  19928. for ac_exec_ext in '' $ac_executable_extensions; do
  19929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19930. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19932. break 2
  19933. fi
  19934. done
  19935. done
  19936. IFS=$as_save_IFS
  19937. ;;
  19938. esac
  19939. fi
  19940. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19941. if test -n "$ac_pt_PKGCONFIG"; then
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19943. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  19944. else
  19945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19946. $as_echo "no" >&6; }
  19947. fi
  19948. if test "x$ac_pt_PKGCONFIG" = x; then
  19949. PKGCONFIG="no"
  19950. else
  19951. case $cross_compiling:$ac_tool_warned in
  19952. yes:)
  19953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19954. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19955. ac_tool_warned=yes ;;
  19956. esac
  19957. PKGCONFIG=$ac_pt_PKGCONFIG
  19958. fi
  19959. else
  19960. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19961. fi
  19962. fi
  19963. if test "x$PKGCONFIG" != "xno"; then
  19964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
  19965. $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
  19966. itexists=`
  19967. if test -n ""; then
  19968. PKG_CONFIG_LIBDIR=""
  19969. export PKG_CONFIG_LIBDIR
  19970. fi
  19971. $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
  19972. if test -z "$itexists"; then
  19973. PKGCONFIG="no"
  19974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19975. $as_echo "no" >&6; }
  19976. else
  19977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19978. $as_echo "found" >&6; }
  19979. fi
  19980. fi
  19981. if test "$PKGCONFIG" != "no" ; then
  19982. addlib=`$PKGCONFIG --libs-only-l gnutls`
  19983. addld=`$PKGCONFIG --libs-only-L gnutls`
  19984. addcflags=`$PKGCONFIG --cflags-only-I gnutls`
  19985. version=`$PKGCONFIG --modversion gnutls`
  19986. gtlslib=`echo $addld | $SED -e 's/-L//'`
  19987. else
  19988. check=`libgnutls-config --version 2>/dev/null`
  19989. if test -n "$check"; then
  19990. addlib=`libgnutls-config --libs`
  19991. addcflags=`libgnutls-config --cflags`
  19992. version=`libgnutls-config --version`
  19993. gtlslib=`libgnutls-config --prefix`/lib$libsuff
  19994. fi
  19995. fi
  19996. else
  19997. cfg=$OPT_GNUTLS/bin/libgnutls-config
  19998. check=`$cfg --version 2>/dev/null`
  19999. if test -n "$check"; then
  20000. addlib=`$cfg --libs`
  20001. addcflags=`$cfg --cflags`
  20002. version=`$cfg --version`
  20003. gtlslib=`$cfg --prefix`/lib$libsuff
  20004. else
  20005. addlib=-lgnutls
  20006. addld=-L$OPT_GNUTLS/lib$libsuff
  20007. addcflags=-I$OPT_GNUTLS/include
  20008. version="" # we just don't know
  20009. gtlslib=$OPT_GNUTLS/lib$libsuff
  20010. fi
  20011. fi
  20012. if test -z "$version"; then
  20013. version="unknown"
  20014. fi
  20015. if test -n "$addlib"; then
  20016. CLEANLIBS="$LIBS"
  20017. CLEANCPPFLAGS="$CPPFLAGS"
  20018. CLEANLDFLAGS="$LDFLAGS"
  20019. LIBS="$addlib $LIBS"
  20020. LDFLAGS="$LDFLAGS $addld"
  20021. if test "$addcflags" != "-I/usr/include"; then
  20022. CPPFLAGS="$CPPFLAGS $addcflags"
  20023. fi
  20024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
  20025. $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
  20026. if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
  20027. $as_echo_n "(cached) " >&6
  20028. else
  20029. ac_check_lib_save_LIBS=$LIBS
  20030. LIBS="-lgnutls $LIBS"
  20031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20032. /* end confdefs.h. */
  20033. #ifdef __cplusplus
  20034. extern "C"
  20035. #endif
  20036. char gnutls_check_version ();
  20037. int main (void)
  20038. {
  20039. return gnutls_check_version ();
  20040. ;
  20041. return 0;
  20042. }
  20043. _ACEOF
  20044. if ac_fn_c_try_link "$LINENO"; then :
  20045. ac_cv_lib_gnutls_gnutls_check_version=yes
  20046. else
  20047. ac_cv_lib_gnutls_gnutls_check_version=no
  20048. fi
  20049. rm -f core conftest.err conftest.$ac_objext \
  20050. conftest$ac_exeext conftest.$ac_ext
  20051. LIBS=$ac_check_lib_save_LIBS
  20052. fi
  20053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
  20054. $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
  20055. if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
  20056. $as_echo "#define USE_GNUTLS 1" >>confdefs.h
  20057. USE_GNUTLS=1
  20058. GNUTLS_ENABLED=1
  20059. USE_GNUTLS="yes"
  20060. ssl_msg="GnuTLS"
  20061. test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20062. else
  20063. LIBS="$CLEANLIBS"
  20064. CPPFLAGS="$CLEANCPPFLAGS"
  20065. fi
  20066. if test "x$USE_GNUTLS" = "xyes"; then
  20067. { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
  20068. $as_echo "$as_me: detected GnuTLS version $version" >&6;}
  20069. check_for_ca_bundle=1
  20070. if test -n "$gtlslib"; then
  20071. if test "x$cross_compiling" != "xyes"; then
  20072. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
  20073. export CURL_LIBRARY_PATH
  20074. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
  20075. $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
  20076. fi
  20077. fi
  20078. for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
  20079. do :
  20080. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20081. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20082. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20083. cat >>confdefs.h <<_ACEOF
  20084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20085. _ACEOF
  20086. fi
  20087. done
  20088. fi
  20089. fi
  20090. fi
  20091. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20092. fi
  20093. if test "$GNUTLS_ENABLED" = "1"; then
  20094. USE_GNUTLS_NETTLE=
  20095. # First check if we can detect either crypto library via transitive linking
  20096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
  20097. $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
  20098. if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
  20099. $as_echo_n "(cached) " >&6
  20100. else
  20101. ac_check_lib_save_LIBS=$LIBS
  20102. LIBS="-lgnutls $LIBS"
  20103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20104. /* end confdefs.h. */
  20105. #ifdef __cplusplus
  20106. extern "C"
  20107. #endif
  20108. char nettle_MD5Init ();
  20109. int main (void)
  20110. {
  20111. return nettle_MD5Init ();
  20112. ;
  20113. return 0;
  20114. }
  20115. _ACEOF
  20116. if ac_fn_c_try_link "$LINENO"; then :
  20117. ac_cv_lib_gnutls_nettle_MD5Init=yes
  20118. else
  20119. ac_cv_lib_gnutls_nettle_MD5Init=no
  20120. fi
  20121. rm -f core conftest.err conftest.$ac_objext \
  20122. conftest$ac_exeext conftest.$ac_ext
  20123. LIBS=$ac_check_lib_save_LIBS
  20124. fi
  20125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
  20126. $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
  20127. if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
  20128. USE_GNUTLS_NETTLE=1
  20129. fi
  20130. if test "$USE_GNUTLS_NETTLE" = ""; then
  20131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
  20132. $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
  20133. if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
  20134. $as_echo_n "(cached) " >&6
  20135. else
  20136. ac_check_lib_save_LIBS=$LIBS
  20137. LIBS="-lgnutls $LIBS"
  20138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20139. /* end confdefs.h. */
  20140. #ifdef __cplusplus
  20141. extern "C"
  20142. #endif
  20143. char gcry_control ();
  20144. int main (void)
  20145. {
  20146. return gcry_control ();
  20147. ;
  20148. return 0;
  20149. }
  20150. _ACEOF
  20151. if ac_fn_c_try_link "$LINENO"; then :
  20152. ac_cv_lib_gnutls_gcry_control=yes
  20153. else
  20154. ac_cv_lib_gnutls_gcry_control=no
  20155. fi
  20156. rm -f core conftest.err conftest.$ac_objext \
  20157. conftest$ac_exeext conftest.$ac_ext
  20158. LIBS=$ac_check_lib_save_LIBS
  20159. fi
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
  20161. $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
  20162. if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
  20163. USE_GNUTLS_NETTLE=0
  20164. fi
  20165. fi
  20166. # If not, try linking directly to both of them to see if they are available
  20167. if test "$USE_GNUTLS_NETTLE" = ""; then
  20168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
  20169. $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
  20170. if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
  20171. $as_echo_n "(cached) " >&6
  20172. else
  20173. ac_check_lib_save_LIBS=$LIBS
  20174. LIBS="-lnettle $LIBS"
  20175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20176. /* end confdefs.h. */
  20177. #ifdef __cplusplus
  20178. extern "C"
  20179. #endif
  20180. char nettle_MD5Init ();
  20181. int main (void)
  20182. {
  20183. return nettle_MD5Init ();
  20184. ;
  20185. return 0;
  20186. }
  20187. _ACEOF
  20188. if ac_fn_c_try_link "$LINENO"; then :
  20189. ac_cv_lib_nettle_nettle_MD5Init=yes
  20190. else
  20191. ac_cv_lib_nettle_nettle_MD5Init=no
  20192. fi
  20193. rm -f core conftest.err conftest.$ac_objext \
  20194. conftest$ac_exeext conftest.$ac_ext
  20195. LIBS=$ac_check_lib_save_LIBS
  20196. fi
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
  20198. $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
  20199. if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
  20200. USE_GNUTLS_NETTLE=1
  20201. fi
  20202. fi
  20203. if test "$USE_GNUTLS_NETTLE" = ""; then
  20204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
  20205. $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
  20206. if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
  20207. $as_echo_n "(cached) " >&6
  20208. else
  20209. ac_check_lib_save_LIBS=$LIBS
  20210. LIBS="-lgcrypt $LIBS"
  20211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20212. /* end confdefs.h. */
  20213. #ifdef __cplusplus
  20214. extern "C"
  20215. #endif
  20216. char gcry_control ();
  20217. int main (void)
  20218. {
  20219. return gcry_control ();
  20220. ;
  20221. return 0;
  20222. }
  20223. _ACEOF
  20224. if ac_fn_c_try_link "$LINENO"; then :
  20225. ac_cv_lib_gcrypt_gcry_control=yes
  20226. else
  20227. ac_cv_lib_gcrypt_gcry_control=no
  20228. fi
  20229. rm -f core conftest.err conftest.$ac_objext \
  20230. conftest$ac_exeext conftest.$ac_ext
  20231. LIBS=$ac_check_lib_save_LIBS
  20232. fi
  20233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
  20234. $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
  20235. if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
  20236. USE_GNUTLS_NETTLE=0
  20237. fi
  20238. fi
  20239. if test "$USE_GNUTLS_NETTLE" = ""; then
  20240. as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
  20241. fi
  20242. if test "$USE_GNUTLS_NETTLE" = "1"; then
  20243. $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
  20244. USE_GNUTLS_NETTLE=1
  20245. LIBS="-lnettle $LIBS"
  20246. else
  20247. LIBS="-lgcrypt $LIBS"
  20248. fi
  20249. fi
  20250. if test "$GNUTLS_ENABLED" = "1"; then
  20251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
  20252. $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
  20253. if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
  20254. $as_echo_n "(cached) " >&6
  20255. else
  20256. ac_check_lib_save_LIBS=$LIBS
  20257. LIBS="-lgnutls $LIBS"
  20258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20259. /* end confdefs.h. */
  20260. #ifdef __cplusplus
  20261. extern "C"
  20262. #endif
  20263. char gnutls_srp_verifier ();
  20264. int main (void)
  20265. {
  20266. return gnutls_srp_verifier ();
  20267. ;
  20268. return 0;
  20269. }
  20270. _ACEOF
  20271. if ac_fn_c_try_link "$LINENO"; then :
  20272. ac_cv_lib_gnutls_gnutls_srp_verifier=yes
  20273. else
  20274. ac_cv_lib_gnutls_gnutls_srp_verifier=no
  20275. fi
  20276. rm -f core conftest.err conftest.$ac_objext \
  20277. conftest$ac_exeext conftest.$ac_ext
  20278. LIBS=$ac_check_lib_save_LIBS
  20279. fi
  20280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
  20281. $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
  20282. if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
  20283. $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
  20284. HAVE_GNUTLS_SRP=1
  20285. fi
  20286. fi
  20287. OPT_POLARSSL=no
  20288. _cppflags=$CPPFLAGS
  20289. _ldflags=$LDFLAGS
  20290. # Check whether --with-polarssl was given.
  20291. if test "${with_polarssl+set}" = set; then :
  20292. withval=$with_polarssl; OPT_POLARSSL=$withval
  20293. fi
  20294. if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
  20295. ssl_msg=
  20296. if test X"$OPT_POLARSSL" != Xno; then
  20297. if test "$OPT_POLARSSL" = "yes"; then
  20298. OPT_POLARSSL=""
  20299. fi
  20300. if test -z "$OPT_POLARSSL" ; then
  20301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
  20302. $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
  20303. if ${ac_cv_lib_polarssl_havege_init+:} false; then :
  20304. $as_echo_n "(cached) " >&6
  20305. else
  20306. ac_check_lib_save_LIBS=$LIBS
  20307. LIBS="-lpolarssl $LIBS"
  20308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20309. /* end confdefs.h. */
  20310. #ifdef __cplusplus
  20311. extern "C"
  20312. #endif
  20313. char havege_init ();
  20314. int main (void)
  20315. {
  20316. return havege_init ();
  20317. ;
  20318. return 0;
  20319. }
  20320. _ACEOF
  20321. if ac_fn_c_try_link "$LINENO"; then :
  20322. ac_cv_lib_polarssl_havege_init=yes
  20323. else
  20324. ac_cv_lib_polarssl_havege_init=no
  20325. fi
  20326. rm -f core conftest.err conftest.$ac_objext \
  20327. conftest$ac_exeext conftest.$ac_ext
  20328. LIBS=$ac_check_lib_save_LIBS
  20329. fi
  20330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
  20331. $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
  20332. if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
  20333. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  20334. USE_POLARSSL=1
  20335. POLARSSL_ENABLED=1
  20336. USE_POLARSSL="yes"
  20337. ssl_msg="PolarSSL"
  20338. test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20339. fi
  20340. fi
  20341. addld=""
  20342. addlib=""
  20343. addcflags=""
  20344. polarssllib=""
  20345. if test "x$USE_POLARSSL" != "xyes"; then
  20346. addld=-L$OPT_POLARSSL/lib$libsuff
  20347. addcflags=-I$OPT_POLARSSL/include
  20348. polarssllib=$OPT_POLARSSL/lib$libsuff
  20349. LDFLAGS="$LDFLAGS $addld"
  20350. if test "$addcflags" != "-I/usr/include"; then
  20351. CPPFLAGS="$CPPFLAGS $addcflags"
  20352. fi
  20353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
  20354. $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
  20355. if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
  20356. $as_echo_n "(cached) " >&6
  20357. else
  20358. ac_check_lib_save_LIBS=$LIBS
  20359. LIBS="-lpolarssl $LIBS"
  20360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20361. /* end confdefs.h. */
  20362. #ifdef __cplusplus
  20363. extern "C"
  20364. #endif
  20365. char ssl_init ();
  20366. int main (void)
  20367. {
  20368. return ssl_init ();
  20369. ;
  20370. return 0;
  20371. }
  20372. _ACEOF
  20373. if ac_fn_c_try_link "$LINENO"; then :
  20374. ac_cv_lib_polarssl_ssl_init=yes
  20375. else
  20376. ac_cv_lib_polarssl_ssl_init=no
  20377. fi
  20378. rm -f core conftest.err conftest.$ac_objext \
  20379. conftest$ac_exeext conftest.$ac_ext
  20380. LIBS=$ac_check_lib_save_LIBS
  20381. fi
  20382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
  20383. $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
  20384. if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
  20385. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  20386. USE_POLARSSL=1
  20387. POLARSSL_ENABLED=1
  20388. USE_POLARSSL="yes"
  20389. ssl_msg="PolarSSL"
  20390. test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20391. else
  20392. CPPFLAGS=$_cppflags
  20393. LDFLAGS=$_ldflags
  20394. fi
  20395. fi
  20396. if test "x$USE_POLARSSL" = "xyes"; then
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
  20398. $as_echo "$as_me: detected PolarSSL" >&6;}
  20399. check_for_ca_bundle=1
  20400. LIBS="-lpolarssl $LIBS"
  20401. if test -n "$polarssllib"; then
  20402. if test "x$cross_compiling" != "xyes"; then
  20403. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
  20404. export CURL_LIBRARY_PATH
  20405. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
  20406. $as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
  20407. fi
  20408. fi
  20409. fi
  20410. fi
  20411. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20412. fi
  20413. OPT_MBEDTLS=no
  20414. _cppflags=$CPPFLAGS
  20415. _ldflags=$LDFLAGS
  20416. # Check whether --with-mbedtls was given.
  20417. if test "${with_mbedtls+set}" = set; then :
  20418. withval=$with_mbedtls; OPT_MBEDTLS=$withval
  20419. fi
  20420. if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
  20421. ssl_msg=
  20422. if test X"$OPT_MBEDTLS" != Xno; then
  20423. if test "$OPT_MBEDTLS" = "yes"; then
  20424. OPT_MBEDTLS=""
  20425. fi
  20426. if test -z "$OPT_MBEDTLS" ; then
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
  20428. $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
  20429. if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
  20430. $as_echo_n "(cached) " >&6
  20431. else
  20432. ac_check_lib_save_LIBS=$LIBS
  20433. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  20434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20435. /* end confdefs.h. */
  20436. #ifdef __cplusplus
  20437. extern "C"
  20438. #endif
  20439. char mbedtls_havege_init ();
  20440. int main (void)
  20441. {
  20442. return mbedtls_havege_init ();
  20443. ;
  20444. return 0;
  20445. }
  20446. _ACEOF
  20447. if ac_fn_c_try_link "$LINENO"; then :
  20448. ac_cv_lib_mbedtls_mbedtls_havege_init=yes
  20449. else
  20450. ac_cv_lib_mbedtls_mbedtls_havege_init=no
  20451. fi
  20452. rm -f core conftest.err conftest.$ac_objext \
  20453. conftest$ac_exeext conftest.$ac_ext
  20454. LIBS=$ac_check_lib_save_LIBS
  20455. fi
  20456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
  20457. $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
  20458. if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
  20459. $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
  20460. USE_MBEDTLS=1
  20461. MBEDTLS_ENABLED=1
  20462. USE_MBEDTLS="yes"
  20463. ssl_msg="mbedTLS"
  20464. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20465. fi
  20466. fi
  20467. addld=""
  20468. addlib=""
  20469. addcflags=""
  20470. mbedtlslib=""
  20471. if test "x$USE_MBEDTLS" != "xyes"; then
  20472. addld=-L$OPT_MBEDTLS/lib$libsuff
  20473. addcflags=-I$OPT_MBEDTLS/include
  20474. mbedtlslib=$OPT_MBEDTLS/lib$libsuff
  20475. LDFLAGS="$LDFLAGS $addld"
  20476. if test "$addcflags" != "-I/usr/include"; then
  20477. CPPFLAGS="$CPPFLAGS $addcflags"
  20478. fi
  20479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
  20480. $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
  20481. if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
  20482. $as_echo_n "(cached) " >&6
  20483. else
  20484. ac_check_lib_save_LIBS=$LIBS
  20485. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  20486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20487. /* end confdefs.h. */
  20488. #ifdef __cplusplus
  20489. extern "C"
  20490. #endif
  20491. char mbedtls_ssl_init ();
  20492. int main (void)
  20493. {
  20494. return mbedtls_ssl_init ();
  20495. ;
  20496. return 0;
  20497. }
  20498. _ACEOF
  20499. if ac_fn_c_try_link "$LINENO"; then :
  20500. ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
  20501. else
  20502. ac_cv_lib_mbedtls_mbedtls_ssl_init=no
  20503. fi
  20504. rm -f core conftest.err conftest.$ac_objext \
  20505. conftest$ac_exeext conftest.$ac_ext
  20506. LIBS=$ac_check_lib_save_LIBS
  20507. fi
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
  20509. $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
  20510. if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
  20511. $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
  20512. USE_MBEDTLS=1
  20513. MBEDTLS_ENABLED=1
  20514. USE_MBEDTLS="yes"
  20515. ssl_msg="mbedTLS"
  20516. test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20517. else
  20518. CPPFLAGS=$_cppflags
  20519. LDFLAGS=$_ldflags
  20520. fi
  20521. fi
  20522. if test "x$USE_MBEDTLS" = "xyes"; then
  20523. { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
  20524. $as_echo "$as_me: detected mbedTLS" >&6;}
  20525. check_for_ca_bundle=1
  20526. LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
  20527. if test -n "$mbedtlslib"; then
  20528. if test "x$cross_compiling" != "xyes"; then
  20529. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
  20530. export CURL_LIBRARY_PATH
  20531. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
  20532. $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
  20533. fi
  20534. fi
  20535. fi
  20536. fi
  20537. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20538. fi
  20539. OPT_CYASSL=no
  20540. _cppflags=$CPPFLAGS
  20541. _ldflags=$LDFLAGS
  20542. # Check whether --with-cyassl was given.
  20543. if test "${with_cyassl+set}" = set; then :
  20544. withval=$with_cyassl; OPT_CYASSL=$withval
  20545. fi
  20546. # Check whether --with-wolfssl was given.
  20547. if test "${with_wolfssl+set}" = set; then :
  20548. withval=$with_wolfssl; OPT_CYASSL=$withval
  20549. fi
  20550. if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
  20551. ssl_msg=
  20552. if test X"$OPT_CYASSL" != Xno; then
  20553. if test "$OPT_CYASSL" = "yes"; then
  20554. OPT_CYASSL=""
  20555. fi
  20556. cyassllibname=cyassl
  20557. if test -z "$OPT_CYASSL" ; then
  20558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  20559. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  20560. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  20561. $as_echo_n "(cached) " >&6
  20562. else
  20563. ac_check_lib_save_LIBS=$LIBS
  20564. LIBS="-lcyassl $LIBS"
  20565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20566. /* end confdefs.h. */
  20567. #ifdef __cplusplus
  20568. extern "C"
  20569. #endif
  20570. char CyaSSL_Init ();
  20571. int main (void)
  20572. {
  20573. return CyaSSL_Init ();
  20574. ;
  20575. return 0;
  20576. }
  20577. _ACEOF
  20578. if ac_fn_c_try_link "$LINENO"; then :
  20579. ac_cv_lib_cyassl_CyaSSL_Init=yes
  20580. else
  20581. ac_cv_lib_cyassl_CyaSSL_Init=no
  20582. fi
  20583. rm -f core conftest.err conftest.$ac_objext \
  20584. conftest$ac_exeext conftest.$ac_ext
  20585. LIBS=$ac_check_lib_save_LIBS
  20586. fi
  20587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  20588. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  20589. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  20590. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  20591. USE_CYASSL=1
  20592. CYASSL_ENABLED=1
  20593. USE_CYASSL="yes"
  20594. ssl_msg="CyaSSL"
  20595. test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20596. fi
  20597. fi
  20598. addld=""
  20599. addlib=""
  20600. addcflags=""
  20601. cyassllib=""
  20602. if test "x$USE_CYASSL" != "xyes"; then
  20603. addld=-L$OPT_CYASSL/lib$libsuff
  20604. addcflags=-I$OPT_CYASSL/include
  20605. cyassllib=$OPT_CYASSL/lib$libsuff
  20606. LDFLAGS="$LDFLAGS $addld"
  20607. if test "$addcflags" != "-I/usr/include"; then
  20608. CPPFLAGS="$CPPFLAGS $addcflags"
  20609. fi
  20610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  20611. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  20612. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  20613. $as_echo_n "(cached) " >&6
  20614. else
  20615. ac_check_lib_save_LIBS=$LIBS
  20616. LIBS="-lcyassl $LIBS"
  20617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20618. /* end confdefs.h. */
  20619. #ifdef __cplusplus
  20620. extern "C"
  20621. #endif
  20622. char CyaSSL_Init ();
  20623. int main (void)
  20624. {
  20625. return CyaSSL_Init ();
  20626. ;
  20627. return 0;
  20628. }
  20629. _ACEOF
  20630. if ac_fn_c_try_link "$LINENO"; then :
  20631. ac_cv_lib_cyassl_CyaSSL_Init=yes
  20632. else
  20633. ac_cv_lib_cyassl_CyaSSL_Init=no
  20634. fi
  20635. rm -f core conftest.err conftest.$ac_objext \
  20636. conftest$ac_exeext conftest.$ac_ext
  20637. LIBS=$ac_check_lib_save_LIBS
  20638. fi
  20639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  20640. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  20641. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  20642. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  20643. USE_CYASSL=1
  20644. CYASSL_ENABLED=1
  20645. USE_CYASSL="yes"
  20646. ssl_msg="CyaSSL"
  20647. test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20648. else
  20649. CPPFLAGS=$_cppflags
  20650. LDFLAGS=$_ldflags
  20651. cyassllib=""
  20652. fi
  20653. fi
  20654. addld=""
  20655. addlib=""
  20656. addcflags=""
  20657. if test "x$USE_CYASSL" != "xyes"; then
  20658. addld=-L$OPT_CYASSL/lib$libsuff
  20659. addcflags=-I$OPT_CYASSL/include
  20660. cyassllib=$OPT_CYASSL/lib$libsuff
  20661. LDFLAGS="$LDFLAGS $addld"
  20662. if test "$addcflags" != "-I/usr/include"; then
  20663. CPPFLAGS="$CPPFLAGS $addcflags"
  20664. fi
  20665. cyassllibname=wolfssl
  20666. my_ac_save_LIBS="$LIBS"
  20667. LIBS="-l$cyassllibname -lm $LIBS"
  20668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
  20669. $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
  20670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20671. /* end confdefs.h. */
  20672. /* These aren't needed for detection and confuse WolfSSL.
  20673. They are set up properly later if it is detected. */
  20674. #undef SIZEOF_LONG
  20675. #undef SIZEOF_LONG_LONG
  20676. #include <cyassl/ssl.h>
  20677. int main (void)
  20678. {
  20679. return CyaSSL_Init();
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_link "$LINENO"; then :
  20685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20686. $as_echo "yes" >&6; }
  20687. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  20688. USE_CYASSL=1
  20689. CYASSL_ENABLED=1
  20690. USE_CYASSL="yes"
  20691. ssl_msg="WolfSSL"
  20692. test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  20693. else
  20694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20695. $as_echo "no" >&6; }
  20696. CPPFLAGS=$_cppflags
  20697. LDFLAGS=$_ldflags
  20698. cyassllib=""
  20699. fi
  20700. rm -f core conftest.err conftest.$ac_objext \
  20701. conftest$ac_exeext conftest.$ac_ext
  20702. LIBS="$my_ac_save_LIBS"
  20703. fi
  20704. if test "x$USE_CYASSL" = "xyes"; then
  20705. { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
  20706. $as_echo "$as_me: detected $cyassllibname" >&6;}
  20707. check_for_ca_bundle=1
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  20709. $as_echo_n "checking size of long long... " >&6; }
  20710. if ${ac_cv_sizeof_long_long+:} false; then :
  20711. $as_echo_n "(cached) " >&6
  20712. else
  20713. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  20714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20715. /* end confdefs.h. */
  20716. #include <sys/types.h>
  20717. int main (void)
  20718. {
  20719. switch (0) case 0: case (sizeof (long long) == $ac_size):;
  20720. ;
  20721. return 0;
  20722. }
  20723. _ACEOF
  20724. if ac_fn_c_try_compile "$LINENO"; then :
  20725. ac_cv_sizeof_long_long=$ac_size
  20726. fi
  20727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20728. if test x$ac_cv_sizeof_long_long != x ; then break; fi
  20729. done
  20730. fi
  20731. if test x$ac_cv_sizeof_long_long = x ; then
  20732. as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
  20733. fi
  20734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  20735. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  20736. cat >>confdefs.h <<_ACEOF
  20737. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  20738. _ACEOF
  20739. for ac_header in cyassl/options.h
  20740. do :
  20741. ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
  20742. if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
  20743. cat >>confdefs.h <<_ACEOF
  20744. #define HAVE_CYASSL_OPTIONS_H 1
  20745. _ACEOF
  20746. fi
  20747. done
  20748. for ac_header in cyassl/error-ssl.h
  20749. do :
  20750. ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
  20751. if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
  20752. cat >>confdefs.h <<_ACEOF
  20753. #define HAVE_CYASSL_ERROR_SSL_H 1
  20754. _ACEOF
  20755. fi
  20756. done
  20757. LIBS="-l$cyassllibname -lm $LIBS"
  20758. if test "x$cyassllibname" = "xwolfssl"; then
  20759. for ac_func in wolfSSLv3_client_method \
  20760. wolfSSL_CTX_UseSupportedCurve \
  20761. wolfSSL_get_peer_certificate \
  20762. wolfSSL_UseALPN
  20763. do :
  20764. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20765. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20766. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20767. cat >>confdefs.h <<_ACEOF
  20768. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20769. _ACEOF
  20770. fi
  20771. done
  20772. else
  20773. for ac_func in CyaSSL_CTX_UseSupportedCurve \
  20774. CyaSSL_get_peer_certificate
  20775. do :
  20776. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20777. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20778. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20779. cat >>confdefs.h <<_ACEOF
  20780. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20781. _ACEOF
  20782. fi
  20783. done
  20784. fi
  20785. if test -n "$cyassllib"; then
  20786. if test "x$cross_compiling" != "xyes"; then
  20787. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
  20788. export CURL_LIBRARY_PATH
  20789. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
  20790. $as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
  20791. fi
  20792. fi
  20793. fi
  20794. fi
  20795. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  20796. fi
  20797. OPT_NSS=no
  20798. # Check whether --with-nss was given.
  20799. if test "${with_nss+set}" = set; then :
  20800. withval=$with_nss; OPT_NSS=$withval
  20801. fi
  20802. if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
  20803. ssl_msg=
  20804. if test X"$OPT_NSS" != Xno; then
  20805. addld=""
  20806. addlib=""
  20807. addcflags=""
  20808. nssprefix=""
  20809. version=""
  20810. if test "x$OPT_NSS" = "xyes"; then
  20811. if test -n "$PKG_CONFIG"; then
  20812. PKGCONFIG="$PKG_CONFIG"
  20813. else
  20814. if test -n "$ac_tool_prefix"; then
  20815. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20816. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20818. $as_echo_n "checking for $ac_word... " >&6; }
  20819. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20820. $as_echo_n "(cached) " >&6
  20821. else
  20822. case $PKGCONFIG in
  20823. [\\/]* | ?:[\\/]*)
  20824. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20825. ;;
  20826. *)
  20827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20828. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20829. for as_dir in $as_dummy
  20830. do
  20831. IFS=$as_save_IFS
  20832. test -z "$as_dir" && as_dir=.
  20833. for ac_exec_ext in '' $ac_executable_extensions; do
  20834. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20835. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20836. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20837. break 2
  20838. fi
  20839. done
  20840. done
  20841. IFS=$as_save_IFS
  20842. ;;
  20843. esac
  20844. fi
  20845. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20846. if test -n "$PKGCONFIG"; then
  20847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20848. $as_echo "$PKGCONFIG" >&6; }
  20849. else
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20851. $as_echo "no" >&6; }
  20852. fi
  20853. fi
  20854. if test -z "$ac_cv_path_PKGCONFIG"; then
  20855. ac_pt_PKGCONFIG=$PKGCONFIG
  20856. # Extract the first word of "pkg-config", so it can be a program name with args.
  20857. set dummy pkg-config; ac_word=$2
  20858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20859. $as_echo_n "checking for $ac_word... " >&6; }
  20860. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20861. $as_echo_n "(cached) " >&6
  20862. else
  20863. case $ac_pt_PKGCONFIG in
  20864. [\\/]* | ?:[\\/]*)
  20865. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20866. ;;
  20867. *)
  20868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20869. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20870. for as_dir in $as_dummy
  20871. do
  20872. IFS=$as_save_IFS
  20873. test -z "$as_dir" && as_dir=.
  20874. for ac_exec_ext in '' $ac_executable_extensions; do
  20875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20876. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20878. break 2
  20879. fi
  20880. done
  20881. done
  20882. IFS=$as_save_IFS
  20883. ;;
  20884. esac
  20885. fi
  20886. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20887. if test -n "$ac_pt_PKGCONFIG"; then
  20888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20889. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20890. else
  20891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20892. $as_echo "no" >&6; }
  20893. fi
  20894. if test "x$ac_pt_PKGCONFIG" = x; then
  20895. PKGCONFIG="no"
  20896. else
  20897. case $cross_compiling:$ac_tool_warned in
  20898. yes:)
  20899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20900. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20901. ac_tool_warned=yes ;;
  20902. esac
  20903. PKGCONFIG=$ac_pt_PKGCONFIG
  20904. fi
  20905. else
  20906. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20907. fi
  20908. fi
  20909. if test "x$PKGCONFIG" != "xno"; then
  20910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  20911. $as_echo_n "checking for nss options with pkg-config... " >&6; }
  20912. itexists=`
  20913. if test -n ""; then
  20914. PKG_CONFIG_LIBDIR=""
  20915. export PKG_CONFIG_LIBDIR
  20916. fi
  20917. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  20918. if test -z "$itexists"; then
  20919. PKGCONFIG="no"
  20920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20921. $as_echo "no" >&6; }
  20922. else
  20923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20924. $as_echo "found" >&6; }
  20925. fi
  20926. fi
  20927. if test "$PKGCONFIG" != "no" ; then
  20928. addlib=`$PKGCONFIG --libs nss`
  20929. addcflags=`$PKGCONFIG --cflags nss`
  20930. version=`$PKGCONFIG --modversion nss`
  20931. nssprefix=`$PKGCONFIG --variable=prefix nss`
  20932. else
  20933. check=`nss-config --version 2>/dev/null`
  20934. if test -n "$check"; then
  20935. addlib=`nss-config --libs`
  20936. addcflags=`nss-config --cflags`
  20937. version=`nss-config --version`
  20938. nssprefix=`nss-config --prefix`
  20939. else
  20940. addlib="-lnss3"
  20941. addcflags=""
  20942. version="unknown"
  20943. fi
  20944. fi
  20945. else
  20946. NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
  20947. if test -f "$NSS_PCDIR/nss.pc"; then
  20948. if test -n "$PKG_CONFIG"; then
  20949. PKGCONFIG="$PKG_CONFIG"
  20950. else
  20951. if test -n "$ac_tool_prefix"; then
  20952. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20953. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20955. $as_echo_n "checking for $ac_word... " >&6; }
  20956. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20957. $as_echo_n "(cached) " >&6
  20958. else
  20959. case $PKGCONFIG in
  20960. [\\/]* | ?:[\\/]*)
  20961. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20962. ;;
  20963. *)
  20964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20965. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20966. for as_dir in $as_dummy
  20967. do
  20968. IFS=$as_save_IFS
  20969. test -z "$as_dir" && as_dir=.
  20970. for ac_exec_ext in '' $ac_executable_extensions; do
  20971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20972. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20974. break 2
  20975. fi
  20976. done
  20977. done
  20978. IFS=$as_save_IFS
  20979. ;;
  20980. esac
  20981. fi
  20982. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20983. if test -n "$PKGCONFIG"; then
  20984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20985. $as_echo "$PKGCONFIG" >&6; }
  20986. else
  20987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20988. $as_echo "no" >&6; }
  20989. fi
  20990. fi
  20991. if test -z "$ac_cv_path_PKGCONFIG"; then
  20992. ac_pt_PKGCONFIG=$PKGCONFIG
  20993. # Extract the first word of "pkg-config", so it can be a program name with args.
  20994. set dummy pkg-config; ac_word=$2
  20995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20996. $as_echo_n "checking for $ac_word... " >&6; }
  20997. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20998. $as_echo_n "(cached) " >&6
  20999. else
  21000. case $ac_pt_PKGCONFIG in
  21001. [\\/]* | ?:[\\/]*)
  21002. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21003. ;;
  21004. *)
  21005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21006. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21007. for as_dir in $as_dummy
  21008. do
  21009. IFS=$as_save_IFS
  21010. test -z "$as_dir" && as_dir=.
  21011. for ac_exec_ext in '' $ac_executable_extensions; do
  21012. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21013. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21014. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21015. break 2
  21016. fi
  21017. done
  21018. done
  21019. IFS=$as_save_IFS
  21020. ;;
  21021. esac
  21022. fi
  21023. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21024. if test -n "$ac_pt_PKGCONFIG"; then
  21025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21026. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21027. else
  21028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21029. $as_echo "no" >&6; }
  21030. fi
  21031. if test "x$ac_pt_PKGCONFIG" = x; then
  21032. PKGCONFIG="no"
  21033. else
  21034. case $cross_compiling:$ac_tool_warned in
  21035. yes:)
  21036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21038. ac_tool_warned=yes ;;
  21039. esac
  21040. PKGCONFIG=$ac_pt_PKGCONFIG
  21041. fi
  21042. else
  21043. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21044. fi
  21045. fi
  21046. if test "x$PKGCONFIG" != "xno"; then
  21047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  21048. $as_echo_n "checking for nss options with pkg-config... " >&6; }
  21049. itexists=`
  21050. if test -n "$NSS_PCDIR"; then
  21051. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21052. export PKG_CONFIG_LIBDIR
  21053. fi
  21054. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  21055. if test -z "$itexists"; then
  21056. PKGCONFIG="no"
  21057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21058. $as_echo "no" >&6; }
  21059. else
  21060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21061. $as_echo "found" >&6; }
  21062. fi
  21063. fi
  21064. if test "$PKGCONFIG" != "no" ; then
  21065. addld=`
  21066. if test -n "$NSS_PCDIR"; then
  21067. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21068. export PKG_CONFIG_LIBDIR
  21069. fi
  21070. $PKGCONFIG --libs-only-L nss`
  21071. addlib=`
  21072. if test -n "$NSS_PCDIR"; then
  21073. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21074. export PKG_CONFIG_LIBDIR
  21075. fi
  21076. $PKGCONFIG --libs-only-l nss`
  21077. addcflags=`
  21078. if test -n "$NSS_PCDIR"; then
  21079. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21080. export PKG_CONFIG_LIBDIR
  21081. fi
  21082. $PKGCONFIG --cflags nss`
  21083. version=`
  21084. if test -n "$NSS_PCDIR"; then
  21085. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21086. export PKG_CONFIG_LIBDIR
  21087. fi
  21088. $PKGCONFIG --modversion nss`
  21089. nssprefix=`
  21090. if test -n "$NSS_PCDIR"; then
  21091. PKG_CONFIG_LIBDIR="$NSS_PCDIR"
  21092. export PKG_CONFIG_LIBDIR
  21093. fi
  21094. $PKGCONFIG --variable=prefix nss`
  21095. fi
  21096. fi
  21097. fi
  21098. if test -z "$addlib"; then
  21099. # Without pkg-config, we'll kludge in some defaults
  21100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
  21101. $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
  21102. addld="-L$OPT_NSS/lib"
  21103. addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
  21104. addcflags="-I$OPT_NSS/include"
  21105. version="unknown"
  21106. nssprefix=$OPT_NSS
  21107. fi
  21108. CLEANLDFLAGS="$LDFLAGS"
  21109. CLEANLIBS="$LIBS"
  21110. CLEANCPPFLAGS="$CPPFLAGS"
  21111. LDFLAGS="$addld $LDFLAGS"
  21112. LIBS="$addlib $LIBS"
  21113. if test "$addcflags" != "-I/usr/include"; then
  21114. CPPFLAGS="$CPPFLAGS $addcflags"
  21115. fi
  21116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
  21117. $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
  21118. if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
  21119. $as_echo_n "(cached) " >&6
  21120. else
  21121. ac_check_lib_save_LIBS=$LIBS
  21122. LIBS="-lnss3 $LIBS"
  21123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21124. /* end confdefs.h. */
  21125. #ifdef __cplusplus
  21126. extern "C"
  21127. #endif
  21128. char SSL_VersionRangeSet ();
  21129. int main (void)
  21130. {
  21131. return SSL_VersionRangeSet ();
  21132. ;
  21133. return 0;
  21134. }
  21135. _ACEOF
  21136. if ac_fn_c_try_link "$LINENO"; then :
  21137. ac_cv_lib_nss3_SSL_VersionRangeSet=yes
  21138. else
  21139. ac_cv_lib_nss3_SSL_VersionRangeSet=no
  21140. fi
  21141. rm -f core conftest.err conftest.$ac_objext \
  21142. conftest$ac_exeext conftest.$ac_ext
  21143. LIBS=$ac_check_lib_save_LIBS
  21144. fi
  21145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
  21146. $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
  21147. if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
  21148. $as_echo "#define USE_NSS 1" >>confdefs.h
  21149. USE_NSS=1
  21150. USE_NSS="yes"
  21151. NSS_ENABLED=1
  21152. ssl_msg="NSS"
  21153. test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21154. else
  21155. LDFLAGS="$CLEANLDFLAGS"
  21156. LIBS="$CLEANLIBS"
  21157. CPPFLAGS="$CLEANCPPFLAGS"
  21158. fi
  21159. if test "x$USE_NSS" = "xyes"; then
  21160. { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
  21161. $as_echo "$as_me: detected NSS version $version" >&6;}
  21162. ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
  21163. if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
  21164. $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
  21165. fi
  21166. NSS_LIBS=$addlib
  21167. if test "x$cross_compiling" != "xyes"; then
  21168. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
  21169. export CURL_LIBRARY_PATH
  21170. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
  21171. $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
  21172. fi
  21173. fi
  21174. fi
  21175. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  21176. fi
  21177. OPT_AXTLS=off
  21178. # Check whether --with-axtls was given.
  21179. if test "${with_axtls+set}" = set; then :
  21180. withval=$with_axtls; OPT_AXTLS=$withval
  21181. fi
  21182. if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
  21183. ssl_msg=
  21184. if test X"$OPT_AXTLS" != Xno; then
  21185. CLEANLDFLAGS="$LDFLAGS"
  21186. CLEANCPPFLAGS="$CPPFLAGS"
  21187. CLEANLIBS="$LIBS"
  21188. case "$OPT_AXTLS" in
  21189. yes)
  21190. PREFIX_AXTLS=/usr/local
  21191. LIB_AXTLS="$PREFIX_AXTLS/lib"
  21192. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  21193. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  21194. ;;
  21195. off)
  21196. PREFIX_AXTLS=
  21197. ;;
  21198. *)
  21199. PREFIX_AXTLS=$OPT_AXTLS
  21200. LIB_AXTLS="$PREFIX_AXTLS/lib"
  21201. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  21202. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  21203. ;;
  21204. esac
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
  21206. $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
  21207. if ${ac_cv_lib_axtls_ssl_version+:} false; then :
  21208. $as_echo_n "(cached) " >&6
  21209. else
  21210. ac_check_lib_save_LIBS=$LIBS
  21211. LIBS="-laxtls $LIBS"
  21212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21213. /* end confdefs.h. */
  21214. #ifdef __cplusplus
  21215. extern "C"
  21216. #endif
  21217. char ssl_version ();
  21218. int main (void)
  21219. {
  21220. return ssl_version ();
  21221. ;
  21222. return 0;
  21223. }
  21224. _ACEOF
  21225. if ac_fn_c_try_link "$LINENO"; then :
  21226. ac_cv_lib_axtls_ssl_version=yes
  21227. else
  21228. ac_cv_lib_axtls_ssl_version=no
  21229. fi
  21230. rm -f core conftest.err conftest.$ac_objext \
  21231. conftest$ac_exeext conftest.$ac_ext
  21232. LIBS=$ac_check_lib_save_LIBS
  21233. fi
  21234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
  21235. $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
  21236. if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
  21237. LIBS="-laxtls $LIBS"
  21238. $as_echo "#define USE_AXTLS 1" >>confdefs.h
  21239. USE_AXTLS=1
  21240. AXTLS_ENABLED=1
  21241. check_for_ca_bundle=1
  21242. USE_AXTLS="yes"
  21243. ssl_msg="axTLS"
  21244. test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
  21245. if test "x$cross_compiling" != "xyes"; then
  21246. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
  21247. export CURL_LIBRARY_PATH
  21248. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
  21249. $as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
  21250. fi
  21251. else
  21252. LDFLAGS="$CLEANLDFLAGS"
  21253. CPPFLAGS="$CLEANCPPFLAGS"
  21254. LIBS="$CLEANLIBS"
  21255. fi
  21256. fi
  21257. test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
  21258. fi
  21259. case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
  21260. x)
  21261. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
  21262. $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
  21263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
  21264. $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
  21265. ;;
  21266. x1)
  21267. # one SSL backend is enabled
  21268. SSL_ENABLED="1"
  21269. { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
  21270. $as_echo "$as_me: built with one SSL backend" >&6;}
  21271. ;;
  21272. *)
  21273. # more than one SSL backend is enabled
  21274. SSL_ENABLED="1"
  21275. CURL_WITH_MULTI_SSL="1"
  21276. $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
  21278. $as_echo "$as_me: built with multiple SSL backends" >&6;}
  21279. ;;
  21280. esac
  21281. if test -n "$ssl_backends"; then
  21282. curl_ssl_msg="enabled ($ssl_backends)"
  21283. fi
  21284. if test no = "$VALID_DEFAULT_SSL_BACKEND"
  21285. then
  21286. if test -n "$SSL_ENABLED"
  21287. then
  21288. as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
  21289. else
  21290. as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
  21291. fi
  21292. elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
  21293. then
  21294. cat >>confdefs.h <<_ACEOF
  21295. #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
  21296. _ACEOF
  21297. fi
  21298. if test "$check_for_ca_bundle" -gt 0; then
  21299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
  21300. $as_echo_n "checking default CA cert bundle/path... " >&6; }
  21301. # Check whether --with-ca-bundle was given.
  21302. if test "${with_ca_bundle+set}" = set; then :
  21303. withval=$with_ca_bundle;
  21304. want_ca="$withval"
  21305. if test "x$want_ca" = "xyes"; then
  21306. as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
  21307. fi
  21308. else
  21309. want_ca="unset"
  21310. fi
  21311. # Check whether --with-ca-path was given.
  21312. if test "${with_ca_path+set}" = set; then :
  21313. withval=$with_ca_path;
  21314. want_capath="$withval"
  21315. if test "x$want_capath" = "xyes"; then
  21316. as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
  21317. fi
  21318. else
  21319. want_capath="unset"
  21320. fi
  21321. ca_warning=" (warning: certs not found)"
  21322. capath_warning=" (warning: certs not found)"
  21323. check_capath=""
  21324. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  21325. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  21326. ca="$want_ca"
  21327. capath="$want_capath"
  21328. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  21329. ca="$want_ca"
  21330. capath="no"
  21331. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  21332. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
  21333. as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
  21334. fi
  21335. capath="$want_capath"
  21336. ca="no"
  21337. else
  21338. ca="no"
  21339. capath="no"
  21340. if test "x$cross_compiling" != "xyes"; then
  21341. if test "x$want_ca" = "xunset"; then
  21342. if test "x$prefix" != xNONE; then
  21343. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  21344. else
  21345. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  21346. fi
  21347. for a in /etc/ssl/certs/ca-certificates.crt \
  21348. /etc/pki/tls/certs/ca-bundle.crt \
  21349. /usr/share/ssl/certs/ca-bundle.crt \
  21350. /usr/local/share/certs/ca-root-nss.crt \
  21351. /etc/ssl/cert.pem \
  21352. "$cac"; do
  21353. if test -f "$a"; then
  21354. ca="$a"
  21355. break
  21356. fi
  21357. done
  21358. fi
  21359. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  21360. "x$OPENSSL_ENABLED" = "x1"; then
  21361. check_capath="/etc/ssl/certs/"
  21362. fi
  21363. else
  21364. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
  21365. $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
  21366. fi
  21367. fi
  21368. if test "x$ca" = "xno" || test -f "$ca"; then
  21369. ca_warning=""
  21370. fi
  21371. if test "x$capath" != "xno"; then
  21372. check_capath="$capath"
  21373. fi
  21374. if test ! -z "$check_capath"; then
  21375. for a in "$check_capath"; do
  21376. if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
  21377. if test "x$capath" = "xno"; then
  21378. capath="$a"
  21379. fi
  21380. capath_warning=""
  21381. break
  21382. fi
  21383. done
  21384. fi
  21385. if test "x$capath" = "xno"; then
  21386. capath_warning=""
  21387. fi
  21388. if test "x$ca" != "xno"; then
  21389. CURL_CA_BUNDLE='"'$ca'"'
  21390. cat >>confdefs.h <<_ACEOF
  21391. #define CURL_CA_BUNDLE "$ca"
  21392. _ACEOF
  21393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
  21394. $as_echo "$ca" >&6; }
  21395. fi
  21396. if test "x$capath" != "xno"; then
  21397. CURL_CA_PATH="\"$capath\""
  21398. cat >>confdefs.h <<_ACEOF
  21399. #define CURL_CA_PATH "$capath"
  21400. _ACEOF
  21401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
  21402. $as_echo "$capath (capath)" >&6; }
  21403. fi
  21404. if test "x$ca" = "xno" && test "x$capath" = "xno"; then
  21405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21406. $as_echo "no" >&6; }
  21407. fi
  21408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
  21409. $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
  21410. # Check whether --with-ca-fallback was given.
  21411. if test "${with_ca_fallback+set}" = set; then :
  21412. withval=$with_ca_fallback;
  21413. if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
  21414. as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
  21415. fi
  21416. else
  21417. with_ca_fallback="no"
  21418. fi
  21419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
  21420. $as_echo "$with_ca_fallback" >&6; }
  21421. if test "x$with_ca_fallback" = "xyes"; then
  21422. if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
  21423. as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
  21424. fi
  21425. cat >>confdefs.h <<_ACEOF
  21426. #define CURL_CA_FALLBACK 1
  21427. _ACEOF
  21428. fi
  21429. fi
  21430. # Check whether --with-libpsl was given.
  21431. if test "${with_libpsl+set}" = set; then :
  21432. withval=$with_libpsl; with_libpsl=$withval
  21433. else
  21434. with_libpsl=yes
  21435. fi
  21436. if test $with_libpsl != "no"; then
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
  21438. $as_echo_n "checking for library containing psl_builtin... " >&6; }
  21439. if ${ac_cv_search_psl_builtin+:} false; then :
  21440. $as_echo_n "(cached) " >&6
  21441. else
  21442. ac_func_search_save_LIBS=$LIBS
  21443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21444. /* end confdefs.h. */
  21445. #ifdef __cplusplus
  21446. extern "C"
  21447. #endif
  21448. char psl_builtin ();
  21449. int main (void)
  21450. {
  21451. return psl_builtin ();
  21452. ;
  21453. return 0;
  21454. }
  21455. _ACEOF
  21456. for ac_lib in '' psl; do
  21457. if test -z "$ac_lib"; then
  21458. ac_res="none required"
  21459. else
  21460. ac_res=-l$ac_lib
  21461. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  21462. fi
  21463. if ac_fn_c_try_link "$LINENO"; then :
  21464. ac_cv_search_psl_builtin=$ac_res
  21465. fi
  21466. rm -f core conftest.err conftest.$ac_objext \
  21467. conftest$ac_exeext
  21468. if ${ac_cv_search_psl_builtin+:} false; then :
  21469. break
  21470. fi
  21471. done
  21472. if ${ac_cv_search_psl_builtin+:} false; then :
  21473. else
  21474. ac_cv_search_psl_builtin=no
  21475. fi
  21476. rm conftest.$ac_ext
  21477. LIBS=$ac_func_search_save_LIBS
  21478. fi
  21479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
  21480. $as_echo "$ac_cv_search_psl_builtin" >&6; }
  21481. ac_res=$ac_cv_search_psl_builtin
  21482. if test "$ac_res" != no; then :
  21483. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  21484. curl_psl_msg="yes";
  21485. $as_echo "#define USE_LIBPSL 1" >>confdefs.h
  21486. else
  21487. curl_psl_msg="no (libpsl not found)";
  21488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
  21489. $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
  21490. fi
  21491. fi
  21492. if test "$curl_psl_msg" = "yes"; then
  21493. USE_LIBPSL_TRUE=
  21494. USE_LIBPSL_FALSE='#'
  21495. else
  21496. USE_LIBPSL_TRUE='#'
  21497. USE_LIBPSL_FALSE=
  21498. fi
  21499. OPT_LIBMETALINK=no
  21500. # Check whether --with-libmetalink was given.
  21501. if test "${with_libmetalink+set}" = set; then :
  21502. withval=$with_libmetalink; OPT_LIBMETALINK=$withval
  21503. fi
  21504. if test X"$OPT_LIBMETALINK" != Xno; then
  21505. addld=""
  21506. addlib=""
  21507. addcflags=""
  21508. version=""
  21509. libmetalinklib=""
  21510. PKGTEST="no"
  21511. if test "x$OPT_LIBMETALINK" = "xyes"; then
  21512. PKGTEST="yes"
  21513. if test -n "$PKG_CONFIG"; then
  21514. PKGCONFIG="$PKG_CONFIG"
  21515. else
  21516. if test -n "$ac_tool_prefix"; then
  21517. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21518. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21520. $as_echo_n "checking for $ac_word... " >&6; }
  21521. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21522. $as_echo_n "(cached) " >&6
  21523. else
  21524. case $PKGCONFIG in
  21525. [\\/]* | ?:[\\/]*)
  21526. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21527. ;;
  21528. *)
  21529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21530. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21531. for as_dir in $as_dummy
  21532. do
  21533. IFS=$as_save_IFS
  21534. test -z "$as_dir" && as_dir=.
  21535. for ac_exec_ext in '' $ac_executable_extensions; do
  21536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21537. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21539. break 2
  21540. fi
  21541. done
  21542. done
  21543. IFS=$as_save_IFS
  21544. ;;
  21545. esac
  21546. fi
  21547. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21548. if test -n "$PKGCONFIG"; then
  21549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21550. $as_echo "$PKGCONFIG" >&6; }
  21551. else
  21552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21553. $as_echo "no" >&6; }
  21554. fi
  21555. fi
  21556. if test -z "$ac_cv_path_PKGCONFIG"; then
  21557. ac_pt_PKGCONFIG=$PKGCONFIG
  21558. # Extract the first word of "pkg-config", so it can be a program name with args.
  21559. set dummy pkg-config; ac_word=$2
  21560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21561. $as_echo_n "checking for $ac_word... " >&6; }
  21562. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21563. $as_echo_n "(cached) " >&6
  21564. else
  21565. case $ac_pt_PKGCONFIG in
  21566. [\\/]* | ?:[\\/]*)
  21567. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21568. ;;
  21569. *)
  21570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21571. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21572. for as_dir in $as_dummy
  21573. do
  21574. IFS=$as_save_IFS
  21575. test -z "$as_dir" && as_dir=.
  21576. for ac_exec_ext in '' $ac_executable_extensions; do
  21577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21578. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21580. break 2
  21581. fi
  21582. done
  21583. done
  21584. IFS=$as_save_IFS
  21585. ;;
  21586. esac
  21587. fi
  21588. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21589. if test -n "$ac_pt_PKGCONFIG"; then
  21590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21591. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21592. else
  21593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21594. $as_echo "no" >&6; }
  21595. fi
  21596. if test "x$ac_pt_PKGCONFIG" = x; then
  21597. PKGCONFIG="no"
  21598. else
  21599. case $cross_compiling:$ac_tool_warned in
  21600. yes:)
  21601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21603. ac_tool_warned=yes ;;
  21604. esac
  21605. PKGCONFIG=$ac_pt_PKGCONFIG
  21606. fi
  21607. else
  21608. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21609. fi
  21610. fi
  21611. if test "x$PKGCONFIG" != "xno"; then
  21612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  21613. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  21614. itexists=`
  21615. if test -n ""; then
  21616. PKG_CONFIG_LIBDIR=""
  21617. export PKG_CONFIG_LIBDIR
  21618. fi
  21619. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  21620. if test -z "$itexists"; then
  21621. PKGCONFIG="no"
  21622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21623. $as_echo "no" >&6; }
  21624. else
  21625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21626. $as_echo "found" >&6; }
  21627. fi
  21628. fi
  21629. else
  21630. LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
  21631. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
  21632. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
  21633. if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
  21634. PKGTEST="yes"
  21635. fi
  21636. if test "$PKGTEST" = "yes"; then
  21637. if test -n "$PKG_CONFIG"; then
  21638. PKGCONFIG="$PKG_CONFIG"
  21639. else
  21640. if test -n "$ac_tool_prefix"; then
  21641. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21642. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21644. $as_echo_n "checking for $ac_word... " >&6; }
  21645. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21646. $as_echo_n "(cached) " >&6
  21647. else
  21648. case $PKGCONFIG in
  21649. [\\/]* | ?:[\\/]*)
  21650. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21651. ;;
  21652. *)
  21653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21654. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21655. for as_dir in $as_dummy
  21656. do
  21657. IFS=$as_save_IFS
  21658. test -z "$as_dir" && as_dir=.
  21659. for ac_exec_ext in '' $ac_executable_extensions; do
  21660. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21661. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21663. break 2
  21664. fi
  21665. done
  21666. done
  21667. IFS=$as_save_IFS
  21668. ;;
  21669. esac
  21670. fi
  21671. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21672. if test -n "$PKGCONFIG"; then
  21673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21674. $as_echo "$PKGCONFIG" >&6; }
  21675. else
  21676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21677. $as_echo "no" >&6; }
  21678. fi
  21679. fi
  21680. if test -z "$ac_cv_path_PKGCONFIG"; then
  21681. ac_pt_PKGCONFIG=$PKGCONFIG
  21682. # Extract the first word of "pkg-config", so it can be a program name with args.
  21683. set dummy pkg-config; ac_word=$2
  21684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21685. $as_echo_n "checking for $ac_word... " >&6; }
  21686. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21687. $as_echo_n "(cached) " >&6
  21688. else
  21689. case $ac_pt_PKGCONFIG in
  21690. [\\/]* | ?:[\\/]*)
  21691. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21692. ;;
  21693. *)
  21694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21695. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21696. for as_dir in $as_dummy
  21697. do
  21698. IFS=$as_save_IFS
  21699. test -z "$as_dir" && as_dir=.
  21700. for ac_exec_ext in '' $ac_executable_extensions; do
  21701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21702. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21704. break 2
  21705. fi
  21706. done
  21707. done
  21708. IFS=$as_save_IFS
  21709. ;;
  21710. esac
  21711. fi
  21712. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21713. if test -n "$ac_pt_PKGCONFIG"; then
  21714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21715. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21716. else
  21717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21718. $as_echo "no" >&6; }
  21719. fi
  21720. if test "x$ac_pt_PKGCONFIG" = x; then
  21721. PKGCONFIG="no"
  21722. else
  21723. case $cross_compiling:$ac_tool_warned in
  21724. yes:)
  21725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21726. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21727. ac_tool_warned=yes ;;
  21728. esac
  21729. PKGCONFIG=$ac_pt_PKGCONFIG
  21730. fi
  21731. else
  21732. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21733. fi
  21734. fi
  21735. if test "x$PKGCONFIG" != "xno"; then
  21736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  21737. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  21738. itexists=`
  21739. if test -n "$LIBMETALINK_PCDIR"; then
  21740. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  21741. export PKG_CONFIG_LIBDIR
  21742. fi
  21743. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  21744. if test -z "$itexists"; then
  21745. PKGCONFIG="no"
  21746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21747. $as_echo "no" >&6; }
  21748. else
  21749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21750. $as_echo "found" >&6; }
  21751. fi
  21752. fi
  21753. fi
  21754. fi
  21755. if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
  21756. addlib=`
  21757. if test -n "$LIBMETALINK_PCDIR"; then
  21758. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  21759. export PKG_CONFIG_LIBDIR
  21760. fi
  21761. $PKGCONFIG --libs-only-l libmetalink`
  21762. addld=`
  21763. if test -n "$LIBMETALINK_PCDIR"; then
  21764. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  21765. export PKG_CONFIG_LIBDIR
  21766. fi
  21767. $PKGCONFIG --libs-only-L libmetalink`
  21768. addcflags=`
  21769. if test -n "$LIBMETALINK_PCDIR"; then
  21770. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  21771. export PKG_CONFIG_LIBDIR
  21772. fi
  21773. $PKGCONFIG --cflags-only-I libmetalink`
  21774. version=`
  21775. if test -n "$LIBMETALINK_PCDIR"; then
  21776. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  21777. export PKG_CONFIG_LIBDIR
  21778. fi
  21779. $PKGCONFIG --modversion libmetalink`
  21780. libmetalinklib=`echo $addld | $SED -e 's/-L//'`
  21781. fi
  21782. if test -n "$addlib"; then
  21783. clean_CPPFLAGS="$CPPFLAGS"
  21784. clean_LDFLAGS="$LDFLAGS"
  21785. clean_LIBS="$LIBS"
  21786. CPPFLAGS="$clean_CPPFLAGS $addcflags"
  21787. LDFLAGS="$clean_LDFLAGS $addld"
  21788. LIBS="$addlib $clean_LIBS"
  21789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
  21790. $as_echo_n "checking if libmetalink is recent enough... " >&6; }
  21791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21792. /* end confdefs.h. */
  21793. # include <metalink/metalink.h>
  21794. int main (void)
  21795. {
  21796. if(0 != metalink_strerror(0)) /* added in 0.1.0 */
  21797. return 1;
  21798. ;
  21799. return 0;
  21800. }
  21801. _ACEOF
  21802. if ac_fn_c_try_link "$LINENO"; then :
  21803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
  21804. $as_echo "yes ($version)" >&6; }
  21805. want_metalink="yes"
  21806. else
  21807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
  21808. $as_echo "no ($version)" >&6; }
  21809. { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
  21810. $as_echo "$as_me: libmetalink library defective or too old" >&6;}
  21811. want_metalink="no"
  21812. fi
  21813. rm -f core conftest.err conftest.$ac_objext \
  21814. conftest$ac_exeext conftest.$ac_ext
  21815. CPPFLAGS="$clean_CPPFLAGS"
  21816. LDFLAGS="$clean_LDFLAGS"
  21817. LIBS="$clean_LIBS"
  21818. if test "$want_metalink" = "yes"; then
  21819. $as_echo "#define USE_METALINK 1" >>confdefs.h
  21820. LIBMETALINK_LIBS=$addlib
  21821. LIBMETALINK_LDFLAGS=$addld
  21822. LIBMETALINK_CPPFLAGS=$addcflags
  21823. curl_mtlnk_msg="enabled"
  21824. fi
  21825. fi
  21826. fi
  21827. OPT_LIBSSH2=off
  21828. # Check whether --with-libssh2 was given.
  21829. if test "${with_libssh2+set}" = set; then :
  21830. withval=$with_libssh2; OPT_LIBSSH2=$withval
  21831. else
  21832. OPT_LIBSSH2=no
  21833. fi
  21834. OPT_LIBSSH=off
  21835. # Check whether --with-libssh was given.
  21836. if test "${with_libssh+set}" = set; then :
  21837. withval=$with_libssh; OPT_LIBSSH=$withval
  21838. else
  21839. OPT_LIBSSH=no
  21840. fi
  21841. if test X"$OPT_LIBSSH2" != Xno; then
  21842. CLEANLDFLAGS="$LDFLAGS"
  21843. CLEANCPPFLAGS="$CPPFLAGS"
  21844. CLEANLIBS="$LIBS"
  21845. case "$OPT_LIBSSH2" in
  21846. yes)
  21847. if test -n "$PKG_CONFIG"; then
  21848. PKGCONFIG="$PKG_CONFIG"
  21849. else
  21850. if test -n "$ac_tool_prefix"; then
  21851. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21852. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21854. $as_echo_n "checking for $ac_word... " >&6; }
  21855. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21856. $as_echo_n "(cached) " >&6
  21857. else
  21858. case $PKGCONFIG in
  21859. [\\/]* | ?:[\\/]*)
  21860. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21861. ;;
  21862. *)
  21863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21864. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21865. for as_dir in $as_dummy
  21866. do
  21867. IFS=$as_save_IFS
  21868. test -z "$as_dir" && as_dir=.
  21869. for ac_exec_ext in '' $ac_executable_extensions; do
  21870. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21871. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21872. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21873. break 2
  21874. fi
  21875. done
  21876. done
  21877. IFS=$as_save_IFS
  21878. ;;
  21879. esac
  21880. fi
  21881. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21882. if test -n "$PKGCONFIG"; then
  21883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21884. $as_echo "$PKGCONFIG" >&6; }
  21885. else
  21886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21887. $as_echo "no" >&6; }
  21888. fi
  21889. fi
  21890. if test -z "$ac_cv_path_PKGCONFIG"; then
  21891. ac_pt_PKGCONFIG=$PKGCONFIG
  21892. # Extract the first word of "pkg-config", so it can be a program name with args.
  21893. set dummy pkg-config; ac_word=$2
  21894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21895. $as_echo_n "checking for $ac_word... " >&6; }
  21896. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21897. $as_echo_n "(cached) " >&6
  21898. else
  21899. case $ac_pt_PKGCONFIG in
  21900. [\\/]* | ?:[\\/]*)
  21901. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21902. ;;
  21903. *)
  21904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21905. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21906. for as_dir in $as_dummy
  21907. do
  21908. IFS=$as_save_IFS
  21909. test -z "$as_dir" && as_dir=.
  21910. for ac_exec_ext in '' $ac_executable_extensions; do
  21911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21912. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21914. break 2
  21915. fi
  21916. done
  21917. done
  21918. IFS=$as_save_IFS
  21919. ;;
  21920. esac
  21921. fi
  21922. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21923. if test -n "$ac_pt_PKGCONFIG"; then
  21924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21925. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21926. else
  21927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21928. $as_echo "no" >&6; }
  21929. fi
  21930. if test "x$ac_pt_PKGCONFIG" = x; then
  21931. PKGCONFIG="no"
  21932. else
  21933. case $cross_compiling:$ac_tool_warned in
  21934. yes:)
  21935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21937. ac_tool_warned=yes ;;
  21938. esac
  21939. PKGCONFIG=$ac_pt_PKGCONFIG
  21940. fi
  21941. else
  21942. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21943. fi
  21944. fi
  21945. if test "x$PKGCONFIG" != "xno"; then
  21946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
  21947. $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
  21948. itexists=`
  21949. if test -n ""; then
  21950. PKG_CONFIG_LIBDIR=""
  21951. export PKG_CONFIG_LIBDIR
  21952. fi
  21953. $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
  21954. if test -z "$itexists"; then
  21955. PKGCONFIG="no"
  21956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21957. $as_echo "no" >&6; }
  21958. else
  21959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21960. $as_echo "found" >&6; }
  21961. fi
  21962. fi
  21963. if test "$PKGCONFIG" != "no" ; then
  21964. LIB_SSH2=`$PKGCONFIG --libs libssh2`
  21965. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  21966. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  21967. version=`$PKGCONFIG --modversion libssh2`
  21968. DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
  21969. fi
  21970. ;;
  21971. off)
  21972. ;;
  21973. *)
  21974. PREFIX_SSH2=$OPT_LIBSSH2
  21975. ;;
  21976. esac
  21977. if test -n "$PREFIX_SSH2"; then
  21978. LIB_SSH2="-lssh2"
  21979. LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
  21980. CPP_SSH2=-I${PREFIX_SSH2}/include
  21981. DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
  21982. fi
  21983. LDFLAGS="$LDFLAGS $LD_SSH2"
  21984. CPPFLAGS="$CPPFLAGS $CPP_SSH2"
  21985. LIBS="$LIB_SSH2 $LIBS"
  21986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
  21987. $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
  21988. if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
  21989. $as_echo_n "(cached) " >&6
  21990. else
  21991. ac_check_lib_save_LIBS=$LIBS
  21992. LIBS="-lssh2 $LIBS"
  21993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21994. /* end confdefs.h. */
  21995. #ifdef __cplusplus
  21996. extern "C"
  21997. #endif
  21998. char libssh2_channel_open_ex ();
  21999. int main (void)
  22000. {
  22001. return libssh2_channel_open_ex ();
  22002. ;
  22003. return 0;
  22004. }
  22005. _ACEOF
  22006. if ac_fn_c_try_link "$LINENO"; then :
  22007. ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
  22008. else
  22009. ac_cv_lib_ssh2_libssh2_channel_open_ex=no
  22010. fi
  22011. rm -f core conftest.err conftest.$ac_objext \
  22012. conftest$ac_exeext conftest.$ac_ext
  22013. LIBS=$ac_check_lib_save_LIBS
  22014. fi
  22015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
  22016. $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
  22017. if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
  22018. cat >>confdefs.h <<_ACEOF
  22019. #define HAVE_LIBSSH2 1
  22020. _ACEOF
  22021. LIBS="-lssh2 $LIBS"
  22022. fi
  22023. for ac_header in libssh2.h
  22024. do :
  22025. ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
  22026. if test "x$ac_cv_header_libssh2_h" = xyes; then :
  22027. cat >>confdefs.h <<_ACEOF
  22028. #define HAVE_LIBSSH2_H 1
  22029. _ACEOF
  22030. curl_ssh_msg="enabled (libSSH2)"
  22031. LIBSSH2_ENABLED=1
  22032. $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
  22033. USE_LIBSSH2=1
  22034. fi
  22035. done
  22036. if test X"$OPT_LIBSSH2" != Xoff &&
  22037. test "$LIBSSH2_ENABLED" != "1"; then
  22038. as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
  22039. fi
  22040. if test "$LIBSSH2_ENABLED" = "1"; then
  22041. if test -n "$DIR_SSH2"; then
  22042. if test "x$cross_compiling" != "xyes"; then
  22043. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
  22044. export CURL_LIBRARY_PATH
  22045. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
  22046. $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
  22047. fi
  22048. fi
  22049. else
  22050. LDFLAGS=$CLEANLDFLAGS
  22051. CPPFLAGS=$CLEANCPPFLAGS
  22052. LIBS=$CLEANLIBS
  22053. fi
  22054. elif test X"$OPT_LIBSSH" != Xno; then
  22055. CLEANLDFLAGS="$LDFLAGS"
  22056. CLEANCPPFLAGS="$CPPFLAGS"
  22057. CLEANLIBS="$LIBS"
  22058. case "$OPT_LIBSSH" in
  22059. yes)
  22060. if test -n "$PKG_CONFIG"; then
  22061. PKGCONFIG="$PKG_CONFIG"
  22062. else
  22063. if test -n "$ac_tool_prefix"; then
  22064. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22065. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22067. $as_echo_n "checking for $ac_word... " >&6; }
  22068. if ${ac_cv_path_PKGCONFIG+:} false; then :
  22069. $as_echo_n "(cached) " >&6
  22070. else
  22071. case $PKGCONFIG in
  22072. [\\/]* | ?:[\\/]*)
  22073. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22074. ;;
  22075. *)
  22076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22077. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22078. for as_dir in $as_dummy
  22079. do
  22080. IFS=$as_save_IFS
  22081. test -z "$as_dir" && as_dir=.
  22082. for ac_exec_ext in '' $ac_executable_extensions; do
  22083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22084. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22086. break 2
  22087. fi
  22088. done
  22089. done
  22090. IFS=$as_save_IFS
  22091. ;;
  22092. esac
  22093. fi
  22094. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22095. if test -n "$PKGCONFIG"; then
  22096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22097. $as_echo "$PKGCONFIG" >&6; }
  22098. else
  22099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22100. $as_echo "no" >&6; }
  22101. fi
  22102. fi
  22103. if test -z "$ac_cv_path_PKGCONFIG"; then
  22104. ac_pt_PKGCONFIG=$PKGCONFIG
  22105. # Extract the first word of "pkg-config", so it can be a program name with args.
  22106. set dummy pkg-config; ac_word=$2
  22107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22108. $as_echo_n "checking for $ac_word... " >&6; }
  22109. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  22110. $as_echo_n "(cached) " >&6
  22111. else
  22112. case $ac_pt_PKGCONFIG in
  22113. [\\/]* | ?:[\\/]*)
  22114. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22115. ;;
  22116. *)
  22117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22118. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22119. for as_dir in $as_dummy
  22120. do
  22121. IFS=$as_save_IFS
  22122. test -z "$as_dir" && as_dir=.
  22123. for ac_exec_ext in '' $ac_executable_extensions; do
  22124. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22125. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22126. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22127. break 2
  22128. fi
  22129. done
  22130. done
  22131. IFS=$as_save_IFS
  22132. ;;
  22133. esac
  22134. fi
  22135. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22136. if test -n "$ac_pt_PKGCONFIG"; then
  22137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22138. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  22139. else
  22140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22141. $as_echo "no" >&6; }
  22142. fi
  22143. if test "x$ac_pt_PKGCONFIG" = x; then
  22144. PKGCONFIG="no"
  22145. else
  22146. case $cross_compiling:$ac_tool_warned in
  22147. yes:)
  22148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22149. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22150. ac_tool_warned=yes ;;
  22151. esac
  22152. PKGCONFIG=$ac_pt_PKGCONFIG
  22153. fi
  22154. else
  22155. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22156. fi
  22157. fi
  22158. if test "x$PKGCONFIG" != "xno"; then
  22159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
  22160. $as_echo_n "checking for libssh options with pkg-config... " >&6; }
  22161. itexists=`
  22162. if test -n ""; then
  22163. PKG_CONFIG_LIBDIR=""
  22164. export PKG_CONFIG_LIBDIR
  22165. fi
  22166. $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
  22167. if test -z "$itexists"; then
  22168. PKGCONFIG="no"
  22169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22170. $as_echo "no" >&6; }
  22171. else
  22172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22173. $as_echo "found" >&6; }
  22174. fi
  22175. fi
  22176. if test "$PKGCONFIG" != "no" ; then
  22177. LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
  22178. LD_SSH=`$PKGCONFIG --libs-only-L libssh`
  22179. CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
  22180. version=`$PKGCONFIG --modversion libssh`
  22181. DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
  22182. fi
  22183. ;;
  22184. off)
  22185. ;;
  22186. *)
  22187. PREFIX_SSH=$OPT_LIBSSH
  22188. ;;
  22189. esac
  22190. if test -n "$PREFIX_SSH"; then
  22191. LIB_SSH="-lssh"
  22192. LD_SSH=-L${PREFIX_SSH}/lib$libsuff
  22193. CPP_SSH=-I${PREFIX_SSH}/include
  22194. DIR_SSH=${PREFIX_SSH}/lib$libsuff
  22195. fi
  22196. LDFLAGS="$LDFLAGS $LD_SSH"
  22197. CPPFLAGS="$CPPFLAGS $CPP_SSH"
  22198. LIBS="$LIB_SSH $LIBS"
  22199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
  22200. $as_echo_n "checking for ssh_new in -lssh... " >&6; }
  22201. if ${ac_cv_lib_ssh_ssh_new+:} false; then :
  22202. $as_echo_n "(cached) " >&6
  22203. else
  22204. ac_check_lib_save_LIBS=$LIBS
  22205. LIBS="-lssh $LIBS"
  22206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22207. /* end confdefs.h. */
  22208. #ifdef __cplusplus
  22209. extern "C"
  22210. #endif
  22211. char ssh_new ();
  22212. int main (void)
  22213. {
  22214. return ssh_new ();
  22215. ;
  22216. return 0;
  22217. }
  22218. _ACEOF
  22219. if ac_fn_c_try_link "$LINENO"; then :
  22220. ac_cv_lib_ssh_ssh_new=yes
  22221. else
  22222. ac_cv_lib_ssh_ssh_new=no
  22223. fi
  22224. rm -f core conftest.err conftest.$ac_objext \
  22225. conftest$ac_exeext conftest.$ac_ext
  22226. LIBS=$ac_check_lib_save_LIBS
  22227. fi
  22228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
  22229. $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
  22230. if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
  22231. cat >>confdefs.h <<_ACEOF
  22232. #define HAVE_LIBSSH 1
  22233. _ACEOF
  22234. LIBS="-lssh $LIBS"
  22235. fi
  22236. for ac_header in libssh/libssh.h
  22237. do :
  22238. ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
  22239. if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
  22240. cat >>confdefs.h <<_ACEOF
  22241. #define HAVE_LIBSSH_LIBSSH_H 1
  22242. _ACEOF
  22243. curl_ssh_msg="enabled (libSSH)"
  22244. LIBSSH_ENABLED=1
  22245. $as_echo "#define USE_LIBSSH 1" >>confdefs.h
  22246. USE_LIBSSH=1
  22247. fi
  22248. done
  22249. if test X"$OPT_LIBSSH" != Xoff &&
  22250. test "$LIBSSH_ENABLED" != "1"; then
  22251. as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
  22252. fi
  22253. if test "$LIBSSH_ENABLED" = "1"; then
  22254. if test -n "$DIR_SSH"; then
  22255. if test "x$cross_compiling" != "xyes"; then
  22256. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
  22257. export CURL_LIBRARY_PATH
  22258. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
  22259. $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
  22260. fi
  22261. fi
  22262. else
  22263. LDFLAGS=$CLEANLDFLAGS
  22264. CPPFLAGS=$CLEANCPPFLAGS
  22265. LIBS=$CLEANLIBS
  22266. fi
  22267. fi
  22268. OPT_LIBRTMP=off
  22269. # Check whether --with-librtmp was given.
  22270. if test "${with_librtmp+set}" = set; then :
  22271. withval=$with_librtmp; OPT_LIBRTMP=$withval
  22272. fi
  22273. if test X"$OPT_LIBRTMP" != Xno; then
  22274. CLEANLDFLAGS="$LDFLAGS"
  22275. CLEANCPPFLAGS="$CPPFLAGS"
  22276. CLEANLIBS="$LIBS"
  22277. case "$OPT_LIBRTMP" in
  22278. yes)
  22279. if test -n "$PKG_CONFIG"; then
  22280. PKGCONFIG="$PKG_CONFIG"
  22281. else
  22282. if test -n "$ac_tool_prefix"; then
  22283. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22284. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22286. $as_echo_n "checking for $ac_word... " >&6; }
  22287. if ${ac_cv_path_PKGCONFIG+:} false; then :
  22288. $as_echo_n "(cached) " >&6
  22289. else
  22290. case $PKGCONFIG in
  22291. [\\/]* | ?:[\\/]*)
  22292. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22293. ;;
  22294. *)
  22295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22296. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22297. for as_dir in $as_dummy
  22298. do
  22299. IFS=$as_save_IFS
  22300. test -z "$as_dir" && as_dir=.
  22301. for ac_exec_ext in '' $ac_executable_extensions; do
  22302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22303. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22305. break 2
  22306. fi
  22307. done
  22308. done
  22309. IFS=$as_save_IFS
  22310. ;;
  22311. esac
  22312. fi
  22313. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22314. if test -n "$PKGCONFIG"; then
  22315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22316. $as_echo "$PKGCONFIG" >&6; }
  22317. else
  22318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22319. $as_echo "no" >&6; }
  22320. fi
  22321. fi
  22322. if test -z "$ac_cv_path_PKGCONFIG"; then
  22323. ac_pt_PKGCONFIG=$PKGCONFIG
  22324. # Extract the first word of "pkg-config", so it can be a program name with args.
  22325. set dummy pkg-config; ac_word=$2
  22326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22327. $as_echo_n "checking for $ac_word... " >&6; }
  22328. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  22329. $as_echo_n "(cached) " >&6
  22330. else
  22331. case $ac_pt_PKGCONFIG in
  22332. [\\/]* | ?:[\\/]*)
  22333. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22334. ;;
  22335. *)
  22336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22337. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22338. for as_dir in $as_dummy
  22339. do
  22340. IFS=$as_save_IFS
  22341. test -z "$as_dir" && as_dir=.
  22342. for ac_exec_ext in '' $ac_executable_extensions; do
  22343. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22344. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22346. break 2
  22347. fi
  22348. done
  22349. done
  22350. IFS=$as_save_IFS
  22351. ;;
  22352. esac
  22353. fi
  22354. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22355. if test -n "$ac_pt_PKGCONFIG"; then
  22356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22357. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  22358. else
  22359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22360. $as_echo "no" >&6; }
  22361. fi
  22362. if test "x$ac_pt_PKGCONFIG" = x; then
  22363. PKGCONFIG="no"
  22364. else
  22365. case $cross_compiling:$ac_tool_warned in
  22366. yes:)
  22367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22368. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22369. ac_tool_warned=yes ;;
  22370. esac
  22371. PKGCONFIG=$ac_pt_PKGCONFIG
  22372. fi
  22373. else
  22374. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22375. fi
  22376. fi
  22377. if test "x$PKGCONFIG" != "xno"; then
  22378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
  22379. $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
  22380. itexists=`
  22381. if test -n ""; then
  22382. PKG_CONFIG_LIBDIR=""
  22383. export PKG_CONFIG_LIBDIR
  22384. fi
  22385. $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
  22386. if test -z "$itexists"; then
  22387. PKGCONFIG="no"
  22388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22389. $as_echo "no" >&6; }
  22390. else
  22391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22392. $as_echo "found" >&6; }
  22393. fi
  22394. fi
  22395. if test "$PKGCONFIG" != "no" ; then
  22396. LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
  22397. LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
  22398. CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
  22399. version=`$PKGCONFIG --modversion librtmp`
  22400. DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
  22401. else
  22402. as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
  22403. fi
  22404. ;;
  22405. off)
  22406. LIB_RTMP="-lrtmp"
  22407. ;;
  22408. *)
  22409. LIB_RTMP="-lrtmp"
  22410. PREFIX_RTMP=$OPT_LIBRTMP
  22411. ;;
  22412. esac
  22413. if test -n "$PREFIX_RTMP"; then
  22414. LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
  22415. CPP_RTMP=-I${PREFIX_RTMP}/include
  22416. DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
  22417. fi
  22418. LDFLAGS="$LDFLAGS $LD_RTMP"
  22419. CPPFLAGS="$CPPFLAGS $CPP_RTMP"
  22420. LIBS="$LIB_RTMP $LIBS"
  22421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
  22422. $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
  22423. if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
  22424. $as_echo_n "(cached) " >&6
  22425. else
  22426. ac_check_lib_save_LIBS=$LIBS
  22427. LIBS="-lrtmp $LIBS"
  22428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22429. /* end confdefs.h. */
  22430. #ifdef __cplusplus
  22431. extern "C"
  22432. #endif
  22433. char RTMP_Init ();
  22434. int main (void)
  22435. {
  22436. return RTMP_Init ();
  22437. ;
  22438. return 0;
  22439. }
  22440. _ACEOF
  22441. if ac_fn_c_try_link "$LINENO"; then :
  22442. ac_cv_lib_rtmp_RTMP_Init=yes
  22443. else
  22444. ac_cv_lib_rtmp_RTMP_Init=no
  22445. fi
  22446. rm -f core conftest.err conftest.$ac_objext \
  22447. conftest$ac_exeext conftest.$ac_ext
  22448. LIBS=$ac_check_lib_save_LIBS
  22449. fi
  22450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
  22451. $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
  22452. if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
  22453. for ac_header in librtmp/rtmp.h
  22454. do :
  22455. ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
  22456. if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
  22457. cat >>confdefs.h <<_ACEOF
  22458. #define HAVE_LIBRTMP_RTMP_H 1
  22459. _ACEOF
  22460. curl_rtmp_msg="enabled (librtmp)"
  22461. LIBRTMP_ENABLED=1
  22462. $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
  22463. USE_LIBRTMP=1
  22464. fi
  22465. done
  22466. else
  22467. LDFLAGS=$CLEANLDFLAGS
  22468. CPPFLAGS=$CLEANCPPFLAGS
  22469. LIBS=$CLEANLIBS
  22470. fi
  22471. if test X"$OPT_LIBRTMP" != Xoff &&
  22472. test "$LIBRTMP_ENABLED" != "1"; then
  22473. as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
  22474. fi
  22475. fi
  22476. versioned_symbols_flavour=
  22477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
  22478. $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
  22479. # Check whether --enable-versioned-symbols was given.
  22480. if test "${enable_versioned_symbols+set}" = set; then :
  22481. enableval=$enable_versioned_symbols; case "$enableval" in
  22482. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22483. $as_echo "yes" >&6; }
  22484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  22485. $as_echo_n "checking if libraries can be versioned... " >&6; }
  22486. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  22487. if test -z "$GLD"; then
  22488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22489. $as_echo "no" >&6; }
  22490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
  22491. $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
  22492. else
  22493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22494. $as_echo "yes" >&6; }
  22495. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  22496. versioned_symbols_flavour="MULTISSL_"
  22497. elif test "x$OPENSSL_ENABLED" = "x1"; then
  22498. versioned_symbols_flavour="OPENSSL_"
  22499. elif test "x$GNUTLS_ENABLED" = "x1"; then
  22500. versioned_symbols_flavour="GNUTLS_"
  22501. elif test "x$NSS_ENABLED" = "x1"; then
  22502. versioned_symbols_flavour="NSS_"
  22503. elif test "x$POLARSSL_ENABLED" = "x1"; then
  22504. versioned_symbols_flavour="POLARSSL_"
  22505. elif test "x$CYASSL_ENABLED" = "x1"; then
  22506. versioned_symbols_flavour="CYASSL_"
  22507. elif test "x$AXTLS_ENABLED" = "x1"; then
  22508. versioned_symbols_flavour="AXTLS_"
  22509. elif test "x$WINSSL_ENABLED" = "x1"; then
  22510. versioned_symbols_flavour="WINSSL_"
  22511. elif test "x$DARWINSSL_ENABLED" = "x1"; then
  22512. versioned_symbols_flavour="DARWINSSL_"
  22513. else
  22514. versioned_symbols_flavour=""
  22515. fi
  22516. versioned_symbols="yes"
  22517. fi
  22518. ;;
  22519. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22520. $as_echo "no" >&6; }
  22521. ;;
  22522. esac
  22523. else
  22524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22525. $as_echo "no" >&6; }
  22526. fi
  22527. CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
  22528. if test "x$versioned_symbols" = 'xyes'; then
  22529. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
  22530. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
  22531. else
  22532. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
  22533. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
  22534. fi
  22535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
  22536. $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
  22537. OPT_WINIDN="default"
  22538. # Check whether --with-winidn was given.
  22539. if test "${with_winidn+set}" = set; then :
  22540. withval=$with_winidn; OPT_WINIDN=$withval
  22541. fi
  22542. case "$OPT_WINIDN" in
  22543. no|default)
  22544. want_winidn="no"
  22545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22546. $as_echo "no" >&6; }
  22547. ;;
  22548. yes)
  22549. want_winidn="yes"
  22550. want_winidn_path="default"
  22551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22552. $as_echo "yes" >&6; }
  22553. ;;
  22554. *)
  22555. want_winidn="yes"
  22556. want_winidn_path="$withval"
  22557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  22558. $as_echo "yes ($withval)" >&6; }
  22559. ;;
  22560. esac
  22561. if test "$want_winidn" = "yes"; then
  22562. clean_CPPFLAGS="$CPPFLAGS"
  22563. clean_LDFLAGS="$LDFLAGS"
  22564. clean_LIBS="$LIBS"
  22565. WINIDN_LIBS="-lnormaliz"
  22566. WINIDN_CPPFLAGS="-DWINVER=0x0600"
  22567. #
  22568. if test "$want_winidn_path" != "default"; then
  22569. WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
  22570. WINIDN_CPPFLAGS="-I$want_winidn_path/include"
  22571. WINIDN_DIR="$want_winidn_path/lib$libsuff"
  22572. fi
  22573. #
  22574. CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
  22575. LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
  22576. LIBS="$WINIDN_LIBS $LIBS"
  22577. #
  22578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
  22579. $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
  22580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22581. /* end confdefs.h. */
  22582. #include <windows.h>
  22583. int main (void)
  22584. {
  22585. IdnToUnicode(0, NULL, 0, NULL, 0);
  22586. ;
  22587. return 0;
  22588. }
  22589. _ACEOF
  22590. if ac_fn_c_try_link "$LINENO"; then :
  22591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22592. $as_echo "yes" >&6; }
  22593. tst_links_winidn="yes"
  22594. else
  22595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22596. $as_echo "no" >&6; }
  22597. tst_links_winidn="no"
  22598. fi
  22599. rm -f core conftest.err conftest.$ac_objext \
  22600. conftest$ac_exeext conftest.$ac_ext
  22601. #
  22602. if test "$tst_links_winidn" = "yes"; then
  22603. $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
  22604. $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
  22605. IDN_ENABLED=1
  22606. curl_idn_msg="enabled (Windows-native)"
  22607. else
  22608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  22609. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  22610. CPPFLAGS="$clean_CPPFLAGS"
  22611. LDFLAGS="$clean_LDFLAGS"
  22612. LIBS="$clean_LIBS"
  22613. fi
  22614. fi
  22615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
  22616. $as_echo_n "checking whether to build with libidn2... " >&6; }
  22617. OPT_IDN="default"
  22618. # Check whether --with-libidn2 was given.
  22619. if test "${with_libidn2+set}" = set; then :
  22620. withval=$with_libidn2; OPT_IDN=$withval
  22621. fi
  22622. case "$OPT_IDN" in
  22623. no)
  22624. want_idn="no"
  22625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22626. $as_echo "no" >&6; }
  22627. ;;
  22628. default)
  22629. want_idn="yes"
  22630. want_idn_path="default"
  22631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  22632. $as_echo "(assumed) yes" >&6; }
  22633. ;;
  22634. yes)
  22635. want_idn="yes"
  22636. want_idn_path="default"
  22637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22638. $as_echo "yes" >&6; }
  22639. ;;
  22640. *)
  22641. want_idn="yes"
  22642. want_idn_path="$withval"
  22643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  22644. $as_echo "yes ($withval)" >&6; }
  22645. ;;
  22646. esac
  22647. if test "$want_idn" = "yes"; then
  22648. clean_CPPFLAGS="$CPPFLAGS"
  22649. clean_LDFLAGS="$LDFLAGS"
  22650. clean_LIBS="$LIBS"
  22651. PKGCONFIG="no"
  22652. #
  22653. if test "$want_idn_path" != "default"; then
  22654. IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
  22655. if test -n "$PKG_CONFIG"; then
  22656. PKGCONFIG="$PKG_CONFIG"
  22657. else
  22658. if test -n "$ac_tool_prefix"; then
  22659. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22660. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22662. $as_echo_n "checking for $ac_word... " >&6; }
  22663. if ${ac_cv_path_PKGCONFIG+:} false; then :
  22664. $as_echo_n "(cached) " >&6
  22665. else
  22666. case $PKGCONFIG in
  22667. [\\/]* | ?:[\\/]*)
  22668. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22669. ;;
  22670. *)
  22671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22672. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22673. for as_dir in $as_dummy
  22674. do
  22675. IFS=$as_save_IFS
  22676. test -z "$as_dir" && as_dir=.
  22677. for ac_exec_ext in '' $ac_executable_extensions; do
  22678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22679. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22681. break 2
  22682. fi
  22683. done
  22684. done
  22685. IFS=$as_save_IFS
  22686. ;;
  22687. esac
  22688. fi
  22689. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22690. if test -n "$PKGCONFIG"; then
  22691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22692. $as_echo "$PKGCONFIG" >&6; }
  22693. else
  22694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22695. $as_echo "no" >&6; }
  22696. fi
  22697. fi
  22698. if test -z "$ac_cv_path_PKGCONFIG"; then
  22699. ac_pt_PKGCONFIG=$PKGCONFIG
  22700. # Extract the first word of "pkg-config", so it can be a program name with args.
  22701. set dummy pkg-config; ac_word=$2
  22702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22703. $as_echo_n "checking for $ac_word... " >&6; }
  22704. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  22705. $as_echo_n "(cached) " >&6
  22706. else
  22707. case $ac_pt_PKGCONFIG in
  22708. [\\/]* | ?:[\\/]*)
  22709. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22710. ;;
  22711. *)
  22712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22713. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22714. for as_dir in $as_dummy
  22715. do
  22716. IFS=$as_save_IFS
  22717. test -z "$as_dir" && as_dir=.
  22718. for ac_exec_ext in '' $ac_executable_extensions; do
  22719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22720. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22722. break 2
  22723. fi
  22724. done
  22725. done
  22726. IFS=$as_save_IFS
  22727. ;;
  22728. esac
  22729. fi
  22730. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22731. if test -n "$ac_pt_PKGCONFIG"; then
  22732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22733. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  22734. else
  22735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22736. $as_echo "no" >&6; }
  22737. fi
  22738. if test "x$ac_pt_PKGCONFIG" = x; then
  22739. PKGCONFIG="no"
  22740. else
  22741. case $cross_compiling:$ac_tool_warned in
  22742. yes:)
  22743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22745. ac_tool_warned=yes ;;
  22746. esac
  22747. PKGCONFIG=$ac_pt_PKGCONFIG
  22748. fi
  22749. else
  22750. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22751. fi
  22752. fi
  22753. if test "x$PKGCONFIG" != "xno"; then
  22754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  22755. $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
  22756. itexists=`
  22757. if test -n "$IDN_PCDIR"; then
  22758. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  22759. export PKG_CONFIG_LIBDIR
  22760. fi
  22761. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  22762. if test -z "$itexists"; then
  22763. PKGCONFIG="no"
  22764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22765. $as_echo "no" >&6; }
  22766. else
  22767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22768. $as_echo "found" >&6; }
  22769. fi
  22770. fi
  22771. if test "$PKGCONFIG" != "no"; then
  22772. IDN_LIBS=`
  22773. if test -n "$IDN_PCDIR"; then
  22774. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  22775. export PKG_CONFIG_LIBDIR
  22776. fi
  22777. $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  22778. IDN_LDFLAGS=`
  22779. if test -n "$IDN_PCDIR"; then
  22780. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  22781. export PKG_CONFIG_LIBDIR
  22782. fi
  22783. $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  22784. IDN_CPPFLAGS=`
  22785. if test -n "$IDN_PCDIR"; then
  22786. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  22787. export PKG_CONFIG_LIBDIR
  22788. fi
  22789. $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  22790. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  22791. else
  22792. IDN_LIBS="-lidn2"
  22793. IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
  22794. IDN_CPPFLAGS="-I$want_idn_path/include"
  22795. IDN_DIR="$want_idn_path/lib$libsuff"
  22796. fi
  22797. else
  22798. if test -n "$PKG_CONFIG"; then
  22799. PKGCONFIG="$PKG_CONFIG"
  22800. else
  22801. if test -n "$ac_tool_prefix"; then
  22802. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  22803. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  22804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22805. $as_echo_n "checking for $ac_word... " >&6; }
  22806. if ${ac_cv_path_PKGCONFIG+:} false; then :
  22807. $as_echo_n "(cached) " >&6
  22808. else
  22809. case $PKGCONFIG in
  22810. [\\/]* | ?:[\\/]*)
  22811. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  22812. ;;
  22813. *)
  22814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22815. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22816. for as_dir in $as_dummy
  22817. do
  22818. IFS=$as_save_IFS
  22819. test -z "$as_dir" && as_dir=.
  22820. for ac_exec_ext in '' $ac_executable_extensions; do
  22821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22822. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22824. break 2
  22825. fi
  22826. done
  22827. done
  22828. IFS=$as_save_IFS
  22829. ;;
  22830. esac
  22831. fi
  22832. PKGCONFIG=$ac_cv_path_PKGCONFIG
  22833. if test -n "$PKGCONFIG"; then
  22834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  22835. $as_echo "$PKGCONFIG" >&6; }
  22836. else
  22837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22838. $as_echo "no" >&6; }
  22839. fi
  22840. fi
  22841. if test -z "$ac_cv_path_PKGCONFIG"; then
  22842. ac_pt_PKGCONFIG=$PKGCONFIG
  22843. # Extract the first word of "pkg-config", so it can be a program name with args.
  22844. set dummy pkg-config; ac_word=$2
  22845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22846. $as_echo_n "checking for $ac_word... " >&6; }
  22847. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  22848. $as_echo_n "(cached) " >&6
  22849. else
  22850. case $ac_pt_PKGCONFIG in
  22851. [\\/]* | ?:[\\/]*)
  22852. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  22853. ;;
  22854. *)
  22855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22856. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  22857. for as_dir in $as_dummy
  22858. do
  22859. IFS=$as_save_IFS
  22860. test -z "$as_dir" && as_dir=.
  22861. for ac_exec_ext in '' $ac_executable_extensions; do
  22862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22863. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  22864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22865. break 2
  22866. fi
  22867. done
  22868. done
  22869. IFS=$as_save_IFS
  22870. ;;
  22871. esac
  22872. fi
  22873. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  22874. if test -n "$ac_pt_PKGCONFIG"; then
  22875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  22876. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  22877. else
  22878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22879. $as_echo "no" >&6; }
  22880. fi
  22881. if test "x$ac_pt_PKGCONFIG" = x; then
  22882. PKGCONFIG="no"
  22883. else
  22884. case $cross_compiling:$ac_tool_warned in
  22885. yes:)
  22886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22887. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22888. ac_tool_warned=yes ;;
  22889. esac
  22890. PKGCONFIG=$ac_pt_PKGCONFIG
  22891. fi
  22892. else
  22893. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  22894. fi
  22895. fi
  22896. if test "x$PKGCONFIG" != "xno"; then
  22897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
  22898. $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
  22899. itexists=`
  22900. if test -n ""; then
  22901. PKG_CONFIG_LIBDIR=""
  22902. export PKG_CONFIG_LIBDIR
  22903. fi
  22904. $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
  22905. if test -z "$itexists"; then
  22906. PKGCONFIG="no"
  22907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22908. $as_echo "no" >&6; }
  22909. else
  22910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  22911. $as_echo "found" >&6; }
  22912. fi
  22913. fi
  22914. if test "$PKGCONFIG" != "no"; then
  22915. IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
  22916. IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
  22917. IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
  22918. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  22919. else
  22920. IDN_LIBS="-lidn2"
  22921. fi
  22922. fi
  22923. #
  22924. if test "$PKGCONFIG" != "no"; then
  22925. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
  22926. $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  22927. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  22928. $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  22929. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  22930. $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  22931. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
  22932. $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
  22933. else
  22934. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
  22935. $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  22936. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  22937. $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  22938. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  22939. $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  22940. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
  22941. $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
  22942. fi
  22943. #
  22944. CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
  22945. LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
  22946. LIBS="$IDN_LIBS $LIBS"
  22947. #
  22948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
  22949. $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
  22950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22951. /* end confdefs.h. */
  22952. #define idn2_lookup_ul innocuous_idn2_lookup_ul
  22953. #ifdef __STDC__
  22954. # include <limits.h>
  22955. #else
  22956. # include <assert.h>
  22957. #endif
  22958. #undef idn2_lookup_ul
  22959. #ifdef __cplusplus
  22960. extern "C"
  22961. #endif
  22962. char idn2_lookup_ul ();
  22963. #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
  22964. choke me
  22965. #endif
  22966. int main (void)
  22967. {
  22968. return idn2_lookup_ul ();
  22969. ;
  22970. return 0;
  22971. }
  22972. _ACEOF
  22973. if ac_fn_c_try_link "$LINENO"; then :
  22974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22975. $as_echo "yes" >&6; }
  22976. tst_links_libidn="yes"
  22977. else
  22978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22979. $as_echo "no" >&6; }
  22980. tst_links_libidn="no"
  22981. fi
  22982. rm -f core conftest.err conftest.$ac_objext \
  22983. conftest$ac_exeext conftest.$ac_ext
  22984. #
  22985. for ac_header in idn2.h
  22986. do :
  22987. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22988. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  22989. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22990. cat >>confdefs.h <<_ACEOF
  22991. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22992. _ACEOF
  22993. fi
  22994. done
  22995. if test "$tst_links_libidn" = "yes"; then
  22996. $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
  22997. IDN_ENABLED=1
  22998. curl_idn_msg="enabled (libidn2)"
  22999. if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
  23000. CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
  23001. export CURL_LIBRARY_PATH
  23002. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
  23003. $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
  23004. fi
  23005. else
  23006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  23007. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  23008. CPPFLAGS="$clean_CPPFLAGS"
  23009. LDFLAGS="$clean_LDFLAGS"
  23010. LIBS="$clean_LIBS"
  23011. fi
  23012. fi
  23013. OPT_H2="yes"
  23014. if test "x$disable_http" = "xyes"; then
  23015. # without HTTP, nghttp2 is no use
  23016. OPT_H2="no"
  23017. fi
  23018. # Check whether --with-nghttp2 was given.
  23019. if test "${with_nghttp2+set}" = set; then :
  23020. withval=$with_nghttp2; OPT_H2=$withval
  23021. fi
  23022. case "$OPT_H2" in
  23023. no)
  23024. want_h2="no"
  23025. ;;
  23026. yes)
  23027. want_h2="default"
  23028. want_h2_path=""
  23029. ;;
  23030. *)
  23031. want_h2="yes"
  23032. want_h2_path="$withval/lib/pkgconfig"
  23033. ;;
  23034. esac
  23035. curl_h2_msg="disabled (--with-nghttp2)"
  23036. if test X"$want_h2" != Xno; then
  23037. CLEANLDFLAGS="$LDFLAGS"
  23038. CLEANCPPFLAGS="$CPPFLAGS"
  23039. CLEANLIBS="$LIBS"
  23040. if test -n "$PKG_CONFIG"; then
  23041. PKGCONFIG="$PKG_CONFIG"
  23042. else
  23043. if test -n "$ac_tool_prefix"; then
  23044. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  23045. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  23046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23047. $as_echo_n "checking for $ac_word... " >&6; }
  23048. if ${ac_cv_path_PKGCONFIG+:} false; then :
  23049. $as_echo_n "(cached) " >&6
  23050. else
  23051. case $PKGCONFIG in
  23052. [\\/]* | ?:[\\/]*)
  23053. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  23054. ;;
  23055. *)
  23056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23057. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23058. for as_dir in $as_dummy
  23059. do
  23060. IFS=$as_save_IFS
  23061. test -z "$as_dir" && as_dir=.
  23062. for ac_exec_ext in '' $ac_executable_extensions; do
  23063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23064. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  23065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23066. break 2
  23067. fi
  23068. done
  23069. done
  23070. IFS=$as_save_IFS
  23071. ;;
  23072. esac
  23073. fi
  23074. PKGCONFIG=$ac_cv_path_PKGCONFIG
  23075. if test -n "$PKGCONFIG"; then
  23076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  23077. $as_echo "$PKGCONFIG" >&6; }
  23078. else
  23079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23080. $as_echo "no" >&6; }
  23081. fi
  23082. fi
  23083. if test -z "$ac_cv_path_PKGCONFIG"; then
  23084. ac_pt_PKGCONFIG=$PKGCONFIG
  23085. # Extract the first word of "pkg-config", so it can be a program name with args.
  23086. set dummy pkg-config; ac_word=$2
  23087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23088. $as_echo_n "checking for $ac_word... " >&6; }
  23089. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  23090. $as_echo_n "(cached) " >&6
  23091. else
  23092. case $ac_pt_PKGCONFIG in
  23093. [\\/]* | ?:[\\/]*)
  23094. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  23095. ;;
  23096. *)
  23097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23098. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  23099. for as_dir in $as_dummy
  23100. do
  23101. IFS=$as_save_IFS
  23102. test -z "$as_dir" && as_dir=.
  23103. for ac_exec_ext in '' $ac_executable_extensions; do
  23104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23105. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  23106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23107. break 2
  23108. fi
  23109. done
  23110. done
  23111. IFS=$as_save_IFS
  23112. ;;
  23113. esac
  23114. fi
  23115. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  23116. if test -n "$ac_pt_PKGCONFIG"; then
  23117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  23118. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  23119. else
  23120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23121. $as_echo "no" >&6; }
  23122. fi
  23123. if test "x$ac_pt_PKGCONFIG" = x; then
  23124. PKGCONFIG="no"
  23125. else
  23126. case $cross_compiling:$ac_tool_warned in
  23127. yes:)
  23128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23130. ac_tool_warned=yes ;;
  23131. esac
  23132. PKGCONFIG=$ac_pt_PKGCONFIG
  23133. fi
  23134. else
  23135. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  23136. fi
  23137. fi
  23138. if test "x$PKGCONFIG" != "xno"; then
  23139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
  23140. $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
  23141. itexists=`
  23142. if test -n "$want_h2_path"; then
  23143. PKG_CONFIG_LIBDIR="$want_h2_path"
  23144. export PKG_CONFIG_LIBDIR
  23145. fi
  23146. $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
  23147. if test -z "$itexists"; then
  23148. PKGCONFIG="no"
  23149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23150. $as_echo "no" >&6; }
  23151. else
  23152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  23153. $as_echo "found" >&6; }
  23154. fi
  23155. fi
  23156. if test "$PKGCONFIG" != "no" ; then
  23157. LIB_H2=`
  23158. if test -n "$want_h2_path"; then
  23159. PKG_CONFIG_LIBDIR="$want_h2_path"
  23160. export PKG_CONFIG_LIBDIR
  23161. fi
  23162. $PKGCONFIG --libs-only-l libnghttp2`
  23163. { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
  23164. $as_echo "$as_me: -l is $LIB_H2" >&6;}
  23165. CPP_H2=`
  23166. if test -n "$want_h2_path"; then
  23167. PKG_CONFIG_LIBDIR="$want_h2_path"
  23168. export PKG_CONFIG_LIBDIR
  23169. fi
  23170. $PKGCONFIG --cflags-only-I libnghttp2`
  23171. { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
  23172. $as_echo "$as_me: -I is $CPP_H2" >&6;}
  23173. LD_H2=`
  23174. if test -n "$want_h2_path"; then
  23175. PKG_CONFIG_LIBDIR="$want_h2_path"
  23176. export PKG_CONFIG_LIBDIR
  23177. fi
  23178. $PKGCONFIG --libs-only-L libnghttp2`
  23179. { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
  23180. $as_echo "$as_me: -L is $LD_H2" >&6;}
  23181. LDFLAGS="$LDFLAGS $LD_H2"
  23182. CPPFLAGS="$CPPFLAGS $CPP_H2"
  23183. LIBS="$LIB_H2 $LIBS"
  23184. # use nghttp2_option_set_no_recv_client_magic to require nghttp2
  23185. # >= 1.0.0
  23186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
  23187. $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
  23188. if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
  23189. $as_echo_n "(cached) " >&6
  23190. else
  23191. ac_check_lib_save_LIBS=$LIBS
  23192. LIBS="-lnghttp2 $LIBS"
  23193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23194. /* end confdefs.h. */
  23195. #ifdef __cplusplus
  23196. extern "C"
  23197. #endif
  23198. char nghttp2_option_set_no_recv_client_magic ();
  23199. int main (void)
  23200. {
  23201. return nghttp2_option_set_no_recv_client_magic ();
  23202. ;
  23203. return 0;
  23204. }
  23205. _ACEOF
  23206. if ac_fn_c_try_link "$LINENO"; then :
  23207. ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
  23208. else
  23209. ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
  23210. fi
  23211. rm -f core conftest.err conftest.$ac_objext \
  23212. conftest$ac_exeext conftest.$ac_ext
  23213. LIBS=$ac_check_lib_save_LIBS
  23214. fi
  23215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
  23216. $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
  23217. if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
  23218. for ac_header in nghttp2/nghttp2.h
  23219. do :
  23220. ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
  23221. if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
  23222. cat >>confdefs.h <<_ACEOF
  23223. #define HAVE_NGHTTP2_NGHTTP2_H 1
  23224. _ACEOF
  23225. curl_h2_msg="enabled (nghttp2)"
  23226. NGHTTP2_ENABLED=1
  23227. $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
  23228. USE_NGHTTP2=1
  23229. fi
  23230. done
  23231. else
  23232. LDFLAGS=$CLEANLDFLAGS
  23233. CPPFLAGS=$CLEANCPPFLAGS
  23234. LIBS=$CLEANLIBS
  23235. fi
  23236. else
  23237. if test X"$want_h2" != Xdefault; then
  23238. as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
  23239. fi
  23240. fi
  23241. fi
  23242. OPT_ZSH_FPATH=default
  23243. # Check whether --with-zsh-functions-dir was given.
  23244. if test "${with_zsh_functions_dir+set}" = set; then :
  23245. withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
  23246. fi
  23247. case "$OPT_ZSH_FPATH" in
  23248. no)
  23249. ;;
  23250. default|yes)
  23251. ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
  23252. ;;
  23253. *)
  23254. ZSH_FUNCTIONS_DIR="$withval"
  23255. ;;
  23256. esac
  23257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  23258. $as_echo_n "checking for ANSI C header files... " >&6; }
  23259. if ${ac_cv_header_stdc+:} false; then :
  23260. $as_echo_n "(cached) " >&6
  23261. else
  23262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23263. /* end confdefs.h. */
  23264. #include <stdlib.h>
  23265. #include <stdarg.h>
  23266. #include <string.h>
  23267. #include <float.h>
  23268. int main (void)
  23269. {
  23270. ;
  23271. return 0;
  23272. }
  23273. _ACEOF
  23274. if ac_fn_c_try_compile "$LINENO"; then :
  23275. ac_cv_header_stdc=yes
  23276. else
  23277. ac_cv_header_stdc=no
  23278. fi
  23279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23280. if test $ac_cv_header_stdc = yes; then
  23281. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23283. /* end confdefs.h. */
  23284. #include <string.h>
  23285. _ACEOF
  23286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23287. $EGREP "memchr" >/dev/null 2>&1; then :
  23288. else
  23289. ac_cv_header_stdc=no
  23290. fi
  23291. rm -f conftest*
  23292. fi
  23293. if test $ac_cv_header_stdc = yes; then
  23294. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23296. /* end confdefs.h. */
  23297. #include <stdlib.h>
  23298. _ACEOF
  23299. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23300. $EGREP "free" >/dev/null 2>&1; then :
  23301. else
  23302. ac_cv_header_stdc=no
  23303. fi
  23304. rm -f conftest*
  23305. fi
  23306. if test $ac_cv_header_stdc = yes; then
  23307. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23308. if test "$cross_compiling" = yes; then :
  23309. :
  23310. else
  23311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23312. /* end confdefs.h. */
  23313. #include <ctype.h>
  23314. #include <stdlib.h>
  23315. #if ((' ' & 0x0FF) == 0x020)
  23316. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23317. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23318. #else
  23319. # define ISLOWER(c) \
  23320. (('a' <= (c) && (c) <= 'i') \
  23321. || ('j' <= (c) && (c) <= 'r') \
  23322. || ('s' <= (c) && (c) <= 'z'))
  23323. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23324. #endif
  23325. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23326. int
  23327. main ()
  23328. {
  23329. int i;
  23330. for (i = 0; i < 256; i++)
  23331. if (XOR (islower (i), ISLOWER (i))
  23332. || toupper (i) != TOUPPER (i))
  23333. return 2;
  23334. return 0;
  23335. }
  23336. _ACEOF
  23337. if ac_fn_c_try_run "$LINENO"; then :
  23338. else
  23339. ac_cv_header_stdc=no
  23340. fi
  23341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23342. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23343. fi
  23344. fi
  23345. fi
  23346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  23347. $as_echo "$ac_cv_header_stdc" >&6; }
  23348. if test $ac_cv_header_stdc = yes; then
  23349. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  23350. fi
  23351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
  23352. $as_echo_n "checking for malloc.h... " >&6; }
  23353. if ${curl_cv_header_malloc_h+:} false; then :
  23354. $as_echo_n "(cached) " >&6
  23355. else
  23356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23357. /* end confdefs.h. */
  23358. #include <malloc.h>
  23359. int main (void)
  23360. {
  23361. void *p = malloc(10);
  23362. void *q = calloc(10,10);
  23363. free(p);
  23364. free(q);
  23365. ;
  23366. return 0;
  23367. }
  23368. _ACEOF
  23369. if ac_fn_c_try_compile "$LINENO"; then :
  23370. curl_cv_header_malloc_h="yes"
  23371. else
  23372. curl_cv_header_malloc_h="no"
  23373. fi
  23374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23375. fi
  23376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
  23377. $as_echo "$curl_cv_header_malloc_h" >&6; }
  23378. if test "$curl_cv_header_malloc_h" = "yes"; then
  23379. cat >>confdefs.h <<_ACEOF
  23380. #define HAVE_MALLOC_H 1
  23381. _ACEOF
  23382. #
  23383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23384. /* end confdefs.h. */
  23385. #include <stdlib.h>
  23386. int main (void)
  23387. {
  23388. void *p = malloc(10);
  23389. void *q = calloc(10,10);
  23390. free(p);
  23391. free(q);
  23392. ;
  23393. return 0;
  23394. }
  23395. _ACEOF
  23396. if ac_fn_c_try_compile "$LINENO"; then :
  23397. curl_cv_need_header_malloc_h="no"
  23398. else
  23399. curl_cv_need_header_malloc_h="yes"
  23400. fi
  23401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23402. #
  23403. case "$curl_cv_need_header_malloc_h" in
  23404. yes)
  23405. cat >>confdefs.h <<_ACEOF
  23406. #define NEED_MALLOC_H 1
  23407. _ACEOF
  23408. ;;
  23409. esac
  23410. fi
  23411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
  23412. $as_echo_n "checking for memory.h... " >&6; }
  23413. if ${curl_cv_header_memory_h+:} false; then :
  23414. $as_echo_n "(cached) " >&6
  23415. else
  23416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23417. /* end confdefs.h. */
  23418. #include <memory.h>
  23419. int main (void)
  23420. {
  23421. void *p = malloc(10);
  23422. void *q = calloc(10,10);
  23423. free(p);
  23424. free(q);
  23425. ;
  23426. return 0;
  23427. }
  23428. _ACEOF
  23429. if ac_fn_c_try_compile "$LINENO"; then :
  23430. curl_cv_header_memory_h="yes"
  23431. else
  23432. curl_cv_header_memory_h="no"
  23433. fi
  23434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23435. fi
  23436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
  23437. $as_echo "$curl_cv_header_memory_h" >&6; }
  23438. if test "$curl_cv_header_memory_h" = "yes"; then
  23439. cat >>confdefs.h <<_ACEOF
  23440. #define HAVE_MEMORY_H 1
  23441. _ACEOF
  23442. #
  23443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23444. /* end confdefs.h. */
  23445. #include <stdlib.h>
  23446. int main (void)
  23447. {
  23448. void *p = malloc(10);
  23449. void *q = calloc(10,10);
  23450. free(p);
  23451. free(q);
  23452. ;
  23453. return 0;
  23454. }
  23455. _ACEOF
  23456. if ac_fn_c_try_compile "$LINENO"; then :
  23457. curl_cv_need_header_memory_h="no"
  23458. else
  23459. curl_cv_need_header_memory_h="yes"
  23460. fi
  23461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23462. #
  23463. case "$curl_cv_need_header_memory_h" in
  23464. yes)
  23465. cat >>confdefs.h <<_ACEOF
  23466. #define NEED_MEMORY_H 1
  23467. _ACEOF
  23468. ;;
  23469. esac
  23470. fi
  23471. for ac_header in sys/types.h \
  23472. sys/time.h \
  23473. sys/select.h \
  23474. sys/socket.h \
  23475. sys/ioctl.h \
  23476. sys/uio.h \
  23477. assert.h \
  23478. unistd.h \
  23479. stdlib.h \
  23480. arpa/inet.h \
  23481. net/if.h \
  23482. netinet/in.h \
  23483. netinet/in6.h \
  23484. sys/un.h \
  23485. linux/tcp.h \
  23486. netinet/tcp.h \
  23487. netdb.h \
  23488. sys/sockio.h \
  23489. sys/stat.h \
  23490. sys/param.h \
  23491. termios.h \
  23492. termio.h \
  23493. sgtty.h \
  23494. fcntl.h \
  23495. alloca.h \
  23496. time.h \
  23497. io.h \
  23498. pwd.h \
  23499. utime.h \
  23500. sys/utime.h \
  23501. sys/poll.h \
  23502. poll.h \
  23503. socket.h \
  23504. sys/resource.h \
  23505. libgen.h \
  23506. locale.h \
  23507. errno.h \
  23508. stdbool.h \
  23509. arpa/tftp.h \
  23510. sys/filio.h \
  23511. sys/wait.h \
  23512. setjmp.h
  23513. do :
  23514. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23515. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  23516. #ifdef HAVE_SYS_TYPES_H
  23517. #include <sys/types.h>
  23518. #endif
  23519. #ifdef HAVE_SYS_TIME_H
  23520. #include <sys/time.h>
  23521. #endif
  23522. #ifdef HAVE_SYS_SELECT_H
  23523. #include <sys/select.h>
  23524. #endif
  23525. #ifdef HAVE_SYS_SOCKET_H
  23526. #include <sys/socket.h>
  23527. #endif
  23528. #ifdef HAVE_NETINET_IN_H
  23529. #include <netinet/in.h>
  23530. #endif
  23531. #ifdef HAVE_NETINET_IN6_H
  23532. #include <netinet/in6.h>
  23533. #endif
  23534. #ifdef HAVE_SYS_UN_H
  23535. #include <sys/un.h>
  23536. #endif
  23537. "
  23538. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23539. cat >>confdefs.h <<_ACEOF
  23540. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23541. _ACEOF
  23542. fi
  23543. done
  23544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  23545. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  23546. if ${ac_cv_c_const+:} false; then :
  23547. $as_echo_n "(cached) " >&6
  23548. else
  23549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23550. /* end confdefs.h. */
  23551. int main (void)
  23552. {
  23553. #ifndef __cplusplus
  23554. /* Ultrix mips cc rejects this sort of thing. */
  23555. typedef int charset[2];
  23556. const charset cs = { 0, 0 };
  23557. /* SunOS 4.1.1 cc rejects this. */
  23558. char const *const *pcpcc;
  23559. char **ppc;
  23560. /* NEC SVR4.0.2 mips cc rejects this. */
  23561. struct point {int x, y;};
  23562. static struct point const zero = {0,0};
  23563. /* AIX XL C 1.02.0.0 rejects this.
  23564. It does not let you subtract one const X* pointer from another in
  23565. an arm of an if-expression whose if-part is not a constant
  23566. expression */
  23567. const char *g = "string";
  23568. pcpcc = &g + (g ? g-g : 0);
  23569. /* HPUX 7.0 cc rejects these. */
  23570. ++pcpcc;
  23571. ppc = (char**) pcpcc;
  23572. pcpcc = (char const *const *) ppc;
  23573. { /* SCO 3.2v4 cc rejects this sort of thing. */
  23574. char tx;
  23575. char *t = &tx;
  23576. char const *s = 0 ? (char *) 0 : (char const *) 0;
  23577. *t++ = 0;
  23578. if (s) return 0;
  23579. }
  23580. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  23581. int x[] = {25, 17};
  23582. const int *foo = &x[0];
  23583. ++foo;
  23584. }
  23585. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  23586. typedef const int *iptr;
  23587. iptr p = 0;
  23588. ++p;
  23589. }
  23590. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  23591. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  23592. struct s { int j; const int *ap[3]; } bx;
  23593. struct s *b = &bx; b->j = 5;
  23594. }
  23595. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  23596. const int foo = 10;
  23597. if (!foo) return 0;
  23598. }
  23599. return !cs[0] && !zero.x;
  23600. #endif
  23601. ;
  23602. return 0;
  23603. }
  23604. _ACEOF
  23605. if ac_fn_c_try_compile "$LINENO"; then :
  23606. ac_cv_c_const=yes
  23607. else
  23608. ac_cv_c_const=no
  23609. fi
  23610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23611. fi
  23612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  23613. $as_echo "$ac_cv_c_const" >&6; }
  23614. if test $ac_cv_c_const = no; then
  23615. $as_echo "#define const /**/" >>confdefs.h
  23616. fi
  23617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
  23618. $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
  23619. if ${curl_cv_variadic_macros_c99+:} false; then :
  23620. $as_echo_n "(cached) " >&6
  23621. else
  23622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23623. /* end confdefs.h. */
  23624. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  23625. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  23626. int fun3(int arg1, int arg2, int arg3);
  23627. int fun2(int arg1, int arg2);
  23628. int fun3(int arg1, int arg2, int arg3)
  23629. { return arg1 + arg2 + arg3; }
  23630. int fun2(int arg1, int arg2)
  23631. { return arg1 + arg2; }
  23632. int main (void)
  23633. {
  23634. int res3 = c99_vmacro3(1, 2, 3);
  23635. int res2 = c99_vmacro2(1, 2);
  23636. ;
  23637. return 0;
  23638. }
  23639. _ACEOF
  23640. if ac_fn_c_try_compile "$LINENO"; then :
  23641. curl_cv_variadic_macros_c99="yes"
  23642. else
  23643. curl_cv_variadic_macros_c99="no"
  23644. fi
  23645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23646. fi
  23647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
  23648. $as_echo "$curl_cv_variadic_macros_c99" >&6; }
  23649. case "$curl_cv_variadic_macros_c99" in
  23650. yes)
  23651. cat >>confdefs.h <<_ACEOF
  23652. #define HAVE_VARIADIC_MACROS_C99 1
  23653. _ACEOF
  23654. ;;
  23655. esac
  23656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
  23657. $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
  23658. if ${curl_cv_variadic_macros_gcc+:} false; then :
  23659. $as_echo_n "(cached) " >&6
  23660. else
  23661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23662. /* end confdefs.h. */
  23663. #define gcc_vmacro3(first, args...) fun3(first, args)
  23664. #define gcc_vmacro2(first, args...) fun2(first, args)
  23665. int fun3(int arg1, int arg2, int arg3);
  23666. int fun2(int arg1, int arg2);
  23667. int fun3(int arg1, int arg2, int arg3)
  23668. { return arg1 + arg2 + arg3; }
  23669. int fun2(int arg1, int arg2)
  23670. { return arg1 + arg2; }
  23671. int main (void)
  23672. {
  23673. int res3 = gcc_vmacro3(1, 2, 3);
  23674. int res2 = gcc_vmacro2(1, 2);
  23675. ;
  23676. return 0;
  23677. }
  23678. _ACEOF
  23679. if ac_fn_c_try_compile "$LINENO"; then :
  23680. curl_cv_variadic_macros_gcc="yes"
  23681. else
  23682. curl_cv_variadic_macros_gcc="no"
  23683. fi
  23684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23685. fi
  23686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
  23687. $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
  23688. case "$curl_cv_variadic_macros_gcc" in
  23689. yes)
  23690. cat >>confdefs.h <<_ACEOF
  23691. #define HAVE_VARIADIC_MACROS_GCC 1
  23692. _ACEOF
  23693. ;;
  23694. esac
  23695. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  23696. if test "x$ac_cv_type_size_t" = xyes; then :
  23697. else
  23698. cat >>confdefs.h <<_ACEOF
  23699. #define size_t unsigned int
  23700. _ACEOF
  23701. fi
  23702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  23703. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  23704. if ${ac_cv_header_time+:} false; then :
  23705. $as_echo_n "(cached) " >&6
  23706. else
  23707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23708. /* end confdefs.h. */
  23709. #include <sys/types.h>
  23710. #include <sys/time.h>
  23711. #include <time.h>
  23712. int main (void)
  23713. {
  23714. if ((struct tm *) 0)
  23715. return 0;
  23716. ;
  23717. return 0;
  23718. }
  23719. _ACEOF
  23720. if ac_fn_c_try_compile "$LINENO"; then :
  23721. ac_cv_header_time=yes
  23722. else
  23723. ac_cv_header_time=no
  23724. fi
  23725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23726. fi
  23727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  23728. $as_echo "$ac_cv_header_time" >&6; }
  23729. if test $ac_cv_header_time = yes; then
  23730. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  23731. fi
  23732. for ac_header in sys/types.h sys/time.h time.h sys/socket.h
  23733. do :
  23734. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23735. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23736. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23737. cat >>confdefs.h <<_ACEOF
  23738. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23739. _ACEOF
  23740. fi
  23741. done
  23742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  23743. $as_echo_n "checking for struct timeval... " >&6; }
  23744. if ${curl_cv_struct_timeval+:} false; then :
  23745. $as_echo_n "(cached) " >&6
  23746. else
  23747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23748. /* end confdefs.h. */
  23749. #undef inline
  23750. #ifdef HAVE_WINDOWS_H
  23751. #ifndef WIN32_LEAN_AND_MEAN
  23752. #define WIN32_LEAN_AND_MEAN
  23753. #endif
  23754. #include <windows.h>
  23755. #ifdef HAVE_WINSOCK2_H
  23756. #include <winsock2.h>
  23757. #else
  23758. #ifdef HAVE_WINSOCK_H
  23759. #include <winsock.h>
  23760. #endif
  23761. #endif
  23762. #endif
  23763. #ifdef HAVE_SYS_TYPES_H
  23764. #include <sys/types.h>
  23765. #endif
  23766. #ifdef HAVE_SYS_TIME_H
  23767. #include <sys/time.h>
  23768. #ifdef TIME_WITH_SYS_TIME
  23769. #include <time.h>
  23770. #endif
  23771. #else
  23772. #ifdef HAVE_TIME_H
  23773. #include <time.h>
  23774. #endif
  23775. #endif
  23776. #ifdef HAVE_SYS_SOCKET_H
  23777. #include <sys/socket.h>
  23778. #endif
  23779. int main (void)
  23780. {
  23781. struct timeval ts;
  23782. ts.tv_sec = 0;
  23783. ts.tv_usec = 0;
  23784. ;
  23785. return 0;
  23786. }
  23787. _ACEOF
  23788. if ac_fn_c_try_compile "$LINENO"; then :
  23789. curl_cv_struct_timeval="yes"
  23790. else
  23791. curl_cv_struct_timeval="no"
  23792. fi
  23793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23794. fi
  23795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
  23796. $as_echo "$curl_cv_struct_timeval" >&6; }
  23797. case "$curl_cv_struct_timeval" in
  23798. yes)
  23799. cat >>confdefs.h <<_ACEOF
  23800. #define HAVE_STRUCT_TIMEVAL 1
  23801. _ACEOF
  23802. ;;
  23803. esac
  23804. if test "x$cross_compiling" != xyes; then
  23805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
  23806. $as_echo_n "checking run-time libs availability... " >&6; }
  23807. old=$LD_LIBRARY_PATH
  23808. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  23809. export LD_LIBRARY_PATH
  23810. if test "$cross_compiling" = yes; then :
  23811. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23813. as_fn_error $? "cannot run test program while cross compiling
  23814. See \`config.log' for more details" "$LINENO" 5; }
  23815. else
  23816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23817. /* end confdefs.h. */
  23818. int main()
  23819. {
  23820. return 0;
  23821. }
  23822. _ACEOF
  23823. if ac_fn_c_try_run "$LINENO"; then :
  23824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  23825. $as_echo "fine" >&6; }
  23826. else
  23827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23828. $as_echo "failed" >&6; }
  23829. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  23830. fi
  23831. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23832. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23833. fi
  23834. LD_LIBRARY_PATH=$old # restore
  23835. fi
  23836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  23837. $as_echo_n "checking size of size_t... " >&6; }
  23838. if ${ac_cv_sizeof_size_t+:} false; then :
  23839. $as_echo_n "(cached) " >&6
  23840. else
  23841. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23843. /* end confdefs.h. */
  23844. #include <sys/types.h>
  23845. int main (void)
  23846. {
  23847. switch (0) case 0: case (sizeof (size_t) == $ac_size):;
  23848. ;
  23849. return 0;
  23850. }
  23851. _ACEOF
  23852. if ac_fn_c_try_compile "$LINENO"; then :
  23853. ac_cv_sizeof_size_t=$ac_size
  23854. fi
  23855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23856. if test x$ac_cv_sizeof_size_t != x ; then break; fi
  23857. done
  23858. fi
  23859. if test x$ac_cv_sizeof_size_t = x ; then
  23860. as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
  23861. fi
  23862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  23863. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  23864. cat >>confdefs.h <<_ACEOF
  23865. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  23866. _ACEOF
  23867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  23868. $as_echo_n "checking size of long... " >&6; }
  23869. if ${ac_cv_sizeof_long+:} false; then :
  23870. $as_echo_n "(cached) " >&6
  23871. else
  23872. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23874. /* end confdefs.h. */
  23875. #include <sys/types.h>
  23876. int main (void)
  23877. {
  23878. switch (0) case 0: case (sizeof (long) == $ac_size):;
  23879. ;
  23880. return 0;
  23881. }
  23882. _ACEOF
  23883. if ac_fn_c_try_compile "$LINENO"; then :
  23884. ac_cv_sizeof_long=$ac_size
  23885. fi
  23886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23887. if test x$ac_cv_sizeof_long != x ; then break; fi
  23888. done
  23889. fi
  23890. if test x$ac_cv_sizeof_long = x ; then
  23891. as_fn_error $? "cannot determine a size for long" "$LINENO" 5
  23892. fi
  23893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  23894. $as_echo "$ac_cv_sizeof_long" >&6; }
  23895. cat >>confdefs.h <<_ACEOF
  23896. #define SIZEOF_LONG $ac_cv_sizeof_long
  23897. _ACEOF
  23898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  23899. $as_echo_n "checking size of int... " >&6; }
  23900. if ${ac_cv_sizeof_int+:} false; then :
  23901. $as_echo_n "(cached) " >&6
  23902. else
  23903. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23905. /* end confdefs.h. */
  23906. #include <sys/types.h>
  23907. int main (void)
  23908. {
  23909. switch (0) case 0: case (sizeof (int) == $ac_size):;
  23910. ;
  23911. return 0;
  23912. }
  23913. _ACEOF
  23914. if ac_fn_c_try_compile "$LINENO"; then :
  23915. ac_cv_sizeof_int=$ac_size
  23916. fi
  23917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23918. if test x$ac_cv_sizeof_int != x ; then break; fi
  23919. done
  23920. fi
  23921. if test x$ac_cv_sizeof_int = x ; then
  23922. as_fn_error $? "cannot determine a size for int" "$LINENO" 5
  23923. fi
  23924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  23925. $as_echo "$ac_cv_sizeof_int" >&6; }
  23926. cat >>confdefs.h <<_ACEOF
  23927. #define SIZEOF_INT $ac_cv_sizeof_int
  23928. _ACEOF
  23929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  23930. $as_echo_n "checking size of short... " >&6; }
  23931. if ${ac_cv_sizeof_short+:} false; then :
  23932. $as_echo_n "(cached) " >&6
  23933. else
  23934. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23936. /* end confdefs.h. */
  23937. #include <sys/types.h>
  23938. int main (void)
  23939. {
  23940. switch (0) case 0: case (sizeof (short) == $ac_size):;
  23941. ;
  23942. return 0;
  23943. }
  23944. _ACEOF
  23945. if ac_fn_c_try_compile "$LINENO"; then :
  23946. ac_cv_sizeof_short=$ac_size
  23947. fi
  23948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23949. if test x$ac_cv_sizeof_short != x ; then break; fi
  23950. done
  23951. fi
  23952. if test x$ac_cv_sizeof_short = x ; then
  23953. as_fn_error $? "cannot determine a size for short" "$LINENO" 5
  23954. fi
  23955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  23956. $as_echo "$ac_cv_sizeof_short" >&6; }
  23957. cat >>confdefs.h <<_ACEOF
  23958. #define SIZEOF_SHORT $ac_cv_sizeof_short
  23959. _ACEOF
  23960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  23961. $as_echo_n "checking size of time_t... " >&6; }
  23962. if ${ac_cv_sizeof_time_t+:} false; then :
  23963. $as_echo_n "(cached) " >&6
  23964. else
  23965. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23967. /* end confdefs.h. */
  23968. #include <sys/types.h>
  23969. int main (void)
  23970. {
  23971. switch (0) case 0: case (sizeof (time_t) == $ac_size):;
  23972. ;
  23973. return 0;
  23974. }
  23975. _ACEOF
  23976. if ac_fn_c_try_compile "$LINENO"; then :
  23977. ac_cv_sizeof_time_t=$ac_size
  23978. fi
  23979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23980. if test x$ac_cv_sizeof_time_t != x ; then break; fi
  23981. done
  23982. fi
  23983. if test x$ac_cv_sizeof_time_t = x ; then
  23984. as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
  23985. fi
  23986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  23987. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  23988. cat >>confdefs.h <<_ACEOF
  23989. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  23990. _ACEOF
  23991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  23992. $as_echo_n "checking size of off_t... " >&6; }
  23993. if ${ac_cv_sizeof_off_t+:} false; then :
  23994. $as_echo_n "(cached) " >&6
  23995. else
  23996. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  23997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23998. /* end confdefs.h. */
  23999. #include <sys/types.h>
  24000. int main (void)
  24001. {
  24002. switch (0) case 0: case (sizeof (off_t) == $ac_size):;
  24003. ;
  24004. return 0;
  24005. }
  24006. _ACEOF
  24007. if ac_fn_c_try_compile "$LINENO"; then :
  24008. ac_cv_sizeof_off_t=$ac_size
  24009. fi
  24010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24011. if test x$ac_cv_sizeof_off_t != x ; then break; fi
  24012. done
  24013. fi
  24014. if test x$ac_cv_sizeof_off_t = x ; then
  24015. as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
  24016. fi
  24017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  24018. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  24019. cat >>confdefs.h <<_ACEOF
  24020. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  24021. _ACEOF
  24022. o=$CPPFLAGS
  24023. CPPFLAGS="-I$srcdir/include $CPPFLAGS"
  24024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
  24025. $as_echo_n "checking size of curl_off_t... " >&6; }
  24026. if ${ac_cv_sizeof_curl_off_t+:} false; then :
  24027. $as_echo_n "(cached) " >&6
  24028. else
  24029. for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
  24030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24031. /* end confdefs.h. */
  24032. #include <sys/types.h>
  24033. #include <curl/system.h>
  24034. int main (void)
  24035. {
  24036. switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
  24037. ;
  24038. return 0;
  24039. }
  24040. _ACEOF
  24041. if ac_fn_c_try_compile "$LINENO"; then :
  24042. ac_cv_sizeof_curl_off_t=$ac_size
  24043. fi
  24044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24045. if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
  24046. done
  24047. fi
  24048. if test x$ac_cv_sizeof_curl_off_t = x ; then
  24049. as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
  24050. fi
  24051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
  24052. $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
  24053. cat >>confdefs.h <<_ACEOF
  24054. #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
  24055. _ACEOF
  24056. CPPFLAGS=$o
  24057. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  24058. if test "x$ac_cv_type_long_long" = xyes; then :
  24059. $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
  24060. longlong="yes"
  24061. fi
  24062. if test "xyes" = "x$longlong"; then
  24063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
  24064. $as_echo_n "checking if numberLL works... " >&6; }
  24065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24066. /* end confdefs.h. */
  24067. int main (void)
  24068. {
  24069. long long val = 1000LL;
  24070. ;
  24071. return 0;
  24072. }
  24073. _ACEOF
  24074. if ac_fn_c_try_compile "$LINENO"; then :
  24075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24076. $as_echo "yes" >&6; }
  24077. $as_echo "#define HAVE_LL 1" >>confdefs.h
  24078. else
  24079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24080. $as_echo "no" >&6; }
  24081. fi
  24082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24083. fi
  24084. # check for ssize_t
  24085. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  24086. if test "x$ac_cv_type_ssize_t" = xyes; then :
  24087. else
  24088. $as_echo "#define ssize_t int" >>confdefs.h
  24089. fi
  24090. # check for bool type
  24091. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  24092. #ifdef HAVE_SYS_TYPES_H
  24093. #include <sys/types.h>
  24094. #endif
  24095. #ifdef HAVE_STDBOOL_H
  24096. #include <stdbool.h>
  24097. #endif
  24098. "
  24099. if test "x$ac_cv_type_bool" = xyes; then :
  24100. $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
  24101. fi
  24102. # check for sa_family_t
  24103. ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
  24104. #ifdef HAVE_SYS_SOCKET_H
  24105. #include <sys/socket.h>
  24106. #endif
  24107. "
  24108. if test "x$ac_cv_type_sa_family_t" = xyes; then :
  24109. $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
  24110. else
  24111. # The windows name?
  24112. ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
  24113. #ifdef HAVE_SYS_SOCKET_H
  24114. #include <sys/socket.h>
  24115. #endif
  24116. "
  24117. if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
  24118. $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
  24119. else
  24120. $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
  24121. fi
  24122. fi
  24123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
  24124. $as_echo_n "checking if time_t is unsigned... " >&6; }
  24125. old=$LD_LIBRARY_PATH
  24126. LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
  24127. export LD_LIBRARY_PATH
  24128. if test "$cross_compiling" = yes; then :
  24129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24130. $as_echo "no" >&6; }
  24131. else
  24132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24133. /* end confdefs.h. */
  24134. #include <time.h>
  24135. #include <limits.h>
  24136. time_t t = -1;
  24137. return (t > 0);
  24138. _ACEOF
  24139. if ac_fn_c_try_run "$LINENO"; then :
  24140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24141. $as_echo "yes" >&6; }
  24142. $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
  24143. else
  24144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24145. $as_echo "no" >&6; }
  24146. fi
  24147. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  24148. conftest.$ac_objext conftest.beam conftest.$ac_ext
  24149. fi
  24150. LD_LIBRARY_PATH=$old # restore
  24151. curl_includes_ws2tcpip="\
  24152. /* includes start */
  24153. #ifdef HAVE_WINDOWS_H
  24154. # ifndef WIN32_LEAN_AND_MEAN
  24155. # define WIN32_LEAN_AND_MEAN
  24156. # endif
  24157. # include <windows.h>
  24158. # ifdef HAVE_WINSOCK2_H
  24159. # include <winsock2.h>
  24160. # ifdef HAVE_WS2TCPIP_H
  24161. # include <ws2tcpip.h>
  24162. # endif
  24163. # endif
  24164. #endif
  24165. /* includes end */"
  24166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  24167. $as_echo_n "checking for windows.h... " >&6; }
  24168. if ${curl_cv_header_windows_h+:} false; then :
  24169. $as_echo_n "(cached) " >&6
  24170. else
  24171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24172. /* end confdefs.h. */
  24173. #undef inline
  24174. #ifndef WIN32_LEAN_AND_MEAN
  24175. #define WIN32_LEAN_AND_MEAN
  24176. #endif
  24177. #include <windows.h>
  24178. int main (void)
  24179. {
  24180. #if defined(__CYGWIN__) || defined(__CEGCC__)
  24181. HAVE_WINDOWS_H shall not be defined.
  24182. #else
  24183. int dummy=2*WINVER;
  24184. #endif
  24185. ;
  24186. return 0;
  24187. }
  24188. _ACEOF
  24189. if ac_fn_c_try_compile "$LINENO"; then :
  24190. curl_cv_header_windows_h="yes"
  24191. else
  24192. curl_cv_header_windows_h="no"
  24193. fi
  24194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24195. fi
  24196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
  24197. $as_echo "$curl_cv_header_windows_h" >&6; }
  24198. case "$curl_cv_header_windows_h" in
  24199. yes)
  24200. cat >>confdefs.h <<_ACEOF
  24201. #define HAVE_WINDOWS_H 1
  24202. _ACEOF
  24203. ;;
  24204. esac
  24205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  24206. $as_echo_n "checking for winsock2.h... " >&6; }
  24207. if ${curl_cv_header_winsock2_h+:} false; then :
  24208. $as_echo_n "(cached) " >&6
  24209. else
  24210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24211. /* end confdefs.h. */
  24212. #undef inline
  24213. #ifndef WIN32_LEAN_AND_MEAN
  24214. #define WIN32_LEAN_AND_MEAN
  24215. #endif
  24216. #include <windows.h>
  24217. #include <winsock2.h>
  24218. int main (void)
  24219. {
  24220. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  24221. HAVE_WINSOCK2_H shall not be defined.
  24222. #else
  24223. int dummy=2*IPPROTO_ESP;
  24224. #endif
  24225. ;
  24226. return 0;
  24227. }
  24228. _ACEOF
  24229. if ac_fn_c_try_compile "$LINENO"; then :
  24230. curl_cv_header_winsock2_h="yes"
  24231. else
  24232. curl_cv_header_winsock2_h="no"
  24233. fi
  24234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24235. fi
  24236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
  24237. $as_echo "$curl_cv_header_winsock2_h" >&6; }
  24238. case "$curl_cv_header_winsock2_h" in
  24239. yes)
  24240. cat >>confdefs.h <<_ACEOF
  24241. #define HAVE_WINSOCK2_H 1
  24242. _ACEOF
  24243. ;;
  24244. esac
  24245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  24246. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  24247. if ${curl_cv_header_ws2tcpip_h+:} false; then :
  24248. $as_echo_n "(cached) " >&6
  24249. else
  24250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24251. /* end confdefs.h. */
  24252. #undef inline
  24253. #ifndef WIN32_LEAN_AND_MEAN
  24254. #define WIN32_LEAN_AND_MEAN
  24255. #endif
  24256. #include <windows.h>
  24257. #include <winsock2.h>
  24258. #include <ws2tcpip.h>
  24259. int main (void)
  24260. {
  24261. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  24262. HAVE_WS2TCPIP_H shall not be defined.
  24263. #else
  24264. int dummy=2*IP_PKTINFO;
  24265. #endif
  24266. ;
  24267. return 0;
  24268. }
  24269. _ACEOF
  24270. if ac_fn_c_try_compile "$LINENO"; then :
  24271. curl_cv_header_ws2tcpip_h="yes"
  24272. else
  24273. curl_cv_header_ws2tcpip_h="no"
  24274. fi
  24275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24276. fi
  24277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
  24278. $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
  24279. case "$curl_cv_header_ws2tcpip_h" in
  24280. yes)
  24281. cat >>confdefs.h <<_ACEOF
  24282. #define HAVE_WS2TCPIP_H 1
  24283. _ACEOF
  24284. ;;
  24285. esac
  24286. curl_includes_sys_socket="\
  24287. /* includes start */
  24288. #ifdef HAVE_SYS_TYPES_H
  24289. # include <sys/types.h>
  24290. #endif
  24291. #ifdef HAVE_SYS_SOCKET_H
  24292. # include <sys/socket.h>
  24293. #endif
  24294. /* includes end */"
  24295. for ac_header in sys/types.h sys/socket.h
  24296. do :
  24297. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24298. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
  24299. "
  24300. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24301. cat >>confdefs.h <<_ACEOF
  24302. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24303. _ACEOF
  24304. fi
  24305. done
  24306. curl_preprocess_callconv="\
  24307. /* preprocess start */
  24308. #ifdef HAVE_WINDOWS_H
  24309. # define FUNCALLCONV __stdcall
  24310. #else
  24311. # define FUNCALLCONV
  24312. #endif
  24313. /* preprocess end */"
  24314. #
  24315. #
  24316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
  24317. $as_echo_n "checking for curl_socklen_t data type... " >&6; }
  24318. curl_typeof_curl_socklen_t="unknown"
  24319. for arg1 in int SOCKET; do
  24320. for arg2 in 'struct sockaddr' void; do
  24321. for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
  24322. if test "$curl_typeof_curl_socklen_t" = "unknown"; then
  24323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24324. /* end confdefs.h. */
  24325. $curl_includes_ws2tcpip
  24326. $curl_includes_sys_socket
  24327. $curl_preprocess_callconv
  24328. extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
  24329. int main (void)
  24330. {
  24331. $t *lenptr = 0;
  24332. if(0 != getpeername(0, 0, lenptr))
  24333. return 1;
  24334. ;
  24335. return 0;
  24336. }
  24337. _ACEOF
  24338. if ac_fn_c_try_compile "$LINENO"; then :
  24339. curl_typeof_curl_socklen_t="$t"
  24340. fi
  24341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24342. fi
  24343. done
  24344. done
  24345. done
  24346. for t in socklen_t int; do
  24347. if test "$curl_typeof_curl_socklen_t" = "void"; then
  24348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24349. /* end confdefs.h. */
  24350. $curl_includes_sys_socket
  24351. typedef $t curl_socklen_t;
  24352. int main (void)
  24353. {
  24354. curl_socklen_t dummy;
  24355. ;
  24356. return 0;
  24357. }
  24358. _ACEOF
  24359. if ac_fn_c_try_compile "$LINENO"; then :
  24360. curl_typeof_curl_socklen_t="$t"
  24361. fi
  24362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24363. fi
  24364. done
  24365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
  24366. $as_echo "$curl_typeof_curl_socklen_t" >&6; }
  24367. if test "$curl_typeof_curl_socklen_t" = "void" ||
  24368. test "$curl_typeof_curl_socklen_t" = "unknown"; then
  24369. as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
  24370. fi
  24371. #
  24372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
  24373. $as_echo_n "checking size of curl_socklen_t... " >&6; }
  24374. curl_sizeof_curl_socklen_t="unknown"
  24375. curl_pull_headers_socklen_t="unknown"
  24376. if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
  24377. tst_pull_header_checks='none ws2tcpip'
  24378. tst_size_checks='4'
  24379. else
  24380. tst_pull_header_checks='none systypes syssocket'
  24381. tst_size_checks='4 8 2'
  24382. fi
  24383. for tst_size in $tst_size_checks; do
  24384. for tst_pull_headers in $tst_pull_header_checks; do
  24385. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  24386. case $tst_pull_headers in
  24387. ws2tcpip)
  24388. tmp_includes="$curl_includes_ws2tcpip"
  24389. ;;
  24390. systypes)
  24391. tmp_includes="$curl_includes_sys_types"
  24392. ;;
  24393. syssocket)
  24394. tmp_includes="$curl_includes_sys_socket"
  24395. ;;
  24396. *)
  24397. tmp_includes=""
  24398. ;;
  24399. esac
  24400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24401. /* end confdefs.h. */
  24402. $tmp_includes
  24403. typedef $curl_typeof_curl_socklen_t curl_socklen_t;
  24404. typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
  24405. int main (void)
  24406. {
  24407. curl_socklen_t dummy;
  24408. ;
  24409. return 0;
  24410. }
  24411. _ACEOF
  24412. if ac_fn_c_try_compile "$LINENO"; then :
  24413. curl_sizeof_curl_socklen_t="$tst_size"
  24414. curl_pull_headers_socklen_t="$tst_pull_headers"
  24415. fi
  24416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24417. fi
  24418. done
  24419. done
  24420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
  24421. $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
  24422. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  24423. as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
  24424. fi
  24425. #
  24426. case $curl_pull_headers_socklen_t in
  24427. ws2tcpip)
  24428. cat >>confdefs.h <<_EOF
  24429. #define CURL_PULL_WS2TCPIP_H 1
  24430. _EOF
  24431. ;;
  24432. systypes)
  24433. cat >>confdefs.h <<_EOF
  24434. #define CURL_PULL_SYS_TYPES_H 1
  24435. _EOF
  24436. ;;
  24437. syssocket)
  24438. cat >>confdefs.h <<_EOF
  24439. #define CURL_PULL_SYS_TYPES_H 1
  24440. _EOF
  24441. cat >>confdefs.h <<_EOF
  24442. #define CURL_PULL_SYS_SOCKET_H 1
  24443. _EOF
  24444. ;;
  24445. esac
  24446. cat >>confdefs.h <<_EOF
  24447. #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
  24448. _EOF
  24449. cat >>confdefs.h <<_EOF
  24450. #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
  24451. _EOF
  24452. curl_includes_poll="\
  24453. /* includes start */
  24454. #ifdef HAVE_SYS_TYPES_H
  24455. # include <sys/types.h>
  24456. #endif
  24457. #ifdef HAVE_POLL_H
  24458. # include <poll.h>
  24459. #endif
  24460. #ifdef HAVE_SYS_POLL_H
  24461. # include <sys/poll.h>
  24462. #endif
  24463. /* includes end */"
  24464. for ac_header in sys/types.h poll.h sys/poll.h
  24465. do :
  24466. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24467. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
  24468. "
  24469. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24470. cat >>confdefs.h <<_ACEOF
  24471. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24472. _ACEOF
  24473. fi
  24474. done
  24475. #
  24476. tst_poll_events_macro_defined="unknown"
  24477. #
  24478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24479. /* end confdefs.h. */
  24480. $curl_includes_poll
  24481. int main (void)
  24482. {
  24483. #if defined(events) || defined(revents)
  24484. return 0;
  24485. #else
  24486. force compilation error
  24487. #endif
  24488. ;
  24489. return 0;
  24490. }
  24491. _ACEOF
  24492. if ac_fn_c_try_compile "$LINENO"; then :
  24493. tst_poll_events_macro_defined="yes"
  24494. else
  24495. tst_poll_events_macro_defined="no"
  24496. fi
  24497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24498. #
  24499. if test "$tst_poll_events_macro_defined" = "yes"; then
  24500. if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
  24501. cat >>confdefs.h <<_EOF
  24502. #define CURL_PULL_SYS_POLL_H 1
  24503. _EOF
  24504. fi
  24505. fi
  24506. #
  24507. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  24508. #undef inline
  24509. #ifdef HAVE_WINDOWS_H
  24510. #ifndef WIN32_LEAN_AND_MEAN
  24511. #define WIN32_LEAN_AND_MEAN
  24512. #endif
  24513. #include <windows.h>
  24514. #ifdef HAVE_WINSOCK2_H
  24515. #include <winsock2.h>
  24516. #else
  24517. #ifdef HAVE_WINSOCK_H
  24518. #include <winsock.h>
  24519. #endif
  24520. #endif
  24521. #else
  24522. #ifdef HAVE_SYS_TYPES_H
  24523. #include <sys/types.h>
  24524. #endif
  24525. #ifdef HAVE_SYS_SOCKET_H
  24526. #include <sys/socket.h>
  24527. #endif
  24528. #ifdef HAVE_NETINET_IN_H
  24529. #include <netinet/in.h>
  24530. #endif
  24531. #ifdef HAVE_ARPA_INET_H
  24532. #include <arpa/inet.h>
  24533. #endif
  24534. #endif
  24535. "
  24536. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  24537. else
  24538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  24539. $as_echo_n "checking for in_addr_t equivalent... " >&6; }
  24540. if ${curl_cv_in_addr_t_equiv+:} false; then :
  24541. $as_echo_n "(cached) " >&6
  24542. else
  24543. curl_cv_in_addr_t_equiv="unknown"
  24544. for t in "unsigned long" int size_t unsigned long; do
  24545. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  24546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24547. /* end confdefs.h. */
  24548. #undef inline
  24549. #ifdef HAVE_WINDOWS_H
  24550. #ifndef WIN32_LEAN_AND_MEAN
  24551. #define WIN32_LEAN_AND_MEAN
  24552. #endif
  24553. #include <windows.h>
  24554. #ifdef HAVE_WINSOCK2_H
  24555. #include <winsock2.h>
  24556. #else
  24557. #ifdef HAVE_WINSOCK_H
  24558. #include <winsock.h>
  24559. #endif
  24560. #endif
  24561. #else
  24562. #ifdef HAVE_SYS_TYPES_H
  24563. #include <sys/types.h>
  24564. #endif
  24565. #ifdef HAVE_SYS_SOCKET_H
  24566. #include <sys/socket.h>
  24567. #endif
  24568. #ifdef HAVE_NETINET_IN_H
  24569. #include <netinet/in.h>
  24570. #endif
  24571. #ifdef HAVE_ARPA_INET_H
  24572. #include <arpa/inet.h>
  24573. #endif
  24574. #endif
  24575. int main (void)
  24576. {
  24577. $t data = inet_addr ("1.2.3.4");
  24578. ;
  24579. return 0;
  24580. }
  24581. _ACEOF
  24582. if ac_fn_c_try_link "$LINENO"; then :
  24583. curl_cv_in_addr_t_equiv="$t"
  24584. fi
  24585. rm -f core conftest.err conftest.$ac_objext \
  24586. conftest$ac_exeext conftest.$ac_ext
  24587. fi
  24588. done
  24589. fi
  24590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  24591. $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
  24592. case "$curl_cv_in_addr_t_equiv" in
  24593. unknown)
  24594. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  24595. ;;
  24596. *)
  24597. cat >>confdefs.h <<_ACEOF
  24598. #define in_addr_t $curl_cv_in_addr_t_equiv
  24599. _ACEOF
  24600. ;;
  24601. esac
  24602. fi
  24603. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  24604. #undef inline
  24605. #ifdef HAVE_WINDOWS_H
  24606. #ifndef WIN32_LEAN_AND_MEAN
  24607. #define WIN32_LEAN_AND_MEAN
  24608. #endif
  24609. #include <windows.h>
  24610. #ifdef HAVE_WINSOCK2_H
  24611. #include <winsock2.h>
  24612. #endif
  24613. #else
  24614. #ifdef HAVE_SYS_TYPES_H
  24615. #include <sys/types.h>
  24616. #endif
  24617. #ifdef HAVE_SYS_SOCKET_H
  24618. #include <sys/socket.h>
  24619. #endif
  24620. #ifdef HAVE_NETINET_IN_H
  24621. #include <netinet/in.h>
  24622. #endif
  24623. #ifdef HAVE_ARPA_INET_H
  24624. #include <arpa/inet.h>
  24625. #endif
  24626. #endif
  24627. "
  24628. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  24629. $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  24630. fi
  24631. for ac_header in signal.h
  24632. do :
  24633. ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  24634. if test "x$ac_cv_header_signal_h" = xyes; then :
  24635. cat >>confdefs.h <<_ACEOF
  24636. #define HAVE_SIGNAL_H 1
  24637. _ACEOF
  24638. fi
  24639. done
  24640. ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
  24641. #ifdef HAVE_SIGNAL_H
  24642. #include <signal.h>
  24643. #endif
  24644. "
  24645. if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
  24646. $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
  24647. fi
  24648. case "$ac_cv_type_sig_atomic_t" in
  24649. yes)
  24650. #
  24651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
  24652. $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
  24653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24654. /* end confdefs.h. */
  24655. #ifdef HAVE_SIGNAL_H
  24656. #include <signal.h>
  24657. #endif
  24658. int main (void)
  24659. {
  24660. static volatile sig_atomic_t dummy = 0;
  24661. ;
  24662. return 0;
  24663. }
  24664. _ACEOF
  24665. if ac_fn_c_try_link "$LINENO"; then :
  24666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24667. $as_echo "no" >&6; }
  24668. curl_cv_sig_atomic_t_volatile="no"
  24669. else
  24670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24671. $as_echo "yes" >&6; }
  24672. curl_cv_sig_atomic_t_volatile="yes"
  24673. fi
  24674. rm -f core conftest.err conftest.$ac_objext \
  24675. conftest$ac_exeext conftest.$ac_ext
  24676. #
  24677. if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
  24678. $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
  24679. fi
  24680. ;;
  24681. esac
  24682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  24683. $as_echo_n "checking return type of signal handlers... " >&6; }
  24684. if ${ac_cv_type_signal+:} false; then :
  24685. $as_echo_n "(cached) " >&6
  24686. else
  24687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24688. /* end confdefs.h. */
  24689. #include <sys/types.h>
  24690. #include <signal.h>
  24691. int main (void)
  24692. {
  24693. return *(signal (0, 0)) (0) == 1;
  24694. ;
  24695. return 0;
  24696. }
  24697. _ACEOF
  24698. if ac_fn_c_try_compile "$LINENO"; then :
  24699. ac_cv_type_signal=int
  24700. else
  24701. ac_cv_type_signal=void
  24702. fi
  24703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24704. fi
  24705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  24706. $as_echo "$ac_cv_type_signal" >&6; }
  24707. cat >>confdefs.h <<_ACEOF
  24708. #define RETSIGTYPE $ac_cv_type_signal
  24709. _ACEOF
  24710. for ac_header in sys/select.h sys/socket.h
  24711. do :
  24712. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24713. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24714. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24715. cat >>confdefs.h <<_ACEOF
  24716. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24717. _ACEOF
  24718. fi
  24719. done
  24720. #
  24721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
  24722. $as_echo_n "checking for select... " >&6; }
  24723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24724. /* end confdefs.h. */
  24725. #undef inline
  24726. #ifdef HAVE_WINDOWS_H
  24727. #ifndef WIN32_LEAN_AND_MEAN
  24728. #define WIN32_LEAN_AND_MEAN
  24729. #endif
  24730. #include <windows.h>
  24731. #ifdef HAVE_WINSOCK2_H
  24732. #include <winsock2.h>
  24733. #else
  24734. #ifdef HAVE_WINSOCK_H
  24735. #include <winsock.h>
  24736. #endif
  24737. #endif
  24738. #endif
  24739. #ifdef HAVE_SYS_TYPES_H
  24740. #include <sys/types.h>
  24741. #endif
  24742. #ifdef HAVE_SYS_TIME_H
  24743. #include <sys/time.h>
  24744. #ifdef TIME_WITH_SYS_TIME
  24745. #include <time.h>
  24746. #endif
  24747. #else
  24748. #ifdef HAVE_TIME_H
  24749. #include <time.h>
  24750. #endif
  24751. #endif
  24752. #ifndef HAVE_WINDOWS_H
  24753. #ifdef HAVE_SYS_SELECT_H
  24754. #include <sys/select.h>
  24755. #endif
  24756. #ifdef HAVE_SYS_SOCKET_H
  24757. #include <sys/socket.h>
  24758. #endif
  24759. #endif
  24760. int main (void)
  24761. {
  24762. select(0, 0, 0, 0, 0);
  24763. ;
  24764. return 0;
  24765. }
  24766. _ACEOF
  24767. if ac_fn_c_try_link "$LINENO"; then :
  24768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24769. $as_echo "yes" >&6; }
  24770. curl_cv_select="yes"
  24771. else
  24772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24773. $as_echo "no" >&6; }
  24774. curl_cv_select="no"
  24775. fi
  24776. rm -f core conftest.err conftest.$ac_objext \
  24777. conftest$ac_exeext conftest.$ac_ext
  24778. #
  24779. if test "$curl_cv_select" = "yes"; then
  24780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
  24781. $as_echo_n "checking types of args and return type for select... " >&6; }
  24782. if ${curl_cv_func_select_args+:} false; then :
  24783. $as_echo_n "(cached) " >&6
  24784. else
  24785. curl_cv_func_select_args="unknown"
  24786. for sel_retv in 'int' 'ssize_t'; do
  24787. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  24788. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  24789. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  24790. if test "$curl_cv_func_select_args" = "unknown"; then
  24791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24792. /* end confdefs.h. */
  24793. #undef inline
  24794. #ifdef HAVE_WINDOWS_H
  24795. #ifndef WIN32_LEAN_AND_MEAN
  24796. #define WIN32_LEAN_AND_MEAN
  24797. #endif
  24798. #include <windows.h>
  24799. #ifdef HAVE_WINSOCK2_H
  24800. #include <winsock2.h>
  24801. #else
  24802. #ifdef HAVE_WINSOCK_H
  24803. #include <winsock.h>
  24804. #endif
  24805. #endif
  24806. #define SELECTCALLCONV PASCAL
  24807. #endif
  24808. #ifdef HAVE_SYS_TYPES_H
  24809. #include <sys/types.h>
  24810. #endif
  24811. #ifdef HAVE_SYS_TIME_H
  24812. #include <sys/time.h>
  24813. #ifdef TIME_WITH_SYS_TIME
  24814. #include <time.h>
  24815. #endif
  24816. #else
  24817. #ifdef HAVE_TIME_H
  24818. #include <time.h>
  24819. #endif
  24820. #endif
  24821. #ifndef HAVE_WINDOWS_H
  24822. #ifdef HAVE_SYS_SELECT_H
  24823. #include <sys/select.h>
  24824. #endif
  24825. #ifdef HAVE_SYS_SOCKET_H
  24826. #include <sys/socket.h>
  24827. #endif
  24828. #define SELECTCALLCONV
  24829. #endif
  24830. #ifndef HAVE_STRUCT_TIMEVAL
  24831. struct timeval {
  24832. long tv_sec;
  24833. long tv_usec;
  24834. };
  24835. #endif
  24836. extern $sel_retv SELECTCALLCONV
  24837. #ifdef __ANDROID__
  24838. __attribute__((overloadable))
  24839. #endif
  24840. select($sel_arg1,
  24841. $sel_arg234,
  24842. $sel_arg234,
  24843. $sel_arg234,
  24844. $sel_arg5);
  24845. int main (void)
  24846. {
  24847. $sel_arg1 nfds=0;
  24848. $sel_arg234 rfds=0;
  24849. $sel_arg234 wfds=0;
  24850. $sel_arg234 efds=0;
  24851. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  24852. ;
  24853. return 0;
  24854. }
  24855. _ACEOF
  24856. if ac_fn_c_try_compile "$LINENO"; then :
  24857. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  24858. fi
  24859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24860. fi
  24861. done
  24862. done
  24863. done
  24864. done
  24865. fi
  24866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
  24867. $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  24868. if test "$curl_cv_func_select_args" = "unknown"; then
  24869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
  24870. $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  24871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
  24872. $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  24873. else
  24874. select_prev_IFS=$IFS; IFS=','
  24875. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  24876. IFS=$select_prev_IFS
  24877. shift
  24878. #
  24879. sel_qual_type_arg5=$3
  24880. #
  24881. cat >>confdefs.h <<_ACEOF
  24882. #define SELECT_TYPE_ARG1 $1
  24883. _ACEOF
  24884. cat >>confdefs.h <<_ACEOF
  24885. #define SELECT_TYPE_ARG234 $2
  24886. _ACEOF
  24887. cat >>confdefs.h <<_ACEOF
  24888. #define SELECT_TYPE_RETV $4
  24889. _ACEOF
  24890. #
  24891. prev_sh_opts=$-
  24892. #
  24893. case $prev_sh_opts in
  24894. *f*)
  24895. ;;
  24896. *)
  24897. set -f
  24898. ;;
  24899. esac
  24900. #
  24901. case "$sel_qual_type_arg5" in
  24902. const*)
  24903. sel_qual_arg5=const
  24904. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  24905. ;;
  24906. *)
  24907. sel_qual_arg5=
  24908. sel_type_arg5=$sel_qual_type_arg5
  24909. ;;
  24910. esac
  24911. #
  24912. cat >>confdefs.h <<_ACEOF
  24913. #define SELECT_QUAL_ARG5 $sel_qual_arg5
  24914. _ACEOF
  24915. cat >>confdefs.h <<_ACEOF
  24916. #define SELECT_TYPE_ARG5 $sel_type_arg5
  24917. _ACEOF
  24918. #
  24919. case $prev_sh_opts in
  24920. *f*)
  24921. ;;
  24922. *)
  24923. set +f
  24924. ;;
  24925. esac
  24926. #
  24927. cat >>confdefs.h <<_ACEOF
  24928. #define HAVE_SELECT 1
  24929. _ACEOF
  24930. curl_cv_func_select="yes"
  24931. fi
  24932. fi
  24933. for ac_header in sys/types.h sys/socket.h
  24934. do :
  24935. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24936. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  24937. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24938. cat >>confdefs.h <<_ACEOF
  24939. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24940. _ACEOF
  24941. fi
  24942. done
  24943. #
  24944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  24945. $as_echo_n "checking for recv... " >&6; }
  24946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24947. /* end confdefs.h. */
  24948. #undef inline
  24949. #ifdef HAVE_WINDOWS_H
  24950. #ifndef WIN32_LEAN_AND_MEAN
  24951. #define WIN32_LEAN_AND_MEAN
  24952. #endif
  24953. #include <windows.h>
  24954. #ifdef HAVE_WINSOCK2_H
  24955. #include <winsock2.h>
  24956. #else
  24957. #ifdef HAVE_WINSOCK_H
  24958. #include <winsock.h>
  24959. #endif
  24960. #endif
  24961. #else
  24962. #ifdef HAVE_SYS_TYPES_H
  24963. #include <sys/types.h>
  24964. #endif
  24965. #ifdef HAVE_SYS_SOCKET_H
  24966. #include <sys/socket.h>
  24967. #endif
  24968. #endif
  24969. int main (void)
  24970. {
  24971. recv(0, 0, 0, 0);
  24972. ;
  24973. return 0;
  24974. }
  24975. _ACEOF
  24976. if ac_fn_c_try_link "$LINENO"; then :
  24977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24978. $as_echo "yes" >&6; }
  24979. curl_cv_recv="yes"
  24980. else
  24981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24982. $as_echo "no" >&6; }
  24983. curl_cv_recv="no"
  24984. fi
  24985. rm -f core conftest.err conftest.$ac_objext \
  24986. conftest$ac_exeext conftest.$ac_ext
  24987. #
  24988. if test "$curl_cv_recv" = "yes"; then
  24989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  24990. $as_echo_n "checking types of args and return type for recv... " >&6; }
  24991. if ${curl_cv_func_recv_args+:} false; then :
  24992. $as_echo_n "(cached) " >&6
  24993. else
  24994. curl_cv_func_recv_args="unknown"
  24995. for recv_retv in 'int' 'ssize_t'; do
  24996. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  24997. for recv_arg2 in 'char *' 'void *'; do
  24998. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  24999. for recv_arg4 in 'int' 'unsigned int'; do
  25000. if test "$curl_cv_func_recv_args" = "unknown"; then
  25001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25002. /* end confdefs.h. */
  25003. #undef inline
  25004. #ifdef HAVE_WINDOWS_H
  25005. #ifndef WIN32_LEAN_AND_MEAN
  25006. #define WIN32_LEAN_AND_MEAN
  25007. #endif
  25008. #include <windows.h>
  25009. #ifdef HAVE_WINSOCK2_H
  25010. #include <winsock2.h>
  25011. #else
  25012. #ifdef HAVE_WINSOCK_H
  25013. #include <winsock.h>
  25014. #endif
  25015. #endif
  25016. #define RECVCALLCONV PASCAL
  25017. #else
  25018. #ifdef HAVE_SYS_TYPES_H
  25019. #include <sys/types.h>
  25020. #endif
  25021. #ifdef HAVE_SYS_SOCKET_H
  25022. #include <sys/socket.h>
  25023. #endif
  25024. #define RECVCALLCONV
  25025. #endif
  25026. extern $recv_retv RECVCALLCONV
  25027. #ifdef __ANDROID__
  25028. __attribute__((overloadable))
  25029. #endif
  25030. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  25031. int main (void)
  25032. {
  25033. $recv_arg1 s=0;
  25034. $recv_arg2 buf=0;
  25035. $recv_arg3 len=0;
  25036. $recv_arg4 flags=0;
  25037. $recv_retv res = recv(s, buf, len, flags);
  25038. ;
  25039. return 0;
  25040. }
  25041. _ACEOF
  25042. if ac_fn_c_try_compile "$LINENO"; then :
  25043. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  25044. fi
  25045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25046. fi
  25047. done
  25048. done
  25049. done
  25050. done
  25051. done
  25052. fi
  25053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  25054. $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  25055. if test "$curl_cv_func_recv_args" = "unknown"; then
  25056. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  25057. else
  25058. recv_prev_IFS=$IFS; IFS=','
  25059. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  25060. IFS=$recv_prev_IFS
  25061. shift
  25062. #
  25063. cat >>confdefs.h <<_ACEOF
  25064. #define RECV_TYPE_ARG1 $1
  25065. _ACEOF
  25066. cat >>confdefs.h <<_ACEOF
  25067. #define RECV_TYPE_ARG2 $2
  25068. _ACEOF
  25069. cat >>confdefs.h <<_ACEOF
  25070. #define RECV_TYPE_ARG3 $3
  25071. _ACEOF
  25072. cat >>confdefs.h <<_ACEOF
  25073. #define RECV_TYPE_ARG4 $4
  25074. _ACEOF
  25075. cat >>confdefs.h <<_ACEOF
  25076. #define RECV_TYPE_RETV $5
  25077. _ACEOF
  25078. #
  25079. cat >>confdefs.h <<_ACEOF
  25080. #define HAVE_RECV 1
  25081. _ACEOF
  25082. curl_cv_func_recv="yes"
  25083. fi
  25084. else
  25085. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  25086. fi
  25087. for ac_header in sys/types.h sys/socket.h
  25088. do :
  25089. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25090. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  25091. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25092. cat >>confdefs.h <<_ACEOF
  25093. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25094. _ACEOF
  25095. fi
  25096. done
  25097. #
  25098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  25099. $as_echo_n "checking for send... " >&6; }
  25100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25101. /* end confdefs.h. */
  25102. #undef inline
  25103. #ifdef HAVE_WINDOWS_H
  25104. #ifndef WIN32_LEAN_AND_MEAN
  25105. #define WIN32_LEAN_AND_MEAN
  25106. #endif
  25107. #include <windows.h>
  25108. #ifdef HAVE_WINSOCK2_H
  25109. #include <winsock2.h>
  25110. #else
  25111. #ifdef HAVE_WINSOCK_H
  25112. #include <winsock.h>
  25113. #endif
  25114. #endif
  25115. #else
  25116. #ifdef HAVE_SYS_TYPES_H
  25117. #include <sys/types.h>
  25118. #endif
  25119. #ifdef HAVE_SYS_SOCKET_H
  25120. #include <sys/socket.h>
  25121. #endif
  25122. #endif
  25123. int main (void)
  25124. {
  25125. send(0, 0, 0, 0);
  25126. ;
  25127. return 0;
  25128. }
  25129. _ACEOF
  25130. if ac_fn_c_try_link "$LINENO"; then :
  25131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25132. $as_echo "yes" >&6; }
  25133. curl_cv_send="yes"
  25134. else
  25135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25136. $as_echo "no" >&6; }
  25137. curl_cv_send="no"
  25138. fi
  25139. rm -f core conftest.err conftest.$ac_objext \
  25140. conftest$ac_exeext conftest.$ac_ext
  25141. #
  25142. if test "$curl_cv_send" = "yes"; then
  25143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  25144. $as_echo_n "checking types of args and return type for send... " >&6; }
  25145. if ${curl_cv_func_send_args+:} false; then :
  25146. $as_echo_n "(cached) " >&6
  25147. else
  25148. curl_cv_func_send_args="unknown"
  25149. for send_retv in 'int' 'ssize_t'; do
  25150. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  25151. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  25152. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  25153. for send_arg4 in 'int' 'unsigned int'; do
  25154. if test "$curl_cv_func_send_args" = "unknown"; then
  25155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25156. /* end confdefs.h. */
  25157. #undef inline
  25158. #ifdef HAVE_WINDOWS_H
  25159. #ifndef WIN32_LEAN_AND_MEAN
  25160. #define WIN32_LEAN_AND_MEAN
  25161. #endif
  25162. #include <windows.h>
  25163. #ifdef HAVE_WINSOCK2_H
  25164. #include <winsock2.h>
  25165. #else
  25166. #ifdef HAVE_WINSOCK_H
  25167. #include <winsock.h>
  25168. #endif
  25169. #endif
  25170. #define SENDCALLCONV PASCAL
  25171. #else
  25172. #ifdef HAVE_SYS_TYPES_H
  25173. #include <sys/types.h>
  25174. #endif
  25175. #ifdef HAVE_SYS_SOCKET_H
  25176. #include <sys/socket.h>
  25177. #endif
  25178. #define SENDCALLCONV
  25179. #endif
  25180. extern $send_retv SENDCALLCONV
  25181. #ifdef __ANDROID__
  25182. __attribute__((overloadable))
  25183. #endif
  25184. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  25185. int main (void)
  25186. {
  25187. $send_arg1 s=0;
  25188. $send_arg3 len=0;
  25189. $send_arg4 flags=0;
  25190. $send_retv res = send(s, 0, len, flags);
  25191. ;
  25192. return 0;
  25193. }
  25194. _ACEOF
  25195. if ac_fn_c_try_compile "$LINENO"; then :
  25196. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  25197. fi
  25198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25199. fi
  25200. done
  25201. done
  25202. done
  25203. done
  25204. done
  25205. fi
  25206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  25207. $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  25208. if test "$curl_cv_func_send_args" = "unknown"; then
  25209. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  25210. else
  25211. send_prev_IFS=$IFS; IFS=','
  25212. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  25213. IFS=$send_prev_IFS
  25214. shift
  25215. #
  25216. send_qual_type_arg2=$2
  25217. #
  25218. cat >>confdefs.h <<_ACEOF
  25219. #define SEND_TYPE_ARG1 $1
  25220. _ACEOF
  25221. cat >>confdefs.h <<_ACEOF
  25222. #define SEND_TYPE_ARG3 $3
  25223. _ACEOF
  25224. cat >>confdefs.h <<_ACEOF
  25225. #define SEND_TYPE_ARG4 $4
  25226. _ACEOF
  25227. cat >>confdefs.h <<_ACEOF
  25228. #define SEND_TYPE_RETV $5
  25229. _ACEOF
  25230. #
  25231. prev_sh_opts=$-
  25232. #
  25233. case $prev_sh_opts in
  25234. *f*)
  25235. ;;
  25236. *)
  25237. set -f
  25238. ;;
  25239. esac
  25240. #
  25241. case "$send_qual_type_arg2" in
  25242. const*)
  25243. send_qual_arg2=const
  25244. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  25245. ;;
  25246. *)
  25247. send_qual_arg2=
  25248. send_type_arg2=$send_qual_type_arg2
  25249. ;;
  25250. esac
  25251. #
  25252. cat >>confdefs.h <<_ACEOF
  25253. #define SEND_QUAL_ARG2 $send_qual_arg2
  25254. _ACEOF
  25255. cat >>confdefs.h <<_ACEOF
  25256. #define SEND_TYPE_ARG2 $send_type_arg2
  25257. _ACEOF
  25258. #
  25259. case $prev_sh_opts in
  25260. *f*)
  25261. ;;
  25262. *)
  25263. set +f
  25264. ;;
  25265. esac
  25266. #
  25267. cat >>confdefs.h <<_ACEOF
  25268. #define HAVE_SEND 1
  25269. _ACEOF
  25270. curl_cv_func_send="yes"
  25271. fi
  25272. else
  25273. as_fn_error $? "Unable to link function send" "$LINENO" 5
  25274. fi
  25275. for ac_header in sys/types.h sys/socket.h
  25276. do :
  25277. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25278. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  25279. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25280. cat >>confdefs.h <<_ACEOF
  25281. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25282. _ACEOF
  25283. fi
  25284. done
  25285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  25286. $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
  25287. if ${curl_cv_msg_nosignal+:} false; then :
  25288. $as_echo_n "(cached) " >&6
  25289. else
  25290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25291. /* end confdefs.h. */
  25292. #undef inline
  25293. #ifdef HAVE_WINDOWS_H
  25294. #ifndef WIN32_LEAN_AND_MEAN
  25295. #define WIN32_LEAN_AND_MEAN
  25296. #endif
  25297. #include <windows.h>
  25298. #ifdef HAVE_WINSOCK2_H
  25299. #include <winsock2.h>
  25300. #else
  25301. #ifdef HAVE_WINSOCK_H
  25302. #include <winsock.h>
  25303. #endif
  25304. #endif
  25305. #else
  25306. #ifdef HAVE_SYS_TYPES_H
  25307. #include <sys/types.h>
  25308. #endif
  25309. #ifdef HAVE_SYS_SOCKET_H
  25310. #include <sys/socket.h>
  25311. #endif
  25312. #endif
  25313. int main (void)
  25314. {
  25315. int flag=MSG_NOSIGNAL;
  25316. ;
  25317. return 0;
  25318. }
  25319. _ACEOF
  25320. if ac_fn_c_try_compile "$LINENO"; then :
  25321. curl_cv_msg_nosignal="yes"
  25322. else
  25323. curl_cv_msg_nosignal="no"
  25324. fi
  25325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25326. fi
  25327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
  25328. $as_echo "$curl_cv_msg_nosignal" >&6; }
  25329. case "$curl_cv_msg_nosignal" in
  25330. yes)
  25331. cat >>confdefs.h <<_ACEOF
  25332. #define HAVE_MSG_NOSIGNAL 1
  25333. _ACEOF
  25334. ;;
  25335. esac
  25336. curl_includes_unistd="\
  25337. /* includes start */
  25338. #ifdef HAVE_SYS_TYPES_H
  25339. # include <sys/types.h>
  25340. #endif
  25341. #ifdef HAVE_UNISTD_H
  25342. # include <unistd.h>
  25343. #endif
  25344. /* includes end */"
  25345. for ac_header in sys/types.h unistd.h
  25346. do :
  25347. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25348. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
  25349. "
  25350. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25351. cat >>confdefs.h <<_ACEOF
  25352. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25353. _ACEOF
  25354. fi
  25355. done
  25356. #
  25357. tst_links_alarm="unknown"
  25358. tst_proto_alarm="unknown"
  25359. tst_compi_alarm="unknown"
  25360. tst_allow_alarm="unknown"
  25361. #
  25362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
  25363. $as_echo_n "checking if alarm can be linked... " >&6; }
  25364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25365. /* end confdefs.h. */
  25366. #define alarm innocuous_alarm
  25367. #ifdef __STDC__
  25368. # include <limits.h>
  25369. #else
  25370. # include <assert.h>
  25371. #endif
  25372. #undef alarm
  25373. #ifdef __cplusplus
  25374. extern "C"
  25375. #endif
  25376. char alarm ();
  25377. #if defined __stub_alarm || defined __stub___alarm
  25378. choke me
  25379. #endif
  25380. int main (void)
  25381. {
  25382. return alarm ();
  25383. ;
  25384. return 0;
  25385. }
  25386. _ACEOF
  25387. if ac_fn_c_try_link "$LINENO"; then :
  25388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25389. $as_echo "yes" >&6; }
  25390. tst_links_alarm="yes"
  25391. else
  25392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25393. $as_echo "no" >&6; }
  25394. tst_links_alarm="no"
  25395. fi
  25396. rm -f core conftest.err conftest.$ac_objext \
  25397. conftest$ac_exeext conftest.$ac_ext
  25398. #
  25399. if test "$tst_links_alarm" = "yes"; then
  25400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
  25401. $as_echo_n "checking if alarm is prototyped... " >&6; }
  25402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25403. /* end confdefs.h. */
  25404. $curl_includes_unistd
  25405. _ACEOF
  25406. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25407. $EGREP "alarm" >/dev/null 2>&1; then :
  25408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25409. $as_echo "yes" >&6; }
  25410. tst_proto_alarm="yes"
  25411. else
  25412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25413. $as_echo "no" >&6; }
  25414. tst_proto_alarm="no"
  25415. fi
  25416. rm -f conftest*
  25417. fi
  25418. #
  25419. if test "$tst_proto_alarm" = "yes"; then
  25420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
  25421. $as_echo_n "checking if alarm is compilable... " >&6; }
  25422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25423. /* end confdefs.h. */
  25424. $curl_includes_unistd
  25425. int main (void)
  25426. {
  25427. if(0 != alarm(0))
  25428. return 1;
  25429. ;
  25430. return 0;
  25431. }
  25432. _ACEOF
  25433. if ac_fn_c_try_compile "$LINENO"; then :
  25434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25435. $as_echo "yes" >&6; }
  25436. tst_compi_alarm="yes"
  25437. else
  25438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25439. $as_echo "no" >&6; }
  25440. tst_compi_alarm="no"
  25441. fi
  25442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25443. fi
  25444. #
  25445. if test "$tst_compi_alarm" = "yes"; then
  25446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
  25447. $as_echo_n "checking if alarm usage allowed... " >&6; }
  25448. if test "x$curl_disallow_alarm" != "xyes"; then
  25449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25450. $as_echo "yes" >&6; }
  25451. tst_allow_alarm="yes"
  25452. else
  25453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25454. $as_echo "no" >&6; }
  25455. tst_allow_alarm="no"
  25456. fi
  25457. fi
  25458. #
  25459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
  25460. $as_echo_n "checking if alarm might be used... " >&6; }
  25461. if test "$tst_links_alarm" = "yes" &&
  25462. test "$tst_proto_alarm" = "yes" &&
  25463. test "$tst_compi_alarm" = "yes" &&
  25464. test "$tst_allow_alarm" = "yes"; then
  25465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25466. $as_echo "yes" >&6; }
  25467. cat >>confdefs.h <<_ACEOF
  25468. #define HAVE_ALARM 1
  25469. _ACEOF
  25470. curl_cv_func_alarm="yes"
  25471. else
  25472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25473. $as_echo "no" >&6; }
  25474. curl_cv_func_alarm="no"
  25475. fi
  25476. curl_includes_string="\
  25477. /* includes start */
  25478. #ifdef HAVE_SYS_TYPES_H
  25479. # include <sys/types.h>
  25480. #endif
  25481. #ifdef HAVE_STRING_H
  25482. # include <string.h>
  25483. #endif
  25484. #ifdef HAVE_STRINGS_H
  25485. # include <strings.h>
  25486. #endif
  25487. /* includes end */"
  25488. for ac_header in sys/types.h string.h strings.h
  25489. do :
  25490. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25491. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
  25492. "
  25493. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25494. cat >>confdefs.h <<_ACEOF
  25495. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25496. _ACEOF
  25497. fi
  25498. done
  25499. curl_includes_libgen="\
  25500. /* includes start */
  25501. #ifdef HAVE_SYS_TYPES_H
  25502. # include <sys/types.h>
  25503. #endif
  25504. #ifdef HAVE_LIBGEN_H
  25505. # include <libgen.h>
  25506. #endif
  25507. /* includes end */"
  25508. for ac_header in sys/types.h libgen.h
  25509. do :
  25510. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25511. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
  25512. "
  25513. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25514. cat >>confdefs.h <<_ACEOF
  25515. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25516. _ACEOF
  25517. fi
  25518. done
  25519. #
  25520. tst_links_basename="unknown"
  25521. tst_proto_basename="unknown"
  25522. tst_compi_basename="unknown"
  25523. tst_allow_basename="unknown"
  25524. #
  25525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
  25526. $as_echo_n "checking if basename can be linked... " >&6; }
  25527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25528. /* end confdefs.h. */
  25529. #define basename innocuous_basename
  25530. #ifdef __STDC__
  25531. # include <limits.h>
  25532. #else
  25533. # include <assert.h>
  25534. #endif
  25535. #undef basename
  25536. #ifdef __cplusplus
  25537. extern "C"
  25538. #endif
  25539. char basename ();
  25540. #if defined __stub_basename || defined __stub___basename
  25541. choke me
  25542. #endif
  25543. int main (void)
  25544. {
  25545. return basename ();
  25546. ;
  25547. return 0;
  25548. }
  25549. _ACEOF
  25550. if ac_fn_c_try_link "$LINENO"; then :
  25551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25552. $as_echo "yes" >&6; }
  25553. tst_links_basename="yes"
  25554. else
  25555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25556. $as_echo "no" >&6; }
  25557. tst_links_basename="no"
  25558. fi
  25559. rm -f core conftest.err conftest.$ac_objext \
  25560. conftest$ac_exeext conftest.$ac_ext
  25561. #
  25562. if test "$tst_links_basename" = "yes"; then
  25563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
  25564. $as_echo_n "checking if basename is prototyped... " >&6; }
  25565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25566. /* end confdefs.h. */
  25567. $curl_includes_string
  25568. $curl_includes_libgen
  25569. $curl_includes_unistd
  25570. _ACEOF
  25571. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25572. $EGREP "basename" >/dev/null 2>&1; then :
  25573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25574. $as_echo "yes" >&6; }
  25575. tst_proto_basename="yes"
  25576. else
  25577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25578. $as_echo "no" >&6; }
  25579. tst_proto_basename="no"
  25580. fi
  25581. rm -f conftest*
  25582. fi
  25583. #
  25584. if test "$tst_proto_basename" = "yes"; then
  25585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
  25586. $as_echo_n "checking if basename is compilable... " >&6; }
  25587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25588. /* end confdefs.h. */
  25589. $curl_includes_string
  25590. $curl_includes_libgen
  25591. $curl_includes_unistd
  25592. int main (void)
  25593. {
  25594. if(0 != basename(0))
  25595. return 1;
  25596. ;
  25597. return 0;
  25598. }
  25599. _ACEOF
  25600. if ac_fn_c_try_compile "$LINENO"; then :
  25601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25602. $as_echo "yes" >&6; }
  25603. tst_compi_basename="yes"
  25604. else
  25605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25606. $as_echo "no" >&6; }
  25607. tst_compi_basename="no"
  25608. fi
  25609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25610. fi
  25611. #
  25612. if test "$tst_compi_basename" = "yes"; then
  25613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
  25614. $as_echo_n "checking if basename usage allowed... " >&6; }
  25615. if test "x$curl_disallow_basename" != "xyes"; then
  25616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25617. $as_echo "yes" >&6; }
  25618. tst_allow_basename="yes"
  25619. else
  25620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25621. $as_echo "no" >&6; }
  25622. tst_allow_basename="no"
  25623. fi
  25624. fi
  25625. #
  25626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
  25627. $as_echo_n "checking if basename might be used... " >&6; }
  25628. if test "$tst_links_basename" = "yes" &&
  25629. test "$tst_proto_basename" = "yes" &&
  25630. test "$tst_compi_basename" = "yes" &&
  25631. test "$tst_allow_basename" = "yes"; then
  25632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25633. $as_echo "yes" >&6; }
  25634. cat >>confdefs.h <<_ACEOF
  25635. #define HAVE_BASENAME 1
  25636. _ACEOF
  25637. curl_cv_func_basename="yes"
  25638. else
  25639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25640. $as_echo "no" >&6; }
  25641. curl_cv_func_basename="no"
  25642. fi
  25643. curl_includes_socket="\
  25644. /* includes start */
  25645. #ifdef HAVE_SYS_TYPES_H
  25646. # include <sys/types.h>
  25647. #endif
  25648. #ifdef HAVE_SOCKET_H
  25649. # include <socket.h>
  25650. #endif
  25651. /* includes end */"
  25652. for ac_header in sys/types.h socket.h
  25653. do :
  25654. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25655. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
  25656. "
  25657. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25658. cat >>confdefs.h <<_ACEOF
  25659. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25660. _ACEOF
  25661. fi
  25662. done
  25663. #
  25664. tst_links_closesocket="unknown"
  25665. tst_proto_closesocket="unknown"
  25666. tst_compi_closesocket="unknown"
  25667. tst_allow_closesocket="unknown"
  25668. #
  25669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  25670. $as_echo_n "checking if closesocket can be linked... " >&6; }
  25671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25672. /* end confdefs.h. */
  25673. $curl_includes_winsock2
  25674. $curl_includes_socket
  25675. int main (void)
  25676. {
  25677. if(0 != closesocket(0))
  25678. return 1;
  25679. ;
  25680. return 0;
  25681. }
  25682. _ACEOF
  25683. if ac_fn_c_try_link "$LINENO"; then :
  25684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25685. $as_echo "yes" >&6; }
  25686. tst_links_closesocket="yes"
  25687. else
  25688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25689. $as_echo "no" >&6; }
  25690. tst_links_closesocket="no"
  25691. fi
  25692. rm -f core conftest.err conftest.$ac_objext \
  25693. conftest$ac_exeext conftest.$ac_ext
  25694. #
  25695. if test "$tst_links_closesocket" = "yes"; then
  25696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  25697. $as_echo_n "checking if closesocket is prototyped... " >&6; }
  25698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25699. /* end confdefs.h. */
  25700. $curl_includes_winsock2
  25701. $curl_includes_socket
  25702. _ACEOF
  25703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25704. $EGREP "closesocket" >/dev/null 2>&1; then :
  25705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25706. $as_echo "yes" >&6; }
  25707. tst_proto_closesocket="yes"
  25708. else
  25709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25710. $as_echo "no" >&6; }
  25711. tst_proto_closesocket="no"
  25712. fi
  25713. rm -f conftest*
  25714. fi
  25715. #
  25716. if test "$tst_proto_closesocket" = "yes"; then
  25717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  25718. $as_echo_n "checking if closesocket is compilable... " >&6; }
  25719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25720. /* end confdefs.h. */
  25721. $curl_includes_winsock2
  25722. $curl_includes_socket
  25723. int main (void)
  25724. {
  25725. if(0 != closesocket(0))
  25726. return 1;
  25727. ;
  25728. return 0;
  25729. }
  25730. _ACEOF
  25731. if ac_fn_c_try_compile "$LINENO"; then :
  25732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25733. $as_echo "yes" >&6; }
  25734. tst_compi_closesocket="yes"
  25735. else
  25736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25737. $as_echo "no" >&6; }
  25738. tst_compi_closesocket="no"
  25739. fi
  25740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25741. fi
  25742. #
  25743. if test "$tst_compi_closesocket" = "yes"; then
  25744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  25745. $as_echo_n "checking if closesocket usage allowed... " >&6; }
  25746. if test "x$curl_disallow_closesocket" != "xyes"; then
  25747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25748. $as_echo "yes" >&6; }
  25749. tst_allow_closesocket="yes"
  25750. else
  25751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25752. $as_echo "no" >&6; }
  25753. tst_allow_closesocket="no"
  25754. fi
  25755. fi
  25756. #
  25757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  25758. $as_echo_n "checking if closesocket might be used... " >&6; }
  25759. if test "$tst_links_closesocket" = "yes" &&
  25760. test "$tst_proto_closesocket" = "yes" &&
  25761. test "$tst_compi_closesocket" = "yes" &&
  25762. test "$tst_allow_closesocket" = "yes"; then
  25763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25764. $as_echo "yes" >&6; }
  25765. cat >>confdefs.h <<_ACEOF
  25766. #define HAVE_CLOSESOCKET 1
  25767. _ACEOF
  25768. curl_cv_func_closesocket="yes"
  25769. else
  25770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25771. $as_echo "no" >&6; }
  25772. curl_cv_func_closesocket="no"
  25773. fi
  25774. #
  25775. tst_links_closesocket_camel="unknown"
  25776. tst_proto_closesocket_camel="unknown"
  25777. tst_compi_closesocket_camel="unknown"
  25778. tst_allow_closesocket_camel="unknown"
  25779. #
  25780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  25781. $as_echo_n "checking if CloseSocket can be linked... " >&6; }
  25782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25783. /* end confdefs.h. */
  25784. $curl_includes_sys_socket
  25785. int main (void)
  25786. {
  25787. if(0 != CloseSocket(0))
  25788. return 1;
  25789. ;
  25790. return 0;
  25791. }
  25792. _ACEOF
  25793. if ac_fn_c_try_link "$LINENO"; then :
  25794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25795. $as_echo "yes" >&6; }
  25796. tst_links_closesocket_camel="yes"
  25797. else
  25798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25799. $as_echo "no" >&6; }
  25800. tst_links_closesocket_camel="no"
  25801. fi
  25802. rm -f core conftest.err conftest.$ac_objext \
  25803. conftest$ac_exeext conftest.$ac_ext
  25804. #
  25805. if test "$tst_links_closesocket_camel" = "yes"; then
  25806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  25807. $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
  25808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25809. /* end confdefs.h. */
  25810. $curl_includes_sys_socket
  25811. _ACEOF
  25812. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25813. $EGREP "CloseSocket" >/dev/null 2>&1; then :
  25814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25815. $as_echo "yes" >&6; }
  25816. tst_proto_closesocket_camel="yes"
  25817. else
  25818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25819. $as_echo "no" >&6; }
  25820. tst_proto_closesocket_camel="no"
  25821. fi
  25822. rm -f conftest*
  25823. fi
  25824. #
  25825. if test "$tst_proto_closesocket_camel" = "yes"; then
  25826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  25827. $as_echo_n "checking if CloseSocket is compilable... " >&6; }
  25828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25829. /* end confdefs.h. */
  25830. $curl_includes_sys_socket
  25831. int main (void)
  25832. {
  25833. if(0 != CloseSocket(0))
  25834. return 1;
  25835. ;
  25836. return 0;
  25837. }
  25838. _ACEOF
  25839. if ac_fn_c_try_compile "$LINENO"; then :
  25840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25841. $as_echo "yes" >&6; }
  25842. tst_compi_closesocket_camel="yes"
  25843. else
  25844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25845. $as_echo "no" >&6; }
  25846. tst_compi_closesocket_camel="no"
  25847. fi
  25848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25849. fi
  25850. #
  25851. if test "$tst_compi_closesocket_camel" = "yes"; then
  25852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  25853. $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
  25854. if test "x$curl_disallow_closesocket_camel" != "xyes"; then
  25855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25856. $as_echo "yes" >&6; }
  25857. tst_allow_closesocket_camel="yes"
  25858. else
  25859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25860. $as_echo "no" >&6; }
  25861. tst_allow_closesocket_camel="no"
  25862. fi
  25863. fi
  25864. #
  25865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  25866. $as_echo_n "checking if CloseSocket might be used... " >&6; }
  25867. if test "$tst_links_closesocket_camel" = "yes" &&
  25868. test "$tst_proto_closesocket_camel" = "yes" &&
  25869. test "$tst_compi_closesocket_camel" = "yes" &&
  25870. test "$tst_allow_closesocket_camel" = "yes"; then
  25871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25872. $as_echo "yes" >&6; }
  25873. cat >>confdefs.h <<_ACEOF
  25874. #define HAVE_CLOSESOCKET_CAMEL 1
  25875. _ACEOF
  25876. curl_cv_func_closesocket_camel="yes"
  25877. else
  25878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25879. $as_echo "no" >&6; }
  25880. curl_cv_func_closesocket_camel="no"
  25881. fi
  25882. #
  25883. tst_links_connect="unknown"
  25884. tst_proto_connect="unknown"
  25885. tst_compi_connect="unknown"
  25886. tst_allow_connect="unknown"
  25887. #
  25888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  25889. $as_echo_n "checking if connect can be linked... " >&6; }
  25890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25891. /* end confdefs.h. */
  25892. $curl_includes_winsock2
  25893. $curl_includes_sys_socket
  25894. $curl_includes_socket
  25895. int main (void)
  25896. {
  25897. if(0 != connect(0, 0, 0))
  25898. return 1;
  25899. ;
  25900. return 0;
  25901. }
  25902. _ACEOF
  25903. if ac_fn_c_try_link "$LINENO"; then :
  25904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25905. $as_echo "yes" >&6; }
  25906. tst_links_connect="yes"
  25907. else
  25908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25909. $as_echo "no" >&6; }
  25910. tst_links_connect="no"
  25911. fi
  25912. rm -f core conftest.err conftest.$ac_objext \
  25913. conftest$ac_exeext conftest.$ac_ext
  25914. #
  25915. if test "$tst_links_connect" = "yes"; then
  25916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  25917. $as_echo_n "checking if connect is prototyped... " >&6; }
  25918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25919. /* end confdefs.h. */
  25920. $curl_includes_winsock2
  25921. $curl_includes_sys_socket
  25922. $curl_includes_socket
  25923. _ACEOF
  25924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25925. $EGREP "connect" >/dev/null 2>&1; then :
  25926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25927. $as_echo "yes" >&6; }
  25928. tst_proto_connect="yes"
  25929. else
  25930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25931. $as_echo "no" >&6; }
  25932. tst_proto_connect="no"
  25933. fi
  25934. rm -f conftest*
  25935. fi
  25936. #
  25937. if test "$tst_proto_connect" = "yes"; then
  25938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  25939. $as_echo_n "checking if connect is compilable... " >&6; }
  25940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25941. /* end confdefs.h. */
  25942. $curl_includes_winsock2
  25943. $curl_includes_sys_socket
  25944. $curl_includes_socket
  25945. int main (void)
  25946. {
  25947. if(0 != connect(0, 0, 0))
  25948. return 1;
  25949. ;
  25950. return 0;
  25951. }
  25952. _ACEOF
  25953. if ac_fn_c_try_compile "$LINENO"; then :
  25954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25955. $as_echo "yes" >&6; }
  25956. tst_compi_connect="yes"
  25957. else
  25958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25959. $as_echo "no" >&6; }
  25960. tst_compi_connect="no"
  25961. fi
  25962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25963. fi
  25964. #
  25965. if test "$tst_compi_connect" = "yes"; then
  25966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  25967. $as_echo_n "checking if connect usage allowed... " >&6; }
  25968. if test "x$curl_disallow_connect" != "xyes"; then
  25969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25970. $as_echo "yes" >&6; }
  25971. tst_allow_connect="yes"
  25972. else
  25973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25974. $as_echo "no" >&6; }
  25975. tst_allow_connect="no"
  25976. fi
  25977. fi
  25978. #
  25979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  25980. $as_echo_n "checking if connect might be used... " >&6; }
  25981. if test "$tst_links_connect" = "yes" &&
  25982. test "$tst_proto_connect" = "yes" &&
  25983. test "$tst_compi_connect" = "yes" &&
  25984. test "$tst_allow_connect" = "yes"; then
  25985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25986. $as_echo "yes" >&6; }
  25987. cat >>confdefs.h <<_ACEOF
  25988. #define HAVE_CONNECT 1
  25989. _ACEOF
  25990. curl_cv_func_connect="yes"
  25991. else
  25992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25993. $as_echo "no" >&6; }
  25994. curl_cv_func_connect="no"
  25995. fi
  25996. curl_includes_fcntl="\
  25997. /* includes start */
  25998. #ifdef HAVE_SYS_TYPES_H
  25999. # include <sys/types.h>
  26000. #endif
  26001. #ifdef HAVE_UNISTD_H
  26002. # include <unistd.h>
  26003. #endif
  26004. #ifdef HAVE_FCNTL_H
  26005. # include <fcntl.h>
  26006. #endif
  26007. /* includes end */"
  26008. for ac_header in sys/types.h unistd.h fcntl.h
  26009. do :
  26010. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26011. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
  26012. "
  26013. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26014. cat >>confdefs.h <<_ACEOF
  26015. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26016. _ACEOF
  26017. fi
  26018. done
  26019. #
  26020. tst_links_fcntl="unknown"
  26021. tst_proto_fcntl="unknown"
  26022. tst_compi_fcntl="unknown"
  26023. tst_allow_fcntl="unknown"
  26024. #
  26025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  26026. $as_echo_n "checking if fcntl can be linked... " >&6; }
  26027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26028. /* end confdefs.h. */
  26029. #define fcntl innocuous_fcntl
  26030. #ifdef __STDC__
  26031. # include <limits.h>
  26032. #else
  26033. # include <assert.h>
  26034. #endif
  26035. #undef fcntl
  26036. #ifdef __cplusplus
  26037. extern "C"
  26038. #endif
  26039. char fcntl ();
  26040. #if defined __stub_fcntl || defined __stub___fcntl
  26041. choke me
  26042. #endif
  26043. int main (void)
  26044. {
  26045. return fcntl ();
  26046. ;
  26047. return 0;
  26048. }
  26049. _ACEOF
  26050. if ac_fn_c_try_link "$LINENO"; then :
  26051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26052. $as_echo "yes" >&6; }
  26053. tst_links_fcntl="yes"
  26054. else
  26055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26056. $as_echo "no" >&6; }
  26057. tst_links_fcntl="no"
  26058. fi
  26059. rm -f core conftest.err conftest.$ac_objext \
  26060. conftest$ac_exeext conftest.$ac_ext
  26061. #
  26062. if test "$tst_links_fcntl" = "yes"; then
  26063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  26064. $as_echo_n "checking if fcntl is prototyped... " >&6; }
  26065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26066. /* end confdefs.h. */
  26067. $curl_includes_fcntl
  26068. _ACEOF
  26069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26070. $EGREP "fcntl" >/dev/null 2>&1; then :
  26071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26072. $as_echo "yes" >&6; }
  26073. tst_proto_fcntl="yes"
  26074. else
  26075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26076. $as_echo "no" >&6; }
  26077. tst_proto_fcntl="no"
  26078. fi
  26079. rm -f conftest*
  26080. fi
  26081. #
  26082. if test "$tst_proto_fcntl" = "yes"; then
  26083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  26084. $as_echo_n "checking if fcntl is compilable... " >&6; }
  26085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26086. /* end confdefs.h. */
  26087. $curl_includes_fcntl
  26088. int main (void)
  26089. {
  26090. if(0 != fcntl(0, 0, 0))
  26091. return 1;
  26092. ;
  26093. return 0;
  26094. }
  26095. _ACEOF
  26096. if ac_fn_c_try_compile "$LINENO"; then :
  26097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26098. $as_echo "yes" >&6; }
  26099. tst_compi_fcntl="yes"
  26100. else
  26101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26102. $as_echo "no" >&6; }
  26103. tst_compi_fcntl="no"
  26104. fi
  26105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26106. fi
  26107. #
  26108. if test "$tst_compi_fcntl" = "yes"; then
  26109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  26110. $as_echo_n "checking if fcntl usage allowed... " >&6; }
  26111. if test "x$curl_disallow_fcntl" != "xyes"; then
  26112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26113. $as_echo "yes" >&6; }
  26114. tst_allow_fcntl="yes"
  26115. else
  26116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26117. $as_echo "no" >&6; }
  26118. tst_allow_fcntl="no"
  26119. fi
  26120. fi
  26121. #
  26122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  26123. $as_echo_n "checking if fcntl might be used... " >&6; }
  26124. if test "$tst_links_fcntl" = "yes" &&
  26125. test "$tst_proto_fcntl" = "yes" &&
  26126. test "$tst_compi_fcntl" = "yes" &&
  26127. test "$tst_allow_fcntl" = "yes"; then
  26128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26129. $as_echo "yes" >&6; }
  26130. cat >>confdefs.h <<_ACEOF
  26131. #define HAVE_FCNTL 1
  26132. _ACEOF
  26133. curl_cv_func_fcntl="yes"
  26134. #
  26135. tst_compi_fcntl_o_nonblock="unknown"
  26136. tst_allow_fcntl_o_nonblock="unknown"
  26137. #
  26138. case $host_os in
  26139. sunos4* | aix3* | beos*)
  26140. curl_disallow_fcntl_o_nonblock="yes"
  26141. ;;
  26142. esac
  26143. #
  26144. if test "$curl_cv_func_fcntl" = "yes"; then
  26145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  26146. $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  26147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26148. /* end confdefs.h. */
  26149. $curl_includes_fcntl
  26150. int main (void)
  26151. {
  26152. int flags = 0;
  26153. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  26154. return 1;
  26155. ;
  26156. return 0;
  26157. }
  26158. _ACEOF
  26159. if ac_fn_c_try_compile "$LINENO"; then :
  26160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26161. $as_echo "yes" >&6; }
  26162. tst_compi_fcntl_o_nonblock="yes"
  26163. else
  26164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26165. $as_echo "no" >&6; }
  26166. tst_compi_fcntl_o_nonblock="no"
  26167. fi
  26168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26169. fi
  26170. #
  26171. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  26172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  26173. $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  26174. if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
  26175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26176. $as_echo "yes" >&6; }
  26177. tst_allow_fcntl_o_nonblock="yes"
  26178. else
  26179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26180. $as_echo "no" >&6; }
  26181. tst_allow_fcntl_o_nonblock="no"
  26182. fi
  26183. fi
  26184. #
  26185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  26186. $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
  26187. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  26188. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  26189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26190. $as_echo "yes" >&6; }
  26191. cat >>confdefs.h <<_ACEOF
  26192. #define HAVE_FCNTL_O_NONBLOCK 1
  26193. _ACEOF
  26194. curl_cv_func_fcntl_o_nonblock="yes"
  26195. else
  26196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26197. $as_echo "no" >&6; }
  26198. curl_cv_func_fcntl_o_nonblock="no"
  26199. fi
  26200. else
  26201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26202. $as_echo "no" >&6; }
  26203. curl_cv_func_fcntl="no"
  26204. fi
  26205. curl_includes_stdio="\
  26206. /* includes start */
  26207. #ifdef HAVE_SYS_TYPES_H
  26208. # include <sys/types.h>
  26209. #endif
  26210. #ifdef HAVE_STDIO_H
  26211. # include <stdio.h>
  26212. #endif
  26213. /* includes end */"
  26214. for ac_header in sys/types.h stdio.h
  26215. do :
  26216. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26217. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
  26218. "
  26219. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26220. cat >>confdefs.h <<_ACEOF
  26221. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26222. _ACEOF
  26223. fi
  26224. done
  26225. #
  26226. tst_links_fdopen="unknown"
  26227. tst_proto_fdopen="unknown"
  26228. tst_compi_fdopen="unknown"
  26229. tst_allow_fdopen="unknown"
  26230. #
  26231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
  26232. $as_echo_n "checking if fdopen can be linked... " >&6; }
  26233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26234. /* end confdefs.h. */
  26235. #define fdopen innocuous_fdopen
  26236. #ifdef __STDC__
  26237. # include <limits.h>
  26238. #else
  26239. # include <assert.h>
  26240. #endif
  26241. #undef fdopen
  26242. #ifdef __cplusplus
  26243. extern "C"
  26244. #endif
  26245. char fdopen ();
  26246. #if defined __stub_fdopen || defined __stub___fdopen
  26247. choke me
  26248. #endif
  26249. int main (void)
  26250. {
  26251. return fdopen ();
  26252. ;
  26253. return 0;
  26254. }
  26255. _ACEOF
  26256. if ac_fn_c_try_link "$LINENO"; then :
  26257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26258. $as_echo "yes" >&6; }
  26259. tst_links_fdopen="yes"
  26260. else
  26261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26262. $as_echo "no" >&6; }
  26263. tst_links_fdopen="no"
  26264. fi
  26265. rm -f core conftest.err conftest.$ac_objext \
  26266. conftest$ac_exeext conftest.$ac_ext
  26267. #
  26268. if test "$tst_links_fdopen" = "yes"; then
  26269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
  26270. $as_echo_n "checking if fdopen is prototyped... " >&6; }
  26271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26272. /* end confdefs.h. */
  26273. $curl_includes_stdio
  26274. _ACEOF
  26275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26276. $EGREP "fdopen" >/dev/null 2>&1; then :
  26277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26278. $as_echo "yes" >&6; }
  26279. tst_proto_fdopen="yes"
  26280. else
  26281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26282. $as_echo "no" >&6; }
  26283. tst_proto_fdopen="no"
  26284. fi
  26285. rm -f conftest*
  26286. fi
  26287. #
  26288. if test "$tst_proto_fdopen" = "yes"; then
  26289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
  26290. $as_echo_n "checking if fdopen is compilable... " >&6; }
  26291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26292. /* end confdefs.h. */
  26293. $curl_includes_stdio
  26294. int main (void)
  26295. {
  26296. if(0 != fdopen(0, 0))
  26297. return 1;
  26298. ;
  26299. return 0;
  26300. }
  26301. _ACEOF
  26302. if ac_fn_c_try_compile "$LINENO"; then :
  26303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26304. $as_echo "yes" >&6; }
  26305. tst_compi_fdopen="yes"
  26306. else
  26307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26308. $as_echo "no" >&6; }
  26309. tst_compi_fdopen="no"
  26310. fi
  26311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26312. fi
  26313. #
  26314. if test "$tst_compi_fdopen" = "yes"; then
  26315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
  26316. $as_echo_n "checking if fdopen usage allowed... " >&6; }
  26317. if test "x$curl_disallow_fdopen" != "xyes"; then
  26318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26319. $as_echo "yes" >&6; }
  26320. tst_allow_fdopen="yes"
  26321. else
  26322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26323. $as_echo "no" >&6; }
  26324. tst_allow_fdopen="no"
  26325. fi
  26326. fi
  26327. #
  26328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
  26329. $as_echo_n "checking if fdopen might be used... " >&6; }
  26330. if test "$tst_links_fdopen" = "yes" &&
  26331. test "$tst_proto_fdopen" = "yes" &&
  26332. test "$tst_compi_fdopen" = "yes" &&
  26333. test "$tst_allow_fdopen" = "yes"; then
  26334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26335. $as_echo "yes" >&6; }
  26336. cat >>confdefs.h <<_ACEOF
  26337. #define HAVE_FDOPEN 1
  26338. _ACEOF
  26339. curl_cv_func_fdopen="yes"
  26340. else
  26341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26342. $as_echo "no" >&6; }
  26343. curl_cv_func_fdopen="no"
  26344. fi
  26345. curl_includes_netdb="\
  26346. /* includes start */
  26347. #ifdef HAVE_SYS_TYPES_H
  26348. # include <sys/types.h>
  26349. #endif
  26350. #ifdef HAVE_NETDB_H
  26351. # include <netdb.h>
  26352. #endif
  26353. /* includes end */"
  26354. for ac_header in sys/types.h netdb.h
  26355. do :
  26356. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26357. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
  26358. "
  26359. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26360. cat >>confdefs.h <<_ACEOF
  26361. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26362. _ACEOF
  26363. fi
  26364. done
  26365. #
  26366. tst_links_freeaddrinfo="unknown"
  26367. tst_proto_freeaddrinfo="unknown"
  26368. tst_compi_freeaddrinfo="unknown"
  26369. tst_allow_freeaddrinfo="unknown"
  26370. #
  26371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  26372. $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
  26373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26374. /* end confdefs.h. */
  26375. $curl_includes_ws2tcpip
  26376. $curl_includes_sys_socket
  26377. $curl_includes_netdb
  26378. int main (void)
  26379. {
  26380. freeaddrinfo(0);
  26381. ;
  26382. return 0;
  26383. }
  26384. _ACEOF
  26385. if ac_fn_c_try_link "$LINENO"; then :
  26386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26387. $as_echo "yes" >&6; }
  26388. tst_links_freeaddrinfo="yes"
  26389. else
  26390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26391. $as_echo "no" >&6; }
  26392. tst_links_freeaddrinfo="no"
  26393. fi
  26394. rm -f core conftest.err conftest.$ac_objext \
  26395. conftest$ac_exeext conftest.$ac_ext
  26396. #
  26397. if test "$tst_links_freeaddrinfo" = "yes"; then
  26398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  26399. $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
  26400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26401. /* end confdefs.h. */
  26402. $curl_includes_ws2tcpip
  26403. $curl_includes_sys_socket
  26404. $curl_includes_netdb
  26405. _ACEOF
  26406. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26407. $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
  26408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26409. $as_echo "yes" >&6; }
  26410. tst_proto_freeaddrinfo="yes"
  26411. else
  26412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26413. $as_echo "no" >&6; }
  26414. tst_proto_freeaddrinfo="no"
  26415. fi
  26416. rm -f conftest*
  26417. fi
  26418. #
  26419. if test "$tst_proto_freeaddrinfo" = "yes"; then
  26420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  26421. $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
  26422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26423. /* end confdefs.h. */
  26424. $curl_includes_ws2tcpip
  26425. $curl_includes_sys_socket
  26426. $curl_includes_netdb
  26427. int main (void)
  26428. {
  26429. freeaddrinfo(0);
  26430. ;
  26431. return 0;
  26432. }
  26433. _ACEOF
  26434. if ac_fn_c_try_compile "$LINENO"; then :
  26435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26436. $as_echo "yes" >&6; }
  26437. tst_compi_freeaddrinfo="yes"
  26438. else
  26439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26440. $as_echo "no" >&6; }
  26441. tst_compi_freeaddrinfo="no"
  26442. fi
  26443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26444. fi
  26445. #
  26446. if test "$tst_compi_freeaddrinfo" = "yes"; then
  26447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  26448. $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
  26449. if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
  26450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26451. $as_echo "yes" >&6; }
  26452. tst_allow_freeaddrinfo="yes"
  26453. else
  26454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26455. $as_echo "no" >&6; }
  26456. tst_allow_freeaddrinfo="no"
  26457. fi
  26458. fi
  26459. #
  26460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  26461. $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
  26462. if test "$tst_links_freeaddrinfo" = "yes" &&
  26463. test "$tst_proto_freeaddrinfo" = "yes" &&
  26464. test "$tst_compi_freeaddrinfo" = "yes" &&
  26465. test "$tst_allow_freeaddrinfo" = "yes"; then
  26466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26467. $as_echo "yes" >&6; }
  26468. cat >>confdefs.h <<_ACEOF
  26469. #define HAVE_FREEADDRINFO 1
  26470. _ACEOF
  26471. curl_cv_func_freeaddrinfo="yes"
  26472. else
  26473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26474. $as_echo "no" >&6; }
  26475. curl_cv_func_freeaddrinfo="no"
  26476. fi
  26477. curl_includes_ifaddrs="\
  26478. /* includes start */
  26479. #ifdef HAVE_SYS_TYPES_H
  26480. # include <sys/types.h>
  26481. #endif
  26482. #ifdef HAVE_SYS_SOCKET_H
  26483. # include <sys/socket.h>
  26484. #endif
  26485. #ifdef HAVE_NETINET_IN_H
  26486. # include <netinet/in.h>
  26487. #endif
  26488. #ifdef HAVE_IFADDRS_H
  26489. # include <ifaddrs.h>
  26490. #endif
  26491. /* includes end */"
  26492. for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
  26493. do :
  26494. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26495. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
  26496. "
  26497. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26498. cat >>confdefs.h <<_ACEOF
  26499. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26500. _ACEOF
  26501. fi
  26502. done
  26503. #
  26504. tst_links_freeifaddrs="unknown"
  26505. tst_proto_freeifaddrs="unknown"
  26506. tst_compi_freeifaddrs="unknown"
  26507. tst_allow_freeifaddrs="unknown"
  26508. #
  26509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
  26510. $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
  26511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26512. /* end confdefs.h. */
  26513. #define freeifaddrs innocuous_freeifaddrs
  26514. #ifdef __STDC__
  26515. # include <limits.h>
  26516. #else
  26517. # include <assert.h>
  26518. #endif
  26519. #undef freeifaddrs
  26520. #ifdef __cplusplus
  26521. extern "C"
  26522. #endif
  26523. char freeifaddrs ();
  26524. #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
  26525. choke me
  26526. #endif
  26527. int main (void)
  26528. {
  26529. return freeifaddrs ();
  26530. ;
  26531. return 0;
  26532. }
  26533. _ACEOF
  26534. if ac_fn_c_try_link "$LINENO"; then :
  26535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26536. $as_echo "yes" >&6; }
  26537. tst_links_freeifaddrs="yes"
  26538. else
  26539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26540. $as_echo "no" >&6; }
  26541. tst_links_freeifaddrs="no"
  26542. fi
  26543. rm -f core conftest.err conftest.$ac_objext \
  26544. conftest$ac_exeext conftest.$ac_ext
  26545. #
  26546. if test "$tst_links_freeifaddrs" = "yes"; then
  26547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
  26548. $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
  26549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26550. /* end confdefs.h. */
  26551. $curl_includes_ifaddrs
  26552. _ACEOF
  26553. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26554. $EGREP "freeifaddrs" >/dev/null 2>&1; then :
  26555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26556. $as_echo "yes" >&6; }
  26557. tst_proto_freeifaddrs="yes"
  26558. else
  26559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26560. $as_echo "no" >&6; }
  26561. tst_proto_freeifaddrs="no"
  26562. fi
  26563. rm -f conftest*
  26564. fi
  26565. #
  26566. if test "$tst_proto_freeifaddrs" = "yes"; then
  26567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
  26568. $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
  26569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26570. /* end confdefs.h. */
  26571. $curl_includes_ifaddrs
  26572. int main (void)
  26573. {
  26574. freeifaddrs(0);
  26575. ;
  26576. return 0;
  26577. }
  26578. _ACEOF
  26579. if ac_fn_c_try_compile "$LINENO"; then :
  26580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26581. $as_echo "yes" >&6; }
  26582. tst_compi_freeifaddrs="yes"
  26583. else
  26584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26585. $as_echo "no" >&6; }
  26586. tst_compi_freeifaddrs="no"
  26587. fi
  26588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26589. fi
  26590. #
  26591. if test "$tst_compi_freeifaddrs" = "yes"; then
  26592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
  26593. $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
  26594. if test "x$curl_disallow_freeifaddrs" != "xyes"; then
  26595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26596. $as_echo "yes" >&6; }
  26597. tst_allow_freeifaddrs="yes"
  26598. else
  26599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26600. $as_echo "no" >&6; }
  26601. tst_allow_freeifaddrs="no"
  26602. fi
  26603. fi
  26604. #
  26605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
  26606. $as_echo_n "checking if freeifaddrs might be used... " >&6; }
  26607. if test "$tst_links_freeifaddrs" = "yes" &&
  26608. test "$tst_proto_freeifaddrs" = "yes" &&
  26609. test "$tst_compi_freeifaddrs" = "yes" &&
  26610. test "$tst_allow_freeifaddrs" = "yes"; then
  26611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26612. $as_echo "yes" >&6; }
  26613. cat >>confdefs.h <<_ACEOF
  26614. #define HAVE_FREEIFADDRS 1
  26615. _ACEOF
  26616. curl_cv_func_freeifaddrs="yes"
  26617. else
  26618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26619. $as_echo "no" >&6; }
  26620. curl_cv_func_freeifaddrs="no"
  26621. fi
  26622. curl_includes_sys_xattr="\
  26623. /* includes start */
  26624. #ifdef HAVE_SYS_TYPES_H
  26625. # include <sys/types.h>
  26626. #endif
  26627. #ifdef HAVE_SYS_XATTR_H
  26628. # include <sys/xattr.h>
  26629. #endif
  26630. /* includes end */"
  26631. for ac_header in sys/types.h sys/xattr.h
  26632. do :
  26633. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26634. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
  26635. "
  26636. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26637. cat >>confdefs.h <<_ACEOF
  26638. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26639. _ACEOF
  26640. fi
  26641. done
  26642. #
  26643. tst_links_fsetxattr="unknown"
  26644. tst_proto_fsetxattr="unknown"
  26645. tst_compi_fsetxattr="unknown"
  26646. tst_allow_fsetxattr="unknown"
  26647. tst_nargs_fsetxattr="unknown"
  26648. #
  26649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
  26650. $as_echo_n "checking if fsetxattr can be linked... " >&6; }
  26651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26652. /* end confdefs.h. */
  26653. #define fsetxattr innocuous_fsetxattr
  26654. #ifdef __STDC__
  26655. # include <limits.h>
  26656. #else
  26657. # include <assert.h>
  26658. #endif
  26659. #undef fsetxattr
  26660. #ifdef __cplusplus
  26661. extern "C"
  26662. #endif
  26663. char fsetxattr ();
  26664. #if defined __stub_fsetxattr || defined __stub___fsetxattr
  26665. choke me
  26666. #endif
  26667. int main (void)
  26668. {
  26669. return fsetxattr ();
  26670. ;
  26671. return 0;
  26672. }
  26673. _ACEOF
  26674. if ac_fn_c_try_link "$LINENO"; then :
  26675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26676. $as_echo "yes" >&6; }
  26677. tst_links_fsetxattr="yes"
  26678. else
  26679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26680. $as_echo "no" >&6; }
  26681. tst_links_fsetxattr="no"
  26682. fi
  26683. rm -f core conftest.err conftest.$ac_objext \
  26684. conftest$ac_exeext conftest.$ac_ext
  26685. #
  26686. if test "$tst_links_fsetxattr" = "yes"; then
  26687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
  26688. $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
  26689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26690. /* end confdefs.h. */
  26691. $curl_includes_sys_xattr
  26692. _ACEOF
  26693. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26694. $EGREP "fsetxattr" >/dev/null 2>&1; then :
  26695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26696. $as_echo "yes" >&6; }
  26697. tst_proto_fsetxattr="yes"
  26698. else
  26699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26700. $as_echo "no" >&6; }
  26701. tst_proto_fsetxattr="no"
  26702. fi
  26703. rm -f conftest*
  26704. fi
  26705. #
  26706. if test "$tst_proto_fsetxattr" = "yes"; then
  26707. if test "$tst_nargs_fsetxattr" = "unknown"; then
  26708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
  26709. $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
  26710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26711. /* end confdefs.h. */
  26712. $curl_includes_sys_xattr
  26713. int main (void)
  26714. {
  26715. if(0 != fsetxattr(0, 0, 0, 0, 0))
  26716. return 1;
  26717. ;
  26718. return 0;
  26719. }
  26720. _ACEOF
  26721. if ac_fn_c_try_compile "$LINENO"; then :
  26722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26723. $as_echo "yes" >&6; }
  26724. tst_compi_fsetxattr="yes"
  26725. tst_nargs_fsetxattr="5"
  26726. else
  26727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26728. $as_echo "no" >&6; }
  26729. tst_compi_fsetxattr="no"
  26730. fi
  26731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26732. fi
  26733. if test "$tst_nargs_fsetxattr" = "unknown"; then
  26734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
  26735. $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
  26736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26737. /* end confdefs.h. */
  26738. $curl_includes_sys_xattr
  26739. int main (void)
  26740. {
  26741. if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
  26742. return 1;
  26743. ;
  26744. return 0;
  26745. }
  26746. _ACEOF
  26747. if ac_fn_c_try_compile "$LINENO"; then :
  26748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26749. $as_echo "yes" >&6; }
  26750. tst_compi_fsetxattr="yes"
  26751. tst_nargs_fsetxattr="6"
  26752. else
  26753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26754. $as_echo "no" >&6; }
  26755. tst_compi_fsetxattr="no"
  26756. fi
  26757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26758. fi
  26759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
  26760. $as_echo_n "checking if fsetxattr is compilable... " >&6; }
  26761. if test "$tst_compi_fsetxattr" = "yes"; then
  26762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26763. $as_echo "yes" >&6; }
  26764. else
  26765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26766. $as_echo "no" >&6; }
  26767. fi
  26768. fi
  26769. #
  26770. if test "$tst_compi_fsetxattr" = "yes"; then
  26771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
  26772. $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
  26773. if test "x$curl_disallow_fsetxattr" != "xyes"; then
  26774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26775. $as_echo "yes" >&6; }
  26776. tst_allow_fsetxattr="yes"
  26777. else
  26778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26779. $as_echo "no" >&6; }
  26780. tst_allow_fsetxattr="no"
  26781. fi
  26782. fi
  26783. #
  26784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
  26785. $as_echo_n "checking if fsetxattr might be used... " >&6; }
  26786. if test "$tst_links_fsetxattr" = "yes" &&
  26787. test "$tst_proto_fsetxattr" = "yes" &&
  26788. test "$tst_compi_fsetxattr" = "yes" &&
  26789. test "$tst_allow_fsetxattr" = "yes"; then
  26790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26791. $as_echo "yes" >&6; }
  26792. cat >>confdefs.h <<_ACEOF
  26793. #define HAVE_FSETXATTR 1
  26794. _ACEOF
  26795. #
  26796. if test "$tst_nargs_fsetxattr" -eq "5"; then
  26797. $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
  26798. elif test "$tst_nargs_fsetxattr" -eq "6"; then
  26799. $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
  26800. fi
  26801. #
  26802. curl_cv_func_fsetxattr="yes"
  26803. else
  26804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26805. $as_echo "no" >&6; }
  26806. curl_cv_func_fsetxattr="no"
  26807. fi
  26808. #
  26809. tst_links_ftruncate="unknown"
  26810. tst_proto_ftruncate="unknown"
  26811. tst_compi_ftruncate="unknown"
  26812. tst_allow_ftruncate="unknown"
  26813. #
  26814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
  26815. $as_echo_n "checking if ftruncate can be linked... " >&6; }
  26816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26817. /* end confdefs.h. */
  26818. #define ftruncate innocuous_ftruncate
  26819. #ifdef __STDC__
  26820. # include <limits.h>
  26821. #else
  26822. # include <assert.h>
  26823. #endif
  26824. #undef ftruncate
  26825. #ifdef __cplusplus
  26826. extern "C"
  26827. #endif
  26828. char ftruncate ();
  26829. #if defined __stub_ftruncate || defined __stub___ftruncate
  26830. choke me
  26831. #endif
  26832. int main (void)
  26833. {
  26834. return ftruncate ();
  26835. ;
  26836. return 0;
  26837. }
  26838. _ACEOF
  26839. if ac_fn_c_try_link "$LINENO"; then :
  26840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26841. $as_echo "yes" >&6; }
  26842. tst_links_ftruncate="yes"
  26843. else
  26844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26845. $as_echo "no" >&6; }
  26846. tst_links_ftruncate="no"
  26847. fi
  26848. rm -f core conftest.err conftest.$ac_objext \
  26849. conftest$ac_exeext conftest.$ac_ext
  26850. #
  26851. if test "$tst_links_ftruncate" = "yes"; then
  26852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
  26853. $as_echo_n "checking if ftruncate is prototyped... " >&6; }
  26854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26855. /* end confdefs.h. */
  26856. $curl_includes_unistd
  26857. _ACEOF
  26858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26859. $EGREP "ftruncate" >/dev/null 2>&1; then :
  26860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26861. $as_echo "yes" >&6; }
  26862. tst_proto_ftruncate="yes"
  26863. else
  26864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26865. $as_echo "no" >&6; }
  26866. tst_proto_ftruncate="no"
  26867. fi
  26868. rm -f conftest*
  26869. fi
  26870. #
  26871. if test "$tst_proto_ftruncate" = "yes"; then
  26872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
  26873. $as_echo_n "checking if ftruncate is compilable... " >&6; }
  26874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26875. /* end confdefs.h. */
  26876. $curl_includes_unistd
  26877. int main (void)
  26878. {
  26879. if(0 != ftruncate(0, 0))
  26880. return 1;
  26881. ;
  26882. return 0;
  26883. }
  26884. _ACEOF
  26885. if ac_fn_c_try_compile "$LINENO"; then :
  26886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26887. $as_echo "yes" >&6; }
  26888. tst_compi_ftruncate="yes"
  26889. else
  26890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26891. $as_echo "no" >&6; }
  26892. tst_compi_ftruncate="no"
  26893. fi
  26894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26895. fi
  26896. #
  26897. if test "$tst_compi_ftruncate" = "yes"; then
  26898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
  26899. $as_echo_n "checking if ftruncate usage allowed... " >&6; }
  26900. if test "x$curl_disallow_ftruncate" != "xyes"; then
  26901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26902. $as_echo "yes" >&6; }
  26903. tst_allow_ftruncate="yes"
  26904. else
  26905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26906. $as_echo "no" >&6; }
  26907. tst_allow_ftruncate="no"
  26908. fi
  26909. fi
  26910. #
  26911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
  26912. $as_echo_n "checking if ftruncate might be used... " >&6; }
  26913. if test "$tst_links_ftruncate" = "yes" &&
  26914. test "$tst_proto_ftruncate" = "yes" &&
  26915. test "$tst_compi_ftruncate" = "yes" &&
  26916. test "$tst_allow_ftruncate" = "yes"; then
  26917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26918. $as_echo "yes" >&6; }
  26919. cat >>confdefs.h <<_ACEOF
  26920. #define HAVE_FTRUNCATE 1
  26921. _ACEOF
  26922. curl_cv_func_ftruncate="yes"
  26923. else
  26924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26925. $as_echo "no" >&6; }
  26926. curl_cv_func_ftruncate="no"
  26927. fi
  26928. curl_includes_stdlib="\
  26929. /* includes start */
  26930. #ifdef HAVE_SYS_TYPES_H
  26931. # include <sys/types.h>
  26932. #endif
  26933. #ifdef HAVE_STDLIB_H
  26934. # include <stdlib.h>
  26935. #endif
  26936. /* includes end */"
  26937. for ac_header in sys/types.h stdlib.h
  26938. do :
  26939. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26940. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
  26941. "
  26942. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26943. cat >>confdefs.h <<_ACEOF
  26944. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26945. _ACEOF
  26946. fi
  26947. done
  26948. #
  26949. tst_links_getaddrinfo="unknown"
  26950. tst_proto_getaddrinfo="unknown"
  26951. tst_compi_getaddrinfo="unknown"
  26952. tst_works_getaddrinfo="unknown"
  26953. tst_allow_getaddrinfo="unknown"
  26954. tst_tsafe_getaddrinfo="unknown"
  26955. #
  26956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  26957. $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
  26958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26959. /* end confdefs.h. */
  26960. $curl_includes_ws2tcpip
  26961. $curl_includes_sys_socket
  26962. $curl_includes_netdb
  26963. int main (void)
  26964. {
  26965. if(0 != getaddrinfo(0, 0, 0, 0))
  26966. return 1;
  26967. ;
  26968. return 0;
  26969. }
  26970. _ACEOF
  26971. if ac_fn_c_try_link "$LINENO"; then :
  26972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26973. $as_echo "yes" >&6; }
  26974. tst_links_getaddrinfo="yes"
  26975. else
  26976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26977. $as_echo "no" >&6; }
  26978. tst_links_getaddrinfo="no"
  26979. fi
  26980. rm -f core conftest.err conftest.$ac_objext \
  26981. conftest$ac_exeext conftest.$ac_ext
  26982. #
  26983. if test "$tst_links_getaddrinfo" = "yes"; then
  26984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  26985. $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
  26986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26987. /* end confdefs.h. */
  26988. $curl_includes_ws2tcpip
  26989. $curl_includes_sys_socket
  26990. $curl_includes_netdb
  26991. _ACEOF
  26992. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26993. $EGREP "getaddrinfo" >/dev/null 2>&1; then :
  26994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26995. $as_echo "yes" >&6; }
  26996. tst_proto_getaddrinfo="yes"
  26997. else
  26998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26999. $as_echo "no" >&6; }
  27000. tst_proto_getaddrinfo="no"
  27001. fi
  27002. rm -f conftest*
  27003. fi
  27004. #
  27005. if test "$tst_proto_getaddrinfo" = "yes"; then
  27006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  27007. $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
  27008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27009. /* end confdefs.h. */
  27010. $curl_includes_ws2tcpip
  27011. $curl_includes_sys_socket
  27012. $curl_includes_netdb
  27013. int main (void)
  27014. {
  27015. if(0 != getaddrinfo(0, 0, 0, 0))
  27016. return 1;
  27017. ;
  27018. return 0;
  27019. }
  27020. _ACEOF
  27021. if ac_fn_c_try_compile "$LINENO"; then :
  27022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27023. $as_echo "yes" >&6; }
  27024. tst_compi_getaddrinfo="yes"
  27025. else
  27026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27027. $as_echo "no" >&6; }
  27028. tst_compi_getaddrinfo="no"
  27029. fi
  27030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27031. fi
  27032. #
  27033. if test "x$cross_compiling" != "xyes" &&
  27034. test "$tst_compi_getaddrinfo" = "yes"; then
  27035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  27036. $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
  27037. if test "$cross_compiling" = yes; then :
  27038. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27040. as_fn_error $? "cannot run test program while cross compiling
  27041. See \`config.log' for more details" "$LINENO" 5; }
  27042. else
  27043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27044. /* end confdefs.h. */
  27045. $curl_includes_ws2tcpip
  27046. $curl_includes_stdlib
  27047. $curl_includes_string
  27048. $curl_includes_sys_socket
  27049. $curl_includes_netdb
  27050. int main (void)
  27051. {
  27052. struct addrinfo hints;
  27053. struct addrinfo *ai = 0;
  27054. int error;
  27055. #ifdef HAVE_WINSOCK2_H
  27056. WSADATA wsa;
  27057. if (WSAStartup(MAKEWORD(2,2), &wsa))
  27058. exit(2);
  27059. #endif
  27060. memset(&hints, 0, sizeof(hints));
  27061. hints.ai_flags = AI_NUMERICHOST;
  27062. hints.ai_family = AF_UNSPEC;
  27063. hints.ai_socktype = SOCK_STREAM;
  27064. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  27065. if(error || !ai)
  27066. exit(1); /* fail */
  27067. else
  27068. exit(0);
  27069. ;
  27070. return 0;
  27071. }
  27072. _ACEOF
  27073. if ac_fn_c_try_run "$LINENO"; then :
  27074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27075. $as_echo "yes" >&6; }
  27076. tst_works_getaddrinfo="yes"
  27077. else
  27078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27079. $as_echo "no" >&6; }
  27080. tst_works_getaddrinfo="no"
  27081. fi
  27082. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27083. conftest.$ac_objext conftest.beam conftest.$ac_ext
  27084. fi
  27085. fi
  27086. #
  27087. if test "$tst_compi_getaddrinfo" = "yes" &&
  27088. test "$tst_works_getaddrinfo" != "no"; then
  27089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  27090. $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
  27091. if test "x$curl_disallow_getaddrinfo" != "xyes"; then
  27092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27093. $as_echo "yes" >&6; }
  27094. tst_allow_getaddrinfo="yes"
  27095. else
  27096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27097. $as_echo "no" >&6; }
  27098. tst_allow_getaddrinfo="no"
  27099. fi
  27100. fi
  27101. #
  27102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  27103. $as_echo_n "checking if getaddrinfo might be used... " >&6; }
  27104. if test "$tst_links_getaddrinfo" = "yes" &&
  27105. test "$tst_proto_getaddrinfo" = "yes" &&
  27106. test "$tst_compi_getaddrinfo" = "yes" &&
  27107. test "$tst_allow_getaddrinfo" = "yes" &&
  27108. test "$tst_works_getaddrinfo" != "no"; then
  27109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27110. $as_echo "yes" >&6; }
  27111. cat >>confdefs.h <<_ACEOF
  27112. #define HAVE_GETADDRINFO 1
  27113. _ACEOF
  27114. curl_cv_func_getaddrinfo="yes"
  27115. else
  27116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27117. $as_echo "no" >&6; }
  27118. curl_cv_func_getaddrinfo="no"
  27119. curl_cv_func_getaddrinfo_threadsafe="no"
  27120. fi
  27121. #
  27122. if test "$curl_cv_func_getaddrinfo" = "yes"; then
  27123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  27124. $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
  27125. case $host_os in
  27126. aix[1234].* | aix5.[01].*)
  27127. tst_tsafe_getaddrinfo="no"
  27128. ;;
  27129. aix*)
  27130. tst_tsafe_getaddrinfo="yes"
  27131. ;;
  27132. darwin[12345].*)
  27133. tst_tsafe_getaddrinfo="no"
  27134. ;;
  27135. darwin*)
  27136. tst_tsafe_getaddrinfo="yes"
  27137. ;;
  27138. freebsd[1234].* | freebsd5.[1234]*)
  27139. tst_tsafe_getaddrinfo="no"
  27140. ;;
  27141. freebsd*)
  27142. tst_tsafe_getaddrinfo="yes"
  27143. ;;
  27144. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  27145. tst_tsafe_getaddrinfo="no"
  27146. ;;
  27147. hpux*)
  27148. tst_tsafe_getaddrinfo="yes"
  27149. ;;
  27150. netbsd[123].*)
  27151. tst_tsafe_getaddrinfo="no"
  27152. ;;
  27153. netbsd*)
  27154. tst_tsafe_getaddrinfo="yes"
  27155. ;;
  27156. *bsd*)
  27157. tst_tsafe_getaddrinfo="no"
  27158. ;;
  27159. solaris2*)
  27160. tst_tsafe_getaddrinfo="yes"
  27161. ;;
  27162. esac
  27163. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  27164. test "$curl_cv_native_windows" = "yes"; then
  27165. tst_tsafe_getaddrinfo="yes"
  27166. fi
  27167. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  27168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27169. /* end confdefs.h. */
  27170. $curl_includes_sys_socket
  27171. $curl_includes_netdb
  27172. int main (void)
  27173. {
  27174. #ifdef h_errno
  27175. return 0;
  27176. #else
  27177. force compilation error
  27178. #endif
  27179. }
  27180. _ACEOF
  27181. if ac_fn_c_try_compile "$LINENO"; then :
  27182. tst_symbol_defined="yes"
  27183. else
  27184. tst_symbol_defined="no"
  27185. fi
  27186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27187. if test "$tst_symbol_defined" = "yes"; then
  27188. curl_cv_have_def_h_errno=yes
  27189. else
  27190. curl_cv_have_def_h_errno=no
  27191. fi
  27192. if test "$curl_cv_have_def_h_errno" = "yes"; then
  27193. tst_h_errno_macro="yes"
  27194. else
  27195. tst_h_errno_macro="no"
  27196. fi
  27197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27198. /* end confdefs.h. */
  27199. $curl_includes_sys_socket
  27200. $curl_includes_netdb
  27201. int main (void)
  27202. {
  27203. h_errno = 2;
  27204. if(0 != h_errno)
  27205. return 1;
  27206. ;
  27207. return 0;
  27208. }
  27209. _ACEOF
  27210. if ac_fn_c_try_compile "$LINENO"; then :
  27211. tst_h_errno_modifiable_lvalue="yes"
  27212. else
  27213. tst_h_errno_modifiable_lvalue="no"
  27214. fi
  27215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27217. /* end confdefs.h. */
  27218. int main (void)
  27219. {
  27220. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  27221. return 0;
  27222. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  27223. return 0;
  27224. #else
  27225. force compilation error
  27226. #endif
  27227. ;
  27228. return 0;
  27229. }
  27230. _ACEOF
  27231. if ac_fn_c_try_compile "$LINENO"; then :
  27232. tst_h_errno_sbs_issue_7="yes"
  27233. else
  27234. tst_h_errno_sbs_issue_7="no"
  27235. fi
  27236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27237. if test "$tst_h_errno_macro" = "no" &&
  27238. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  27239. test "$tst_h_errno_sbs_issue_7" = "no"; then
  27240. tst_tsafe_getaddrinfo="no"
  27241. else
  27242. tst_tsafe_getaddrinfo="yes"
  27243. fi
  27244. fi
  27245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  27246. $as_echo "$tst_tsafe_getaddrinfo" >&6; }
  27247. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  27248. cat >>confdefs.h <<_ACEOF
  27249. #define HAVE_GETADDRINFO_THREADSAFE 1
  27250. _ACEOF
  27251. curl_cv_func_getaddrinfo_threadsafe="yes"
  27252. else
  27253. curl_cv_func_getaddrinfo_threadsafe="no"
  27254. fi
  27255. fi
  27256. #
  27257. tst_links_gai_strerror="unknown"
  27258. tst_proto_gai_strerror="unknown"
  27259. tst_compi_gai_strerror="unknown"
  27260. tst_allow_gai_strerror="unknown"
  27261. #
  27262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
  27263. $as_echo_n "checking if gai_strerror can be linked... " >&6; }
  27264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27265. /* end confdefs.h. */
  27266. $curl_includes_winsock2
  27267. $curl_includes_netdb
  27268. int main (void)
  27269. {
  27270. if(0 != gai_strerror(0))
  27271. return 1;
  27272. ;
  27273. return 0;
  27274. }
  27275. _ACEOF
  27276. if ac_fn_c_try_link "$LINENO"; then :
  27277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27278. $as_echo "yes" >&6; }
  27279. tst_links_gai_strerror="yes"
  27280. else
  27281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27282. $as_echo "no" >&6; }
  27283. tst_links_gai_strerror="no"
  27284. fi
  27285. rm -f core conftest.err conftest.$ac_objext \
  27286. conftest$ac_exeext conftest.$ac_ext
  27287. #
  27288. if test "$tst_links_gai_strerror" = "yes"; then
  27289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
  27290. $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
  27291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27292. /* end confdefs.h. */
  27293. $curl_includes_winsock2
  27294. $curl_includes_netdb
  27295. _ACEOF
  27296. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27297. $EGREP "gai_strerror" >/dev/null 2>&1; then :
  27298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27299. $as_echo "yes" >&6; }
  27300. tst_proto_gai_strerror="yes"
  27301. else
  27302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27303. $as_echo "no" >&6; }
  27304. tst_proto_gai_strerror="no"
  27305. fi
  27306. rm -f conftest*
  27307. fi
  27308. #
  27309. if test "$tst_proto_gai_strerror" = "yes"; then
  27310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
  27311. $as_echo_n "checking if gai_strerror is compilable... " >&6; }
  27312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27313. /* end confdefs.h. */
  27314. $curl_includes_winsock2
  27315. $curl_includes_netdb
  27316. int main (void)
  27317. {
  27318. if(0 != gai_strerror(0))
  27319. return 1;
  27320. ;
  27321. return 0;
  27322. }
  27323. _ACEOF
  27324. if ac_fn_c_try_compile "$LINENO"; then :
  27325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27326. $as_echo "yes" >&6; }
  27327. tst_compi_gai_strerror="yes"
  27328. else
  27329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27330. $as_echo "no" >&6; }
  27331. tst_compi_gai_strerror="no"
  27332. fi
  27333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27334. fi
  27335. #
  27336. if test "$tst_compi_gai_strerror" = "yes"; then
  27337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
  27338. $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
  27339. if test "x$curl_disallow_gai_strerror" != "xyes"; then
  27340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27341. $as_echo "yes" >&6; }
  27342. tst_allow_gai_strerror="yes"
  27343. else
  27344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27345. $as_echo "no" >&6; }
  27346. tst_allow_gai_strerror="no"
  27347. fi
  27348. fi
  27349. #
  27350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
  27351. $as_echo_n "checking if gai_strerror might be used... " >&6; }
  27352. if test "$tst_links_gai_strerror" = "yes" &&
  27353. test "$tst_proto_gai_strerror" = "yes" &&
  27354. test "$tst_compi_gai_strerror" = "yes" &&
  27355. test "$tst_allow_gai_strerror" = "yes"; then
  27356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27357. $as_echo "yes" >&6; }
  27358. cat >>confdefs.h <<_ACEOF
  27359. #define HAVE_GAI_STRERROR 1
  27360. _ACEOF
  27361. curl_cv_func_gai_strerror="yes"
  27362. else
  27363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27364. $as_echo "no" >&6; }
  27365. curl_cv_func_gai_strerror="no"
  27366. fi
  27367. #
  27368. tst_links_gethostbyaddr="unknown"
  27369. tst_proto_gethostbyaddr="unknown"
  27370. tst_compi_gethostbyaddr="unknown"
  27371. tst_allow_gethostbyaddr="unknown"
  27372. #
  27373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
  27374. $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
  27375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27376. /* end confdefs.h. */
  27377. $curl_includes_winsock2
  27378. $curl_includes_netdb
  27379. int main (void)
  27380. {
  27381. if(0 != gethostbyaddr(0, 0, 0))
  27382. return 1;
  27383. ;
  27384. return 0;
  27385. }
  27386. _ACEOF
  27387. if ac_fn_c_try_link "$LINENO"; then :
  27388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27389. $as_echo "yes" >&6; }
  27390. tst_links_gethostbyaddr="yes"
  27391. else
  27392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27393. $as_echo "no" >&6; }
  27394. tst_links_gethostbyaddr="no"
  27395. fi
  27396. rm -f core conftest.err conftest.$ac_objext \
  27397. conftest$ac_exeext conftest.$ac_ext
  27398. #
  27399. if test "$tst_links_gethostbyaddr" = "yes"; then
  27400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
  27401. $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
  27402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27403. /* end confdefs.h. */
  27404. $curl_includes_winsock2
  27405. $curl_includes_netdb
  27406. _ACEOF
  27407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27408. $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
  27409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27410. $as_echo "yes" >&6; }
  27411. tst_proto_gethostbyaddr="yes"
  27412. else
  27413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27414. $as_echo "no" >&6; }
  27415. tst_proto_gethostbyaddr="no"
  27416. fi
  27417. rm -f conftest*
  27418. fi
  27419. #
  27420. if test "$tst_proto_gethostbyaddr" = "yes"; then
  27421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
  27422. $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
  27423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27424. /* end confdefs.h. */
  27425. $curl_includes_winsock2
  27426. $curl_includes_netdb
  27427. int main (void)
  27428. {
  27429. if(0 != gethostbyaddr(0, 0, 0))
  27430. return 1;
  27431. ;
  27432. return 0;
  27433. }
  27434. _ACEOF
  27435. if ac_fn_c_try_compile "$LINENO"; then :
  27436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27437. $as_echo "yes" >&6; }
  27438. tst_compi_gethostbyaddr="yes"
  27439. else
  27440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27441. $as_echo "no" >&6; }
  27442. tst_compi_gethostbyaddr="no"
  27443. fi
  27444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27445. fi
  27446. #
  27447. if test "$tst_compi_gethostbyaddr" = "yes"; then
  27448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
  27449. $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
  27450. if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
  27451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27452. $as_echo "yes" >&6; }
  27453. tst_allow_gethostbyaddr="yes"
  27454. else
  27455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27456. $as_echo "no" >&6; }
  27457. tst_allow_gethostbyaddr="no"
  27458. fi
  27459. fi
  27460. #
  27461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
  27462. $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
  27463. if test "$tst_links_gethostbyaddr" = "yes" &&
  27464. test "$tst_proto_gethostbyaddr" = "yes" &&
  27465. test "$tst_compi_gethostbyaddr" = "yes" &&
  27466. test "$tst_allow_gethostbyaddr" = "yes"; then
  27467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27468. $as_echo "yes" >&6; }
  27469. cat >>confdefs.h <<_ACEOF
  27470. #define HAVE_GETHOSTBYADDR 1
  27471. _ACEOF
  27472. curl_cv_func_gethostbyaddr="yes"
  27473. else
  27474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27475. $as_echo "no" >&6; }
  27476. curl_cv_func_gethostbyaddr="no"
  27477. fi
  27478. #
  27479. tst_links_gethostbyaddr_r="unknown"
  27480. tst_proto_gethostbyaddr_r="unknown"
  27481. tst_compi_gethostbyaddr_r="unknown"
  27482. tst_allow_gethostbyaddr_r="unknown"
  27483. tst_nargs_gethostbyaddr_r="unknown"
  27484. #
  27485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
  27486. $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
  27487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27488. /* end confdefs.h. */
  27489. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  27490. #ifdef __STDC__
  27491. # include <limits.h>
  27492. #else
  27493. # include <assert.h>
  27494. #endif
  27495. #undef gethostbyaddr_r
  27496. #ifdef __cplusplus
  27497. extern "C"
  27498. #endif
  27499. char gethostbyaddr_r ();
  27500. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  27501. choke me
  27502. #endif
  27503. int main (void)
  27504. {
  27505. return gethostbyaddr_r ();
  27506. ;
  27507. return 0;
  27508. }
  27509. _ACEOF
  27510. if ac_fn_c_try_link "$LINENO"; then :
  27511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27512. $as_echo "yes" >&6; }
  27513. tst_links_gethostbyaddr_r="yes"
  27514. else
  27515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27516. $as_echo "no" >&6; }
  27517. tst_links_gethostbyaddr_r="no"
  27518. fi
  27519. rm -f core conftest.err conftest.$ac_objext \
  27520. conftest$ac_exeext conftest.$ac_ext
  27521. #
  27522. if test "$tst_links_gethostbyaddr_r" = "yes"; then
  27523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
  27524. $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
  27525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27526. /* end confdefs.h. */
  27527. $curl_includes_netdb
  27528. _ACEOF
  27529. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27530. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  27531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27532. $as_echo "yes" >&6; }
  27533. tst_proto_gethostbyaddr_r="yes"
  27534. else
  27535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27536. $as_echo "no" >&6; }
  27537. tst_proto_gethostbyaddr_r="no"
  27538. fi
  27539. rm -f conftest*
  27540. fi
  27541. #
  27542. if test "$tst_proto_gethostbyaddr_r" = "yes"; then
  27543. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  27544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
  27545. $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
  27546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27547. /* end confdefs.h. */
  27548. $curl_includes_netdb
  27549. int main (void)
  27550. {
  27551. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
  27552. return 1;
  27553. ;
  27554. return 0;
  27555. }
  27556. _ACEOF
  27557. if ac_fn_c_try_compile "$LINENO"; then :
  27558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27559. $as_echo "yes" >&6; }
  27560. tst_compi_gethostbyaddr_r="yes"
  27561. tst_nargs_gethostbyaddr_r="5"
  27562. else
  27563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27564. $as_echo "no" >&6; }
  27565. tst_compi_gethostbyaddr_r="no"
  27566. fi
  27567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27568. fi
  27569. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  27570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
  27571. $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
  27572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27573. /* end confdefs.h. */
  27574. $curl_includes_netdb
  27575. int main (void)
  27576. {
  27577. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
  27578. return 1;
  27579. ;
  27580. return 0;
  27581. }
  27582. _ACEOF
  27583. if ac_fn_c_try_compile "$LINENO"; then :
  27584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27585. $as_echo "yes" >&6; }
  27586. tst_compi_gethostbyaddr_r="yes"
  27587. tst_nargs_gethostbyaddr_r="7"
  27588. else
  27589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27590. $as_echo "no" >&6; }
  27591. tst_compi_gethostbyaddr_r="no"
  27592. fi
  27593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27594. fi
  27595. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  27596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
  27597. $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
  27598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27599. /* end confdefs.h. */
  27600. $curl_includes_netdb
  27601. int main (void)
  27602. {
  27603. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
  27604. return 1;
  27605. ;
  27606. return 0;
  27607. }
  27608. _ACEOF
  27609. if ac_fn_c_try_compile "$LINENO"; then :
  27610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27611. $as_echo "yes" >&6; }
  27612. tst_compi_gethostbyaddr_r="yes"
  27613. tst_nargs_gethostbyaddr_r="8"
  27614. else
  27615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27616. $as_echo "no" >&6; }
  27617. tst_compi_gethostbyaddr_r="no"
  27618. fi
  27619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27620. fi
  27621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
  27622. $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
  27623. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  27624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27625. $as_echo "yes" >&6; }
  27626. else
  27627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27628. $as_echo "no" >&6; }
  27629. fi
  27630. fi
  27631. #
  27632. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  27633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
  27634. $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
  27635. if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
  27636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27637. $as_echo "yes" >&6; }
  27638. tst_allow_gethostbyaddr_r="yes"
  27639. else
  27640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27641. $as_echo "no" >&6; }
  27642. tst_allow_gethostbyaddr_r="no"
  27643. fi
  27644. fi
  27645. #
  27646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
  27647. $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
  27648. if test "$tst_links_gethostbyaddr_r" = "yes" &&
  27649. test "$tst_proto_gethostbyaddr_r" = "yes" &&
  27650. test "$tst_compi_gethostbyaddr_r" = "yes" &&
  27651. test "$tst_allow_gethostbyaddr_r" = "yes"; then
  27652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27653. $as_echo "yes" >&6; }
  27654. cat >>confdefs.h <<_ACEOF
  27655. #define HAVE_GETHOSTBYADDR_R 1
  27656. _ACEOF
  27657. #
  27658. if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
  27659. $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
  27660. elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
  27661. $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
  27662. elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
  27663. $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
  27664. fi
  27665. #
  27666. curl_cv_func_gethostbyaddr_r="yes"
  27667. else
  27668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27669. $as_echo "no" >&6; }
  27670. curl_cv_func_gethostbyaddr_r="no"
  27671. fi
  27672. #
  27673. tst_links_gethostbyname="unknown"
  27674. tst_proto_gethostbyname="unknown"
  27675. tst_compi_gethostbyname="unknown"
  27676. tst_allow_gethostbyname="unknown"
  27677. #
  27678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  27679. $as_echo_n "checking if gethostbyname can be linked... " >&6; }
  27680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27681. /* end confdefs.h. */
  27682. $curl_includes_winsock2
  27683. $curl_includes_netdb
  27684. int main (void)
  27685. {
  27686. if(0 != gethostbyname(0))
  27687. return 1;
  27688. ;
  27689. return 0;
  27690. }
  27691. _ACEOF
  27692. if ac_fn_c_try_link "$LINENO"; then :
  27693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27694. $as_echo "yes" >&6; }
  27695. tst_links_gethostbyname="yes"
  27696. else
  27697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27698. $as_echo "no" >&6; }
  27699. tst_links_gethostbyname="no"
  27700. fi
  27701. rm -f core conftest.err conftest.$ac_objext \
  27702. conftest$ac_exeext conftest.$ac_ext
  27703. #
  27704. if test "$tst_links_gethostbyname" = "yes"; then
  27705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  27706. $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
  27707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27708. /* end confdefs.h. */
  27709. $curl_includes_winsock2
  27710. $curl_includes_netdb
  27711. _ACEOF
  27712. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27713. $EGREP "gethostbyname" >/dev/null 2>&1; then :
  27714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27715. $as_echo "yes" >&6; }
  27716. tst_proto_gethostbyname="yes"
  27717. else
  27718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27719. $as_echo "no" >&6; }
  27720. tst_proto_gethostbyname="no"
  27721. fi
  27722. rm -f conftest*
  27723. fi
  27724. #
  27725. if test "$tst_proto_gethostbyname" = "yes"; then
  27726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  27727. $as_echo_n "checking if gethostbyname is compilable... " >&6; }
  27728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27729. /* end confdefs.h. */
  27730. $curl_includes_winsock2
  27731. $curl_includes_netdb
  27732. int main (void)
  27733. {
  27734. if(0 != gethostbyname(0))
  27735. return 1;
  27736. ;
  27737. return 0;
  27738. }
  27739. _ACEOF
  27740. if ac_fn_c_try_compile "$LINENO"; then :
  27741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27742. $as_echo "yes" >&6; }
  27743. tst_compi_gethostbyname="yes"
  27744. else
  27745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27746. $as_echo "no" >&6; }
  27747. tst_compi_gethostbyname="no"
  27748. fi
  27749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27750. fi
  27751. #
  27752. if test "$tst_compi_gethostbyname" = "yes"; then
  27753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  27754. $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
  27755. if test "x$curl_disallow_gethostbyname" != "xyes"; then
  27756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27757. $as_echo "yes" >&6; }
  27758. tst_allow_gethostbyname="yes"
  27759. else
  27760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27761. $as_echo "no" >&6; }
  27762. tst_allow_gethostbyname="no"
  27763. fi
  27764. fi
  27765. #
  27766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  27767. $as_echo_n "checking if gethostbyname might be used... " >&6; }
  27768. if test "$tst_links_gethostbyname" = "yes" &&
  27769. test "$tst_proto_gethostbyname" = "yes" &&
  27770. test "$tst_compi_gethostbyname" = "yes" &&
  27771. test "$tst_allow_gethostbyname" = "yes"; then
  27772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27773. $as_echo "yes" >&6; }
  27774. cat >>confdefs.h <<_ACEOF
  27775. #define HAVE_GETHOSTBYNAME 1
  27776. _ACEOF
  27777. curl_cv_func_gethostbyname="yes"
  27778. else
  27779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27780. $as_echo "no" >&6; }
  27781. curl_cv_func_gethostbyname="no"
  27782. fi
  27783. #
  27784. tst_links_gethostbyname_r="unknown"
  27785. tst_proto_gethostbyname_r="unknown"
  27786. tst_compi_gethostbyname_r="unknown"
  27787. tst_allow_gethostbyname_r="unknown"
  27788. tst_nargs_gethostbyname_r="unknown"
  27789. #
  27790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
  27791. $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
  27792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27793. /* end confdefs.h. */
  27794. #define gethostbyname_r innocuous_gethostbyname_r
  27795. #ifdef __STDC__
  27796. # include <limits.h>
  27797. #else
  27798. # include <assert.h>
  27799. #endif
  27800. #undef gethostbyname_r
  27801. #ifdef __cplusplus
  27802. extern "C"
  27803. #endif
  27804. char gethostbyname_r ();
  27805. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  27806. choke me
  27807. #endif
  27808. int main (void)
  27809. {
  27810. return gethostbyname_r ();
  27811. ;
  27812. return 0;
  27813. }
  27814. _ACEOF
  27815. if ac_fn_c_try_link "$LINENO"; then :
  27816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27817. $as_echo "yes" >&6; }
  27818. tst_links_gethostbyname_r="yes"
  27819. else
  27820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27821. $as_echo "no" >&6; }
  27822. tst_links_gethostbyname_r="no"
  27823. fi
  27824. rm -f core conftest.err conftest.$ac_objext \
  27825. conftest$ac_exeext conftest.$ac_ext
  27826. #
  27827. if test "$tst_links_gethostbyname_r" = "yes"; then
  27828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
  27829. $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
  27830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27831. /* end confdefs.h. */
  27832. $curl_includes_netdb
  27833. _ACEOF
  27834. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27835. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  27836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27837. $as_echo "yes" >&6; }
  27838. tst_proto_gethostbyname_r="yes"
  27839. else
  27840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27841. $as_echo "no" >&6; }
  27842. tst_proto_gethostbyname_r="no"
  27843. fi
  27844. rm -f conftest*
  27845. fi
  27846. #
  27847. if test "$tst_proto_gethostbyname_r" = "yes"; then
  27848. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  27849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
  27850. $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
  27851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27852. /* end confdefs.h. */
  27853. $curl_includes_netdb
  27854. int main (void)
  27855. {
  27856. if(0 != gethostbyname_r(0, 0, 0))
  27857. return 1;
  27858. ;
  27859. return 0;
  27860. }
  27861. _ACEOF
  27862. if ac_fn_c_try_compile "$LINENO"; then :
  27863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27864. $as_echo "yes" >&6; }
  27865. tst_compi_gethostbyname_r="yes"
  27866. tst_nargs_gethostbyname_r="3"
  27867. else
  27868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27869. $as_echo "no" >&6; }
  27870. tst_compi_gethostbyname_r="no"
  27871. fi
  27872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27873. fi
  27874. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  27875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
  27876. $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
  27877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27878. /* end confdefs.h. */
  27879. $curl_includes_netdb
  27880. int main (void)
  27881. {
  27882. if(0 != gethostbyname_r(0, 0, 0, 0, 0))
  27883. return 1;
  27884. ;
  27885. return 0;
  27886. }
  27887. _ACEOF
  27888. if ac_fn_c_try_compile "$LINENO"; then :
  27889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27890. $as_echo "yes" >&6; }
  27891. tst_compi_gethostbyname_r="yes"
  27892. tst_nargs_gethostbyname_r="5"
  27893. else
  27894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27895. $as_echo "no" >&6; }
  27896. tst_compi_gethostbyname_r="no"
  27897. fi
  27898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27899. fi
  27900. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  27901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
  27902. $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
  27903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27904. /* end confdefs.h. */
  27905. $curl_includes_netdb
  27906. int main (void)
  27907. {
  27908. if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
  27909. return 1;
  27910. ;
  27911. return 0;
  27912. }
  27913. _ACEOF
  27914. if ac_fn_c_try_compile "$LINENO"; then :
  27915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27916. $as_echo "yes" >&6; }
  27917. tst_compi_gethostbyname_r="yes"
  27918. tst_nargs_gethostbyname_r="6"
  27919. else
  27920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27921. $as_echo "no" >&6; }
  27922. tst_compi_gethostbyname_r="no"
  27923. fi
  27924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27925. fi
  27926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
  27927. $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
  27928. if test "$tst_compi_gethostbyname_r" = "yes"; then
  27929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27930. $as_echo "yes" >&6; }
  27931. else
  27932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27933. $as_echo "no" >&6; }
  27934. fi
  27935. fi
  27936. #
  27937. if test "$tst_compi_gethostbyname_r" = "yes"; then
  27938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
  27939. $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
  27940. if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
  27941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27942. $as_echo "yes" >&6; }
  27943. tst_allow_gethostbyname_r="yes"
  27944. else
  27945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27946. $as_echo "no" >&6; }
  27947. tst_allow_gethostbyname_r="no"
  27948. fi
  27949. fi
  27950. #
  27951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
  27952. $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
  27953. if test "$tst_links_gethostbyname_r" = "yes" &&
  27954. test "$tst_proto_gethostbyname_r" = "yes" &&
  27955. test "$tst_compi_gethostbyname_r" = "yes" &&
  27956. test "$tst_allow_gethostbyname_r" = "yes"; then
  27957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27958. $as_echo "yes" >&6; }
  27959. cat >>confdefs.h <<_ACEOF
  27960. #define HAVE_GETHOSTBYNAME_R 1
  27961. _ACEOF
  27962. #
  27963. if test "$tst_nargs_gethostbyname_r" -eq "3"; then
  27964. $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
  27965. elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
  27966. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  27967. elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
  27968. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  27969. fi
  27970. #
  27971. curl_cv_func_gethostbyname_r="yes"
  27972. else
  27973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27974. $as_echo "no" >&6; }
  27975. curl_cv_func_gethostbyname_r="no"
  27976. fi
  27977. #
  27978. tst_links_gethostname="unknown"
  27979. tst_proto_gethostname="unknown"
  27980. tst_compi_gethostname="unknown"
  27981. tst_allow_gethostname="unknown"
  27982. #
  27983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  27984. $as_echo_n "checking if gethostname can be linked... " >&6; }
  27985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27986. /* end confdefs.h. */
  27987. $curl_includes_winsock2
  27988. $curl_includes_unistd
  27989. int main (void)
  27990. {
  27991. if(0 != gethostname(0, 0))
  27992. return 1;
  27993. ;
  27994. return 0;
  27995. }
  27996. _ACEOF
  27997. if ac_fn_c_try_link "$LINENO"; then :
  27998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27999. $as_echo "yes" >&6; }
  28000. tst_links_gethostname="yes"
  28001. else
  28002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28003. $as_echo "no" >&6; }
  28004. tst_links_gethostname="no"
  28005. fi
  28006. rm -f core conftest.err conftest.$ac_objext \
  28007. conftest$ac_exeext conftest.$ac_ext
  28008. #
  28009. if test "$tst_links_gethostname" = "yes"; then
  28010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  28011. $as_echo_n "checking if gethostname is prototyped... " >&6; }
  28012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28013. /* end confdefs.h. */
  28014. $curl_includes_winsock2
  28015. $curl_includes_unistd
  28016. _ACEOF
  28017. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28018. $EGREP "gethostname" >/dev/null 2>&1; then :
  28019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28020. $as_echo "yes" >&6; }
  28021. tst_proto_gethostname="yes"
  28022. else
  28023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28024. $as_echo "no" >&6; }
  28025. tst_proto_gethostname="no"
  28026. fi
  28027. rm -f conftest*
  28028. fi
  28029. #
  28030. if test "$tst_proto_gethostname" = "yes"; then
  28031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  28032. $as_echo_n "checking if gethostname is compilable... " >&6; }
  28033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28034. /* end confdefs.h. */
  28035. $curl_includes_winsock2
  28036. $curl_includes_unistd
  28037. int main (void)
  28038. {
  28039. if(0 != gethostname(0, 0))
  28040. return 1;
  28041. ;
  28042. return 0;
  28043. }
  28044. _ACEOF
  28045. if ac_fn_c_try_compile "$LINENO"; then :
  28046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28047. $as_echo "yes" >&6; }
  28048. tst_compi_gethostname="yes"
  28049. else
  28050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28051. $as_echo "no" >&6; }
  28052. tst_compi_gethostname="no"
  28053. fi
  28054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28055. fi
  28056. #
  28057. if test "$tst_compi_gethostname" = "yes"; then
  28058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  28059. $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
  28060. tst_gethostname_type_arg2="unknown"
  28061. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  28062. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  28063. if test "$tst_gethostname_type_arg2" = "unknown"; then
  28064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28065. /* end confdefs.h. */
  28066. $curl_includes_winsock2
  28067. $curl_includes_unistd
  28068. $curl_preprocess_callconv
  28069. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  28070. int main (void)
  28071. {
  28072. if(0 != gethostname(0, 0))
  28073. return 1;
  28074. ;
  28075. return 0;
  28076. }
  28077. _ACEOF
  28078. if ac_fn_c_try_compile "$LINENO"; then :
  28079. tst_gethostname_type_arg2="$tst_arg2"
  28080. fi
  28081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28082. fi
  28083. done
  28084. done
  28085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  28086. $as_echo "$tst_gethostname_type_arg2" >&6; }
  28087. if test "$tst_gethostname_type_arg2" != "unknown"; then
  28088. cat >>confdefs.h <<_ACEOF
  28089. #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
  28090. _ACEOF
  28091. fi
  28092. fi
  28093. #
  28094. if test "$tst_compi_gethostname" = "yes"; then
  28095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  28096. $as_echo_n "checking if gethostname usage allowed... " >&6; }
  28097. if test "x$curl_disallow_gethostname" != "xyes"; then
  28098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28099. $as_echo "yes" >&6; }
  28100. tst_allow_gethostname="yes"
  28101. else
  28102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28103. $as_echo "no" >&6; }
  28104. tst_allow_gethostname="no"
  28105. fi
  28106. fi
  28107. #
  28108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  28109. $as_echo_n "checking if gethostname might be used... " >&6; }
  28110. if test "$tst_links_gethostname" = "yes" &&
  28111. test "$tst_proto_gethostname" = "yes" &&
  28112. test "$tst_compi_gethostname" = "yes" &&
  28113. test "$tst_allow_gethostname" = "yes"; then
  28114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28115. $as_echo "yes" >&6; }
  28116. cat >>confdefs.h <<_ACEOF
  28117. #define HAVE_GETHOSTNAME 1
  28118. _ACEOF
  28119. curl_cv_func_gethostname="yes"
  28120. else
  28121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28122. $as_echo "no" >&6; }
  28123. curl_cv_func_gethostname="no"
  28124. fi
  28125. #
  28126. tst_links_getifaddrs="unknown"
  28127. tst_proto_getifaddrs="unknown"
  28128. tst_compi_getifaddrs="unknown"
  28129. tst_works_getifaddrs="unknown"
  28130. tst_allow_getifaddrs="unknown"
  28131. #
  28132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
  28133. $as_echo_n "checking if getifaddrs can be linked... " >&6; }
  28134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28135. /* end confdefs.h. */
  28136. #define getifaddrs innocuous_getifaddrs
  28137. #ifdef __STDC__
  28138. # include <limits.h>
  28139. #else
  28140. # include <assert.h>
  28141. #endif
  28142. #undef getifaddrs
  28143. #ifdef __cplusplus
  28144. extern "C"
  28145. #endif
  28146. char getifaddrs ();
  28147. #if defined __stub_getifaddrs || defined __stub___getifaddrs
  28148. choke me
  28149. #endif
  28150. int main (void)
  28151. {
  28152. return getifaddrs ();
  28153. ;
  28154. return 0;
  28155. }
  28156. _ACEOF
  28157. if ac_fn_c_try_link "$LINENO"; then :
  28158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28159. $as_echo "yes" >&6; }
  28160. tst_links_getifaddrs="yes"
  28161. else
  28162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28163. $as_echo "no" >&6; }
  28164. tst_links_getifaddrs="no"
  28165. fi
  28166. rm -f core conftest.err conftest.$ac_objext \
  28167. conftest$ac_exeext conftest.$ac_ext
  28168. #
  28169. if test "$tst_links_getifaddrs" = "yes"; then
  28170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
  28171. $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
  28172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28173. /* end confdefs.h. */
  28174. $curl_includes_ifaddrs
  28175. _ACEOF
  28176. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28177. $EGREP "getifaddrs" >/dev/null 2>&1; then :
  28178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28179. $as_echo "yes" >&6; }
  28180. tst_proto_getifaddrs="yes"
  28181. else
  28182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28183. $as_echo "no" >&6; }
  28184. tst_proto_getifaddrs="no"
  28185. fi
  28186. rm -f conftest*
  28187. fi
  28188. #
  28189. if test "$tst_proto_getifaddrs" = "yes"; then
  28190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
  28191. $as_echo_n "checking if getifaddrs is compilable... " >&6; }
  28192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28193. /* end confdefs.h. */
  28194. $curl_includes_ifaddrs
  28195. int main (void)
  28196. {
  28197. if(0 != getifaddrs(0))
  28198. return 1;
  28199. ;
  28200. return 0;
  28201. }
  28202. _ACEOF
  28203. if ac_fn_c_try_compile "$LINENO"; then :
  28204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28205. $as_echo "yes" >&6; }
  28206. tst_compi_getifaddrs="yes"
  28207. else
  28208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28209. $as_echo "no" >&6; }
  28210. tst_compi_getifaddrs="no"
  28211. fi
  28212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28213. fi
  28214. #
  28215. if test "x$cross_compiling" != "xyes" &&
  28216. test "$tst_compi_getifaddrs" = "yes"; then
  28217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
  28218. $as_echo_n "checking if getifaddrs seems to work... " >&6; }
  28219. if test "$cross_compiling" = yes; then :
  28220. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28222. as_fn_error $? "cannot run test program while cross compiling
  28223. See \`config.log' for more details" "$LINENO" 5; }
  28224. else
  28225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28226. /* end confdefs.h. */
  28227. $curl_includes_stdlib
  28228. $curl_includes_ifaddrs
  28229. int main (void)
  28230. {
  28231. struct ifaddrs *ifa = 0;
  28232. int error;
  28233. error = getifaddrs(&ifa);
  28234. if(error || !ifa)
  28235. exit(1); /* fail */
  28236. else
  28237. exit(0);
  28238. ;
  28239. return 0;
  28240. }
  28241. _ACEOF
  28242. if ac_fn_c_try_run "$LINENO"; then :
  28243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28244. $as_echo "yes" >&6; }
  28245. tst_works_getifaddrs="yes"
  28246. else
  28247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28248. $as_echo "no" >&6; }
  28249. tst_works_getifaddrs="no"
  28250. fi
  28251. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28252. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28253. fi
  28254. fi
  28255. #
  28256. if test "$tst_compi_getifaddrs" = "yes" &&
  28257. test "$tst_works_getifaddrs" != "no"; then
  28258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
  28259. $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
  28260. if test "x$curl_disallow_getifaddrs" != "xyes"; then
  28261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28262. $as_echo "yes" >&6; }
  28263. tst_allow_getifaddrs="yes"
  28264. else
  28265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28266. $as_echo "no" >&6; }
  28267. tst_allow_getifaddrs="no"
  28268. fi
  28269. fi
  28270. #
  28271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
  28272. $as_echo_n "checking if getifaddrs might be used... " >&6; }
  28273. if test "$tst_links_getifaddrs" = "yes" &&
  28274. test "$tst_proto_getifaddrs" = "yes" &&
  28275. test "$tst_compi_getifaddrs" = "yes" &&
  28276. test "$tst_allow_getifaddrs" = "yes" &&
  28277. test "$tst_works_getifaddrs" != "no"; then
  28278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28279. $as_echo "yes" >&6; }
  28280. cat >>confdefs.h <<_ACEOF
  28281. #define HAVE_GETIFADDRS 1
  28282. _ACEOF
  28283. curl_cv_func_getifaddrs="yes"
  28284. else
  28285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28286. $as_echo "no" >&6; }
  28287. curl_cv_func_getifaddrs="no"
  28288. fi
  28289. #
  28290. tst_links_getservbyport_r="unknown"
  28291. tst_proto_getservbyport_r="unknown"
  28292. tst_compi_getservbyport_r="unknown"
  28293. tst_allow_getservbyport_r="unknown"
  28294. tst_nargs_getservbyport_r="unknown"
  28295. #
  28296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
  28297. $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
  28298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28299. /* end confdefs.h. */
  28300. #define getservbyport_r innocuous_getservbyport_r
  28301. #ifdef __STDC__
  28302. # include <limits.h>
  28303. #else
  28304. # include <assert.h>
  28305. #endif
  28306. #undef getservbyport_r
  28307. #ifdef __cplusplus
  28308. extern "C"
  28309. #endif
  28310. char getservbyport_r ();
  28311. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  28312. choke me
  28313. #endif
  28314. int main (void)
  28315. {
  28316. return getservbyport_r ();
  28317. ;
  28318. return 0;
  28319. }
  28320. _ACEOF
  28321. if ac_fn_c_try_link "$LINENO"; then :
  28322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28323. $as_echo "yes" >&6; }
  28324. tst_links_getservbyport_r="yes"
  28325. else
  28326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28327. $as_echo "no" >&6; }
  28328. tst_links_getservbyport_r="no"
  28329. fi
  28330. rm -f core conftest.err conftest.$ac_objext \
  28331. conftest$ac_exeext conftest.$ac_ext
  28332. #
  28333. if test "$tst_links_getservbyport_r" = "yes"; then
  28334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
  28335. $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
  28336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28337. /* end confdefs.h. */
  28338. $curl_includes_netdb
  28339. _ACEOF
  28340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28341. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  28342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28343. $as_echo "yes" >&6; }
  28344. tst_proto_getservbyport_r="yes"
  28345. else
  28346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28347. $as_echo "no" >&6; }
  28348. tst_proto_getservbyport_r="no"
  28349. fi
  28350. rm -f conftest*
  28351. fi
  28352. #
  28353. if test "$tst_proto_getservbyport_r" = "yes"; then
  28354. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  28355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
  28356. $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
  28357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28358. /* end confdefs.h. */
  28359. $curl_includes_netdb
  28360. int main (void)
  28361. {
  28362. if(0 != getservbyport_r(0, 0, 0, 0))
  28363. return 1;
  28364. ;
  28365. return 0;
  28366. }
  28367. _ACEOF
  28368. if ac_fn_c_try_compile "$LINENO"; then :
  28369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28370. $as_echo "yes" >&6; }
  28371. tst_compi_getservbyport_r="yes"
  28372. tst_nargs_getservbyport_r="4"
  28373. else
  28374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28375. $as_echo "no" >&6; }
  28376. tst_compi_getservbyport_r="no"
  28377. fi
  28378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28379. fi
  28380. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  28381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
  28382. $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
  28383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28384. /* end confdefs.h. */
  28385. $curl_includes_netdb
  28386. int main (void)
  28387. {
  28388. if(0 != getservbyport_r(0, 0, 0, 0, 0))
  28389. return 1;
  28390. ;
  28391. return 0;
  28392. }
  28393. _ACEOF
  28394. if ac_fn_c_try_compile "$LINENO"; then :
  28395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28396. $as_echo "yes" >&6; }
  28397. tst_compi_getservbyport_r="yes"
  28398. tst_nargs_getservbyport_r="5"
  28399. else
  28400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28401. $as_echo "no" >&6; }
  28402. tst_compi_getservbyport_r="no"
  28403. fi
  28404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28405. fi
  28406. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  28407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
  28408. $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
  28409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28410. /* end confdefs.h. */
  28411. $curl_includes_netdb
  28412. int main (void)
  28413. {
  28414. if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
  28415. return 1;
  28416. ;
  28417. return 0;
  28418. }
  28419. _ACEOF
  28420. if ac_fn_c_try_compile "$LINENO"; then :
  28421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28422. $as_echo "yes" >&6; }
  28423. tst_compi_getservbyport_r="yes"
  28424. tst_nargs_getservbyport_r="6"
  28425. else
  28426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28427. $as_echo "no" >&6; }
  28428. tst_compi_getservbyport_r="no"
  28429. fi
  28430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28431. fi
  28432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
  28433. $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
  28434. if test "$tst_compi_getservbyport_r" = "yes"; then
  28435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28436. $as_echo "yes" >&6; }
  28437. else
  28438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28439. $as_echo "no" >&6; }
  28440. fi
  28441. fi
  28442. #
  28443. if test "$tst_compi_getservbyport_r" = "yes"; then
  28444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
  28445. $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
  28446. if test "x$curl_disallow_getservbyport_r" != "xyes"; then
  28447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28448. $as_echo "yes" >&6; }
  28449. tst_allow_getservbyport_r="yes"
  28450. else
  28451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28452. $as_echo "no" >&6; }
  28453. tst_allow_getservbyport_r="no"
  28454. fi
  28455. fi
  28456. #
  28457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
  28458. $as_echo_n "checking if getservbyport_r might be used... " >&6; }
  28459. if test "$tst_links_getservbyport_r" = "yes" &&
  28460. test "$tst_proto_getservbyport_r" = "yes" &&
  28461. test "$tst_compi_getservbyport_r" = "yes" &&
  28462. test "$tst_allow_getservbyport_r" = "yes"; then
  28463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28464. $as_echo "yes" >&6; }
  28465. cat >>confdefs.h <<_ACEOF
  28466. #define HAVE_GETSERVBYPORT_R 1
  28467. _ACEOF
  28468. cat >>confdefs.h <<_ACEOF
  28469. #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
  28470. _ACEOF
  28471. if test "$tst_nargs_getservbyport_r" -eq "4"; then
  28472. $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
  28473. else
  28474. $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
  28475. fi
  28476. curl_cv_func_getservbyport_r="yes"
  28477. else
  28478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28479. $as_echo "no" >&6; }
  28480. curl_cv_func_getservbyport_r="no"
  28481. fi
  28482. curl_includes_time="\
  28483. /* includes start */
  28484. #ifdef HAVE_SYS_TYPES_H
  28485. # include <sys/types.h>
  28486. #endif
  28487. #ifdef HAVE_SYS_TIME_H
  28488. # include <sys/time.h>
  28489. # ifdef TIME_WITH_SYS_TIME
  28490. # include <time.h>
  28491. # endif
  28492. #else
  28493. # ifdef HAVE_TIME_H
  28494. # include <time.h>
  28495. # endif
  28496. #endif
  28497. /* includes end */"
  28498. for ac_header in sys/types.h sys/time.h time.h
  28499. do :
  28500. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28501. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
  28502. "
  28503. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  28504. cat >>confdefs.h <<_ACEOF
  28505. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28506. _ACEOF
  28507. fi
  28508. done
  28509. #
  28510. tst_links_gmtime_r="unknown"
  28511. tst_proto_gmtime_r="unknown"
  28512. tst_compi_gmtime_r="unknown"
  28513. tst_works_gmtime_r="unknown"
  28514. tst_allow_gmtime_r="unknown"
  28515. #
  28516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
  28517. $as_echo_n "checking if gmtime_r can be linked... " >&6; }
  28518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28519. /* end confdefs.h. */
  28520. #define gmtime_r innocuous_gmtime_r
  28521. #ifdef __STDC__
  28522. # include <limits.h>
  28523. #else
  28524. # include <assert.h>
  28525. #endif
  28526. #undef gmtime_r
  28527. #ifdef __cplusplus
  28528. extern "C"
  28529. #endif
  28530. char gmtime_r ();
  28531. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  28532. choke me
  28533. #endif
  28534. int main (void)
  28535. {
  28536. return gmtime_r ();
  28537. ;
  28538. return 0;
  28539. }
  28540. _ACEOF
  28541. if ac_fn_c_try_link "$LINENO"; then :
  28542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28543. $as_echo "yes" >&6; }
  28544. tst_links_gmtime_r="yes"
  28545. else
  28546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28547. $as_echo "no" >&6; }
  28548. tst_links_gmtime_r="no"
  28549. fi
  28550. rm -f core conftest.err conftest.$ac_objext \
  28551. conftest$ac_exeext conftest.$ac_ext
  28552. #
  28553. if test "$tst_links_gmtime_r" = "yes"; then
  28554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
  28555. $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
  28556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28557. /* end confdefs.h. */
  28558. $curl_includes_time
  28559. _ACEOF
  28560. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28561. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  28562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28563. $as_echo "yes" >&6; }
  28564. tst_proto_gmtime_r="yes"
  28565. else
  28566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28567. $as_echo "no" >&6; }
  28568. tst_proto_gmtime_r="no"
  28569. fi
  28570. rm -f conftest*
  28571. fi
  28572. #
  28573. if test "$tst_proto_gmtime_r" = "yes"; then
  28574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
  28575. $as_echo_n "checking if gmtime_r is compilable... " >&6; }
  28576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28577. /* end confdefs.h. */
  28578. $curl_includes_time
  28579. int main (void)
  28580. {
  28581. if(0 != gmtime_r(0, 0))
  28582. return 1;
  28583. ;
  28584. return 0;
  28585. }
  28586. _ACEOF
  28587. if ac_fn_c_try_compile "$LINENO"; then :
  28588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28589. $as_echo "yes" >&6; }
  28590. tst_compi_gmtime_r="yes"
  28591. else
  28592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28593. $as_echo "no" >&6; }
  28594. tst_compi_gmtime_r="no"
  28595. fi
  28596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28597. fi
  28598. #
  28599. if test "x$cross_compiling" != "xyes" &&
  28600. test "$tst_compi_gmtime_r" = "yes"; then
  28601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
  28602. $as_echo_n "checking if gmtime_r seems to work... " >&6; }
  28603. if test "$cross_compiling" = yes; then :
  28604. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28605. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28606. as_fn_error $? "cannot run test program while cross compiling
  28607. See \`config.log' for more details" "$LINENO" 5; }
  28608. else
  28609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28610. /* end confdefs.h. */
  28611. $curl_includes_stdlib
  28612. $curl_includes_time
  28613. int main (void)
  28614. {
  28615. time_t local = 1170352587;
  28616. struct tm *gmt = 0;
  28617. struct tm result;
  28618. gmt = gmtime_r(&local, &result);
  28619. if(gmt)
  28620. exit(0);
  28621. else
  28622. exit(1);
  28623. ;
  28624. return 0;
  28625. }
  28626. _ACEOF
  28627. if ac_fn_c_try_run "$LINENO"; then :
  28628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28629. $as_echo "yes" >&6; }
  28630. tst_works_gmtime_r="yes"
  28631. else
  28632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28633. $as_echo "no" >&6; }
  28634. tst_works_gmtime_r="no"
  28635. fi
  28636. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28637. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28638. fi
  28639. fi
  28640. #
  28641. if test "$tst_compi_gmtime_r" = "yes" &&
  28642. test "$tst_works_gmtime_r" != "no"; then
  28643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
  28644. $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
  28645. if test "x$curl_disallow_gmtime_r" != "xyes"; then
  28646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28647. $as_echo "yes" >&6; }
  28648. tst_allow_gmtime_r="yes"
  28649. else
  28650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28651. $as_echo "no" >&6; }
  28652. tst_allow_gmtime_r="no"
  28653. fi
  28654. fi
  28655. #
  28656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
  28657. $as_echo_n "checking if gmtime_r might be used... " >&6; }
  28658. if test "$tst_links_gmtime_r" = "yes" &&
  28659. test "$tst_proto_gmtime_r" = "yes" &&
  28660. test "$tst_compi_gmtime_r" = "yes" &&
  28661. test "$tst_allow_gmtime_r" = "yes" &&
  28662. test "$tst_works_gmtime_r" != "no"; then
  28663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28664. $as_echo "yes" >&6; }
  28665. cat >>confdefs.h <<_ACEOF
  28666. #define HAVE_GMTIME_R 1
  28667. _ACEOF
  28668. curl_cv_func_gmtime_r="yes"
  28669. else
  28670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28671. $as_echo "no" >&6; }
  28672. curl_cv_func_gmtime_r="no"
  28673. fi
  28674. curl_includes_arpa_inet="\
  28675. /* includes start */
  28676. #ifdef HAVE_SYS_TYPES_H
  28677. # include <sys/types.h>
  28678. #endif
  28679. #ifdef HAVE_SYS_SOCKET_H
  28680. # include <sys/socket.h>
  28681. #endif
  28682. #ifdef HAVE_NETINET_IN_H
  28683. # include <netinet/in.h>
  28684. #endif
  28685. #ifdef HAVE_ARPA_INET_H
  28686. # include <arpa/inet.h>
  28687. #endif
  28688. #ifdef HAVE_WINSOCK2_H
  28689. #include <winsock2.h>
  28690. #include <ws2tcpip.h>
  28691. #endif
  28692. /* includes end */"
  28693. for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
  28694. do :
  28695. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28696. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
  28697. "
  28698. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  28699. cat >>confdefs.h <<_ACEOF
  28700. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28701. _ACEOF
  28702. fi
  28703. done
  28704. #
  28705. tst_links_inet_ntoa_r="unknown"
  28706. tst_proto_inet_ntoa_r="unknown"
  28707. tst_compi_inet_ntoa_r="unknown"
  28708. tst_allow_inet_ntoa_r="unknown"
  28709. tst_nargs_inet_ntoa_r="unknown"
  28710. #
  28711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
  28712. $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
  28713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28714. /* end confdefs.h. */
  28715. #define inet_ntoa_r innocuous_inet_ntoa_r
  28716. #ifdef __STDC__
  28717. # include <limits.h>
  28718. #else
  28719. # include <assert.h>
  28720. #endif
  28721. #undef inet_ntoa_r
  28722. #ifdef __cplusplus
  28723. extern "C"
  28724. #endif
  28725. char inet_ntoa_r ();
  28726. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  28727. choke me
  28728. #endif
  28729. int main (void)
  28730. {
  28731. return inet_ntoa_r ();
  28732. ;
  28733. return 0;
  28734. }
  28735. _ACEOF
  28736. if ac_fn_c_try_link "$LINENO"; then :
  28737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28738. $as_echo "yes" >&6; }
  28739. tst_links_inet_ntoa_r="yes"
  28740. else
  28741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28742. $as_echo "no" >&6; }
  28743. tst_links_inet_ntoa_r="no"
  28744. fi
  28745. rm -f core conftest.err conftest.$ac_objext \
  28746. conftest$ac_exeext conftest.$ac_ext
  28747. #
  28748. if test "$tst_links_inet_ntoa_r" = "yes"; then
  28749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
  28750. $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
  28751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28752. /* end confdefs.h. */
  28753. $curl_includes_arpa_inet
  28754. _ACEOF
  28755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28756. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  28757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28758. $as_echo "yes" >&6; }
  28759. tst_proto_inet_ntoa_r="yes"
  28760. else
  28761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28762. $as_echo "no" >&6; }
  28763. tst_proto_inet_ntoa_r="no"
  28764. fi
  28765. rm -f conftest*
  28766. fi
  28767. #
  28768. if test "$tst_proto_inet_ntoa_r" = "yes"; then
  28769. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  28770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
  28771. $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
  28772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28773. /* end confdefs.h. */
  28774. $curl_includes_arpa_inet
  28775. int main (void)
  28776. {
  28777. struct in_addr addr;
  28778. if(0 != inet_ntoa_r(addr, 0))
  28779. return 1;
  28780. ;
  28781. return 0;
  28782. }
  28783. _ACEOF
  28784. if ac_fn_c_try_compile "$LINENO"; then :
  28785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28786. $as_echo "yes" >&6; }
  28787. tst_compi_inet_ntoa_r="yes"
  28788. tst_nargs_inet_ntoa_r="2"
  28789. else
  28790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28791. $as_echo "no" >&6; }
  28792. tst_compi_inet_ntoa_r="no"
  28793. fi
  28794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28795. fi
  28796. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  28797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
  28798. $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
  28799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28800. /* end confdefs.h. */
  28801. $curl_includes_arpa_inet
  28802. int main (void)
  28803. {
  28804. struct in_addr addr;
  28805. if(0 != inet_ntoa_r(addr, 0, 0))
  28806. return 1;
  28807. ;
  28808. return 0;
  28809. }
  28810. _ACEOF
  28811. if ac_fn_c_try_compile "$LINENO"; then :
  28812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28813. $as_echo "yes" >&6; }
  28814. tst_compi_inet_ntoa_r="yes"
  28815. tst_nargs_inet_ntoa_r="3"
  28816. else
  28817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28818. $as_echo "no" >&6; }
  28819. tst_compi_inet_ntoa_r="no"
  28820. fi
  28821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28822. fi
  28823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
  28824. $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
  28825. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  28826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28827. $as_echo "yes" >&6; }
  28828. else
  28829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28830. $as_echo "no" >&6; }
  28831. fi
  28832. fi
  28833. #
  28834. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  28835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
  28836. $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
  28837. if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
  28838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28839. $as_echo "yes" >&6; }
  28840. tst_allow_inet_ntoa_r="yes"
  28841. else
  28842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28843. $as_echo "no" >&6; }
  28844. tst_allow_inet_ntoa_r="no"
  28845. fi
  28846. fi
  28847. #
  28848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
  28849. $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
  28850. if test "$tst_links_inet_ntoa_r" = "yes" &&
  28851. test "$tst_proto_inet_ntoa_r" = "yes" &&
  28852. test "$tst_compi_inet_ntoa_r" = "yes" &&
  28853. test "$tst_allow_inet_ntoa_r" = "yes"; then
  28854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28855. $as_echo "yes" >&6; }
  28856. cat >>confdefs.h <<_ACEOF
  28857. #define HAVE_INET_NTOA_R 1
  28858. _ACEOF
  28859. #
  28860. if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
  28861. $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
  28862. elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
  28863. $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
  28864. fi
  28865. #
  28866. curl_cv_func_inet_ntoa_r="yes"
  28867. else
  28868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28869. $as_echo "no" >&6; }
  28870. curl_cv_func_inet_ntoa_r="no"
  28871. fi
  28872. #
  28873. tst_links_inet_ntop="unknown"
  28874. tst_proto_inet_ntop="unknown"
  28875. tst_compi_inet_ntop="unknown"
  28876. tst_works_inet_ntop="unknown"
  28877. tst_allow_inet_ntop="unknown"
  28878. #
  28879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  28880. $as_echo_n "checking if inet_ntop can be linked... " >&6; }
  28881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28882. /* end confdefs.h. */
  28883. #define inet_ntop innocuous_inet_ntop
  28884. #ifdef __STDC__
  28885. # include <limits.h>
  28886. #else
  28887. # include <assert.h>
  28888. #endif
  28889. #undef inet_ntop
  28890. #ifdef __cplusplus
  28891. extern "C"
  28892. #endif
  28893. char inet_ntop ();
  28894. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  28895. choke me
  28896. #endif
  28897. int main (void)
  28898. {
  28899. return inet_ntop ();
  28900. ;
  28901. return 0;
  28902. }
  28903. _ACEOF
  28904. if ac_fn_c_try_link "$LINENO"; then :
  28905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28906. $as_echo "yes" >&6; }
  28907. tst_links_inet_ntop="yes"
  28908. else
  28909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28910. $as_echo "no" >&6; }
  28911. tst_links_inet_ntop="no"
  28912. fi
  28913. rm -f core conftest.err conftest.$ac_objext \
  28914. conftest$ac_exeext conftest.$ac_ext
  28915. #
  28916. if test "$tst_links_inet_ntop" = "yes"; then
  28917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  28918. $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
  28919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28920. /* end confdefs.h. */
  28921. $curl_includes_arpa_inet
  28922. _ACEOF
  28923. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28924. $EGREP "inet_ntop" >/dev/null 2>&1; then :
  28925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28926. $as_echo "yes" >&6; }
  28927. tst_proto_inet_ntop="yes"
  28928. else
  28929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28930. $as_echo "no" >&6; }
  28931. tst_proto_inet_ntop="no"
  28932. fi
  28933. rm -f conftest*
  28934. fi
  28935. #
  28936. if test "$tst_proto_inet_ntop" = "yes"; then
  28937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  28938. $as_echo_n "checking if inet_ntop is compilable... " >&6; }
  28939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28940. /* end confdefs.h. */
  28941. $curl_includes_arpa_inet
  28942. int main (void)
  28943. {
  28944. if(0 != inet_ntop(0, 0, 0, 0))
  28945. return 1;
  28946. ;
  28947. return 0;
  28948. }
  28949. _ACEOF
  28950. if ac_fn_c_try_compile "$LINENO"; then :
  28951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28952. $as_echo "yes" >&6; }
  28953. tst_compi_inet_ntop="yes"
  28954. else
  28955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28956. $as_echo "no" >&6; }
  28957. tst_compi_inet_ntop="no"
  28958. fi
  28959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28960. fi
  28961. #
  28962. if test "x$cross_compiling" != "xyes" &&
  28963. test "$tst_compi_inet_ntop" = "yes"; then
  28964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  28965. $as_echo_n "checking if inet_ntop seems to work... " >&6; }
  28966. if test "$cross_compiling" = yes; then :
  28967. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28968. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28969. as_fn_error $? "cannot run test program while cross compiling
  28970. See \`config.log' for more details" "$LINENO" 5; }
  28971. else
  28972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28973. /* end confdefs.h. */
  28974. $curl_includes_stdlib
  28975. $curl_includes_arpa_inet
  28976. $curl_includes_string
  28977. int main (void)
  28978. {
  28979. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  28980. char ipv4res[sizeof "255.255.255.255"];
  28981. unsigned char ipv6a[26];
  28982. unsigned char ipv4a[5];
  28983. char *ipv6ptr = 0;
  28984. char *ipv4ptr = 0;
  28985. /* - */
  28986. ipv4res[0] = '\0';
  28987. ipv4a[0] = 0xc0;
  28988. ipv4a[1] = 0xa8;
  28989. ipv4a[2] = 0x64;
  28990. ipv4a[3] = 0x01;
  28991. ipv4a[4] = 0x01;
  28992. /* - */
  28993. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  28994. if(!ipv4ptr)
  28995. exit(1); /* fail */
  28996. if(ipv4ptr != ipv4res)
  28997. exit(1); /* fail */
  28998. if(!ipv4ptr[0])
  28999. exit(1); /* fail */
  29000. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  29001. exit(1); /* fail */
  29002. /* - */
  29003. ipv6res[0] = '\0';
  29004. memset(ipv6a, 0, sizeof(ipv6a));
  29005. ipv6a[0] = 0xfe;
  29006. ipv6a[1] = 0x80;
  29007. ipv6a[8] = 0x02;
  29008. ipv6a[9] = 0x14;
  29009. ipv6a[10] = 0x4f;
  29010. ipv6a[11] = 0xff;
  29011. ipv6a[12] = 0xfe;
  29012. ipv6a[13] = 0x0b;
  29013. ipv6a[14] = 0x76;
  29014. ipv6a[15] = 0xc8;
  29015. ipv6a[25] = 0x01;
  29016. /* - */
  29017. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  29018. if(!ipv6ptr)
  29019. exit(1); /* fail */
  29020. if(ipv6ptr != ipv6res)
  29021. exit(1); /* fail */
  29022. if(!ipv6ptr[0])
  29023. exit(1); /* fail */
  29024. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  29025. exit(1); /* fail */
  29026. /* - */
  29027. exit(0);
  29028. ;
  29029. return 0;
  29030. }
  29031. _ACEOF
  29032. if ac_fn_c_try_run "$LINENO"; then :
  29033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29034. $as_echo "yes" >&6; }
  29035. tst_works_inet_ntop="yes"
  29036. else
  29037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29038. $as_echo "no" >&6; }
  29039. tst_works_inet_ntop="no"
  29040. fi
  29041. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29042. conftest.$ac_objext conftest.beam conftest.$ac_ext
  29043. fi
  29044. fi
  29045. #
  29046. if test "$tst_compi_inet_ntop" = "yes" &&
  29047. test "$tst_works_inet_ntop" != "no"; then
  29048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  29049. $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
  29050. if test "x$curl_disallow_inet_ntop" != "xyes"; then
  29051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29052. $as_echo "yes" >&6; }
  29053. tst_allow_inet_ntop="yes"
  29054. else
  29055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29056. $as_echo "no" >&6; }
  29057. tst_allow_inet_ntop="no"
  29058. fi
  29059. fi
  29060. #
  29061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  29062. $as_echo_n "checking if inet_ntop might be used... " >&6; }
  29063. if test "$tst_links_inet_ntop" = "yes" &&
  29064. test "$tst_proto_inet_ntop" = "yes" &&
  29065. test "$tst_compi_inet_ntop" = "yes" &&
  29066. test "$tst_allow_inet_ntop" = "yes" &&
  29067. test "$tst_works_inet_ntop" != "no"; then
  29068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29069. $as_echo "yes" >&6; }
  29070. cat >>confdefs.h <<_ACEOF
  29071. #define HAVE_INET_NTOP 1
  29072. _ACEOF
  29073. curl_cv_func_inet_ntop="yes"
  29074. else
  29075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29076. $as_echo "no" >&6; }
  29077. curl_cv_func_inet_ntop="no"
  29078. fi
  29079. #
  29080. tst_links_inet_pton="unknown"
  29081. tst_proto_inet_pton="unknown"
  29082. tst_compi_inet_pton="unknown"
  29083. tst_works_inet_pton="unknown"
  29084. tst_allow_inet_pton="unknown"
  29085. #
  29086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  29087. $as_echo_n "checking if inet_pton can be linked... " >&6; }
  29088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29089. /* end confdefs.h. */
  29090. #define inet_pton innocuous_inet_pton
  29091. #ifdef __STDC__
  29092. # include <limits.h>
  29093. #else
  29094. # include <assert.h>
  29095. #endif
  29096. #undef inet_pton
  29097. #ifdef __cplusplus
  29098. extern "C"
  29099. #endif
  29100. char inet_pton ();
  29101. #if defined __stub_inet_pton || defined __stub___inet_pton
  29102. choke me
  29103. #endif
  29104. int main (void)
  29105. {
  29106. return inet_pton ();
  29107. ;
  29108. return 0;
  29109. }
  29110. _ACEOF
  29111. if ac_fn_c_try_link "$LINENO"; then :
  29112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29113. $as_echo "yes" >&6; }
  29114. tst_links_inet_pton="yes"
  29115. else
  29116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29117. $as_echo "no" >&6; }
  29118. tst_links_inet_pton="no"
  29119. fi
  29120. rm -f core conftest.err conftest.$ac_objext \
  29121. conftest$ac_exeext conftest.$ac_ext
  29122. #
  29123. if test "$tst_links_inet_pton" = "yes"; then
  29124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  29125. $as_echo_n "checking if inet_pton is prototyped... " >&6; }
  29126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29127. /* end confdefs.h. */
  29128. $curl_includes_arpa_inet
  29129. _ACEOF
  29130. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29131. $EGREP "inet_pton" >/dev/null 2>&1; then :
  29132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29133. $as_echo "yes" >&6; }
  29134. tst_proto_inet_pton="yes"
  29135. else
  29136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29137. $as_echo "no" >&6; }
  29138. tst_proto_inet_pton="no"
  29139. fi
  29140. rm -f conftest*
  29141. fi
  29142. #
  29143. if test "$tst_proto_inet_pton" = "yes"; then
  29144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  29145. $as_echo_n "checking if inet_pton is compilable... " >&6; }
  29146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29147. /* end confdefs.h. */
  29148. $curl_includes_arpa_inet
  29149. int main (void)
  29150. {
  29151. if(0 != inet_pton(0, 0, 0))
  29152. return 1;
  29153. ;
  29154. return 0;
  29155. }
  29156. _ACEOF
  29157. if ac_fn_c_try_compile "$LINENO"; then :
  29158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29159. $as_echo "yes" >&6; }
  29160. tst_compi_inet_pton="yes"
  29161. else
  29162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29163. $as_echo "no" >&6; }
  29164. tst_compi_inet_pton="no"
  29165. fi
  29166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29167. fi
  29168. #
  29169. if test "x$cross_compiling" != "xyes" &&
  29170. test "$tst_compi_inet_pton" = "yes"; then
  29171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  29172. $as_echo_n "checking if inet_pton seems to work... " >&6; }
  29173. if test "$cross_compiling" = yes; then :
  29174. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  29175. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29176. as_fn_error $? "cannot run test program while cross compiling
  29177. See \`config.log' for more details" "$LINENO" 5; }
  29178. else
  29179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29180. /* end confdefs.h. */
  29181. $curl_includes_stdlib
  29182. $curl_includes_arpa_inet
  29183. $curl_includes_string
  29184. int main (void)
  29185. {
  29186. unsigned char ipv6a[16+1];
  29187. unsigned char ipv4a[4+1];
  29188. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  29189. const char *ipv4src = "192.168.100.1";
  29190. /* - */
  29191. memset(ipv4a, 1, sizeof(ipv4a));
  29192. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  29193. exit(1); /* fail */
  29194. /* - */
  29195. if( (ipv4a[0] != 0xc0) ||
  29196. (ipv4a[1] != 0xa8) ||
  29197. (ipv4a[2] != 0x64) ||
  29198. (ipv4a[3] != 0x01) ||
  29199. (ipv4a[4] != 0x01) )
  29200. exit(1); /* fail */
  29201. /* - */
  29202. memset(ipv6a, 1, sizeof(ipv6a));
  29203. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  29204. exit(1); /* fail */
  29205. /* - */
  29206. if( (ipv6a[0] != 0xfe) ||
  29207. (ipv6a[1] != 0x80) ||
  29208. (ipv6a[8] != 0x02) ||
  29209. (ipv6a[9] != 0x14) ||
  29210. (ipv6a[10] != 0x4f) ||
  29211. (ipv6a[11] != 0xff) ||
  29212. (ipv6a[12] != 0xfe) ||
  29213. (ipv6a[13] != 0x0b) ||
  29214. (ipv6a[14] != 0x76) ||
  29215. (ipv6a[15] != 0xc8) ||
  29216. (ipv6a[16] != 0x01) )
  29217. exit(1); /* fail */
  29218. /* - */
  29219. if( (ipv6a[2] != 0x0) ||
  29220. (ipv6a[3] != 0x0) ||
  29221. (ipv6a[4] != 0x0) ||
  29222. (ipv6a[5] != 0x0) ||
  29223. (ipv6a[6] != 0x0) ||
  29224. (ipv6a[7] != 0x0) )
  29225. exit(1); /* fail */
  29226. /* - */
  29227. exit(0);
  29228. ;
  29229. return 0;
  29230. }
  29231. _ACEOF
  29232. if ac_fn_c_try_run "$LINENO"; then :
  29233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29234. $as_echo "yes" >&6; }
  29235. tst_works_inet_pton="yes"
  29236. else
  29237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29238. $as_echo "no" >&6; }
  29239. tst_works_inet_pton="no"
  29240. fi
  29241. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  29242. conftest.$ac_objext conftest.beam conftest.$ac_ext
  29243. fi
  29244. fi
  29245. #
  29246. if test "$tst_compi_inet_pton" = "yes" &&
  29247. test "$tst_works_inet_pton" != "no"; then
  29248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  29249. $as_echo_n "checking if inet_pton usage allowed... " >&6; }
  29250. if test "x$curl_disallow_inet_pton" != "xyes"; then
  29251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29252. $as_echo "yes" >&6; }
  29253. tst_allow_inet_pton="yes"
  29254. else
  29255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29256. $as_echo "no" >&6; }
  29257. tst_allow_inet_pton="no"
  29258. fi
  29259. fi
  29260. #
  29261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  29262. $as_echo_n "checking if inet_pton might be used... " >&6; }
  29263. if test "$tst_links_inet_pton" = "yes" &&
  29264. test "$tst_proto_inet_pton" = "yes" &&
  29265. test "$tst_compi_inet_pton" = "yes" &&
  29266. test "$tst_allow_inet_pton" = "yes" &&
  29267. test "$tst_works_inet_pton" != "no"; then
  29268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29269. $as_echo "yes" >&6; }
  29270. cat >>confdefs.h <<_ACEOF
  29271. #define HAVE_INET_PTON 1
  29272. _ACEOF
  29273. curl_cv_func_inet_pton="yes"
  29274. else
  29275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29276. $as_echo "no" >&6; }
  29277. curl_cv_func_inet_pton="no"
  29278. fi
  29279. curl_includes_stropts="\
  29280. /* includes start */
  29281. #ifdef HAVE_SYS_TYPES_H
  29282. # include <sys/types.h>
  29283. #endif
  29284. #ifdef HAVE_UNISTD_H
  29285. # include <unistd.h>
  29286. #endif
  29287. #ifdef HAVE_SYS_SOCKET_H
  29288. # include <sys/socket.h>
  29289. #endif
  29290. #ifdef HAVE_SYS_IOCTL_H
  29291. # include <sys/ioctl.h>
  29292. #endif
  29293. #ifdef HAVE_STROPTS_H
  29294. # include <stropts.h>
  29295. #endif
  29296. /* includes end */"
  29297. for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
  29298. do :
  29299. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29300. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
  29301. "
  29302. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  29303. cat >>confdefs.h <<_ACEOF
  29304. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29305. _ACEOF
  29306. fi
  29307. done
  29308. #
  29309. tst_links_ioctl="unknown"
  29310. tst_proto_ioctl="unknown"
  29311. tst_compi_ioctl="unknown"
  29312. tst_allow_ioctl="unknown"
  29313. #
  29314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
  29315. $as_echo_n "checking if ioctl can be linked... " >&6; }
  29316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29317. /* end confdefs.h. */
  29318. #define ioctl innocuous_ioctl
  29319. #ifdef __STDC__
  29320. # include <limits.h>
  29321. #else
  29322. # include <assert.h>
  29323. #endif
  29324. #undef ioctl
  29325. #ifdef __cplusplus
  29326. extern "C"
  29327. #endif
  29328. char ioctl ();
  29329. #if defined __stub_ioctl || defined __stub___ioctl
  29330. choke me
  29331. #endif
  29332. int main (void)
  29333. {
  29334. return ioctl ();
  29335. ;
  29336. return 0;
  29337. }
  29338. _ACEOF
  29339. if ac_fn_c_try_link "$LINENO"; then :
  29340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29341. $as_echo "yes" >&6; }
  29342. tst_links_ioctl="yes"
  29343. else
  29344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29345. $as_echo "no" >&6; }
  29346. tst_links_ioctl="no"
  29347. fi
  29348. rm -f core conftest.err conftest.$ac_objext \
  29349. conftest$ac_exeext conftest.$ac_ext
  29350. #
  29351. if test "$tst_links_ioctl" = "yes"; then
  29352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
  29353. $as_echo_n "checking if ioctl is prototyped... " >&6; }
  29354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29355. /* end confdefs.h. */
  29356. $curl_includes_stropts
  29357. _ACEOF
  29358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29359. $EGREP "ioctl" >/dev/null 2>&1; then :
  29360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29361. $as_echo "yes" >&6; }
  29362. tst_proto_ioctl="yes"
  29363. else
  29364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29365. $as_echo "no" >&6; }
  29366. tst_proto_ioctl="no"
  29367. fi
  29368. rm -f conftest*
  29369. fi
  29370. #
  29371. if test "$tst_proto_ioctl" = "yes"; then
  29372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
  29373. $as_echo_n "checking if ioctl is compilable... " >&6; }
  29374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29375. /* end confdefs.h. */
  29376. $curl_includes_stropts
  29377. int main (void)
  29378. {
  29379. if(0 != ioctl(0, 0, 0))
  29380. return 1;
  29381. ;
  29382. return 0;
  29383. }
  29384. _ACEOF
  29385. if ac_fn_c_try_compile "$LINENO"; then :
  29386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29387. $as_echo "yes" >&6; }
  29388. tst_compi_ioctl="yes"
  29389. else
  29390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29391. $as_echo "no" >&6; }
  29392. tst_compi_ioctl="no"
  29393. fi
  29394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29395. fi
  29396. #
  29397. if test "$tst_compi_ioctl" = "yes"; then
  29398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
  29399. $as_echo_n "checking if ioctl usage allowed... " >&6; }
  29400. if test "x$curl_disallow_ioctl" != "xyes"; then
  29401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29402. $as_echo "yes" >&6; }
  29403. tst_allow_ioctl="yes"
  29404. else
  29405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29406. $as_echo "no" >&6; }
  29407. tst_allow_ioctl="no"
  29408. fi
  29409. fi
  29410. #
  29411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
  29412. $as_echo_n "checking if ioctl might be used... " >&6; }
  29413. if test "$tst_links_ioctl" = "yes" &&
  29414. test "$tst_proto_ioctl" = "yes" &&
  29415. test "$tst_compi_ioctl" = "yes" &&
  29416. test "$tst_allow_ioctl" = "yes"; then
  29417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29418. $as_echo "yes" >&6; }
  29419. cat >>confdefs.h <<_ACEOF
  29420. #define HAVE_IOCTL 1
  29421. _ACEOF
  29422. curl_cv_func_ioctl="yes"
  29423. #
  29424. tst_compi_ioctl_fionbio="unknown"
  29425. tst_allow_ioctl_fionbio="unknown"
  29426. #
  29427. if test "$curl_cv_func_ioctl" = "yes"; then
  29428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
  29429. $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
  29430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29431. /* end confdefs.h. */
  29432. $curl_includes_stropts
  29433. int main (void)
  29434. {
  29435. int flags = 0;
  29436. if(0 != ioctl(0, FIONBIO, &flags))
  29437. return 1;
  29438. ;
  29439. return 0;
  29440. }
  29441. _ACEOF
  29442. if ac_fn_c_try_compile "$LINENO"; then :
  29443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29444. $as_echo "yes" >&6; }
  29445. tst_compi_ioctl_fionbio="yes"
  29446. else
  29447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29448. $as_echo "no" >&6; }
  29449. tst_compi_ioctl_fionbio="no"
  29450. fi
  29451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29452. fi
  29453. #
  29454. if test "$tst_compi_ioctl_fionbio" = "yes"; then
  29455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
  29456. $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
  29457. if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
  29458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29459. $as_echo "yes" >&6; }
  29460. tst_allow_ioctl_fionbio="yes"
  29461. else
  29462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29463. $as_echo "no" >&6; }
  29464. tst_allow_ioctl_fionbio="no"
  29465. fi
  29466. fi
  29467. #
  29468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
  29469. $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
  29470. if test "$tst_compi_ioctl_fionbio" = "yes" &&
  29471. test "$tst_allow_ioctl_fionbio" = "yes"; then
  29472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29473. $as_echo "yes" >&6; }
  29474. cat >>confdefs.h <<_ACEOF
  29475. #define HAVE_IOCTL_FIONBIO 1
  29476. _ACEOF
  29477. curl_cv_func_ioctl_fionbio="yes"
  29478. else
  29479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29480. $as_echo "no" >&6; }
  29481. curl_cv_func_ioctl_fionbio="no"
  29482. fi
  29483. #
  29484. tst_compi_ioctl_siocgifaddr="unknown"
  29485. tst_allow_ioctl_siocgifaddr="unknown"
  29486. #
  29487. if test "$curl_cv_func_ioctl" = "yes"; then
  29488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
  29489. $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
  29490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29491. /* end confdefs.h. */
  29492. $curl_includes_stropts
  29493. #include <net/if.h>
  29494. int main (void)
  29495. {
  29496. struct ifreq ifr;
  29497. if(0 != ioctl(0, SIOCGIFADDR, &ifr))
  29498. return 1;
  29499. ;
  29500. return 0;
  29501. }
  29502. _ACEOF
  29503. if ac_fn_c_try_compile "$LINENO"; then :
  29504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29505. $as_echo "yes" >&6; }
  29506. tst_compi_ioctl_siocgifaddr="yes"
  29507. else
  29508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29509. $as_echo "no" >&6; }
  29510. tst_compi_ioctl_siocgifaddr="no"
  29511. fi
  29512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29513. fi
  29514. #
  29515. if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
  29516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
  29517. $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
  29518. if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
  29519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29520. $as_echo "yes" >&6; }
  29521. tst_allow_ioctl_siocgifaddr="yes"
  29522. else
  29523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29524. $as_echo "no" >&6; }
  29525. tst_allow_ioctl_siocgifaddr="no"
  29526. fi
  29527. fi
  29528. #
  29529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
  29530. $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
  29531. if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
  29532. test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
  29533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29534. $as_echo "yes" >&6; }
  29535. cat >>confdefs.h <<_ACEOF
  29536. #define HAVE_IOCTL_SIOCGIFADDR 1
  29537. _ACEOF
  29538. curl_cv_func_ioctl_siocgifaddr="yes"
  29539. else
  29540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29541. $as_echo "no" >&6; }
  29542. curl_cv_func_ioctl_siocgifaddr="no"
  29543. fi
  29544. else
  29545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29546. $as_echo "no" >&6; }
  29547. curl_cv_func_ioctl="no"
  29548. fi
  29549. #
  29550. tst_links_ioctlsocket="unknown"
  29551. tst_proto_ioctlsocket="unknown"
  29552. tst_compi_ioctlsocket="unknown"
  29553. tst_allow_ioctlsocket="unknown"
  29554. #
  29555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  29556. $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
  29557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29558. /* end confdefs.h. */
  29559. $curl_includes_winsock2
  29560. int main (void)
  29561. {
  29562. if(0 != ioctlsocket(0, 0, 0))
  29563. return 1;
  29564. ;
  29565. return 0;
  29566. }
  29567. _ACEOF
  29568. if ac_fn_c_try_link "$LINENO"; then :
  29569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29570. $as_echo "yes" >&6; }
  29571. tst_links_ioctlsocket="yes"
  29572. else
  29573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29574. $as_echo "no" >&6; }
  29575. tst_links_ioctlsocket="no"
  29576. fi
  29577. rm -f core conftest.err conftest.$ac_objext \
  29578. conftest$ac_exeext conftest.$ac_ext
  29579. #
  29580. if test "$tst_links_ioctlsocket" = "yes"; then
  29581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  29582. $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
  29583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29584. /* end confdefs.h. */
  29585. $curl_includes_winsock2
  29586. _ACEOF
  29587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29588. $EGREP "ioctlsocket" >/dev/null 2>&1; then :
  29589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29590. $as_echo "yes" >&6; }
  29591. tst_proto_ioctlsocket="yes"
  29592. else
  29593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29594. $as_echo "no" >&6; }
  29595. tst_proto_ioctlsocket="no"
  29596. fi
  29597. rm -f conftest*
  29598. fi
  29599. #
  29600. if test "$tst_proto_ioctlsocket" = "yes"; then
  29601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  29602. $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
  29603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29604. /* end confdefs.h. */
  29605. $curl_includes_winsock2
  29606. int main (void)
  29607. {
  29608. if(0 != ioctlsocket(0, 0, 0))
  29609. return 1;
  29610. ;
  29611. return 0;
  29612. }
  29613. _ACEOF
  29614. if ac_fn_c_try_compile "$LINENO"; then :
  29615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29616. $as_echo "yes" >&6; }
  29617. tst_compi_ioctlsocket="yes"
  29618. else
  29619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29620. $as_echo "no" >&6; }
  29621. tst_compi_ioctlsocket="no"
  29622. fi
  29623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29624. fi
  29625. #
  29626. if test "$tst_compi_ioctlsocket" = "yes"; then
  29627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  29628. $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
  29629. if test "x$curl_disallow_ioctlsocket" != "xyes"; then
  29630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29631. $as_echo "yes" >&6; }
  29632. tst_allow_ioctlsocket="yes"
  29633. else
  29634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29635. $as_echo "no" >&6; }
  29636. tst_allow_ioctlsocket="no"
  29637. fi
  29638. fi
  29639. #
  29640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  29641. $as_echo_n "checking if ioctlsocket might be used... " >&6; }
  29642. if test "$tst_links_ioctlsocket" = "yes" &&
  29643. test "$tst_proto_ioctlsocket" = "yes" &&
  29644. test "$tst_compi_ioctlsocket" = "yes" &&
  29645. test "$tst_allow_ioctlsocket" = "yes"; then
  29646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29647. $as_echo "yes" >&6; }
  29648. cat >>confdefs.h <<_ACEOF
  29649. #define HAVE_IOCTLSOCKET 1
  29650. _ACEOF
  29651. curl_cv_func_ioctlsocket="yes"
  29652. #
  29653. tst_compi_ioctlsocket_fionbio="unknown"
  29654. tst_allow_ioctlsocket_fionbio="unknown"
  29655. #
  29656. if test "$curl_cv_func_ioctlsocket" = "yes"; then
  29657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  29658. $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  29659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29660. /* end confdefs.h. */
  29661. $curl_includes_winsock2
  29662. int main (void)
  29663. {
  29664. int flags = 0;
  29665. if(0 != ioctlsocket(0, FIONBIO, &flags))
  29666. return 1;
  29667. ;
  29668. return 0;
  29669. }
  29670. _ACEOF
  29671. if ac_fn_c_try_compile "$LINENO"; then :
  29672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29673. $as_echo "yes" >&6; }
  29674. tst_compi_ioctlsocket_fionbio="yes"
  29675. else
  29676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29677. $as_echo "no" >&6; }
  29678. tst_compi_ioctlsocket_fionbio="no"
  29679. fi
  29680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29681. fi
  29682. #
  29683. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  29684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  29685. $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  29686. if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
  29687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29688. $as_echo "yes" >&6; }
  29689. tst_allow_ioctlsocket_fionbio="yes"
  29690. else
  29691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29692. $as_echo "no" >&6; }
  29693. tst_allow_ioctlsocket_fionbio="no"
  29694. fi
  29695. fi
  29696. #
  29697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  29698. $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
  29699. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  29700. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  29701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29702. $as_echo "yes" >&6; }
  29703. cat >>confdefs.h <<_ACEOF
  29704. #define HAVE_IOCTLSOCKET_FIONBIO 1
  29705. _ACEOF
  29706. curl_cv_func_ioctlsocket_fionbio="yes"
  29707. else
  29708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29709. $as_echo "no" >&6; }
  29710. curl_cv_func_ioctlsocket_fionbio="no"
  29711. fi
  29712. else
  29713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29714. $as_echo "no" >&6; }
  29715. curl_cv_func_ioctlsocket="no"
  29716. fi
  29717. #
  29718. tst_links_ioctlsocket_camel="unknown"
  29719. tst_proto_ioctlsocket_camel="unknown"
  29720. tst_compi_ioctlsocket_camel="unknown"
  29721. tst_allow_ioctlsocket_camel="unknown"
  29722. #
  29723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  29724. $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
  29725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29726. /* end confdefs.h. */
  29727. #define IoctlSocket innocuous_IoctlSocket
  29728. #ifdef __STDC__
  29729. # include <limits.h>
  29730. #else
  29731. # include <assert.h>
  29732. #endif
  29733. #undef IoctlSocket
  29734. #ifdef __cplusplus
  29735. extern "C"
  29736. #endif
  29737. char IoctlSocket ();
  29738. #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
  29739. choke me
  29740. #endif
  29741. int main (void)
  29742. {
  29743. return IoctlSocket ();
  29744. ;
  29745. return 0;
  29746. }
  29747. _ACEOF
  29748. if ac_fn_c_try_link "$LINENO"; then :
  29749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29750. $as_echo "yes" >&6; }
  29751. tst_links_ioctlsocket_camel="yes"
  29752. else
  29753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29754. $as_echo "no" >&6; }
  29755. tst_links_ioctlsocket_camel="no"
  29756. fi
  29757. rm -f core conftest.err conftest.$ac_objext \
  29758. conftest$ac_exeext conftest.$ac_ext
  29759. #
  29760. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  29761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  29762. $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
  29763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29764. /* end confdefs.h. */
  29765. $curl_includes_stropts
  29766. _ACEOF
  29767. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29768. $EGREP "IoctlSocket" >/dev/null 2>&1; then :
  29769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29770. $as_echo "yes" >&6; }
  29771. tst_proto_ioctlsocket_camel="yes"
  29772. else
  29773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29774. $as_echo "no" >&6; }
  29775. tst_proto_ioctlsocket_camel="no"
  29776. fi
  29777. rm -f conftest*
  29778. fi
  29779. #
  29780. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  29781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  29782. $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
  29783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29784. /* end confdefs.h. */
  29785. $curl_includes_stropts
  29786. int main (void)
  29787. {
  29788. if(0 != IoctlSocket(0, 0, 0))
  29789. return 1;
  29790. ;
  29791. return 0;
  29792. }
  29793. _ACEOF
  29794. if ac_fn_c_try_compile "$LINENO"; then :
  29795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29796. $as_echo "yes" >&6; }
  29797. tst_compi_ioctlsocket_camel="yes"
  29798. else
  29799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29800. $as_echo "no" >&6; }
  29801. tst_compi_ioctlsocket_camel="no"
  29802. fi
  29803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29804. fi
  29805. #
  29806. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  29807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  29808. $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
  29809. if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
  29810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29811. $as_echo "yes" >&6; }
  29812. tst_allow_ioctlsocket_camel="yes"
  29813. else
  29814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29815. $as_echo "no" >&6; }
  29816. tst_allow_ioctlsocket_camel="no"
  29817. fi
  29818. fi
  29819. #
  29820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  29821. $as_echo_n "checking if IoctlSocket might be used... " >&6; }
  29822. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  29823. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  29824. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  29825. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  29826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29827. $as_echo "yes" >&6; }
  29828. cat >>confdefs.h <<_ACEOF
  29829. #define HAVE_IOCTLSOCKET_CAMEL 1
  29830. _ACEOF
  29831. curl_cv_func_ioctlsocket_camel="yes"
  29832. #
  29833. tst_compi_ioctlsocket_camel_fionbio="unknown"
  29834. tst_allow_ioctlsocket_camel_fionbio="unknown"
  29835. #
  29836. if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
  29837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  29838. $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  29839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29840. /* end confdefs.h. */
  29841. $curl_includes_stropts
  29842. int main (void)
  29843. {
  29844. long flags = 0;
  29845. if(0 != ioctlsocket(0, FIONBIO, &flags))
  29846. return 1;
  29847. ;
  29848. return 0;
  29849. }
  29850. _ACEOF
  29851. if ac_fn_c_try_compile "$LINENO"; then :
  29852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29853. $as_echo "yes" >&6; }
  29854. tst_compi_ioctlsocket_camel_fionbio="yes"
  29855. else
  29856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29857. $as_echo "no" >&6; }
  29858. tst_compi_ioctlsocket_camel_fionbio="no"
  29859. fi
  29860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29861. fi
  29862. #
  29863. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  29864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  29865. $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  29866. if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  29867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29868. $as_echo "yes" >&6; }
  29869. tst_allow_ioctlsocket_camel_fionbio="yes"
  29870. else
  29871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29872. $as_echo "no" >&6; }
  29873. tst_allow_ioctlsocket_camel_fionbio="no"
  29874. fi
  29875. fi
  29876. #
  29877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  29878. $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
  29879. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  29880. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  29881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29882. $as_echo "yes" >&6; }
  29883. cat >>confdefs.h <<_ACEOF
  29884. #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
  29885. _ACEOF
  29886. curl_cv_func_ioctlsocket_camel_fionbio="yes"
  29887. else
  29888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29889. $as_echo "no" >&6; }
  29890. curl_cv_func_ioctlsocket_camel_fionbio="no"
  29891. fi
  29892. else
  29893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29894. $as_echo "no" >&6; }
  29895. curl_cv_func_ioctlsocket_camel="no"
  29896. fi
  29897. #
  29898. tst_links_localtime_r="unknown"
  29899. tst_proto_localtime_r="unknown"
  29900. tst_compi_localtime_r="unknown"
  29901. tst_works_localtime_r="unknown"
  29902. tst_allow_localtime_r="unknown"
  29903. #
  29904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
  29905. $as_echo_n "checking if localtime_r can be linked... " >&6; }
  29906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29907. /* end confdefs.h. */
  29908. #define localtime_r innocuous_localtime_r
  29909. #ifdef __STDC__
  29910. # include <limits.h>
  29911. #else
  29912. # include <assert.h>
  29913. #endif
  29914. #undef localtime_r
  29915. #ifdef __cplusplus
  29916. extern "C"
  29917. #endif
  29918. char localtime_r ();
  29919. #if defined __stub_localtime_r || defined __stub___localtime_r
  29920. choke me
  29921. #endif
  29922. int main (void)
  29923. {
  29924. return localtime_r ();
  29925. ;
  29926. return 0;
  29927. }
  29928. _ACEOF
  29929. if ac_fn_c_try_link "$LINENO"; then :
  29930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29931. $as_echo "yes" >&6; }
  29932. tst_links_localtime_r="yes"
  29933. else
  29934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29935. $as_echo "no" >&6; }
  29936. tst_links_localtime_r="no"
  29937. fi
  29938. rm -f core conftest.err conftest.$ac_objext \
  29939. conftest$ac_exeext conftest.$ac_ext
  29940. #
  29941. if test "$tst_links_localtime_r" = "yes"; then
  29942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
  29943. $as_echo_n "checking if localtime_r is prototyped... " >&6; }
  29944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29945. /* end confdefs.h. */
  29946. $curl_includes_time
  29947. _ACEOF
  29948. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29949. $EGREP "localtime_r" >/dev/null 2>&1; then :
  29950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29951. $as_echo "yes" >&6; }
  29952. tst_proto_localtime_r="yes"
  29953. else
  29954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29955. $as_echo "no" >&6; }
  29956. tst_proto_localtime_r="no"
  29957. fi
  29958. rm -f conftest*
  29959. fi
  29960. #
  29961. if test "$tst_proto_localtime_r" = "yes"; then
  29962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
  29963. $as_echo_n "checking if localtime_r is compilable... " >&6; }
  29964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29965. /* end confdefs.h. */
  29966. $curl_includes_time
  29967. int main (void)
  29968. {
  29969. if(0 != localtime_r(0, 0))
  29970. return 1;
  29971. ;
  29972. return 0;
  29973. }
  29974. _ACEOF
  29975. if ac_fn_c_try_compile "$LINENO"; then :
  29976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29977. $as_echo "yes" >&6; }
  29978. tst_compi_localtime_r="yes"
  29979. else
  29980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29981. $as_echo "no" >&6; }
  29982. tst_compi_localtime_r="no"
  29983. fi
  29984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29985. fi
  29986. #
  29987. if test "x$cross_compiling" != "xyes" &&
  29988. test "$tst_compi_localtime_r" = "yes"; then
  29989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
  29990. $as_echo_n "checking if localtime_r seems to work... " >&6; }
  29991. if test "$cross_compiling" = yes; then :
  29992. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  29993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29994. as_fn_error $? "cannot run test program while cross compiling
  29995. See \`config.log' for more details" "$LINENO" 5; }
  29996. else
  29997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29998. /* end confdefs.h. */
  29999. $curl_includes_stdlib
  30000. $curl_includes_time
  30001. int main (void)
  30002. {
  30003. time_t clock = 1170352587;
  30004. struct tm *tmp = 0;
  30005. struct tm result;
  30006. tmp = localtime_r(&clock, &result);
  30007. if(tmp)
  30008. exit(0);
  30009. else
  30010. exit(1);
  30011. ;
  30012. return 0;
  30013. }
  30014. _ACEOF
  30015. if ac_fn_c_try_run "$LINENO"; then :
  30016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30017. $as_echo "yes" >&6; }
  30018. tst_works_localtime_r="yes"
  30019. else
  30020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30021. $as_echo "no" >&6; }
  30022. tst_works_localtime_r="no"
  30023. fi
  30024. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30025. conftest.$ac_objext conftest.beam conftest.$ac_ext
  30026. fi
  30027. fi
  30028. #
  30029. if test "$tst_compi_localtime_r" = "yes" &&
  30030. test "$tst_works_localtime_r" != "no"; then
  30031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
  30032. $as_echo_n "checking if localtime_r usage allowed... " >&6; }
  30033. if test "x$curl_disallow_localtime_r" != "xyes"; then
  30034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30035. $as_echo "yes" >&6; }
  30036. tst_allow_localtime_r="yes"
  30037. else
  30038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30039. $as_echo "no" >&6; }
  30040. tst_allow_localtime_r="no"
  30041. fi
  30042. fi
  30043. #
  30044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
  30045. $as_echo_n "checking if localtime_r might be used... " >&6; }
  30046. if test "$tst_links_localtime_r" = "yes" &&
  30047. test "$tst_proto_localtime_r" = "yes" &&
  30048. test "$tst_compi_localtime_r" = "yes" &&
  30049. test "$tst_allow_localtime_r" = "yes" &&
  30050. test "$tst_works_localtime_r" != "no"; then
  30051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30052. $as_echo "yes" >&6; }
  30053. cat >>confdefs.h <<_ACEOF
  30054. #define HAVE_LOCALTIME_R 1
  30055. _ACEOF
  30056. curl_cv_func_localtime_r="yes"
  30057. else
  30058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30059. $as_echo "no" >&6; }
  30060. curl_cv_func_localtime_r="no"
  30061. fi
  30062. #
  30063. tst_links_memrchr="unknown"
  30064. tst_macro_memrchr="unknown"
  30065. tst_proto_memrchr="unknown"
  30066. tst_compi_memrchr="unknown"
  30067. tst_allow_memrchr="unknown"
  30068. #
  30069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
  30070. $as_echo_n "checking if memrchr can be linked... " >&6; }
  30071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30072. /* end confdefs.h. */
  30073. #define memrchr innocuous_memrchr
  30074. #ifdef __STDC__
  30075. # include <limits.h>
  30076. #else
  30077. # include <assert.h>
  30078. #endif
  30079. #undef memrchr
  30080. #ifdef __cplusplus
  30081. extern "C"
  30082. #endif
  30083. char memrchr ();
  30084. #if defined __stub_memrchr || defined __stub___memrchr
  30085. choke me
  30086. #endif
  30087. int main (void)
  30088. {
  30089. return memrchr ();
  30090. ;
  30091. return 0;
  30092. }
  30093. _ACEOF
  30094. if ac_fn_c_try_link "$LINENO"; then :
  30095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30096. $as_echo "yes" >&6; }
  30097. tst_links_memrchr="yes"
  30098. else
  30099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30100. $as_echo "no" >&6; }
  30101. tst_links_memrchr="no"
  30102. fi
  30103. rm -f core conftest.err conftest.$ac_objext \
  30104. conftest$ac_exeext conftest.$ac_ext
  30105. #
  30106. if test "$tst_links_memrchr" = "no"; then
  30107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
  30108. $as_echo_n "checking if memrchr seems a macro... " >&6; }
  30109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30110. /* end confdefs.h. */
  30111. $curl_includes_string
  30112. int main (void)
  30113. {
  30114. if(0 != memrchr(0, 0, 0))
  30115. return 1;
  30116. ;
  30117. return 0;
  30118. }
  30119. _ACEOF
  30120. if ac_fn_c_try_link "$LINENO"; then :
  30121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30122. $as_echo "yes" >&6; }
  30123. tst_macro_memrchr="yes"
  30124. else
  30125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30126. $as_echo "no" >&6; }
  30127. tst_macro_memrchr="no"
  30128. fi
  30129. rm -f core conftest.err conftest.$ac_objext \
  30130. conftest$ac_exeext conftest.$ac_ext
  30131. fi
  30132. #
  30133. if test "$tst_links_memrchr" = "yes"; then
  30134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
  30135. $as_echo_n "checking if memrchr is prototyped... " >&6; }
  30136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30137. /* end confdefs.h. */
  30138. $curl_includes_string
  30139. _ACEOF
  30140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30141. $EGREP "memrchr" >/dev/null 2>&1; then :
  30142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30143. $as_echo "yes" >&6; }
  30144. tst_proto_memrchr="yes"
  30145. else
  30146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30147. $as_echo "no" >&6; }
  30148. tst_proto_memrchr="no"
  30149. fi
  30150. rm -f conftest*
  30151. fi
  30152. #
  30153. if test "$tst_proto_memrchr" = "yes" ||
  30154. test "$tst_macro_memrchr" = "yes"; then
  30155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
  30156. $as_echo_n "checking if memrchr is compilable... " >&6; }
  30157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30158. /* end confdefs.h. */
  30159. $curl_includes_string
  30160. int main (void)
  30161. {
  30162. if(0 != memrchr(0, 0, 0))
  30163. return 1;
  30164. ;
  30165. return 0;
  30166. }
  30167. _ACEOF
  30168. if ac_fn_c_try_compile "$LINENO"; then :
  30169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30170. $as_echo "yes" >&6; }
  30171. tst_compi_memrchr="yes"
  30172. else
  30173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30174. $as_echo "no" >&6; }
  30175. tst_compi_memrchr="no"
  30176. fi
  30177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30178. fi
  30179. #
  30180. if test "$tst_compi_memrchr" = "yes"; then
  30181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
  30182. $as_echo_n "checking if memrchr usage allowed... " >&6; }
  30183. if test "x$curl_disallow_memrchr" != "xyes"; then
  30184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30185. $as_echo "yes" >&6; }
  30186. tst_allow_memrchr="yes"
  30187. else
  30188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30189. $as_echo "no" >&6; }
  30190. tst_allow_memrchr="no"
  30191. fi
  30192. fi
  30193. #
  30194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
  30195. $as_echo_n "checking if memrchr might be used... " >&6; }
  30196. if (test "$tst_proto_memrchr" = "yes" ||
  30197. test "$tst_macro_memrchr" = "yes") &&
  30198. test "$tst_compi_memrchr" = "yes" &&
  30199. test "$tst_allow_memrchr" = "yes"; then
  30200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30201. $as_echo "yes" >&6; }
  30202. cat >>confdefs.h <<_ACEOF
  30203. #define HAVE_MEMRCHR 1
  30204. _ACEOF
  30205. curl_cv_func_memrchr="yes"
  30206. else
  30207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30208. $as_echo "no" >&6; }
  30209. curl_cv_func_memrchr="no"
  30210. fi
  30211. #
  30212. tst_links_poll="unknown"
  30213. tst_proto_poll="unknown"
  30214. tst_compi_poll="unknown"
  30215. tst_works_poll="unknown"
  30216. tst_allow_poll="unknown"
  30217. #
  30218. case $host_os in
  30219. darwin*|interix*)
  30220. curl_disallow_poll="yes"
  30221. tst_compi_poll="no"
  30222. ;;
  30223. esac
  30224. #
  30225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
  30226. $as_echo_n "checking if poll can be linked... " >&6; }
  30227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30228. /* end confdefs.h. */
  30229. $curl_includes_poll
  30230. int main (void)
  30231. {
  30232. if(0 != poll(0, 0, 0))
  30233. return 1;
  30234. ;
  30235. return 0;
  30236. }
  30237. _ACEOF
  30238. if ac_fn_c_try_link "$LINENO"; then :
  30239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30240. $as_echo "yes" >&6; }
  30241. tst_links_poll="yes"
  30242. else
  30243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30244. $as_echo "no" >&6; }
  30245. tst_links_poll="no"
  30246. fi
  30247. rm -f core conftest.err conftest.$ac_objext \
  30248. conftest$ac_exeext conftest.$ac_ext
  30249. #
  30250. if test "$tst_links_poll" = "yes"; then
  30251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
  30252. $as_echo_n "checking if poll is prototyped... " >&6; }
  30253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30254. /* end confdefs.h. */
  30255. $curl_includes_poll
  30256. _ACEOF
  30257. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30258. $EGREP "poll" >/dev/null 2>&1; then :
  30259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30260. $as_echo "yes" >&6; }
  30261. tst_proto_poll="yes"
  30262. else
  30263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30264. $as_echo "no" >&6; }
  30265. tst_proto_poll="no"
  30266. fi
  30267. rm -f conftest*
  30268. fi
  30269. #
  30270. if test "$tst_proto_poll" = "yes"; then
  30271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
  30272. $as_echo_n "checking if poll is compilable... " >&6; }
  30273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30274. /* end confdefs.h. */
  30275. $curl_includes_poll
  30276. int main (void)
  30277. {
  30278. if(0 != poll(0, 0, 0))
  30279. return 1;
  30280. ;
  30281. return 0;
  30282. }
  30283. _ACEOF
  30284. if ac_fn_c_try_compile "$LINENO"; then :
  30285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30286. $as_echo "yes" >&6; }
  30287. tst_compi_poll="yes"
  30288. else
  30289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30290. $as_echo "no" >&6; }
  30291. tst_compi_poll="no"
  30292. fi
  30293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30294. fi
  30295. #
  30296. if test "x$cross_compiling" != "xyes" &&
  30297. test "$tst_compi_poll" = "yes"; then
  30298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
  30299. $as_echo_n "checking if poll seems to work... " >&6; }
  30300. if test "$cross_compiling" = yes; then :
  30301. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  30302. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30303. as_fn_error $? "cannot run test program while cross compiling
  30304. See \`config.log' for more details" "$LINENO" 5; }
  30305. else
  30306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30307. /* end confdefs.h. */
  30308. $curl_includes_stdlib
  30309. $curl_includes_poll
  30310. $curl_includes_time
  30311. int main (void)
  30312. {
  30313. /* detect the original poll() breakage */
  30314. if(0 != poll(0, 0, 10))
  30315. exit(1); /* fail */
  30316. else {
  30317. /* detect the 10.12 poll() breakage */
  30318. struct timeval before, after;
  30319. int rc;
  30320. size_t us;
  30321. gettimeofday(&before, NULL);
  30322. rc = poll(NULL, 0, 500);
  30323. gettimeofday(&after, NULL);
  30324. us = (after.tv_sec - before.tv_sec) * 1000000 +
  30325. (after.tv_usec - before.tv_usec);
  30326. if(us < 400000)
  30327. exit(1);
  30328. }
  30329. ;
  30330. return 0;
  30331. }
  30332. _ACEOF
  30333. if ac_fn_c_try_run "$LINENO"; then :
  30334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30335. $as_echo "yes" >&6; }
  30336. tst_works_poll="yes"
  30337. else
  30338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30339. $as_echo "no" >&6; }
  30340. tst_works_poll="no"
  30341. fi
  30342. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30343. conftest.$ac_objext conftest.beam conftest.$ac_ext
  30344. fi
  30345. fi
  30346. #
  30347. if test "$tst_compi_poll" = "yes" &&
  30348. test "$tst_works_poll" != "no"; then
  30349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
  30350. $as_echo_n "checking if poll usage allowed... " >&6; }
  30351. if test "x$curl_disallow_poll" != "xyes"; then
  30352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30353. $as_echo "yes" >&6; }
  30354. tst_allow_poll="yes"
  30355. else
  30356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30357. $as_echo "no" >&6; }
  30358. tst_allow_poll="no"
  30359. fi
  30360. fi
  30361. #
  30362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
  30363. $as_echo_n "checking if poll might be used... " >&6; }
  30364. if test "$tst_links_poll" = "yes" &&
  30365. test "$tst_proto_poll" = "yes" &&
  30366. test "$tst_compi_poll" = "yes" &&
  30367. test "$tst_allow_poll" = "yes" &&
  30368. test "$tst_works_poll" != "no"; then
  30369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30370. $as_echo "yes" >&6; }
  30371. cat >>confdefs.h <<_ACEOF
  30372. #define HAVE_POLL 1
  30373. _ACEOF
  30374. cat >>confdefs.h <<_ACEOF
  30375. #define HAVE_POLL_FINE 1
  30376. _ACEOF
  30377. curl_cv_func_poll="yes"
  30378. else
  30379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30380. $as_echo "no" >&6; }
  30381. curl_cv_func_poll="no"
  30382. fi
  30383. #
  30384. tst_links_setsockopt="unknown"
  30385. tst_proto_setsockopt="unknown"
  30386. tst_compi_setsockopt="unknown"
  30387. tst_allow_setsockopt="unknown"
  30388. #
  30389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
  30390. $as_echo_n "checking if setsockopt can be linked... " >&6; }
  30391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30392. /* end confdefs.h. */
  30393. $curl_includes_winsock2
  30394. $curl_includes_sys_socket
  30395. int main (void)
  30396. {
  30397. if(0 != setsockopt(0, 0, 0, 0, 0))
  30398. return 1;
  30399. ;
  30400. return 0;
  30401. }
  30402. _ACEOF
  30403. if ac_fn_c_try_link "$LINENO"; then :
  30404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30405. $as_echo "yes" >&6; }
  30406. tst_links_setsockopt="yes"
  30407. else
  30408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30409. $as_echo "no" >&6; }
  30410. tst_links_setsockopt="no"
  30411. fi
  30412. rm -f core conftest.err conftest.$ac_objext \
  30413. conftest$ac_exeext conftest.$ac_ext
  30414. #
  30415. if test "$tst_links_setsockopt" = "yes"; then
  30416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
  30417. $as_echo_n "checking if setsockopt is prototyped... " >&6; }
  30418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30419. /* end confdefs.h. */
  30420. $curl_includes_winsock2
  30421. $curl_includes_sys_socket
  30422. _ACEOF
  30423. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30424. $EGREP "setsockopt" >/dev/null 2>&1; then :
  30425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30426. $as_echo "yes" >&6; }
  30427. tst_proto_setsockopt="yes"
  30428. else
  30429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30430. $as_echo "no" >&6; }
  30431. tst_proto_setsockopt="no"
  30432. fi
  30433. rm -f conftest*
  30434. fi
  30435. #
  30436. if test "$tst_proto_setsockopt" = "yes"; then
  30437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
  30438. $as_echo_n "checking if setsockopt is compilable... " >&6; }
  30439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30440. /* end confdefs.h. */
  30441. $curl_includes_winsock2
  30442. $curl_includes_sys_socket
  30443. int main (void)
  30444. {
  30445. if(0 != setsockopt(0, 0, 0, 0, 0))
  30446. return 1;
  30447. ;
  30448. return 0;
  30449. }
  30450. _ACEOF
  30451. if ac_fn_c_try_compile "$LINENO"; then :
  30452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30453. $as_echo "yes" >&6; }
  30454. tst_compi_setsockopt="yes"
  30455. else
  30456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30457. $as_echo "no" >&6; }
  30458. tst_compi_setsockopt="no"
  30459. fi
  30460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30461. fi
  30462. #
  30463. if test "$tst_compi_setsockopt" = "yes"; then
  30464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
  30465. $as_echo_n "checking if setsockopt usage allowed... " >&6; }
  30466. if test "x$curl_disallow_setsockopt" != "xyes"; then
  30467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30468. $as_echo "yes" >&6; }
  30469. tst_allow_setsockopt="yes"
  30470. else
  30471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30472. $as_echo "no" >&6; }
  30473. tst_allow_setsockopt="no"
  30474. fi
  30475. fi
  30476. #
  30477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
  30478. $as_echo_n "checking if setsockopt might be used... " >&6; }
  30479. if test "$tst_links_setsockopt" = "yes" &&
  30480. test "$tst_proto_setsockopt" = "yes" &&
  30481. test "$tst_compi_setsockopt" = "yes" &&
  30482. test "$tst_allow_setsockopt" = "yes"; then
  30483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30484. $as_echo "yes" >&6; }
  30485. cat >>confdefs.h <<_ACEOF
  30486. #define HAVE_SETSOCKOPT 1
  30487. _ACEOF
  30488. curl_cv_func_setsockopt="yes"
  30489. #
  30490. tst_compi_setsockopt_so_nonblock="unknown"
  30491. tst_allow_setsockopt_so_nonblock="unknown"
  30492. #
  30493. if test "$curl_cv_func_setsockopt" = "yes"; then
  30494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
  30495. $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
  30496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30497. /* end confdefs.h. */
  30498. $curl_includes_winsock2
  30499. $curl_includes_sys_socket
  30500. int main (void)
  30501. {
  30502. if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
  30503. return 1;
  30504. ;
  30505. return 0;
  30506. }
  30507. _ACEOF
  30508. if ac_fn_c_try_compile "$LINENO"; then :
  30509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30510. $as_echo "yes" >&6; }
  30511. tst_compi_setsockopt_so_nonblock="yes"
  30512. else
  30513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30514. $as_echo "no" >&6; }
  30515. tst_compi_setsockopt_so_nonblock="no"
  30516. fi
  30517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30518. fi
  30519. #
  30520. if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
  30521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
  30522. $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
  30523. if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
  30524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30525. $as_echo "yes" >&6; }
  30526. tst_allow_setsockopt_so_nonblock="yes"
  30527. else
  30528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30529. $as_echo "no" >&6; }
  30530. tst_allow_setsockopt_so_nonblock="no"
  30531. fi
  30532. fi
  30533. #
  30534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
  30535. $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
  30536. if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
  30537. test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
  30538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30539. $as_echo "yes" >&6; }
  30540. cat >>confdefs.h <<_ACEOF
  30541. #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
  30542. _ACEOF
  30543. curl_cv_func_setsockopt_so_nonblock="yes"
  30544. else
  30545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30546. $as_echo "no" >&6; }
  30547. curl_cv_func_setsockopt_so_nonblock="no"
  30548. fi
  30549. else
  30550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30551. $as_echo "no" >&6; }
  30552. curl_cv_func_setsockopt="no"
  30553. fi
  30554. curl_includes_signal="\
  30555. /* includes start */
  30556. #ifdef HAVE_SYS_TYPES_H
  30557. # include <sys/types.h>
  30558. #endif
  30559. #ifdef HAVE_SIGNAL_H
  30560. # include <signal.h>
  30561. #endif
  30562. /* includes end */"
  30563. for ac_header in sys/types.h signal.h
  30564. do :
  30565. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30566. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
  30567. "
  30568. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  30569. cat >>confdefs.h <<_ACEOF
  30570. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30571. _ACEOF
  30572. fi
  30573. done
  30574. #
  30575. tst_links_sigaction="unknown"
  30576. tst_proto_sigaction="unknown"
  30577. tst_compi_sigaction="unknown"
  30578. tst_allow_sigaction="unknown"
  30579. #
  30580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
  30581. $as_echo_n "checking if sigaction can be linked... " >&6; }
  30582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30583. /* end confdefs.h. */
  30584. #define sigaction innocuous_sigaction
  30585. #ifdef __STDC__
  30586. # include <limits.h>
  30587. #else
  30588. # include <assert.h>
  30589. #endif
  30590. #undef sigaction
  30591. #ifdef __cplusplus
  30592. extern "C"
  30593. #endif
  30594. char sigaction ();
  30595. #if defined __stub_sigaction || defined __stub___sigaction
  30596. choke me
  30597. #endif
  30598. int main (void)
  30599. {
  30600. return sigaction ();
  30601. ;
  30602. return 0;
  30603. }
  30604. _ACEOF
  30605. if ac_fn_c_try_link "$LINENO"; then :
  30606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30607. $as_echo "yes" >&6; }
  30608. tst_links_sigaction="yes"
  30609. else
  30610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30611. $as_echo "no" >&6; }
  30612. tst_links_sigaction="no"
  30613. fi
  30614. rm -f core conftest.err conftest.$ac_objext \
  30615. conftest$ac_exeext conftest.$ac_ext
  30616. #
  30617. if test "$tst_links_sigaction" = "yes"; then
  30618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
  30619. $as_echo_n "checking if sigaction is prototyped... " >&6; }
  30620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30621. /* end confdefs.h. */
  30622. $curl_includes_signal
  30623. _ACEOF
  30624. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30625. $EGREP "sigaction" >/dev/null 2>&1; then :
  30626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30627. $as_echo "yes" >&6; }
  30628. tst_proto_sigaction="yes"
  30629. else
  30630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30631. $as_echo "no" >&6; }
  30632. tst_proto_sigaction="no"
  30633. fi
  30634. rm -f conftest*
  30635. fi
  30636. #
  30637. if test "$tst_proto_sigaction" = "yes"; then
  30638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
  30639. $as_echo_n "checking if sigaction is compilable... " >&6; }
  30640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30641. /* end confdefs.h. */
  30642. $curl_includes_signal
  30643. int main (void)
  30644. {
  30645. if(0 != sigaction(0, 0, 0))
  30646. return 1;
  30647. ;
  30648. return 0;
  30649. }
  30650. _ACEOF
  30651. if ac_fn_c_try_compile "$LINENO"; then :
  30652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30653. $as_echo "yes" >&6; }
  30654. tst_compi_sigaction="yes"
  30655. else
  30656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30657. $as_echo "no" >&6; }
  30658. tst_compi_sigaction="no"
  30659. fi
  30660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30661. fi
  30662. #
  30663. if test "$tst_compi_sigaction" = "yes"; then
  30664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
  30665. $as_echo_n "checking if sigaction usage allowed... " >&6; }
  30666. if test "x$curl_disallow_sigaction" != "xyes"; then
  30667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30668. $as_echo "yes" >&6; }
  30669. tst_allow_sigaction="yes"
  30670. else
  30671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30672. $as_echo "no" >&6; }
  30673. tst_allow_sigaction="no"
  30674. fi
  30675. fi
  30676. #
  30677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
  30678. $as_echo_n "checking if sigaction might be used... " >&6; }
  30679. if test "$tst_links_sigaction" = "yes" &&
  30680. test "$tst_proto_sigaction" = "yes" &&
  30681. test "$tst_compi_sigaction" = "yes" &&
  30682. test "$tst_allow_sigaction" = "yes"; then
  30683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30684. $as_echo "yes" >&6; }
  30685. cat >>confdefs.h <<_ACEOF
  30686. #define HAVE_SIGACTION 1
  30687. _ACEOF
  30688. curl_cv_func_sigaction="yes"
  30689. else
  30690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30691. $as_echo "no" >&6; }
  30692. curl_cv_func_sigaction="no"
  30693. fi
  30694. #
  30695. tst_links_siginterrupt="unknown"
  30696. tst_proto_siginterrupt="unknown"
  30697. tst_compi_siginterrupt="unknown"
  30698. tst_allow_siginterrupt="unknown"
  30699. #
  30700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
  30701. $as_echo_n "checking if siginterrupt can be linked... " >&6; }
  30702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30703. /* end confdefs.h. */
  30704. #define siginterrupt innocuous_siginterrupt
  30705. #ifdef __STDC__
  30706. # include <limits.h>
  30707. #else
  30708. # include <assert.h>
  30709. #endif
  30710. #undef siginterrupt
  30711. #ifdef __cplusplus
  30712. extern "C"
  30713. #endif
  30714. char siginterrupt ();
  30715. #if defined __stub_siginterrupt || defined __stub___siginterrupt
  30716. choke me
  30717. #endif
  30718. int main (void)
  30719. {
  30720. return siginterrupt ();
  30721. ;
  30722. return 0;
  30723. }
  30724. _ACEOF
  30725. if ac_fn_c_try_link "$LINENO"; then :
  30726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30727. $as_echo "yes" >&6; }
  30728. tst_links_siginterrupt="yes"
  30729. else
  30730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30731. $as_echo "no" >&6; }
  30732. tst_links_siginterrupt="no"
  30733. fi
  30734. rm -f core conftest.err conftest.$ac_objext \
  30735. conftest$ac_exeext conftest.$ac_ext
  30736. #
  30737. if test "$tst_links_siginterrupt" = "yes"; then
  30738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
  30739. $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
  30740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30741. /* end confdefs.h. */
  30742. $curl_includes_signal
  30743. _ACEOF
  30744. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30745. $EGREP "siginterrupt" >/dev/null 2>&1; then :
  30746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30747. $as_echo "yes" >&6; }
  30748. tst_proto_siginterrupt="yes"
  30749. else
  30750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30751. $as_echo "no" >&6; }
  30752. tst_proto_siginterrupt="no"
  30753. fi
  30754. rm -f conftest*
  30755. fi
  30756. #
  30757. if test "$tst_proto_siginterrupt" = "yes"; then
  30758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
  30759. $as_echo_n "checking if siginterrupt is compilable... " >&6; }
  30760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30761. /* end confdefs.h. */
  30762. $curl_includes_signal
  30763. int main (void)
  30764. {
  30765. if(0 != siginterrupt(0, 0))
  30766. return 1;
  30767. ;
  30768. return 0;
  30769. }
  30770. _ACEOF
  30771. if ac_fn_c_try_compile "$LINENO"; then :
  30772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30773. $as_echo "yes" >&6; }
  30774. tst_compi_siginterrupt="yes"
  30775. else
  30776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30777. $as_echo "no" >&6; }
  30778. tst_compi_siginterrupt="no"
  30779. fi
  30780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30781. fi
  30782. #
  30783. if test "$tst_compi_siginterrupt" = "yes"; then
  30784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
  30785. $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
  30786. if test "x$curl_disallow_siginterrupt" != "xyes"; then
  30787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30788. $as_echo "yes" >&6; }
  30789. tst_allow_siginterrupt="yes"
  30790. else
  30791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30792. $as_echo "no" >&6; }
  30793. tst_allow_siginterrupt="no"
  30794. fi
  30795. fi
  30796. #
  30797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
  30798. $as_echo_n "checking if siginterrupt might be used... " >&6; }
  30799. if test "$tst_links_siginterrupt" = "yes" &&
  30800. test "$tst_proto_siginterrupt" = "yes" &&
  30801. test "$tst_compi_siginterrupt" = "yes" &&
  30802. test "$tst_allow_siginterrupt" = "yes"; then
  30803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30804. $as_echo "yes" >&6; }
  30805. cat >>confdefs.h <<_ACEOF
  30806. #define HAVE_SIGINTERRUPT 1
  30807. _ACEOF
  30808. curl_cv_func_siginterrupt="yes"
  30809. else
  30810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30811. $as_echo "no" >&6; }
  30812. curl_cv_func_siginterrupt="no"
  30813. fi
  30814. #
  30815. tst_links_signal="unknown"
  30816. tst_proto_signal="unknown"
  30817. tst_compi_signal="unknown"
  30818. tst_allow_signal="unknown"
  30819. #
  30820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
  30821. $as_echo_n "checking if signal can be linked... " >&6; }
  30822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30823. /* end confdefs.h. */
  30824. #define signal innocuous_signal
  30825. #ifdef __STDC__
  30826. # include <limits.h>
  30827. #else
  30828. # include <assert.h>
  30829. #endif
  30830. #undef signal
  30831. #ifdef __cplusplus
  30832. extern "C"
  30833. #endif
  30834. char signal ();
  30835. #if defined __stub_signal || defined __stub___signal
  30836. choke me
  30837. #endif
  30838. int main (void)
  30839. {
  30840. return signal ();
  30841. ;
  30842. return 0;
  30843. }
  30844. _ACEOF
  30845. if ac_fn_c_try_link "$LINENO"; then :
  30846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30847. $as_echo "yes" >&6; }
  30848. tst_links_signal="yes"
  30849. else
  30850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30851. $as_echo "no" >&6; }
  30852. tst_links_signal="no"
  30853. fi
  30854. rm -f core conftest.err conftest.$ac_objext \
  30855. conftest$ac_exeext conftest.$ac_ext
  30856. #
  30857. if test "$tst_links_signal" = "yes"; then
  30858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
  30859. $as_echo_n "checking if signal is prototyped... " >&6; }
  30860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30861. /* end confdefs.h. */
  30862. $curl_includes_signal
  30863. _ACEOF
  30864. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30865. $EGREP "signal" >/dev/null 2>&1; then :
  30866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30867. $as_echo "yes" >&6; }
  30868. tst_proto_signal="yes"
  30869. else
  30870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30871. $as_echo "no" >&6; }
  30872. tst_proto_signal="no"
  30873. fi
  30874. rm -f conftest*
  30875. fi
  30876. #
  30877. if test "$tst_proto_signal" = "yes"; then
  30878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
  30879. $as_echo_n "checking if signal is compilable... " >&6; }
  30880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30881. /* end confdefs.h. */
  30882. $curl_includes_signal
  30883. int main (void)
  30884. {
  30885. if(0 != signal(0, 0))
  30886. return 1;
  30887. ;
  30888. return 0;
  30889. }
  30890. _ACEOF
  30891. if ac_fn_c_try_compile "$LINENO"; then :
  30892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30893. $as_echo "yes" >&6; }
  30894. tst_compi_signal="yes"
  30895. else
  30896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30897. $as_echo "no" >&6; }
  30898. tst_compi_signal="no"
  30899. fi
  30900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30901. fi
  30902. #
  30903. if test "$tst_compi_signal" = "yes"; then
  30904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
  30905. $as_echo_n "checking if signal usage allowed... " >&6; }
  30906. if test "x$curl_disallow_signal" != "xyes"; then
  30907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30908. $as_echo "yes" >&6; }
  30909. tst_allow_signal="yes"
  30910. else
  30911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30912. $as_echo "no" >&6; }
  30913. tst_allow_signal="no"
  30914. fi
  30915. fi
  30916. #
  30917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
  30918. $as_echo_n "checking if signal might be used... " >&6; }
  30919. if test "$tst_links_signal" = "yes" &&
  30920. test "$tst_proto_signal" = "yes" &&
  30921. test "$tst_compi_signal" = "yes" &&
  30922. test "$tst_allow_signal" = "yes"; then
  30923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30924. $as_echo "yes" >&6; }
  30925. cat >>confdefs.h <<_ACEOF
  30926. #define HAVE_SIGNAL 1
  30927. _ACEOF
  30928. curl_cv_func_signal="yes"
  30929. else
  30930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30931. $as_echo "no" >&6; }
  30932. curl_cv_func_signal="no"
  30933. fi
  30934. curl_includes_setjmp="\
  30935. /* includes start */
  30936. #ifdef HAVE_SYS_TYPES_H
  30937. # include <sys/types.h>
  30938. #endif
  30939. #ifdef HAVE_SETJMP_H
  30940. # include <setjmp.h>
  30941. #endif
  30942. /* includes end */"
  30943. for ac_header in sys/types.h setjmp.h
  30944. do :
  30945. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30946. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
  30947. "
  30948. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  30949. cat >>confdefs.h <<_ACEOF
  30950. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30951. _ACEOF
  30952. fi
  30953. done
  30954. #
  30955. tst_links_sigsetjmp="unknown"
  30956. tst_macro_sigsetjmp="unknown"
  30957. tst_proto_sigsetjmp="unknown"
  30958. tst_compi_sigsetjmp="unknown"
  30959. tst_allow_sigsetjmp="unknown"
  30960. #
  30961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
  30962. $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
  30963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30964. /* end confdefs.h. */
  30965. #define sigsetjmp innocuous_sigsetjmp
  30966. #ifdef __STDC__
  30967. # include <limits.h>
  30968. #else
  30969. # include <assert.h>
  30970. #endif
  30971. #undef sigsetjmp
  30972. #ifdef __cplusplus
  30973. extern "C"
  30974. #endif
  30975. char sigsetjmp ();
  30976. #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
  30977. choke me
  30978. #endif
  30979. int main (void)
  30980. {
  30981. return sigsetjmp ();
  30982. ;
  30983. return 0;
  30984. }
  30985. _ACEOF
  30986. if ac_fn_c_try_link "$LINENO"; then :
  30987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30988. $as_echo "yes" >&6; }
  30989. tst_links_sigsetjmp="yes"
  30990. else
  30991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30992. $as_echo "no" >&6; }
  30993. tst_links_sigsetjmp="no"
  30994. fi
  30995. rm -f core conftest.err conftest.$ac_objext \
  30996. conftest$ac_exeext conftest.$ac_ext
  30997. #
  30998. if test "$tst_links_sigsetjmp" = "no"; then
  30999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
  31000. $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
  31001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31002. /* end confdefs.h. */
  31003. $curl_includes_setjmp
  31004. int main (void)
  31005. {
  31006. sigjmp_buf env;
  31007. if(0 != sigsetjmp(env, 0))
  31008. return 1;
  31009. ;
  31010. return 0;
  31011. }
  31012. _ACEOF
  31013. if ac_fn_c_try_link "$LINENO"; then :
  31014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31015. $as_echo "yes" >&6; }
  31016. tst_macro_sigsetjmp="yes"
  31017. else
  31018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31019. $as_echo "no" >&6; }
  31020. tst_macro_sigsetjmp="no"
  31021. fi
  31022. rm -f core conftest.err conftest.$ac_objext \
  31023. conftest$ac_exeext conftest.$ac_ext
  31024. fi
  31025. #
  31026. if test "$tst_links_sigsetjmp" = "yes"; then
  31027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
  31028. $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
  31029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31030. /* end confdefs.h. */
  31031. $curl_includes_setjmp
  31032. _ACEOF
  31033. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31034. $EGREP "sigsetjmp" >/dev/null 2>&1; then :
  31035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31036. $as_echo "yes" >&6; }
  31037. tst_proto_sigsetjmp="yes"
  31038. else
  31039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31040. $as_echo "no" >&6; }
  31041. tst_proto_sigsetjmp="no"
  31042. fi
  31043. rm -f conftest*
  31044. fi
  31045. #
  31046. if test "$tst_proto_sigsetjmp" = "yes" ||
  31047. test "$tst_macro_sigsetjmp" = "yes"; then
  31048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
  31049. $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
  31050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31051. /* end confdefs.h. */
  31052. $curl_includes_setjmp
  31053. int main (void)
  31054. {
  31055. sigjmp_buf env;
  31056. if(0 != sigsetjmp(env, 0))
  31057. return 1;
  31058. ;
  31059. return 0;
  31060. }
  31061. _ACEOF
  31062. if ac_fn_c_try_compile "$LINENO"; then :
  31063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31064. $as_echo "yes" >&6; }
  31065. tst_compi_sigsetjmp="yes"
  31066. else
  31067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31068. $as_echo "no" >&6; }
  31069. tst_compi_sigsetjmp="no"
  31070. fi
  31071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31072. fi
  31073. #
  31074. if test "$tst_compi_sigsetjmp" = "yes"; then
  31075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
  31076. $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
  31077. if test "x$curl_disallow_sigsetjmp" != "xyes"; then
  31078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31079. $as_echo "yes" >&6; }
  31080. tst_allow_sigsetjmp="yes"
  31081. else
  31082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31083. $as_echo "no" >&6; }
  31084. tst_allow_sigsetjmp="no"
  31085. fi
  31086. fi
  31087. #
  31088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
  31089. $as_echo_n "checking if sigsetjmp might be used... " >&6; }
  31090. if (test "$tst_proto_sigsetjmp" = "yes" ||
  31091. test "$tst_macro_sigsetjmp" = "yes") &&
  31092. test "$tst_compi_sigsetjmp" = "yes" &&
  31093. test "$tst_allow_sigsetjmp" = "yes"; then
  31094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31095. $as_echo "yes" >&6; }
  31096. cat >>confdefs.h <<_ACEOF
  31097. #define HAVE_SIGSETJMP 1
  31098. _ACEOF
  31099. curl_cv_func_sigsetjmp="yes"
  31100. else
  31101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31102. $as_echo "no" >&6; }
  31103. curl_cv_func_sigsetjmp="no"
  31104. fi
  31105. #
  31106. tst_links_socket="unknown"
  31107. tst_proto_socket="unknown"
  31108. tst_compi_socket="unknown"
  31109. tst_allow_socket="unknown"
  31110. #
  31111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  31112. $as_echo_n "checking if socket can be linked... " >&6; }
  31113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31114. /* end confdefs.h. */
  31115. $curl_includes_winsock2
  31116. $curl_includes_sys_socket
  31117. $curl_includes_socket
  31118. int main (void)
  31119. {
  31120. if(0 != socket(0, 0, 0))
  31121. return 1;
  31122. ;
  31123. return 0;
  31124. }
  31125. _ACEOF
  31126. if ac_fn_c_try_link "$LINENO"; then :
  31127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31128. $as_echo "yes" >&6; }
  31129. tst_links_socket="yes"
  31130. else
  31131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31132. $as_echo "no" >&6; }
  31133. tst_links_socket="no"
  31134. fi
  31135. rm -f core conftest.err conftest.$ac_objext \
  31136. conftest$ac_exeext conftest.$ac_ext
  31137. #
  31138. if test "$tst_links_socket" = "yes"; then
  31139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  31140. $as_echo_n "checking if socket is prototyped... " >&6; }
  31141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31142. /* end confdefs.h. */
  31143. $curl_includes_winsock2
  31144. $curl_includes_sys_socket
  31145. $curl_includes_socket
  31146. _ACEOF
  31147. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31148. $EGREP "socket" >/dev/null 2>&1; then :
  31149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31150. $as_echo "yes" >&6; }
  31151. tst_proto_socket="yes"
  31152. else
  31153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31154. $as_echo "no" >&6; }
  31155. tst_proto_socket="no"
  31156. fi
  31157. rm -f conftest*
  31158. fi
  31159. #
  31160. if test "$tst_proto_socket" = "yes"; then
  31161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  31162. $as_echo_n "checking if socket is compilable... " >&6; }
  31163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31164. /* end confdefs.h. */
  31165. $curl_includes_winsock2
  31166. $curl_includes_sys_socket
  31167. $curl_includes_socket
  31168. int main (void)
  31169. {
  31170. if(0 != socket(0, 0, 0))
  31171. return 1;
  31172. ;
  31173. return 0;
  31174. }
  31175. _ACEOF
  31176. if ac_fn_c_try_compile "$LINENO"; then :
  31177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31178. $as_echo "yes" >&6; }
  31179. tst_compi_socket="yes"
  31180. else
  31181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31182. $as_echo "no" >&6; }
  31183. tst_compi_socket="no"
  31184. fi
  31185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31186. fi
  31187. #
  31188. if test "$tst_compi_socket" = "yes"; then
  31189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  31190. $as_echo_n "checking if socket usage allowed... " >&6; }
  31191. if test "x$curl_disallow_socket" != "xyes"; then
  31192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31193. $as_echo "yes" >&6; }
  31194. tst_allow_socket="yes"
  31195. else
  31196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31197. $as_echo "no" >&6; }
  31198. tst_allow_socket="no"
  31199. fi
  31200. fi
  31201. #
  31202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  31203. $as_echo_n "checking if socket might be used... " >&6; }
  31204. if test "$tst_links_socket" = "yes" &&
  31205. test "$tst_proto_socket" = "yes" &&
  31206. test "$tst_compi_socket" = "yes" &&
  31207. test "$tst_allow_socket" = "yes"; then
  31208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31209. $as_echo "yes" >&6; }
  31210. cat >>confdefs.h <<_ACEOF
  31211. #define HAVE_SOCKET 1
  31212. _ACEOF
  31213. curl_cv_func_socket="yes"
  31214. else
  31215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31216. $as_echo "no" >&6; }
  31217. curl_cv_func_socket="no"
  31218. fi
  31219. #
  31220. tst_links_socketpair="unknown"
  31221. tst_proto_socketpair="unknown"
  31222. tst_compi_socketpair="unknown"
  31223. tst_allow_socketpair="unknown"
  31224. #
  31225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
  31226. $as_echo_n "checking if socketpair can be linked... " >&6; }
  31227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31228. /* end confdefs.h. */
  31229. #define socketpair innocuous_socketpair
  31230. #ifdef __STDC__
  31231. # include <limits.h>
  31232. #else
  31233. # include <assert.h>
  31234. #endif
  31235. #undef socketpair
  31236. #ifdef __cplusplus
  31237. extern "C"
  31238. #endif
  31239. char socketpair ();
  31240. #if defined __stub_socketpair || defined __stub___socketpair
  31241. choke me
  31242. #endif
  31243. int main (void)
  31244. {
  31245. return socketpair ();
  31246. ;
  31247. return 0;
  31248. }
  31249. _ACEOF
  31250. if ac_fn_c_try_link "$LINENO"; then :
  31251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31252. $as_echo "yes" >&6; }
  31253. tst_links_socketpair="yes"
  31254. else
  31255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31256. $as_echo "no" >&6; }
  31257. tst_links_socketpair="no"
  31258. fi
  31259. rm -f core conftest.err conftest.$ac_objext \
  31260. conftest$ac_exeext conftest.$ac_ext
  31261. #
  31262. if test "$tst_links_socketpair" = "yes"; then
  31263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
  31264. $as_echo_n "checking if socketpair is prototyped... " >&6; }
  31265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31266. /* end confdefs.h. */
  31267. $curl_includes_sys_socket
  31268. $curl_includes_socket
  31269. _ACEOF
  31270. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31271. $EGREP "socketpair" >/dev/null 2>&1; then :
  31272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31273. $as_echo "yes" >&6; }
  31274. tst_proto_socketpair="yes"
  31275. else
  31276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31277. $as_echo "no" >&6; }
  31278. tst_proto_socketpair="no"
  31279. fi
  31280. rm -f conftest*
  31281. fi
  31282. #
  31283. if test "$tst_proto_socketpair" = "yes"; then
  31284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
  31285. $as_echo_n "checking if socketpair is compilable... " >&6; }
  31286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31287. /* end confdefs.h. */
  31288. $curl_includes_sys_socket
  31289. $curl_includes_socket
  31290. int main (void)
  31291. {
  31292. int sv[2];
  31293. if(0 != socketpair(0, 0, 0, sv))
  31294. return 1;
  31295. ;
  31296. return 0;
  31297. }
  31298. _ACEOF
  31299. if ac_fn_c_try_compile "$LINENO"; then :
  31300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31301. $as_echo "yes" >&6; }
  31302. tst_compi_socketpair="yes"
  31303. else
  31304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31305. $as_echo "no" >&6; }
  31306. tst_compi_socketpair="no"
  31307. fi
  31308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31309. fi
  31310. #
  31311. if test "$tst_compi_socketpair" = "yes"; then
  31312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
  31313. $as_echo_n "checking if socketpair usage allowed... " >&6; }
  31314. if test "x$curl_disallow_socketpair" != "xyes"; then
  31315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31316. $as_echo "yes" >&6; }
  31317. tst_allow_socketpair="yes"
  31318. else
  31319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31320. $as_echo "no" >&6; }
  31321. tst_allow_socketpair="no"
  31322. fi
  31323. fi
  31324. #
  31325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
  31326. $as_echo_n "checking if socketpair might be used... " >&6; }
  31327. if test "$tst_links_socketpair" = "yes" &&
  31328. test "$tst_proto_socketpair" = "yes" &&
  31329. test "$tst_compi_socketpair" = "yes" &&
  31330. test "$tst_allow_socketpair" = "yes"; then
  31331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31332. $as_echo "yes" >&6; }
  31333. cat >>confdefs.h <<_ACEOF
  31334. #define HAVE_SOCKETPAIR 1
  31335. _ACEOF
  31336. curl_cv_func_socketpair="yes"
  31337. else
  31338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31339. $as_echo "no" >&6; }
  31340. curl_cv_func_socketpair="no"
  31341. fi
  31342. #
  31343. tst_links_strcasecmp="unknown"
  31344. tst_proto_strcasecmp="unknown"
  31345. tst_compi_strcasecmp="unknown"
  31346. tst_allow_strcasecmp="unknown"
  31347. #
  31348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  31349. $as_echo_n "checking if strcasecmp can be linked... " >&6; }
  31350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31351. /* end confdefs.h. */
  31352. #define strcasecmp innocuous_strcasecmp
  31353. #ifdef __STDC__
  31354. # include <limits.h>
  31355. #else
  31356. # include <assert.h>
  31357. #endif
  31358. #undef strcasecmp
  31359. #ifdef __cplusplus
  31360. extern "C"
  31361. #endif
  31362. char strcasecmp ();
  31363. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  31364. choke me
  31365. #endif
  31366. int main (void)
  31367. {
  31368. return strcasecmp ();
  31369. ;
  31370. return 0;
  31371. }
  31372. _ACEOF
  31373. if ac_fn_c_try_link "$LINENO"; then :
  31374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31375. $as_echo "yes" >&6; }
  31376. tst_links_strcasecmp="yes"
  31377. else
  31378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31379. $as_echo "no" >&6; }
  31380. tst_links_strcasecmp="no"
  31381. fi
  31382. rm -f core conftest.err conftest.$ac_objext \
  31383. conftest$ac_exeext conftest.$ac_ext
  31384. #
  31385. if test "$tst_links_strcasecmp" = "yes"; then
  31386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  31387. $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
  31388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31389. /* end confdefs.h. */
  31390. $curl_includes_string
  31391. _ACEOF
  31392. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31393. $EGREP "strcasecmp" >/dev/null 2>&1; then :
  31394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31395. $as_echo "yes" >&6; }
  31396. tst_proto_strcasecmp="yes"
  31397. else
  31398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31399. $as_echo "no" >&6; }
  31400. tst_proto_strcasecmp="no"
  31401. fi
  31402. rm -f conftest*
  31403. fi
  31404. #
  31405. if test "$tst_proto_strcasecmp" = "yes"; then
  31406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  31407. $as_echo_n "checking if strcasecmp is compilable... " >&6; }
  31408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31409. /* end confdefs.h. */
  31410. $curl_includes_string
  31411. int main (void)
  31412. {
  31413. if(0 != strcasecmp(0, 0))
  31414. return 1;
  31415. ;
  31416. return 0;
  31417. }
  31418. _ACEOF
  31419. if ac_fn_c_try_compile "$LINENO"; then :
  31420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31421. $as_echo "yes" >&6; }
  31422. tst_compi_strcasecmp="yes"
  31423. else
  31424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31425. $as_echo "no" >&6; }
  31426. tst_compi_strcasecmp="no"
  31427. fi
  31428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31429. fi
  31430. #
  31431. if test "$tst_compi_strcasecmp" = "yes"; then
  31432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  31433. $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
  31434. if test "x$curl_disallow_strcasecmp" != "xyes"; then
  31435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31436. $as_echo "yes" >&6; }
  31437. tst_allow_strcasecmp="yes"
  31438. else
  31439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31440. $as_echo "no" >&6; }
  31441. tst_allow_strcasecmp="no"
  31442. fi
  31443. fi
  31444. #
  31445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  31446. $as_echo_n "checking if strcasecmp might be used... " >&6; }
  31447. if test "$tst_links_strcasecmp" = "yes" &&
  31448. test "$tst_proto_strcasecmp" = "yes" &&
  31449. test "$tst_compi_strcasecmp" = "yes" &&
  31450. test "$tst_allow_strcasecmp" = "yes"; then
  31451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31452. $as_echo "yes" >&6; }
  31453. cat >>confdefs.h <<_ACEOF
  31454. #define HAVE_STRCASECMP 1
  31455. _ACEOF
  31456. curl_cv_func_strcasecmp="yes"
  31457. else
  31458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31459. $as_echo "no" >&6; }
  31460. curl_cv_func_strcasecmp="no"
  31461. fi
  31462. #
  31463. tst_links_strcmpi="unknown"
  31464. tst_proto_strcmpi="unknown"
  31465. tst_compi_strcmpi="unknown"
  31466. tst_allow_strcmpi="unknown"
  31467. #
  31468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  31469. $as_echo_n "checking if strcmpi can be linked... " >&6; }
  31470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31471. /* end confdefs.h. */
  31472. #define strcmpi innocuous_strcmpi
  31473. #ifdef __STDC__
  31474. # include <limits.h>
  31475. #else
  31476. # include <assert.h>
  31477. #endif
  31478. #undef strcmpi
  31479. #ifdef __cplusplus
  31480. extern "C"
  31481. #endif
  31482. char strcmpi ();
  31483. #if defined __stub_strcmpi || defined __stub___strcmpi
  31484. choke me
  31485. #endif
  31486. int main (void)
  31487. {
  31488. return strcmpi ();
  31489. ;
  31490. return 0;
  31491. }
  31492. _ACEOF
  31493. if ac_fn_c_try_link "$LINENO"; then :
  31494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31495. $as_echo "yes" >&6; }
  31496. tst_links_strcmpi="yes"
  31497. else
  31498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31499. $as_echo "no" >&6; }
  31500. tst_links_strcmpi="no"
  31501. fi
  31502. rm -f core conftest.err conftest.$ac_objext \
  31503. conftest$ac_exeext conftest.$ac_ext
  31504. #
  31505. if test "$tst_links_strcmpi" = "yes"; then
  31506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  31507. $as_echo_n "checking if strcmpi is prototyped... " >&6; }
  31508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31509. /* end confdefs.h. */
  31510. $curl_includes_string
  31511. _ACEOF
  31512. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31513. $EGREP "strcmpi" >/dev/null 2>&1; then :
  31514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31515. $as_echo "yes" >&6; }
  31516. tst_proto_strcmpi="yes"
  31517. else
  31518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31519. $as_echo "no" >&6; }
  31520. tst_proto_strcmpi="no"
  31521. fi
  31522. rm -f conftest*
  31523. fi
  31524. #
  31525. if test "$tst_proto_strcmpi" = "yes"; then
  31526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  31527. $as_echo_n "checking if strcmpi is compilable... " >&6; }
  31528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31529. /* end confdefs.h. */
  31530. $curl_includes_string
  31531. int main (void)
  31532. {
  31533. if(0 != strcmpi(0, 0))
  31534. return 1;
  31535. ;
  31536. return 0;
  31537. }
  31538. _ACEOF
  31539. if ac_fn_c_try_compile "$LINENO"; then :
  31540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31541. $as_echo "yes" >&6; }
  31542. tst_compi_strcmpi="yes"
  31543. else
  31544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31545. $as_echo "no" >&6; }
  31546. tst_compi_strcmpi="no"
  31547. fi
  31548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31549. fi
  31550. #
  31551. if test "$tst_compi_strcmpi" = "yes"; then
  31552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  31553. $as_echo_n "checking if strcmpi usage allowed... " >&6; }
  31554. if test "x$curl_disallow_strcmpi" != "xyes"; then
  31555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31556. $as_echo "yes" >&6; }
  31557. tst_allow_strcmpi="yes"
  31558. else
  31559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31560. $as_echo "no" >&6; }
  31561. tst_allow_strcmpi="no"
  31562. fi
  31563. fi
  31564. #
  31565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  31566. $as_echo_n "checking if strcmpi might be used... " >&6; }
  31567. if test "$tst_links_strcmpi" = "yes" &&
  31568. test "$tst_proto_strcmpi" = "yes" &&
  31569. test "$tst_compi_strcmpi" = "yes" &&
  31570. test "$tst_allow_strcmpi" = "yes"; then
  31571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31572. $as_echo "yes" >&6; }
  31573. cat >>confdefs.h <<_ACEOF
  31574. #define HAVE_STRCMPI 1
  31575. _ACEOF
  31576. curl_cv_func_strcmpi="yes"
  31577. else
  31578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31579. $as_echo "no" >&6; }
  31580. curl_cv_func_strcmpi="no"
  31581. fi
  31582. #
  31583. tst_links_strdup="unknown"
  31584. tst_proto_strdup="unknown"
  31585. tst_compi_strdup="unknown"
  31586. tst_allow_strdup="unknown"
  31587. #
  31588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  31589. $as_echo_n "checking if strdup can be linked... " >&6; }
  31590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31591. /* end confdefs.h. */
  31592. #define strdup innocuous_strdup
  31593. #ifdef __STDC__
  31594. # include <limits.h>
  31595. #else
  31596. # include <assert.h>
  31597. #endif
  31598. #undef strdup
  31599. #ifdef __cplusplus
  31600. extern "C"
  31601. #endif
  31602. char strdup ();
  31603. #if defined __stub_strdup || defined __stub___strdup
  31604. choke me
  31605. #endif
  31606. int main (void)
  31607. {
  31608. return strdup ();
  31609. ;
  31610. return 0;
  31611. }
  31612. _ACEOF
  31613. if ac_fn_c_try_link "$LINENO"; then :
  31614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31615. $as_echo "yes" >&6; }
  31616. tst_links_strdup="yes"
  31617. else
  31618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31619. $as_echo "no" >&6; }
  31620. tst_links_strdup="no"
  31621. fi
  31622. rm -f core conftest.err conftest.$ac_objext \
  31623. conftest$ac_exeext conftest.$ac_ext
  31624. #
  31625. if test "$tst_links_strdup" = "yes"; then
  31626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  31627. $as_echo_n "checking if strdup is prototyped... " >&6; }
  31628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31629. /* end confdefs.h. */
  31630. $curl_includes_string
  31631. _ACEOF
  31632. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31633. $EGREP "strdup" >/dev/null 2>&1; then :
  31634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31635. $as_echo "yes" >&6; }
  31636. tst_proto_strdup="yes"
  31637. else
  31638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31639. $as_echo "no" >&6; }
  31640. tst_proto_strdup="no"
  31641. fi
  31642. rm -f conftest*
  31643. fi
  31644. #
  31645. if test "$tst_proto_strdup" = "yes"; then
  31646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  31647. $as_echo_n "checking if strdup is compilable... " >&6; }
  31648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31649. /* end confdefs.h. */
  31650. $curl_includes_string
  31651. int main (void)
  31652. {
  31653. if(0 != strdup(0))
  31654. return 1;
  31655. ;
  31656. return 0;
  31657. }
  31658. _ACEOF
  31659. if ac_fn_c_try_compile "$LINENO"; then :
  31660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31661. $as_echo "yes" >&6; }
  31662. tst_compi_strdup="yes"
  31663. else
  31664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31665. $as_echo "no" >&6; }
  31666. tst_compi_strdup="no"
  31667. fi
  31668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31669. fi
  31670. #
  31671. if test "$tst_compi_strdup" = "yes"; then
  31672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  31673. $as_echo_n "checking if strdup usage allowed... " >&6; }
  31674. if test "x$curl_disallow_strdup" != "xyes"; then
  31675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31676. $as_echo "yes" >&6; }
  31677. tst_allow_strdup="yes"
  31678. else
  31679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31680. $as_echo "no" >&6; }
  31681. tst_allow_strdup="no"
  31682. fi
  31683. fi
  31684. #
  31685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  31686. $as_echo_n "checking if strdup might be used... " >&6; }
  31687. if test "$tst_links_strdup" = "yes" &&
  31688. test "$tst_proto_strdup" = "yes" &&
  31689. test "$tst_compi_strdup" = "yes" &&
  31690. test "$tst_allow_strdup" = "yes"; then
  31691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31692. $as_echo "yes" >&6; }
  31693. cat >>confdefs.h <<_ACEOF
  31694. #define HAVE_STRDUP 1
  31695. _ACEOF
  31696. curl_cv_func_strdup="yes"
  31697. else
  31698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31699. $as_echo "no" >&6; }
  31700. curl_cv_func_strdup="no"
  31701. fi
  31702. #
  31703. tst_links_strerror_r="unknown"
  31704. tst_proto_strerror_r="unknown"
  31705. tst_compi_strerror_r="unknown"
  31706. tst_glibc_strerror_r="unknown"
  31707. tst_posix_strerror_r="unknown"
  31708. tst_allow_strerror_r="unknown"
  31709. tst_works_glibc_strerror_r="unknown"
  31710. tst_works_posix_strerror_r="unknown"
  31711. tst_glibc_strerror_r_type_arg3="unknown"
  31712. tst_posix_strerror_r_type_arg3="unknown"
  31713. #
  31714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
  31715. $as_echo_n "checking if strerror_r can be linked... " >&6; }
  31716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31717. /* end confdefs.h. */
  31718. #define strerror_r innocuous_strerror_r
  31719. #ifdef __STDC__
  31720. # include <limits.h>
  31721. #else
  31722. # include <assert.h>
  31723. #endif
  31724. #undef strerror_r
  31725. #ifdef __cplusplus
  31726. extern "C"
  31727. #endif
  31728. char strerror_r ();
  31729. #if defined __stub_strerror_r || defined __stub___strerror_r
  31730. choke me
  31731. #endif
  31732. int main (void)
  31733. {
  31734. return strerror_r ();
  31735. ;
  31736. return 0;
  31737. }
  31738. _ACEOF
  31739. if ac_fn_c_try_link "$LINENO"; then :
  31740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31741. $as_echo "yes" >&6; }
  31742. tst_links_strerror_r="yes"
  31743. else
  31744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31745. $as_echo "no" >&6; }
  31746. tst_links_strerror_r="no"
  31747. fi
  31748. rm -f core conftest.err conftest.$ac_objext \
  31749. conftest$ac_exeext conftest.$ac_ext
  31750. #
  31751. if test "$tst_links_strerror_r" = "yes"; then
  31752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
  31753. $as_echo_n "checking if strerror_r is prototyped... " >&6; }
  31754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31755. /* end confdefs.h. */
  31756. $curl_includes_string
  31757. _ACEOF
  31758. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31759. $EGREP "strerror_r" >/dev/null 2>&1; then :
  31760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31761. $as_echo "yes" >&6; }
  31762. tst_proto_strerror_r="yes"
  31763. else
  31764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31765. $as_echo "no" >&6; }
  31766. tst_proto_strerror_r="no"
  31767. fi
  31768. rm -f conftest*
  31769. fi
  31770. #
  31771. if test "$tst_proto_strerror_r" = "yes"; then
  31772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
  31773. $as_echo_n "checking if strerror_r is compilable... " >&6; }
  31774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31775. /* end confdefs.h. */
  31776. $curl_includes_string
  31777. int main (void)
  31778. {
  31779. if(0 != strerror_r(0, 0, 0))
  31780. return 1;
  31781. ;
  31782. return 0;
  31783. }
  31784. _ACEOF
  31785. if ac_fn_c_try_compile "$LINENO"; then :
  31786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31787. $as_echo "yes" >&6; }
  31788. tst_compi_strerror_r="yes"
  31789. else
  31790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31791. $as_echo "no" >&6; }
  31792. tst_compi_strerror_r="no"
  31793. fi
  31794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31795. fi
  31796. #
  31797. if test "$tst_compi_strerror_r" = "yes"; then
  31798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
  31799. $as_echo_n "checking if strerror_r is glibc like... " >&6; }
  31800. tst_glibc_strerror_r_type_arg3="unknown"
  31801. for arg3 in 'size_t' 'int' 'unsigned int'; do
  31802. if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
  31803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31804. /* end confdefs.h. */
  31805. $curl_includes_string
  31806. char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
  31807. int main (void)
  31808. {
  31809. if(0 != strerror_r(0, 0, 0))
  31810. return 1;
  31811. ;
  31812. return 0;
  31813. }
  31814. _ACEOF
  31815. if ac_fn_c_try_compile "$LINENO"; then :
  31816. tst_glibc_strerror_r_type_arg3="$arg3"
  31817. fi
  31818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31819. fi
  31820. done
  31821. case "$tst_glibc_strerror_r_type_arg3" in
  31822. unknown)
  31823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31824. $as_echo "no" >&6; }
  31825. tst_glibc_strerror_r="no"
  31826. ;;
  31827. *)
  31828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31829. $as_echo "yes" >&6; }
  31830. tst_glibc_strerror_r="yes"
  31831. ;;
  31832. esac
  31833. fi
  31834. #
  31835. if test "x$cross_compiling" != "xyes" &&
  31836. test "$tst_glibc_strerror_r" = "yes"; then
  31837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  31838. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  31839. if test "$cross_compiling" = yes; then :
  31840. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31842. as_fn_error $? "cannot run test program while cross compiling
  31843. See \`config.log' for more details" "$LINENO" 5; }
  31844. else
  31845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31846. /* end confdefs.h. */
  31847. $curl_includes_stdlib
  31848. $curl_includes_string
  31849. # include <errno.h>
  31850. int main (void)
  31851. {
  31852. char buffer[1024];
  31853. char *string = 0;
  31854. buffer[0] = '\0';
  31855. string = strerror_r(EACCES, buffer, sizeof(buffer));
  31856. if(!string)
  31857. exit(1); /* fail */
  31858. if(!string[0])
  31859. exit(1); /* fail */
  31860. else
  31861. exit(0);
  31862. ;
  31863. return 0;
  31864. }
  31865. _ACEOF
  31866. if ac_fn_c_try_run "$LINENO"; then :
  31867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31868. $as_echo "yes" >&6; }
  31869. tst_works_glibc_strerror_r="yes"
  31870. else
  31871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31872. $as_echo "no" >&6; }
  31873. tst_works_glibc_strerror_r="no"
  31874. fi
  31875. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31876. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31877. fi
  31878. fi
  31879. #
  31880. if test "$tst_compi_strerror_r" = "yes" &&
  31881. test "$tst_works_glibc_strerror_r" != "yes"; then
  31882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
  31883. $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
  31884. tst_posix_strerror_r_type_arg3="unknown"
  31885. for arg3 in 'size_t' 'int' 'unsigned int'; do
  31886. if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
  31887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31888. /* end confdefs.h. */
  31889. $curl_includes_string
  31890. int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
  31891. int main (void)
  31892. {
  31893. if(0 != strerror_r(0, 0, 0))
  31894. return 1;
  31895. ;
  31896. return 0;
  31897. }
  31898. _ACEOF
  31899. if ac_fn_c_try_compile "$LINENO"; then :
  31900. tst_posix_strerror_r_type_arg3="$arg3"
  31901. fi
  31902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31903. fi
  31904. done
  31905. case "$tst_posix_strerror_r_type_arg3" in
  31906. unknown)
  31907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31908. $as_echo "no" >&6; }
  31909. tst_posix_strerror_r="no"
  31910. ;;
  31911. *)
  31912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31913. $as_echo "yes" >&6; }
  31914. tst_posix_strerror_r="yes"
  31915. ;;
  31916. esac
  31917. fi
  31918. #
  31919. if test "x$cross_compiling" != "xyes" &&
  31920. test "$tst_posix_strerror_r" = "yes"; then
  31921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  31922. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  31923. if test "$cross_compiling" = yes; then :
  31924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31926. as_fn_error $? "cannot run test program while cross compiling
  31927. See \`config.log' for more details" "$LINENO" 5; }
  31928. else
  31929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31930. /* end confdefs.h. */
  31931. $curl_includes_stdlib
  31932. $curl_includes_string
  31933. # include <errno.h>
  31934. int main (void)
  31935. {
  31936. char buffer[1024];
  31937. int error = 1;
  31938. buffer[0] = '\0';
  31939. error = strerror_r(EACCES, buffer, sizeof(buffer));
  31940. if(error)
  31941. exit(1); /* fail */
  31942. if(buffer[0] == '\0')
  31943. exit(1); /* fail */
  31944. else
  31945. exit(0);
  31946. ;
  31947. return 0;
  31948. }
  31949. _ACEOF
  31950. if ac_fn_c_try_run "$LINENO"; then :
  31951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31952. $as_echo "yes" >&6; }
  31953. tst_works_posix_strerror_r="yes"
  31954. else
  31955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31956. $as_echo "no" >&6; }
  31957. tst_works_posix_strerror_r="no"
  31958. fi
  31959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31961. fi
  31962. fi
  31963. #
  31964. if test "$tst_works_glibc_strerror_r" = "yes"; then
  31965. tst_posix_strerror_r="no"
  31966. fi
  31967. if test "$tst_works_posix_strerror_r" = "yes"; then
  31968. tst_glibc_strerror_r="no"
  31969. fi
  31970. if test "$tst_glibc_strerror_r" = "yes" &&
  31971. test "$tst_works_glibc_strerror_r" != "no" &&
  31972. test "$tst_posix_strerror_r" != "yes"; then
  31973. tst_allow_strerror_r="check"
  31974. fi
  31975. if test "$tst_posix_strerror_r" = "yes" &&
  31976. test "$tst_works_posix_strerror_r" != "no" &&
  31977. test "$tst_glibc_strerror_r" != "yes"; then
  31978. tst_allow_strerror_r="check"
  31979. fi
  31980. if test "$tst_allow_strerror_r" = "check"; then
  31981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
  31982. $as_echo_n "checking if strerror_r usage allowed... " >&6; }
  31983. if test "x$curl_disallow_strerror_r" != "xyes"; then
  31984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31985. $as_echo "yes" >&6; }
  31986. tst_allow_strerror_r="yes"
  31987. else
  31988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31989. $as_echo "no" >&6; }
  31990. tst_allow_strerror_r="no"
  31991. fi
  31992. fi
  31993. #
  31994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
  31995. $as_echo_n "checking if strerror_r might be used... " >&6; }
  31996. if test "$tst_links_strerror_r" = "yes" &&
  31997. test "$tst_proto_strerror_r" = "yes" &&
  31998. test "$tst_compi_strerror_r" = "yes" &&
  31999. test "$tst_allow_strerror_r" = "yes"; then
  32000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32001. $as_echo "yes" >&6; }
  32002. if test "$tst_glibc_strerror_r" = "yes"; then
  32003. cat >>confdefs.h <<_ACEOF
  32004. #define HAVE_STRERROR_R 1
  32005. _ACEOF
  32006. cat >>confdefs.h <<_ACEOF
  32007. #define HAVE_GLIBC_STRERROR_R 1
  32008. _ACEOF
  32009. cat >>confdefs.h <<_ACEOF
  32010. #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
  32011. _ACEOF
  32012. fi
  32013. if test "$tst_posix_strerror_r" = "yes"; then
  32014. cat >>confdefs.h <<_ACEOF
  32015. #define HAVE_STRERROR_R 1
  32016. _ACEOF
  32017. cat >>confdefs.h <<_ACEOF
  32018. #define HAVE_POSIX_STRERROR_R 1
  32019. _ACEOF
  32020. cat >>confdefs.h <<_ACEOF
  32021. #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
  32022. _ACEOF
  32023. fi
  32024. curl_cv_func_strerror_r="yes"
  32025. else
  32026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32027. $as_echo "no" >&6; }
  32028. curl_cv_func_strerror_r="no"
  32029. fi
  32030. #
  32031. if test "$tst_compi_strerror_r" = "yes" &&
  32032. test "$tst_allow_strerror_r" = "unknown"; then
  32033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
  32034. $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
  32035. fi
  32036. #
  32037. #
  32038. tst_links_stricmp="unknown"
  32039. tst_proto_stricmp="unknown"
  32040. tst_compi_stricmp="unknown"
  32041. tst_allow_stricmp="unknown"
  32042. #
  32043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  32044. $as_echo_n "checking if stricmp can be linked... " >&6; }
  32045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32046. /* end confdefs.h. */
  32047. #define stricmp innocuous_stricmp
  32048. #ifdef __STDC__
  32049. # include <limits.h>
  32050. #else
  32051. # include <assert.h>
  32052. #endif
  32053. #undef stricmp
  32054. #ifdef __cplusplus
  32055. extern "C"
  32056. #endif
  32057. char stricmp ();
  32058. #if defined __stub_stricmp || defined __stub___stricmp
  32059. choke me
  32060. #endif
  32061. int main (void)
  32062. {
  32063. return stricmp ();
  32064. ;
  32065. return 0;
  32066. }
  32067. _ACEOF
  32068. if ac_fn_c_try_link "$LINENO"; then :
  32069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32070. $as_echo "yes" >&6; }
  32071. tst_links_stricmp="yes"
  32072. else
  32073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32074. $as_echo "no" >&6; }
  32075. tst_links_stricmp="no"
  32076. fi
  32077. rm -f core conftest.err conftest.$ac_objext \
  32078. conftest$ac_exeext conftest.$ac_ext
  32079. #
  32080. if test "$tst_links_stricmp" = "yes"; then
  32081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  32082. $as_echo_n "checking if stricmp is prototyped... " >&6; }
  32083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32084. /* end confdefs.h. */
  32085. $curl_includes_string
  32086. _ACEOF
  32087. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32088. $EGREP "stricmp" >/dev/null 2>&1; then :
  32089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32090. $as_echo "yes" >&6; }
  32091. tst_proto_stricmp="yes"
  32092. else
  32093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32094. $as_echo "no" >&6; }
  32095. tst_proto_stricmp="no"
  32096. fi
  32097. rm -f conftest*
  32098. fi
  32099. #
  32100. if test "$tst_proto_stricmp" = "yes"; then
  32101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  32102. $as_echo_n "checking if stricmp is compilable... " >&6; }
  32103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32104. /* end confdefs.h. */
  32105. $curl_includes_string
  32106. int main (void)
  32107. {
  32108. if(0 != stricmp(0, 0))
  32109. return 1;
  32110. ;
  32111. return 0;
  32112. }
  32113. _ACEOF
  32114. if ac_fn_c_try_compile "$LINENO"; then :
  32115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32116. $as_echo "yes" >&6; }
  32117. tst_compi_stricmp="yes"
  32118. else
  32119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32120. $as_echo "no" >&6; }
  32121. tst_compi_stricmp="no"
  32122. fi
  32123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32124. fi
  32125. #
  32126. if test "$tst_compi_stricmp" = "yes"; then
  32127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  32128. $as_echo_n "checking if stricmp usage allowed... " >&6; }
  32129. if test "x$curl_disallow_stricmp" != "xyes"; then
  32130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32131. $as_echo "yes" >&6; }
  32132. tst_allow_stricmp="yes"
  32133. else
  32134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32135. $as_echo "no" >&6; }
  32136. tst_allow_stricmp="no"
  32137. fi
  32138. fi
  32139. #
  32140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  32141. $as_echo_n "checking if stricmp might be used... " >&6; }
  32142. if test "$tst_links_stricmp" = "yes" &&
  32143. test "$tst_proto_stricmp" = "yes" &&
  32144. test "$tst_compi_stricmp" = "yes" &&
  32145. test "$tst_allow_stricmp" = "yes"; then
  32146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32147. $as_echo "yes" >&6; }
  32148. cat >>confdefs.h <<_ACEOF
  32149. #define HAVE_STRICMP 1
  32150. _ACEOF
  32151. curl_cv_func_stricmp="yes"
  32152. else
  32153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32154. $as_echo "no" >&6; }
  32155. curl_cv_func_stricmp="no"
  32156. fi
  32157. #
  32158. tst_links_strncasecmp="unknown"
  32159. tst_proto_strncasecmp="unknown"
  32160. tst_compi_strncasecmp="unknown"
  32161. tst_allow_strncasecmp="unknown"
  32162. #
  32163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
  32164. $as_echo_n "checking if strncasecmp can be linked... " >&6; }
  32165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32166. /* end confdefs.h. */
  32167. #define strncasecmp innocuous_strncasecmp
  32168. #ifdef __STDC__
  32169. # include <limits.h>
  32170. #else
  32171. # include <assert.h>
  32172. #endif
  32173. #undef strncasecmp
  32174. #ifdef __cplusplus
  32175. extern "C"
  32176. #endif
  32177. char strncasecmp ();
  32178. #if defined __stub_strncasecmp || defined __stub___strncasecmp
  32179. choke me
  32180. #endif
  32181. int main (void)
  32182. {
  32183. return strncasecmp ();
  32184. ;
  32185. return 0;
  32186. }
  32187. _ACEOF
  32188. if ac_fn_c_try_link "$LINENO"; then :
  32189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32190. $as_echo "yes" >&6; }
  32191. tst_links_strncasecmp="yes"
  32192. else
  32193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32194. $as_echo "no" >&6; }
  32195. tst_links_strncasecmp="no"
  32196. fi
  32197. rm -f core conftest.err conftest.$ac_objext \
  32198. conftest$ac_exeext conftest.$ac_ext
  32199. #
  32200. if test "$tst_links_strncasecmp" = "yes"; then
  32201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
  32202. $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
  32203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32204. /* end confdefs.h. */
  32205. $curl_includes_string
  32206. _ACEOF
  32207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32208. $EGREP "strncasecmp" >/dev/null 2>&1; then :
  32209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32210. $as_echo "yes" >&6; }
  32211. tst_proto_strncasecmp="yes"
  32212. else
  32213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32214. $as_echo "no" >&6; }
  32215. tst_proto_strncasecmp="no"
  32216. fi
  32217. rm -f conftest*
  32218. fi
  32219. #
  32220. if test "$tst_proto_strncasecmp" = "yes"; then
  32221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
  32222. $as_echo_n "checking if strncasecmp is compilable... " >&6; }
  32223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32224. /* end confdefs.h. */
  32225. $curl_includes_string
  32226. int main (void)
  32227. {
  32228. if(0 != strncasecmp(0, 0, 0))
  32229. return 1;
  32230. ;
  32231. return 0;
  32232. }
  32233. _ACEOF
  32234. if ac_fn_c_try_compile "$LINENO"; then :
  32235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32236. $as_echo "yes" >&6; }
  32237. tst_compi_strncasecmp="yes"
  32238. else
  32239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32240. $as_echo "no" >&6; }
  32241. tst_compi_strncasecmp="no"
  32242. fi
  32243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32244. fi
  32245. #
  32246. if test "$tst_compi_strncasecmp" = "yes"; then
  32247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
  32248. $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
  32249. if test "x$curl_disallow_strncasecmp" != "xyes"; then
  32250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32251. $as_echo "yes" >&6; }
  32252. tst_allow_strncasecmp="yes"
  32253. else
  32254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32255. $as_echo "no" >&6; }
  32256. tst_allow_strncasecmp="no"
  32257. fi
  32258. fi
  32259. #
  32260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
  32261. $as_echo_n "checking if strncasecmp might be used... " >&6; }
  32262. if test "$tst_links_strncasecmp" = "yes" &&
  32263. test "$tst_proto_strncasecmp" = "yes" &&
  32264. test "$tst_compi_strncasecmp" = "yes" &&
  32265. test "$tst_allow_strncasecmp" = "yes"; then
  32266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32267. $as_echo "yes" >&6; }
  32268. cat >>confdefs.h <<_ACEOF
  32269. #define HAVE_STRNCASECMP 1
  32270. _ACEOF
  32271. curl_cv_func_strncasecmp="yes"
  32272. else
  32273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32274. $as_echo "no" >&6; }
  32275. curl_cv_func_strncasecmp="no"
  32276. fi
  32277. #
  32278. tst_links_strncmpi="unknown"
  32279. tst_proto_strncmpi="unknown"
  32280. tst_compi_strncmpi="unknown"
  32281. tst_allow_strncmpi="unknown"
  32282. #
  32283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
  32284. $as_echo_n "checking if strncmpi can be linked... " >&6; }
  32285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32286. /* end confdefs.h. */
  32287. #define strncmpi innocuous_strncmpi
  32288. #ifdef __STDC__
  32289. # include <limits.h>
  32290. #else
  32291. # include <assert.h>
  32292. #endif
  32293. #undef strncmpi
  32294. #ifdef __cplusplus
  32295. extern "C"
  32296. #endif
  32297. char strncmpi ();
  32298. #if defined __stub_strncmpi || defined __stub___strncmpi
  32299. choke me
  32300. #endif
  32301. int main (void)
  32302. {
  32303. return strncmpi ();
  32304. ;
  32305. return 0;
  32306. }
  32307. _ACEOF
  32308. if ac_fn_c_try_link "$LINENO"; then :
  32309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32310. $as_echo "yes" >&6; }
  32311. tst_links_strncmpi="yes"
  32312. else
  32313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32314. $as_echo "no" >&6; }
  32315. tst_links_strncmpi="no"
  32316. fi
  32317. rm -f core conftest.err conftest.$ac_objext \
  32318. conftest$ac_exeext conftest.$ac_ext
  32319. #
  32320. if test "$tst_links_strncmpi" = "yes"; then
  32321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
  32322. $as_echo_n "checking if strncmpi is prototyped... " >&6; }
  32323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32324. /* end confdefs.h. */
  32325. $curl_includes_string
  32326. _ACEOF
  32327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32328. $EGREP "strncmpi" >/dev/null 2>&1; then :
  32329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32330. $as_echo "yes" >&6; }
  32331. tst_proto_strncmpi="yes"
  32332. else
  32333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32334. $as_echo "no" >&6; }
  32335. tst_proto_strncmpi="no"
  32336. fi
  32337. rm -f conftest*
  32338. fi
  32339. #
  32340. if test "$tst_proto_strncmpi" = "yes"; then
  32341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
  32342. $as_echo_n "checking if strncmpi is compilable... " >&6; }
  32343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32344. /* end confdefs.h. */
  32345. $curl_includes_string
  32346. int main (void)
  32347. {
  32348. if(0 != strncmpi(0, 0))
  32349. return 1;
  32350. ;
  32351. return 0;
  32352. }
  32353. _ACEOF
  32354. if ac_fn_c_try_compile "$LINENO"; then :
  32355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32356. $as_echo "yes" >&6; }
  32357. tst_compi_strncmpi="yes"
  32358. else
  32359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32360. $as_echo "no" >&6; }
  32361. tst_compi_strncmpi="no"
  32362. fi
  32363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32364. fi
  32365. #
  32366. if test "$tst_compi_strncmpi" = "yes"; then
  32367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
  32368. $as_echo_n "checking if strncmpi usage allowed... " >&6; }
  32369. if test "x$curl_disallow_strncmpi" != "xyes"; then
  32370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32371. $as_echo "yes" >&6; }
  32372. tst_allow_strncmpi="yes"
  32373. else
  32374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32375. $as_echo "no" >&6; }
  32376. tst_allow_strncmpi="no"
  32377. fi
  32378. fi
  32379. #
  32380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
  32381. $as_echo_n "checking if strncmpi might be used... " >&6; }
  32382. if test "$tst_links_strncmpi" = "yes" &&
  32383. test "$tst_proto_strncmpi" = "yes" &&
  32384. test "$tst_compi_strncmpi" = "yes" &&
  32385. test "$tst_allow_strncmpi" = "yes"; then
  32386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32387. $as_echo "yes" >&6; }
  32388. cat >>confdefs.h <<_ACEOF
  32389. #define HAVE_STRNCMPI 1
  32390. _ACEOF
  32391. curl_cv_func_strncmpi="yes"
  32392. else
  32393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32394. $as_echo "no" >&6; }
  32395. curl_cv_func_strncmpi="no"
  32396. fi
  32397. #
  32398. tst_links_strnicmp="unknown"
  32399. tst_proto_strnicmp="unknown"
  32400. tst_compi_strnicmp="unknown"
  32401. tst_allow_strnicmp="unknown"
  32402. #
  32403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
  32404. $as_echo_n "checking if strnicmp can be linked... " >&6; }
  32405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32406. /* end confdefs.h. */
  32407. #define strnicmp innocuous_strnicmp
  32408. #ifdef __STDC__
  32409. # include <limits.h>
  32410. #else
  32411. # include <assert.h>
  32412. #endif
  32413. #undef strnicmp
  32414. #ifdef __cplusplus
  32415. extern "C"
  32416. #endif
  32417. char strnicmp ();
  32418. #if defined __stub_strnicmp || defined __stub___strnicmp
  32419. choke me
  32420. #endif
  32421. int main (void)
  32422. {
  32423. return strnicmp ();
  32424. ;
  32425. return 0;
  32426. }
  32427. _ACEOF
  32428. if ac_fn_c_try_link "$LINENO"; then :
  32429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32430. $as_echo "yes" >&6; }
  32431. tst_links_strnicmp="yes"
  32432. else
  32433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32434. $as_echo "no" >&6; }
  32435. tst_links_strnicmp="no"
  32436. fi
  32437. rm -f core conftest.err conftest.$ac_objext \
  32438. conftest$ac_exeext conftest.$ac_ext
  32439. #
  32440. if test "$tst_links_strnicmp" = "yes"; then
  32441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
  32442. $as_echo_n "checking if strnicmp is prototyped... " >&6; }
  32443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32444. /* end confdefs.h. */
  32445. $curl_includes_string
  32446. _ACEOF
  32447. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32448. $EGREP "strnicmp" >/dev/null 2>&1; then :
  32449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32450. $as_echo "yes" >&6; }
  32451. tst_proto_strnicmp="yes"
  32452. else
  32453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32454. $as_echo "no" >&6; }
  32455. tst_proto_strnicmp="no"
  32456. fi
  32457. rm -f conftest*
  32458. fi
  32459. #
  32460. if test "$tst_proto_strnicmp" = "yes"; then
  32461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
  32462. $as_echo_n "checking if strnicmp is compilable... " >&6; }
  32463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32464. /* end confdefs.h. */
  32465. $curl_includes_string
  32466. int main (void)
  32467. {
  32468. if(0 != strnicmp(0, 0))
  32469. return 1;
  32470. ;
  32471. return 0;
  32472. }
  32473. _ACEOF
  32474. if ac_fn_c_try_compile "$LINENO"; then :
  32475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32476. $as_echo "yes" >&6; }
  32477. tst_compi_strnicmp="yes"
  32478. else
  32479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32480. $as_echo "no" >&6; }
  32481. tst_compi_strnicmp="no"
  32482. fi
  32483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32484. fi
  32485. #
  32486. if test "$tst_compi_strnicmp" = "yes"; then
  32487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
  32488. $as_echo_n "checking if strnicmp usage allowed... " >&6; }
  32489. if test "x$curl_disallow_strnicmp" != "xyes"; then
  32490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32491. $as_echo "yes" >&6; }
  32492. tst_allow_strnicmp="yes"
  32493. else
  32494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32495. $as_echo "no" >&6; }
  32496. tst_allow_strnicmp="no"
  32497. fi
  32498. fi
  32499. #
  32500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
  32501. $as_echo_n "checking if strnicmp might be used... " >&6; }
  32502. if test "$tst_links_strnicmp" = "yes" &&
  32503. test "$tst_proto_strnicmp" = "yes" &&
  32504. test "$tst_compi_strnicmp" = "yes" &&
  32505. test "$tst_allow_strnicmp" = "yes"; then
  32506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32507. $as_echo "yes" >&6; }
  32508. cat >>confdefs.h <<_ACEOF
  32509. #define HAVE_STRNICMP 1
  32510. _ACEOF
  32511. curl_cv_func_strnicmp="yes"
  32512. else
  32513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32514. $as_echo "no" >&6; }
  32515. curl_cv_func_strnicmp="no"
  32516. fi
  32517. #
  32518. tst_links_strstr="unknown"
  32519. tst_proto_strstr="unknown"
  32520. tst_compi_strstr="unknown"
  32521. tst_allow_strstr="unknown"
  32522. #
  32523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
  32524. $as_echo_n "checking if strstr can be linked... " >&6; }
  32525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32526. /* end confdefs.h. */
  32527. #define strstr innocuous_strstr
  32528. #ifdef __STDC__
  32529. # include <limits.h>
  32530. #else
  32531. # include <assert.h>
  32532. #endif
  32533. #undef strstr
  32534. #ifdef __cplusplus
  32535. extern "C"
  32536. #endif
  32537. char strstr ();
  32538. #if defined __stub_strstr || defined __stub___strstr
  32539. choke me
  32540. #endif
  32541. int main (void)
  32542. {
  32543. return strstr ();
  32544. ;
  32545. return 0;
  32546. }
  32547. _ACEOF
  32548. if ac_fn_c_try_link "$LINENO"; then :
  32549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32550. $as_echo "yes" >&6; }
  32551. tst_links_strstr="yes"
  32552. else
  32553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32554. $as_echo "no" >&6; }
  32555. tst_links_strstr="no"
  32556. fi
  32557. rm -f core conftest.err conftest.$ac_objext \
  32558. conftest$ac_exeext conftest.$ac_ext
  32559. #
  32560. if test "$tst_links_strstr" = "yes"; then
  32561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
  32562. $as_echo_n "checking if strstr is prototyped... " >&6; }
  32563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32564. /* end confdefs.h. */
  32565. $curl_includes_string
  32566. _ACEOF
  32567. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32568. $EGREP "strstr" >/dev/null 2>&1; then :
  32569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32570. $as_echo "yes" >&6; }
  32571. tst_proto_strstr="yes"
  32572. else
  32573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32574. $as_echo "no" >&6; }
  32575. tst_proto_strstr="no"
  32576. fi
  32577. rm -f conftest*
  32578. fi
  32579. #
  32580. if test "$tst_proto_strstr" = "yes"; then
  32581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
  32582. $as_echo_n "checking if strstr is compilable... " >&6; }
  32583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32584. /* end confdefs.h. */
  32585. $curl_includes_string
  32586. int main (void)
  32587. {
  32588. if(0 != strstr(0, 0))
  32589. return 1;
  32590. ;
  32591. return 0;
  32592. }
  32593. _ACEOF
  32594. if ac_fn_c_try_compile "$LINENO"; then :
  32595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32596. $as_echo "yes" >&6; }
  32597. tst_compi_strstr="yes"
  32598. else
  32599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32600. $as_echo "no" >&6; }
  32601. tst_compi_strstr="no"
  32602. fi
  32603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32604. fi
  32605. #
  32606. if test "$tst_compi_strstr" = "yes"; then
  32607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
  32608. $as_echo_n "checking if strstr usage allowed... " >&6; }
  32609. if test "x$curl_disallow_strstr" != "xyes"; then
  32610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32611. $as_echo "yes" >&6; }
  32612. tst_allow_strstr="yes"
  32613. else
  32614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32615. $as_echo "no" >&6; }
  32616. tst_allow_strstr="no"
  32617. fi
  32618. fi
  32619. #
  32620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
  32621. $as_echo_n "checking if strstr might be used... " >&6; }
  32622. if test "$tst_links_strstr" = "yes" &&
  32623. test "$tst_proto_strstr" = "yes" &&
  32624. test "$tst_compi_strstr" = "yes" &&
  32625. test "$tst_allow_strstr" = "yes"; then
  32626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32627. $as_echo "yes" >&6; }
  32628. cat >>confdefs.h <<_ACEOF
  32629. #define HAVE_STRSTR 1
  32630. _ACEOF
  32631. curl_cv_func_strstr="yes"
  32632. else
  32633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32634. $as_echo "no" >&6; }
  32635. curl_cv_func_strstr="no"
  32636. fi
  32637. #
  32638. tst_links_strtok_r="unknown"
  32639. tst_proto_strtok_r="unknown"
  32640. tst_compi_strtok_r="unknown"
  32641. tst_allow_strtok_r="unknown"
  32642. #
  32643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
  32644. $as_echo_n "checking if strtok_r can be linked... " >&6; }
  32645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32646. /* end confdefs.h. */
  32647. #define strtok_r innocuous_strtok_r
  32648. #ifdef __STDC__
  32649. # include <limits.h>
  32650. #else
  32651. # include <assert.h>
  32652. #endif
  32653. #undef strtok_r
  32654. #ifdef __cplusplus
  32655. extern "C"
  32656. #endif
  32657. char strtok_r ();
  32658. #if defined __stub_strtok_r || defined __stub___strtok_r
  32659. choke me
  32660. #endif
  32661. int main (void)
  32662. {
  32663. return strtok_r ();
  32664. ;
  32665. return 0;
  32666. }
  32667. _ACEOF
  32668. if ac_fn_c_try_link "$LINENO"; then :
  32669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32670. $as_echo "yes" >&6; }
  32671. tst_links_strtok_r="yes"
  32672. else
  32673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32674. $as_echo "no" >&6; }
  32675. tst_links_strtok_r="no"
  32676. fi
  32677. rm -f core conftest.err conftest.$ac_objext \
  32678. conftest$ac_exeext conftest.$ac_ext
  32679. #
  32680. if test "$tst_links_strtok_r" = "yes"; then
  32681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
  32682. $as_echo_n "checking if strtok_r is prototyped... " >&6; }
  32683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32684. /* end confdefs.h. */
  32685. $curl_includes_string
  32686. _ACEOF
  32687. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32688. $EGREP "strtok_r" >/dev/null 2>&1; then :
  32689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32690. $as_echo "yes" >&6; }
  32691. tst_proto_strtok_r="yes"
  32692. else
  32693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32694. $as_echo "no" >&6; }
  32695. tst_proto_strtok_r="no"
  32696. fi
  32697. rm -f conftest*
  32698. fi
  32699. #
  32700. if test "$tst_proto_strtok_r" = "yes"; then
  32701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
  32702. $as_echo_n "checking if strtok_r is compilable... " >&6; }
  32703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32704. /* end confdefs.h. */
  32705. $curl_includes_string
  32706. int main (void)
  32707. {
  32708. if(0 != strtok_r(0, 0, 0))
  32709. return 1;
  32710. ;
  32711. return 0;
  32712. }
  32713. _ACEOF
  32714. if ac_fn_c_try_compile "$LINENO"; then :
  32715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32716. $as_echo "yes" >&6; }
  32717. tst_compi_strtok_r="yes"
  32718. else
  32719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32720. $as_echo "no" >&6; }
  32721. tst_compi_strtok_r="no"
  32722. fi
  32723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32724. fi
  32725. #
  32726. if test "$tst_compi_strtok_r" = "yes"; then
  32727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
  32728. $as_echo_n "checking if strtok_r usage allowed... " >&6; }
  32729. if test "x$curl_disallow_strtok_r" != "xyes"; then
  32730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32731. $as_echo "yes" >&6; }
  32732. tst_allow_strtok_r="yes"
  32733. else
  32734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32735. $as_echo "no" >&6; }
  32736. tst_allow_strtok_r="no"
  32737. fi
  32738. fi
  32739. #
  32740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
  32741. $as_echo_n "checking if strtok_r might be used... " >&6; }
  32742. if test "$tst_links_strtok_r" = "yes" &&
  32743. test "$tst_proto_strtok_r" = "yes" &&
  32744. test "$tst_compi_strtok_r" = "yes" &&
  32745. test "$tst_allow_strtok_r" = "yes"; then
  32746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32747. $as_echo "yes" >&6; }
  32748. cat >>confdefs.h <<_ACEOF
  32749. #define HAVE_STRTOK_R 1
  32750. _ACEOF
  32751. curl_cv_func_strtok_r="yes"
  32752. else
  32753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32754. $as_echo "no" >&6; }
  32755. curl_cv_func_strtok_r="no"
  32756. fi
  32757. #
  32758. tst_links_strtoll="unknown"
  32759. tst_proto_strtoll="unknown"
  32760. tst_compi_strtoll="unknown"
  32761. tst_allow_strtoll="unknown"
  32762. #
  32763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
  32764. $as_echo_n "checking if strtoll can be linked... " >&6; }
  32765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32766. /* end confdefs.h. */
  32767. #define strtoll innocuous_strtoll
  32768. #ifdef __STDC__
  32769. # include <limits.h>
  32770. #else
  32771. # include <assert.h>
  32772. #endif
  32773. #undef strtoll
  32774. #ifdef __cplusplus
  32775. extern "C"
  32776. #endif
  32777. char strtoll ();
  32778. #if defined __stub_strtoll || defined __stub___strtoll
  32779. choke me
  32780. #endif
  32781. int main (void)
  32782. {
  32783. return strtoll ();
  32784. ;
  32785. return 0;
  32786. }
  32787. _ACEOF
  32788. if ac_fn_c_try_link "$LINENO"; then :
  32789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32790. $as_echo "yes" >&6; }
  32791. tst_links_strtoll="yes"
  32792. else
  32793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32794. $as_echo "no" >&6; }
  32795. tst_links_strtoll="no"
  32796. fi
  32797. rm -f core conftest.err conftest.$ac_objext \
  32798. conftest$ac_exeext conftest.$ac_ext
  32799. #
  32800. if test "$tst_links_strtoll" = "yes"; then
  32801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
  32802. $as_echo_n "checking if strtoll is prototyped... " >&6; }
  32803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32804. /* end confdefs.h. */
  32805. $curl_includes_stdlib
  32806. _ACEOF
  32807. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32808. $EGREP "strtoll" >/dev/null 2>&1; then :
  32809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32810. $as_echo "yes" >&6; }
  32811. tst_proto_strtoll="yes"
  32812. else
  32813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32814. $as_echo "no" >&6; }
  32815. tst_proto_strtoll="no"
  32816. fi
  32817. rm -f conftest*
  32818. fi
  32819. #
  32820. if test "$tst_proto_strtoll" = "yes"; then
  32821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
  32822. $as_echo_n "checking if strtoll is compilable... " >&6; }
  32823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32824. /* end confdefs.h. */
  32825. $curl_includes_stdlib
  32826. int main (void)
  32827. {
  32828. if(0 != strtoll(0, 0, 0))
  32829. return 1;
  32830. ;
  32831. return 0;
  32832. }
  32833. _ACEOF
  32834. if ac_fn_c_try_compile "$LINENO"; then :
  32835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32836. $as_echo "yes" >&6; }
  32837. tst_compi_strtoll="yes"
  32838. else
  32839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32840. $as_echo "no" >&6; }
  32841. tst_compi_strtoll="no"
  32842. fi
  32843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32844. fi
  32845. #
  32846. if test "$tst_compi_strtoll" = "yes"; then
  32847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
  32848. $as_echo_n "checking if strtoll usage allowed... " >&6; }
  32849. if test "x$curl_disallow_strtoll" != "xyes"; then
  32850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32851. $as_echo "yes" >&6; }
  32852. tst_allow_strtoll="yes"
  32853. else
  32854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32855. $as_echo "no" >&6; }
  32856. tst_allow_strtoll="no"
  32857. fi
  32858. fi
  32859. #
  32860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
  32861. $as_echo_n "checking if strtoll might be used... " >&6; }
  32862. if test "$tst_links_strtoll" = "yes" &&
  32863. test "$tst_proto_strtoll" = "yes" &&
  32864. test "$tst_compi_strtoll" = "yes" &&
  32865. test "$tst_allow_strtoll" = "yes"; then
  32866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32867. $as_echo "yes" >&6; }
  32868. cat >>confdefs.h <<_ACEOF
  32869. #define HAVE_STRTOLL 1
  32870. _ACEOF
  32871. curl_cv_func_strtoll="yes"
  32872. else
  32873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32874. $as_echo "no" >&6; }
  32875. curl_cv_func_strtoll="no"
  32876. fi
  32877. curl_includes_sys_uio="\
  32878. /* includes start */
  32879. #ifdef HAVE_SYS_TYPES_H
  32880. # include <sys/types.h>
  32881. #endif
  32882. #ifdef HAVE_SYS_UIO_H
  32883. # include <sys/uio.h>
  32884. #endif
  32885. /* includes end */"
  32886. for ac_header in sys/types.h sys/uio.h
  32887. do :
  32888. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  32889. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
  32890. "
  32891. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  32892. cat >>confdefs.h <<_ACEOF
  32893. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  32894. _ACEOF
  32895. fi
  32896. done
  32897. #
  32898. tst_links_writev="unknown"
  32899. tst_proto_writev="unknown"
  32900. tst_compi_writev="unknown"
  32901. tst_allow_writev="unknown"
  32902. #
  32903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
  32904. $as_echo_n "checking if writev can be linked... " >&6; }
  32905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32906. /* end confdefs.h. */
  32907. #define writev innocuous_writev
  32908. #ifdef __STDC__
  32909. # include <limits.h>
  32910. #else
  32911. # include <assert.h>
  32912. #endif
  32913. #undef writev
  32914. #ifdef __cplusplus
  32915. extern "C"
  32916. #endif
  32917. char writev ();
  32918. #if defined __stub_writev || defined __stub___writev
  32919. choke me
  32920. #endif
  32921. int main (void)
  32922. {
  32923. return writev ();
  32924. ;
  32925. return 0;
  32926. }
  32927. _ACEOF
  32928. if ac_fn_c_try_link "$LINENO"; then :
  32929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32930. $as_echo "yes" >&6; }
  32931. tst_links_writev="yes"
  32932. else
  32933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32934. $as_echo "no" >&6; }
  32935. tst_links_writev="no"
  32936. fi
  32937. rm -f core conftest.err conftest.$ac_objext \
  32938. conftest$ac_exeext conftest.$ac_ext
  32939. #
  32940. if test "$tst_links_writev" = "yes"; then
  32941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
  32942. $as_echo_n "checking if writev is prototyped... " >&6; }
  32943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32944. /* end confdefs.h. */
  32945. $curl_includes_sys_uio
  32946. _ACEOF
  32947. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  32948. $EGREP "writev" >/dev/null 2>&1; then :
  32949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32950. $as_echo "yes" >&6; }
  32951. tst_proto_writev="yes"
  32952. else
  32953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32954. $as_echo "no" >&6; }
  32955. tst_proto_writev="no"
  32956. fi
  32957. rm -f conftest*
  32958. fi
  32959. #
  32960. if test "$tst_proto_writev" = "yes"; then
  32961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
  32962. $as_echo_n "checking if writev is compilable... " >&6; }
  32963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32964. /* end confdefs.h. */
  32965. $curl_includes_sys_uio
  32966. int main (void)
  32967. {
  32968. if(0 != writev(0, 0, 0))
  32969. return 1;
  32970. ;
  32971. return 0;
  32972. }
  32973. _ACEOF
  32974. if ac_fn_c_try_compile "$LINENO"; then :
  32975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32976. $as_echo "yes" >&6; }
  32977. tst_compi_writev="yes"
  32978. else
  32979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32980. $as_echo "no" >&6; }
  32981. tst_compi_writev="no"
  32982. fi
  32983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32984. fi
  32985. #
  32986. if test "$tst_compi_writev" = "yes"; then
  32987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
  32988. $as_echo_n "checking if writev usage allowed... " >&6; }
  32989. if test "x$curl_disallow_writev" != "xyes"; then
  32990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32991. $as_echo "yes" >&6; }
  32992. tst_allow_writev="yes"
  32993. else
  32994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32995. $as_echo "no" >&6; }
  32996. tst_allow_writev="no"
  32997. fi
  32998. fi
  32999. #
  33000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
  33001. $as_echo_n "checking if writev might be used... " >&6; }
  33002. if test "$tst_links_writev" = "yes" &&
  33003. test "$tst_proto_writev" = "yes" &&
  33004. test "$tst_compi_writev" = "yes" &&
  33005. test "$tst_allow_writev" = "yes"; then
  33006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33007. $as_echo "yes" >&6; }
  33008. cat >>confdefs.h <<_ACEOF
  33009. #define HAVE_WRITEV 1
  33010. _ACEOF
  33011. curl_cv_func_writev="yes"
  33012. else
  33013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33014. $as_echo "no" >&6; }
  33015. curl_cv_func_writev="no"
  33016. fi
  33017. case $host in
  33018. *msdosdjgpp)
  33019. ac_cv_func_pipe=no
  33020. skipcheck_pipe=yes
  33021. { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
  33022. $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  33023. ;;
  33024. esac
  33025. ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
  33026. #include <sys/types.h>
  33027. "
  33028. if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
  33029. ac_have_decl=1
  33030. else
  33031. ac_have_decl=0
  33032. fi
  33033. cat >>confdefs.h <<_ACEOF
  33034. #define HAVE_DECL_GETPWUID_R $ac_have_decl
  33035. _ACEOF
  33036. if test $ac_have_decl = 1; then :
  33037. else
  33038. $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
  33039. fi
  33040. for ac_func in fnmatch \
  33041. geteuid \
  33042. getpass_r \
  33043. getppid \
  33044. getpwuid \
  33045. getpwuid_r \
  33046. getrlimit \
  33047. gettimeofday \
  33048. if_nametoindex \
  33049. mach_absolute_time \
  33050. pipe \
  33051. setlocale \
  33052. setmode \
  33053. setrlimit \
  33054. utime \
  33055. utimes
  33056. do :
  33057. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  33058. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  33059. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  33060. cat >>confdefs.h <<_ACEOF
  33061. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  33062. _ACEOF
  33063. else
  33064. func="$ac_func"
  33065. eval skipcheck=\$skipcheck_$func
  33066. if test "x$skipcheck" != "xyes"; then
  33067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  33068. $as_echo_n "checking deeper for $func... " >&6; }
  33069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33070. /* end confdefs.h. */
  33071. int main (void)
  33072. {
  33073. $func ();
  33074. ;
  33075. return 0;
  33076. }
  33077. _ACEOF
  33078. if ac_fn_c_try_link "$LINENO"; then :
  33079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33080. $as_echo "yes" >&6; }
  33081. eval "ac_cv_func_$func=yes"
  33082. cat >>confdefs.h <<_ACEOF
  33083. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  33084. _ACEOF
  33085. else
  33086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  33087. $as_echo "but still no" >&6; }
  33088. fi
  33089. rm -f core conftest.err conftest.$ac_objext \
  33090. conftest$ac_exeext conftest.$ac_ext
  33091. fi
  33092. fi
  33093. done
  33094. if test "$ipv6" = "yes"; then
  33095. if test "$curl_cv_func_getaddrinfo" = "yes"; then
  33096. $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
  33097. IPV6_ENABLED=1
  33098. fi
  33099. fi
  33100. #
  33101. tst_method="unknown"
  33102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  33103. $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
  33104. if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
  33105. tst_method="fcntl O_NONBLOCK"
  33106. elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
  33107. tst_method="ioctl FIONBIO"
  33108. elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
  33109. tst_method="ioctlsocket FIONBIO"
  33110. elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  33111. tst_method="IoctlSocket FIONBIO"
  33112. elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
  33113. tst_method="setsockopt SO_NONBLOCK"
  33114. fi
  33115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  33116. $as_echo "$tst_method" >&6; }
  33117. if test "$tst_method" = "unknown"; then
  33118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  33119. $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  33120. fi
  33121. # Extract the first word of "perl", so it can be a program name with args.
  33122. set dummy perl; ac_word=$2
  33123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33124. $as_echo_n "checking for $ac_word... " >&6; }
  33125. if ${ac_cv_path_PERL+:} false; then :
  33126. $as_echo_n "(cached) " >&6
  33127. else
  33128. case $PERL in
  33129. [\\/]* | ?:[\\/]*)
  33130. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  33131. ;;
  33132. *)
  33133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33134. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  33135. for as_dir in $as_dummy
  33136. do
  33137. IFS=$as_save_IFS
  33138. test -z "$as_dir" && as_dir=.
  33139. for ac_exec_ext in '' $ac_executable_extensions; do
  33140. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33141. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  33142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33143. break 2
  33144. fi
  33145. done
  33146. done
  33147. IFS=$as_save_IFS
  33148. ;;
  33149. esac
  33150. fi
  33151. PERL=$ac_cv_path_PERL
  33152. if test -n "$PERL"; then
  33153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  33154. $as_echo "$PERL" >&6; }
  33155. else
  33156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33157. $as_echo "no" >&6; }
  33158. fi
  33159. for ac_prog in gnroff nroff
  33160. do
  33161. # Extract the first word of "$ac_prog", so it can be a program name with args.
  33162. set dummy $ac_prog; ac_word=$2
  33163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33164. $as_echo_n "checking for $ac_word... " >&6; }
  33165. if ${ac_cv_path_NROFF+:} false; then :
  33166. $as_echo_n "(cached) " >&6
  33167. else
  33168. case $NROFF in
  33169. [\\/]* | ?:[\\/]*)
  33170. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  33171. ;;
  33172. *)
  33173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33174. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  33175. for as_dir in $as_dummy
  33176. do
  33177. IFS=$as_save_IFS
  33178. test -z "$as_dir" && as_dir=.
  33179. for ac_exec_ext in '' $ac_executable_extensions; do
  33180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33181. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  33182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33183. break 2
  33184. fi
  33185. done
  33186. done
  33187. IFS=$as_save_IFS
  33188. ;;
  33189. esac
  33190. fi
  33191. NROFF=$ac_cv_path_NROFF
  33192. if test -n "$NROFF"; then
  33193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  33194. $as_echo "$NROFF" >&6; }
  33195. else
  33196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33197. $as_echo "no" >&6; }
  33198. fi
  33199. test -n "$NROFF" && break
  33200. done
  33201. if test -n "$NROFF"; then
  33202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
  33203. $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
  33204. MANOPT="-man"
  33205. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  33206. if test -z "$mancheck"; then
  33207. MANOPT="-mandoc"
  33208. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  33209. if test -z "$mancheck"; then
  33210. MANOPT=""
  33211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  33212. $as_echo "failed" >&6; }
  33213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
  33214. $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  33215. else
  33216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  33217. $as_echo "$MANOPT" >&6; }
  33218. fi
  33219. else
  33220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  33221. $as_echo "$MANOPT" >&6; }
  33222. fi
  33223. fi
  33224. if test -z "$MANOPT"
  33225. then
  33226. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
  33227. $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
  33228. USE_MANUAL="no";
  33229. fi
  33230. if test "$USE_MANUAL" = "1"; then
  33231. $as_echo "#define USE_MANUAL 1" >>confdefs.h
  33232. curl_manual_msg="enabled"
  33233. fi
  33234. if test x"$USE_MANUAL" = x1; then
  33235. USE_MANUAL_TRUE=
  33236. USE_MANUAL_FALSE='#'
  33237. else
  33238. USE_MANUAL_TRUE='#'
  33239. USE_MANUAL_FALSE=
  33240. fi
  33241. #
  33242. if test "$want_ares" = "yes"; then
  33243. clean_CPPFLAGS="$CPPFLAGS"
  33244. clean_LDFLAGS="$LDFLAGS"
  33245. clean_LIBS="$LIBS"
  33246. embedded_ares="unknown"
  33247. configure_runpath=`pwd`
  33248. embedded_ares_builddir="$configure_runpath/ares"
  33249. if test -n "$want_ares_path"; then
  33250. ARES_PCDIR="$want_ares_path/lib/pkgconfig"
  33251. if test -n "$PKG_CONFIG"; then
  33252. PKGCONFIG="$PKG_CONFIG"
  33253. else
  33254. if test -n "$ac_tool_prefix"; then
  33255. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  33256. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  33257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33258. $as_echo_n "checking for $ac_word... " >&6; }
  33259. if ${ac_cv_path_PKGCONFIG+:} false; then :
  33260. $as_echo_n "(cached) " >&6
  33261. else
  33262. case $PKGCONFIG in
  33263. [\\/]* | ?:[\\/]*)
  33264. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  33265. ;;
  33266. *)
  33267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33268. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  33269. for as_dir in $as_dummy
  33270. do
  33271. IFS=$as_save_IFS
  33272. test -z "$as_dir" && as_dir=.
  33273. for ac_exec_ext in '' $ac_executable_extensions; do
  33274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33275. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  33276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33277. break 2
  33278. fi
  33279. done
  33280. done
  33281. IFS=$as_save_IFS
  33282. ;;
  33283. esac
  33284. fi
  33285. PKGCONFIG=$ac_cv_path_PKGCONFIG
  33286. if test -n "$PKGCONFIG"; then
  33287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  33288. $as_echo "$PKGCONFIG" >&6; }
  33289. else
  33290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33291. $as_echo "no" >&6; }
  33292. fi
  33293. fi
  33294. if test -z "$ac_cv_path_PKGCONFIG"; then
  33295. ac_pt_PKGCONFIG=$PKGCONFIG
  33296. # Extract the first word of "pkg-config", so it can be a program name with args.
  33297. set dummy pkg-config; ac_word=$2
  33298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33299. $as_echo_n "checking for $ac_word... " >&6; }
  33300. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  33301. $as_echo_n "(cached) " >&6
  33302. else
  33303. case $ac_pt_PKGCONFIG in
  33304. [\\/]* | ?:[\\/]*)
  33305. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  33306. ;;
  33307. *)
  33308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33309. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  33310. for as_dir in $as_dummy
  33311. do
  33312. IFS=$as_save_IFS
  33313. test -z "$as_dir" && as_dir=.
  33314. for ac_exec_ext in '' $ac_executable_extensions; do
  33315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33316. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  33317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33318. break 2
  33319. fi
  33320. done
  33321. done
  33322. IFS=$as_save_IFS
  33323. ;;
  33324. esac
  33325. fi
  33326. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  33327. if test -n "$ac_pt_PKGCONFIG"; then
  33328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  33329. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  33330. else
  33331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33332. $as_echo "no" >&6; }
  33333. fi
  33334. if test "x$ac_pt_PKGCONFIG" = x; then
  33335. PKGCONFIG="no"
  33336. else
  33337. case $cross_compiling:$ac_tool_warned in
  33338. yes:)
  33339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  33340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  33341. ac_tool_warned=yes ;;
  33342. esac
  33343. PKGCONFIG=$ac_pt_PKGCONFIG
  33344. fi
  33345. else
  33346. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  33347. fi
  33348. fi
  33349. if test "x$PKGCONFIG" != "xno"; then
  33350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  33351. $as_echo_n "checking for libcares options with pkg-config... " >&6; }
  33352. itexists=`
  33353. if test -n "$ARES_PCDIR"; then
  33354. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  33355. export PKG_CONFIG_LIBDIR
  33356. fi
  33357. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  33358. if test -z "$itexists"; then
  33359. PKGCONFIG="no"
  33360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33361. $as_echo "no" >&6; }
  33362. else
  33363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  33364. $as_echo "found" >&6; }
  33365. fi
  33366. fi
  33367. if test "$PKGCONFIG" != "no" ; then
  33368. ares_LIBS=`
  33369. if test -n "$ARES_PCDIR"; then
  33370. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  33371. export PKG_CONFIG_LIBDIR
  33372. fi
  33373. $PKGCONFIG --libs-only-l libcares`
  33374. ares_LDFLAGS=`
  33375. if test -n "$ARES_PCDIR"; then
  33376. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  33377. export PKG_CONFIG_LIBDIR
  33378. fi
  33379. $PKGCONFIG --libs-only-L libcares`
  33380. ares_CPPFLAGS=`
  33381. if test -n "$ARES_PCDIR"; then
  33382. PKG_CONFIG_LIBDIR="$ARES_PCDIR"
  33383. export PKG_CONFIG_LIBDIR
  33384. fi
  33385. $PKGCONFIG --cflags-only-I libcares`
  33386. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
  33387. $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
  33388. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
  33389. $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  33390. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  33391. $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  33392. else
  33393. ares_CPPFLAGS="-I$want_ares_path/include"
  33394. ares_LDFLAGS="-L$want_ares_path/lib"
  33395. ares_LIBS="-lcares"
  33396. fi
  33397. else
  33398. if test -d "$srcdir/ares"; then
  33399. embedded_ares="yes"
  33400. subdirs="$subdirs ares"
  33401. ares_CPPFLAGS=""
  33402. ares_LDFLAGS="-L$embedded_ares_builddir"
  33403. ares_LIBS="-lcares"
  33404. else
  33405. if test -n "$PKG_CONFIG"; then
  33406. PKGCONFIG="$PKG_CONFIG"
  33407. else
  33408. if test -n "$ac_tool_prefix"; then
  33409. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  33410. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  33411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33412. $as_echo_n "checking for $ac_word... " >&6; }
  33413. if ${ac_cv_path_PKGCONFIG+:} false; then :
  33414. $as_echo_n "(cached) " >&6
  33415. else
  33416. case $PKGCONFIG in
  33417. [\\/]* | ?:[\\/]*)
  33418. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  33419. ;;
  33420. *)
  33421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33422. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  33423. for as_dir in $as_dummy
  33424. do
  33425. IFS=$as_save_IFS
  33426. test -z "$as_dir" && as_dir=.
  33427. for ac_exec_ext in '' $ac_executable_extensions; do
  33428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33429. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  33430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33431. break 2
  33432. fi
  33433. done
  33434. done
  33435. IFS=$as_save_IFS
  33436. ;;
  33437. esac
  33438. fi
  33439. PKGCONFIG=$ac_cv_path_PKGCONFIG
  33440. if test -n "$PKGCONFIG"; then
  33441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  33442. $as_echo "$PKGCONFIG" >&6; }
  33443. else
  33444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33445. $as_echo "no" >&6; }
  33446. fi
  33447. fi
  33448. if test -z "$ac_cv_path_PKGCONFIG"; then
  33449. ac_pt_PKGCONFIG=$PKGCONFIG
  33450. # Extract the first word of "pkg-config", so it can be a program name with args.
  33451. set dummy pkg-config; ac_word=$2
  33452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  33453. $as_echo_n "checking for $ac_word... " >&6; }
  33454. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  33455. $as_echo_n "(cached) " >&6
  33456. else
  33457. case $ac_pt_PKGCONFIG in
  33458. [\\/]* | ?:[\\/]*)
  33459. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  33460. ;;
  33461. *)
  33462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33463. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  33464. for as_dir in $as_dummy
  33465. do
  33466. IFS=$as_save_IFS
  33467. test -z "$as_dir" && as_dir=.
  33468. for ac_exec_ext in '' $ac_executable_extensions; do
  33469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  33470. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  33471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  33472. break 2
  33473. fi
  33474. done
  33475. done
  33476. IFS=$as_save_IFS
  33477. ;;
  33478. esac
  33479. fi
  33480. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  33481. if test -n "$ac_pt_PKGCONFIG"; then
  33482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  33483. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  33484. else
  33485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33486. $as_echo "no" >&6; }
  33487. fi
  33488. if test "x$ac_pt_PKGCONFIG" = x; then
  33489. PKGCONFIG="no"
  33490. else
  33491. case $cross_compiling:$ac_tool_warned in
  33492. yes:)
  33493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  33494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  33495. ac_tool_warned=yes ;;
  33496. esac
  33497. PKGCONFIG=$ac_pt_PKGCONFIG
  33498. fi
  33499. else
  33500. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  33501. fi
  33502. fi
  33503. if test "x$PKGCONFIG" != "xno"; then
  33504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
  33505. $as_echo_n "checking for libcares options with pkg-config... " >&6; }
  33506. itexists=`
  33507. if test -n ""; then
  33508. PKG_CONFIG_LIBDIR=""
  33509. export PKG_CONFIG_LIBDIR
  33510. fi
  33511. $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
  33512. if test -z "$itexists"; then
  33513. PKGCONFIG="no"
  33514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33515. $as_echo "no" >&6; }
  33516. else
  33517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  33518. $as_echo "found" >&6; }
  33519. fi
  33520. fi
  33521. if test "$PKGCONFIG" != "no" ; then
  33522. ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
  33523. ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
  33524. ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
  33525. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
  33526. $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
  33527. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
  33528. $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
  33529. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
  33530. $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
  33531. else
  33532. ares_CPPFLAGS=""
  33533. ares_LDFLAGS=""
  33534. ares_LIBS="-lcares"
  33535. fi
  33536. fi
  33537. fi
  33538. #
  33539. CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
  33540. LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
  33541. LIBS="$ares_LIBS $clean_LIBS"
  33542. #
  33543. if test "$embedded_ares" != "yes"; then
  33544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
  33545. $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
  33546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33547. /* end confdefs.h. */
  33548. #include <ares.h>
  33549. /* set of dummy functions in case c-ares was built with debug */
  33550. void curl_dofree() { }
  33551. void curl_sclose() { }
  33552. void curl_domalloc() { }
  33553. void curl_docalloc() { }
  33554. void curl_socket() { }
  33555. int main (void)
  33556. {
  33557. ares_channel channel;
  33558. ares_cancel(channel); /* added in 1.2.0 */
  33559. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  33560. ares_dup(&channel, channel); /* added in 1.6.0 */
  33561. ;
  33562. return 0;
  33563. }
  33564. _ACEOF
  33565. if ac_fn_c_try_link "$LINENO"; then :
  33566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33567. $as_echo "yes" >&6; }
  33568. else
  33569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33570. $as_echo "no" >&6; }
  33571. as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
  33572. CPPFLAGS="$clean_CPPFLAGS"
  33573. LDFLAGS="$clean_LDFLAGS"
  33574. LIBS="$clean_LIBS"
  33575. # prevent usage
  33576. want_ares="no"
  33577. fi
  33578. rm -f core conftest.err conftest.$ac_objext \
  33579. conftest$ac_exeext conftest.$ac_ext
  33580. fi
  33581. if test "$want_ares" = "yes"; then
  33582. $as_echo "#define USE_ARES 1" >>confdefs.h
  33583. USE_ARES=1
  33584. curl_res_msg="c-ares"
  33585. fi
  33586. fi
  33587. if test x$embedded_ares = xyes; then
  33588. USE_EMBEDDED_ARES_TRUE=
  33589. USE_EMBEDDED_ARES_FALSE='#'
  33590. else
  33591. USE_EMBEDDED_ARES_TRUE='#'
  33592. USE_EMBEDDED_ARES_FALSE=
  33593. fi
  33594. if test "x$curl_cv_native_windows" != "xyes" &&
  33595. test "x$enable_shared" = "xyes"; then
  33596. build_libhostname=yes
  33597. else
  33598. build_libhostname=no
  33599. fi
  33600. if test x$build_libhostname = xyes; then
  33601. BUILD_LIBHOSTNAME_TRUE=
  33602. BUILD_LIBHOSTNAME_FALSE='#'
  33603. else
  33604. BUILD_LIBHOSTNAME_TRUE='#'
  33605. BUILD_LIBHOSTNAME_FALSE=
  33606. fi
  33607. if test "x$want_ares" != xyes; then
  33608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
  33609. $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
  33610. OPT_THRES="default"
  33611. # Check whether --enable-threaded_resolver was given.
  33612. if test "${enable_threaded_resolver+set}" = set; then :
  33613. enableval=$enable_threaded_resolver; OPT_THRES=$enableval
  33614. fi
  33615. case "$OPT_THRES" in
  33616. no)
  33617. want_thres="no"
  33618. ;;
  33619. *)
  33620. want_thres="yes"
  33621. ;;
  33622. esac
  33623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
  33624. $as_echo "$want_thres" >&6; }
  33625. fi
  33626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
  33627. $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
  33628. # Check whether --enable-pthreads was given.
  33629. if test "${enable_pthreads+set}" = set; then :
  33630. enableval=$enable_pthreads; case "$enableval" in
  33631. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33632. $as_echo "no" >&6; }
  33633. want_pthreads=no
  33634. ;;
  33635. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33636. $as_echo "yes" >&6; }
  33637. want_pthreads=yes
  33638. ;;
  33639. esac
  33640. else
  33641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  33642. $as_echo "auto" >&6; }
  33643. want_pthreads=auto
  33644. fi
  33645. if test "$want_pthreads" != "no"; then
  33646. if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
  33647. as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
  33648. fi
  33649. if test "$dontwant_rt" != "no"; then
  33650. if test "$want_pthreads" = "yes"; then
  33651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
  33652. $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
  33653. fi
  33654. want_pthreads=no
  33655. fi
  33656. fi
  33657. if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
  33658. want_pthreads=no
  33659. fi
  33660. if test "$want_pthreads" != "no"; then
  33661. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  33662. if test "x$ac_cv_header_pthread_h" = xyes; then :
  33663. $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
  33664. save_CFLAGS="$CFLAGS"
  33665. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  33666. if test "x$ac_cv_func_pthread_create" = xyes; then :
  33667. USE_THREADS_POSIX=1
  33668. fi
  33669. if test "$USE_THREADS_POSIX" != "1"
  33670. then
  33671. CFLAGS="$CFLAGS -pthread"
  33672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  33673. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  33674. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  33675. $as_echo_n "(cached) " >&6
  33676. else
  33677. ac_check_lib_save_LIBS=$LIBS
  33678. LIBS="-lpthread $LIBS"
  33679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33680. /* end confdefs.h. */
  33681. #ifdef __cplusplus
  33682. extern "C"
  33683. #endif
  33684. char pthread_create ();
  33685. int main (void)
  33686. {
  33687. return pthread_create ();
  33688. ;
  33689. return 0;
  33690. }
  33691. _ACEOF
  33692. if ac_fn_c_try_link "$LINENO"; then :
  33693. ac_cv_lib_pthread_pthread_create=yes
  33694. else
  33695. ac_cv_lib_pthread_pthread_create=no
  33696. fi
  33697. rm -f core conftest.err conftest.$ac_objext \
  33698. conftest$ac_exeext conftest.$ac_ext
  33699. LIBS=$ac_check_lib_save_LIBS
  33700. fi
  33701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  33702. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  33703. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  33704. USE_THREADS_POSIX=1
  33705. else
  33706. CFLAGS="$save_CFLAGS"
  33707. fi
  33708. fi
  33709. if test "x$USE_THREADS_POSIX" = "x1"
  33710. then
  33711. $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
  33712. curl_res_msg="POSIX threaded"
  33713. fi
  33714. fi
  33715. fi
  33716. if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
  33717. if test "$want_pthreads" = "yes"; then
  33718. as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
  33719. fi
  33720. if test "$curl_cv_native_windows" = "yes"; then
  33721. USE_THREADS_WIN32=1
  33722. $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
  33723. curl_res_msg="Win32 threaded"
  33724. else
  33725. as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
  33726. fi
  33727. fi
  33728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
  33729. $as_echo_n "checking whether to enable verbose strings... " >&6; }
  33730. # Check whether --enable-verbose was given.
  33731. if test "${enable_verbose+set}" = set; then :
  33732. enableval=$enable_verbose; case "$enableval" in
  33733. no)
  33734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33735. $as_echo "no" >&6; }
  33736. $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
  33737. curl_verbose_msg="no"
  33738. ;;
  33739. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33740. $as_echo "yes" >&6; }
  33741. ;;
  33742. esac
  33743. else
  33744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33745. $as_echo "yes" >&6; }
  33746. fi
  33747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
  33748. $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
  33749. # Check whether --enable-sspi was given.
  33750. if test "${enable_sspi+set}" = set; then :
  33751. enableval=$enable_sspi; case "$enableval" in
  33752. yes)
  33753. if test "$curl_cv_native_windows" = "yes"; then
  33754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33755. $as_echo "yes" >&6; }
  33756. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  33757. USE_WINDOWS_SSPI=1
  33758. curl_sspi_msg="enabled"
  33759. else
  33760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33761. $as_echo "no" >&6; }
  33762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  33763. $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  33764. fi
  33765. ;;
  33766. *)
  33767. if test "x$WINSSL_ENABLED" = "x1"; then
  33768. # --with-winssl implies --enable-sspi
  33769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33770. $as_echo "yes" >&6; }
  33771. else
  33772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33773. $as_echo "no" >&6; }
  33774. fi
  33775. ;;
  33776. esac
  33777. else
  33778. if test "x$WINSSL_ENABLED" = "x1"; then
  33779. # --with-winssl implies --enable-sspi
  33780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33781. $as_echo "yes" >&6; }
  33782. else
  33783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33784. $as_echo "no" >&6; }
  33785. fi
  33786. fi
  33787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
  33788. $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
  33789. # Check whether --enable-crypto-auth was given.
  33790. if test "${enable_crypto_auth+set}" = set; then :
  33791. enableval=$enable_crypto_auth; case "$enableval" in
  33792. no)
  33793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33794. $as_echo "no" >&6; }
  33795. $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
  33796. CURL_DISABLE_CRYPTO_AUTH=1
  33797. ;;
  33798. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33799. $as_echo "yes" >&6; }
  33800. ;;
  33801. esac
  33802. else
  33803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33804. $as_echo "yes" >&6; }
  33805. fi
  33806. OPT_NTLM_WB="default"
  33807. # Check whether --enable-ntlm-wb was given.
  33808. if test "${enable_ntlm_wb+set}" = set; then :
  33809. enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
  33810. fi
  33811. want_ntlm_wb_file="/usr/bin/ntlm_auth"
  33812. case "$OPT_NTLM_WB" in
  33813. no)
  33814. want_ntlm_wb="no"
  33815. ;;
  33816. default)
  33817. want_ntlm_wb="yes"
  33818. ;;
  33819. *)
  33820. want_ntlm_wb="yes"
  33821. if test -n "$enableval" && test "$enableval" != "yes"; then
  33822. want_ntlm_wb_file="$enableval"
  33823. fi
  33824. ;;
  33825. esac
  33826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
  33827. $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
  33828. if test "$curl_cv_native_windows" = "yes" ||
  33829. test "x$SSL_ENABLED" = "x"; then
  33830. want_ntlm_wb_file=""
  33831. want_ntlm_wb="no"
  33832. fi
  33833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
  33834. $as_echo "$want_ntlm_wb" >&6; }
  33835. if test "$want_ntlm_wb" = "yes"; then
  33836. $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
  33837. cat >>confdefs.h <<_ACEOF
  33838. #define NTLM_WB_FILE "$want_ntlm_wb_file"
  33839. _ACEOF
  33840. NTLM_WB_ENABLED=1
  33841. fi
  33842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
  33843. $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
  33844. # Check whether --enable-tls-srp was given.
  33845. if test "${enable_tls_srp+set}" = set; then :
  33846. enableval=$enable_tls_srp; case "$enableval" in
  33847. no)
  33848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33849. $as_echo "no" >&6; }
  33850. $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
  33851. want_tls_srp=no
  33852. ;;
  33853. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33854. $as_echo "yes" >&6; }
  33855. want_tls_srp=yes
  33856. ;;
  33857. esac
  33858. else
  33859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33860. $as_echo "yes" >&6; }
  33861. want_tls_srp=yes
  33862. fi
  33863. if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
  33864. $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
  33865. USE_TLS_SRP=1
  33866. curl_tls_srp_msg="enabled"
  33867. fi
  33868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
  33869. $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
  33870. # Check whether --enable-unix-sockets was given.
  33871. if test "${enable_unix_sockets+set}" = set; then :
  33872. enableval=$enable_unix_sockets; case "$enableval" in
  33873. no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33874. $as_echo "no" >&6; }
  33875. want_unix_sockets=no
  33876. ;;
  33877. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33878. $as_echo "yes" >&6; }
  33879. want_unix_sockets=yes
  33880. ;;
  33881. esac
  33882. else
  33883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
  33884. $as_echo "auto" >&6; }
  33885. want_unix_sockets=auto
  33886. fi
  33887. if test "x$want_unix_sockets" != "xno"; then
  33888. ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
  33889. #include <sys/un.h>
  33890. "
  33891. if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
  33892. $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
  33893. USE_UNIX_SOCKETS=1
  33894. curl_unix_sockets_msg="enabled"
  33895. else
  33896. if test "x$want_unix_sockets" = "xyes"; then
  33897. as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
  33898. fi
  33899. fi
  33900. fi
  33901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
  33902. $as_echo_n "checking whether to enable support for cookies... " >&6; }
  33903. # Check whether --enable-cookies was given.
  33904. if test "${enable_cookies+set}" = set; then :
  33905. enableval=$enable_cookies; case "$enableval" in
  33906. no)
  33907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33908. $as_echo "no" >&6; }
  33909. $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
  33910. ;;
  33911. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33912. $as_echo "yes" >&6; }
  33913. ;;
  33914. esac
  33915. else
  33916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33917. $as_echo "yes" >&6; }
  33918. fi
  33919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  33920. $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
  33921. CFLAG_CURL_SYMBOL_HIDING=""
  33922. doing_symbol_hiding="no"
  33923. if test x"$curl_cv_native_windows" != "xyes" &&
  33924. test "$want_symbol_hiding" = "yes" &&
  33925. test "$supports_symbol_hiding" = "yes"; then
  33926. doing_symbol_hiding="yes"
  33927. CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  33928. cat >>confdefs.h <<_ACEOF
  33929. #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
  33930. _ACEOF
  33931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  33932. $as_echo "yes" >&6; }
  33933. else
  33934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33935. $as_echo "no" >&6; }
  33936. fi
  33937. if test x$doing_symbol_hiding = xyes; then
  33938. DOING_CURL_SYMBOL_HIDING_TRUE=
  33939. DOING_CURL_SYMBOL_HIDING_FALSE='#'
  33940. else
  33941. DOING_CURL_SYMBOL_HIDING_TRUE='#'
  33942. DOING_CURL_SYMBOL_HIDING_FALSE=
  33943. fi
  33944. LIBCURL_LIBS=$LIBS
  33945. BLANK_AT_MAKETIME=
  33946. if test x$cross_compiling = xyes; then
  33947. CROSSCOMPILING_TRUE=
  33948. CROSSCOMPILING_FALSE='#'
  33949. else
  33950. CROSSCOMPILING_TRUE='#'
  33951. CROSSCOMPILING_FALSE=
  33952. fi
  33953. ENABLE_SHARED="$enable_shared"
  33954. ENABLE_STATIC="$enable_static"
  33955. if test "x$OPENSSL_ENABLED" = "x1"; then
  33956. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  33957. elif test -n "$SSL_ENABLED"; then
  33958. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  33959. fi
  33960. if test "x$IPV6_ENABLED" = "x1"; then
  33961. SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
  33962. fi
  33963. if test "x$USE_UNIX_SOCKETS" = "x1"; then
  33964. SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
  33965. fi
  33966. if test "x$HAVE_LIBZ" = "x1"; then
  33967. SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
  33968. fi
  33969. if test "x$HAVE_BROTLI" = "x1"; then
  33970. SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
  33971. fi
  33972. if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
  33973. -o "x$USE_THREADS_WIN32" = "x1"; then
  33974. SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
  33975. fi
  33976. if test "x$IDN_ENABLED" = "x1"; then
  33977. SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
  33978. fi
  33979. if test "x$USE_WINDOWS_SSPI" = "x1"; then
  33980. SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
  33981. fi
  33982. if test "x$HAVE_GSSAPI" = "x1"; then
  33983. SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
  33984. fi
  33985. if test "x$curl_psl_msg" = "xyes"; then
  33986. SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
  33987. fi
  33988. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  33989. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  33990. SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
  33991. fi
  33992. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
  33993. \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
  33994. SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
  33995. fi
  33996. if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
  33997. if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
  33998. -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
  33999. -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
  34000. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
  34001. if test "x$CURL_DISABLE_HTTP" != "x1" -a \
  34002. "x$NTLM_WB_ENABLED" = "x1"; then
  34003. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
  34004. fi
  34005. fi
  34006. fi
  34007. if test "x$USE_TLS_SRP" = "x1"; then
  34008. SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
  34009. fi
  34010. if test "x$USE_NGHTTP2" = "x1"; then
  34011. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
  34012. fi
  34013. if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
  34014. SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
  34015. fi
  34016. if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
  34017. -o "x$NSS_ENABLED" = "x1"; then
  34018. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
  34019. fi
  34020. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  34021. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
  34022. if test "x$SSL_ENABLED" = "x1"; then
  34023. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
  34024. fi
  34025. fi
  34026. if test "x$CURL_DISABLE_FTP" != "x1"; then
  34027. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
  34028. if test "x$SSL_ENABLED" = "x1"; then
  34029. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
  34030. fi
  34031. fi
  34032. if test "x$CURL_DISABLE_FILE" != "x1"; then
  34033. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
  34034. fi
  34035. if test "x$CURL_DISABLE_TELNET" != "x1"; then
  34036. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
  34037. fi
  34038. if test "x$CURL_DISABLE_LDAP" != "x1"; then
  34039. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
  34040. if test "x$CURL_DISABLE_LDAPS" != "x1"; then
  34041. if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
  34042. (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
  34043. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
  34044. fi
  34045. fi
  34046. fi
  34047. if test "x$CURL_DISABLE_DICT" != "x1"; then
  34048. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
  34049. fi
  34050. if test "x$CURL_DISABLE_TFTP" != "x1"; then
  34051. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
  34052. fi
  34053. if test "x$CURL_DISABLE_GOPHER" != "x1"; then
  34054. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
  34055. fi
  34056. if test "x$CURL_DISABLE_POP3" != "x1"; then
  34057. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
  34058. if test "x$SSL_ENABLED" = "x1"; then
  34059. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
  34060. fi
  34061. fi
  34062. if test "x$CURL_DISABLE_IMAP" != "x1"; then
  34063. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
  34064. if test "x$SSL_ENABLED" = "x1"; then
  34065. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
  34066. fi
  34067. fi
  34068. if test "x$CURL_DISABLE_SMB" != "x1" \
  34069. -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
  34070. -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
  34071. -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
  34072. -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
  34073. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
  34074. if test "x$SSL_ENABLED" = "x1"; then
  34075. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
  34076. fi
  34077. fi
  34078. if test "x$CURL_DISABLE_SMTP" != "x1"; then
  34079. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
  34080. if test "x$SSL_ENABLED" = "x1"; then
  34081. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
  34082. fi
  34083. fi
  34084. if test "x$USE_LIBSSH2" = "x1"; then
  34085. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  34086. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  34087. fi
  34088. if test "x$USE_LIBSSH" = "x1"; then
  34089. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  34090. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  34091. fi
  34092. if test "x$CURL_DISABLE_RTSP" != "x1"; then
  34093. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
  34094. fi
  34095. if test "x$USE_LIBRTMP" = "x1"; then
  34096. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
  34097. fi
  34098. SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
  34099. squeeze CFLAGS
  34100. squeeze CPPFLAGS
  34101. squeeze DEFS
  34102. squeeze LDFLAGS
  34103. squeeze LIBS
  34104. squeeze LIBCURL_LIBS
  34105. squeeze CURL_NETWORK_LIBS
  34106. squeeze CURL_NETWORK_AND_TIME_LIBS
  34107. squeeze SUPPORT_FEATURES
  34108. squeeze SUPPORT_PROTOCOLS
  34109. xc_bad_var_libs=no
  34110. for xc_word in $LIBS; do
  34111. case "$xc_word" in
  34112. -l* | --library=*)
  34113. :
  34114. ;;
  34115. *)
  34116. xc_bad_var_libs=yes
  34117. ;;
  34118. esac
  34119. done
  34120. if test $xc_bad_var_libs = yes; then
  34121. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  34122. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  34123. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  34124. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  34125. fi
  34126. xc_bad_var_ldflags=no
  34127. for xc_word in $LDFLAGS; do
  34128. case "$xc_word" in
  34129. -D*)
  34130. xc_bad_var_ldflags=yes
  34131. ;;
  34132. -U*)
  34133. xc_bad_var_ldflags=yes
  34134. ;;
  34135. -I*)
  34136. xc_bad_var_ldflags=yes
  34137. ;;
  34138. -l* | --library=*)
  34139. xc_bad_var_ldflags=yes
  34140. ;;
  34141. esac
  34142. done
  34143. if test $xc_bad_var_ldflags = yes; then
  34144. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  34145. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  34146. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  34147. for xc_word in $LDFLAGS; do
  34148. case "$xc_word" in
  34149. -D*)
  34150. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  34151. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  34152. ;;
  34153. -U*)
  34154. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  34155. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  34156. ;;
  34157. -I*)
  34158. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  34159. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  34160. ;;
  34161. -l* | --library=*)
  34162. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  34163. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  34164. ;;
  34165. esac
  34166. done
  34167. fi
  34168. xc_bad_var_cppflags=no
  34169. for xc_word in $CPPFLAGS; do
  34170. case "$xc_word" in
  34171. -rpath*)
  34172. xc_bad_var_cppflags=yes
  34173. ;;
  34174. -L* | --library-path=*)
  34175. xc_bad_var_cppflags=yes
  34176. ;;
  34177. -l* | --library=*)
  34178. xc_bad_var_cppflags=yes
  34179. ;;
  34180. esac
  34181. done
  34182. if test $xc_bad_var_cppflags = yes; then
  34183. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  34184. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  34185. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  34186. for xc_word in $CPPFLAGS; do
  34187. case "$xc_word" in
  34188. -rpath*)
  34189. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  34190. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  34191. ;;
  34192. -L* | --library-path=*)
  34193. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  34194. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  34195. ;;
  34196. -l* | --library=*)
  34197. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  34198. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  34199. ;;
  34200. esac
  34201. done
  34202. fi
  34203. xc_bad_var_cflags=no
  34204. for xc_word in $CFLAGS; do
  34205. case "$xc_word" in
  34206. -D*)
  34207. xc_bad_var_cflags=yes
  34208. ;;
  34209. -U*)
  34210. xc_bad_var_cflags=yes
  34211. ;;
  34212. -I*)
  34213. xc_bad_var_cflags=yes
  34214. ;;
  34215. -rpath*)
  34216. xc_bad_var_cflags=yes
  34217. ;;
  34218. -L* | --library-path=*)
  34219. xc_bad_var_cflags=yes
  34220. ;;
  34221. -l* | --library=*)
  34222. xc_bad_var_cflags=yes
  34223. ;;
  34224. esac
  34225. done
  34226. if test $xc_bad_var_cflags = yes; then
  34227. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  34228. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  34229. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  34230. for xc_word in $CFLAGS; do
  34231. case "$xc_word" in
  34232. -D*)
  34233. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  34234. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  34235. ;;
  34236. -U*)
  34237. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  34238. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  34239. ;;
  34240. -I*)
  34241. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  34242. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  34243. ;;
  34244. -rpath*)
  34245. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  34246. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  34247. ;;
  34248. -L* | --library-path=*)
  34249. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  34250. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  34251. ;;
  34252. -l* | --library=*)
  34253. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  34254. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  34255. ;;
  34256. esac
  34257. done
  34258. fi
  34259. if test $xc_bad_var_libs = yes ||
  34260. test $xc_bad_var_cflags = yes ||
  34261. test $xc_bad_var_ldflags = yes ||
  34262. test $xc_bad_var_cppflags = yes; then
  34263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  34264. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  34265. fi
  34266. SSL_BACKENDS=${ssl_backends}
  34267. if test "x$want_curldebug_assumed" = "xyes" &&
  34268. test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
  34269. ac_configure_args="$ac_configure_args --enable-curldebug"
  34270. fi
  34271. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
  34272. cat >confcache <<\_ACEOF
  34273. # This file is a shell script that caches the results of configure
  34274. # tests run on this system so they can be shared between configure
  34275. # scripts and configure runs, see configure's option --config-cache.
  34276. # It is not useful on other systems. If it contains results you don't
  34277. # want to keep, you may remove or edit it.
  34278. #
  34279. # config.status only pays attention to the cache file if you give it
  34280. # the --recheck option to rerun configure.
  34281. #
  34282. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  34283. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  34284. # following values.
  34285. _ACEOF
  34286. # The following way of writing the cache mishandles newlines in values,
  34287. # but we know of no workaround that is simple, portable, and efficient.
  34288. # So, we kill variables containing newlines.
  34289. # Ultrix sh set writes to stderr and can't be redirected directly,
  34290. # and sets the high bit in the cache file unless we assign to the vars.
  34291. (
  34292. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  34293. eval ac_val=\$$ac_var
  34294. case $ac_val in #(
  34295. *${as_nl}*)
  34296. case $ac_var in #(
  34297. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  34298. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  34299. esac
  34300. case $ac_var in #(
  34301. _ | IFS | as_nl) ;; #(
  34302. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  34303. *) { eval $ac_var=; unset $ac_var;} ;;
  34304. esac ;;
  34305. esac
  34306. done
  34307. (set) 2>&1 |
  34308. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  34309. *${as_nl}ac_space=\ *)
  34310. # `set' does not quote correctly, so add quotes: double-quote
  34311. # substitution turns \\\\ into \\, and sed turns \\ into \.
  34312. sed -n \
  34313. "s/'/'\\\\''/g;
  34314. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  34315. ;; #(
  34316. *)
  34317. # `set' quotes correctly as required by POSIX, so do not add quotes.
  34318. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  34319. ;;
  34320. esac |
  34321. sort
  34322. ) |
  34323. sed '
  34324. /^ac_cv_env_/b end
  34325. t clear
  34326. :clear
  34327. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  34328. t end
  34329. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  34330. :end' >>confcache
  34331. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  34332. if test -w "$cache_file"; then
  34333. if test "x$cache_file" != "x/dev/null"; then
  34334. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  34335. $as_echo "$as_me: updating cache $cache_file" >&6;}
  34336. if test ! -f "$cache_file" || test -h "$cache_file"; then
  34337. cat confcache >"$cache_file"
  34338. else
  34339. case $cache_file in #(
  34340. */* | ?:*)
  34341. mv -f confcache "$cache_file"$$ &&
  34342. mv -f "$cache_file"$$ "$cache_file" ;; #(
  34343. *)
  34344. mv -f confcache "$cache_file" ;;
  34345. esac
  34346. fi
  34347. fi
  34348. else
  34349. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  34350. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  34351. fi
  34352. fi
  34353. rm -f confcache
  34354. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  34355. # Let make expand exec_prefix.
  34356. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  34357. DEFS=-DHAVE_CONFIG_H
  34358. ac_libobjs=
  34359. ac_ltlibobjs=
  34360. U=
  34361. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  34362. # 1. Remove the extension, and $U if already installed.
  34363. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  34364. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  34365. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  34366. # will be set to the directory where LIBOBJS objects are built.
  34367. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  34368. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  34369. done
  34370. LIBOBJS=$ac_libobjs
  34371. LTLIBOBJS=$ac_ltlibobjs
  34372. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  34373. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  34374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34375. fi
  34376. if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
  34377. as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
  34378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34379. fi
  34380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  34381. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  34382. if test -n "$am_sleep_pid"; then
  34383. # Hide warnings about reused PIDs.
  34384. wait $am_sleep_pid 2>/dev/null
  34385. fi
  34386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  34387. $as_echo "done" >&6; }
  34388. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  34389. as_fn_error $? "conditional \"AMDEP\" was never defined.
  34390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34391. fi
  34392. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  34393. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  34394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34395. fi
  34396. if test -n "$EXEEXT"; then
  34397. am__EXEEXT_TRUE=
  34398. am__EXEEXT_FALSE='#'
  34399. else
  34400. am__EXEEXT_TRUE='#'
  34401. am__EXEEXT_FALSE=
  34402. fi
  34403. if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  34404. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  34405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34406. fi
  34407. if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  34408. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  34409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34410. fi
  34411. if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  34412. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  34413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34414. fi
  34415. if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
  34416. as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
  34417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34418. fi
  34419. if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
  34420. as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
  34421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34422. fi
  34423. if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
  34424. as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
  34425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34426. fi
  34427. if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
  34428. as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
  34429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34430. fi
  34431. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  34432. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  34433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34434. fi
  34435. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  34436. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  34437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34438. fi
  34439. if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
  34440. as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
  34441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34442. fi
  34443. if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
  34444. as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
  34445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34446. fi
  34447. if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
  34448. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
  34449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34450. fi
  34451. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  34452. as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
  34453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34454. fi
  34455. if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
  34456. as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
  34457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34458. fi
  34459. if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
  34460. as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
  34461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34462. fi
  34463. if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
  34464. as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
  34465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34466. fi
  34467. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  34468. as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
  34469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  34470. fi
  34471. : "${CONFIG_STATUS=./config.status}"
  34472. ac_write_fail=0
  34473. ac_clean_files_save=$ac_clean_files
  34474. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  34475. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  34476. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  34477. as_write_fail=0
  34478. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  34479. #! $SHELL
  34480. # Generated by $as_me.
  34481. # Run this file to recreate the current configuration.
  34482. # Compiler output produced by configure, useful for debugging
  34483. # configure, is in config.log if it exists.
  34484. debug=false
  34485. ac_cs_recheck=false
  34486. ac_cs_silent=false
  34487. SHELL=\${CONFIG_SHELL-$SHELL}
  34488. export SHELL
  34489. _ASEOF
  34490. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  34491. ## -------------------- ##
  34492. ## M4sh Initialization. ##
  34493. ## -------------------- ##
  34494. # Be more Bourne compatible
  34495. DUALCASE=1; export DUALCASE # for MKS sh
  34496. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  34497. emulate sh
  34498. NULLCMD=:
  34499. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  34500. # is contrary to our usage. Disable this feature.
  34501. alias -g '${1+"$@"}'='"$@"'
  34502. setopt NO_GLOB_SUBST
  34503. else
  34504. case `(set -o) 2>/dev/null` in #(
  34505. *posix*) :
  34506. set -o posix ;; #(
  34507. *) :
  34508. ;;
  34509. esac
  34510. fi
  34511. as_nl='
  34512. '
  34513. export as_nl
  34514. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  34515. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  34516. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  34517. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  34518. # Prefer a ksh shell builtin over an external printf program on Solaris,
  34519. # but without wasting forks for bash or zsh.
  34520. if test -z "$BASH_VERSION$ZSH_VERSION" \
  34521. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  34522. as_echo='print -r --'
  34523. as_echo_n='print -rn --'
  34524. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  34525. as_echo='printf %s\n'
  34526. as_echo_n='printf %s'
  34527. else
  34528. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  34529. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  34530. as_echo_n='/usr/ucb/echo -n'
  34531. else
  34532. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  34533. as_echo_n_body='eval
  34534. arg=$1;
  34535. case $arg in #(
  34536. *"$as_nl"*)
  34537. expr "X$arg" : "X\\(.*\\)$as_nl";
  34538. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  34539. esac;
  34540. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  34541. '
  34542. export as_echo_n_body
  34543. as_echo_n='sh -c $as_echo_n_body as_echo'
  34544. fi
  34545. export as_echo_body
  34546. as_echo='sh -c $as_echo_body as_echo'
  34547. fi
  34548. # IFS
  34549. # We need space, tab and new line, in precisely that order. Quoting is
  34550. # there to prevent editors from complaining about space-tab.
  34551. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  34552. # splitting by setting IFS to empty value.)
  34553. IFS=" "" $as_nl"
  34554. # Find who we are. Look in the path if we contain no directory separator.
  34555. as_myself=
  34556. case $0 in #((
  34557. *[\\/]* ) as_myself=$0 ;;
  34558. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34559. for as_dir in $PATH
  34560. do
  34561. IFS=$as_save_IFS
  34562. test -z "$as_dir" && as_dir=.
  34563. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  34564. done
  34565. IFS=$as_save_IFS
  34566. ;;
  34567. esac
  34568. # We did not find ourselves, most probably we were run as `sh COMMAND'
  34569. # in which case we are not to be found in the path.
  34570. if test "x$as_myself" = x; then
  34571. as_myself=$0
  34572. fi
  34573. if test ! -f "$as_myself"; then
  34574. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  34575. exit 1
  34576. fi
  34577. # Unset variables that we do not need and which cause bugs (e.g. in
  34578. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  34579. # suppresses any "Segmentation fault" message there. '((' could
  34580. # trigger a bug in pdksh 5.2.14.
  34581. for as_var in BASH_ENV ENV MAIL MAILPATH
  34582. do eval test x\${$as_var+set} = xset \
  34583. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  34584. done
  34585. PS1='$ '
  34586. PS2='> '
  34587. PS4='+ '
  34588. # NLS nuisances.
  34589. LC_ALL=C
  34590. export LC_ALL
  34591. LANGUAGE=C
  34592. export LANGUAGE
  34593. # CDPATH.
  34594. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34595. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  34596. # ----------------------------------------
  34597. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  34598. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  34599. # script with STATUS, using 1 if that was 0.
  34600. as_fn_error ()
  34601. {
  34602. as_status=$1; test $as_status -eq 0 && as_status=1
  34603. if test "$4"; then
  34604. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  34605. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  34606. fi
  34607. $as_echo "$as_me: error: $2" >&2
  34608. as_fn_exit $as_status
  34609. } # as_fn_error
  34610. # as_fn_set_status STATUS
  34611. # -----------------------
  34612. # Set $? to STATUS, without forking.
  34613. as_fn_set_status ()
  34614. {
  34615. return $1
  34616. } # as_fn_set_status
  34617. # as_fn_exit STATUS
  34618. # -----------------
  34619. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  34620. as_fn_exit ()
  34621. {
  34622. set +e
  34623. as_fn_set_status $1
  34624. exit $1
  34625. } # as_fn_exit
  34626. # as_fn_unset VAR
  34627. # ---------------
  34628. # Portably unset VAR.
  34629. as_fn_unset ()
  34630. {
  34631. { eval $1=; unset $1;}
  34632. }
  34633. as_unset=as_fn_unset
  34634. # as_fn_append VAR VALUE
  34635. # ----------------------
  34636. # Append the text in VALUE to the end of the definition contained in VAR. Take
  34637. # advantage of any shell optimizations that allow amortized linear growth over
  34638. # repeated appends, instead of the typical quadratic growth present in naive
  34639. # implementations.
  34640. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  34641. eval 'as_fn_append ()
  34642. {
  34643. eval $1+=\$2
  34644. }'
  34645. else
  34646. as_fn_append ()
  34647. {
  34648. eval $1=\$$1\$2
  34649. }
  34650. fi # as_fn_append
  34651. # as_fn_arith ARG...
  34652. # ------------------
  34653. # Perform arithmetic evaluation on the ARGs, and store the result in the
  34654. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  34655. # must be portable across $(()) and expr.
  34656. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  34657. eval 'as_fn_arith ()
  34658. {
  34659. as_val=$(( $* ))
  34660. }'
  34661. else
  34662. as_fn_arith ()
  34663. {
  34664. as_val=`expr "$@" || test $? -eq 1`
  34665. }
  34666. fi # as_fn_arith
  34667. if expr a : '\(a\)' >/dev/null 2>&1 &&
  34668. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  34669. as_expr=expr
  34670. else
  34671. as_expr=false
  34672. fi
  34673. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  34674. as_basename=basename
  34675. else
  34676. as_basename=false
  34677. fi
  34678. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  34679. as_dirname=dirname
  34680. else
  34681. as_dirname=false
  34682. fi
  34683. as_me=`$as_basename -- "$0" ||
  34684. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  34685. X"$0" : 'X\(//\)$' \| \
  34686. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  34687. $as_echo X/"$0" |
  34688. sed '/^.*\/\([^/][^/]*\)\/*$/{
  34689. s//\1/
  34690. q
  34691. }
  34692. /^X\/\(\/\/\)$/{
  34693. s//\1/
  34694. q
  34695. }
  34696. /^X\/\(\/\).*/{
  34697. s//\1/
  34698. q
  34699. }
  34700. s/.*/./; q'`
  34701. # Avoid depending upon Character Ranges.
  34702. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  34703. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  34704. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34705. as_cr_digits='0123456789'
  34706. as_cr_alnum=$as_cr_Letters$as_cr_digits
  34707. ECHO_C= ECHO_N= ECHO_T=
  34708. case `echo -n x` in #(((((
  34709. -n*)
  34710. case `echo 'xy\c'` in
  34711. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  34712. xy) ECHO_C='\c';;
  34713. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  34714. ECHO_T=' ';;
  34715. esac;;
  34716. *)
  34717. ECHO_N='-n';;
  34718. esac
  34719. rm -f conf$$ conf$$.exe conf$$.file
  34720. if test -d conf$$.dir; then
  34721. rm -f conf$$.dir/conf$$.file
  34722. else
  34723. rm -f conf$$.dir
  34724. mkdir conf$$.dir 2>/dev/null
  34725. fi
  34726. if (echo >conf$$.file) 2>/dev/null; then
  34727. if ln -s conf$$.file conf$$ 2>/dev/null; then
  34728. as_ln_s='ln -s'
  34729. # ... but there are two gotchas:
  34730. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  34731. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  34732. # In both cases, we have to default to `cp -pR'.
  34733. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  34734. as_ln_s='cp -pR'
  34735. elif ln conf$$.file conf$$ 2>/dev/null; then
  34736. as_ln_s=ln
  34737. else
  34738. as_ln_s='cp -pR'
  34739. fi
  34740. else
  34741. as_ln_s='cp -pR'
  34742. fi
  34743. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  34744. rmdir conf$$.dir 2>/dev/null
  34745. # as_fn_mkdir_p
  34746. # -------------
  34747. # Create "$as_dir" as a directory, including parents if necessary.
  34748. as_fn_mkdir_p ()
  34749. {
  34750. case $as_dir in #(
  34751. -*) as_dir=./$as_dir;;
  34752. esac
  34753. test -d "$as_dir" || eval $as_mkdir_p || {
  34754. as_dirs=
  34755. while :; do
  34756. case $as_dir in #(
  34757. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  34758. *) as_qdir=$as_dir;;
  34759. esac
  34760. as_dirs="'$as_qdir' $as_dirs"
  34761. as_dir=`$as_dirname -- "$as_dir" ||
  34762. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34763. X"$as_dir" : 'X\(//\)[^/]' \| \
  34764. X"$as_dir" : 'X\(//\)$' \| \
  34765. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  34766. $as_echo X"$as_dir" |
  34767. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34768. s//\1/
  34769. q
  34770. }
  34771. /^X\(\/\/\)[^/].*/{
  34772. s//\1/
  34773. q
  34774. }
  34775. /^X\(\/\/\)$/{
  34776. s//\1/
  34777. q
  34778. }
  34779. /^X\(\/\).*/{
  34780. s//\1/
  34781. q
  34782. }
  34783. s/.*/./; q'`
  34784. test -d "$as_dir" && break
  34785. done
  34786. test -z "$as_dirs" || eval "mkdir $as_dirs"
  34787. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  34788. } # as_fn_mkdir_p
  34789. if mkdir -p . 2>/dev/null; then
  34790. as_mkdir_p='mkdir -p "$as_dir"'
  34791. else
  34792. test -d ./-p && rmdir ./-p
  34793. as_mkdir_p=false
  34794. fi
  34795. # as_fn_executable_p FILE
  34796. # -----------------------
  34797. # Test if FILE is an executable regular file.
  34798. as_fn_executable_p ()
  34799. {
  34800. test -f "$1" && test -x "$1"
  34801. } # as_fn_executable_p
  34802. as_test_x='test -x'
  34803. as_executable_p=as_fn_executable_p
  34804. # Sed expression to map a string onto a valid CPP name.
  34805. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  34806. # Sed expression to map a string onto a valid variable name.
  34807. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  34808. exec 6>&1
  34809. ## ----------------------------------- ##
  34810. ## Main body of $CONFIG_STATUS script. ##
  34811. ## ----------------------------------- ##
  34812. _ASEOF
  34813. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  34814. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34815. # Save the log message, to keep $0 and so on meaningful, and to
  34816. # report actual input values of CONFIG_FILES etc. instead of their
  34817. # values after options handling.
  34818. ac_log="
  34819. This file was extended by curl $as_me -, which was
  34820. generated by GNU Autoconf 2.69. Invocation command line was
  34821. CONFIG_FILES = $CONFIG_FILES
  34822. CONFIG_HEADERS = $CONFIG_HEADERS
  34823. CONFIG_LINKS = $CONFIG_LINKS
  34824. CONFIG_COMMANDS = $CONFIG_COMMANDS
  34825. $ $0 $@
  34826. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  34827. "
  34828. _ACEOF
  34829. case $ac_config_files in *"
  34830. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  34831. esac
  34832. case $ac_config_headers in *"
  34833. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  34834. esac
  34835. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34836. # Files that config.status was made for.
  34837. config_files="$ac_config_files"
  34838. config_headers="$ac_config_headers"
  34839. config_commands="$ac_config_commands"
  34840. _ACEOF
  34841. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34842. ac_cs_usage="\
  34843. \`$as_me' instantiates files and other configuration actions
  34844. from templates according to the current configuration. Unless the files
  34845. and actions are specified as TAGs, all are instantiated by default.
  34846. Usage: $0 [OPTION]... [TAG]...
  34847. -h, --help print this help, then exit
  34848. -V, --version print version number and configuration settings, then exit
  34849. --config print configuration, then exit
  34850. -q, --quiet, --silent
  34851. do not print progress messages
  34852. -d, --debug don't remove temporary files
  34853. --recheck update $as_me by reconfiguring in the same conditions
  34854. --file=FILE[:TEMPLATE]
  34855. instantiate the configuration file FILE
  34856. --header=FILE[:TEMPLATE]
  34857. instantiate the configuration header FILE
  34858. Configuration files:
  34859. $config_files
  34860. Configuration headers:
  34861. $config_headers
  34862. Configuration commands:
  34863. $config_commands
  34864. Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
  34865. _ACEOF
  34866. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34867. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  34868. ac_cs_version="\\
  34869. curl config.status -
  34870. configured by $0, generated by GNU Autoconf 2.69,
  34871. with options \\"\$ac_cs_config\\"
  34872. Copyright (C) 2012 Free Software Foundation, Inc.
  34873. This config.status script is free software; the Free Software Foundation
  34874. gives unlimited permission to copy, distribute and modify it."
  34875. ac_pwd='$ac_pwd'
  34876. srcdir='$srcdir'
  34877. INSTALL='$INSTALL'
  34878. MKDIR_P='$MKDIR_P'
  34879. AWK='$AWK'
  34880. test -n "\$AWK" || AWK=awk
  34881. _ACEOF
  34882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34883. # The default lists apply if the user does not specify any file.
  34884. ac_need_defaults=:
  34885. while test $# != 0
  34886. do
  34887. case $1 in
  34888. --*=?*)
  34889. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  34890. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  34891. ac_shift=:
  34892. ;;
  34893. --*=)
  34894. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  34895. ac_optarg=
  34896. ac_shift=:
  34897. ;;
  34898. *)
  34899. ac_option=$1
  34900. ac_optarg=$2
  34901. ac_shift=shift
  34902. ;;
  34903. esac
  34904. case $ac_option in
  34905. # Handling of the options.
  34906. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  34907. ac_cs_recheck=: ;;
  34908. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  34909. $as_echo "$ac_cs_version"; exit ;;
  34910. --config | --confi | --conf | --con | --co | --c )
  34911. $as_echo "$ac_cs_config"; exit ;;
  34912. --debug | --debu | --deb | --de | --d | -d )
  34913. debug=: ;;
  34914. --file | --fil | --fi | --f )
  34915. $ac_shift
  34916. case $ac_optarg in
  34917. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34918. '') as_fn_error $? "missing file argument" ;;
  34919. esac
  34920. as_fn_append CONFIG_FILES " '$ac_optarg'"
  34921. ac_need_defaults=false;;
  34922. --header | --heade | --head | --hea )
  34923. $ac_shift
  34924. case $ac_optarg in
  34925. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34926. esac
  34927. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  34928. ac_need_defaults=false;;
  34929. --he | --h)
  34930. # Conflict between --help and --header
  34931. as_fn_error $? "ambiguous option: \`$1'
  34932. Try \`$0 --help' for more information.";;
  34933. --help | --hel | -h )
  34934. $as_echo "$ac_cs_usage"; exit ;;
  34935. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  34936. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  34937. ac_cs_silent=: ;;
  34938. # This is an error.
  34939. -*) as_fn_error $? "unrecognized option: \`$1'
  34940. Try \`$0 --help' for more information." ;;
  34941. *) as_fn_append ac_config_targets " $1"
  34942. ac_need_defaults=false ;;
  34943. esac
  34944. shift
  34945. done
  34946. ac_configure_extra_args=
  34947. if $ac_cs_silent; then
  34948. exec 6>/dev/null
  34949. ac_configure_extra_args="$ac_configure_extra_args --silent"
  34950. fi
  34951. _ACEOF
  34952. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34953. if \$ac_cs_recheck; then
  34954. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  34955. shift
  34956. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  34957. CONFIG_SHELL='$SHELL'
  34958. export CONFIG_SHELL
  34959. exec "\$@"
  34960. fi
  34961. _ACEOF
  34962. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  34963. exec 5>>config.log
  34964. {
  34965. echo
  34966. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  34967. ## Running $as_me. ##
  34968. _ASBOX
  34969. $as_echo "$ac_log"
  34970. } >&5
  34971. _ACEOF
  34972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  34973. #
  34974. # INIT-COMMANDS
  34975. #
  34976. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  34977. # The HP-UX ksh and POSIX shell print the target directory to stdout
  34978. # if CDPATH is set.
  34979. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  34980. sed_quote_subst='$sed_quote_subst'
  34981. double_quote_subst='$double_quote_subst'
  34982. delay_variable_subst='$delay_variable_subst'
  34983. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  34984. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  34985. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  34986. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  34987. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  34988. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  34989. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  34990. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  34991. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  34992. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  34993. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  34994. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  34995. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  34996. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  34997. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  34998. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  34999. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  35000. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  35001. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  35002. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  35003. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  35004. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  35005. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  35006. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  35007. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  35008. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  35009. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  35010. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  35011. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  35012. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  35013. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  35014. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  35015. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  35016. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  35017. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  35018. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  35019. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  35020. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  35021. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  35022. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  35023. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  35024. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  35025. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  35026. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  35027. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  35028. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  35029. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  35030. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  35031. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  35032. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  35033. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  35034. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  35035. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  35036. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  35037. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  35038. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  35039. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  35040. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  35041. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  35042. 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"`'
  35043. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  35044. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  35045. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  35046. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  35047. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  35048. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  35049. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  35050. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  35051. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  35052. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  35053. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  35054. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  35055. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  35056. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  35057. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  35058. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  35059. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  35060. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  35061. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  35062. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  35063. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  35064. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  35065. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  35066. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  35067. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  35068. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  35069. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  35070. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  35071. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  35072. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  35073. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  35074. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  35075. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  35076. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  35077. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  35078. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  35079. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  35080. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  35081. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  35082. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  35083. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  35084. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  35085. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  35086. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  35087. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  35088. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  35089. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  35090. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  35091. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  35092. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  35093. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  35094. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  35095. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  35096. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  35097. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  35098. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  35099. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  35100. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  35101. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  35102. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  35103. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  35104. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  35105. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  35106. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  35107. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  35108. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  35109. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  35110. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  35111. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  35112. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  35113. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  35114. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  35115. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  35116. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  35117. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  35118. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  35119. LTCC='$LTCC'
  35120. LTCFLAGS='$LTCFLAGS'
  35121. compiler='$compiler_DEFAULT'
  35122. # A function that is used when there is no print builtin or printf.
  35123. func_fallback_echo ()
  35124. {
  35125. eval 'cat <<_LTECHO_EOF
  35126. \$1
  35127. _LTECHO_EOF'
  35128. }
  35129. # Quote evaled strings.
  35130. for var in AS \
  35131. DLLTOOL \
  35132. OBJDUMP \
  35133. SHELL \
  35134. ECHO \
  35135. PATH_SEPARATOR \
  35136. SED \
  35137. GREP \
  35138. EGREP \
  35139. FGREP \
  35140. LD \
  35141. NM \
  35142. LN_S \
  35143. lt_SP2NL \
  35144. lt_NL2SP \
  35145. reload_flag \
  35146. deplibs_check_method \
  35147. file_magic_cmd \
  35148. file_magic_glob \
  35149. want_nocaseglob \
  35150. sharedlib_from_linklib_cmd \
  35151. AR \
  35152. AR_FLAGS \
  35153. archiver_list_spec \
  35154. STRIP \
  35155. RANLIB \
  35156. CC \
  35157. CFLAGS \
  35158. compiler \
  35159. lt_cv_sys_global_symbol_pipe \
  35160. lt_cv_sys_global_symbol_to_cdecl \
  35161. lt_cv_sys_global_symbol_to_import \
  35162. lt_cv_sys_global_symbol_to_c_name_address \
  35163. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  35164. lt_cv_nm_interface \
  35165. nm_file_list_spec \
  35166. lt_cv_truncate_bin \
  35167. lt_prog_compiler_no_builtin_flag \
  35168. lt_prog_compiler_pic \
  35169. lt_prog_compiler_wl \
  35170. lt_prog_compiler_static \
  35171. lt_cv_prog_compiler_c_o \
  35172. need_locks \
  35173. MANIFEST_TOOL \
  35174. DSYMUTIL \
  35175. NMEDIT \
  35176. LIPO \
  35177. OTOOL \
  35178. OTOOL64 \
  35179. shrext_cmds \
  35180. export_dynamic_flag_spec \
  35181. whole_archive_flag_spec \
  35182. compiler_needs_object \
  35183. with_gnu_ld \
  35184. allow_undefined_flag \
  35185. no_undefined_flag \
  35186. hardcode_libdir_flag_spec \
  35187. hardcode_libdir_separator \
  35188. exclude_expsyms \
  35189. include_expsyms \
  35190. file_list_spec \
  35191. variables_saved_for_relink \
  35192. libname_spec \
  35193. library_names_spec \
  35194. soname_spec \
  35195. install_override_mode \
  35196. finish_eval \
  35197. old_striplib \
  35198. striplib; do
  35199. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  35200. *[\\\\\\\`\\"\\\$]*)
  35201. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  35202. ;;
  35203. *)
  35204. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  35205. ;;
  35206. esac
  35207. done
  35208. # Double-quote double-evaled strings.
  35209. for var in reload_cmds \
  35210. old_postinstall_cmds \
  35211. old_postuninstall_cmds \
  35212. old_archive_cmds \
  35213. extract_expsyms_cmds \
  35214. old_archive_from_new_cmds \
  35215. old_archive_from_expsyms_cmds \
  35216. archive_cmds \
  35217. archive_expsym_cmds \
  35218. module_cmds \
  35219. module_expsym_cmds \
  35220. export_symbols_cmds \
  35221. prelink_cmds \
  35222. postlink_cmds \
  35223. postinstall_cmds \
  35224. postuninstall_cmds \
  35225. finish_cmds \
  35226. sys_lib_search_path_spec \
  35227. configure_time_dlsearch_path \
  35228. configure_time_lt_sys_library_path; do
  35229. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  35230. *[\\\\\\\`\\"\\\$]*)
  35231. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  35232. ;;
  35233. *)
  35234. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  35235. ;;
  35236. esac
  35237. done
  35238. ac_aux_dir='$ac_aux_dir'
  35239. # See if we are running on zsh, and set the options that allow our
  35240. # commands through without removal of \ escapes INIT.
  35241. if test -n "\${ZSH_VERSION+set}"; then
  35242. setopt NO_GLOB_SUBST
  35243. fi
  35244. PACKAGE='$PACKAGE'
  35245. VERSION='$VERSION'
  35246. RM='$RM'
  35247. ofile='$ofile'
  35248. _ACEOF
  35249. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35250. # Handling of arguments.
  35251. for ac_config_target in $ac_config_targets
  35252. do
  35253. case $ac_config_target in
  35254. "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
  35255. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  35256. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  35257. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  35258. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  35259. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  35260. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  35261. "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
  35262. "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
  35263. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  35264. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  35265. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  35266. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  35267. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  35268. "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
  35269. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  35270. "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
  35271. "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
  35272. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  35273. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  35274. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  35275. "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
  35276. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  35277. "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
  35278. "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
  35279. "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
  35280. "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
  35281. "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
  35282. "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
  35283. "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
  35284. "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
  35285. "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
  35286. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  35287. "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
  35288. "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
  35289. "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
  35290. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  35291. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  35292. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  35293. esac
  35294. done
  35295. # If the user did not use the arguments to specify the items to instantiate,
  35296. # then the envvar interface is used. Set only those that are not.
  35297. # We use the long form for the default assignment because of an extremely
  35298. # bizarre bug on SunOS 4.1.3.
  35299. if $ac_need_defaults; then
  35300. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  35301. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  35302. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  35303. fi
  35304. # Have a temporary directory for convenience. Make it in the build tree
  35305. # simply because there is no reason against having it here, and in addition,
  35306. # creating and moving files from /tmp can sometimes cause problems.
  35307. # Hook for its removal unless debugging.
  35308. # Note that there is a small window in which the directory will not be cleaned:
  35309. # after its creation but before its name has been assigned to `$tmp'.
  35310. $debug ||
  35311. {
  35312. tmp= ac_tmp=
  35313. trap 'exit_status=$?
  35314. : "${ac_tmp:=$tmp}"
  35315. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  35316. ' 0
  35317. trap 'as_fn_exit 1' 1 2 13 15
  35318. }
  35319. # Create a (secure) tmp directory for tmp files.
  35320. {
  35321. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  35322. test -d "$tmp"
  35323. } ||
  35324. {
  35325. tmp=./conf$$-$RANDOM
  35326. (umask 077 && mkdir "$tmp")
  35327. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  35328. ac_tmp=$tmp
  35329. # Set up the scripts for CONFIG_FILES section.
  35330. # No need to generate them if there are no CONFIG_FILES.
  35331. # This happens for instance with `./config.status config.h'.
  35332. if test -n "$CONFIG_FILES"; then
  35333. ac_cr=`echo X | tr X '\015'`
  35334. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  35335. # But we know of no other shell where ac_cr would be empty at this
  35336. # point, so we can use a bashism as a fallback.
  35337. if test "x$ac_cr" = x; then
  35338. eval ac_cr=\$\'\\r\'
  35339. fi
  35340. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  35341. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  35342. ac_cs_awk_cr='\\r'
  35343. else
  35344. ac_cs_awk_cr=$ac_cr
  35345. fi
  35346. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  35347. _ACEOF
  35348. {
  35349. echo "cat >conf$$subs.awk <<_ACEOF" &&
  35350. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  35351. echo "_ACEOF"
  35352. } >conf$$subs.sh ||
  35353. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  35354. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  35355. ac_delim='%!_!# '
  35356. for ac_last_try in false false false false false :; do
  35357. . ./conf$$subs.sh ||
  35358. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  35359. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  35360. if test $ac_delim_n = $ac_delim_num; then
  35361. break
  35362. elif $ac_last_try; then
  35363. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  35364. else
  35365. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35366. fi
  35367. done
  35368. rm -f conf$$subs.sh
  35369. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35370. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  35371. _ACEOF
  35372. sed -n '
  35373. h
  35374. s/^/S["/; s/!.*/"]=/
  35375. p
  35376. g
  35377. s/^[^!]*!//
  35378. :repl
  35379. t repl
  35380. s/'"$ac_delim"'$//
  35381. t delim
  35382. :nl
  35383. h
  35384. s/\(.\{148\}\)..*/\1/
  35385. t more1
  35386. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  35387. p
  35388. n
  35389. b repl
  35390. :more1
  35391. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  35392. p
  35393. g
  35394. s/.\{148\}//
  35395. t nl
  35396. :delim
  35397. h
  35398. s/\(.\{148\}\)..*/\1/
  35399. t more2
  35400. s/["\\]/\\&/g; s/^/"/; s/$/"/
  35401. p
  35402. b
  35403. :more2
  35404. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  35405. p
  35406. g
  35407. s/.\{148\}//
  35408. t delim
  35409. ' <conf$$subs.awk | sed '
  35410. /^[^""]/{
  35411. N
  35412. s/\n//
  35413. }
  35414. ' >>$CONFIG_STATUS || ac_write_fail=1
  35415. rm -f conf$$subs.awk
  35416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35417. _ACAWK
  35418. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  35419. for (key in S) S_is_set[key] = 1
  35420. FS = ""
  35421. }
  35422. {
  35423. line = $ 0
  35424. nfields = split(line, field, "@")
  35425. substed = 0
  35426. len = length(field[1])
  35427. for (i = 2; i < nfields; i++) {
  35428. key = field[i]
  35429. keylen = length(key)
  35430. if (S_is_set[key]) {
  35431. value = S[key]
  35432. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  35433. len += length(value) + length(field[++i])
  35434. substed = 1
  35435. } else
  35436. len += 1 + keylen
  35437. }
  35438. print line
  35439. }
  35440. _ACAWK
  35441. _ACEOF
  35442. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35443. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  35444. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  35445. else
  35446. cat
  35447. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  35448. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  35449. _ACEOF
  35450. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  35451. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  35452. # trailing colons and then remove the whole line if VPATH becomes empty
  35453. # (actually we leave an empty line to preserve line numbers).
  35454. if test "x$srcdir" = x.; then
  35455. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  35456. h
  35457. s///
  35458. s/^/:/
  35459. s/[ ]*$/:/
  35460. s/:\$(srcdir):/:/g
  35461. s/:\${srcdir}:/:/g
  35462. s/:@srcdir@:/:/g
  35463. s/^:*//
  35464. s/:*$//
  35465. x
  35466. s/\(=[ ]*\).*/\1/
  35467. G
  35468. s/\n//
  35469. s/^[^=]*=[ ]*$//
  35470. }'
  35471. fi
  35472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35473. fi # test -n "$CONFIG_FILES"
  35474. # Set up the scripts for CONFIG_HEADERS section.
  35475. # No need to generate them if there are no CONFIG_HEADERS.
  35476. # This happens for instance with `./config.status Makefile'.
  35477. if test -n "$CONFIG_HEADERS"; then
  35478. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  35479. BEGIN {
  35480. _ACEOF
  35481. # Transform confdefs.h into an awk script `defines.awk', embedded as
  35482. # here-document in config.status, that substitutes the proper values into
  35483. # config.h.in to produce config.h.
  35484. # Create a delimiter string that does not exist in confdefs.h, to ease
  35485. # handling of long lines.
  35486. ac_delim='%!_!# '
  35487. for ac_last_try in false false :; do
  35488. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  35489. if test -z "$ac_tt"; then
  35490. break
  35491. elif $ac_last_try; then
  35492. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  35493. else
  35494. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35495. fi
  35496. done
  35497. # For the awk script, D is an array of macro values keyed by name,
  35498. # likewise P contains macro parameters if any. Preserve backslash
  35499. # newline sequences.
  35500. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  35501. sed -n '
  35502. s/.\{148\}/&'"$ac_delim"'/g
  35503. t rset
  35504. :rset
  35505. s/^[ ]*#[ ]*define[ ][ ]*/ /
  35506. t def
  35507. d
  35508. :def
  35509. s/\\$//
  35510. t bsnl
  35511. s/["\\]/\\&/g
  35512. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  35513. D["\1"]=" \3"/p
  35514. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  35515. d
  35516. :bsnl
  35517. s/["\\]/\\&/g
  35518. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  35519. D["\1"]=" \3\\\\\\n"\\/p
  35520. t cont
  35521. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  35522. t cont
  35523. d
  35524. :cont
  35525. n
  35526. s/.\{148\}/&'"$ac_delim"'/g
  35527. t clear
  35528. :clear
  35529. s/\\$//
  35530. t bsnlc
  35531. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  35532. d
  35533. :bsnlc
  35534. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  35535. b cont
  35536. ' <confdefs.h | sed '
  35537. s/'"$ac_delim"'/"\\\
  35538. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  35539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35540. for (key in D) D_is_set[key] = 1
  35541. FS = ""
  35542. }
  35543. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  35544. line = \$ 0
  35545. split(line, arg, " ")
  35546. if (arg[1] == "#") {
  35547. defundef = arg[2]
  35548. mac1 = arg[3]
  35549. } else {
  35550. defundef = substr(arg[1], 2)
  35551. mac1 = arg[2]
  35552. }
  35553. split(mac1, mac2, "(") #)
  35554. macro = mac2[1]
  35555. prefix = substr(line, 1, index(line, defundef) - 1)
  35556. if (D_is_set[macro]) {
  35557. # Preserve the white space surrounding the "#".
  35558. print prefix "define", macro P[macro] D[macro]
  35559. next
  35560. } else {
  35561. # Replace #undef with comments. This is necessary, for example,
  35562. # in the case of _POSIX_SOURCE, which is predefined and required
  35563. # on some systems where configure will not decide to define it.
  35564. if (defundef == "undef") {
  35565. print "/*", prefix defundef, macro, "*/"
  35566. next
  35567. }
  35568. }
  35569. }
  35570. { print }
  35571. _ACAWK
  35572. _ACEOF
  35573. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35574. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  35575. fi # test -n "$CONFIG_HEADERS"
  35576. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  35577. shift
  35578. for ac_tag
  35579. do
  35580. case $ac_tag in
  35581. :[FHLC]) ac_mode=$ac_tag; continue;;
  35582. esac
  35583. case $ac_mode$ac_tag in
  35584. :[FHL]*:*);;
  35585. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  35586. :[FH]-) ac_tag=-:-;;
  35587. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  35588. esac
  35589. ac_save_IFS=$IFS
  35590. IFS=:
  35591. set x $ac_tag
  35592. IFS=$ac_save_IFS
  35593. shift
  35594. ac_file=$1
  35595. shift
  35596. case $ac_mode in
  35597. :L) ac_source=$1;;
  35598. :[FH])
  35599. ac_file_inputs=
  35600. for ac_f
  35601. do
  35602. case $ac_f in
  35603. -) ac_f="$ac_tmp/stdin";;
  35604. *) # Look for the file first in the build tree, then in the source tree
  35605. # (if the path is not absolute). The absolute path cannot be DOS-style,
  35606. # because $ac_f cannot contain `:'.
  35607. test -f "$ac_f" ||
  35608. case $ac_f in
  35609. [\\/$]*) false;;
  35610. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  35611. esac ||
  35612. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  35613. esac
  35614. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  35615. as_fn_append ac_file_inputs " '$ac_f'"
  35616. done
  35617. # Let's still pretend it is `configure' which instantiates (i.e., don't
  35618. # use $as_me), people would be surprised to read:
  35619. # /* config.h. Generated by config.status. */
  35620. configure_input='Generated from '`
  35621. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  35622. `' by configure.'
  35623. if test x"$ac_file" != x-; then
  35624. configure_input="$ac_file. $configure_input"
  35625. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  35626. $as_echo "$as_me: creating $ac_file" >&6;}
  35627. fi
  35628. # Neutralize special characters interpreted by sed in replacement strings.
  35629. case $configure_input in #(
  35630. *\&* | *\|* | *\\* )
  35631. ac_sed_conf_input=`$as_echo "$configure_input" |
  35632. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  35633. *) ac_sed_conf_input=$configure_input;;
  35634. esac
  35635. case $ac_tag in
  35636. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  35637. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  35638. esac
  35639. ;;
  35640. esac
  35641. ac_dir=`$as_dirname -- "$ac_file" ||
  35642. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35643. X"$ac_file" : 'X\(//\)[^/]' \| \
  35644. X"$ac_file" : 'X\(//\)$' \| \
  35645. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  35646. $as_echo X"$ac_file" |
  35647. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35648. s//\1/
  35649. q
  35650. }
  35651. /^X\(\/\/\)[^/].*/{
  35652. s//\1/
  35653. q
  35654. }
  35655. /^X\(\/\/\)$/{
  35656. s//\1/
  35657. q
  35658. }
  35659. /^X\(\/\).*/{
  35660. s//\1/
  35661. q
  35662. }
  35663. s/.*/./; q'`
  35664. as_dir="$ac_dir"; as_fn_mkdir_p
  35665. ac_builddir=.
  35666. case "$ac_dir" in
  35667. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35668. *)
  35669. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  35670. # A ".." for each directory in $ac_dir_suffix.
  35671. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  35672. case $ac_top_builddir_sub in
  35673. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35674. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  35675. esac ;;
  35676. esac
  35677. ac_abs_top_builddir=$ac_pwd
  35678. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  35679. # for backward compatibility:
  35680. ac_top_builddir=$ac_top_build_prefix
  35681. case $srcdir in
  35682. .) # We are building in place.
  35683. ac_srcdir=.
  35684. ac_top_srcdir=$ac_top_builddir_sub
  35685. ac_abs_top_srcdir=$ac_pwd ;;
  35686. [\\/]* | ?:[\\/]* ) # Absolute name.
  35687. ac_srcdir=$srcdir$ac_dir_suffix;
  35688. ac_top_srcdir=$srcdir
  35689. ac_abs_top_srcdir=$srcdir ;;
  35690. *) # Relative name.
  35691. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  35692. ac_top_srcdir=$ac_top_build_prefix$srcdir
  35693. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  35694. esac
  35695. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  35696. case $ac_mode in
  35697. :F)
  35698. #
  35699. # CONFIG_FILE
  35700. #
  35701. case $INSTALL in
  35702. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  35703. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  35704. esac
  35705. ac_MKDIR_P=$MKDIR_P
  35706. case $MKDIR_P in
  35707. [\\/$]* | ?:[\\/]* ) ;;
  35708. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  35709. esac
  35710. _ACEOF
  35711. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35712. # If the template does not know about datarootdir, expand it.
  35713. # FIXME: This hack should be removed a few years after 2.60.
  35714. ac_datarootdir_hack=; ac_datarootdir_seen=
  35715. ac_sed_dataroot='
  35716. /datarootdir/ {
  35717. p
  35718. q
  35719. }
  35720. /@datadir@/p
  35721. /@docdir@/p
  35722. /@infodir@/p
  35723. /@localedir@/p
  35724. /@mandir@/p'
  35725. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  35726. *datarootdir*) ac_datarootdir_seen=yes;;
  35727. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  35728. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  35729. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  35730. _ACEOF
  35731. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35732. ac_datarootdir_hack='
  35733. s&@datadir@&$datadir&g
  35734. s&@docdir@&$docdir&g
  35735. s&@infodir@&$infodir&g
  35736. s&@localedir@&$localedir&g
  35737. s&@mandir@&$mandir&g
  35738. s&\\\${datarootdir}&$datarootdir&g' ;;
  35739. esac
  35740. _ACEOF
  35741. # Neutralize VPATH when `$srcdir' = `.'.
  35742. # Shell code in configure.ac might set extrasub.
  35743. # FIXME: do we really want to maintain this feature?
  35744. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  35745. ac_sed_extra="$ac_vpsub
  35746. $extrasub
  35747. _ACEOF
  35748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  35749. :t
  35750. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35751. s|@configure_input@|$ac_sed_conf_input|;t t
  35752. s&@top_builddir@&$ac_top_builddir_sub&;t t
  35753. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  35754. s&@srcdir@&$ac_srcdir&;t t
  35755. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  35756. s&@top_srcdir@&$ac_top_srcdir&;t t
  35757. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  35758. s&@builddir@&$ac_builddir&;t t
  35759. s&@abs_builddir@&$ac_abs_builddir&;t t
  35760. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  35761. s&@INSTALL@&$ac_INSTALL&;t t
  35762. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  35763. $ac_datarootdir_hack
  35764. "
  35765. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  35766. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  35767. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  35768. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  35769. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  35770. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  35771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35772. which seems to be undefined. Please make sure it is defined" >&5
  35773. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35774. which seems to be undefined. Please make sure it is defined" >&2;}
  35775. rm -f "$ac_tmp/stdin"
  35776. case $ac_file in
  35777. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  35778. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  35779. esac \
  35780. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  35781. ;;
  35782. :H)
  35783. #
  35784. # CONFIG_HEADER
  35785. #
  35786. if test x"$ac_file" != x-; then
  35787. {
  35788. $as_echo "/* $configure_input */" \
  35789. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  35790. } >"$ac_tmp/config.h" \
  35791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  35792. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  35793. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  35794. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  35795. else
  35796. rm -f "$ac_file"
  35797. mv "$ac_tmp/config.h" "$ac_file" \
  35798. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  35799. fi
  35800. else
  35801. $as_echo "/* $configure_input */" \
  35802. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  35803. || as_fn_error $? "could not create -" "$LINENO" 5
  35804. fi
  35805. # Compute "$ac_file"'s index in $config_headers.
  35806. _am_arg="$ac_file"
  35807. _am_stamp_count=1
  35808. for _am_header in $config_headers :; do
  35809. case $_am_header in
  35810. $_am_arg | $_am_arg:* )
  35811. break ;;
  35812. * )
  35813. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  35814. esac
  35815. done
  35816. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  35817. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35818. X"$_am_arg" : 'X\(//\)[^/]' \| \
  35819. X"$_am_arg" : 'X\(//\)$' \| \
  35820. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  35821. $as_echo X"$_am_arg" |
  35822. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35823. s//\1/
  35824. q
  35825. }
  35826. /^X\(\/\/\)[^/].*/{
  35827. s//\1/
  35828. q
  35829. }
  35830. /^X\(\/\/\)$/{
  35831. s//\1/
  35832. q
  35833. }
  35834. /^X\(\/\).*/{
  35835. s//\1/
  35836. q
  35837. }
  35838. s/.*/./; q'`/stamp-h$_am_stamp_count
  35839. ;;
  35840. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  35841. $as_echo "$as_me: executing $ac_file commands" >&6;}
  35842. ;;
  35843. esac
  35844. case $ac_file$ac_mode in
  35845. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  35846. # Older Autoconf quotes --file arguments for eval, but not when files
  35847. # are listed without --file. Let's play safe and only enable the eval
  35848. # if we detect the quoting.
  35849. # TODO: see whether this extra hack can be removed once we start
  35850. # requiring Autoconf 2.70 or later.
  35851. case $CONFIG_FILES in #(
  35852. *\'*) :
  35853. eval set x "$CONFIG_FILES" ;; #(
  35854. *) :
  35855. set x $CONFIG_FILES ;; #(
  35856. *) :
  35857. ;;
  35858. esac
  35859. shift
  35860. # Used to flag and report bootstrapping failures.
  35861. am_rc=0
  35862. for am_mf
  35863. do
  35864. # Strip MF so we end up with the name of the file.
  35865. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  35866. # Check whether this is an Automake generated Makefile which includes
  35867. # dependency-tracking related rules and includes.
  35868. # Grep'ing the whole file directly is not great: AIX grep has a line
  35869. # limit of 2048, but all sed's we know have understand at least 4000.
  35870. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  35871. || continue
  35872. am_dirpart=`$as_dirname -- "$am_mf" ||
  35873. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35874. X"$am_mf" : 'X\(//\)[^/]' \| \
  35875. X"$am_mf" : 'X\(//\)$' \| \
  35876. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  35877. $as_echo X"$am_mf" |
  35878. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35879. s//\1/
  35880. q
  35881. }
  35882. /^X\(\/\/\)[^/].*/{
  35883. s//\1/
  35884. q
  35885. }
  35886. /^X\(\/\/\)$/{
  35887. s//\1/
  35888. q
  35889. }
  35890. /^X\(\/\).*/{
  35891. s//\1/
  35892. q
  35893. }
  35894. s/.*/./; q'`
  35895. am_filepart=`$as_basename -- "$am_mf" ||
  35896. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  35897. X"$am_mf" : 'X\(//\)$' \| \
  35898. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  35899. $as_echo X/"$am_mf" |
  35900. sed '/^.*\/\([^/][^/]*\)\/*$/{
  35901. s//\1/
  35902. q
  35903. }
  35904. /^X\/\(\/\/\)$/{
  35905. s//\1/
  35906. q
  35907. }
  35908. /^X\/\(\/\).*/{
  35909. s//\1/
  35910. q
  35911. }
  35912. s/.*/./; q'`
  35913. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  35914. && sed -e '/# am--include-marker/d' "$am_filepart" \
  35915. | $MAKE -f - am--depfiles" >&5
  35916. (cd "$am_dirpart" \
  35917. && sed -e '/# am--include-marker/d' "$am_filepart" \
  35918. | $MAKE -f - am--depfiles) >&5 2>&5
  35919. ac_status=$?
  35920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35921. (exit $ac_status); } || am_rc=$?
  35922. done
  35923. if test $am_rc -ne 0; then
  35924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  35925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  35926. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  35927. for automatic dependency tracking. Try re-running configure with the
  35928. '--disable-dependency-tracking' option to at least be able to build
  35929. the package (albeit without support for automatic dependency tracking).
  35930. See \`config.log' for more details" "$LINENO" 5; }
  35931. fi
  35932. { am_dirpart=; unset am_dirpart;}
  35933. { am_filepart=; unset am_filepart;}
  35934. { am_mf=; unset am_mf;}
  35935. { am_rc=; unset am_rc;}
  35936. rm -f conftest-deps.mk
  35937. }
  35938. ;;
  35939. "libtool":C)
  35940. # See if we are running on zsh, and set the options that allow our
  35941. # commands through without removal of \ escapes.
  35942. if test -n "${ZSH_VERSION+set}"; then
  35943. setopt NO_GLOB_SUBST
  35944. fi
  35945. cfgfile=${ofile}T
  35946. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  35947. $RM "$cfgfile"
  35948. cat <<_LT_EOF >> "$cfgfile"
  35949. #! $SHELL
  35950. # Generated automatically by $as_me ($PACKAGE) $VERSION
  35951. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  35952. # Provide generalized library-building support services.
  35953. # Written by Gordon Matzigkeit, 1996
  35954. # Copyright (C) 2014 Free Software Foundation, Inc.
  35955. # This is free software; see the source for copying conditions. There is NO
  35956. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  35957. # GNU Libtool is free software; you can redistribute it and/or modify
  35958. # it under the terms of the GNU General Public License as published by
  35959. # the Free Software Foundation; either version 2 of of the License, or
  35960. # (at your option) any later version.
  35961. #
  35962. # As a special exception to the GNU General Public License, if you
  35963. # distribute this file as part of a program or library that is built
  35964. # using GNU Libtool, you may include this file under the same
  35965. # distribution terms that you use for the rest of that program.
  35966. #
  35967. # GNU Libtool is distributed in the hope that it will be useful, but
  35968. # WITHOUT ANY WARRANTY; without even the implied warranty of
  35969. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35970. # GNU General Public License for more details.
  35971. #
  35972. # You should have received a copy of the GNU General Public License
  35973. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  35974. # The names of the tagged configurations supported by this script.
  35975. available_tags=''
  35976. # Configured defaults for sys_lib_dlsearch_path munging.
  35977. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  35978. # ### BEGIN LIBTOOL CONFIG
  35979. # Which release of libtool.m4 was used?
  35980. macro_version=$macro_version
  35981. macro_revision=$macro_revision
  35982. # Assembler program.
  35983. AS=$lt_AS
  35984. # DLL creation program.
  35985. DLLTOOL=$lt_DLLTOOL
  35986. # Object dumper program.
  35987. OBJDUMP=$lt_OBJDUMP
  35988. # Whether or not to build shared libraries.
  35989. build_libtool_libs=$enable_shared
  35990. # Whether or not to build static libraries.
  35991. build_old_libs=$enable_static
  35992. # What type of objects to build.
  35993. pic_mode=$pic_mode
  35994. # Whether or not to optimize for fast installation.
  35995. fast_install=$enable_fast_install
  35996. # Shared archive member basename,for filename based shared library versioning on AIX.
  35997. shared_archive_member_spec=$shared_archive_member_spec
  35998. # Shell to use when invoking shell scripts.
  35999. SHELL=$lt_SHELL
  36000. # An echo program that protects backslashes.
  36001. ECHO=$lt_ECHO
  36002. # The PATH separator for the build system.
  36003. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  36004. # The host system.
  36005. host_alias=$host_alias
  36006. host=$host
  36007. host_os=$host_os
  36008. # The build system.
  36009. build_alias=$build_alias
  36010. build=$build
  36011. build_os=$build_os
  36012. # A sed program that does not truncate output.
  36013. SED=$lt_SED
  36014. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  36015. Xsed="\$SED -e 1s/^X//"
  36016. # A grep program that handles long lines.
  36017. GREP=$lt_GREP
  36018. # An ERE matcher.
  36019. EGREP=$lt_EGREP
  36020. # A literal string matcher.
  36021. FGREP=$lt_FGREP
  36022. # A BSD- or MS-compatible name lister.
  36023. NM=$lt_NM
  36024. # Whether we need soft or hard links.
  36025. LN_S=$lt_LN_S
  36026. # What is the maximum length of a command?
  36027. max_cmd_len=$max_cmd_len
  36028. # Object file suffix (normally "o").
  36029. objext=$ac_objext
  36030. # Executable file suffix (normally "").
  36031. exeext=$exeext
  36032. # whether the shell understands "unset".
  36033. lt_unset=$lt_unset
  36034. # turn spaces into newlines.
  36035. SP2NL=$lt_lt_SP2NL
  36036. # turn newlines into spaces.
  36037. NL2SP=$lt_lt_NL2SP
  36038. # convert \$build file names to \$host format.
  36039. to_host_file_cmd=$lt_cv_to_host_file_cmd
  36040. # convert \$build files to toolchain format.
  36041. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  36042. # Method to check whether dependent libraries are shared objects.
  36043. deplibs_check_method=$lt_deplibs_check_method
  36044. # Command to use when deplibs_check_method = "file_magic".
  36045. file_magic_cmd=$lt_file_magic_cmd
  36046. # How to find potential files when deplibs_check_method = "file_magic".
  36047. file_magic_glob=$lt_file_magic_glob
  36048. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  36049. want_nocaseglob=$lt_want_nocaseglob
  36050. # Command to associate shared and link libraries.
  36051. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  36052. # The archiver.
  36053. AR=$lt_AR
  36054. # Flags to create an archive.
  36055. AR_FLAGS=$lt_AR_FLAGS
  36056. # How to feed a file listing to the archiver.
  36057. archiver_list_spec=$lt_archiver_list_spec
  36058. # A symbol stripping program.
  36059. STRIP=$lt_STRIP
  36060. # Commands used to install an old-style archive.
  36061. RANLIB=$lt_RANLIB
  36062. old_postinstall_cmds=$lt_old_postinstall_cmds
  36063. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36064. # Whether to use a lock for old archive extraction.
  36065. lock_old_archive_extraction=$lock_old_archive_extraction
  36066. # A C compiler.
  36067. LTCC=$lt_CC
  36068. # LTCC compiler flags.
  36069. LTCFLAGS=$lt_CFLAGS
  36070. # Take the output of nm and produce a listing of raw symbols and C names.
  36071. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36072. # Transform the output of nm in a proper C declaration.
  36073. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36074. # Transform the output of nm into a list of symbols to manually relocate.
  36075. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  36076. # Transform the output of nm in a C name address pair.
  36077. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36078. # Transform the output of nm in a C name address pair when lib prefix is needed.
  36079. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  36080. # The name lister interface.
  36081. nm_interface=$lt_lt_cv_nm_interface
  36082. # Specify filename containing input files for \$NM.
  36083. nm_file_list_spec=$lt_nm_file_list_spec
  36084. # The root where to search for dependent libraries,and where our libraries should be installed.
  36085. lt_sysroot=$lt_sysroot
  36086. # Command to truncate a binary pipe.
  36087. lt_truncate_bin=$lt_lt_cv_truncate_bin
  36088. # The name of the directory that contains temporary libtool files.
  36089. objdir=$objdir
  36090. # Used to examine libraries when file_magic_cmd begins with "file".
  36091. MAGIC_CMD=$MAGIC_CMD
  36092. # Must we lock files when doing compilation?
  36093. need_locks=$lt_need_locks
  36094. # Manifest tool.
  36095. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  36096. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  36097. DSYMUTIL=$lt_DSYMUTIL
  36098. # Tool to change global to local symbols on Mac OS X.
  36099. NMEDIT=$lt_NMEDIT
  36100. # Tool to manipulate fat objects and archives on Mac OS X.
  36101. LIPO=$lt_LIPO
  36102. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  36103. OTOOL=$lt_OTOOL
  36104. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  36105. OTOOL64=$lt_OTOOL64
  36106. # Old archive suffix (normally "a").
  36107. libext=$libext
  36108. # Shared library suffix (normally ".so").
  36109. shrext_cmds=$lt_shrext_cmds
  36110. # The commands to extract the exported symbol list from a shared archive.
  36111. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  36112. # Variables whose values should be saved in libtool wrapper scripts and
  36113. # restored at link time.
  36114. variables_saved_for_relink=$lt_variables_saved_for_relink
  36115. # Do we need the "lib" prefix for modules?
  36116. need_lib_prefix=$need_lib_prefix
  36117. # Do we need a version for libraries?
  36118. need_version=$need_version
  36119. # Library versioning type.
  36120. version_type=$version_type
  36121. # Shared library runtime path variable.
  36122. runpath_var=$runpath_var
  36123. # Shared library path variable.
  36124. shlibpath_var=$shlibpath_var
  36125. # Is shlibpath searched before the hard-coded library search path?
  36126. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  36127. # Format of library name prefix.
  36128. libname_spec=$lt_libname_spec
  36129. # List of archive names. First name is the real one, the rest are links.
  36130. # The last name is the one that the linker finds with -lNAME
  36131. library_names_spec=$lt_library_names_spec
  36132. # The coded name of the library, if different from the real name.
  36133. soname_spec=$lt_soname_spec
  36134. # Permission mode override for installation of shared libraries.
  36135. install_override_mode=$lt_install_override_mode
  36136. # Command to use after installation of a shared archive.
  36137. postinstall_cmds=$lt_postinstall_cmds
  36138. # Command to use after uninstallation of a shared archive.
  36139. postuninstall_cmds=$lt_postuninstall_cmds
  36140. # Commands used to finish a libtool library installation in a directory.
  36141. finish_cmds=$lt_finish_cmds
  36142. # As "finish_cmds", except a single script fragment to be evaled but
  36143. # not shown.
  36144. finish_eval=$lt_finish_eval
  36145. # Whether we should hardcode library paths into libraries.
  36146. hardcode_into_libs=$hardcode_into_libs
  36147. # Compile-time system search path for libraries.
  36148. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  36149. # Detected run-time system search path for libraries.
  36150. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  36151. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  36152. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  36153. # Whether dlopen is supported.
  36154. dlopen_support=$enable_dlopen
  36155. # Whether dlopen of programs is supported.
  36156. dlopen_self=$enable_dlopen_self
  36157. # Whether dlopen of statically linked programs is supported.
  36158. dlopen_self_static=$enable_dlopen_self_static
  36159. # Commands to strip libraries.
  36160. old_striplib=$lt_old_striplib
  36161. striplib=$lt_striplib
  36162. # The linker used to build libraries.
  36163. LD=$lt_LD
  36164. # How to create reloadable object files.
  36165. reload_flag=$lt_reload_flag
  36166. reload_cmds=$lt_reload_cmds
  36167. # Commands used to build an old-style archive.
  36168. old_archive_cmds=$lt_old_archive_cmds
  36169. # A language specific compiler.
  36170. CC=$lt_compiler
  36171. # Is the compiler the GNU compiler?
  36172. with_gcc=$GCC
  36173. # Compiler flag to turn off builtin functions.
  36174. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  36175. # Additional compiler flags for building library objects.
  36176. pic_flag=$lt_lt_prog_compiler_pic
  36177. # How to pass a linker flag through the compiler.
  36178. wl=$lt_lt_prog_compiler_wl
  36179. # Compiler flag to prevent dynamic linking.
  36180. link_static_flag=$lt_lt_prog_compiler_static
  36181. # Does compiler simultaneously support -c and -o options?
  36182. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  36183. # Whether or not to add -lc for building shared libraries.
  36184. build_libtool_need_lc=$archive_cmds_need_lc
  36185. # Whether or not to disallow shared libs when runtime libs are static.
  36186. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  36187. # Compiler flag to allow reflexive dlopens.
  36188. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  36189. # Compiler flag to generate shared objects directly from archives.
  36190. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  36191. # Whether the compiler copes with passing no objects directly.
  36192. compiler_needs_object=$lt_compiler_needs_object
  36193. # Create an old-style archive from a shared archive.
  36194. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  36195. # Create a temporary old-style archive to link instead of a shared archive.
  36196. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  36197. # Commands used to build a shared archive.
  36198. archive_cmds=$lt_archive_cmds
  36199. archive_expsym_cmds=$lt_archive_expsym_cmds
  36200. # Commands used to build a loadable module if different from building
  36201. # a shared archive.
  36202. module_cmds=$lt_module_cmds
  36203. module_expsym_cmds=$lt_module_expsym_cmds
  36204. # Whether we are building with GNU ld or not.
  36205. with_gnu_ld=$lt_with_gnu_ld
  36206. # Flag that allows shared libraries with undefined symbols to be built.
  36207. allow_undefined_flag=$lt_allow_undefined_flag
  36208. # Flag that enforces no undefined symbols.
  36209. no_undefined_flag=$lt_no_undefined_flag
  36210. # Flag to hardcode \$libdir into a binary during linking.
  36211. # This must work even if \$libdir does not exist
  36212. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  36213. # Whether we need a single "-rpath" flag with a separated argument.
  36214. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  36215. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  36216. # DIR into the resulting binary.
  36217. hardcode_direct=$hardcode_direct
  36218. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  36219. # DIR into the resulting binary and the resulting library dependency is
  36220. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  36221. # library is relocated.
  36222. hardcode_direct_absolute=$hardcode_direct_absolute
  36223. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  36224. # into the resulting binary.
  36225. hardcode_minus_L=$hardcode_minus_L
  36226. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  36227. # into the resulting binary.
  36228. hardcode_shlibpath_var=$hardcode_shlibpath_var
  36229. # Set to "yes" if building a shared library automatically hardcodes DIR
  36230. # into the library and all subsequent libraries and executables linked
  36231. # against it.
  36232. hardcode_automatic=$hardcode_automatic
  36233. # Set to yes if linker adds runtime paths of dependent libraries
  36234. # to runtime path list.
  36235. inherit_rpath=$inherit_rpath
  36236. # Whether libtool must link a program against all its dependency libraries.
  36237. link_all_deplibs=$link_all_deplibs
  36238. # Set to "yes" if exported symbols are required.
  36239. always_export_symbols=$always_export_symbols
  36240. # The commands to list exported symbols.
  36241. export_symbols_cmds=$lt_export_symbols_cmds
  36242. # Symbols that should not be listed in the preloaded symbols.
  36243. exclude_expsyms=$lt_exclude_expsyms
  36244. # Symbols that must always be exported.
  36245. include_expsyms=$lt_include_expsyms
  36246. # Commands necessary for linking programs (against libraries) with templates.
  36247. prelink_cmds=$lt_prelink_cmds
  36248. # Commands necessary for finishing linking programs.
  36249. postlink_cmds=$lt_postlink_cmds
  36250. # Specify filename containing input files.
  36251. file_list_spec=$lt_file_list_spec
  36252. # How to hardcode a shared library path into an executable.
  36253. hardcode_action=$hardcode_action
  36254. # ### END LIBTOOL CONFIG
  36255. _LT_EOF
  36256. cat <<'_LT_EOF' >> "$cfgfile"
  36257. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  36258. # func_munge_path_list VARIABLE PATH
  36259. # -----------------------------------
  36260. # VARIABLE is name of variable containing _space_ separated list of
  36261. # directories to be munged by the contents of PATH, which is string
  36262. # having a format:
  36263. # "DIR[:DIR]:"
  36264. # string "DIR[ DIR]" will be prepended to VARIABLE
  36265. # ":DIR[:DIR]"
  36266. # string "DIR[ DIR]" will be appended to VARIABLE
  36267. # "DIRP[:DIRP]::[DIRA:]DIRA"
  36268. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  36269. # "DIRA[ DIRA]" will be appended to VARIABLE
  36270. # "DIR[:DIR]"
  36271. # VARIABLE will be replaced by "DIR[ DIR]"
  36272. func_munge_path_list ()
  36273. {
  36274. case x$2 in
  36275. x)
  36276. ;;
  36277. *:)
  36278. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  36279. ;;
  36280. x:*)
  36281. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  36282. ;;
  36283. *::*)
  36284. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  36285. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  36286. ;;
  36287. *)
  36288. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  36289. ;;
  36290. esac
  36291. }
  36292. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  36293. func_cc_basename ()
  36294. {
  36295. for cc_temp in $*""; do
  36296. case $cc_temp in
  36297. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  36298. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  36299. \-*) ;;
  36300. *) break;;
  36301. esac
  36302. done
  36303. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  36304. }
  36305. # ### END FUNCTIONS SHARED WITH CONFIGURE
  36306. _LT_EOF
  36307. case $host_os in
  36308. aix3*)
  36309. cat <<\_LT_EOF >> "$cfgfile"
  36310. # AIX sometimes has problems with the GCC collect2 program. For some
  36311. # reason, if we set the COLLECT_NAMES environment variable, the problems
  36312. # vanish in a puff of smoke.
  36313. if test set != "${COLLECT_NAMES+set}"; then
  36314. COLLECT_NAMES=
  36315. export COLLECT_NAMES
  36316. fi
  36317. _LT_EOF
  36318. ;;
  36319. esac
  36320. ltmain=$ac_aux_dir/ltmain.sh
  36321. # We use sed instead of cat because bash on DJGPP gets confused if
  36322. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  36323. # text mode, it properly converts lines to CR/LF. This bash problem
  36324. # is reportedly fixed, but why not run on old versions too?
  36325. sed '$q' "$ltmain" >> "$cfgfile" \
  36326. || (rm -f "$cfgfile"; exit 1)
  36327. mv -f "$cfgfile" "$ofile" ||
  36328. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  36329. chmod +x "$ofile"
  36330. ;;
  36331. esac
  36332. done # for ac_tag
  36333. as_fn_exit 0
  36334. _ACEOF
  36335. ac_clean_files=$ac_clean_files_save
  36336. test $ac_write_fail = 0 ||
  36337. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  36338. # configure is writing to config.log, and then calls config.status.
  36339. # config.status does its own redirection, appending to config.log.
  36340. # Unfortunately, on DOS this fails, as config.log is still kept open
  36341. # by configure, so config.status won't be able to write to it; its
  36342. # output is simply discarded. So we exec the FD to /dev/null,
  36343. # effectively closing config.log, so it can be properly (re)opened and
  36344. # appended to by config.status. When coming back to configure, we
  36345. # need to make the FD available again.
  36346. if test "$no_create" != yes; then
  36347. ac_cs_success=:
  36348. ac_config_status_args=
  36349. test "$silent" = yes &&
  36350. ac_config_status_args="$ac_config_status_args --quiet"
  36351. exec 5>/dev/null
  36352. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  36353. exec 5>>config.log
  36354. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  36355. # would make configure fail if this is the last instruction.
  36356. $ac_cs_success || as_fn_exit 1
  36357. fi
  36358. #
  36359. # CONFIG_SUBDIRS section.
  36360. #
  36361. if test "$no_recursion" != yes; then
  36362. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  36363. # so they do not pile up.
  36364. ac_sub_configure_args=
  36365. ac_prev=
  36366. eval "set x $ac_configure_args"
  36367. shift
  36368. for ac_arg
  36369. do
  36370. if test -n "$ac_prev"; then
  36371. ac_prev=
  36372. continue
  36373. fi
  36374. case $ac_arg in
  36375. -cache-file | --cache-file | --cache-fil | --cache-fi \
  36376. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  36377. ac_prev=cache_file ;;
  36378. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  36379. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  36380. | --c=*)
  36381. ;;
  36382. --config-cache | -C)
  36383. ;;
  36384. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  36385. ac_prev=srcdir ;;
  36386. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  36387. ;;
  36388. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  36389. ac_prev=prefix ;;
  36390. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  36391. ;;
  36392. --disable-option-checking)
  36393. ;;
  36394. *)
  36395. case $ac_arg in
  36396. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  36397. esac
  36398. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  36399. esac
  36400. done
  36401. # Always prepend --prefix to ensure using the same prefix
  36402. # in subdir configurations.
  36403. ac_arg="--prefix=$prefix"
  36404. case $ac_arg in
  36405. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  36406. esac
  36407. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  36408. # Pass --silent
  36409. if test "$silent" = yes; then
  36410. ac_sub_configure_args="--silent $ac_sub_configure_args"
  36411. fi
  36412. # Always prepend --disable-option-checking to silence warnings, since
  36413. # different subdirs can have different --enable and --with options.
  36414. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  36415. ac_popdir=`pwd`
  36416. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  36417. # Do not complain, so a configure script can configure whichever
  36418. # parts of a large source tree are present.
  36419. test -d "$srcdir/$ac_dir" || continue
  36420. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  36421. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  36422. $as_echo "$ac_msg" >&6
  36423. as_dir="$ac_dir"; as_fn_mkdir_p
  36424. ac_builddir=.
  36425. case "$ac_dir" in
  36426. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  36427. *)
  36428. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  36429. # A ".." for each directory in $ac_dir_suffix.
  36430. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  36431. case $ac_top_builddir_sub in
  36432. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  36433. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  36434. esac ;;
  36435. esac
  36436. ac_abs_top_builddir=$ac_pwd
  36437. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  36438. # for backward compatibility:
  36439. ac_top_builddir=$ac_top_build_prefix
  36440. case $srcdir in
  36441. .) # We are building in place.
  36442. ac_srcdir=.
  36443. ac_top_srcdir=$ac_top_builddir_sub
  36444. ac_abs_top_srcdir=$ac_pwd ;;
  36445. [\\/]* | ?:[\\/]* ) # Absolute name.
  36446. ac_srcdir=$srcdir$ac_dir_suffix;
  36447. ac_top_srcdir=$srcdir
  36448. ac_abs_top_srcdir=$srcdir ;;
  36449. *) # Relative name.
  36450. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  36451. ac_top_srcdir=$ac_top_build_prefix$srcdir
  36452. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  36453. esac
  36454. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  36455. cd "$ac_dir"
  36456. # Check for guested configure; otherwise get Cygnus style configure.
  36457. if test -f "$ac_srcdir/configure.gnu"; then
  36458. ac_sub_configure=$ac_srcdir/configure.gnu
  36459. elif test -f "$ac_srcdir/configure"; then
  36460. ac_sub_configure=$ac_srcdir/configure
  36461. elif test -f "$ac_srcdir/configure.in"; then
  36462. # This should be Cygnus configure.
  36463. ac_sub_configure=$ac_aux_dir/configure
  36464. else
  36465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  36466. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  36467. ac_sub_configure=
  36468. fi
  36469. # The recursion is here.
  36470. if test -n "$ac_sub_configure"; then
  36471. # Make the cache file name correct relative to the subdirectory.
  36472. case $cache_file in
  36473. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  36474. *) # Relative name.
  36475. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  36476. esac
  36477. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  36478. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  36479. # The eval makes quoting arguments work.
  36480. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  36481. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  36482. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  36483. fi
  36484. cd "$ac_popdir"
  36485. done
  36486. fi
  36487. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  36488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  36489. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  36490. fi
  36491. tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
  36492. if test -z "$tmp_cpp"; then
  36493. tmp_cpp='cpp'
  36494. fi
  36495. cat >./tests/configurehelp.pm <<_EOF
  36496. # This is a generated file. Do not edit.
  36497. package configurehelp;
  36498. use strict;
  36499. use warnings;
  36500. use Exporter;
  36501. use vars qw(
  36502. @ISA
  36503. @EXPORT_OK
  36504. \$Cpreprocessor
  36505. );
  36506. @ISA = qw(Exporter);
  36507. @EXPORT_OK = qw(
  36508. \$Cpreprocessor
  36509. );
  36510. \$Cpreprocessor = '$tmp_cpp';
  36511. 1;
  36512. _EOF
  36513. ## ---------------------------------- ##
  36514. ## Start of distclean amending code ##
  36515. ## ---------------------------------- ##
  36516. for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
  36517. do
  36518. if test ! -f "$xc_subdir/Makefile"; then
  36519. echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
  36520. exit 1
  36521. fi
  36522. # Fetch dependency tracking file list from Makefile include lines.
  36523. xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
  36524. xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
  36525. # --disable-dependency-tracking might have been used, consequently
  36526. # there is nothing to amend without a dependency tracking file list.
  36527. if test $xc_cnt_words -gt 0; then
  36528. { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
  36529. $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
  36530. # Build Makefile specific patch hunk.
  36531. xc_p="$xc_subdir/xc_patch.tmp"
  36532. xc_rm_depfiles=`echo "$xc_inc_lines" \
  36533. | $SED 's%include% -rm -f%' 2>/dev/null`
  36534. xc_dep_subdirs=`echo "$xc_inc_lines" \
  36535. | $SED 's%include[ ][ ]*%%' 2>/dev/null \
  36536. | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
  36537. | sort | uniq`
  36538. echo "$xc_rm_depfiles" >$xc_p
  36539. for xc_dep_dir in $xc_dep_subdirs; do
  36540. echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
  36541. echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
  36542. echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
  36543. echo "${xc_tab}fi" >>$xc_p
  36544. done
  36545. # Build Makefile patching sed scripts.
  36546. xc_s1="$xc_subdir/xc_script_1.tmp"
  36547. xc_s2="$xc_subdir/xc_script_2.tmp"
  36548. xc_s3="$xc_subdir/xc_script_3.tmp"
  36549. cat >$xc_s1 <<\_EOT
  36550. /^distclean[ ]*:/,/^[^ ][^ ]*:/{
  36551. s/^.*(DEPDIR)/___xc_depdir_line___/
  36552. }
  36553. /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
  36554. s/^.*(DEPDIR)/___xc_depdir_line___/
  36555. }
  36556. _EOT
  36557. cat >$xc_s2 <<\_EOT
  36558. /___xc_depdir_line___$/{
  36559. N
  36560. /___xc_depdir_line___$/D
  36561. }
  36562. _EOT
  36563. cat >$xc_s3 <<_EOT
  36564. /^___xc_depdir_line___/{
  36565. r $xc_p
  36566. d
  36567. }
  36568. _EOT
  36569. # Apply patch to Makefile and cleanup.
  36570. $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
  36571. $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
  36572. $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
  36573. if test -f "$xc_subdir/Makefile.tmp3"; then
  36574. mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
  36575. fi
  36576. test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
  36577. test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
  36578. test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
  36579. test -f "$xc_p" && rm -f "$xc_p"
  36580. test -f "$xc_s1" && rm -f "$xc_s1"
  36581. test -f "$xc_s2" && rm -f "$xc_s2"
  36582. test -f "$xc_s3" && rm -f "$xc_s3"
  36583. fi
  36584. done
  36585. ## -------------------------------- ##
  36586. ## End of distclean amending code ##
  36587. ## -------------------------------- ##
  36588. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
  36589. curl version: ${CURLVERSION}
  36590. Host setup: ${host}
  36591. Install prefix: ${prefix}
  36592. Compiler: ${CC}
  36593. SSL support: ${curl_ssl_msg}
  36594. SSH support: ${curl_ssh_msg}
  36595. zlib support: ${curl_zlib_msg}
  36596. brotli support: ${curl_brotli_msg}
  36597. GSS-API support: ${curl_gss_msg}
  36598. TLS-SRP support: ${curl_tls_srp_msg}
  36599. resolver: ${curl_res_msg}
  36600. IPv6 support: ${curl_ipv6_msg}
  36601. Unix sockets support: ${curl_unix_sockets_msg}
  36602. IDN support: ${curl_idn_msg}
  36603. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  36604. Built-in manual: ${curl_manual_msg}
  36605. --libcurl option: ${curl_libcurl_msg}
  36606. Verbose errors: ${curl_verbose_msg}
  36607. SSPI support: ${curl_sspi_msg}
  36608. ca cert bundle: ${ca}${ca_warning}
  36609. ca cert path: ${capath}${capath_warning}
  36610. ca fallback: ${with_ca_fallback}
  36611. LDAP support: ${curl_ldap_msg}
  36612. LDAPS support: ${curl_ldaps_msg}
  36613. RTSP support: ${curl_rtsp_msg}
  36614. RTMP support: ${curl_rtmp_msg}
  36615. metalink support: ${curl_mtlnk_msg}
  36616. PSL support: ${curl_psl_msg}
  36617. HTTP2 support: ${curl_h2_msg}
  36618. Protocols: ${SUPPORT_PROTOCOLS}
  36619. " >&5
  36620. $as_echo "$as_me: Configured to build curl/libcurl:
  36621. curl version: ${CURLVERSION}
  36622. Host setup: ${host}
  36623. Install prefix: ${prefix}
  36624. Compiler: ${CC}
  36625. SSL support: ${curl_ssl_msg}
  36626. SSH support: ${curl_ssh_msg}
  36627. zlib support: ${curl_zlib_msg}
  36628. brotli support: ${curl_brotli_msg}
  36629. GSS-API support: ${curl_gss_msg}
  36630. TLS-SRP support: ${curl_tls_srp_msg}
  36631. resolver: ${curl_res_msg}
  36632. IPv6 support: ${curl_ipv6_msg}
  36633. Unix sockets support: ${curl_unix_sockets_msg}
  36634. IDN support: ${curl_idn_msg}
  36635. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  36636. Built-in manual: ${curl_manual_msg}
  36637. --libcurl option: ${curl_libcurl_msg}
  36638. Verbose errors: ${curl_verbose_msg}
  36639. SSPI support: ${curl_sspi_msg}
  36640. ca cert bundle: ${ca}${ca_warning}
  36641. ca cert path: ${capath}${capath_warning}
  36642. ca fallback: ${with_ca_fallback}
  36643. LDAP support: ${curl_ldap_msg}
  36644. LDAPS support: ${curl_ldaps_msg}
  36645. RTSP support: ${curl_rtsp_msg}
  36646. RTMP support: ${curl_rtmp_msg}
  36647. metalink support: ${curl_mtlnk_msg}
  36648. PSL support: ${curl_psl_msg}
  36649. HTTP2 support: ${curl_h2_msg}
  36650. Protocols: ${SUPPORT_PROTOCOLS}
  36651. " >&6;}