configure 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199
  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: http://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 - 2014 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. # Stop dead until user provides 'PATH_SEPARATOR' definition.
  207. echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
  208. exit 1
  209. fi
  210. else
  211. # Separator with the greater directory count is the auto-detected one.
  212. if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
  213. xc_tst_auto_separator=';'
  214. else
  215. xc_tst_auto_separator=':'
  216. fi
  217. if test -z "$PATH_SEPARATOR"; then
  218. # Simply use the auto-detected one when not already set.
  219. PATH_SEPARATOR=$xc_tst_auto_separator
  220. elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
  221. echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
  222. fi
  223. fi
  224. xc_PATH_SEPARATOR=$PATH_SEPARATOR
  225. xc_configure_preamble_result='yes'
  226. ## -------------------- ##
  227. ## M4sh Initialization. ##
  228. ## -------------------- ##
  229. # Be more Bourne compatible
  230. DUALCASE=1; export DUALCASE # for MKS sh
  231. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  232. emulate sh
  233. NULLCMD=:
  234. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  235. # is contrary to our usage. Disable this feature.
  236. alias -g '${1+"$@"}'='"$@"'
  237. setopt NO_GLOB_SUBST
  238. else
  239. case `(set -o) 2>/dev/null` in #(
  240. *posix*) :
  241. set -o posix ;; #(
  242. *) :
  243. ;;
  244. esac
  245. fi
  246. as_nl='
  247. '
  248. export as_nl
  249. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  250. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  251. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  252. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  253. # Prefer a ksh shell builtin over an external printf program on Solaris,
  254. # but without wasting forks for bash or zsh.
  255. if test -z "$BASH_VERSION$ZSH_VERSION" \
  256. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  257. as_echo='print -r --'
  258. as_echo_n='print -rn --'
  259. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  260. as_echo='printf %s\n'
  261. as_echo_n='printf %s'
  262. else
  263. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  264. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  265. as_echo_n='/usr/ucb/echo -n'
  266. else
  267. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  268. as_echo_n_body='eval
  269. arg=$1;
  270. case $arg in #(
  271. *"$as_nl"*)
  272. expr "X$arg" : "X\\(.*\\)$as_nl";
  273. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  274. esac;
  275. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  276. '
  277. export as_echo_n_body
  278. as_echo_n='sh -c $as_echo_n_body as_echo'
  279. fi
  280. export as_echo_body
  281. as_echo='sh -c $as_echo_body as_echo'
  282. fi
  283. # IFS
  284. # We need space, tab and new line, in precisely that order. Quoting is
  285. # there to prevent editors from complaining about space-tab.
  286. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  287. # splitting by setting IFS to empty value.)
  288. IFS=" "" $as_nl"
  289. # Find who we are. Look in the path if we contain no directory separator.
  290. as_myself=
  291. case $0 in #((
  292. *[\\/]* ) as_myself=$0 ;;
  293. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  294. for as_dir in $PATH
  295. do
  296. IFS=$as_save_IFS
  297. test -z "$as_dir" && as_dir=.
  298. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  299. done
  300. IFS=$as_save_IFS
  301. ;;
  302. esac
  303. # We did not find ourselves, most probably we were run as `sh COMMAND'
  304. # in which case we are not to be found in the path.
  305. if test "x$as_myself" = x; then
  306. as_myself=$0
  307. fi
  308. if test ! -f "$as_myself"; then
  309. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  310. exit 1
  311. fi
  312. # Unset variables that we do not need and which cause bugs (e.g. in
  313. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  314. # suppresses any "Segmentation fault" message there. '((' could
  315. # trigger a bug in pdksh 5.2.14.
  316. for as_var in BASH_ENV ENV MAIL MAILPATH
  317. do eval test x\${$as_var+set} = xset \
  318. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  319. done
  320. PS1='$ '
  321. PS2='> '
  322. PS4='+ '
  323. # NLS nuisances.
  324. LC_ALL=C
  325. export LC_ALL
  326. LANGUAGE=C
  327. export LANGUAGE
  328. # CDPATH.
  329. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  330. # Use a proper internal environment variable to ensure we don't fall
  331. # into an infinite loop, continuously re-executing ourselves.
  332. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  333. _as_can_reexec=no; export _as_can_reexec;
  334. # We cannot yet assume a decent shell, so we have to provide a
  335. # neutralization value for shells without unset; and this also
  336. # works around shells that cannot unset nonexistent variables.
  337. # Preserve -v and -x to the replacement shell.
  338. BASH_ENV=/dev/null
  339. ENV=/dev/null
  340. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  341. case $- in # ((((
  342. *v*x* | *x*v* ) as_opts=-vx ;;
  343. *v* ) as_opts=-v ;;
  344. *x* ) as_opts=-x ;;
  345. * ) as_opts= ;;
  346. esac
  347. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  348. # Admittedly, this is quite paranoid, since all the known shells bail
  349. # out after a failed `exec'.
  350. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  351. as_fn_exit 255
  352. fi
  353. # We don't want this to propagate to other subprocesses.
  354. { _as_can_reexec=; unset _as_can_reexec;}
  355. if test "x$CONFIG_SHELL" = x; then
  356. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  357. emulate sh
  358. NULLCMD=:
  359. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  360. # is contrary to our usage. Disable this feature.
  361. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  362. setopt NO_GLOB_SUBST
  363. else
  364. case \`(set -o) 2>/dev/null\` in #(
  365. *posix*) :
  366. set -o posix ;; #(
  367. *) :
  368. ;;
  369. esac
  370. fi
  371. "
  372. as_required="as_fn_return () { (exit \$1); }
  373. as_fn_success () { as_fn_return 0; }
  374. as_fn_failure () { as_fn_return 1; }
  375. as_fn_ret_success () { return 0; }
  376. as_fn_ret_failure () { return 1; }
  377. exitcode=0
  378. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  379. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  380. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  381. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  382. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  383. else
  384. exitcode=1; echo positional parameters were not saved.
  385. fi
  386. test x\$exitcode = x0 || exit 1
  387. test -x / || exit 1"
  388. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  389. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  390. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  391. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  392. test \$(( 1 + 1 )) = 2 || exit 1
  393. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  394. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  395. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  396. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  397. PATH=/empty FPATH=/empty; export PATH FPATH
  398. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  399. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  400. if (eval "$as_required") 2>/dev/null; then :
  401. as_have_required=yes
  402. else
  403. as_have_required=no
  404. fi
  405. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  406. else
  407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  408. as_found=false
  409. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  410. do
  411. IFS=$as_save_IFS
  412. test -z "$as_dir" && as_dir=.
  413. as_found=:
  414. case $as_dir in #(
  415. /*)
  416. for as_base in sh bash ksh sh5; do
  417. # Try only shells that exist, to save several forks.
  418. as_shell=$as_dir/$as_base
  419. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  420. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  421. CONFIG_SHELL=$as_shell as_have_required=yes
  422. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  423. break 2
  424. fi
  425. fi
  426. done;;
  427. esac
  428. as_found=false
  429. done
  430. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  431. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  432. CONFIG_SHELL=$SHELL as_have_required=yes
  433. fi; }
  434. IFS=$as_save_IFS
  435. if test "x$CONFIG_SHELL" != x; then :
  436. export CONFIG_SHELL
  437. # We cannot yet assume a decent shell, so we have to provide a
  438. # neutralization value for shells without unset; and this also
  439. # works around shells that cannot unset nonexistent variables.
  440. # Preserve -v and -x to the replacement shell.
  441. BASH_ENV=/dev/null
  442. ENV=/dev/null
  443. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  444. case $- in # ((((
  445. *v*x* | *x*v* ) as_opts=-vx ;;
  446. *v* ) as_opts=-v ;;
  447. *x* ) as_opts=-x ;;
  448. * ) as_opts= ;;
  449. esac
  450. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  451. # Admittedly, this is quite paranoid, since all the known shells bail
  452. # out after a failed `exec'.
  453. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  454. exit 255
  455. fi
  456. if test x$as_have_required = xno; then :
  457. $as_echo "$0: This script requires a shell more modern than all"
  458. $as_echo "$0: the shells that I found on your system."
  459. if test x${ZSH_VERSION+set} = xset ; then
  460. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  461. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  462. else
  463. $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
  464. $0: mailing list: http://curl.haxx.se/mail/ about your
  465. $0: system, including any error possibly output before this
  466. $0: message. Then install a modern shell, or manually run
  467. $0: the script under such a shell if you do have one."
  468. fi
  469. exit 1
  470. fi
  471. fi
  472. fi
  473. SHELL=${CONFIG_SHELL-/bin/sh}
  474. export SHELL
  475. # Unset more variables known to interfere with behavior of common tools.
  476. CLICOLOR_FORCE= GREP_OPTIONS=
  477. unset CLICOLOR_FORCE GREP_OPTIONS
  478. ## --------------------- ##
  479. ## M4sh Shell Functions. ##
  480. ## --------------------- ##
  481. # as_fn_unset VAR
  482. # ---------------
  483. # Portably unset VAR.
  484. as_fn_unset ()
  485. {
  486. { eval $1=; unset $1;}
  487. }
  488. as_unset=as_fn_unset
  489. # as_fn_set_status STATUS
  490. # -----------------------
  491. # Set $? to STATUS, without forking.
  492. as_fn_set_status ()
  493. {
  494. return $1
  495. } # as_fn_set_status
  496. # as_fn_exit STATUS
  497. # -----------------
  498. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  499. as_fn_exit ()
  500. {
  501. set +e
  502. as_fn_set_status $1
  503. exit $1
  504. } # as_fn_exit
  505. # as_fn_mkdir_p
  506. # -------------
  507. # Create "$as_dir" as a directory, including parents if necessary.
  508. as_fn_mkdir_p ()
  509. {
  510. case $as_dir in #(
  511. -*) as_dir=./$as_dir;;
  512. esac
  513. test -d "$as_dir" || eval $as_mkdir_p || {
  514. as_dirs=
  515. while :; do
  516. case $as_dir in #(
  517. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  518. *) as_qdir=$as_dir;;
  519. esac
  520. as_dirs="'$as_qdir' $as_dirs"
  521. as_dir=`$as_dirname -- "$as_dir" ||
  522. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  523. X"$as_dir" : 'X\(//\)[^/]' \| \
  524. X"$as_dir" : 'X\(//\)$' \| \
  525. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  526. $as_echo X"$as_dir" |
  527. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  528. s//\1/
  529. q
  530. }
  531. /^X\(\/\/\)[^/].*/{
  532. s//\1/
  533. q
  534. }
  535. /^X\(\/\/\)$/{
  536. s//\1/
  537. q
  538. }
  539. /^X\(\/\).*/{
  540. s//\1/
  541. q
  542. }
  543. s/.*/./; q'`
  544. test -d "$as_dir" && break
  545. done
  546. test -z "$as_dirs" || eval "mkdir $as_dirs"
  547. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  548. } # as_fn_mkdir_p
  549. # as_fn_executable_p FILE
  550. # -----------------------
  551. # Test if FILE is an executable regular file.
  552. as_fn_executable_p ()
  553. {
  554. test -f "$1" && test -x "$1"
  555. } # as_fn_executable_p
  556. # as_fn_append VAR VALUE
  557. # ----------------------
  558. # Append the text in VALUE to the end of the definition contained in VAR. Take
  559. # advantage of any shell optimizations that allow amortized linear growth over
  560. # repeated appends, instead of the typical quadratic growth present in naive
  561. # implementations.
  562. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  563. eval 'as_fn_append ()
  564. {
  565. eval $1+=\$2
  566. }'
  567. else
  568. as_fn_append ()
  569. {
  570. eval $1=\$$1\$2
  571. }
  572. fi # as_fn_append
  573. # as_fn_arith ARG...
  574. # ------------------
  575. # Perform arithmetic evaluation on the ARGs, and store the result in the
  576. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  577. # must be portable across $(()) and expr.
  578. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  579. eval 'as_fn_arith ()
  580. {
  581. as_val=$(( $* ))
  582. }'
  583. else
  584. as_fn_arith ()
  585. {
  586. as_val=`expr "$@" || test $? -eq 1`
  587. }
  588. fi # as_fn_arith
  589. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  590. # ----------------------------------------
  591. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  592. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  593. # script with STATUS, using 1 if that was 0.
  594. as_fn_error ()
  595. {
  596. as_status=$1; test $as_status -eq 0 && as_status=1
  597. if test "$4"; then
  598. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  599. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  600. fi
  601. $as_echo "$as_me: error: $2" >&2
  602. as_fn_exit $as_status
  603. } # as_fn_error
  604. if expr a : '\(a\)' >/dev/null 2>&1 &&
  605. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  606. as_expr=expr
  607. else
  608. as_expr=false
  609. fi
  610. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  611. as_basename=basename
  612. else
  613. as_basename=false
  614. fi
  615. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  616. as_dirname=dirname
  617. else
  618. as_dirname=false
  619. fi
  620. as_me=`$as_basename -- "$0" ||
  621. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  624. $as_echo X/"$0" |
  625. sed '/^.*\/\([^/][^/]*\)\/*$/{
  626. s//\1/
  627. q
  628. }
  629. /^X\/\(\/\/\)$/{
  630. s//\1/
  631. q
  632. }
  633. /^X\/\(\/\).*/{
  634. s//\1/
  635. q
  636. }
  637. s/.*/./; q'`
  638. # Avoid depending upon Character Ranges.
  639. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  640. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  641. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  642. as_cr_digits='0123456789'
  643. as_cr_alnum=$as_cr_Letters$as_cr_digits
  644. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  645. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  646. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  647. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  648. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  649. sed -n '
  650. p
  651. /[$]LINENO/=
  652. ' <$as_myself |
  653. sed '
  654. s/[$]LINENO.*/&-/
  655. t lineno
  656. b
  657. :lineno
  658. N
  659. :loop
  660. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  661. t loop
  662. s/-\n.*//
  663. ' >$as_me.lineno &&
  664. chmod +x "$as_me.lineno" ||
  665. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  666. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  667. # already done that, so ensure we don't try to do so again and fall
  668. # in an infinite loop. This has already happened in practice.
  669. _as_can_reexec=no; export _as_can_reexec
  670. # Don't try to exec as it changes $[0], causing all sort of problems
  671. # (the dirname of $[0] is not the place where we might find the
  672. # original and so on. Autoconf is especially sensitive to this).
  673. . "./$as_me.lineno"
  674. # Exit status is that of the last command.
  675. exit
  676. }
  677. ECHO_C= ECHO_N= ECHO_T=
  678. case `echo -n x` in #(((((
  679. -n*)
  680. case `echo 'xy\c'` in
  681. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  682. xy) ECHO_C='\c';;
  683. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  684. ECHO_T=' ';;
  685. esac;;
  686. *)
  687. ECHO_N='-n';;
  688. esac
  689. rm -f conf$$ conf$$.exe conf$$.file
  690. if test -d conf$$.dir; then
  691. rm -f conf$$.dir/conf$$.file
  692. else
  693. rm -f conf$$.dir
  694. mkdir conf$$.dir 2>/dev/null
  695. fi
  696. if (echo >conf$$.file) 2>/dev/null; then
  697. if ln -s conf$$.file conf$$ 2>/dev/null; then
  698. as_ln_s='ln -s'
  699. # ... but there are two gotchas:
  700. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  701. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  702. # In both cases, we have to default to `cp -pR'.
  703. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  704. as_ln_s='cp -pR'
  705. elif ln conf$$.file conf$$ 2>/dev/null; then
  706. as_ln_s=ln
  707. else
  708. as_ln_s='cp -pR'
  709. fi
  710. else
  711. as_ln_s='cp -pR'
  712. fi
  713. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  714. rmdir conf$$.dir 2>/dev/null
  715. if mkdir -p . 2>/dev/null; then
  716. as_mkdir_p='mkdir -p "$as_dir"'
  717. else
  718. test -d ./-p && rmdir ./-p
  719. as_mkdir_p=false
  720. fi
  721. as_test_x='test -x'
  722. as_executable_p=as_fn_executable_p
  723. # Sed expression to map a string onto a valid CPP name.
  724. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  725. # Sed expression to map a string onto a valid variable name.
  726. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  727. SHELL=${CONFIG_SHELL-/bin/sh}
  728. test -n "$DJDIR" || exec 7<&0 </dev/null
  729. exec 6>&1
  730. # Name of the host.
  731. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  732. # so uname gets run too.
  733. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  734. #
  735. # Initializations.
  736. #
  737. ac_default_prefix=/usr/local
  738. ac_clean_files=
  739. ac_config_libobj_dir=.
  740. LIBOBJS=
  741. cross_compiling=no
  742. subdirs=
  743. MFLAGS=
  744. MAKEFLAGS=
  745. # Identity of this package.
  746. PACKAGE_NAME='curl'
  747. PACKAGE_TARNAME='curl'
  748. PACKAGE_VERSION='-'
  749. PACKAGE_STRING='curl -'
  750. PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
  751. PACKAGE_URL=''
  752. ac_unique_file="lib/urldata.h"
  753. # Factoring default headers for most tests.
  754. ac_includes_default="\
  755. #include <stdio.h>
  756. #ifdef HAVE_SYS_TYPES_H
  757. # include <sys/types.h>
  758. #endif
  759. #ifdef HAVE_SYS_STAT_H
  760. # include <sys/stat.h>
  761. #endif
  762. #ifdef STDC_HEADERS
  763. # include <stdlib.h>
  764. # include <stddef.h>
  765. #else
  766. # ifdef HAVE_STDLIB_H
  767. # include <stdlib.h>
  768. # endif
  769. #endif
  770. #ifdef HAVE_STRING_H
  771. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  772. # include <memory.h>
  773. # endif
  774. # include <string.h>
  775. #endif
  776. #ifdef HAVE_STRINGS_H
  777. # include <strings.h>
  778. #endif
  779. #ifdef HAVE_INTTYPES_H
  780. # include <inttypes.h>
  781. #endif
  782. #ifdef HAVE_STDINT_H
  783. # include <stdint.h>
  784. #endif
  785. #ifdef HAVE_UNISTD_H
  786. # include <unistd.h>
  787. #endif"
  788. enable_option_checking=no
  789. ac_subst_vars='am__EXEEXT_FALSE
  790. am__EXEEXT_TRUE
  791. LTLIBOBJS
  792. LIBOBJS
  793. SUPPORT_PROTOCOLS
  794. SUPPORT_FEATURES
  795. ENABLE_STATIC
  796. ENABLE_SHARED
  797. CROSSCOMPILING_FALSE
  798. CROSSCOMPILING_TRUE
  799. BLANK_AT_MAKETIME
  800. CURL_NETWORK_AND_TIME_LIBS
  801. CURL_NETWORK_LIBS
  802. LIBCURL_LIBS
  803. SONAME_BUMP_FALSE
  804. SONAME_BUMP_TRUE
  805. CFLAG_CURL_SYMBOL_HIDING
  806. DOING_CURL_SYMBOL_HIDING_FALSE
  807. DOING_CURL_SYMBOL_HIDING_TRUE
  808. BUILD_LIBHOSTNAME_FALSE
  809. BUILD_LIBHOSTNAME_TRUE
  810. USE_EMBEDDED_ARES_FALSE
  811. USE_EMBEDDED_ARES_TRUE
  812. USE_ARES
  813. subdirs
  814. USE_MANUAL_FALSE
  815. USE_MANUAL_TRUE
  816. MANOPT
  817. NROFF
  818. PERL
  819. IPV6_ENABLED
  820. USE_NGHTTP2
  821. IDN_ENABLED
  822. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
  823. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
  824. CURL_LT_SHLIB_VERSIONED_FLAVOUR
  825. USE_LIBRTMP
  826. USE_LIBSSH2
  827. LIBMETALINK_CPPFLAGS
  828. LIBMETALINK_LDFLAGS
  829. LIBMETALINK_LIBS
  830. CURL_CA_BUNDLE
  831. SSL_ENABLED
  832. USE_AXTLS
  833. USE_NSS
  834. USE_CYASSL
  835. USE_POLARSSL
  836. HAVE_GNUTLS_SRP
  837. USE_GNUTLS_NETTLE
  838. USE_GNUTLS
  839. HAVE_SSLEAY_SRP
  840. RANDOM_FILE
  841. USE_SSLEAY
  842. PKGCONFIG
  843. USE_DARWINSSL
  844. USE_WINDOWS_SSPI
  845. USE_SCHANNEL
  846. USE_OPENLDAP
  847. ZLIB_LIBS
  848. HAVE_LIBZ_FALSE
  849. HAVE_LIBZ_TRUE
  850. HAVE_LIBZ
  851. CURL_DISABLE_GOPHER
  852. CURL_DISABLE_SMTP
  853. CURL_DISABLE_IMAP
  854. CURL_DISABLE_POP3
  855. CURL_DISABLE_TFTP
  856. CURL_DISABLE_TELNET
  857. CURL_DISABLE_DICT
  858. CURL_DISABLE_PROXY
  859. HAVE_LDAP_SSL
  860. CURL_DISABLE_LDAPS
  861. CURL_DISABLE_LDAP
  862. CURL_DISABLE_FILE
  863. CURL_DISABLE_FTP
  864. CURL_DISABLE_RTSP
  865. CURL_DISABLE_HTTP
  866. DOING_NATIVE_WINDOWS_FALSE
  867. DOING_NATIVE_WINDOWS_TRUE
  868. BUILD_UNITTESTS_FALSE
  869. BUILD_UNITTESTS_TRUE
  870. CURLDEBUG_FALSE
  871. CURLDEBUG_TRUE
  872. USE_EXPLICIT_LIB_DEPS_FALSE
  873. USE_EXPLICIT_LIB_DEPS_TRUE
  874. REQUIRE_LIB_DEPS
  875. CPPFLAG_CURL_STATICLIB
  876. USE_CPPFLAG_CURL_STATICLIB_FALSE
  877. USE_CPPFLAG_CURL_STATICLIB_TRUE
  878. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
  879. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
  880. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
  881. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
  882. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
  883. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
  884. OTOOL64
  885. OTOOL
  886. LIPO
  887. NMEDIT
  888. DSYMUTIL
  889. MANIFEST_TOOL
  890. RANLIB
  891. ac_ct_AR
  892. LN_S
  893. NM
  894. ac_ct_DUMPBIN
  895. DUMPBIN
  896. LD
  897. FGREP
  898. LIBTOOL
  899. OBJDUMP
  900. DLLTOOL
  901. AS
  902. host_os
  903. host_vendor
  904. host_cpu
  905. host
  906. build_os
  907. build_vendor
  908. build_cpu
  909. build
  910. PKGADD_VENDOR
  911. PKGADD_NAME
  912. PKGADD_PKG
  913. VERSIONNUM
  914. CURLVERSION
  915. AM_BACKSLASH
  916. AM_DEFAULT_VERBOSITY
  917. AM_DEFAULT_V
  918. AM_V
  919. am__fastdepCC_FALSE
  920. am__fastdepCC_TRUE
  921. CCDEPMODE
  922. am__nodep
  923. AMDEPBACKSLASH
  924. AMDEP_FALSE
  925. AMDEP_TRUE
  926. am__quote
  927. am__include
  928. DEPDIR
  929. am__untar
  930. am__tar
  931. AMTAR
  932. am__leading_dot
  933. SET_MAKE
  934. AWK
  935. mkdir_p
  936. MKDIR_P
  937. INSTALL_STRIP_PROGRAM
  938. STRIP
  939. install_sh
  940. MAKEINFO
  941. AUTOHEADER
  942. AUTOMAKE
  943. AUTOCONF
  944. ACLOCAL
  945. VERSION
  946. PACKAGE
  947. CYGPATH_W
  948. am__isrc
  949. CPP
  950. OBJEXT
  951. EXEEXT
  952. ac_ct_CC
  953. CPPFLAGS
  954. LDFLAGS
  955. CFLAGS
  956. CC
  957. INSTALL_DATA
  958. INSTALL_SCRIPT
  959. INSTALL_PROGRAM
  960. libext
  961. AR
  962. EGREP
  963. GREP
  964. SED
  965. CURL_CFLAG_EXTRAS
  966. CONFIGURE_OPTIONS
  967. MAINT
  968. MAINTAINER_MODE_FALSE
  969. MAINTAINER_MODE_TRUE
  970. target_alias
  971. host_alias
  972. build_alias
  973. LIBS
  974. ECHO_T
  975. ECHO_N
  976. ECHO_C
  977. DEFS
  978. mandir
  979. localedir
  980. libdir
  981. psdir
  982. pdfdir
  983. dvidir
  984. htmldir
  985. infodir
  986. docdir
  987. oldincludedir
  988. includedir
  989. localstatedir
  990. sharedstatedir
  991. sysconfdir
  992. datadir
  993. datarootdir
  994. libexecdir
  995. sbindir
  996. bindir
  997. program_transform_name
  998. prefix
  999. exec_prefix
  1000. PACKAGE_URL
  1001. PACKAGE_BUGREPORT
  1002. PACKAGE_STRING
  1003. PACKAGE_VERSION
  1004. PACKAGE_TARNAME
  1005. PACKAGE_NAME
  1006. SHELL
  1007. PATH_SEPARATOR'
  1008. ac_subst_files=''
  1009. ac_user_opts='
  1010. enable_option_checking
  1011. enable_maintainer_mode
  1012. enable_debug
  1013. enable_optimize
  1014. enable_warnings
  1015. enable_werror
  1016. enable_curldebug
  1017. enable_symbol_hiding
  1018. enable_hidden_symbols
  1019. enable_ares
  1020. enable_dependency_tracking
  1021. enable_silent_rules
  1022. enable_largefile
  1023. enable_shared
  1024. enable_static
  1025. with_pic
  1026. enable_fast_install
  1027. with_gnu_ld
  1028. with_sysroot
  1029. enable_libtool_lock
  1030. enable_http
  1031. enable_ftp
  1032. enable_file
  1033. enable_ldap
  1034. enable_ldaps
  1035. enable_rtsp
  1036. enable_proxy
  1037. enable_dict
  1038. enable_telnet
  1039. enable_tftp
  1040. enable_pop3
  1041. enable_imap
  1042. enable_smtp
  1043. enable_gopher
  1044. enable_manual
  1045. enable_libcurl_option
  1046. enable_libgcc
  1047. with_zlib
  1048. with_ldap_lib
  1049. with_lber_lib
  1050. enable_ipv6
  1051. with_spnego
  1052. with_gssapi_includes
  1053. with_gssapi_libs
  1054. with_gssapi
  1055. with_winssl
  1056. with_darwinssl
  1057. with_ssl
  1058. with_egd_socket
  1059. with_random
  1060. with_gnutls
  1061. with_polarssl
  1062. with_cyassl
  1063. with_nss
  1064. with_axtls
  1065. with_ca_bundle
  1066. with_ca_path
  1067. with_libmetalink
  1068. with_libssh2
  1069. with_librtmp
  1070. enable_versioned_symbols
  1071. with_winidn
  1072. with_libidn
  1073. with_nghttp2
  1074. enable_threaded_resolver
  1075. enable_verbose
  1076. enable_sspi
  1077. enable_crypto_auth
  1078. enable_ntlm_wb
  1079. enable_tls_srp
  1080. enable_cookies
  1081. enable_soname_bump
  1082. '
  1083. ac_precious_vars='build_alias
  1084. host_alias
  1085. target_alias
  1086. CC
  1087. CFLAGS
  1088. LDFLAGS
  1089. LIBS
  1090. CPPFLAGS
  1091. CPP'
  1092. ac_subdirs_all='ares'
  1093. # Initialize some variables set by options.
  1094. ac_init_help=
  1095. ac_init_version=false
  1096. ac_unrecognized_opts=
  1097. ac_unrecognized_sep=
  1098. # The variables have the same names as the options, with
  1099. # dashes changed to underlines.
  1100. cache_file=/dev/null
  1101. exec_prefix=NONE
  1102. no_create=
  1103. no_recursion=
  1104. prefix=NONE
  1105. program_prefix=NONE
  1106. program_suffix=NONE
  1107. program_transform_name=s,x,x,
  1108. silent=
  1109. site=
  1110. srcdir=
  1111. verbose=
  1112. x_includes=NONE
  1113. x_libraries=NONE
  1114. # Installation directory options.
  1115. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1116. # and all the variables that are supposed to be based on exec_prefix
  1117. # by default will actually change.
  1118. # Use braces instead of parens because sh, perl, etc. also accept them.
  1119. # (The list follows the same order as the GNU Coding Standards.)
  1120. bindir='${exec_prefix}/bin'
  1121. sbindir='${exec_prefix}/sbin'
  1122. libexecdir='${exec_prefix}/libexec'
  1123. datarootdir='${prefix}/share'
  1124. datadir='${datarootdir}'
  1125. sysconfdir='${prefix}/etc'
  1126. sharedstatedir='${prefix}/com'
  1127. localstatedir='${prefix}/var'
  1128. includedir='${prefix}/include'
  1129. oldincludedir='/usr/include'
  1130. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1131. infodir='${datarootdir}/info'
  1132. htmldir='${docdir}'
  1133. dvidir='${docdir}'
  1134. pdfdir='${docdir}'
  1135. psdir='${docdir}'
  1136. libdir='${exec_prefix}/lib'
  1137. localedir='${datarootdir}/locale'
  1138. mandir='${datarootdir}/man'
  1139. ac_prev=
  1140. ac_dashdash=
  1141. for ac_option
  1142. do
  1143. # If the previous option needs an argument, assign it.
  1144. if test -n "$ac_prev"; then
  1145. eval $ac_prev=\$ac_option
  1146. ac_prev=
  1147. continue
  1148. fi
  1149. case $ac_option in
  1150. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1151. *=) ac_optarg= ;;
  1152. *) ac_optarg=yes ;;
  1153. esac
  1154. # Accept the important Cygnus configure options, so we can diagnose typos.
  1155. case $ac_dashdash$ac_option in
  1156. --)
  1157. ac_dashdash=yes ;;
  1158. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1159. ac_prev=bindir ;;
  1160. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1161. bindir=$ac_optarg ;;
  1162. -build | --build | --buil | --bui | --bu)
  1163. ac_prev=build_alias ;;
  1164. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1165. build_alias=$ac_optarg ;;
  1166. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1167. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1168. ac_prev=cache_file ;;
  1169. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1170. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1171. cache_file=$ac_optarg ;;
  1172. --config-cache | -C)
  1173. cache_file=config.cache ;;
  1174. -datadir | --datadir | --datadi | --datad)
  1175. ac_prev=datadir ;;
  1176. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1177. datadir=$ac_optarg ;;
  1178. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1179. | --dataroo | --dataro | --datar)
  1180. ac_prev=datarootdir ;;
  1181. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1182. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1183. datarootdir=$ac_optarg ;;
  1184. -disable-* | --disable-*)
  1185. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1186. # Reject names that are not valid shell variable names.
  1187. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1188. as_fn_error $? "invalid feature name: $ac_useropt"
  1189. ac_useropt_orig=$ac_useropt
  1190. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1191. case $ac_user_opts in
  1192. *"
  1193. "enable_$ac_useropt"
  1194. "*) ;;
  1195. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1196. ac_unrecognized_sep=', ';;
  1197. esac
  1198. eval enable_$ac_useropt=no ;;
  1199. -docdir | --docdir | --docdi | --doc | --do)
  1200. ac_prev=docdir ;;
  1201. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1202. docdir=$ac_optarg ;;
  1203. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1204. ac_prev=dvidir ;;
  1205. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1206. dvidir=$ac_optarg ;;
  1207. -enable-* | --enable-*)
  1208. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1209. # Reject names that are not valid shell variable names.
  1210. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1211. as_fn_error $? "invalid feature name: $ac_useropt"
  1212. ac_useropt_orig=$ac_useropt
  1213. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1214. case $ac_user_opts in
  1215. *"
  1216. "enable_$ac_useropt"
  1217. "*) ;;
  1218. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1219. ac_unrecognized_sep=', ';;
  1220. esac
  1221. eval enable_$ac_useropt=\$ac_optarg ;;
  1222. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1223. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1224. | --exec | --exe | --ex)
  1225. ac_prev=exec_prefix ;;
  1226. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1227. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1228. | --exec=* | --exe=* | --ex=*)
  1229. exec_prefix=$ac_optarg ;;
  1230. -gas | --gas | --ga | --g)
  1231. # Obsolete; use --with-gas.
  1232. with_gas=yes ;;
  1233. -help | --help | --hel | --he | -h)
  1234. ac_init_help=long ;;
  1235. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1236. ac_init_help=recursive ;;
  1237. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1238. ac_init_help=short ;;
  1239. -host | --host | --hos | --ho)
  1240. ac_prev=host_alias ;;
  1241. -host=* | --host=* | --hos=* | --ho=*)
  1242. host_alias=$ac_optarg ;;
  1243. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1244. ac_prev=htmldir ;;
  1245. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1246. | --ht=*)
  1247. htmldir=$ac_optarg ;;
  1248. -includedir | --includedir | --includedi | --included | --include \
  1249. | --includ | --inclu | --incl | --inc)
  1250. ac_prev=includedir ;;
  1251. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1252. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1253. includedir=$ac_optarg ;;
  1254. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1255. ac_prev=infodir ;;
  1256. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1257. infodir=$ac_optarg ;;
  1258. -libdir | --libdir | --libdi | --libd)
  1259. ac_prev=libdir ;;
  1260. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1261. libdir=$ac_optarg ;;
  1262. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1263. | --libexe | --libex | --libe)
  1264. ac_prev=libexecdir ;;
  1265. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1266. | --libexe=* | --libex=* | --libe=*)
  1267. libexecdir=$ac_optarg ;;
  1268. -localedir | --localedir | --localedi | --localed | --locale)
  1269. ac_prev=localedir ;;
  1270. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1271. localedir=$ac_optarg ;;
  1272. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1273. | --localstate | --localstat | --localsta | --localst | --locals)
  1274. ac_prev=localstatedir ;;
  1275. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1276. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1277. localstatedir=$ac_optarg ;;
  1278. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1279. ac_prev=mandir ;;
  1280. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1281. mandir=$ac_optarg ;;
  1282. -nfp | --nfp | --nf)
  1283. # Obsolete; use --without-fp.
  1284. with_fp=no ;;
  1285. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1286. | --no-cr | --no-c | -n)
  1287. no_create=yes ;;
  1288. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1289. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1290. no_recursion=yes ;;
  1291. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1292. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1293. | --oldin | --oldi | --old | --ol | --o)
  1294. ac_prev=oldincludedir ;;
  1295. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1296. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1297. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1298. oldincludedir=$ac_optarg ;;
  1299. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1300. ac_prev=prefix ;;
  1301. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1302. prefix=$ac_optarg ;;
  1303. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1304. | --program-pre | --program-pr | --program-p)
  1305. ac_prev=program_prefix ;;
  1306. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1307. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1308. program_prefix=$ac_optarg ;;
  1309. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1310. | --program-suf | --program-su | --program-s)
  1311. ac_prev=program_suffix ;;
  1312. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1313. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1314. program_suffix=$ac_optarg ;;
  1315. -program-transform-name | --program-transform-name \
  1316. | --program-transform-nam | --program-transform-na \
  1317. | --program-transform-n | --program-transform- \
  1318. | --program-transform | --program-transfor \
  1319. | --program-transfo | --program-transf \
  1320. | --program-trans | --program-tran \
  1321. | --progr-tra | --program-tr | --program-t)
  1322. ac_prev=program_transform_name ;;
  1323. -program-transform-name=* | --program-transform-name=* \
  1324. | --program-transform-nam=* | --program-transform-na=* \
  1325. | --program-transform-n=* | --program-transform-=* \
  1326. | --program-transform=* | --program-transfor=* \
  1327. | --program-transfo=* | --program-transf=* \
  1328. | --program-trans=* | --program-tran=* \
  1329. | --progr-tra=* | --program-tr=* | --program-t=*)
  1330. program_transform_name=$ac_optarg ;;
  1331. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1332. ac_prev=pdfdir ;;
  1333. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1334. pdfdir=$ac_optarg ;;
  1335. -psdir | --psdir | --psdi | --psd | --ps)
  1336. ac_prev=psdir ;;
  1337. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1338. psdir=$ac_optarg ;;
  1339. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1340. | -silent | --silent | --silen | --sile | --sil)
  1341. silent=yes ;;
  1342. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1343. ac_prev=sbindir ;;
  1344. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1345. | --sbi=* | --sb=*)
  1346. sbindir=$ac_optarg ;;
  1347. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1348. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1349. | --sharedst | --shareds | --shared | --share | --shar \
  1350. | --sha | --sh)
  1351. ac_prev=sharedstatedir ;;
  1352. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1353. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1354. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1355. | --sha=* | --sh=*)
  1356. sharedstatedir=$ac_optarg ;;
  1357. -site | --site | --sit)
  1358. ac_prev=site ;;
  1359. -site=* | --site=* | --sit=*)
  1360. site=$ac_optarg ;;
  1361. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1362. ac_prev=srcdir ;;
  1363. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1364. srcdir=$ac_optarg ;;
  1365. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1366. | --syscon | --sysco | --sysc | --sys | --sy)
  1367. ac_prev=sysconfdir ;;
  1368. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1369. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1370. sysconfdir=$ac_optarg ;;
  1371. -target | --target | --targe | --targ | --tar | --ta | --t)
  1372. ac_prev=target_alias ;;
  1373. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1374. target_alias=$ac_optarg ;;
  1375. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1376. verbose=yes ;;
  1377. -version | --version | --versio | --versi | --vers | -V)
  1378. ac_init_version=: ;;
  1379. -with-* | --with-*)
  1380. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1381. # Reject names that are not valid shell variable names.
  1382. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1383. as_fn_error $? "invalid package name: $ac_useropt"
  1384. ac_useropt_orig=$ac_useropt
  1385. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1386. case $ac_user_opts in
  1387. *"
  1388. "with_$ac_useropt"
  1389. "*) ;;
  1390. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1391. ac_unrecognized_sep=', ';;
  1392. esac
  1393. eval with_$ac_useropt=\$ac_optarg ;;
  1394. -without-* | --without-*)
  1395. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1396. # Reject names that are not valid shell variable names.
  1397. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1398. as_fn_error $? "invalid package name: $ac_useropt"
  1399. ac_useropt_orig=$ac_useropt
  1400. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1401. case $ac_user_opts in
  1402. *"
  1403. "with_$ac_useropt"
  1404. "*) ;;
  1405. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1406. ac_unrecognized_sep=', ';;
  1407. esac
  1408. eval with_$ac_useropt=no ;;
  1409. --x)
  1410. # Obsolete; use --with-x.
  1411. with_x=yes ;;
  1412. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1413. | --x-incl | --x-inc | --x-in | --x-i)
  1414. ac_prev=x_includes ;;
  1415. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1416. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1417. x_includes=$ac_optarg ;;
  1418. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1419. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1420. ac_prev=x_libraries ;;
  1421. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1422. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1423. x_libraries=$ac_optarg ;;
  1424. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1425. Try \`$0 --help' for more information"
  1426. ;;
  1427. *=*)
  1428. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1429. # Reject names that are not valid shell variable names.
  1430. case $ac_envvar in #(
  1431. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1432. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1433. esac
  1434. eval $ac_envvar=\$ac_optarg
  1435. export $ac_envvar ;;
  1436. *)
  1437. # FIXME: should be removed in autoconf 3.0.
  1438. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1439. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1440. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1441. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1442. ;;
  1443. esac
  1444. done
  1445. if test -n "$ac_prev"; then
  1446. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1447. as_fn_error $? "missing argument to $ac_option"
  1448. fi
  1449. if test -n "$ac_unrecognized_opts"; then
  1450. case $enable_option_checking in
  1451. no) ;;
  1452. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1453. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1454. esac
  1455. fi
  1456. # Check all directory arguments for consistency.
  1457. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1458. datadir sysconfdir sharedstatedir localstatedir includedir \
  1459. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1460. libdir localedir mandir
  1461. do
  1462. eval ac_val=\$$ac_var
  1463. # Remove trailing slashes.
  1464. case $ac_val in
  1465. */ )
  1466. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1467. eval $ac_var=\$ac_val;;
  1468. esac
  1469. # Be sure to have absolute directory names.
  1470. case $ac_val in
  1471. [\\/$]* | ?:[\\/]* ) continue;;
  1472. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1473. esac
  1474. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1475. done
  1476. # There might be people who depend on the old broken behavior: `$host'
  1477. # used to hold the argument of --host etc.
  1478. # FIXME: To remove some day.
  1479. build=$build_alias
  1480. host=$host_alias
  1481. target=$target_alias
  1482. # FIXME: To remove some day.
  1483. if test "x$host_alias" != x; then
  1484. if test "x$build_alias" = x; then
  1485. cross_compiling=maybe
  1486. elif test "x$build_alias" != "x$host_alias"; then
  1487. cross_compiling=yes
  1488. fi
  1489. fi
  1490. ac_tool_prefix=
  1491. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1492. test "$silent" = yes && exec 6>/dev/null
  1493. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1494. ac_ls_di=`ls -di .` &&
  1495. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1496. as_fn_error $? "working directory cannot be determined"
  1497. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1498. as_fn_error $? "pwd does not report name of working directory"
  1499. # Find the source files, if location was not specified.
  1500. if test -z "$srcdir"; then
  1501. ac_srcdir_defaulted=yes
  1502. # Try the directory containing this script, then the parent directory.
  1503. ac_confdir=`$as_dirname -- "$as_myself" ||
  1504. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1505. X"$as_myself" : 'X\(//\)[^/]' \| \
  1506. X"$as_myself" : 'X\(//\)$' \| \
  1507. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1508. $as_echo X"$as_myself" |
  1509. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1510. s//\1/
  1511. q
  1512. }
  1513. /^X\(\/\/\)[^/].*/{
  1514. s//\1/
  1515. q
  1516. }
  1517. /^X\(\/\/\)$/{
  1518. s//\1/
  1519. q
  1520. }
  1521. /^X\(\/\).*/{
  1522. s//\1/
  1523. q
  1524. }
  1525. s/.*/./; q'`
  1526. srcdir=$ac_confdir
  1527. if test ! -r "$srcdir/$ac_unique_file"; then
  1528. srcdir=..
  1529. fi
  1530. else
  1531. ac_srcdir_defaulted=no
  1532. fi
  1533. if test ! -r "$srcdir/$ac_unique_file"; then
  1534. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1535. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1536. fi
  1537. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1538. ac_abs_confdir=`(
  1539. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1540. pwd)`
  1541. # When building in place, set srcdir=.
  1542. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1543. srcdir=.
  1544. fi
  1545. # Remove unnecessary trailing slashes from srcdir.
  1546. # Double slashes in file names in object file debugging info
  1547. # mess up M-x gdb in Emacs.
  1548. case $srcdir in
  1549. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1550. esac
  1551. for ac_var in $ac_precious_vars; do
  1552. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1553. eval ac_env_${ac_var}_value=\$${ac_var}
  1554. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1555. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1556. done
  1557. #
  1558. # Report the --help message.
  1559. #
  1560. if test "$ac_init_help" = "long"; then
  1561. # Omit some internal or obsolete options to make the list less imposing.
  1562. # This message is too long to be a string in the A/UX 3.1 sh.
  1563. cat <<_ACEOF
  1564. \`configure' configures curl - to adapt to many kinds of systems.
  1565. Usage: $0 [OPTION]... [VAR=VALUE]...
  1566. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1567. VAR=VALUE. See below for descriptions of some of the useful variables.
  1568. Defaults for the options are specified in brackets.
  1569. Configuration:
  1570. -h, --help display this help and exit
  1571. --help=short display options specific to this package
  1572. --help=recursive display the short help of all the included packages
  1573. -V, --version display version information and exit
  1574. -q, --quiet, --silent do not print \`checking ...' messages
  1575. --cache-file=FILE cache test results in FILE [disabled]
  1576. -C, --config-cache alias for \`--cache-file=config.cache'
  1577. -n, --no-create do not create output files
  1578. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1579. Installation directories:
  1580. --prefix=PREFIX install architecture-independent files in PREFIX
  1581. [$ac_default_prefix]
  1582. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1583. [PREFIX]
  1584. By default, \`make install' will install all the files in
  1585. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1586. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1587. for instance \`--prefix=\$HOME'.
  1588. For better control, use the options below.
  1589. Fine tuning of the installation directories:
  1590. --bindir=DIR user executables [EPREFIX/bin]
  1591. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1592. --libexecdir=DIR program executables [EPREFIX/libexec]
  1593. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1594. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1595. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1596. --libdir=DIR object code libraries [EPREFIX/lib]
  1597. --includedir=DIR C header files [PREFIX/include]
  1598. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1599. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1600. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1601. --infodir=DIR info documentation [DATAROOTDIR/info]
  1602. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1603. --mandir=DIR man documentation [DATAROOTDIR/man]
  1604. --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
  1605. --htmldir=DIR html documentation [DOCDIR]
  1606. --dvidir=DIR dvi documentation [DOCDIR]
  1607. --pdfdir=DIR pdf documentation [DOCDIR]
  1608. --psdir=DIR ps documentation [DOCDIR]
  1609. _ACEOF
  1610. cat <<\_ACEOF
  1611. Program names:
  1612. --program-prefix=PREFIX prepend PREFIX to installed program names
  1613. --program-suffix=SUFFIX append SUFFIX to installed program names
  1614. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1615. System types:
  1616. --build=BUILD configure for building on BUILD [guessed]
  1617. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1618. _ACEOF
  1619. fi
  1620. if test -n "$ac_init_help"; then
  1621. case $ac_init_help in
  1622. short | recursive ) echo "Configuration of curl -:";;
  1623. esac
  1624. cat <<\_ACEOF
  1625. Optional Features:
  1626. --disable-option-checking ignore unrecognized --enable/--with options
  1627. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1628. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1629. --enable-maintainer-mode
  1630. enable make rules and dependencies not useful (and
  1631. sometimes confusing) to the casual installer
  1632. --enable-debug Enable debug build options
  1633. --disable-debug Disable debug build options
  1634. --enable-optimize Enable compiler optimizations
  1635. --disable-optimize Disable compiler optimizations
  1636. --enable-warnings Enable strict compiler warnings
  1637. --disable-warnings Disable strict compiler warnings
  1638. --enable-werror Enable compiler warnings as errors
  1639. --disable-werror Disable compiler warnings as errors
  1640. --enable-curldebug Enable curl debug memory tracking
  1641. --disable-curldebug Disable curl debug memory tracking
  1642. --enable-symbol-hiding Enable hiding of library internal symbols
  1643. --disable-symbol-hiding Disable hiding of library internal symbols
  1644. --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
  1645. --disable-hidden-symbols
  1646. To be deprecated, use --disable-symbol-hiding
  1647. --enable-ares[=PATH] Enable c-ares for DNS lookups
  1648. --disable-ares Disable c-ares for DNS lookups
  1649. --enable-dependency-tracking
  1650. do not reject slow dependency extractors
  1651. --disable-dependency-tracking
  1652. speeds up one-time build
  1653. --enable-silent-rules less verbose build output (undo: "make V=1")
  1654. --disable-silent-rules verbose build output (undo: "make V=0")
  1655. --disable-largefile omit support for large files
  1656. --enable-shared[=PKGS] build shared libraries [default=yes]
  1657. --enable-static[=PKGS] build static libraries [default=yes]
  1658. --enable-fast-install[=PKGS]
  1659. optimize for fast installation [default=yes]
  1660. --disable-libtool-lock avoid locking (might break parallel builds)
  1661. --enable-http Enable HTTP support
  1662. --disable-http Disable HTTP support
  1663. --enable-ftp Enable FTP support
  1664. --disable-ftp Disable FTP support
  1665. --enable-file Enable FILE support
  1666. --disable-file Disable FILE support
  1667. --enable-ldap Enable LDAP support
  1668. --disable-ldap Disable LDAP support
  1669. --enable-ldaps Enable LDAPS support
  1670. --disable-ldaps Disable LDAPS support
  1671. --enable-rtsp Enable RTSP support
  1672. --disable-rtsp Disable RTSP support
  1673. --enable-proxy Enable proxy support
  1674. --disable-proxy Disable proxy support
  1675. --enable-dict Enable DICT support
  1676. --disable-dict Disable DICT support
  1677. --enable-telnet Enable TELNET support
  1678. --disable-telnet Disable TELNET support
  1679. --enable-tftp Enable TFTP support
  1680. --disable-tftp Disable TFTP support
  1681. --enable-pop3 Enable POP3 support
  1682. --disable-pop3 Disable POP3 support
  1683. --enable-imap Enable IMAP support
  1684. --disable-imap Disable IMAP support
  1685. --enable-smtp Enable SMTP support
  1686. --disable-smtp Disable SMTP support
  1687. --enable-gopher Enable Gopher support
  1688. --disable-gopher Disable Gopher support
  1689. --enable-manual Enable built-in manual
  1690. --disable-manual Disable built-in manual
  1691. --enable-libcurl-option Enable --libcurl C code generation support
  1692. --disable-libcurl-option
  1693. Disable --libcurl C code generation support
  1694. --enable-libgcc use libgcc when linking
  1695. --enable-ipv6 Enable ipv6 (with ipv4) support
  1696. --disable-ipv6 Disable ipv6 support
  1697. --enable-versioned-symbols
  1698. Enable versioned symbols in shared library
  1699. --disable-versioned-symbols
  1700. Disable versioned symbols in shared library
  1701. --enable-threaded-resolver
  1702. Enable threaded resolver
  1703. --disable-threaded-resolver
  1704. Disable threaded resolver
  1705. --enable-verbose Enable verbose strings
  1706. --disable-verbose Disable verbose strings
  1707. --enable-sspi Enable SSPI
  1708. --disable-sspi Disable SSPI
  1709. --enable-crypto-auth Enable cryptographic authentication
  1710. --disable-crypto-auth Disable cryptographic authentication
  1711. --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
  1712. helper, where FILE is ntlm_auth's absolute filename
  1713. (default: /usr/bin/ntlm_auth)
  1714. --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
  1715. helper
  1716. --enable-tls-srp Enable TLS-SRP authentication
  1717. --disable-tls-srp Disable TLS-SRP authentication
  1718. --enable-cookies Enable cookies support
  1719. --disable-cookies Disable cookies support
  1720. --enable-soname-bump Enable enforced SONAME bump
  1721. --disable-soname-bump Disable enforced SONAME bump
  1722. Optional Packages:
  1723. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1724. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1725. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1726. both]
  1727. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1728. --with-sysroot=DIR Search for dependent libraries within DIR
  1729. (or the compiler's sysroot if not specified).
  1730. --with-zlib=PATH search for zlib in PATH
  1731. --without-zlib disable use of zlib
  1732. --with-ldap-lib=libname Specify name of ldap lib file
  1733. --with-lber-lib=libname Specify name of lber lib file
  1734. --with-spnego=DIR Specify location of SPNEGO library fbopenssl
  1735. --with-gssapi-includes=DIR
  1736. Specify location of GSS-API headers
  1737. --with-gssapi-libs=DIR Specify location of GSS-API libs
  1738. --with-gssapi=DIR Where to look for GSS-API
  1739. --with-winssl enable Windows native SSL/TLS
  1740. --without-winssl disable Windows native SSL/TLS
  1741. --with-darwinssl enable iOS/Mac OS X native SSL/TLS
  1742. --without-darwinssl disable iOS/Mac OS X native SSL/TLS
  1743. --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
  1744. installation (default: /usr/local/ssl); when
  1745. possible, set the PKG_CONFIG_PATH environment
  1746. variable instead of using this option
  1747. --without-ssl disable OpenSSL
  1748. --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
  1749. --with-random=FILE read randomness from FILE (default=/dev/urandom)
  1750. --with-gnutls=PATH where to look for GnuTLS, PATH points to the
  1751. installation root
  1752. --without-gnutls disable GnuTLS detection
  1753. --with-polarssl=PATH where to look for PolarSSL, PATH points to the
  1754. installation root
  1755. --without-polarssl disable PolarSSL detection
  1756. --with-cyassl=PATH where to look for CyaSSL, PATH points to the
  1757. installation root (default: system lib default)
  1758. --without-cyassl disable CyaSSL detection
  1759. --with-nss=PATH where to look for NSS, PATH points to the
  1760. installation root
  1761. --without-nss disable NSS detection
  1762. --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
  1763. installation prefix (default: /usr/local). Ignored
  1764. if another SSL engine is selected.
  1765. --without-axtls disable axTLS
  1766. --with-ca-bundle=FILE File name to use as CA bundle
  1767. --without-ca-bundle Don't use a default CA bundle
  1768. --with-ca-path=DIRECTORY
  1769. Directory to use as CA path
  1770. --without-ca-path Don't use a default CA path
  1771. --with-libmetalink=PATH where to look for libmetalink, PATH points to the
  1772. installation root
  1773. --without-libmetalink disable libmetalink detection
  1774. --with-libssh2=PATH Where to look for libssh2, PATH points to the
  1775. LIBSSH2 installation; when possible, set the
  1776. PKG_CONFIG_PATH environment variable instead of
  1777. using this option
  1778. --without-libssh2 disable LIBSSH2
  1779. --with-librtmp=PATH Where to look for librtmp, PATH points to the
  1780. LIBRTMP installation; when possible, set the
  1781. PKG_CONFIG_PATH environment variable instead of
  1782. using this option
  1783. --without-librtmp disable LIBRTMP
  1784. --with-winidn=PATH enable Windows native IDN
  1785. --without-winidn disable Windows native IDN
  1786. --with-libidn=PATH Enable libidn usage
  1787. --without-libidn Disable libidn usage
  1788. --with-nghttp2=PATH Enable nghttp2 usage
  1789. --without-nghttp2 Disable nghttp2 usage
  1790. Some influential environment variables:
  1791. CC C compiler command
  1792. CFLAGS C compiler flags
  1793. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1794. nonstandard directory <lib dir>
  1795. LIBS libraries to pass to the linker, e.g. -l<library>
  1796. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1797. you have headers in a nonstandard directory <include dir>
  1798. CPP C preprocessor
  1799. Use these variables to override the choices made by `configure' or to help
  1800. it to find libraries and programs with nonstandard names/locations.
  1801. Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
  1802. _ACEOF
  1803. ac_status=$?
  1804. fi
  1805. if test "$ac_init_help" = "recursive"; then
  1806. # If there are subdirs, report their specific --help.
  1807. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1808. test -d "$ac_dir" ||
  1809. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1810. continue
  1811. ac_builddir=.
  1812. case "$ac_dir" in
  1813. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1814. *)
  1815. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1816. # A ".." for each directory in $ac_dir_suffix.
  1817. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1818. case $ac_top_builddir_sub in
  1819. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1820. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1821. esac ;;
  1822. esac
  1823. ac_abs_top_builddir=$ac_pwd
  1824. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1825. # for backward compatibility:
  1826. ac_top_builddir=$ac_top_build_prefix
  1827. case $srcdir in
  1828. .) # We are building in place.
  1829. ac_srcdir=.
  1830. ac_top_srcdir=$ac_top_builddir_sub
  1831. ac_abs_top_srcdir=$ac_pwd ;;
  1832. [\\/]* | ?:[\\/]* ) # Absolute name.
  1833. ac_srcdir=$srcdir$ac_dir_suffix;
  1834. ac_top_srcdir=$srcdir
  1835. ac_abs_top_srcdir=$srcdir ;;
  1836. *) # Relative name.
  1837. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1838. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1839. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1840. esac
  1841. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1842. cd "$ac_dir" || { ac_status=$?; continue; }
  1843. # Check for guested configure.
  1844. if test -f "$ac_srcdir/configure.gnu"; then
  1845. echo &&
  1846. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1847. elif test -f "$ac_srcdir/configure"; then
  1848. echo &&
  1849. $SHELL "$ac_srcdir/configure" --help=recursive
  1850. else
  1851. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1852. fi || ac_status=$?
  1853. cd "$ac_pwd" || { ac_status=$?; break; }
  1854. done
  1855. fi
  1856. test -n "$ac_init_help" && exit $ac_status
  1857. if $ac_init_version; then
  1858. cat <<\_ACEOF
  1859. curl configure -
  1860. generated by GNU Autoconf 2.69
  1861. Copyright (C) 2012 Free Software Foundation, Inc.
  1862. This configure script is free software; the Free Software Foundation
  1863. gives unlimited permission to copy, distribute and modify it.
  1864. Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
  1865. This configure script may be copied, distributed and modified under the
  1866. terms of the curl license; see COPYING for more details
  1867. _ACEOF
  1868. exit
  1869. fi
  1870. ## ------------------------ ##
  1871. ## Autoconf initialization. ##
  1872. ## ------------------------ ##
  1873. # ac_fn_c_try_compile LINENO
  1874. # --------------------------
  1875. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1876. ac_fn_c_try_compile ()
  1877. {
  1878. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1879. rm -f conftest.$ac_objext
  1880. if { { ac_try="$ac_compile"
  1881. case "(($ac_try" in
  1882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1883. *) ac_try_echo=$ac_try;;
  1884. esac
  1885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1886. $as_echo "$ac_try_echo"; } >&5
  1887. (eval "$ac_compile") 2>conftest.err
  1888. ac_status=$?
  1889. if test -s conftest.err; then
  1890. grep -v '^ *+' conftest.err >conftest.er1
  1891. cat conftest.er1 >&5
  1892. mv -f conftest.er1 conftest.err
  1893. fi
  1894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1895. test $ac_status = 0; } && {
  1896. test -z "$ac_c_werror_flag" ||
  1897. test ! -s conftest.err
  1898. } && test -s conftest.$ac_objext; then :
  1899. ac_retval=0
  1900. else
  1901. $as_echo "$as_me: failed program was:" >&5
  1902. sed 's/^/| /' conftest.$ac_ext >&5
  1903. ac_retval=1
  1904. fi
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. as_fn_set_status $ac_retval
  1907. } # ac_fn_c_try_compile
  1908. # ac_fn_c_try_cpp LINENO
  1909. # ----------------------
  1910. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1911. ac_fn_c_try_cpp ()
  1912. {
  1913. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1914. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1915. case "(($ac_try" in
  1916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1917. *) ac_try_echo=$ac_try;;
  1918. esac
  1919. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1920. $as_echo "$ac_try_echo"; } >&5
  1921. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1922. ac_status=$?
  1923. if test -s conftest.err; then
  1924. grep -v '^ *+' conftest.err >conftest.er1
  1925. cat conftest.er1 >&5
  1926. mv -f conftest.er1 conftest.err
  1927. fi
  1928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1929. test $ac_status = 0; } > conftest.i && {
  1930. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1931. test ! -s conftest.err
  1932. }; then :
  1933. ac_retval=0
  1934. else
  1935. $as_echo "$as_me: failed program was:" >&5
  1936. sed 's/^/| /' conftest.$ac_ext >&5
  1937. ac_retval=1
  1938. fi
  1939. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1940. as_fn_set_status $ac_retval
  1941. } # ac_fn_c_try_cpp
  1942. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1943. # -------------------------------------------------------
  1944. # Tests whether HEADER exists and can be compiled using the include files in
  1945. # INCLUDES, setting the cache variable VAR accordingly.
  1946. ac_fn_c_check_header_compile ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1950. $as_echo_n "checking for $2... " >&6; }
  1951. if eval \${$3+:} false; then :
  1952. $as_echo_n "(cached) " >&6
  1953. else
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $4
  1957. #include <$2>
  1958. _ACEOF
  1959. if ac_fn_c_try_compile "$LINENO"; then :
  1960. eval "$3=yes"
  1961. else
  1962. eval "$3=no"
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1965. fi
  1966. eval ac_res=\$$3
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1968. $as_echo "$ac_res" >&6; }
  1969. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1970. } # ac_fn_c_check_header_compile
  1971. # ac_fn_c_try_run LINENO
  1972. # ----------------------
  1973. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1974. # that executables *can* be run.
  1975. ac_fn_c_try_run ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. if { { ac_try="$ac_link"
  1979. case "(($ac_try" in
  1980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1981. *) ac_try_echo=$ac_try;;
  1982. esac
  1983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1984. $as_echo "$ac_try_echo"; } >&5
  1985. (eval "$ac_link") 2>&5
  1986. ac_status=$?
  1987. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1988. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1989. { { case "(($ac_try" in
  1990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1991. *) ac_try_echo=$ac_try;;
  1992. esac
  1993. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1994. $as_echo "$ac_try_echo"; } >&5
  1995. (eval "$ac_try") 2>&5
  1996. ac_status=$?
  1997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1998. test $ac_status = 0; }; }; then :
  1999. ac_retval=0
  2000. else
  2001. $as_echo "$as_me: program exited with status $ac_status" >&5
  2002. $as_echo "$as_me: failed program was:" >&5
  2003. sed 's/^/| /' conftest.$ac_ext >&5
  2004. ac_retval=$ac_status
  2005. fi
  2006. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2007. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2008. as_fn_set_status $ac_retval
  2009. } # ac_fn_c_try_run
  2010. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2011. # --------------------------------------------
  2012. # Tries to find the compile-time value of EXPR in a program that includes
  2013. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2014. # computed
  2015. ac_fn_c_compute_int ()
  2016. {
  2017. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2018. if test "$cross_compiling" = yes; then
  2019. # Depending upon the size, compute the lo and hi bounds.
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int main (void)
  2024. {
  2025. static int test_array [1 - 2 * !(($2) >= 0)];
  2026. test_array [0] = 0;
  2027. return test_array [0];
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. ac_lo=0 ac_mid=0
  2034. while :; do
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int main (void)
  2039. {
  2040. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2041. test_array [0] = 0;
  2042. return test_array [0];
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. ac_hi=$ac_mid; break
  2049. else
  2050. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2051. if test $ac_lo -le $ac_mid; then
  2052. ac_lo= ac_hi=
  2053. break
  2054. fi
  2055. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. done
  2059. else
  2060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2061. /* end confdefs.h. */
  2062. $4
  2063. int main (void)
  2064. {
  2065. static int test_array [1 - 2 * !(($2) < 0)];
  2066. test_array [0] = 0;
  2067. return test_array [0];
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. ac_hi=-1 ac_mid=-1
  2074. while :; do
  2075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2076. /* end confdefs.h. */
  2077. $4
  2078. int main (void)
  2079. {
  2080. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2081. test_array [0] = 0;
  2082. return test_array [0];
  2083. ;
  2084. return 0;
  2085. }
  2086. _ACEOF
  2087. if ac_fn_c_try_compile "$LINENO"; then :
  2088. ac_lo=$ac_mid; break
  2089. else
  2090. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2091. if test $ac_mid -le $ac_hi; then
  2092. ac_lo= ac_hi=
  2093. break
  2094. fi
  2095. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2096. fi
  2097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2098. done
  2099. else
  2100. ac_lo= ac_hi=
  2101. fi
  2102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2103. fi
  2104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2105. # Binary search between lo and hi bounds.
  2106. while test "x$ac_lo" != "x$ac_hi"; do
  2107. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2109. /* end confdefs.h. */
  2110. $4
  2111. int main (void)
  2112. {
  2113. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2114. test_array [0] = 0;
  2115. return test_array [0];
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. ac_hi=$ac_mid
  2122. else
  2123. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2126. done
  2127. case $ac_lo in #((
  2128. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2129. '') ac_retval=1 ;;
  2130. esac
  2131. else
  2132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2133. /* end confdefs.h. */
  2134. $4
  2135. static long int longval () { return $2; }
  2136. static unsigned long int ulongval () { return $2; }
  2137. #include <stdio.h>
  2138. #include <stdlib.h>
  2139. int main (void)
  2140. {
  2141. FILE *f = fopen ("conftest.val", "w");
  2142. if (! f)
  2143. return 1;
  2144. if (($2) < 0)
  2145. {
  2146. long int i = longval ();
  2147. if (i != ($2))
  2148. return 1;
  2149. fprintf (f, "%ld", i);
  2150. }
  2151. else
  2152. {
  2153. unsigned long int i = ulongval ();
  2154. if (i != ($2))
  2155. return 1;
  2156. fprintf (f, "%lu", i);
  2157. }
  2158. /* Do not output a trailing newline, as this causes \r\n confusion
  2159. on some platforms. */
  2160. return ferror (f) || fclose (f) != 0;
  2161. ;
  2162. return 0;
  2163. }
  2164. _ACEOF
  2165. if ac_fn_c_try_run "$LINENO"; then :
  2166. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2167. else
  2168. ac_retval=1
  2169. fi
  2170. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2171. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2172. rm -f conftest.val
  2173. fi
  2174. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2175. as_fn_set_status $ac_retval
  2176. } # ac_fn_c_compute_int
  2177. # ac_fn_c_try_link LINENO
  2178. # -----------------------
  2179. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2180. ac_fn_c_try_link ()
  2181. {
  2182. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2183. rm -f conftest.$ac_objext conftest$ac_exeext
  2184. if { { ac_try="$ac_link"
  2185. case "(($ac_try" in
  2186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2187. *) ac_try_echo=$ac_try;;
  2188. esac
  2189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2190. $as_echo "$ac_try_echo"; } >&5
  2191. (eval "$ac_link") 2>conftest.err
  2192. ac_status=$?
  2193. if test -s conftest.err; then
  2194. grep -v '^ *+' conftest.err >conftest.er1
  2195. cat conftest.er1 >&5
  2196. mv -f conftest.er1 conftest.err
  2197. fi
  2198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2199. test $ac_status = 0; } && {
  2200. test -z "$ac_c_werror_flag" ||
  2201. test ! -s conftest.err
  2202. } && test -s conftest$ac_exeext && {
  2203. test "$cross_compiling" = yes ||
  2204. test -x conftest$ac_exeext
  2205. }; then :
  2206. ac_retval=0
  2207. else
  2208. $as_echo "$as_me: failed program was:" >&5
  2209. sed 's/^/| /' conftest.$ac_ext >&5
  2210. ac_retval=1
  2211. fi
  2212. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2213. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2214. # interfere with the next link command; also delete a directory that is
  2215. # left behind by Apple's compiler. We do this before executing the actions.
  2216. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2217. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2218. as_fn_set_status $ac_retval
  2219. } # ac_fn_c_try_link
  2220. # ac_fn_c_check_func LINENO FUNC VAR
  2221. # ----------------------------------
  2222. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2223. ac_fn_c_check_func ()
  2224. {
  2225. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2227. $as_echo_n "checking for $2... " >&6; }
  2228. if eval \${$3+:} false; then :
  2229. $as_echo_n "(cached) " >&6
  2230. else
  2231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232. /* end confdefs.h. */
  2233. #define $2 innocuous_$2
  2234. #ifdef __STDC__
  2235. # include <limits.h>
  2236. #else
  2237. # include <assert.h>
  2238. #endif
  2239. #undef $2
  2240. #ifdef __cplusplus
  2241. extern "C"
  2242. #endif
  2243. char $2 ();
  2244. #if defined __stub_$2 || defined __stub___$2
  2245. choke me
  2246. #endif
  2247. int main (void)
  2248. {
  2249. return $2 ();
  2250. ;
  2251. return 0;
  2252. }
  2253. _ACEOF
  2254. if ac_fn_c_try_link "$LINENO"; then :
  2255. eval "$3=yes"
  2256. else
  2257. eval "$3=no"
  2258. fi
  2259. rm -f core conftest.err conftest.$ac_objext \
  2260. conftest$ac_exeext conftest.$ac_ext
  2261. fi
  2262. eval ac_res=\$$3
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2264. $as_echo "$ac_res" >&6; }
  2265. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2266. } # ac_fn_c_check_func
  2267. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2268. # -------------------------------------------------------
  2269. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2270. # the include files in INCLUDES and setting the cache variable VAR
  2271. # accordingly.
  2272. ac_fn_c_check_header_mongrel ()
  2273. {
  2274. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2275. if eval \${$3+:} false; then :
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2277. $as_echo_n "checking for $2... " >&6; }
  2278. if eval \${$3+:} false; then :
  2279. $as_echo_n "(cached) " >&6
  2280. fi
  2281. eval ac_res=\$$3
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2283. $as_echo "$ac_res" >&6; }
  2284. else
  2285. # Is the header compilable?
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2287. $as_echo_n "checking $2 usability... " >&6; }
  2288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2289. /* end confdefs.h. */
  2290. $4
  2291. #include <$2>
  2292. _ACEOF
  2293. if ac_fn_c_try_compile "$LINENO"; then :
  2294. ac_header_compiler=yes
  2295. else
  2296. ac_header_compiler=no
  2297. fi
  2298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2300. $as_echo "$ac_header_compiler" >&6; }
  2301. # Is the header present?
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2303. $as_echo_n "checking $2 presence... " >&6; }
  2304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2305. /* end confdefs.h. */
  2306. #include <$2>
  2307. _ACEOF
  2308. if ac_fn_c_try_cpp "$LINENO"; then :
  2309. ac_header_preproc=yes
  2310. else
  2311. ac_header_preproc=no
  2312. fi
  2313. rm -f conftest.err conftest.i conftest.$ac_ext
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2315. $as_echo "$ac_header_preproc" >&6; }
  2316. # So? What about this header?
  2317. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2318. yes:no: )
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2320. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2322. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2323. ;;
  2324. no:yes:* )
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2326. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2328. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2330. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2332. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2334. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2335. ( $as_echo "## ---------------------------------------------------------------------- ##
  2336. ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
  2337. ## ---------------------------------------------------------------------- ##"
  2338. ) | sed "s/^/$as_me: WARNING: /" >&2
  2339. ;;
  2340. esac
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2342. $as_echo_n "checking for $2... " >&6; }
  2343. if eval \${$3+:} false; then :
  2344. $as_echo_n "(cached) " >&6
  2345. else
  2346. eval "$3=\$ac_header_compiler"
  2347. fi
  2348. eval ac_res=\$$3
  2349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2350. $as_echo "$ac_res" >&6; }
  2351. fi
  2352. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2353. } # ac_fn_c_check_header_mongrel
  2354. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2355. # -------------------------------------------
  2356. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2357. # variable VAR accordingly.
  2358. ac_fn_c_check_type ()
  2359. {
  2360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2362. $as_echo_n "checking for $2... " >&6; }
  2363. if eval \${$3+:} false; then :
  2364. $as_echo_n "(cached) " >&6
  2365. else
  2366. eval "$3=no"
  2367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2368. /* end confdefs.h. */
  2369. $4
  2370. int main (void)
  2371. {
  2372. if (sizeof ($2))
  2373. return 0;
  2374. ;
  2375. return 0;
  2376. }
  2377. _ACEOF
  2378. if ac_fn_c_try_compile "$LINENO"; then :
  2379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2380. /* end confdefs.h. */
  2381. $4
  2382. int main (void)
  2383. {
  2384. if (sizeof (($2)))
  2385. return 0;
  2386. ;
  2387. return 0;
  2388. }
  2389. _ACEOF
  2390. if ac_fn_c_try_compile "$LINENO"; then :
  2391. else
  2392. eval "$3=yes"
  2393. fi
  2394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2395. fi
  2396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2397. fi
  2398. eval ac_res=\$$3
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2400. $as_echo "$ac_res" >&6; }
  2401. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2402. } # ac_fn_c_check_type
  2403. cat >config.log <<_ACEOF
  2404. This file contains any messages produced by compilers while
  2405. running configure, to aid debugging if configure makes a mistake.
  2406. It was created by curl $as_me -, which was
  2407. generated by GNU Autoconf 2.69. Invocation command line was
  2408. $ $0 $@
  2409. _ACEOF
  2410. exec 5>>config.log
  2411. {
  2412. cat <<_ASUNAME
  2413. ## --------- ##
  2414. ## Platform. ##
  2415. ## --------- ##
  2416. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2417. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2418. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2419. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2420. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2421. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2422. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2423. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2424. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2425. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2426. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2427. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2428. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2429. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2430. _ASUNAME
  2431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2432. for as_dir in $PATH
  2433. do
  2434. IFS=$as_save_IFS
  2435. test -z "$as_dir" && as_dir=.
  2436. $as_echo "PATH: $as_dir"
  2437. done
  2438. IFS=$as_save_IFS
  2439. } >&5
  2440. cat >&5 <<_ACEOF
  2441. ## ----------- ##
  2442. ## Core tests. ##
  2443. ## ----------- ##
  2444. _ACEOF
  2445. # Keep a trace of the command line.
  2446. # Strip out --no-create and --no-recursion so they do not pile up.
  2447. # Strip out --silent because we don't want to record it for future runs.
  2448. # Also quote any args containing shell meta-characters.
  2449. # Make two passes to allow for proper duplicate-argument suppression.
  2450. ac_configure_args=
  2451. ac_configure_args0=
  2452. ac_configure_args1=
  2453. ac_must_keep_next=false
  2454. for ac_pass in 1 2
  2455. do
  2456. for ac_arg
  2457. do
  2458. case $ac_arg in
  2459. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2460. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2461. | -silent | --silent | --silen | --sile | --sil)
  2462. continue ;;
  2463. *\'*)
  2464. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2465. esac
  2466. case $ac_pass in
  2467. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2468. 2)
  2469. as_fn_append ac_configure_args1 " '$ac_arg'"
  2470. if test $ac_must_keep_next = true; then
  2471. ac_must_keep_next=false # Got value, back to normal.
  2472. else
  2473. case $ac_arg in
  2474. *=* | --config-cache | -C | -disable-* | --disable-* \
  2475. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2476. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2477. | -with-* | --with-* | -without-* | --without-* | --x)
  2478. case "$ac_configure_args0 " in
  2479. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2480. esac
  2481. ;;
  2482. -* ) ac_must_keep_next=true ;;
  2483. esac
  2484. fi
  2485. as_fn_append ac_configure_args " '$ac_arg'"
  2486. ;;
  2487. esac
  2488. done
  2489. done
  2490. { ac_configure_args0=; unset ac_configure_args0;}
  2491. { ac_configure_args1=; unset ac_configure_args1;}
  2492. # When interrupted or exit'd, cleanup temporary files, and complete
  2493. # config.log. We remove comments because anyway the quotes in there
  2494. # would cause problems or look ugly.
  2495. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2496. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2497. trap 'exit_status=$?
  2498. # Save into config.log some information that might help in debugging.
  2499. {
  2500. echo
  2501. $as_echo "## ---------------- ##
  2502. ## Cache variables. ##
  2503. ## ---------------- ##"
  2504. echo
  2505. # The following way of writing the cache mishandles newlines in values,
  2506. (
  2507. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2508. eval ac_val=\$$ac_var
  2509. case $ac_val in #(
  2510. *${as_nl}*)
  2511. case $ac_var in #(
  2512. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2513. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2514. esac
  2515. case $ac_var in #(
  2516. _ | IFS | as_nl) ;; #(
  2517. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2518. *) { eval $ac_var=; unset $ac_var;} ;;
  2519. esac ;;
  2520. esac
  2521. done
  2522. (set) 2>&1 |
  2523. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2524. *${as_nl}ac_space=\ *)
  2525. sed -n \
  2526. "s/'\''/'\''\\\\'\'''\''/g;
  2527. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2528. ;; #(
  2529. *)
  2530. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2531. ;;
  2532. esac |
  2533. sort
  2534. )
  2535. echo
  2536. $as_echo "## ----------------- ##
  2537. ## Output variables. ##
  2538. ## ----------------- ##"
  2539. echo
  2540. for ac_var in $ac_subst_vars
  2541. do
  2542. eval ac_val=\$$ac_var
  2543. case $ac_val in
  2544. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2545. esac
  2546. $as_echo "$ac_var='\''$ac_val'\''"
  2547. done | sort
  2548. echo
  2549. if test -n "$ac_subst_files"; then
  2550. $as_echo "## ------------------- ##
  2551. ## File substitutions. ##
  2552. ## ------------------- ##"
  2553. echo
  2554. for ac_var in $ac_subst_files
  2555. do
  2556. eval ac_val=\$$ac_var
  2557. case $ac_val in
  2558. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2559. esac
  2560. $as_echo "$ac_var='\''$ac_val'\''"
  2561. done | sort
  2562. echo
  2563. fi
  2564. if test -s confdefs.h; then
  2565. $as_echo "## ----------- ##
  2566. ## confdefs.h. ##
  2567. ## ----------- ##"
  2568. echo
  2569. cat confdefs.h
  2570. echo
  2571. fi
  2572. test "$ac_signal" != 0 &&
  2573. $as_echo "$as_me: caught signal $ac_signal"
  2574. $as_echo "$as_me: exit $exit_status"
  2575. } >&5
  2576. rm -f core *.core core.conftest.* &&
  2577. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2578. exit $exit_status
  2579. ' 0
  2580. for ac_signal in 1 2 13 15; do
  2581. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2582. done
  2583. ac_signal=0
  2584. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2585. rm -f -r conftest* confdefs.h
  2586. $as_echo "/* confdefs.h */" > confdefs.h
  2587. # Predefined preprocessor variables.
  2588. cat >>confdefs.h <<_ACEOF
  2589. #define PACKAGE_NAME "$PACKAGE_NAME"
  2590. _ACEOF
  2591. cat >>confdefs.h <<_ACEOF
  2592. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2593. _ACEOF
  2594. cat >>confdefs.h <<_ACEOF
  2595. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2596. _ACEOF
  2597. cat >>confdefs.h <<_ACEOF
  2598. #define PACKAGE_STRING "$PACKAGE_STRING"
  2599. _ACEOF
  2600. cat >>confdefs.h <<_ACEOF
  2601. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2602. _ACEOF
  2603. cat >>confdefs.h <<_ACEOF
  2604. #define PACKAGE_URL "$PACKAGE_URL"
  2605. _ACEOF
  2606. # Let the site file select an alternate cache file if it wants to.
  2607. # Prefer an explicitly selected file to automatically selected ones.
  2608. ac_site_file1=NONE
  2609. ac_site_file2=NONE
  2610. if test -n "$CONFIG_SITE"; then
  2611. # We do not want a PATH search for config.site.
  2612. case $CONFIG_SITE in #((
  2613. -*) ac_site_file1=./$CONFIG_SITE;;
  2614. */*) ac_site_file1=$CONFIG_SITE;;
  2615. *) ac_site_file1=./$CONFIG_SITE;;
  2616. esac
  2617. elif test "x$prefix" != xNONE; then
  2618. ac_site_file1=$prefix/share/config.site
  2619. ac_site_file2=$prefix/etc/config.site
  2620. else
  2621. ac_site_file1=$ac_default_prefix/share/config.site
  2622. ac_site_file2=$ac_default_prefix/etc/config.site
  2623. fi
  2624. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2625. do
  2626. test "x$ac_site_file" = xNONE && continue
  2627. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2629. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2630. sed 's/^/| /' "$ac_site_file" >&5
  2631. . "$ac_site_file" \
  2632. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2633. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2634. as_fn_error $? "failed to load site script $ac_site_file
  2635. See \`config.log' for more details" "$LINENO" 5; }
  2636. fi
  2637. done
  2638. if test -r "$cache_file"; then
  2639. # Some versions of bash will fail to source /dev/null (special files
  2640. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2641. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2643. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2644. case $cache_file in
  2645. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2646. *) . "./$cache_file";;
  2647. esac
  2648. fi
  2649. else
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2651. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2652. >$cache_file
  2653. fi
  2654. # Check that the precious variables saved in the cache have kept the same
  2655. # value.
  2656. ac_cache_corrupted=false
  2657. for ac_var in $ac_precious_vars; do
  2658. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2659. eval ac_new_set=\$ac_env_${ac_var}_set
  2660. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2661. eval ac_new_val=\$ac_env_${ac_var}_value
  2662. case $ac_old_set,$ac_new_set in
  2663. set,)
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2665. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2666. ac_cache_corrupted=: ;;
  2667. ,set)
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2669. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2670. ac_cache_corrupted=: ;;
  2671. ,);;
  2672. *)
  2673. if test "x$ac_old_val" != "x$ac_new_val"; then
  2674. # differences in whitespace do not lead to failure.
  2675. ac_old_val_w=`echo x $ac_old_val`
  2676. ac_new_val_w=`echo x $ac_new_val`
  2677. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2679. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2680. ac_cache_corrupted=:
  2681. else
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2683. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2684. eval $ac_var=\$ac_old_val
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2687. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2689. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2690. fi;;
  2691. esac
  2692. # Pass precious variables to config.status.
  2693. if test "$ac_new_set" = set; then
  2694. case $ac_new_val in
  2695. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2696. *) ac_arg=$ac_var=$ac_new_val ;;
  2697. esac
  2698. case " $ac_configure_args " in
  2699. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2700. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2701. esac
  2702. fi
  2703. done
  2704. if $ac_cache_corrupted; then
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2708. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2709. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2710. fi
  2711. ## -------------------- ##
  2712. ## Main body of script. ##
  2713. ## -------------------- ##
  2714. ac_ext=c
  2715. ac_cpp='$CPP $CPPFLAGS'
  2716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2719. # using curl-override.m4
  2720. ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2722. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2723. # Check whether --enable-maintainer-mode was given.
  2724. if test "${enable_maintainer_mode+set}" = set; then :
  2725. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2726. else
  2727. USE_MAINTAINER_MODE=no
  2728. fi
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2730. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2731. if test $USE_MAINTAINER_MODE = yes; then
  2732. MAINTAINER_MODE_TRUE=
  2733. MAINTAINER_MODE_FALSE='#'
  2734. else
  2735. MAINTAINER_MODE_TRUE='#'
  2736. MAINTAINER_MODE_FALSE=
  2737. fi
  2738. MAINT=$MAINTAINER_MODE_TRUE
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
  2740. $as_echo_n "checking whether to enable debug build options... " >&6; }
  2741. OPT_DEBUG_BUILD="default"
  2742. # Check whether --enable-debug was given.
  2743. if test "${enable_debug+set}" = set; then :
  2744. enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
  2745. fi
  2746. case "$OPT_DEBUG_BUILD" in
  2747. no)
  2748. want_debug="no"
  2749. ;;
  2750. default)
  2751. want_debug="no"
  2752. ;;
  2753. *)
  2754. want_debug="yes"
  2755. ;;
  2756. esac
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
  2758. $as_echo "$want_debug" >&6; }
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
  2760. $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
  2761. OPT_COMPILER_OPTIMIZE="default"
  2762. # Check whether --enable-optimize was given.
  2763. if test "${enable_optimize+set}" = set; then :
  2764. enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
  2765. fi
  2766. case "$OPT_COMPILER_OPTIMIZE" in
  2767. no)
  2768. want_optimize="no"
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2770. $as_echo "no" >&6; }
  2771. ;;
  2772. default)
  2773. if test "$want_debug" = "yes"; then
  2774. want_optimize="assume_no"
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
  2776. $as_echo "(assumed) no" >&6; }
  2777. else
  2778. want_optimize="assume_yes"
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2780. $as_echo "(assumed) yes" >&6; }
  2781. fi
  2782. ;;
  2783. *)
  2784. want_optimize="yes"
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2786. $as_echo "yes" >&6; }
  2787. ;;
  2788. esac
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
  2790. $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
  2791. OPT_COMPILER_WARNINGS="default"
  2792. # Check whether --enable-warnings was given.
  2793. if test "${enable_warnings+set}" = set; then :
  2794. enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
  2795. fi
  2796. case "$OPT_COMPILER_WARNINGS" in
  2797. no)
  2798. want_warnings="no"
  2799. ;;
  2800. default)
  2801. want_warnings="$want_debug"
  2802. ;;
  2803. *)
  2804. want_warnings="yes"
  2805. ;;
  2806. esac
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
  2808. $as_echo "$want_warnings" >&6; }
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
  2810. $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
  2811. OPT_COMPILER_WERROR="default"
  2812. # Check whether --enable-werror was given.
  2813. if test "${enable_werror+set}" = set; then :
  2814. enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
  2815. fi
  2816. case "$OPT_COMPILER_WERROR" in
  2817. no)
  2818. want_werror="no"
  2819. ;;
  2820. default)
  2821. want_werror="no"
  2822. ;;
  2823. *)
  2824. want_werror="yes"
  2825. ;;
  2826. esac
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
  2828. $as_echo "$want_werror" >&6; }
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
  2830. $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
  2831. OPT_CURLDEBUG_BUILD="default"
  2832. # Check whether --enable-curldebug was given.
  2833. if test "${enable_curldebug+set}" = set; then :
  2834. enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
  2835. fi
  2836. case "$OPT_CURLDEBUG_BUILD" in
  2837. no)
  2838. want_curldebug="no"
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. ;;
  2842. default)
  2843. if test "$want_debug" = "yes"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  2845. $as_echo "(assumed) yes" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. want_curldebug_assumed="yes"
  2851. want_curldebug="$want_debug"
  2852. ;;
  2853. *)
  2854. want_curldebug="yes"
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2856. $as_echo "yes" >&6; }
  2857. ;;
  2858. esac
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
  2860. $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
  2861. OPT_SYMBOL_HIDING="default"
  2862. # Check whether --enable-symbol-hiding was given.
  2863. if test "${enable_symbol_hiding+set}" = set; then :
  2864. enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
  2865. fi
  2866. # Check whether --enable-hidden-symbols was given.
  2867. if test "${enable_hidden_symbols+set}" = set; then :
  2868. enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
  2869. fi
  2870. case "$OPT_SYMBOL_HIDING" in
  2871. no)
  2872. want_symbol_hiding="no"
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. ;;
  2876. default)
  2877. want_symbol_hiding="yes"
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2879. $as_echo "yes" >&6; }
  2880. ;;
  2881. *)
  2882. want_symbol_hiding="yes"
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2884. $as_echo "yes" >&6; }
  2885. ;;
  2886. esac
  2887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
  2888. $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
  2889. OPT_ARES="default"
  2890. # Check whether --enable-ares was given.
  2891. if test "${enable_ares+set}" = set; then :
  2892. enableval=$enable_ares; OPT_ARES=$enableval
  2893. fi
  2894. case "$OPT_ARES" in
  2895. no)
  2896. want_ares="no"
  2897. ;;
  2898. default)
  2899. want_ares="no"
  2900. ;;
  2901. *)
  2902. want_ares="yes"
  2903. if test -n "$enableval" && test "$enableval" != "yes"; then
  2904. want_ares_path="$enableval"
  2905. fi
  2906. ;;
  2907. esac
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
  2909. $as_echo "$want_ares" >&6; }
  2910. #
  2911. # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
  2912. #
  2913. if test -z "$xc_configure_preamble_result"; then
  2914. as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
  2915. fi
  2916. #
  2917. # Check that 'PATH_SEPARATOR' has already been set.
  2918. #
  2919. if test -z "$xc_PATH_SEPARATOR"; then
  2920. as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
  2921. fi
  2922. if test -z "$PATH_SEPARATOR"; then
  2923. as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
  2924. fi
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
  2926. $as_echo_n "checking for path separator... " >&6; }
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
  2928. $as_echo "$PATH_SEPARATOR" >&6; }
  2929. if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
  2931. $as_echo_n "checking for initial path separator... " >&6; }
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
  2933. $as_echo "$xc_PATH_SEPARATOR" >&6; }
  2934. as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
  2935. fi
  2936. #
  2937. # save the configure arguments
  2938. #
  2939. CONFIGURE_OPTIONS="\"$ac_configure_args\""
  2940. CURL_CFLAG_EXTRAS=""
  2941. if test X"$want_werror" = Xyes; then
  2942. CURL_CFLAG_EXTRAS="-Werror"
  2943. fi
  2944. if test -z "$SED"; then
  2945. # Extract the first word of "sed", so it can be a program name with args.
  2946. set dummy sed; ac_word=$2
  2947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2948. $as_echo_n "checking for $ac_word... " >&6; }
  2949. if ${ac_cv_path_SED+:} false; then :
  2950. $as_echo_n "(cached) " >&6
  2951. else
  2952. case $SED in
  2953. [\\/]* | ?:[\\/]*)
  2954. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  2955. ;;
  2956. *)
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  2959. for as_dir in $as_dummy
  2960. do
  2961. IFS=$as_save_IFS
  2962. test -z "$as_dir" && as_dir=.
  2963. for ac_exec_ext in '' $ac_executable_extensions; do
  2964. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2965. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2967. break 2
  2968. fi
  2969. done
  2970. done
  2971. IFS=$as_save_IFS
  2972. test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
  2973. ;;
  2974. esac
  2975. fi
  2976. SED=$ac_cv_path_SED
  2977. if test -n "$SED"; then
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  2979. $as_echo "$SED" >&6; }
  2980. else
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2982. $as_echo "no" >&6; }
  2983. fi
  2984. if test -z "$SED" || test "$SED" = "not_found"; then
  2985. as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
  2986. fi
  2987. fi
  2988. if test -z "$GREP"; then
  2989. # Extract the first word of "grep", so it can be a program name with args.
  2990. set dummy grep; ac_word=$2
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2992. $as_echo_n "checking for $ac_word... " >&6; }
  2993. if ${ac_cv_path_GREP+:} false; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. case $GREP in
  2997. [\\/]* | ?:[\\/]*)
  2998. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  2999. ;;
  3000. *)
  3001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3002. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3003. for as_dir in $as_dummy
  3004. do
  3005. IFS=$as_save_IFS
  3006. test -z "$as_dir" && as_dir=.
  3007. for ac_exec_ext in '' $ac_executable_extensions; do
  3008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3009. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  3010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3011. break 2
  3012. fi
  3013. done
  3014. done
  3015. IFS=$as_save_IFS
  3016. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
  3017. ;;
  3018. esac
  3019. fi
  3020. GREP=$ac_cv_path_GREP
  3021. if test -n "$GREP"; then
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  3023. $as_echo "$GREP" >&6; }
  3024. else
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3026. $as_echo "no" >&6; }
  3027. fi
  3028. if test -z "$GREP" || test "$GREP" = "not_found"; then
  3029. as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
  3030. fi
  3031. fi
  3032. if test -z "$EGREP"; then
  3033. if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
  3034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3035. $as_echo_n "checking for egrep... " >&6; }
  3036. EGREP="$GREP -E"
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3038. $as_echo "$EGREP" >&6; }
  3039. else
  3040. # Extract the first word of "egrep", so it can be a program name with args.
  3041. set dummy egrep; ac_word=$2
  3042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3043. $as_echo_n "checking for $ac_word... " >&6; }
  3044. if ${ac_cv_path_EGREP+:} false; then :
  3045. $as_echo_n "(cached) " >&6
  3046. else
  3047. case $EGREP in
  3048. [\\/]* | ?:[\\/]*)
  3049. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
  3050. ;;
  3051. *)
  3052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3053. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3054. for as_dir in $as_dummy
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3060. ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3062. break 2
  3063. fi
  3064. done
  3065. done
  3066. IFS=$as_save_IFS
  3067. test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
  3068. ;;
  3069. esac
  3070. fi
  3071. EGREP=$ac_cv_path_EGREP
  3072. if test -n "$EGREP"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
  3074. $as_echo "$EGREP" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. fi
  3080. fi
  3081. if test -z "$EGREP" || test "$EGREP" = "not_found"; then
  3082. as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
  3083. fi
  3084. if test -z "$AR"; then
  3085. if test -n "$ac_tool_prefix"; then
  3086. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3087. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3089. $as_echo_n "checking for $ac_word... " >&6; }
  3090. if ${ac_cv_path_AR+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. case $AR in
  3094. [\\/]* | ?:[\\/]*)
  3095. ac_cv_path_AR="$AR" # Let the user override the test with a path.
  3096. ;;
  3097. *)
  3098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3099. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3100. for as_dir in $as_dummy
  3101. do
  3102. IFS=$as_save_IFS
  3103. test -z "$as_dir" && as_dir=.
  3104. for ac_exec_ext in '' $ac_executable_extensions; do
  3105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3106. ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3108. break 2
  3109. fi
  3110. done
  3111. done
  3112. IFS=$as_save_IFS
  3113. ;;
  3114. esac
  3115. fi
  3116. AR=$ac_cv_path_AR
  3117. if test -n "$AR"; then
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3119. $as_echo "$AR" >&6; }
  3120. else
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3122. $as_echo "no" >&6; }
  3123. fi
  3124. fi
  3125. if test -z "$ac_cv_path_AR"; then
  3126. ac_pt_AR=$AR
  3127. # Extract the first word of "ar", so it can be a program name with args.
  3128. set dummy ar; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if ${ac_cv_path_ac_pt_AR+:} false; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. case $ac_pt_AR in
  3135. [\\/]* | ?:[\\/]*)
  3136. ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
  3137. ;;
  3138. *)
  3139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3140. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  3141. for as_dir in $as_dummy
  3142. do
  3143. IFS=$as_save_IFS
  3144. test -z "$as_dir" && as_dir=.
  3145. for ac_exec_ext in '' $ac_executable_extensions; do
  3146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3147. ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
  3148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3149. break 2
  3150. fi
  3151. done
  3152. done
  3153. IFS=$as_save_IFS
  3154. ;;
  3155. esac
  3156. fi
  3157. ac_pt_AR=$ac_cv_path_ac_pt_AR
  3158. if test -n "$ac_pt_AR"; then
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
  3160. $as_echo "$ac_pt_AR" >&6; }
  3161. else
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3163. $as_echo "no" >&6; }
  3164. fi
  3165. if test "x$ac_pt_AR" = x; then
  3166. AR="not_found"
  3167. else
  3168. case $cross_compiling:$ac_tool_warned in
  3169. yes:)
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3171. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3172. ac_tool_warned=yes ;;
  3173. esac
  3174. AR=$ac_pt_AR
  3175. fi
  3176. else
  3177. AR="$ac_cv_path_AR"
  3178. fi
  3179. if test -z "$AR" || test "$AR" = "not_found"; then
  3180. as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
  3181. fi
  3182. fi
  3183. if test -f ${srcdir}/include/curl/curlbuild.h; then
  3184. rm -f ${srcdir}/include/curl/curlbuild.h
  3185. fi
  3186. CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
  3187. xc_prog_cc_prev_IFS=$IFS
  3188. xc_prog_cc_prev_LIBS=$LIBS
  3189. xc_prog_cc_prev_CFLAGS=$CFLAGS
  3190. xc_prog_cc_prev_LDFLAGS=$LDFLAGS
  3191. xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
  3192. xc_bad_var_libs=no
  3193. for xc_word in $LIBS; do
  3194. case "$xc_word" in
  3195. -l* | --library=*)
  3196. :
  3197. ;;
  3198. *)
  3199. xc_bad_var_libs=yes
  3200. ;;
  3201. esac
  3202. done
  3203. if test $xc_bad_var_libs = yes; then
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  3205. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  3207. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  3208. fi
  3209. xc_bad_var_ldflags=no
  3210. for xc_word in $LDFLAGS; do
  3211. case "$xc_word" in
  3212. -D*)
  3213. xc_bad_var_ldflags=yes
  3214. ;;
  3215. -U*)
  3216. xc_bad_var_ldflags=yes
  3217. ;;
  3218. -I*)
  3219. xc_bad_var_ldflags=yes
  3220. ;;
  3221. -l* | --library=*)
  3222. xc_bad_var_ldflags=yes
  3223. ;;
  3224. esac
  3225. done
  3226. if test $xc_bad_var_ldflags = yes; then
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  3228. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  3229. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  3230. for xc_word in $LDFLAGS; do
  3231. case "$xc_word" in
  3232. -D*)
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3234. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3235. ;;
  3236. -U*)
  3237. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3238. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3239. ;;
  3240. -I*)
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3242. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3243. ;;
  3244. -l* | --library=*)
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3246. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3247. ;;
  3248. esac
  3249. done
  3250. fi
  3251. xc_bad_var_cppflags=no
  3252. for xc_word in $CPPFLAGS; do
  3253. case "$xc_word" in
  3254. -rpath*)
  3255. xc_bad_var_cppflags=yes
  3256. ;;
  3257. -L* | --library-path=*)
  3258. xc_bad_var_cppflags=yes
  3259. ;;
  3260. -l* | --library=*)
  3261. xc_bad_var_cppflags=yes
  3262. ;;
  3263. esac
  3264. done
  3265. if test $xc_bad_var_cppflags = yes; then
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  3267. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  3268. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  3269. for xc_word in $CPPFLAGS; do
  3270. case "$xc_word" in
  3271. -rpath*)
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3273. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3274. ;;
  3275. -L* | --library-path=*)
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3277. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3278. ;;
  3279. -l* | --library=*)
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3281. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3282. ;;
  3283. esac
  3284. done
  3285. fi
  3286. xc_bad_var_cflags=no
  3287. for xc_word in $CFLAGS; do
  3288. case "$xc_word" in
  3289. -D*)
  3290. xc_bad_var_cflags=yes
  3291. ;;
  3292. -U*)
  3293. xc_bad_var_cflags=yes
  3294. ;;
  3295. -I*)
  3296. xc_bad_var_cflags=yes
  3297. ;;
  3298. -rpath*)
  3299. xc_bad_var_cflags=yes
  3300. ;;
  3301. -L* | --library-path=*)
  3302. xc_bad_var_cflags=yes
  3303. ;;
  3304. -l* | --library=*)
  3305. xc_bad_var_cflags=yes
  3306. ;;
  3307. esac
  3308. done
  3309. if test $xc_bad_var_cflags = yes; then
  3310. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  3311. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  3312. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  3313. for xc_word in $CFLAGS; do
  3314. case "$xc_word" in
  3315. -D*)
  3316. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  3317. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  3318. ;;
  3319. -U*)
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  3321. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  3322. ;;
  3323. -I*)
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  3325. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  3326. ;;
  3327. -rpath*)
  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  3329. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  3330. ;;
  3331. -L* | --library-path=*)
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  3333. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  3334. ;;
  3335. -l* | --library=*)
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  3337. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  3338. ;;
  3339. esac
  3340. done
  3341. fi
  3342. if test $xc_bad_var_libs = yes ||
  3343. test $xc_bad_var_cflags = yes ||
  3344. test $xc_bad_var_ldflags = yes ||
  3345. test $xc_bad_var_cppflags = yes; then
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  3347. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  3348. fi
  3349. ac_aux_dir=
  3350. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3351. if test -f "$ac_dir/install-sh"; then
  3352. ac_aux_dir=$ac_dir
  3353. ac_install_sh="$ac_aux_dir/install-sh -c"
  3354. break
  3355. elif test -f "$ac_dir/install.sh"; then
  3356. ac_aux_dir=$ac_dir
  3357. ac_install_sh="$ac_aux_dir/install.sh -c"
  3358. break
  3359. elif test -f "$ac_dir/shtool"; then
  3360. ac_aux_dir=$ac_dir
  3361. ac_install_sh="$ac_aux_dir/shtool install -c"
  3362. break
  3363. fi
  3364. done
  3365. if test -z "$ac_aux_dir"; then
  3366. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3367. fi
  3368. # These three variables are undocumented and unsupported,
  3369. # and are intended to be withdrawn in a future Autoconf release.
  3370. # They can cause serious problems if a builder's source tree is in a directory
  3371. # whose full name contains unusual characters.
  3372. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3373. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3374. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3375. # Find a good install program. We prefer a C program (faster),
  3376. # so one script is as good as another. But avoid the broken or
  3377. # incompatible versions:
  3378. # SysV /etc/install, /usr/sbin/install
  3379. # SunOS /usr/etc/install
  3380. # IRIX /sbin/install
  3381. # AIX /bin/install
  3382. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3383. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3384. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3385. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3386. # OS/2's system install, which has a completely different semantic
  3387. # ./install, which can be erroneously created by make from ./install.sh.
  3388. # Reject install programs that cannot install multiple files.
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3390. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3391. if test -z "$INSTALL"; then
  3392. if ${ac_cv_path_install+:} false; then :
  3393. $as_echo_n "(cached) " >&6
  3394. else
  3395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3396. for as_dir in $PATH
  3397. do
  3398. IFS=$as_save_IFS
  3399. test -z "$as_dir" && as_dir=.
  3400. # Account for people who put trailing slashes in PATH elements.
  3401. case $as_dir/ in #((
  3402. ./ | .// | /[cC]/* | \
  3403. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3404. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3405. /usr/ucb/* ) ;;
  3406. *)
  3407. # OSF1 and SCO ODT 3.0 have their own names for install.
  3408. # Don't use installbsd from OSF since it installs stuff as root
  3409. # by default.
  3410. for ac_prog in ginstall scoinst install; do
  3411. for ac_exec_ext in '' $ac_executable_extensions; do
  3412. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3413. if test $ac_prog = install &&
  3414. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3415. # AIX install. It has an incompatible calling convention.
  3416. :
  3417. elif test $ac_prog = install &&
  3418. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3419. # program-specific install script used by HP pwplus--don't use.
  3420. :
  3421. else
  3422. rm -rf conftest.one conftest.two conftest.dir
  3423. echo one > conftest.one
  3424. echo two > conftest.two
  3425. mkdir conftest.dir
  3426. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3427. test -s conftest.one && test -s conftest.two &&
  3428. test -s conftest.dir/conftest.one &&
  3429. test -s conftest.dir/conftest.two
  3430. then
  3431. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3432. break 3
  3433. fi
  3434. fi
  3435. fi
  3436. done
  3437. done
  3438. ;;
  3439. esac
  3440. done
  3441. IFS=$as_save_IFS
  3442. rm -rf conftest.one conftest.two conftest.dir
  3443. fi
  3444. if test "${ac_cv_path_install+set}" = set; then
  3445. INSTALL=$ac_cv_path_install
  3446. else
  3447. # As a last resort, use the slow shell script. Don't cache a
  3448. # value for INSTALL within a source directory, because that will
  3449. # break other packages using the cache if that directory is
  3450. # removed, or if the value is a relative name.
  3451. INSTALL=$ac_install_sh
  3452. fi
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3455. $as_echo "$INSTALL" >&6; }
  3456. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3457. # It thinks the first close brace ends the variable substitution.
  3458. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3459. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3460. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3461. # expand $ac_aux_dir to an absolute path
  3462. am_aux_dir=`cd $ac_aux_dir && pwd`
  3463. ac_ext=c
  3464. ac_cpp='$CPP $CPPFLAGS'
  3465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3468. if test -n "$ac_tool_prefix"; then
  3469. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3470. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. $as_echo_n "checking for $ac_word... " >&6; }
  3473. if ${ac_cv_prog_CC+:} false; then :
  3474. $as_echo_n "(cached) " >&6
  3475. else
  3476. if test -n "$CC"; then
  3477. ac_cv_prog_CC="$CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. test -z "$as_dir" && as_dir=.
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3486. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3488. break 2
  3489. fi
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. fi
  3494. fi
  3495. CC=$ac_cv_prog_CC
  3496. if test -n "$CC"; then
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3498. $as_echo "$CC" >&6; }
  3499. else
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501. $as_echo "no" >&6; }
  3502. fi
  3503. fi
  3504. if test -z "$ac_cv_prog_CC"; then
  3505. ac_ct_CC=$CC
  3506. # Extract the first word of "gcc", so it can be a program name with args.
  3507. set dummy gcc; ac_word=$2
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3509. $as_echo_n "checking for $ac_word... " >&6; }
  3510. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. if test -n "$ac_ct_CC"; then
  3514. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3515. else
  3516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3517. for as_dir in $PATH
  3518. do
  3519. IFS=$as_save_IFS
  3520. test -z "$as_dir" && as_dir=.
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3523. ac_cv_prog_ac_ct_CC="gcc"
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3525. break 2
  3526. fi
  3527. done
  3528. done
  3529. IFS=$as_save_IFS
  3530. fi
  3531. fi
  3532. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3533. if test -n "$ac_ct_CC"; then
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3535. $as_echo "$ac_ct_CC" >&6; }
  3536. else
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3538. $as_echo "no" >&6; }
  3539. fi
  3540. if test "x$ac_ct_CC" = x; then
  3541. CC=""
  3542. else
  3543. case $cross_compiling:$ac_tool_warned in
  3544. yes:)
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3547. ac_tool_warned=yes ;;
  3548. esac
  3549. CC=$ac_ct_CC
  3550. fi
  3551. else
  3552. CC="$ac_cv_prog_CC"
  3553. fi
  3554. if test -z "$CC"; then
  3555. if test -n "$ac_tool_prefix"; then
  3556. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3557. set dummy ${ac_tool_prefix}cc; 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}cc"
  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. fi
  3592. if test -z "$CC"; then
  3593. # Extract the first word of "cc", so it can be a program name with args.
  3594. set dummy cc; 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_CC+:} false; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. if test -n "$CC"; then
  3601. ac_cv_prog_CC="$CC" # Let the user override the test.
  3602. else
  3603. ac_prog_rejected=no
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3611. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3612. ac_prog_rejected=yes
  3613. continue
  3614. fi
  3615. ac_cv_prog_CC="cc"
  3616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. if test $ac_prog_rejected = yes; then
  3623. # We found a bogon in the path, so make sure we never use it.
  3624. set dummy $ac_cv_prog_CC
  3625. shift
  3626. if test $# != 0; then
  3627. # We chose a different compiler from the bogus one.
  3628. # However, it has the same basename, so the bogon will be chosen
  3629. # first if we set CC to just the basename; use the full file name.
  3630. shift
  3631. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3632. fi
  3633. fi
  3634. fi
  3635. fi
  3636. CC=$ac_cv_prog_CC
  3637. if test -n "$CC"; then
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3639. $as_echo "$CC" >&6; }
  3640. else
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3642. $as_echo "no" >&6; }
  3643. fi
  3644. fi
  3645. if test -z "$CC"; then
  3646. if test -n "$ac_tool_prefix"; then
  3647. for ac_prog in cl.exe
  3648. do
  3649. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3650. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. $as_echo_n "checking for $ac_word... " >&6; }
  3653. if ${ac_cv_prog_CC+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -n "$CC"; then
  3657. ac_cv_prog_CC="$CC" # Let the user override the test.
  3658. else
  3659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3660. for as_dir in $PATH
  3661. do
  3662. IFS=$as_save_IFS
  3663. test -z "$as_dir" && as_dir=.
  3664. for ac_exec_ext in '' $ac_executable_extensions; do
  3665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3666. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3668. break 2
  3669. fi
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. fi
  3675. CC=$ac_cv_prog_CC
  3676. if test -n "$CC"; then
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3678. $as_echo "$CC" >&6; }
  3679. else
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3681. $as_echo "no" >&6; }
  3682. fi
  3683. test -n "$CC" && break
  3684. done
  3685. fi
  3686. if test -z "$CC"; then
  3687. ac_ct_CC=$CC
  3688. for ac_prog in cl.exe
  3689. do
  3690. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3691. set dummy $ac_prog; ac_word=$2
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3693. $as_echo_n "checking for $ac_word... " >&6; }
  3694. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. if test -n "$ac_ct_CC"; then
  3698. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3699. else
  3700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3701. for as_dir in $PATH
  3702. do
  3703. IFS=$as_save_IFS
  3704. test -z "$as_dir" && as_dir=.
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3707. ac_cv_prog_ac_ct_CC="$ac_prog"
  3708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3709. break 2
  3710. fi
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. fi
  3715. fi
  3716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3717. if test -n "$ac_ct_CC"; then
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3719. $as_echo "$ac_ct_CC" >&6; }
  3720. else
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3722. $as_echo "no" >&6; }
  3723. fi
  3724. test -n "$ac_ct_CC" && break
  3725. done
  3726. if test "x$ac_ct_CC" = x; then
  3727. CC=""
  3728. else
  3729. case $cross_compiling:$ac_tool_warned in
  3730. yes:)
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3733. ac_tool_warned=yes ;;
  3734. esac
  3735. CC=$ac_ct_CC
  3736. fi
  3737. fi
  3738. fi
  3739. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3741. as_fn_error $? "no acceptable C compiler found in \$PATH
  3742. See \`config.log' for more details" "$LINENO" 5; }
  3743. # Provide some information about the compiler.
  3744. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3745. set X $ac_compile
  3746. ac_compiler=$2
  3747. for ac_option in --version -v -V -qversion; do
  3748. { { ac_try="$ac_compiler $ac_option >&5"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3754. $as_echo "$ac_try_echo"; } >&5
  3755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3756. ac_status=$?
  3757. if test -s conftest.err; then
  3758. sed '10a\
  3759. ... rest of stderr output deleted ...
  3760. 10q' conftest.err >conftest.er1
  3761. cat conftest.er1 >&5
  3762. fi
  3763. rm -f conftest.er1 conftest.err
  3764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }
  3766. done
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. int main (void)
  3770. {
  3771. ;
  3772. return 0;
  3773. }
  3774. _ACEOF
  3775. ac_clean_files_save=$ac_clean_files
  3776. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3777. # Try to create an executable without -o first, disregard a.out.
  3778. # It will help us diagnose broken compilers, and finding out an intuition
  3779. # of exeext.
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3781. $as_echo_n "checking whether the C compiler works... " >&6; }
  3782. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3783. # The possible output files:
  3784. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3785. ac_rmfiles=
  3786. for ac_file in $ac_files
  3787. do
  3788. case $ac_file in
  3789. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3790. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3791. esac
  3792. done
  3793. rm -f $ac_rmfiles
  3794. if { { ac_try="$ac_link_default"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3800. $as_echo "$ac_try_echo"; } >&5
  3801. (eval "$ac_link_default") 2>&5
  3802. ac_status=$?
  3803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3804. test $ac_status = 0; }; then :
  3805. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3806. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3807. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3808. # so that the user can short-circuit this test for compilers unknown to
  3809. # Autoconf.
  3810. for ac_file in $ac_files ''
  3811. do
  3812. test -f "$ac_file" || continue
  3813. case $ac_file in
  3814. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3815. ;;
  3816. [ab].out )
  3817. # We found the default executable, but exeext='' is most
  3818. # certainly right.
  3819. break;;
  3820. *.* )
  3821. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3822. then :; else
  3823. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3824. fi
  3825. # We set ac_cv_exeext here because the later test for it is not
  3826. # safe: cross compilers may not add the suffix if given an `-o'
  3827. # argument, so we may need to know it at that point already.
  3828. # Even if this section looks crufty: it has the advantage of
  3829. # actually working.
  3830. break;;
  3831. * )
  3832. break;;
  3833. esac
  3834. done
  3835. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3836. else
  3837. ac_file=''
  3838. fi
  3839. if test -z "$ac_file"; then :
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3841. $as_echo "no" >&6; }
  3842. $as_echo "$as_me: failed program was:" >&5
  3843. sed 's/^/| /' conftest.$ac_ext >&5
  3844. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3845. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3846. as_fn_error 77 "C compiler cannot create executables
  3847. See \`config.log' for more details" "$LINENO" 5; }
  3848. else
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3850. $as_echo "yes" >&6; }
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3853. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3855. $as_echo "$ac_file" >&6; }
  3856. ac_exeext=$ac_cv_exeext
  3857. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3858. ac_clean_files=$ac_clean_files_save
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3860. $as_echo_n "checking for suffix of executables... " >&6; }
  3861. if { { ac_try="$ac_link"
  3862. case "(($ac_try" in
  3863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3864. *) ac_try_echo=$ac_try;;
  3865. esac
  3866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3867. $as_echo "$ac_try_echo"; } >&5
  3868. (eval "$ac_link") 2>&5
  3869. ac_status=$?
  3870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3871. test $ac_status = 0; }; then :
  3872. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3873. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3874. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3875. # `rm'.
  3876. for ac_file in conftest.exe conftest conftest.*; do
  3877. test -f "$ac_file" || continue
  3878. case $ac_file in
  3879. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3880. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3881. break;;
  3882. * ) break;;
  3883. esac
  3884. done
  3885. else
  3886. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3887. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3888. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3889. See \`config.log' for more details" "$LINENO" 5; }
  3890. fi
  3891. rm -f conftest conftest$ac_cv_exeext
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3893. $as_echo "$ac_cv_exeext" >&6; }
  3894. rm -f conftest.$ac_ext
  3895. EXEEXT=$ac_cv_exeext
  3896. ac_exeext=$EXEEXT
  3897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3898. /* end confdefs.h. */
  3899. #include <stdio.h>
  3900. int main (void)
  3901. {
  3902. FILE *f = fopen ("conftest.out", "w");
  3903. return ferror (f) || fclose (f) != 0;
  3904. ;
  3905. return 0;
  3906. }
  3907. _ACEOF
  3908. ac_clean_files="$ac_clean_files conftest.out"
  3909. # Check that the compiler produces executables we can run. If not, either
  3910. # the compiler is broken, or we cross compile.
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3912. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3913. if test "$cross_compiling" != yes; then
  3914. { { ac_try="$ac_link"
  3915. case "(($ac_try" in
  3916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3917. *) ac_try_echo=$ac_try;;
  3918. esac
  3919. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3920. $as_echo "$ac_try_echo"; } >&5
  3921. (eval "$ac_link") 2>&5
  3922. ac_status=$?
  3923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3924. test $ac_status = 0; }
  3925. if { ac_try='./conftest$ac_cv_exeext'
  3926. { { case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3931. $as_echo "$ac_try_echo"; } >&5
  3932. (eval "$ac_try") 2>&5
  3933. ac_status=$?
  3934. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3935. test $ac_status = 0; }; }; then
  3936. cross_compiling=no
  3937. else
  3938. if test "$cross_compiling" = maybe; then
  3939. cross_compiling=yes
  3940. else
  3941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3943. as_fn_error $? "cannot run C compiled programs.
  3944. If you meant to cross compile, use \`--host'.
  3945. See \`config.log' for more details" "$LINENO" 5; }
  3946. fi
  3947. fi
  3948. fi
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3950. $as_echo "$cross_compiling" >&6; }
  3951. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3952. ac_clean_files=$ac_clean_files_save
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3954. $as_echo_n "checking for suffix of object files... " >&6; }
  3955. if ${ac_cv_objext+:} false; then :
  3956. $as_echo_n "(cached) " >&6
  3957. else
  3958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end confdefs.h. */
  3960. int main (void)
  3961. {
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. rm -f conftest.o conftest.obj
  3967. if { { ac_try="$ac_compile"
  3968. case "(($ac_try" in
  3969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3970. *) ac_try_echo=$ac_try;;
  3971. esac
  3972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3973. $as_echo "$ac_try_echo"; } >&5
  3974. (eval "$ac_compile") 2>&5
  3975. ac_status=$?
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3977. test $ac_status = 0; }; then :
  3978. for ac_file in conftest.o conftest.obj conftest.*; do
  3979. test -f "$ac_file" || continue;
  3980. case $ac_file in
  3981. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3982. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3983. break;;
  3984. esac
  3985. done
  3986. else
  3987. $as_echo "$as_me: failed program was:" >&5
  3988. sed 's/^/| /' conftest.$ac_ext >&5
  3989. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3991. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3992. See \`config.log' for more details" "$LINENO" 5; }
  3993. fi
  3994. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3997. $as_echo "$ac_cv_objext" >&6; }
  3998. OBJEXT=$ac_cv_objext
  3999. ac_objext=$OBJEXT
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4001. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4002. if ${ac_cv_c_compiler_gnu+:} false; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4006. /* end confdefs.h. */
  4007. int main (void)
  4008. {
  4009. #ifndef __GNUC__
  4010. choke me
  4011. #endif
  4012. ;
  4013. return 0;
  4014. }
  4015. _ACEOF
  4016. if ac_fn_c_try_compile "$LINENO"; then :
  4017. ac_compiler_gnu=yes
  4018. else
  4019. ac_compiler_gnu=no
  4020. fi
  4021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4022. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4023. fi
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4025. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4026. if test $ac_compiler_gnu = yes; then
  4027. GCC=yes
  4028. else
  4029. GCC=
  4030. fi
  4031. ac_test_CFLAGS=${CFLAGS+set}
  4032. ac_save_CFLAGS=$CFLAGS
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4034. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4035. if ${ac_cv_prog_cc_g+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. ac_save_c_werror_flag=$ac_c_werror_flag
  4039. ac_c_werror_flag=yes
  4040. ac_cv_prog_cc_g=no
  4041. CFLAGS="-g"
  4042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4043. /* end confdefs.h. */
  4044. int main (void)
  4045. {
  4046. ;
  4047. return 0;
  4048. }
  4049. _ACEOF
  4050. if ac_fn_c_try_compile "$LINENO"; then :
  4051. ac_cv_prog_cc_g=yes
  4052. else
  4053. CFLAGS=""
  4054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4055. /* end confdefs.h. */
  4056. int main (void)
  4057. {
  4058. ;
  4059. return 0;
  4060. }
  4061. _ACEOF
  4062. if ac_fn_c_try_compile "$LINENO"; then :
  4063. else
  4064. ac_c_werror_flag=$ac_save_c_werror_flag
  4065. CFLAGS="-g"
  4066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4067. /* end confdefs.h. */
  4068. int main (void)
  4069. {
  4070. ;
  4071. return 0;
  4072. }
  4073. _ACEOF
  4074. if ac_fn_c_try_compile "$LINENO"; then :
  4075. ac_cv_prog_cc_g=yes
  4076. fi
  4077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4078. fi
  4079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4080. fi
  4081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4082. ac_c_werror_flag=$ac_save_c_werror_flag
  4083. fi
  4084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4085. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4086. if test "$ac_test_CFLAGS" = set; then
  4087. CFLAGS=$ac_save_CFLAGS
  4088. elif test $ac_cv_prog_cc_g = yes; then
  4089. if test "$GCC" = yes; then
  4090. CFLAGS="-g -O2"
  4091. else
  4092. CFLAGS="-g"
  4093. fi
  4094. else
  4095. if test "$GCC" = yes; then
  4096. CFLAGS="-O2"
  4097. else
  4098. CFLAGS=
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4102. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4103. if ${ac_cv_prog_cc_c89+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. ac_cv_prog_cc_c89=no
  4107. ac_save_CC=$CC
  4108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4109. /* end confdefs.h. */
  4110. #include <stdarg.h>
  4111. #include <stdio.h>
  4112. struct stat;
  4113. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4114. struct buf { int x; };
  4115. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4116. static char *e (p, i)
  4117. char **p;
  4118. int i;
  4119. {
  4120. return p[i];
  4121. }
  4122. static char *f (char * (*g) (char **, int), char **p, ...)
  4123. {
  4124. char *s;
  4125. va_list v;
  4126. va_start (v,p);
  4127. s = g (p, va_arg (v,int));
  4128. va_end (v);
  4129. return s;
  4130. }
  4131. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4132. function prototypes and stuff, but not '\xHH' hex character constants.
  4133. These don't provoke an error unfortunately, instead are silently treated
  4134. as 'x'. The following induces an error, until -std is added to get
  4135. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4136. array size at least. It's necessary to write '\x00'==0 to get something
  4137. that's true only with -std. */
  4138. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4139. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4140. inside strings and character constants. */
  4141. #define FOO(x) 'x'
  4142. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4143. int test (int i, double x);
  4144. struct s1 {int (*f) (int a);};
  4145. struct s2 {int (*f) (double a);};
  4146. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4147. int argc;
  4148. char **argv;
  4149. int main (void)
  4150. {
  4151. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4152. ;
  4153. return 0;
  4154. }
  4155. _ACEOF
  4156. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4157. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4158. do
  4159. CC="$ac_save_CC $ac_arg"
  4160. if ac_fn_c_try_compile "$LINENO"; then :
  4161. ac_cv_prog_cc_c89=$ac_arg
  4162. fi
  4163. rm -f core conftest.err conftest.$ac_objext
  4164. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4165. done
  4166. rm -f conftest.$ac_ext
  4167. CC=$ac_save_CC
  4168. fi
  4169. # AC_CACHE_VAL
  4170. case "x$ac_cv_prog_cc_c89" in
  4171. x)
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4173. $as_echo "none needed" >&6; } ;;
  4174. xno)
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4176. $as_echo "unsupported" >&6; } ;;
  4177. *)
  4178. CC="$CC $ac_cv_prog_cc_c89"
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4180. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4181. esac
  4182. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4183. fi
  4184. ac_ext=c
  4185. ac_cpp='$CPP $CPPFLAGS'
  4186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4189. ac_ext=c
  4190. ac_cpp='$CPP $CPPFLAGS'
  4191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4195. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4196. if ${am_cv_prog_cc_c_o+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. int main (void)
  4202. {
  4203. ;
  4204. return 0;
  4205. }
  4206. _ACEOF
  4207. # Make sure it works both with $CC and with simple cc.
  4208. # Following AC_PROG_CC_C_O, we do the test twice because some
  4209. # compilers refuse to overwrite an existing .o file with -o,
  4210. # though they will create one.
  4211. am_cv_prog_cc_c_o=yes
  4212. for am_i in 1 2; do
  4213. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4214. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4215. ac_status=$?
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); } \
  4218. && test -f conftest2.$ac_objext; then
  4219. : OK
  4220. else
  4221. am_cv_prog_cc_c_o=no
  4222. break
  4223. fi
  4224. done
  4225. rm -f core conftest*
  4226. unset am_i
  4227. fi
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4229. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4230. if test "$am_cv_prog_cc_c_o" != yes; then
  4231. # Losing compiler, so override with the script.
  4232. # FIXME: It is wrong to rewrite CC.
  4233. # But if we don't then we get into trouble of one sort or another.
  4234. # A longer-term fix would be to have automake use am__CC in this case,
  4235. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4236. CC="$am_aux_dir/compile $CC"
  4237. fi
  4238. ac_ext=c
  4239. ac_cpp='$CPP $CPPFLAGS'
  4240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4243. ac_ext=c
  4244. ac_cpp='$CPP $CPPFLAGS'
  4245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4249. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4250. # On Suns, sometimes $CPP names a directory.
  4251. if test -n "$CPP" && test -d "$CPP"; then
  4252. CPP=
  4253. fi
  4254. if test -z "$CPP"; then
  4255. if ${ac_cv_prog_CPP+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. # Double quotes because CPP needs to be expanded
  4259. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4260. do
  4261. ac_preproc_ok=false
  4262. for ac_c_preproc_warn_flag in '' yes
  4263. do
  4264. # Use a header file that comes with gcc, so configuring glibc
  4265. # with a fresh cross-compiler works.
  4266. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4267. # <limits.h> exists even on freestanding compilers.
  4268. # On the NeXT, cc -E runs the code through the compiler's parser,
  4269. # not just through cpp. "Syntax error" is here to catch this case.
  4270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4271. /* end confdefs.h. */
  4272. #ifdef __STDC__
  4273. # include <limits.h>
  4274. #else
  4275. # include <assert.h>
  4276. #endif
  4277. Syntax error
  4278. _ACEOF
  4279. if ac_fn_c_try_cpp "$LINENO"; then :
  4280. else
  4281. # Broken: fails on valid input.
  4282. continue
  4283. fi
  4284. rm -f conftest.err conftest.i conftest.$ac_ext
  4285. # OK, works on sane cases. Now check whether nonexistent headers
  4286. # can be detected and how.
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. #include <ac_nonexistent.h>
  4290. _ACEOF
  4291. if ac_fn_c_try_cpp "$LINENO"; then :
  4292. # Broken: success on invalid input.
  4293. continue
  4294. else
  4295. # Passes both tests.
  4296. ac_preproc_ok=:
  4297. break
  4298. fi
  4299. rm -f conftest.err conftest.i conftest.$ac_ext
  4300. done
  4301. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4302. rm -f conftest.i conftest.err conftest.$ac_ext
  4303. if $ac_preproc_ok; then :
  4304. break
  4305. fi
  4306. done
  4307. ac_cv_prog_CPP=$CPP
  4308. fi
  4309. CPP=$ac_cv_prog_CPP
  4310. else
  4311. ac_cv_prog_CPP=$CPP
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4314. $as_echo "$CPP" >&6; }
  4315. ac_preproc_ok=false
  4316. for ac_c_preproc_warn_flag in '' yes
  4317. do
  4318. # Use a header file that comes with gcc, so configuring glibc
  4319. # with a fresh cross-compiler works.
  4320. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4321. # <limits.h> exists even on freestanding compilers.
  4322. # On the NeXT, cc -E runs the code through the compiler's parser,
  4323. # not just through cpp. "Syntax error" is here to catch this case.
  4324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4325. /* end confdefs.h. */
  4326. #ifdef __STDC__
  4327. # include <limits.h>
  4328. #else
  4329. # include <assert.h>
  4330. #endif
  4331. Syntax error
  4332. _ACEOF
  4333. if ac_fn_c_try_cpp "$LINENO"; then :
  4334. else
  4335. # Broken: fails on valid input.
  4336. continue
  4337. fi
  4338. rm -f conftest.err conftest.i conftest.$ac_ext
  4339. # OK, works on sane cases. Now check whether nonexistent headers
  4340. # can be detected and how.
  4341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4342. /* end confdefs.h. */
  4343. #include <ac_nonexistent.h>
  4344. _ACEOF
  4345. if ac_fn_c_try_cpp "$LINENO"; then :
  4346. # Broken: success on invalid input.
  4347. continue
  4348. else
  4349. # Passes both tests.
  4350. ac_preproc_ok=:
  4351. break
  4352. fi
  4353. rm -f conftest.err conftest.i conftest.$ac_ext
  4354. done
  4355. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4356. rm -f conftest.i conftest.err conftest.$ac_ext
  4357. if $ac_preproc_ok; then :
  4358. else
  4359. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4361. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4362. See \`config.log' for more details" "$LINENO" 5; }
  4363. fi
  4364. ac_ext=c
  4365. ac_cpp='$CPP $CPPFLAGS'
  4366. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4367. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4368. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4369. IFS=$xc_prog_cc_prev_IFS
  4370. LIBS=$xc_prog_cc_prev_LIBS
  4371. CFLAGS=$xc_prog_cc_prev_CFLAGS
  4372. LDFLAGS=$xc_prog_cc_prev_LDFLAGS
  4373. CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
  4374. am__api_version='1.14'
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  4376. $as_echo_n "checking whether build environment is sane... " >&6; }
  4377. # Reject unsafe characters in $srcdir or the absolute working directory
  4378. # name. Accept space and tab only in the latter.
  4379. am_lf='
  4380. '
  4381. case `pwd` in
  4382. *[\\\"\#\$\&\'\`$am_lf]*)
  4383. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  4384. esac
  4385. case $srcdir in
  4386. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  4387. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  4388. esac
  4389. # Do 'set' in a subshell so we don't clobber the current shell's
  4390. # arguments. Must try -L first in case configure is actually a
  4391. # symlink; some systems play weird games with the mod time of symlinks
  4392. # (eg FreeBSD returns the mod time of the symlink's containing
  4393. # directory).
  4394. if (
  4395. am_has_slept=no
  4396. for am_try in 1 2; do
  4397. echo "timestamp, slept: $am_has_slept" > conftest.file
  4398. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  4399. if test "$*" = "X"; then
  4400. # -L didn't work.
  4401. set X `ls -t "$srcdir/configure" conftest.file`
  4402. fi
  4403. if test "$*" != "X $srcdir/configure conftest.file" \
  4404. && test "$*" != "X conftest.file $srcdir/configure"; then
  4405. # If neither matched, then we have a broken ls. This can happen
  4406. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4407. # broken ls alias from the environment. This has actually
  4408. # happened. Such a system could not be considered "sane".
  4409. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  4410. alias in your environment" "$LINENO" 5
  4411. fi
  4412. if test "$2" = conftest.file || test $am_try -eq 2; then
  4413. break
  4414. fi
  4415. # Just in case.
  4416. sleep 1
  4417. am_has_slept=yes
  4418. done
  4419. test "$2" = conftest.file
  4420. )
  4421. then
  4422. # Ok.
  4423. :
  4424. else
  4425. as_fn_error $? "newly created file is older than distributed files!
  4426. Check your system clock" "$LINENO" 5
  4427. fi
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4429. $as_echo "yes" >&6; }
  4430. # If we didn't sleep, we still need to ensure time stamps of config.status and
  4431. # generated files are strictly newer.
  4432. am_sleep_pid=
  4433. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  4434. ( sleep 1 ) &
  4435. am_sleep_pid=$!
  4436. fi
  4437. rm -f conftest.file
  4438. test "$program_prefix" != NONE &&
  4439. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4440. # Use a double $ so make ignores it.
  4441. test "$program_suffix" != NONE &&
  4442. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4443. # Double any \ or $.
  4444. # By default was `s,x,x', remove it if useless.
  4445. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4446. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4447. test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
  4448. # Use eval to expand $SHELL
  4449. if eval "$MISSING --run true"; then
  4450. am_missing_run="$MISSING --run "
  4451. else
  4452. am_missing_run=
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  4454. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  4455. fi
  4456. if test x"${install_sh}" != xset; then
  4457. case $am_aux_dir in
  4458. *\ * | *\ *)
  4459. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4460. *)
  4461. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4462. esac
  4463. fi
  4464. # Installed binaries are usually stripped using 'strip' when the user
  4465. # run "make install-strip". However 'strip' might not be the right
  4466. # tool to use in cross-compilation environments, therefore Automake
  4467. # will honor the 'STRIP' environment variable to overrule this program.
  4468. if test "$cross_compiling" != no; then
  4469. if test -n "$ac_tool_prefix"; then
  4470. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4471. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4473. $as_echo_n "checking for $ac_word... " >&6; }
  4474. if ${ac_cv_prog_STRIP+:} false; then :
  4475. $as_echo_n "(cached) " >&6
  4476. else
  4477. if test -n "$STRIP"; then
  4478. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4479. else
  4480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4481. for as_dir in $PATH
  4482. do
  4483. IFS=$as_save_IFS
  4484. test -z "$as_dir" && as_dir=.
  4485. for ac_exec_ext in '' $ac_executable_extensions; do
  4486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4487. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4489. break 2
  4490. fi
  4491. done
  4492. done
  4493. IFS=$as_save_IFS
  4494. fi
  4495. fi
  4496. STRIP=$ac_cv_prog_STRIP
  4497. if test -n "$STRIP"; then
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4499. $as_echo "$STRIP" >&6; }
  4500. else
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4502. $as_echo "no" >&6; }
  4503. fi
  4504. fi
  4505. if test -z "$ac_cv_prog_STRIP"; then
  4506. ac_ct_STRIP=$STRIP
  4507. # Extract the first word of "strip", so it can be a program name with args.
  4508. set dummy strip; ac_word=$2
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4510. $as_echo_n "checking for $ac_word... " >&6; }
  4511. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4512. $as_echo_n "(cached) " >&6
  4513. else
  4514. if test -n "$ac_ct_STRIP"; then
  4515. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4516. else
  4517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4518. for as_dir in $PATH
  4519. do
  4520. IFS=$as_save_IFS
  4521. test -z "$as_dir" && as_dir=.
  4522. for ac_exec_ext in '' $ac_executable_extensions; do
  4523. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4524. ac_cv_prog_ac_ct_STRIP="strip"
  4525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4526. break 2
  4527. fi
  4528. done
  4529. done
  4530. IFS=$as_save_IFS
  4531. fi
  4532. fi
  4533. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4534. if test -n "$ac_ct_STRIP"; then
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4536. $as_echo "$ac_ct_STRIP" >&6; }
  4537. else
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4539. $as_echo "no" >&6; }
  4540. fi
  4541. if test "x$ac_ct_STRIP" = x; then
  4542. STRIP=":"
  4543. else
  4544. case $cross_compiling:$ac_tool_warned in
  4545. yes:)
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4548. ac_tool_warned=yes ;;
  4549. esac
  4550. STRIP=$ac_ct_STRIP
  4551. fi
  4552. else
  4553. STRIP="$ac_cv_prog_STRIP"
  4554. fi
  4555. fi
  4556. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4558. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4559. if test -z "$MKDIR_P"; then
  4560. if ${ac_cv_path_mkdir+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4564. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4565. do
  4566. IFS=$as_save_IFS
  4567. test -z "$as_dir" && as_dir=.
  4568. for ac_prog in mkdir gmkdir; do
  4569. for ac_exec_ext in '' $ac_executable_extensions; do
  4570. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  4571. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4572. 'mkdir (GNU coreutils) '* | \
  4573. 'mkdir (coreutils) '* | \
  4574. 'mkdir (fileutils) '4.1*)
  4575. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4576. break 3;;
  4577. esac
  4578. done
  4579. done
  4580. done
  4581. IFS=$as_save_IFS
  4582. fi
  4583. test -d ./--version && rmdir ./--version
  4584. if test "${ac_cv_path_mkdir+set}" = set; then
  4585. MKDIR_P="$ac_cv_path_mkdir -p"
  4586. else
  4587. # As a last resort, use the slow shell script. Don't cache a
  4588. # value for MKDIR_P within a source directory, because that will
  4589. # break other packages using the cache if that directory is
  4590. # removed, or if the value is a relative name.
  4591. MKDIR_P="$ac_install_sh -d"
  4592. fi
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4595. $as_echo "$MKDIR_P" >&6; }
  4596. for ac_prog in gawk mawk nawk awk
  4597. do
  4598. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4599. set dummy $ac_prog; ac_word=$2
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4601. $as_echo_n "checking for $ac_word... " >&6; }
  4602. if ${ac_cv_prog_AWK+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if test -n "$AWK"; then
  4606. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4607. else
  4608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4609. for as_dir in $PATH
  4610. do
  4611. IFS=$as_save_IFS
  4612. test -z "$as_dir" && as_dir=.
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_AWK="$ac_prog"
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. AWK=$ac_cv_prog_AWK
  4625. if test -n "$AWK"; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4627. $as_echo "$AWK" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. test -n "$AWK" && break
  4633. done
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4635. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4636. set x ${MAKE-make}
  4637. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4638. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. cat >conftest.make <<\_ACEOF
  4642. SHELL = /bin/sh
  4643. all:
  4644. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4645. _ACEOF
  4646. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4647. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4648. *@@@%%%=?*=@@@%%%*)
  4649. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4650. *)
  4651. eval ac_cv_prog_make_${ac_make}_set=no;;
  4652. esac
  4653. rm -f conftest.make
  4654. fi
  4655. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4657. $as_echo "yes" >&6; }
  4658. SET_MAKE=
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. SET_MAKE="MAKE=${MAKE-make}"
  4663. fi
  4664. rm -rf .tst 2>/dev/null
  4665. mkdir .tst 2>/dev/null
  4666. if test -d .tst; then
  4667. am__leading_dot=.
  4668. else
  4669. am__leading_dot=_
  4670. fi
  4671. rmdir .tst 2>/dev/null
  4672. DEPDIR="${am__leading_dot}deps"
  4673. ac_config_commands="$ac_config_commands depfiles"
  4674. am_make=${MAKE-make}
  4675. cat > confinc << 'END'
  4676. am__doit:
  4677. @echo this is the am__doit target
  4678. .PHONY: am__doit
  4679. END
  4680. # If we don't find an include directive, just comment out the code.
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4682. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4683. am__include="#"
  4684. am__quote=
  4685. _am_result=none
  4686. # First try GNU make style include.
  4687. echo "include confinc" > confmf
  4688. # Ignore all kinds of additional output from 'make'.
  4689. case `$am_make -s -f confmf 2> /dev/null` in #(
  4690. *the\ am__doit\ target*)
  4691. am__include=include
  4692. am__quote=
  4693. _am_result=GNU
  4694. ;;
  4695. esac
  4696. # Now try BSD make style include.
  4697. if test "$am__include" = "#"; then
  4698. echo '.include "confinc"' > confmf
  4699. case `$am_make -s -f confmf 2> /dev/null` in #(
  4700. *the\ am__doit\ target*)
  4701. am__include=.include
  4702. am__quote="\""
  4703. _am_result=BSD
  4704. ;;
  4705. esac
  4706. fi
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4708. $as_echo "$_am_result" >&6; }
  4709. rm -f confinc confmf
  4710. # Check whether --enable-dependency-tracking was given.
  4711. if test "${enable_dependency_tracking+set}" = set; then :
  4712. enableval=$enable_dependency_tracking;
  4713. fi
  4714. if test "x$enable_dependency_tracking" != xno; then
  4715. am_depcomp="$ac_aux_dir/depcomp"
  4716. AMDEPBACKSLASH='\'
  4717. am__nodep='_no'
  4718. fi
  4719. if test "x$enable_dependency_tracking" != xno; then
  4720. AMDEP_TRUE=
  4721. AMDEP_FALSE='#'
  4722. else
  4723. AMDEP_TRUE='#'
  4724. AMDEP_FALSE=
  4725. fi
  4726. # Check whether --enable-silent-rules was given.
  4727. if test "${enable_silent_rules+set}" = set; then :
  4728. enableval=$enable_silent_rules;
  4729. fi
  4730. case $enable_silent_rules in # (((
  4731. yes) AM_DEFAULT_VERBOSITY=0;;
  4732. no) AM_DEFAULT_VERBOSITY=1;;
  4733. *) AM_DEFAULT_VERBOSITY=1;;
  4734. esac
  4735. am_make=${MAKE-make}
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4737. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4738. if ${am_cv_make_support_nested_variables+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if $as_echo 'TRUE=$(BAR$(V))
  4742. BAR0=false
  4743. BAR1=true
  4744. V=1
  4745. am__doit:
  4746. @$(TRUE)
  4747. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4748. am_cv_make_support_nested_variables=yes
  4749. else
  4750. am_cv_make_support_nested_variables=no
  4751. fi
  4752. fi
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4754. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4755. if test $am_cv_make_support_nested_variables = yes; then
  4756. AM_V='$(V)'
  4757. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4758. else
  4759. AM_V=$AM_DEFAULT_VERBOSITY
  4760. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4761. fi
  4762. AM_BACKSLASH='\'
  4763. ## --------------------------------------- ##
  4764. ## Start of automake initialization code ##
  4765. ## --------------------------------------- ##
  4766. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4767. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4768. # is not polluted with repeated "-I."
  4769. am__isrc=' -I$(srcdir)'
  4770. # test to see if srcdir already configured
  4771. if test -f $srcdir/config.status; then
  4772. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4773. fi
  4774. fi
  4775. # test whether we have cygpath
  4776. if test -z "$CYGPATH_W"; then
  4777. if (cygpath --version) >/dev/null 2>/dev/null; then
  4778. CYGPATH_W='cygpath -w'
  4779. else
  4780. CYGPATH_W=echo
  4781. fi
  4782. fi
  4783. # Define the identity of the package.
  4784. PACKAGE='curl'
  4785. VERSION='-'
  4786. cat >>confdefs.h <<_ACEOF
  4787. #define PACKAGE "$PACKAGE"
  4788. _ACEOF
  4789. cat >>confdefs.h <<_ACEOF
  4790. #define VERSION "$VERSION"
  4791. _ACEOF
  4792. # Some tools Automake needs.
  4793. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4794. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4795. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4796. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4797. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4798. # For better backward compatibility. To be removed once Automake 1.9.x
  4799. # dies out for good. For more background, see:
  4800. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4801. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4802. mkdir_p='$(MKDIR_P)'
  4803. # We need awk for the "check" target. The system "awk" is bad on
  4804. # some platforms.
  4805. # Always define AMTAR for backward compatibility. Yes, it's still used
  4806. # in the wild :-( We should find a proper way to deprecate it ...
  4807. AMTAR='$${TAR-tar}'
  4808. # We'll loop over all known methods to create a tar archive until one works.
  4809. _am_tools='gnutar pax cpio none'
  4810. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4811. depcc="$CC" am_compiler_list=
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4813. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4814. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4815. $as_echo_n "(cached) " >&6
  4816. else
  4817. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4818. # We make a subdir and do the tests there. Otherwise we can end up
  4819. # making bogus files that we don't know about and never remove. For
  4820. # instance it was reported that on HP-UX the gcc test will end up
  4821. # making a dummy file named 'D' -- because '-MD' means "put the output
  4822. # in D".
  4823. rm -rf conftest.dir
  4824. mkdir conftest.dir
  4825. # Copy depcomp to subdir because otherwise we won't find it if we're
  4826. # using a relative directory.
  4827. cp "$am_depcomp" conftest.dir
  4828. cd conftest.dir
  4829. # We will build objects and dependencies in a subdirectory because
  4830. # it helps to detect inapplicable dependency modes. For instance
  4831. # both Tru64's cc and ICC support -MD to output dependencies as a
  4832. # side effect of compilation, but ICC will put the dependencies in
  4833. # the current directory while Tru64 will put them in the object
  4834. # directory.
  4835. mkdir sub
  4836. am_cv_CC_dependencies_compiler_type=none
  4837. if test "$am_compiler_list" = ""; then
  4838. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4839. fi
  4840. am__universal=false
  4841. case " $depcc " in #(
  4842. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4843. esac
  4844. for depmode in $am_compiler_list; do
  4845. # Setup a source with many dependencies, because some compilers
  4846. # like to wrap large dependency lists on column 80 (with \), and
  4847. # we should not choose a depcomp mode which is confused by this.
  4848. #
  4849. # We need to recreate these files for each test, as the compiler may
  4850. # overwrite some of them when testing with obscure command lines.
  4851. # This happens at least with the AIX C compiler.
  4852. : > sub/conftest.c
  4853. for i in 1 2 3 4 5 6; do
  4854. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4855. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4856. # Solaris 10 /bin/sh.
  4857. echo '/* dummy */' > sub/conftst$i.h
  4858. done
  4859. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4860. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4861. # mode. It turns out that the SunPro C++ compiler does not properly
  4862. # handle '-M -o', and we need to detect this. Also, some Intel
  4863. # versions had trouble with output in subdirs.
  4864. am__obj=sub/conftest.${OBJEXT-o}
  4865. am__minus_obj="-o $am__obj"
  4866. case $depmode in
  4867. gcc)
  4868. # This depmode causes a compiler race in universal mode.
  4869. test "$am__universal" = false || continue
  4870. ;;
  4871. nosideeffect)
  4872. # After this tag, mechanisms are not by side-effect, so they'll
  4873. # only be used when explicitly requested.
  4874. if test "x$enable_dependency_tracking" = xyes; then
  4875. continue
  4876. else
  4877. break
  4878. fi
  4879. ;;
  4880. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4881. # This compiler won't grok '-c -o', but also, the minuso test has
  4882. # not run yet. These depmodes are late enough in the game, and
  4883. # so weak that their functioning should not be impacted.
  4884. am__obj=conftest.${OBJEXT-o}
  4885. am__minus_obj=
  4886. ;;
  4887. none) break ;;
  4888. esac
  4889. if depmode=$depmode \
  4890. source=sub/conftest.c object=$am__obj \
  4891. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4892. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4893. >/dev/null 2>conftest.err &&
  4894. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4895. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4896. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4897. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4898. # icc doesn't choke on unknown options, it will just issue warnings
  4899. # or remarks (even with -Werror). So we grep stderr for any message
  4900. # that says an option was ignored or not supported.
  4901. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4902. # icc: Command line warning: ignoring option '-M'; no argument required
  4903. # The diagnosis changed in icc 8.0:
  4904. # icc: Command line remark: option '-MP' not supported
  4905. if (grep 'ignoring option' conftest.err ||
  4906. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4907. am_cv_CC_dependencies_compiler_type=$depmode
  4908. break
  4909. fi
  4910. fi
  4911. done
  4912. cd ..
  4913. rm -rf conftest.dir
  4914. else
  4915. am_cv_CC_dependencies_compiler_type=none
  4916. fi
  4917. fi
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4919. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4920. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4921. if
  4922. test "x$enable_dependency_tracking" != xno \
  4923. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4924. am__fastdepCC_TRUE=
  4925. am__fastdepCC_FALSE='#'
  4926. else
  4927. am__fastdepCC_TRUE='#'
  4928. am__fastdepCC_FALSE=
  4929. fi
  4930. # POSIX will say in a future version that running "rm -f" with no argument
  4931. # is OK; and we want to be able to make that assumption in our Makefile
  4932. # recipes. So use an aggressive probe to check that the usage we want is
  4933. # actually supported "in the wild" to an acceptable degree.
  4934. # See automake bug#10828.
  4935. # To make any issue more visible, cause the running configure to be aborted
  4936. # by default if the 'rm' program in use doesn't match our expectations; the
  4937. # user can still override this though.
  4938. if rm -f && rm -fr && rm -rf; then : OK; else
  4939. cat >&2 <<'END'
  4940. Oops!
  4941. Your 'rm' program seems unable to run without file operands specified
  4942. on the command line, even when the '-f' option is present. This is contrary
  4943. to the behaviour of most rm programs out there, and not conforming with
  4944. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4945. Please tell bug-automake@gnu.org about your system, including the value
  4946. of your $PATH and any error possibly output before this message. This
  4947. can help us improve future automake versions.
  4948. END
  4949. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4950. echo 'Configuration will proceed anyway, since you have set the' >&2
  4951. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4952. echo >&2
  4953. else
  4954. cat >&2 <<'END'
  4955. Aborting the configuration process, to ensure you take notice of the issue.
  4956. You can download and install GNU coreutils to get an 'rm' implementation
  4957. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4958. If you want to complete the configuration process using your problematic
  4959. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4960. to "yes", and re-run configure.
  4961. END
  4962. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4963. fi
  4964. fi
  4965. ## ------------------------------------- ##
  4966. ## End of automake initialization code ##
  4967. ## ------------------------------------- ##
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
  4969. $as_echo_n "checking curl version... " >&6; }
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
  4971. $as_echo "$CURLVERSION" >&6; }
  4972. VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
  4973. PKGADD_PKG="HAXXcurl"
  4974. PKGADD_NAME="cURL - a client that groks URLs"
  4975. PKGADD_VENDOR="curl.haxx.se"
  4976. curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
  4977. curl_ssh_msg="no (--with-libssh2)"
  4978. curl_zlib_msg="no (--with-zlib)"
  4979. curl_gss_msg="no (--with-gssapi)"
  4980. curl_spnego_msg="no (--with-spnego)"
  4981. curl_tls_srp_msg="no (--enable-tls-srp)"
  4982. curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
  4983. curl_ipv6_msg="no (--enable-ipv6)"
  4984. curl_idn_msg="no (--with-{libidn,winidn})"
  4985. curl_manual_msg="no (--enable-manual)"
  4986. curl_libcurl_msg="enabled (--disable-libcurl-option)"
  4987. curl_verbose_msg="enabled (--disable-verbose)"
  4988. curl_sspi_msg="no (--enable-sspi)"
  4989. curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
  4990. curl_ldaps_msg="no (--enable-ldaps)"
  4991. curl_rtsp_msg="no (--enable-rtsp)"
  4992. curl_rtmp_msg="no (--with-librtmp)"
  4993. curl_mtlnk_msg="no (--with-libmetalink)"
  4994. init_ssl_msg=${curl_ssl_msg}
  4995. INITIAL_LDFLAGS=$LDFLAGS
  4996. INITIAL_LIBS=$LIBS
  4997. # Make sure we can run config.sub.
  4998. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4999. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  5001. $as_echo_n "checking build system type... " >&6; }
  5002. if ${ac_cv_build+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. ac_build_alias=$build_alias
  5006. test "x$ac_build_alias" = x &&
  5007. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  5008. test "x$ac_build_alias" = x &&
  5009. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  5010. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  5011. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  5012. fi
  5013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  5014. $as_echo "$ac_cv_build" >&6; }
  5015. case $ac_cv_build in
  5016. *-*-*) ;;
  5017. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  5018. esac
  5019. build=$ac_cv_build
  5020. ac_save_IFS=$IFS; IFS='-'
  5021. set x $ac_cv_build
  5022. shift
  5023. build_cpu=$1
  5024. build_vendor=$2
  5025. shift; shift
  5026. # Remember, the first character of IFS is used to create $*,
  5027. # except with old shells:
  5028. build_os=$*
  5029. IFS=$ac_save_IFS
  5030. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  5032. $as_echo_n "checking host system type... " >&6; }
  5033. if ${ac_cv_host+:} false; then :
  5034. $as_echo_n "(cached) " >&6
  5035. else
  5036. if test "x$host_alias" = x; then
  5037. ac_cv_host=$ac_cv_build
  5038. else
  5039. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  5040. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  5041. fi
  5042. fi
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  5044. $as_echo "$ac_cv_host" >&6; }
  5045. case $ac_cv_host in
  5046. *-*-*) ;;
  5047. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  5048. esac
  5049. host=$ac_cv_host
  5050. ac_save_IFS=$IFS; IFS='-'
  5051. set x $ac_cv_host
  5052. shift
  5053. host_cpu=$1
  5054. host_vendor=$2
  5055. shift; shift
  5056. # Remember, the first character of IFS is used to create $*,
  5057. # except with old shells:
  5058. host_os=$*
  5059. IFS=$ac_save_IFS
  5060. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  5061. cat >>confdefs.h <<_ACEOF
  5062. #define OS "${host}"
  5063. _ACEOF
  5064. curl_includes_inttypes="\
  5065. /* includes start */
  5066. #ifdef HAVE_SYS_TYPES_H
  5067. # include <sys/types.h>
  5068. #endif
  5069. #ifdef HAVE_STDINT_H
  5070. # include <stdint.h>
  5071. #endif
  5072. #ifdef HAVE_INTTYPES_H
  5073. # include <inttypes.h>
  5074. #endif
  5075. /* includes end */"
  5076. case $host_os in
  5077. irix*)
  5078. ac_cv_header_stdint_h="no"
  5079. ;;
  5080. esac
  5081. for ac_header in sys/types.h stdint.h inttypes.h
  5082. do :
  5083. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5084. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
  5085. "
  5086. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5087. cat >>confdefs.h <<_ACEOF
  5088. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5089. _ACEOF
  5090. fi
  5091. done
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5093. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5094. if ${ac_cv_path_GREP+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. if test -z "$GREP"; then
  5098. ac_path_GREP_found=false
  5099. # Loop through the user's path and test for each of PROGNAME-LIST
  5100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5101. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5102. do
  5103. IFS=$as_save_IFS
  5104. test -z "$as_dir" && as_dir=.
  5105. for ac_prog in grep ggrep; do
  5106. for ac_exec_ext in '' $ac_executable_extensions; do
  5107. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5108. as_fn_executable_p "$ac_path_GREP" || continue
  5109. # Check for GNU ac_path_GREP and select it if it is found.
  5110. # Check for GNU $ac_path_GREP
  5111. case `"$ac_path_GREP" --version 2>&1` in
  5112. *GNU*)
  5113. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5114. *)
  5115. ac_count=0
  5116. $as_echo_n 0123456789 >"conftest.in"
  5117. while :
  5118. do
  5119. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5120. mv "conftest.tmp" "conftest.in"
  5121. cp "conftest.in" "conftest.nl"
  5122. $as_echo 'GREP' >> "conftest.nl"
  5123. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5124. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5125. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5126. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5127. # Best one so far, save it but keep looking for a better one
  5128. ac_cv_path_GREP="$ac_path_GREP"
  5129. ac_path_GREP_max=$ac_count
  5130. fi
  5131. # 10*(2^10) chars as input seems more than enough
  5132. test $ac_count -gt 10 && break
  5133. done
  5134. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5135. esac
  5136. $ac_path_GREP_found && break 3
  5137. done
  5138. done
  5139. done
  5140. IFS=$as_save_IFS
  5141. if test -z "$ac_cv_path_GREP"; then
  5142. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5143. fi
  5144. else
  5145. ac_cv_path_GREP=$GREP
  5146. fi
  5147. fi
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5149. $as_echo "$ac_cv_path_GREP" >&6; }
  5150. GREP="$ac_cv_path_GREP"
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5152. $as_echo_n "checking for egrep... " >&6; }
  5153. if ${ac_cv_path_EGREP+:} false; then :
  5154. $as_echo_n "(cached) " >&6
  5155. else
  5156. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5157. then ac_cv_path_EGREP="$GREP -E"
  5158. else
  5159. if test -z "$EGREP"; then
  5160. ac_path_EGREP_found=false
  5161. # Loop through the user's path and test for each of PROGNAME-LIST
  5162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5163. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5164. do
  5165. IFS=$as_save_IFS
  5166. test -z "$as_dir" && as_dir=.
  5167. for ac_prog in egrep; do
  5168. for ac_exec_ext in '' $ac_executable_extensions; do
  5169. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5170. as_fn_executable_p "$ac_path_EGREP" || continue
  5171. # Check for GNU ac_path_EGREP and select it if it is found.
  5172. # Check for GNU $ac_path_EGREP
  5173. case `"$ac_path_EGREP" --version 2>&1` in
  5174. *GNU*)
  5175. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5176. *)
  5177. ac_count=0
  5178. $as_echo_n 0123456789 >"conftest.in"
  5179. while :
  5180. do
  5181. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5182. mv "conftest.tmp" "conftest.in"
  5183. cp "conftest.in" "conftest.nl"
  5184. $as_echo 'EGREP' >> "conftest.nl"
  5185. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5186. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5187. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5188. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5189. # Best one so far, save it but keep looking for a better one
  5190. ac_cv_path_EGREP="$ac_path_EGREP"
  5191. ac_path_EGREP_max=$ac_count
  5192. fi
  5193. # 10*(2^10) chars as input seems more than enough
  5194. test $ac_count -gt 10 && break
  5195. done
  5196. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5197. esac
  5198. $ac_path_EGREP_found && break 3
  5199. done
  5200. done
  5201. done
  5202. IFS=$as_save_IFS
  5203. if test -z "$ac_cv_path_EGREP"; then
  5204. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5205. fi
  5206. else
  5207. ac_cv_path_EGREP=$EGREP
  5208. fi
  5209. fi
  5210. fi
  5211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5212. $as_echo "$ac_cv_path_EGREP" >&6; }
  5213. EGREP="$ac_cv_path_EGREP"
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5215. $as_echo_n "checking for ANSI C header files... " >&6; }
  5216. if ${ac_cv_header_stdc+:} false; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5220. /* end confdefs.h. */
  5221. #include <stdlib.h>
  5222. #include <stdarg.h>
  5223. #include <string.h>
  5224. #include <float.h>
  5225. int main (void)
  5226. {
  5227. ;
  5228. return 0;
  5229. }
  5230. _ACEOF
  5231. if ac_fn_c_try_compile "$LINENO"; then :
  5232. ac_cv_header_stdc=yes
  5233. else
  5234. ac_cv_header_stdc=no
  5235. fi
  5236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5237. if test $ac_cv_header_stdc = yes; then
  5238. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5240. /* end confdefs.h. */
  5241. #include <string.h>
  5242. _ACEOF
  5243. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5244. $EGREP "memchr" >/dev/null 2>&1; then :
  5245. else
  5246. ac_cv_header_stdc=no
  5247. fi
  5248. rm -f conftest*
  5249. fi
  5250. if test $ac_cv_header_stdc = yes; then
  5251. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5253. /* end confdefs.h. */
  5254. #include <stdlib.h>
  5255. _ACEOF
  5256. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5257. $EGREP "free" >/dev/null 2>&1; then :
  5258. else
  5259. ac_cv_header_stdc=no
  5260. fi
  5261. rm -f conftest*
  5262. fi
  5263. if test $ac_cv_header_stdc = yes; then
  5264. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5265. if test "$cross_compiling" = yes; then :
  5266. :
  5267. else
  5268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5269. /* end confdefs.h. */
  5270. #include <ctype.h>
  5271. #include <stdlib.h>
  5272. #if ((' ' & 0x0FF) == 0x020)
  5273. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5274. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5275. #else
  5276. # define ISLOWER(c) \
  5277. (('a' <= (c) && (c) <= 'i') \
  5278. || ('j' <= (c) && (c) <= 'r') \
  5279. || ('s' <= (c) && (c) <= 'z'))
  5280. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5281. #endif
  5282. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5283. int
  5284. main ()
  5285. {
  5286. int i;
  5287. for (i = 0; i < 256; i++)
  5288. if (XOR (islower (i), ISLOWER (i))
  5289. || toupper (i) != TOUPPER (i))
  5290. return 2;
  5291. return 0;
  5292. }
  5293. _ACEOF
  5294. if ac_fn_c_try_run "$LINENO"; then :
  5295. else
  5296. ac_cv_header_stdc=no
  5297. fi
  5298. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5299. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5300. fi
  5301. fi
  5302. fi
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5304. $as_echo "$ac_cv_header_stdc" >&6; }
  5305. if test $ac_cv_header_stdc = yes; then
  5306. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5307. fi
  5308. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5309. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5310. inttypes.h stdint.h unistd.h
  5311. do :
  5312. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5313. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5314. "
  5315. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5316. cat >>confdefs.h <<_ACEOF
  5317. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5318. _ACEOF
  5319. fi
  5320. done
  5321. #
  5322. #
  5323. if test -z "$SED"; then
  5324. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5325. fi
  5326. #
  5327. # The cast to long int works around a bug in the HP C Compiler
  5328. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5329. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5330. # This bug is HP SR number 8606223364.
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  5332. $as_echo_n "checking size of long... " >&6; }
  5333. if ${ac_cv_sizeof_long+:} false; then :
  5334. $as_echo_n "(cached) " >&6
  5335. else
  5336. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  5337. else
  5338. if test "$ac_cv_type_long" = yes; then
  5339. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5340. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5341. as_fn_error 77 "cannot compute sizeof (long)
  5342. See \`config.log' for more details" "$LINENO" 5; }
  5343. else
  5344. ac_cv_sizeof_long=0
  5345. fi
  5346. fi
  5347. fi
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  5349. $as_echo "$ac_cv_sizeof_long" >&6; }
  5350. cat >>confdefs.h <<_ACEOF
  5351. #define SIZEOF_LONG $ac_cv_sizeof_long
  5352. _ACEOF
  5353. # The cast to long int works around a bug in the HP C Compiler
  5354. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5355. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5356. # This bug is HP SR number 8606223364.
  5357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
  5358. $as_echo_n "checking size of void*... " >&6; }
  5359. if ${ac_cv_sizeof_voidp+:} false; then :
  5360. $as_echo_n "(cached) " >&6
  5361. else
  5362. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
  5363. else
  5364. if test "$ac_cv_type_voidp" = yes; then
  5365. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5367. as_fn_error 77 "cannot compute sizeof (void*)
  5368. See \`config.log' for more details" "$LINENO" 5; }
  5369. else
  5370. ac_cv_sizeof_voidp=0
  5371. fi
  5372. fi
  5373. fi
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
  5375. $as_echo "$ac_cv_sizeof_voidp" >&6; }
  5376. cat >>confdefs.h <<_ACEOF
  5377. #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
  5378. _ACEOF
  5379. #
  5380. if test -z "$ac_cv_sizeof_long" ||
  5381. test "$ac_cv_sizeof_long" -eq "0"; then
  5382. as_fn_error $? "cannot find out size of long." "$LINENO" 5
  5383. fi
  5384. if test -z "$ac_cv_sizeof_voidp" ||
  5385. test "$ac_cv_sizeof_voidp" -eq "0"; then
  5386. as_fn_error $? "cannot find out size of void*." "$LINENO" 5
  5387. fi
  5388. #
  5389. x_LP64_long=""
  5390. x_LP32_long=""
  5391. x_LP16_long=""
  5392. #
  5393. if test "$ac_cv_sizeof_long" -eq "8" &&
  5394. test "$ac_cv_sizeof_voidp" -ge "8"; then
  5395. x_LP64_long="long"
  5396. elif test "$ac_cv_sizeof_long" -eq "4" &&
  5397. test "$ac_cv_sizeof_voidp" -ge "4"; then
  5398. x_LP32_long="long"
  5399. elif test "$ac_cv_sizeof_long" -eq "2" &&
  5400. test "$ac_cv_sizeof_voidp" -ge "2"; then
  5401. x_LP16_long="long"
  5402. fi
  5403. #
  5404. #
  5405. curl_typeof_curl_off_t="unknown"
  5406. curl_sizeof_curl_off_t="unknown"
  5407. curl_format_curl_off_t="unknown"
  5408. curl_format_curl_off_tu="unknown"
  5409. #
  5410. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
  5412. $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
  5413. for t8 in \
  5414. "$x_LP64_long" \
  5415. 'int64_t' \
  5416. '__int64' \
  5417. 'long long' \
  5418. '__longlong' \
  5419. '__longlong_t' ; do
  5420. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
  5421. tmp_includes=""
  5422. tmp_source=""
  5423. tmp_fmt=""
  5424. case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5425. int64_t)
  5426. tmp_includes="$curl_includes_inttypes"
  5427. tmp_source="char f[] = PRId64;"
  5428. tmp_fmt="PRId64"
  5429. ;;
  5430. int32_t)
  5431. tmp_includes="$curl_includes_inttypes"
  5432. tmp_source="char f[] = PRId32;"
  5433. tmp_fmt="PRId32"
  5434. ;;
  5435. int16_t)
  5436. tmp_includes="$curl_includes_inttypes"
  5437. tmp_source="char f[] = PRId16;"
  5438. tmp_fmt="PRId16"
  5439. ;;
  5440. esac
  5441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5442. /* end confdefs.h. */
  5443. $tmp_includes
  5444. typedef $t8 curl_off_t;
  5445. typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
  5446. int main (void)
  5447. {
  5448. $tmp_source
  5449. curl_off_t dummy;
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_c_try_compile "$LINENO"; then :
  5455. if test -z "$tmp_fmt"; then
  5456. curl_typeof_curl_off_t="$t8"
  5457. curl_sizeof_curl_off_t="8"
  5458. else
  5459. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5460. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5461. if test -z "$SED"; then
  5462. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5463. fi
  5464. if test -z "$GREP"; then
  5465. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5466. fi
  5467. tmp_exp=""
  5468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5469. /* end confdefs.h. */
  5470. $curl_includes_inttypes
  5471. #ifdef $tmp_fmt
  5472. CURL_DEF_TOKEN $tmp_fmt
  5473. #endif
  5474. _ACEOF
  5475. if ac_fn_c_try_cpp "$LINENO"; then :
  5476. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5477. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5478. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5479. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5480. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5481. tmp_exp=""
  5482. fi
  5483. fi
  5484. rm -f conftest.err conftest.i conftest.$ac_ext
  5485. if test -z "$tmp_exp"; then
  5486. eval "$as_ac_HaveDef=no"
  5487. else
  5488. eval "$as_ac_HaveDef=yes"
  5489. eval "$as_ac_Def=\$tmp_exp"
  5490. fi
  5491. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5492. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5493. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5494. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5495. curl_typeof_curl_off_t="$t8"
  5496. curl_sizeof_curl_off_t="8"
  5497. fi
  5498. fi
  5499. fi
  5500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5501. fi
  5502. done
  5503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5504. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5505. fi
  5506. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
  5508. $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
  5509. for t4 in \
  5510. "$x_LP32_long" \
  5511. 'int32_t' \
  5512. '__int32' \
  5513. 'int' ; do
  5514. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
  5515. tmp_includes=""
  5516. tmp_source=""
  5517. tmp_fmt=""
  5518. case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5519. int64_t)
  5520. tmp_includes="$curl_includes_inttypes"
  5521. tmp_source="char f[] = PRId64;"
  5522. tmp_fmt="PRId64"
  5523. ;;
  5524. int32_t)
  5525. tmp_includes="$curl_includes_inttypes"
  5526. tmp_source="char f[] = PRId32;"
  5527. tmp_fmt="PRId32"
  5528. ;;
  5529. int16_t)
  5530. tmp_includes="$curl_includes_inttypes"
  5531. tmp_source="char f[] = PRId16;"
  5532. tmp_fmt="PRId16"
  5533. ;;
  5534. esac
  5535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5536. /* end confdefs.h. */
  5537. $tmp_includes
  5538. typedef $t4 curl_off_t;
  5539. typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
  5540. int main (void)
  5541. {
  5542. $tmp_source
  5543. curl_off_t dummy;
  5544. ;
  5545. return 0;
  5546. }
  5547. _ACEOF
  5548. if ac_fn_c_try_compile "$LINENO"; then :
  5549. if test -z "$tmp_fmt"; then
  5550. curl_typeof_curl_off_t="$t4"
  5551. curl_sizeof_curl_off_t="4"
  5552. else
  5553. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5554. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5555. if test -z "$SED"; then
  5556. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5557. fi
  5558. if test -z "$GREP"; then
  5559. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5560. fi
  5561. tmp_exp=""
  5562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5563. /* end confdefs.h. */
  5564. $curl_includes_inttypes
  5565. #ifdef $tmp_fmt
  5566. CURL_DEF_TOKEN $tmp_fmt
  5567. #endif
  5568. _ACEOF
  5569. if ac_fn_c_try_cpp "$LINENO"; then :
  5570. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5571. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5572. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5573. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5574. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5575. tmp_exp=""
  5576. fi
  5577. fi
  5578. rm -f conftest.err conftest.i conftest.$ac_ext
  5579. if test -z "$tmp_exp"; then
  5580. eval "$as_ac_HaveDef=no"
  5581. else
  5582. eval "$as_ac_HaveDef=yes"
  5583. eval "$as_ac_Def=\$tmp_exp"
  5584. fi
  5585. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5586. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5587. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5588. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5589. curl_typeof_curl_off_t="$t4"
  5590. curl_sizeof_curl_off_t="4"
  5591. fi
  5592. fi
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5595. fi
  5596. done
  5597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5598. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5599. fi
  5600. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
  5602. $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
  5603. for t2 in \
  5604. "$x_LP16_long" \
  5605. 'int16_t' \
  5606. '__int16' \
  5607. 'int' ; do
  5608. if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
  5609. tmp_includes=""
  5610. tmp_source=""
  5611. tmp_fmt=""
  5612. case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5613. int64_t)
  5614. tmp_includes="$curl_includes_inttypes"
  5615. tmp_source="char f[] = PRId64;"
  5616. tmp_fmt="PRId64"
  5617. ;;
  5618. int32_t)
  5619. tmp_includes="$curl_includes_inttypes"
  5620. tmp_source="char f[] = PRId32;"
  5621. tmp_fmt="PRId32"
  5622. ;;
  5623. int16_t)
  5624. tmp_includes="$curl_includes_inttypes"
  5625. tmp_source="char f[] = PRId16;"
  5626. tmp_fmt="PRId16"
  5627. ;;
  5628. esac
  5629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5630. /* end confdefs.h. */
  5631. $tmp_includes
  5632. typedef $t2 curl_off_t;
  5633. typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
  5634. int main (void)
  5635. {
  5636. $tmp_source
  5637. curl_off_t dummy;
  5638. ;
  5639. return 0;
  5640. }
  5641. _ACEOF
  5642. if ac_fn_c_try_compile "$LINENO"; then :
  5643. if test -z "$tmp_fmt"; then
  5644. curl_typeof_curl_off_t="$t2"
  5645. curl_sizeof_curl_off_t="2"
  5646. else
  5647. as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5648. as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5649. if test -z "$SED"; then
  5650. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  5651. fi
  5652. if test -z "$GREP"; then
  5653. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  5654. fi
  5655. tmp_exp=""
  5656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5657. /* end confdefs.h. */
  5658. $curl_includes_inttypes
  5659. #ifdef $tmp_fmt
  5660. CURL_DEF_TOKEN $tmp_fmt
  5661. #endif
  5662. _ACEOF
  5663. if ac_fn_c_try_cpp "$LINENO"; then :
  5664. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  5665. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  5666. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  5667. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  5668. if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
  5669. tmp_exp=""
  5670. fi
  5671. fi
  5672. rm -f conftest.err conftest.i conftest.$ac_ext
  5673. if test -z "$tmp_exp"; then
  5674. eval "$as_ac_HaveDef=no"
  5675. else
  5676. eval "$as_ac_HaveDef=yes"
  5677. eval "$as_ac_Def=\$tmp_exp"
  5678. fi
  5679. as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
  5680. as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
  5681. if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
  5682. curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
  5683. curl_typeof_curl_off_t="$t2"
  5684. curl_sizeof_curl_off_t="2"
  5685. fi
  5686. fi
  5687. fi
  5688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5689. fi
  5690. done
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
  5692. $as_echo "$curl_typeof_curl_off_t" >&6; }
  5693. fi
  5694. if test "$curl_typeof_curl_off_t" = "unknown"; then
  5695. as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
  5696. fi
  5697. #
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
  5699. $as_echo_n "checking size of curl_off_t... " >&6; }
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
  5701. $as_echo "$curl_sizeof_curl_off_t" >&6; }
  5702. #
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
  5704. $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
  5705. if test "$curl_format_curl_off_t" != "unknown"; then
  5706. x_pull_headers="yes"
  5707. curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
  5708. curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
  5709. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
  5710. curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
  5711. else
  5712. x_pull_headers="no"
  5713. case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5714. long_long | __longlong | __longlong_t)
  5715. curl_format_curl_off_t="lld"
  5716. curl_format_curl_off_tu="llu"
  5717. ;;
  5718. long)
  5719. curl_format_curl_off_t="ld"
  5720. curl_format_curl_off_tu="lu"
  5721. ;;
  5722. int)
  5723. curl_format_curl_off_t="d"
  5724. curl_format_curl_off_tu="u"
  5725. ;;
  5726. __int64)
  5727. curl_format_curl_off_t="I64d"
  5728. curl_format_curl_off_tu="I64u"
  5729. ;;
  5730. __int32)
  5731. curl_format_curl_off_t="I32d"
  5732. curl_format_curl_off_tu="I32u"
  5733. ;;
  5734. __int16)
  5735. curl_format_curl_off_t="I16d"
  5736. curl_format_curl_off_tu="I16u"
  5737. ;;
  5738. *)
  5739. as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
  5740. ;;
  5741. esac
  5742. fi
  5743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
  5744. $as_echo "\"$curl_format_curl_off_t\"" >&6; }
  5745. #
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
  5747. $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
  5749. $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
  5750. #
  5751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
  5752. $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
  5753. #
  5754. curl_suffix_curl_off_t="unknown"
  5755. curl_suffix_curl_off_tu="unknown"
  5756. #
  5757. case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
  5758. long_long | __longlong | __longlong_t)
  5759. tst_suffixes="LL::"
  5760. ;;
  5761. long)
  5762. tst_suffixes="L::"
  5763. ;;
  5764. int)
  5765. tst_suffixes="::"
  5766. ;;
  5767. __int64 | int64_t)
  5768. tst_suffixes="LL:i64::"
  5769. ;;
  5770. __int32 | int32_t)
  5771. tst_suffixes="L:i32::"
  5772. ;;
  5773. __int16 | int16_t)
  5774. tst_suffixes="L:i16::"
  5775. ;;
  5776. *)
  5777. as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
  5778. ;;
  5779. esac
  5780. #
  5781. old_IFS=$IFS; IFS=':'
  5782. for tmp_ssuf in $tst_suffixes ; do
  5783. IFS=$old_IFS
  5784. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5785. case $tmp_ssuf in
  5786. i64 | i32 | i16)
  5787. tmp_usuf="u$tmp_ssuf"
  5788. ;;
  5789. LL | L)
  5790. tmp_usuf="U$tmp_ssuf"
  5791. ;;
  5792. *)
  5793. tmp_usuf=""
  5794. ;;
  5795. esac
  5796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5797. /* end confdefs.h. */
  5798. $curl_includes_inttypes
  5799. typedef $curl_typeof_curl_off_t new_t;
  5800. int main (void)
  5801. {
  5802. new_t s1;
  5803. new_t s2;
  5804. s1 = -10$tmp_ssuf ;
  5805. s2 = 20$tmp_ssuf ;
  5806. if(s1 > s2)
  5807. return 1;
  5808. ;
  5809. return 0;
  5810. }
  5811. _ACEOF
  5812. if ac_fn_c_try_compile "$LINENO"; then :
  5813. curl_suffix_curl_off_t="$tmp_ssuf"
  5814. curl_suffix_curl_off_tu="$tmp_usuf"
  5815. fi
  5816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5817. fi
  5818. done
  5819. IFS=$old_IFS
  5820. #
  5821. if test "x$curl_suffix_curl_off_t" = "xunknown"; then
  5822. as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
  5825. $as_echo "$curl_suffix_curl_off_t" >&6; }
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
  5827. $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
  5829. $as_echo "$curl_suffix_curl_off_tu" >&6; }
  5830. fi
  5831. #
  5832. #
  5833. if test "$x_pull_headers" = "yes"; then
  5834. if test "x$ac_cv_header_sys_types_h" = "xyes"; then
  5835. cat >>confdefs.h <<_EOF
  5836. #define CURL_PULL_SYS_TYPES_H 1
  5837. _EOF
  5838. fi
  5839. if test "x$ac_cv_header_stdint_h" = "xyes"; then
  5840. cat >>confdefs.h <<_EOF
  5841. #define CURL_PULL_STDINT_H 1
  5842. _EOF
  5843. fi
  5844. if test "x$ac_cv_header_inttypes_h" = "xyes"; then
  5845. cat >>confdefs.h <<_EOF
  5846. #define CURL_PULL_INTTYPES_H 1
  5847. _EOF
  5848. fi
  5849. fi
  5850. #
  5851. cat >>confdefs.h <<_EOF
  5852. #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
  5853. _EOF
  5854. cat >>confdefs.h <<_EOF
  5855. #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
  5856. _EOF
  5857. cat >>confdefs.h <<_EOF
  5858. #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
  5859. _EOF
  5860. cat >>confdefs.h <<_EOF
  5861. #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
  5862. _EOF
  5863. cat >>confdefs.h <<_EOF
  5864. #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
  5865. _EOF
  5866. cat >>confdefs.h <<_EOF
  5867. #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
  5868. _EOF
  5869. cat >>confdefs.h <<_EOF
  5870. #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
  5871. _EOF
  5872. #
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
  5874. $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
  5875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5876. /* end confdefs.h. */
  5877. #ifdef _AIX
  5878. yes_this_is_aix
  5879. #endif
  5880. _ACEOF
  5881. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5882. $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5884. $as_echo "yes" >&6; }
  5885. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. rm -f conftest*
  5891. #
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
  5893. $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
  5894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5895. /* end confdefs.h. */
  5896. int main (void)
  5897. {
  5898. #ifdef _THREAD_SAFE
  5899. int dummy=1;
  5900. #else
  5901. force compilation error
  5902. #endif
  5903. ;
  5904. return 0;
  5905. }
  5906. _ACEOF
  5907. if ac_fn_c_try_compile "$LINENO"; then :
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5909. $as_echo "yes" >&6; }
  5910. tmp_thread_safe_initially_defined="yes"
  5911. else
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5913. $as_echo "no" >&6; }
  5914. tmp_thread_safe_initially_defined="no"
  5915. fi
  5916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5917. #
  5918. if test "$tmp_thread_safe_initially_defined" = "no"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
  5920. $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
  5921. case $host_os in
  5922. aix[123].* | aix4.[012].*)
  5923. tmp_need_thread_safe="no"
  5924. ;;
  5925. aix*)
  5926. tmp_need_thread_safe="yes"
  5927. ;;
  5928. *)
  5929. tmp_need_thread_safe="no"
  5930. ;;
  5931. esac
  5932. if test "$tmp_need_thread_safe" = "yes"; then
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5934. $as_echo "yes" >&6; }
  5935. else
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5937. $as_echo "no" >&6; }
  5938. fi
  5939. fi
  5940. #
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
  5942. $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
  5943. if test "$tmp_thread_safe_initially_defined" = "yes" ||
  5944. test "$tmp_need_thread_safe" = "yes"; then
  5945. $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
  5946. cat >>confdefs.h <<_EOF
  5947. #ifndef _THREAD_SAFE
  5948. # define _THREAD_SAFE
  5949. #endif
  5950. _EOF
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5952. $as_echo "yes" >&6; }
  5953. else
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5955. $as_echo "no" >&6; }
  5956. fi
  5957. #
  5958. #
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
  5960. $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
  5961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5962. /* end confdefs.h. */
  5963. int main (void)
  5964. {
  5965. #ifdef _REENTRANT
  5966. int dummy=1;
  5967. #else
  5968. force compilation error
  5969. #endif
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. if ac_fn_c_try_compile "$LINENO"; then :
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5976. $as_echo "yes" >&6; }
  5977. tmp_reentrant_initially_defined="yes"
  5978. else
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5980. $as_echo "no" >&6; }
  5981. tmp_reentrant_initially_defined="no"
  5982. fi
  5983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5984. #
  5985. if test "$tmp_reentrant_initially_defined" = "no"; then
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
  5987. $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
  5988. case $host_os in
  5989. solaris*)
  5990. tmp_need_reentrant="yes"
  5991. ;;
  5992. *)
  5993. tmp_need_reentrant="no"
  5994. ;;
  5995. esac
  5996. if test "$tmp_need_reentrant" = "no"; then
  5997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5998. /* end confdefs.h. */
  5999. #include <errno.h>
  6000. int main (void)
  6001. {
  6002. if(0 != errno)
  6003. return 1;
  6004. ;
  6005. return 0;
  6006. }
  6007. _ACEOF
  6008. if ac_fn_c_try_compile "$LINENO"; then :
  6009. tmp_errno="yes"
  6010. else
  6011. tmp_errno="no"
  6012. fi
  6013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6014. if test "$tmp_errno" = "yes"; then
  6015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6016. /* end confdefs.h. */
  6017. #include <errno.h>
  6018. int main (void)
  6019. {
  6020. #ifdef errno
  6021. int dummy=1;
  6022. #else
  6023. force compilation error
  6024. #endif
  6025. ;
  6026. return 0;
  6027. }
  6028. _ACEOF
  6029. if ac_fn_c_try_compile "$LINENO"; then :
  6030. tmp_errno="errno_macro_defined"
  6031. else
  6032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6033. /* end confdefs.h. */
  6034. #define _REENTRANT
  6035. #include <errno.h>
  6036. int main (void)
  6037. {
  6038. #ifdef errno
  6039. int dummy=1;
  6040. #else
  6041. force compilation error
  6042. #endif
  6043. ;
  6044. return 0;
  6045. }
  6046. _ACEOF
  6047. if ac_fn_c_try_compile "$LINENO"; then :
  6048. tmp_errno="errno_macro_needs_reentrant"
  6049. tmp_need_reentrant="yes"
  6050. fi
  6051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6052. fi
  6053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6054. fi
  6055. fi
  6056. if test "$tmp_need_reentrant" = "no"; then
  6057. if test "$tmp_need_reentrant" = "no"; then
  6058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6059. /* end confdefs.h. */
  6060. #define gmtime_r innocuous_gmtime_r
  6061. #ifdef __STDC__
  6062. # include <limits.h>
  6063. #else
  6064. # include <assert.h>
  6065. #endif
  6066. #undef gmtime_r
  6067. #ifdef __cplusplus
  6068. extern "C"
  6069. #endif
  6070. char gmtime_r ();
  6071. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  6072. choke me
  6073. #endif
  6074. int main (void)
  6075. {
  6076. return gmtime_r ();
  6077. ;
  6078. return 0;
  6079. }
  6080. _ACEOF
  6081. if ac_fn_c_try_link "$LINENO"; then :
  6082. tmp_gmtime_r="yes"
  6083. else
  6084. tmp_gmtime_r="no"
  6085. fi
  6086. rm -f core conftest.err conftest.$ac_objext \
  6087. conftest$ac_exeext conftest.$ac_ext
  6088. if test "$tmp_gmtime_r" = "yes"; then
  6089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6090. /* end confdefs.h. */
  6091. #include <sys/types.h>
  6092. #include <time.h>
  6093. _ACEOF
  6094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6095. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  6096. tmp_gmtime_r="proto_declared"
  6097. else
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. #define _REENTRANT
  6101. #include <sys/types.h>
  6102. #include <time.h>
  6103. _ACEOF
  6104. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6105. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  6106. tmp_gmtime_r="proto_needs_reentrant"
  6107. tmp_need_reentrant="yes"
  6108. fi
  6109. rm -f conftest*
  6110. fi
  6111. rm -f conftest*
  6112. fi
  6113. fi
  6114. if test "$tmp_need_reentrant" = "no"; then
  6115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6116. /* end confdefs.h. */
  6117. #define localtime_r innocuous_localtime_r
  6118. #ifdef __STDC__
  6119. # include <limits.h>
  6120. #else
  6121. # include <assert.h>
  6122. #endif
  6123. #undef localtime_r
  6124. #ifdef __cplusplus
  6125. extern "C"
  6126. #endif
  6127. char localtime_r ();
  6128. #if defined __stub_localtime_r || defined __stub___localtime_r
  6129. choke me
  6130. #endif
  6131. int main (void)
  6132. {
  6133. return localtime_r ();
  6134. ;
  6135. return 0;
  6136. }
  6137. _ACEOF
  6138. if ac_fn_c_try_link "$LINENO"; then :
  6139. tmp_localtime_r="yes"
  6140. else
  6141. tmp_localtime_r="no"
  6142. fi
  6143. rm -f core conftest.err conftest.$ac_objext \
  6144. conftest$ac_exeext conftest.$ac_ext
  6145. if test "$tmp_localtime_r" = "yes"; then
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. #include <sys/types.h>
  6149. #include <time.h>
  6150. _ACEOF
  6151. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6152. $EGREP "localtime_r" >/dev/null 2>&1; then :
  6153. tmp_localtime_r="proto_declared"
  6154. else
  6155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6156. /* end confdefs.h. */
  6157. #define _REENTRANT
  6158. #include <sys/types.h>
  6159. #include <time.h>
  6160. _ACEOF
  6161. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6162. $EGREP "localtime_r" >/dev/null 2>&1; then :
  6163. tmp_localtime_r="proto_needs_reentrant"
  6164. tmp_need_reentrant="yes"
  6165. fi
  6166. rm -f conftest*
  6167. fi
  6168. rm -f conftest*
  6169. fi
  6170. fi
  6171. if test "$tmp_need_reentrant" = "no"; then
  6172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6173. /* end confdefs.h. */
  6174. #define strerror_r innocuous_strerror_r
  6175. #ifdef __STDC__
  6176. # include <limits.h>
  6177. #else
  6178. # include <assert.h>
  6179. #endif
  6180. #undef strerror_r
  6181. #ifdef __cplusplus
  6182. extern "C"
  6183. #endif
  6184. char strerror_r ();
  6185. #if defined __stub_strerror_r || defined __stub___strerror_r
  6186. choke me
  6187. #endif
  6188. int main (void)
  6189. {
  6190. return strerror_r ();
  6191. ;
  6192. return 0;
  6193. }
  6194. _ACEOF
  6195. if ac_fn_c_try_link "$LINENO"; then :
  6196. tmp_strerror_r="yes"
  6197. else
  6198. tmp_strerror_r="no"
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext \
  6201. conftest$ac_exeext conftest.$ac_ext
  6202. if test "$tmp_strerror_r" = "yes"; then
  6203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6204. /* end confdefs.h. */
  6205. #include <sys/types.h>
  6206. #include <string.h>
  6207. _ACEOF
  6208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6209. $EGREP "strerror_r" >/dev/null 2>&1; then :
  6210. tmp_strerror_r="proto_declared"
  6211. else
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #define _REENTRANT
  6215. #include <sys/types.h>
  6216. #include <string.h>
  6217. _ACEOF
  6218. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6219. $EGREP "strerror_r" >/dev/null 2>&1; then :
  6220. tmp_strerror_r="proto_needs_reentrant"
  6221. tmp_need_reentrant="yes"
  6222. fi
  6223. rm -f conftest*
  6224. fi
  6225. rm -f conftest*
  6226. fi
  6227. fi
  6228. if test "$tmp_need_reentrant" = "no"; then
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #define strtok_r innocuous_strtok_r
  6232. #ifdef __STDC__
  6233. # include <limits.h>
  6234. #else
  6235. # include <assert.h>
  6236. #endif
  6237. #undef strtok_r
  6238. #ifdef __cplusplus
  6239. extern "C"
  6240. #endif
  6241. char strtok_r ();
  6242. #if defined __stub_strtok_r || defined __stub___strtok_r
  6243. choke me
  6244. #endif
  6245. int main (void)
  6246. {
  6247. return strtok_r ();
  6248. ;
  6249. return 0;
  6250. }
  6251. _ACEOF
  6252. if ac_fn_c_try_link "$LINENO"; then :
  6253. tmp_strtok_r="yes"
  6254. else
  6255. tmp_strtok_r="no"
  6256. fi
  6257. rm -f core conftest.err conftest.$ac_objext \
  6258. conftest$ac_exeext conftest.$ac_ext
  6259. if test "$tmp_strtok_r" = "yes"; then
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. #include <sys/types.h>
  6263. #include <string.h>
  6264. _ACEOF
  6265. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6266. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6267. tmp_strtok_r="proto_declared"
  6268. else
  6269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6270. /* end confdefs.h. */
  6271. #define _REENTRANT
  6272. #include <sys/types.h>
  6273. #include <string.h>
  6274. _ACEOF
  6275. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6276. $EGREP "strtok_r" >/dev/null 2>&1; then :
  6277. tmp_strtok_r="proto_needs_reentrant"
  6278. tmp_need_reentrant="yes"
  6279. fi
  6280. rm -f conftest*
  6281. fi
  6282. rm -f conftest*
  6283. fi
  6284. fi
  6285. if test "$tmp_need_reentrant" = "no"; then
  6286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6287. /* end confdefs.h. */
  6288. #define inet_ntoa_r innocuous_inet_ntoa_r
  6289. #ifdef __STDC__
  6290. # include <limits.h>
  6291. #else
  6292. # include <assert.h>
  6293. #endif
  6294. #undef inet_ntoa_r
  6295. #ifdef __cplusplus
  6296. extern "C"
  6297. #endif
  6298. char inet_ntoa_r ();
  6299. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  6300. choke me
  6301. #endif
  6302. int main (void)
  6303. {
  6304. return inet_ntoa_r ();
  6305. ;
  6306. return 0;
  6307. }
  6308. _ACEOF
  6309. if ac_fn_c_try_link "$LINENO"; then :
  6310. tmp_inet_ntoa_r="yes"
  6311. else
  6312. tmp_inet_ntoa_r="no"
  6313. fi
  6314. rm -f core conftest.err conftest.$ac_objext \
  6315. conftest$ac_exeext conftest.$ac_ext
  6316. if test "$tmp_inet_ntoa_r" = "yes"; then
  6317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6318. /* end confdefs.h. */
  6319. #include <sys/types.h>
  6320. #include <sys/socket.h>
  6321. #include <netinet/in.h>
  6322. #include <arpa/inet.h>
  6323. _ACEOF
  6324. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6325. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6326. tmp_inet_ntoa_r="proto_declared"
  6327. else
  6328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329. /* end confdefs.h. */
  6330. #define _REENTRANT
  6331. #include <sys/types.h>
  6332. #include <sys/socket.h>
  6333. #include <netinet/in.h>
  6334. #include <arpa/inet.h>
  6335. _ACEOF
  6336. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6337. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  6338. tmp_inet_ntoa_r="proto_needs_reentrant"
  6339. tmp_need_reentrant="yes"
  6340. fi
  6341. rm -f conftest*
  6342. fi
  6343. rm -f conftest*
  6344. fi
  6345. fi
  6346. if test "$tmp_need_reentrant" = "no"; then
  6347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6348. /* end confdefs.h. */
  6349. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  6350. #ifdef __STDC__
  6351. # include <limits.h>
  6352. #else
  6353. # include <assert.h>
  6354. #endif
  6355. #undef gethostbyaddr_r
  6356. #ifdef __cplusplus
  6357. extern "C"
  6358. #endif
  6359. char gethostbyaddr_r ();
  6360. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  6361. choke me
  6362. #endif
  6363. int main (void)
  6364. {
  6365. return gethostbyaddr_r ();
  6366. ;
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. if ac_fn_c_try_link "$LINENO"; then :
  6371. tmp_gethostbyaddr_r="yes"
  6372. else
  6373. tmp_gethostbyaddr_r="no"
  6374. fi
  6375. rm -f core conftest.err conftest.$ac_objext \
  6376. conftest$ac_exeext conftest.$ac_ext
  6377. if test "$tmp_gethostbyaddr_r" = "yes"; then
  6378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6379. /* end confdefs.h. */
  6380. #include <sys/types.h>
  6381. #include <netdb.h>
  6382. _ACEOF
  6383. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6384. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6385. tmp_gethostbyaddr_r="proto_declared"
  6386. else
  6387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6388. /* end confdefs.h. */
  6389. #define _REENTRANT
  6390. #include <sys/types.h>
  6391. #include <netdb.h>
  6392. _ACEOF
  6393. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6394. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  6395. tmp_gethostbyaddr_r="proto_needs_reentrant"
  6396. tmp_need_reentrant="yes"
  6397. fi
  6398. rm -f conftest*
  6399. fi
  6400. rm -f conftest*
  6401. fi
  6402. fi
  6403. if test "$tmp_need_reentrant" = "no"; then
  6404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6405. /* end confdefs.h. */
  6406. #define gethostbyname_r innocuous_gethostbyname_r
  6407. #ifdef __STDC__
  6408. # include <limits.h>
  6409. #else
  6410. # include <assert.h>
  6411. #endif
  6412. #undef gethostbyname_r
  6413. #ifdef __cplusplus
  6414. extern "C"
  6415. #endif
  6416. char gethostbyname_r ();
  6417. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  6418. choke me
  6419. #endif
  6420. int main (void)
  6421. {
  6422. return gethostbyname_r ();
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. if ac_fn_c_try_link "$LINENO"; then :
  6428. tmp_gethostbyname_r="yes"
  6429. else
  6430. tmp_gethostbyname_r="no"
  6431. fi
  6432. rm -f core conftest.err conftest.$ac_objext \
  6433. conftest$ac_exeext conftest.$ac_ext
  6434. if test "$tmp_gethostbyname_r" = "yes"; then
  6435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6436. /* end confdefs.h. */
  6437. #include <sys/types.h>
  6438. #include <netdb.h>
  6439. _ACEOF
  6440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6441. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6442. tmp_gethostbyname_r="proto_declared"
  6443. else
  6444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6445. /* end confdefs.h. */
  6446. #define _REENTRANT
  6447. #include <sys/types.h>
  6448. #include <netdb.h>
  6449. _ACEOF
  6450. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6451. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  6452. tmp_gethostbyname_r="proto_needs_reentrant"
  6453. tmp_need_reentrant="yes"
  6454. fi
  6455. rm -f conftest*
  6456. fi
  6457. rm -f conftest*
  6458. fi
  6459. fi
  6460. if test "$tmp_need_reentrant" = "no"; then
  6461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6462. /* end confdefs.h. */
  6463. #define getprotobyname_r innocuous_getprotobyname_r
  6464. #ifdef __STDC__
  6465. # include <limits.h>
  6466. #else
  6467. # include <assert.h>
  6468. #endif
  6469. #undef getprotobyname_r
  6470. #ifdef __cplusplus
  6471. extern "C"
  6472. #endif
  6473. char getprotobyname_r ();
  6474. #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
  6475. choke me
  6476. #endif
  6477. int main (void)
  6478. {
  6479. return getprotobyname_r ();
  6480. ;
  6481. return 0;
  6482. }
  6483. _ACEOF
  6484. if ac_fn_c_try_link "$LINENO"; then :
  6485. tmp_getprotobyname_r="yes"
  6486. else
  6487. tmp_getprotobyname_r="no"
  6488. fi
  6489. rm -f core conftest.err conftest.$ac_objext \
  6490. conftest$ac_exeext conftest.$ac_ext
  6491. if test "$tmp_getprotobyname_r" = "yes"; then
  6492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6493. /* end confdefs.h. */
  6494. #include <sys/types.h>
  6495. #include <netdb.h>
  6496. _ACEOF
  6497. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6498. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6499. tmp_getprotobyname_r="proto_declared"
  6500. else
  6501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end confdefs.h. */
  6503. #define _REENTRANT
  6504. #include <sys/types.h>
  6505. #include <netdb.h>
  6506. _ACEOF
  6507. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6508. $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
  6509. tmp_getprotobyname_r="proto_needs_reentrant"
  6510. tmp_need_reentrant="yes"
  6511. fi
  6512. rm -f conftest*
  6513. fi
  6514. rm -f conftest*
  6515. fi
  6516. fi
  6517. if test "$tmp_need_reentrant" = "no"; then
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. #define getservbyport_r innocuous_getservbyport_r
  6521. #ifdef __STDC__
  6522. # include <limits.h>
  6523. #else
  6524. # include <assert.h>
  6525. #endif
  6526. #undef getservbyport_r
  6527. #ifdef __cplusplus
  6528. extern "C"
  6529. #endif
  6530. char getservbyport_r ();
  6531. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  6532. choke me
  6533. #endif
  6534. int main (void)
  6535. {
  6536. return getservbyport_r ();
  6537. ;
  6538. return 0;
  6539. }
  6540. _ACEOF
  6541. if ac_fn_c_try_link "$LINENO"; then :
  6542. tmp_getservbyport_r="yes"
  6543. else
  6544. tmp_getservbyport_r="no"
  6545. fi
  6546. rm -f core conftest.err conftest.$ac_objext \
  6547. conftest$ac_exeext conftest.$ac_ext
  6548. if test "$tmp_getservbyport_r" = "yes"; then
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. #include <sys/types.h>
  6552. #include <netdb.h>
  6553. _ACEOF
  6554. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6555. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6556. tmp_getservbyport_r="proto_declared"
  6557. else
  6558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6559. /* end confdefs.h. */
  6560. #define _REENTRANT
  6561. #include <sys/types.h>
  6562. #include <netdb.h>
  6563. _ACEOF
  6564. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6565. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  6566. tmp_getservbyport_r="proto_needs_reentrant"
  6567. tmp_need_reentrant="yes"
  6568. fi
  6569. rm -f conftest*
  6570. fi
  6571. rm -f conftest*
  6572. fi
  6573. fi
  6574. fi
  6575. if test "$tmp_need_reentrant" = "yes"; then
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6577. $as_echo "yes" >&6; }
  6578. else
  6579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6580. $as_echo "no" >&6; }
  6581. fi
  6582. fi
  6583. #
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
  6585. $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
  6586. if test "$tmp_reentrant_initially_defined" = "yes" ||
  6587. test "$tmp_need_reentrant" = "yes"; then
  6588. $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
  6589. cat >>confdefs.h <<_EOF
  6590. #ifndef _REENTRANT
  6591. # define _REENTRANT
  6592. #endif
  6593. _EOF
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6595. $as_echo "yes" >&6; }
  6596. else
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6598. $as_echo "no" >&6; }
  6599. fi
  6600. #
  6601. # Check whether --enable-largefile was given.
  6602. if test "${enable_largefile+set}" = set; then :
  6603. enableval=$enable_largefile;
  6604. fi
  6605. if test "$enable_largefile" != no; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6607. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6608. if ${ac_cv_sys_largefile_CC+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. ac_cv_sys_largefile_CC=no
  6612. if test "$GCC" != yes; then
  6613. ac_save_CC=$CC
  6614. while :; do
  6615. # IRIX 6.2 and later do not support large files by default,
  6616. # so use the C compiler's -n32 option if that helps.
  6617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6618. /* end confdefs.h. */
  6619. #include <sys/types.h>
  6620. /* Check that off_t can represent 2**63 - 1 correctly.
  6621. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6622. since some C++ compilers masquerading as C compilers
  6623. incorrectly reject 9223372036854775807. */
  6624. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6625. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6626. && LARGE_OFF_T % 2147483647 == 1)
  6627. ? 1 : -1];
  6628. int main (void)
  6629. {
  6630. ;
  6631. return 0;
  6632. }
  6633. _ACEOF
  6634. if ac_fn_c_try_compile "$LINENO"; then :
  6635. break
  6636. fi
  6637. rm -f core conftest.err conftest.$ac_objext
  6638. CC="$CC -n32"
  6639. if ac_fn_c_try_compile "$LINENO"; then :
  6640. ac_cv_sys_largefile_CC=' -n32'; break
  6641. fi
  6642. rm -f core conftest.err conftest.$ac_objext
  6643. break
  6644. done
  6645. CC=$ac_save_CC
  6646. rm -f conftest.$ac_ext
  6647. fi
  6648. fi
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6650. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6651. if test "$ac_cv_sys_largefile_CC" != no; then
  6652. CC=$CC$ac_cv_sys_largefile_CC
  6653. fi
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6655. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6656. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6657. $as_echo_n "(cached) " >&6
  6658. else
  6659. while :; do
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. #include <sys/types.h>
  6663. /* Check that off_t can represent 2**63 - 1 correctly.
  6664. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6665. since some C++ compilers masquerading as C compilers
  6666. incorrectly reject 9223372036854775807. */
  6667. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6668. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6669. && LARGE_OFF_T % 2147483647 == 1)
  6670. ? 1 : -1];
  6671. int main (void)
  6672. {
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. if ac_fn_c_try_compile "$LINENO"; then :
  6678. ac_cv_sys_file_offset_bits=no; break
  6679. fi
  6680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6682. /* end confdefs.h. */
  6683. #define _FILE_OFFSET_BITS 64
  6684. #include <sys/types.h>
  6685. /* Check that off_t can represent 2**63 - 1 correctly.
  6686. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6687. since some C++ compilers masquerading as C compilers
  6688. incorrectly reject 9223372036854775807. */
  6689. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6690. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6691. && LARGE_OFF_T % 2147483647 == 1)
  6692. ? 1 : -1];
  6693. int main (void)
  6694. {
  6695. ;
  6696. return 0;
  6697. }
  6698. _ACEOF
  6699. if ac_fn_c_try_compile "$LINENO"; then :
  6700. ac_cv_sys_file_offset_bits=64; break
  6701. fi
  6702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6703. ac_cv_sys_file_offset_bits=unknown
  6704. break
  6705. done
  6706. fi
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6708. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6709. case $ac_cv_sys_file_offset_bits in #(
  6710. no | unknown) ;;
  6711. *)
  6712. cat >>confdefs.h <<_ACEOF
  6713. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6714. _ACEOF
  6715. ;;
  6716. esac
  6717. rm -rf conftest*
  6718. if test $ac_cv_sys_file_offset_bits = unknown; then
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6720. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6721. if ${ac_cv_sys_large_files+:} false; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. while :; do
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. #include <sys/types.h>
  6728. /* Check that off_t can represent 2**63 - 1 correctly.
  6729. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6730. since some C++ compilers masquerading as C compilers
  6731. incorrectly reject 9223372036854775807. */
  6732. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6733. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6734. && LARGE_OFF_T % 2147483647 == 1)
  6735. ? 1 : -1];
  6736. int main (void)
  6737. {
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. if ac_fn_c_try_compile "$LINENO"; then :
  6743. ac_cv_sys_large_files=no; break
  6744. fi
  6745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #define _LARGE_FILES 1
  6749. #include <sys/types.h>
  6750. /* Check that off_t can represent 2**63 - 1 correctly.
  6751. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6752. since some C++ compilers masquerading as C compilers
  6753. incorrectly reject 9223372036854775807. */
  6754. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  6755. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6756. && LARGE_OFF_T % 2147483647 == 1)
  6757. ? 1 : -1];
  6758. int main (void)
  6759. {
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. if ac_fn_c_try_compile "$LINENO"; then :
  6765. ac_cv_sys_large_files=1; break
  6766. fi
  6767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6768. ac_cv_sys_large_files=unknown
  6769. break
  6770. done
  6771. fi
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  6773. $as_echo "$ac_cv_sys_large_files" >&6; }
  6774. case $ac_cv_sys_large_files in #(
  6775. no | unknown) ;;
  6776. *)
  6777. cat >>confdefs.h <<_ACEOF
  6778. #define _LARGE_FILES $ac_cv_sys_large_files
  6779. _ACEOF
  6780. ;;
  6781. esac
  6782. rm -rf conftest*
  6783. fi
  6784. fi
  6785. case `pwd` in
  6786. *\ * | *\ *)
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6788. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6789. esac
  6790. macro_version='2.4.2'
  6791. macro_revision='1.3337'
  6792. ltmain="$ac_aux_dir/ltmain.sh"
  6793. # Backslashify metacharacters that are still active within
  6794. # double-quoted strings.
  6795. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6796. # Same as above, but do not quote variable references.
  6797. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6798. # Sed substitution to delay expansion of an escaped shell variable in a
  6799. # double_quote_subst'ed string.
  6800. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6801. # Sed substitution to delay expansion of an escaped single quote.
  6802. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6803. # Sed substitution to avoid accidental globbing in evaled expressions
  6804. no_glob_subst='s/\*/\\\*/g'
  6805. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  6806. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  6807. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  6809. $as_echo_n "checking how to print strings... " >&6; }
  6810. # Test print first, because it will be a builtin if present.
  6811. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  6812. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  6813. ECHO='print -r --'
  6814. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  6815. ECHO='printf %s\n'
  6816. else
  6817. # Use this function as a fallback that always works.
  6818. func_fallback_echo ()
  6819. {
  6820. eval 'cat <<_LTECHO_EOF
  6821. $1
  6822. _LTECHO_EOF'
  6823. }
  6824. ECHO='func_fallback_echo'
  6825. fi
  6826. # func_echo_all arg...
  6827. # Invoke $ECHO with all args, space-separated.
  6828. func_echo_all ()
  6829. {
  6830. $ECHO ""
  6831. }
  6832. case "$ECHO" in
  6833. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  6834. $as_echo "printf" >&6; } ;;
  6835. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  6836. $as_echo "print -r" >&6; } ;;
  6837. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  6838. $as_echo "cat" >&6; } ;;
  6839. esac
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6841. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6842. if ${ac_cv_path_SED+:} false; then :
  6843. $as_echo_n "(cached) " >&6
  6844. else
  6845. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6846. for ac_i in 1 2 3 4 5 6 7; do
  6847. ac_script="$ac_script$as_nl$ac_script"
  6848. done
  6849. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6850. { ac_script=; unset ac_script;}
  6851. if test -z "$SED"; then
  6852. ac_path_SED_found=false
  6853. # Loop through the user's path and test for each of PROGNAME-LIST
  6854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6855. for as_dir in $PATH
  6856. do
  6857. IFS=$as_save_IFS
  6858. test -z "$as_dir" && as_dir=.
  6859. for ac_prog in sed gsed; do
  6860. for ac_exec_ext in '' $ac_executable_extensions; do
  6861. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6862. as_fn_executable_p "$ac_path_SED" || continue
  6863. # Check for GNU ac_path_SED and select it if it is found.
  6864. # Check for GNU $ac_path_SED
  6865. case `"$ac_path_SED" --version 2>&1` in
  6866. *GNU*)
  6867. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6868. *)
  6869. ac_count=0
  6870. $as_echo_n 0123456789 >"conftest.in"
  6871. while :
  6872. do
  6873. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6874. mv "conftest.tmp" "conftest.in"
  6875. cp "conftest.in" "conftest.nl"
  6876. $as_echo '' >> "conftest.nl"
  6877. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6878. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6879. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6880. if test $ac_count -gt ${ac_path_SED_max-0}; then
  6881. # Best one so far, save it but keep looking for a better one
  6882. ac_cv_path_SED="$ac_path_SED"
  6883. ac_path_SED_max=$ac_count
  6884. fi
  6885. # 10*(2^10) chars as input seems more than enough
  6886. test $ac_count -gt 10 && break
  6887. done
  6888. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6889. esac
  6890. $ac_path_SED_found && break 3
  6891. done
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. if test -z "$ac_cv_path_SED"; then
  6896. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6897. fi
  6898. else
  6899. ac_cv_path_SED=$SED
  6900. fi
  6901. fi
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6903. $as_echo "$ac_cv_path_SED" >&6; }
  6904. SED="$ac_cv_path_SED"
  6905. rm -f conftest.sed
  6906. test -z "$SED" && SED=sed
  6907. Xsed="$SED -e 1s/^X//"
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  6909. $as_echo_n "checking for fgrep... " >&6; }
  6910. if ${ac_cv_path_FGREP+:} false; then :
  6911. $as_echo_n "(cached) " >&6
  6912. else
  6913. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  6914. then ac_cv_path_FGREP="$GREP -F"
  6915. else
  6916. if test -z "$FGREP"; then
  6917. ac_path_FGREP_found=false
  6918. # Loop through the user's path and test for each of PROGNAME-LIST
  6919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6920. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6921. do
  6922. IFS=$as_save_IFS
  6923. test -z "$as_dir" && as_dir=.
  6924. for ac_prog in fgrep; do
  6925. for ac_exec_ext in '' $ac_executable_extensions; do
  6926. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  6927. as_fn_executable_p "$ac_path_FGREP" || continue
  6928. # Check for GNU ac_path_FGREP and select it if it is found.
  6929. # Check for GNU $ac_path_FGREP
  6930. case `"$ac_path_FGREP" --version 2>&1` in
  6931. *GNU*)
  6932. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  6933. *)
  6934. ac_count=0
  6935. $as_echo_n 0123456789 >"conftest.in"
  6936. while :
  6937. do
  6938. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6939. mv "conftest.tmp" "conftest.in"
  6940. cp "conftest.in" "conftest.nl"
  6941. $as_echo 'FGREP' >> "conftest.nl"
  6942. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6943. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6944. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6945. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  6946. # Best one so far, save it but keep looking for a better one
  6947. ac_cv_path_FGREP="$ac_path_FGREP"
  6948. ac_path_FGREP_max=$ac_count
  6949. fi
  6950. # 10*(2^10) chars as input seems more than enough
  6951. test $ac_count -gt 10 && break
  6952. done
  6953. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6954. esac
  6955. $ac_path_FGREP_found && break 3
  6956. done
  6957. done
  6958. done
  6959. IFS=$as_save_IFS
  6960. if test -z "$ac_cv_path_FGREP"; then
  6961. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6962. fi
  6963. else
  6964. ac_cv_path_FGREP=$FGREP
  6965. fi
  6966. fi
  6967. fi
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  6969. $as_echo "$ac_cv_path_FGREP" >&6; }
  6970. FGREP="$ac_cv_path_FGREP"
  6971. test -z "$GREP" && GREP=grep
  6972. # Check whether --with-gnu-ld was given.
  6973. if test "${with_gnu_ld+set}" = set; then :
  6974. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6975. else
  6976. with_gnu_ld=no
  6977. fi
  6978. ac_prog=ld
  6979. if test "$GCC" = yes; then
  6980. # Check if gcc -print-prog-name=ld gives a path.
  6981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  6982. $as_echo_n "checking for ld used by $CC... " >&6; }
  6983. case $host in
  6984. *-*-mingw*)
  6985. # gcc leaves a trailing carriage return which upsets mingw
  6986. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6987. *)
  6988. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6989. esac
  6990. case $ac_prog in
  6991. # Accept absolute paths.
  6992. [\\/]* | ?:[\\/]*)
  6993. re_direlt='/[^/][^/]*/\.\./'
  6994. # Canonicalize the pathname of ld
  6995. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  6996. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  6997. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  6998. done
  6999. test -z "$LD" && LD="$ac_prog"
  7000. ;;
  7001. "")
  7002. # If it fails, then pretend we aren't using GCC.
  7003. ac_prog=ld
  7004. ;;
  7005. *)
  7006. # If it is relative, then search for the first ld in PATH.
  7007. with_gnu_ld=unknown
  7008. ;;
  7009. esac
  7010. elif test "$with_gnu_ld" = yes; then
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7012. $as_echo_n "checking for GNU ld... " >&6; }
  7013. else
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7015. $as_echo_n "checking for non-GNU ld... " >&6; }
  7016. fi
  7017. if ${lt_cv_path_LD+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. if test -z "$LD"; then
  7021. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7022. for ac_dir in $PATH; do
  7023. IFS="$lt_save_ifs"
  7024. test -z "$ac_dir" && ac_dir=.
  7025. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7026. lt_cv_path_LD="$ac_dir/$ac_prog"
  7027. # Check to see if the program is GNU ld. I'd rather use --version,
  7028. # but apparently some variants of GNU ld only accept -v.
  7029. # Break only if it was the GNU/non-GNU ld that we prefer.
  7030. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7031. *GNU* | *'with BFD'*)
  7032. test "$with_gnu_ld" != no && break
  7033. ;;
  7034. *)
  7035. test "$with_gnu_ld" != yes && break
  7036. ;;
  7037. esac
  7038. fi
  7039. done
  7040. IFS="$lt_save_ifs"
  7041. else
  7042. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7043. fi
  7044. fi
  7045. LD="$lt_cv_path_LD"
  7046. if test -n "$LD"; then
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7048. $as_echo "$LD" >&6; }
  7049. else
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7051. $as_echo "no" >&6; }
  7052. fi
  7053. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7055. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7056. if ${lt_cv_prog_gnu_ld+:} false; then :
  7057. $as_echo_n "(cached) " >&6
  7058. else
  7059. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7060. case `$LD -v 2>&1 </dev/null` in
  7061. *GNU* | *'with BFD'*)
  7062. lt_cv_prog_gnu_ld=yes
  7063. ;;
  7064. *)
  7065. lt_cv_prog_gnu_ld=no
  7066. ;;
  7067. esac
  7068. fi
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7070. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7071. with_gnu_ld=$lt_cv_prog_gnu_ld
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7073. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7074. if ${lt_cv_path_NM+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. if test -n "$NM"; then
  7078. # Let the user override the test.
  7079. lt_cv_path_NM="$NM"
  7080. else
  7081. lt_nm_to_check="${ac_tool_prefix}nm"
  7082. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7083. lt_nm_to_check="$lt_nm_to_check nm"
  7084. fi
  7085. for lt_tmp_nm in $lt_nm_to_check; do
  7086. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7087. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7088. IFS="$lt_save_ifs"
  7089. test -z "$ac_dir" && ac_dir=.
  7090. tmp_nm="$ac_dir/$lt_tmp_nm"
  7091. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7092. # Check to see if the nm accepts a BSD-compat flag.
  7093. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7094. # nm: unknown option "B" ignored
  7095. # Tru64's nm complains that /dev/null is an invalid object file
  7096. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7097. */dev/null* | *'Invalid file or object type'*)
  7098. lt_cv_path_NM="$tmp_nm -B"
  7099. break
  7100. ;;
  7101. *)
  7102. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7103. */dev/null*)
  7104. lt_cv_path_NM="$tmp_nm -p"
  7105. break
  7106. ;;
  7107. *)
  7108. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7109. continue # so that we can try to find one that supports BSD flags
  7110. ;;
  7111. esac
  7112. ;;
  7113. esac
  7114. fi
  7115. done
  7116. IFS="$lt_save_ifs"
  7117. done
  7118. : ${lt_cv_path_NM=no}
  7119. fi
  7120. fi
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7122. $as_echo "$lt_cv_path_NM" >&6; }
  7123. if test "$lt_cv_path_NM" != "no"; then
  7124. NM="$lt_cv_path_NM"
  7125. else
  7126. # Didn't find any BSD compatible name lister, look for dumpbin.
  7127. if test -n "$DUMPBIN"; then :
  7128. # Let the user override the test.
  7129. else
  7130. if test -n "$ac_tool_prefix"; then
  7131. for ac_prog in dumpbin "link -dump"
  7132. do
  7133. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7134. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7136. $as_echo_n "checking for $ac_word... " >&6; }
  7137. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7138. $as_echo_n "(cached) " >&6
  7139. else
  7140. if test -n "$DUMPBIN"; then
  7141. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7142. else
  7143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7144. for as_dir in $PATH
  7145. do
  7146. IFS=$as_save_IFS
  7147. test -z "$as_dir" && as_dir=.
  7148. for ac_exec_ext in '' $ac_executable_extensions; do
  7149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7150. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7152. break 2
  7153. fi
  7154. done
  7155. done
  7156. IFS=$as_save_IFS
  7157. fi
  7158. fi
  7159. DUMPBIN=$ac_cv_prog_DUMPBIN
  7160. if test -n "$DUMPBIN"; then
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7162. $as_echo "$DUMPBIN" >&6; }
  7163. else
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7165. $as_echo "no" >&6; }
  7166. fi
  7167. test -n "$DUMPBIN" && break
  7168. done
  7169. fi
  7170. if test -z "$DUMPBIN"; then
  7171. ac_ct_DUMPBIN=$DUMPBIN
  7172. for ac_prog in dumpbin "link -dump"
  7173. do
  7174. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7175. set dummy $ac_prog; ac_word=$2
  7176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7177. $as_echo_n "checking for $ac_word... " >&6; }
  7178. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7179. $as_echo_n "(cached) " >&6
  7180. else
  7181. if test -n "$ac_ct_DUMPBIN"; then
  7182. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7183. else
  7184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7185. for as_dir in $PATH
  7186. do
  7187. IFS=$as_save_IFS
  7188. test -z "$as_dir" && as_dir=.
  7189. for ac_exec_ext in '' $ac_executable_extensions; do
  7190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7191. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7193. break 2
  7194. fi
  7195. done
  7196. done
  7197. IFS=$as_save_IFS
  7198. fi
  7199. fi
  7200. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7201. if test -n "$ac_ct_DUMPBIN"; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7203. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7204. else
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208. test -n "$ac_ct_DUMPBIN" && break
  7209. done
  7210. if test "x$ac_ct_DUMPBIN" = x; then
  7211. DUMPBIN=":"
  7212. else
  7213. case $cross_compiling:$ac_tool_warned in
  7214. yes:)
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7216. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7217. ac_tool_warned=yes ;;
  7218. esac
  7219. DUMPBIN=$ac_ct_DUMPBIN
  7220. fi
  7221. fi
  7222. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  7223. *COFF*)
  7224. DUMPBIN="$DUMPBIN -symbols"
  7225. ;;
  7226. *)
  7227. DUMPBIN=:
  7228. ;;
  7229. esac
  7230. fi
  7231. if test "$DUMPBIN" != ":"; then
  7232. NM="$DUMPBIN"
  7233. fi
  7234. fi
  7235. test -z "$NM" && NM=nm
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7237. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7238. if ${lt_cv_nm_interface+:} false; then :
  7239. $as_echo_n "(cached) " >&6
  7240. else
  7241. lt_cv_nm_interface="BSD nm"
  7242. echo "int some_variable = 0;" > conftest.$ac_ext
  7243. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7244. (eval "$ac_compile" 2>conftest.err)
  7245. cat conftest.err >&5
  7246. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7247. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7248. cat conftest.err >&5
  7249. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7250. cat conftest.out >&5
  7251. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7252. lt_cv_nm_interface="MS dumpbin"
  7253. fi
  7254. rm -f conftest*
  7255. fi
  7256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7257. $as_echo "$lt_cv_nm_interface" >&6; }
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7259. $as_echo_n "checking whether ln -s works... " >&6; }
  7260. LN_S=$as_ln_s
  7261. if test "$LN_S" = "ln -s"; then
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7263. $as_echo "yes" >&6; }
  7264. else
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7266. $as_echo "no, using $LN_S" >&6; }
  7267. fi
  7268. # find the maximum length of command line arguments
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7270. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7271. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. i=0
  7275. teststring="ABCD"
  7276. case $build_os in
  7277. msdosdjgpp*)
  7278. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7279. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7280. # during glob expansion). Even if it were fixed, the result of this
  7281. # check would be larger than it should be.
  7282. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7283. ;;
  7284. gnu*)
  7285. # Under GNU Hurd, this test is not required because there is
  7286. # no limit to the length of command line arguments.
  7287. # Libtool will interpret -1 as no limit whatsoever
  7288. lt_cv_sys_max_cmd_len=-1;
  7289. ;;
  7290. cygwin* | mingw* | cegcc*)
  7291. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7292. # about 5 minutes as the teststring grows exponentially.
  7293. # Worse, since 9x/ME are not pre-emptively multitasking,
  7294. # you end up with a "frozen" computer, even though with patience
  7295. # the test eventually succeeds (with a max line length of 256k).
  7296. # Instead, let's just punt: use the minimum linelength reported by
  7297. # all of the supported platforms: 8192 (on NT/2K/XP).
  7298. lt_cv_sys_max_cmd_len=8192;
  7299. ;;
  7300. mint*)
  7301. # On MiNT this can take a long time and run out of memory.
  7302. lt_cv_sys_max_cmd_len=8192;
  7303. ;;
  7304. amigaos*)
  7305. # On AmigaOS with pdksh, this test takes hours, literally.
  7306. # So we just punt and use a minimum line length of 8192.
  7307. lt_cv_sys_max_cmd_len=8192;
  7308. ;;
  7309. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7310. # This has been around since 386BSD, at least. Likely further.
  7311. if test -x /sbin/sysctl; then
  7312. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7313. elif test -x /usr/sbin/sysctl; then
  7314. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7315. else
  7316. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7317. fi
  7318. # And add a safety zone
  7319. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7320. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7321. ;;
  7322. interix*)
  7323. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7324. lt_cv_sys_max_cmd_len=196608
  7325. ;;
  7326. os2*)
  7327. # The test takes a long time on OS/2.
  7328. lt_cv_sys_max_cmd_len=8192
  7329. ;;
  7330. osf*)
  7331. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7332. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7333. # nice to cause kernel panics so lets avoid the loop below.
  7334. # First set a reasonable default.
  7335. lt_cv_sys_max_cmd_len=16384
  7336. #
  7337. if test -x /sbin/sysconfig; then
  7338. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7339. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7340. esac
  7341. fi
  7342. ;;
  7343. sco3.2v5*)
  7344. lt_cv_sys_max_cmd_len=102400
  7345. ;;
  7346. sysv5* | sco5v6* | sysv4.2uw2*)
  7347. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7348. if test -n "$kargmax"; then
  7349. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7350. else
  7351. lt_cv_sys_max_cmd_len=32768
  7352. fi
  7353. ;;
  7354. *)
  7355. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7356. if test -n "$lt_cv_sys_max_cmd_len" && \
  7357. test undefined != "$lt_cv_sys_max_cmd_len"; then
  7358. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7359. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7360. else
  7361. # Make teststring a little bigger before we do anything with it.
  7362. # a 1K string should be a reasonable start.
  7363. for i in 1 2 3 4 5 6 7 8 ; do
  7364. teststring=$teststring$teststring
  7365. done
  7366. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7367. # If test is not a shell built-in, we'll probably end up computing a
  7368. # maximum length that is only half of the actual maximum length, but
  7369. # we can't tell.
  7370. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  7371. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7372. test $i != 17 # 1/2 MB should be enough
  7373. do
  7374. i=`expr $i + 1`
  7375. teststring=$teststring$teststring
  7376. done
  7377. # Only check the string length outside the loop.
  7378. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7379. teststring=
  7380. # Add a significant safety factor because C++ compilers can tack on
  7381. # massive amounts of additional arguments before passing them to the
  7382. # linker. It appears as though 1/2 is a usable value.
  7383. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7384. fi
  7385. ;;
  7386. esac
  7387. fi
  7388. if test -n $lt_cv_sys_max_cmd_len ; then
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7390. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7391. else
  7392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7393. $as_echo "none" >&6; }
  7394. fi
  7395. max_cmd_len=$lt_cv_sys_max_cmd_len
  7396. : ${CP="cp -f"}
  7397. : ${MV="mv -f"}
  7398. : ${RM="rm -f"}
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  7400. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  7401. # Try some XSI features
  7402. xsi_shell=no
  7403. ( _lt_dummy="a/b/c"
  7404. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7405. = c,a/b,b/c, \
  7406. && eval 'test $(( 1 + 1 )) -eq 2 \
  7407. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7408. && xsi_shell=yes
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  7410. $as_echo "$xsi_shell" >&6; }
  7411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  7412. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  7413. lt_shell_append=no
  7414. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  7415. >/dev/null 2>&1 \
  7416. && lt_shell_append=yes
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  7418. $as_echo "$lt_shell_append" >&6; }
  7419. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7420. lt_unset=unset
  7421. else
  7422. lt_unset=false
  7423. fi
  7424. # test EBCDIC or ASCII
  7425. case `echo X|tr X '\101'` in
  7426. A) # ASCII based system
  7427. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7428. lt_SP2NL='tr \040 \012'
  7429. lt_NL2SP='tr \015\012 \040\040'
  7430. ;;
  7431. *) # EBCDIC based system
  7432. lt_SP2NL='tr \100 \n'
  7433. lt_NL2SP='tr \r\n \100\100'
  7434. ;;
  7435. esac
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7437. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7438. if ${lt_cv_to_host_file_cmd+:} false; then :
  7439. $as_echo_n "(cached) " >&6
  7440. else
  7441. case $host in
  7442. *-*-mingw* )
  7443. case $build in
  7444. *-*-mingw* ) # actually msys
  7445. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7446. ;;
  7447. *-*-cygwin* )
  7448. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7449. ;;
  7450. * ) # otherwise, assume *nix
  7451. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7452. ;;
  7453. esac
  7454. ;;
  7455. *-*-cygwin* )
  7456. case $build in
  7457. *-*-mingw* ) # actually msys
  7458. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7459. ;;
  7460. *-*-cygwin* )
  7461. lt_cv_to_host_file_cmd=func_convert_file_noop
  7462. ;;
  7463. * ) # otherwise, assume *nix
  7464. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7465. ;;
  7466. esac
  7467. ;;
  7468. * ) # unhandled hosts (and "normal" native builds)
  7469. lt_cv_to_host_file_cmd=func_convert_file_noop
  7470. ;;
  7471. esac
  7472. fi
  7473. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7475. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7477. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7478. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7479. $as_echo_n "(cached) " >&6
  7480. else
  7481. #assume ordinary cross tools, or native build.
  7482. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7483. case $host in
  7484. *-*-mingw* )
  7485. case $build in
  7486. *-*-mingw* ) # actually msys
  7487. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7488. ;;
  7489. esac
  7490. ;;
  7491. esac
  7492. fi
  7493. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7495. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7497. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7498. if ${lt_cv_ld_reload_flag+:} false; then :
  7499. $as_echo_n "(cached) " >&6
  7500. else
  7501. lt_cv_ld_reload_flag='-r'
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7504. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7505. reload_flag=$lt_cv_ld_reload_flag
  7506. case $reload_flag in
  7507. "" | " "*) ;;
  7508. *) reload_flag=" $reload_flag" ;;
  7509. esac
  7510. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7511. case $host_os in
  7512. cygwin* | mingw* | pw32* | cegcc*)
  7513. if test "$GCC" != yes; then
  7514. reload_cmds=false
  7515. fi
  7516. ;;
  7517. darwin*)
  7518. if test "$GCC" = yes; then
  7519. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  7520. else
  7521. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7522. fi
  7523. ;;
  7524. esac
  7525. if test -n "$ac_tool_prefix"; then
  7526. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7527. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7529. $as_echo_n "checking for $ac_word... " >&6; }
  7530. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. if test -n "$OBJDUMP"; then
  7534. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7535. else
  7536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7537. for as_dir in $PATH
  7538. do
  7539. IFS=$as_save_IFS
  7540. test -z "$as_dir" && as_dir=.
  7541. for ac_exec_ext in '' $ac_executable_extensions; do
  7542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7543. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7545. break 2
  7546. fi
  7547. done
  7548. done
  7549. IFS=$as_save_IFS
  7550. fi
  7551. fi
  7552. OBJDUMP=$ac_cv_prog_OBJDUMP
  7553. if test -n "$OBJDUMP"; then
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7555. $as_echo "$OBJDUMP" >&6; }
  7556. else
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7558. $as_echo "no" >&6; }
  7559. fi
  7560. fi
  7561. if test -z "$ac_cv_prog_OBJDUMP"; then
  7562. ac_ct_OBJDUMP=$OBJDUMP
  7563. # Extract the first word of "objdump", so it can be a program name with args.
  7564. set dummy objdump; ac_word=$2
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7566. $as_echo_n "checking for $ac_word... " >&6; }
  7567. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7568. $as_echo_n "(cached) " >&6
  7569. else
  7570. if test -n "$ac_ct_OBJDUMP"; then
  7571. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7572. else
  7573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7574. for as_dir in $PATH
  7575. do
  7576. IFS=$as_save_IFS
  7577. test -z "$as_dir" && as_dir=.
  7578. for ac_exec_ext in '' $ac_executable_extensions; do
  7579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7580. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7582. break 2
  7583. fi
  7584. done
  7585. done
  7586. IFS=$as_save_IFS
  7587. fi
  7588. fi
  7589. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7590. if test -n "$ac_ct_OBJDUMP"; then
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7592. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7593. else
  7594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7595. $as_echo "no" >&6; }
  7596. fi
  7597. if test "x$ac_ct_OBJDUMP" = x; then
  7598. OBJDUMP="false"
  7599. else
  7600. case $cross_compiling:$ac_tool_warned in
  7601. yes:)
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7603. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7604. ac_tool_warned=yes ;;
  7605. esac
  7606. OBJDUMP=$ac_ct_OBJDUMP
  7607. fi
  7608. else
  7609. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7610. fi
  7611. test -z "$OBJDUMP" && OBJDUMP=objdump
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  7613. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  7614. if ${lt_cv_deplibs_check_method+:} false; then :
  7615. $as_echo_n "(cached) " >&6
  7616. else
  7617. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7618. lt_cv_file_magic_test_file=
  7619. lt_cv_deplibs_check_method='unknown'
  7620. # Need to set the preceding variable on all platforms that support
  7621. # interlibrary dependencies.
  7622. # 'none' -- dependencies not supported.
  7623. # `unknown' -- same as none, but documents that we really don't know.
  7624. # 'pass_all' -- all dependencies passed with no checks.
  7625. # 'test_compile' -- check by making test program.
  7626. # 'file_magic [[regex]]' -- check by looking for files in library path
  7627. # which responds to the $file_magic_cmd with a given extended regex.
  7628. # If you have `file' or equivalent on your system and you're not sure
  7629. # whether `pass_all' will *always* work, you probably want this one.
  7630. case $host_os in
  7631. aix[4-9]*)
  7632. lt_cv_deplibs_check_method=pass_all
  7633. ;;
  7634. beos*)
  7635. lt_cv_deplibs_check_method=pass_all
  7636. ;;
  7637. bsdi[45]*)
  7638. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7639. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7640. lt_cv_file_magic_test_file=/shlib/libc.so
  7641. ;;
  7642. cygwin*)
  7643. # func_win32_libid is a shell function defined in ltmain.sh
  7644. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7645. lt_cv_file_magic_cmd='func_win32_libid'
  7646. ;;
  7647. mingw* | pw32*)
  7648. # Base MSYS/MinGW do not provide the 'file' command needed by
  7649. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  7650. # unless we find 'file', for example because we are cross-compiling.
  7651. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  7652. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  7653. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7654. lt_cv_file_magic_cmd='func_win32_libid'
  7655. else
  7656. # Keep this pattern in sync with the one in func_win32_libid.
  7657. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  7658. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7659. fi
  7660. ;;
  7661. cegcc*)
  7662. # use the weaker test based on 'objdump'. See mingw*.
  7663. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  7664. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7665. ;;
  7666. darwin* | rhapsody*)
  7667. lt_cv_deplibs_check_method=pass_all
  7668. ;;
  7669. freebsd* | dragonfly*)
  7670. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7671. case $host_cpu in
  7672. i*86 )
  7673. # Not sure whether the presence of OpenBSD here was a mistake.
  7674. # Let's accept both of them until this is cleared up.
  7675. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7676. lt_cv_file_magic_cmd=/usr/bin/file
  7677. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7678. ;;
  7679. esac
  7680. else
  7681. lt_cv_deplibs_check_method=pass_all
  7682. fi
  7683. ;;
  7684. haiku*)
  7685. lt_cv_deplibs_check_method=pass_all
  7686. ;;
  7687. hpux10.20* | hpux11*)
  7688. lt_cv_file_magic_cmd=/usr/bin/file
  7689. case $host_cpu in
  7690. ia64*)
  7691. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7692. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7693. ;;
  7694. hppa*64*)
  7695. 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]'
  7696. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7697. ;;
  7698. *)
  7699. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  7700. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7701. ;;
  7702. esac
  7703. ;;
  7704. interix[3-9]*)
  7705. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  7706. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  7707. ;;
  7708. irix5* | irix6* | nonstopux*)
  7709. case $LD in
  7710. *-32|*"-32 ") libmagic=32-bit;;
  7711. *-n32|*"-n32 ") libmagic=N32;;
  7712. *-64|*"-64 ") libmagic=64-bit;;
  7713. *) libmagic=never-match;;
  7714. esac
  7715. lt_cv_deplibs_check_method=pass_all
  7716. ;;
  7717. # This must be glibc/ELF.
  7718. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7719. lt_cv_deplibs_check_method=pass_all
  7720. ;;
  7721. netbsd* | netbsdelf*-gnu)
  7722. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  7723. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7724. else
  7725. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  7726. fi
  7727. ;;
  7728. newos6*)
  7729. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  7730. lt_cv_file_magic_cmd=/usr/bin/file
  7731. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7732. ;;
  7733. *nto* | *qnx*)
  7734. lt_cv_deplibs_check_method=pass_all
  7735. ;;
  7736. openbsd*)
  7737. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7738. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  7739. else
  7740. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  7741. fi
  7742. ;;
  7743. osf3* | osf4* | osf5*)
  7744. lt_cv_deplibs_check_method=pass_all
  7745. ;;
  7746. rdos*)
  7747. lt_cv_deplibs_check_method=pass_all
  7748. ;;
  7749. solaris*)
  7750. lt_cv_deplibs_check_method=pass_all
  7751. ;;
  7752. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7753. lt_cv_deplibs_check_method=pass_all
  7754. ;;
  7755. sysv4 | sysv4.3*)
  7756. case $host_vendor in
  7757. motorola)
  7758. 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]'
  7759. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  7760. ;;
  7761. ncr)
  7762. lt_cv_deplibs_check_method=pass_all
  7763. ;;
  7764. sequent)
  7765. lt_cv_file_magic_cmd='/bin/file'
  7766. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  7767. ;;
  7768. sni)
  7769. lt_cv_file_magic_cmd='/bin/file'
  7770. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7771. lt_cv_file_magic_test_file=/lib/libc.so
  7772. ;;
  7773. siemens)
  7774. lt_cv_deplibs_check_method=pass_all
  7775. ;;
  7776. pc)
  7777. lt_cv_deplibs_check_method=pass_all
  7778. ;;
  7779. esac
  7780. ;;
  7781. tpf*)
  7782. lt_cv_deplibs_check_method=pass_all
  7783. ;;
  7784. esac
  7785. fi
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  7787. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  7788. file_magic_glob=
  7789. want_nocaseglob=no
  7790. if test "$build" = "$host"; then
  7791. case $host_os in
  7792. mingw* | pw32*)
  7793. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  7794. want_nocaseglob=yes
  7795. else
  7796. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  7797. fi
  7798. ;;
  7799. esac
  7800. fi
  7801. file_magic_cmd=$lt_cv_file_magic_cmd
  7802. deplibs_check_method=$lt_cv_deplibs_check_method
  7803. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7804. if test -n "$ac_tool_prefix"; then
  7805. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7806. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7808. $as_echo_n "checking for $ac_word... " >&6; }
  7809. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7810. $as_echo_n "(cached) " >&6
  7811. else
  7812. if test -n "$DLLTOOL"; then
  7813. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7814. else
  7815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7816. for as_dir in $PATH
  7817. do
  7818. IFS=$as_save_IFS
  7819. test -z "$as_dir" && as_dir=.
  7820. for ac_exec_ext in '' $ac_executable_extensions; do
  7821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7822. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7824. break 2
  7825. fi
  7826. done
  7827. done
  7828. IFS=$as_save_IFS
  7829. fi
  7830. fi
  7831. DLLTOOL=$ac_cv_prog_DLLTOOL
  7832. if test -n "$DLLTOOL"; then
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7834. $as_echo "$DLLTOOL" >&6; }
  7835. else
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7837. $as_echo "no" >&6; }
  7838. fi
  7839. fi
  7840. if test -z "$ac_cv_prog_DLLTOOL"; then
  7841. ac_ct_DLLTOOL=$DLLTOOL
  7842. # Extract the first word of "dlltool", so it can be a program name with args.
  7843. set dummy dlltool; ac_word=$2
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7845. $as_echo_n "checking for $ac_word... " >&6; }
  7846. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7847. $as_echo_n "(cached) " >&6
  7848. else
  7849. if test -n "$ac_ct_DLLTOOL"; then
  7850. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7851. else
  7852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7853. for as_dir in $PATH
  7854. do
  7855. IFS=$as_save_IFS
  7856. test -z "$as_dir" && as_dir=.
  7857. for ac_exec_ext in '' $ac_executable_extensions; do
  7858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7859. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7861. break 2
  7862. fi
  7863. done
  7864. done
  7865. IFS=$as_save_IFS
  7866. fi
  7867. fi
  7868. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7869. if test -n "$ac_ct_DLLTOOL"; then
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7871. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7872. else
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7874. $as_echo "no" >&6; }
  7875. fi
  7876. if test "x$ac_ct_DLLTOOL" = x; then
  7877. DLLTOOL="false"
  7878. else
  7879. case $cross_compiling:$ac_tool_warned in
  7880. yes:)
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7883. ac_tool_warned=yes ;;
  7884. esac
  7885. DLLTOOL=$ac_ct_DLLTOOL
  7886. fi
  7887. else
  7888. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7889. fi
  7890. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  7892. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  7893. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. lt_cv_sharedlib_from_linklib_cmd='unknown'
  7897. case $host_os in
  7898. cygwin* | mingw* | pw32* | cegcc*)
  7899. # two different shell functions defined in ltmain.sh
  7900. # decide which to use based on capabilities of $DLLTOOL
  7901. case `$DLLTOOL --help 2>&1` in
  7902. *--identify-strict*)
  7903. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  7904. ;;
  7905. *)
  7906. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  7907. ;;
  7908. esac
  7909. ;;
  7910. *)
  7911. # fallback: assume linklib IS sharedlib
  7912. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  7913. ;;
  7914. esac
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  7917. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  7918. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  7919. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  7920. if test -n "$ac_tool_prefix"; then
  7921. for ac_prog in ar
  7922. do
  7923. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7924. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7926. $as_echo_n "checking for $ac_word... " >&6; }
  7927. if ${ac_cv_prog_AR+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. if test -n "$AR"; then
  7931. ac_cv_prog_AR="$AR" # Let the user override the test.
  7932. else
  7933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7934. for as_dir in $PATH
  7935. do
  7936. IFS=$as_save_IFS
  7937. test -z "$as_dir" && as_dir=.
  7938. for ac_exec_ext in '' $ac_executable_extensions; do
  7939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7940. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  7941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7942. break 2
  7943. fi
  7944. done
  7945. done
  7946. IFS=$as_save_IFS
  7947. fi
  7948. fi
  7949. AR=$ac_cv_prog_AR
  7950. if test -n "$AR"; then
  7951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7952. $as_echo "$AR" >&6; }
  7953. else
  7954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7955. $as_echo "no" >&6; }
  7956. fi
  7957. test -n "$AR" && break
  7958. done
  7959. fi
  7960. if test -z "$AR"; then
  7961. ac_ct_AR=$AR
  7962. for ac_prog in ar
  7963. do
  7964. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7965. set dummy $ac_prog; ac_word=$2
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7967. $as_echo_n "checking for $ac_word... " >&6; }
  7968. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. if test -n "$ac_ct_AR"; then
  7972. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7973. else
  7974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7975. for as_dir in $PATH
  7976. do
  7977. IFS=$as_save_IFS
  7978. test -z "$as_dir" && as_dir=.
  7979. for ac_exec_ext in '' $ac_executable_extensions; do
  7980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7981. ac_cv_prog_ac_ct_AR="$ac_prog"
  7982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7983. break 2
  7984. fi
  7985. done
  7986. done
  7987. IFS=$as_save_IFS
  7988. fi
  7989. fi
  7990. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7991. if test -n "$ac_ct_AR"; then
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  7993. $as_echo "$ac_ct_AR" >&6; }
  7994. else
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7996. $as_echo "no" >&6; }
  7997. fi
  7998. test -n "$ac_ct_AR" && break
  7999. done
  8000. if test "x$ac_ct_AR" = x; then
  8001. AR="false"
  8002. else
  8003. case $cross_compiling:$ac_tool_warned in
  8004. yes:)
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8006. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8007. ac_tool_warned=yes ;;
  8008. esac
  8009. AR=$ac_ct_AR
  8010. fi
  8011. fi
  8012. : ${AR=ar}
  8013. : ${AR_FLAGS=cru}
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8015. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8016. if ${lt_cv_ar_at_file+:} false; then :
  8017. $as_echo_n "(cached) " >&6
  8018. else
  8019. lt_cv_ar_at_file=no
  8020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8021. /* end confdefs.h. */
  8022. int main (void)
  8023. {
  8024. ;
  8025. return 0;
  8026. }
  8027. _ACEOF
  8028. if ac_fn_c_try_compile "$LINENO"; then :
  8029. echo conftest.$ac_objext > conftest.lst
  8030. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8031. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8032. (eval $lt_ar_try) 2>&5
  8033. ac_status=$?
  8034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8035. test $ac_status = 0; }
  8036. if test "$ac_status" -eq 0; then
  8037. # Ensure the archiver fails upon bogus file names.
  8038. rm -f conftest.$ac_objext libconftest.a
  8039. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8040. (eval $lt_ar_try) 2>&5
  8041. ac_status=$?
  8042. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8043. test $ac_status = 0; }
  8044. if test "$ac_status" -ne 0; then
  8045. lt_cv_ar_at_file=@
  8046. fi
  8047. fi
  8048. rm -f conftest.* libconftest.a
  8049. fi
  8050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8051. fi
  8052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8053. $as_echo "$lt_cv_ar_at_file" >&6; }
  8054. if test "x$lt_cv_ar_at_file" = xno; then
  8055. archiver_list_spec=
  8056. else
  8057. archiver_list_spec=$lt_cv_ar_at_file
  8058. fi
  8059. if test -n "$ac_tool_prefix"; then
  8060. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8061. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8063. $as_echo_n "checking for $ac_word... " >&6; }
  8064. if ${ac_cv_prog_STRIP+:} false; then :
  8065. $as_echo_n "(cached) " >&6
  8066. else
  8067. if test -n "$STRIP"; then
  8068. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8069. else
  8070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8071. for as_dir in $PATH
  8072. do
  8073. IFS=$as_save_IFS
  8074. test -z "$as_dir" && as_dir=.
  8075. for ac_exec_ext in '' $ac_executable_extensions; do
  8076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8077. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8079. break 2
  8080. fi
  8081. done
  8082. done
  8083. IFS=$as_save_IFS
  8084. fi
  8085. fi
  8086. STRIP=$ac_cv_prog_STRIP
  8087. if test -n "$STRIP"; then
  8088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8089. $as_echo "$STRIP" >&6; }
  8090. else
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8092. $as_echo "no" >&6; }
  8093. fi
  8094. fi
  8095. if test -z "$ac_cv_prog_STRIP"; then
  8096. ac_ct_STRIP=$STRIP
  8097. # Extract the first word of "strip", so it can be a program name with args.
  8098. set dummy strip; ac_word=$2
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8100. $as_echo_n "checking for $ac_word... " >&6; }
  8101. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8102. $as_echo_n "(cached) " >&6
  8103. else
  8104. if test -n "$ac_ct_STRIP"; then
  8105. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8106. else
  8107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8108. for as_dir in $PATH
  8109. do
  8110. IFS=$as_save_IFS
  8111. test -z "$as_dir" && as_dir=.
  8112. for ac_exec_ext in '' $ac_executable_extensions; do
  8113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8114. ac_cv_prog_ac_ct_STRIP="strip"
  8115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8116. break 2
  8117. fi
  8118. done
  8119. done
  8120. IFS=$as_save_IFS
  8121. fi
  8122. fi
  8123. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8124. if test -n "$ac_ct_STRIP"; then
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8126. $as_echo "$ac_ct_STRIP" >&6; }
  8127. else
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8129. $as_echo "no" >&6; }
  8130. fi
  8131. if test "x$ac_ct_STRIP" = x; then
  8132. STRIP=":"
  8133. else
  8134. case $cross_compiling:$ac_tool_warned in
  8135. yes:)
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8137. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8138. ac_tool_warned=yes ;;
  8139. esac
  8140. STRIP=$ac_ct_STRIP
  8141. fi
  8142. else
  8143. STRIP="$ac_cv_prog_STRIP"
  8144. fi
  8145. test -z "$STRIP" && STRIP=:
  8146. if test -n "$ac_tool_prefix"; then
  8147. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8148. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8150. $as_echo_n "checking for $ac_word... " >&6; }
  8151. if ${ac_cv_prog_RANLIB+:} false; then :
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. if test -n "$RANLIB"; then
  8155. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8156. else
  8157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8158. for as_dir in $PATH
  8159. do
  8160. IFS=$as_save_IFS
  8161. test -z "$as_dir" && as_dir=.
  8162. for ac_exec_ext in '' $ac_executable_extensions; do
  8163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8164. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8166. break 2
  8167. fi
  8168. done
  8169. done
  8170. IFS=$as_save_IFS
  8171. fi
  8172. fi
  8173. RANLIB=$ac_cv_prog_RANLIB
  8174. if test -n "$RANLIB"; then
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8176. $as_echo "$RANLIB" >&6; }
  8177. else
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8179. $as_echo "no" >&6; }
  8180. fi
  8181. fi
  8182. if test -z "$ac_cv_prog_RANLIB"; then
  8183. ac_ct_RANLIB=$RANLIB
  8184. # Extract the first word of "ranlib", so it can be a program name with args.
  8185. set dummy ranlib; ac_word=$2
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8187. $as_echo_n "checking for $ac_word... " >&6; }
  8188. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8189. $as_echo_n "(cached) " >&6
  8190. else
  8191. if test -n "$ac_ct_RANLIB"; then
  8192. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8193. else
  8194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8195. for as_dir in $PATH
  8196. do
  8197. IFS=$as_save_IFS
  8198. test -z "$as_dir" && as_dir=.
  8199. for ac_exec_ext in '' $ac_executable_extensions; do
  8200. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8201. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8203. break 2
  8204. fi
  8205. done
  8206. done
  8207. IFS=$as_save_IFS
  8208. fi
  8209. fi
  8210. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8211. if test -n "$ac_ct_RANLIB"; then
  8212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8213. $as_echo "$ac_ct_RANLIB" >&6; }
  8214. else
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8216. $as_echo "no" >&6; }
  8217. fi
  8218. if test "x$ac_ct_RANLIB" = x; then
  8219. RANLIB=":"
  8220. else
  8221. case $cross_compiling:$ac_tool_warned in
  8222. yes:)
  8223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8225. ac_tool_warned=yes ;;
  8226. esac
  8227. RANLIB=$ac_ct_RANLIB
  8228. fi
  8229. else
  8230. RANLIB="$ac_cv_prog_RANLIB"
  8231. fi
  8232. test -z "$RANLIB" && RANLIB=:
  8233. # Determine commands to create old-style static archives.
  8234. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8235. old_postinstall_cmds='chmod 644 $oldlib'
  8236. old_postuninstall_cmds=
  8237. if test -n "$RANLIB"; then
  8238. case $host_os in
  8239. openbsd*)
  8240. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8241. ;;
  8242. *)
  8243. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8244. ;;
  8245. esac
  8246. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8247. fi
  8248. case $host_os in
  8249. darwin*)
  8250. lock_old_archive_extraction=yes ;;
  8251. *)
  8252. lock_old_archive_extraction=no ;;
  8253. esac
  8254. # If no C compiler was specified, use CC.
  8255. LTCC=${LTCC-"$CC"}
  8256. # If no C compiler flags were specified, use CFLAGS.
  8257. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8258. # Allow CC to be a program name with arguments.
  8259. compiler=$CC
  8260. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8262. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8263. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8264. $as_echo_n "(cached) " >&6
  8265. else
  8266. # These are sane defaults that work on at least a few old systems.
  8267. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8268. # Character class describing NM global symbol codes.
  8269. symcode='[BCDEGRST]'
  8270. # Regexp to match symbols that can be accessed directly from C.
  8271. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8272. # Define system-specific variables.
  8273. case $host_os in
  8274. aix*)
  8275. symcode='[BCDT]'
  8276. ;;
  8277. cygwin* | mingw* | pw32* | cegcc*)
  8278. symcode='[ABCDGISTW]'
  8279. ;;
  8280. hpux*)
  8281. if test "$host_cpu" = ia64; then
  8282. symcode='[ABCDEGRST]'
  8283. fi
  8284. ;;
  8285. irix* | nonstopux*)
  8286. symcode='[BCDEGRST]'
  8287. ;;
  8288. osf*)
  8289. symcode='[BCDEGQRST]'
  8290. ;;
  8291. solaris*)
  8292. symcode='[BDRT]'
  8293. ;;
  8294. sco3.2v5*)
  8295. symcode='[DT]'
  8296. ;;
  8297. sysv4.2uw2*)
  8298. symcode='[DT]'
  8299. ;;
  8300. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8301. symcode='[ABDT]'
  8302. ;;
  8303. sysv4)
  8304. symcode='[DFNSTU]'
  8305. ;;
  8306. esac
  8307. # If we're using GNU nm, then use its standard symbol codes.
  8308. case `$NM -V 2>&1` in
  8309. *GNU* | *'with BFD'*)
  8310. symcode='[ABCDGIRSTW]' ;;
  8311. esac
  8312. # Transform an extracted symbol line into a proper C declaration.
  8313. # Some systems (esp. on ia64) link data and code symbols differently,
  8314. # so use this general approach.
  8315. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8316. # Transform an extracted symbol line into symbol name and symbol address
  8317. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  8318. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  8319. # Handle CRLF in mingw tool chain
  8320. opt_cr=
  8321. case $build_os in
  8322. mingw*)
  8323. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8324. ;;
  8325. esac
  8326. # Try without a prefix underscore, then with it.
  8327. for ac_symprfx in "" "_"; do
  8328. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8329. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8330. # Write the raw and C identifiers.
  8331. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8332. # Fake it for dumpbin and say T for any non-static function
  8333. # and D for any global variable.
  8334. # Also find C++ and __fastcall symbols from MSVC++,
  8335. # which start with @ or ?.
  8336. lt_cv_sys_global_symbol_pipe="$AWK '"\
  8337. " {last_section=section; section=\$ 3};"\
  8338. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  8339. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  8340. " \$ 0!~/External *\|/{next};"\
  8341. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  8342. " {if(hide[section]) next};"\
  8343. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  8344. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  8345. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  8346. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  8347. " ' prfx=^$ac_symprfx"
  8348. else
  8349. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8350. fi
  8351. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  8352. # Check to see that the pipe works correctly.
  8353. pipe_works=no
  8354. rm -f conftest*
  8355. cat > conftest.$ac_ext <<_LT_EOF
  8356. #ifdef __cplusplus
  8357. extern "C" {
  8358. #endif
  8359. char nm_test_var;
  8360. void nm_test_func(void);
  8361. void nm_test_func(void){}
  8362. #ifdef __cplusplus
  8363. }
  8364. #endif
  8365. int main(){nm_test_var='a';nm_test_func();return(0);}
  8366. _LT_EOF
  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. # Now try to grab the symbols.
  8373. nlist=conftest.nm
  8374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  8375. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  8376. ac_status=$?
  8377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8378. test $ac_status = 0; } && test -s "$nlist"; then
  8379. # Try sorting and uniquifying the output.
  8380. if sort "$nlist" | uniq > "$nlist"T; then
  8381. mv -f "$nlist"T "$nlist"
  8382. else
  8383. rm -f "$nlist"T
  8384. fi
  8385. # Make sure that we snagged all the symbols we need.
  8386. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  8387. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  8388. cat <<_LT_EOF > conftest.$ac_ext
  8389. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  8390. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  8391. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  8392. relocations are performed -- see ld's documentation on pseudo-relocs. */
  8393. # define LT_DLSYM_CONST
  8394. #elif defined(__osf__)
  8395. /* This system does not cope well with relocations in const data. */
  8396. # define LT_DLSYM_CONST
  8397. #else
  8398. # define LT_DLSYM_CONST const
  8399. #endif
  8400. #ifdef __cplusplus
  8401. extern "C" {
  8402. #endif
  8403. _LT_EOF
  8404. # Now generate the symbol file.
  8405. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  8406. cat <<_LT_EOF >> conftest.$ac_ext
  8407. /* The mapping between symbol names and symbols. */
  8408. LT_DLSYM_CONST struct {
  8409. const char *name;
  8410. void *address;
  8411. }
  8412. lt__PROGRAM__LTX_preloaded_symbols[] =
  8413. {
  8414. { "@PROGRAM@", (void *) 0 },
  8415. _LT_EOF
  8416. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  8417. cat <<\_LT_EOF >> conftest.$ac_ext
  8418. {0, (void *) 0}
  8419. };
  8420. /* This works around a problem in FreeBSD linker */
  8421. #ifdef FREEBSD_WORKAROUND
  8422. static const void *lt_preloaded_setup() {
  8423. return lt__PROGRAM__LTX_preloaded_symbols;
  8424. }
  8425. #endif
  8426. #ifdef __cplusplus
  8427. }
  8428. #endif
  8429. _LT_EOF
  8430. # Now try linking the two files.
  8431. mv -f conftest.$ac_objext conftstm.$ac_objext
  8432. lt_globsym_save_LIBS=$LIBS
  8433. lt_globsym_save_CFLAGS=$CFLAGS
  8434. LIBS="conftstm.$ac_objext"
  8435. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8436. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8437. (eval $ac_link) 2>&5
  8438. ac_status=$?
  8439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8440. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8441. pipe_works=yes
  8442. fi
  8443. LIBS=$lt_globsym_save_LIBS
  8444. CFLAGS=$lt_globsym_save_CFLAGS
  8445. else
  8446. echo "cannot find nm_test_func in $nlist" >&5
  8447. fi
  8448. else
  8449. echo "cannot find nm_test_var in $nlist" >&5
  8450. fi
  8451. else
  8452. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8453. fi
  8454. else
  8455. echo "$progname: failed program was:" >&5
  8456. cat conftest.$ac_ext >&5
  8457. fi
  8458. rm -rf conftest* conftst*
  8459. # Do not use the global_symbol_pipe unless it works.
  8460. if test "$pipe_works" = yes; then
  8461. break
  8462. else
  8463. lt_cv_sys_global_symbol_pipe=
  8464. fi
  8465. done
  8466. fi
  8467. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8468. lt_cv_sys_global_symbol_to_cdecl=
  8469. fi
  8470. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8472. $as_echo "failed" >&6; }
  8473. else
  8474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8475. $as_echo "ok" >&6; }
  8476. fi
  8477. # Response file support.
  8478. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8479. nm_file_list_spec='@'
  8480. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  8481. nm_file_list_spec='@'
  8482. fi
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  8484. $as_echo_n "checking for sysroot... " >&6; }
  8485. # Check whether --with-sysroot was given.
  8486. if test "${with_sysroot+set}" = set; then :
  8487. withval=$with_sysroot;
  8488. else
  8489. with_sysroot=no
  8490. fi
  8491. lt_sysroot=
  8492. case ${with_sysroot} in #(
  8493. yes)
  8494. if test "$GCC" = yes; then
  8495. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  8496. fi
  8497. ;; #(
  8498. /*)
  8499. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  8500. ;; #(
  8501. no|'')
  8502. ;; #(
  8503. *)
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  8505. $as_echo "${with_sysroot}" >&6; }
  8506. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  8507. ;;
  8508. esac
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  8510. $as_echo "${lt_sysroot:-no}" >&6; }
  8511. # Check whether --enable-libtool-lock was given.
  8512. if test "${enable_libtool_lock+set}" = set; then :
  8513. enableval=$enable_libtool_lock;
  8514. fi
  8515. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8516. # Some flags need to be propagated to the compiler or linker for good
  8517. # libtool support.
  8518. case $host in
  8519. ia64-*-hpux*)
  8520. # Find out which ABI we are using.
  8521. echo 'int i;' > conftest.$ac_ext
  8522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8523. (eval $ac_compile) 2>&5
  8524. ac_status=$?
  8525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8526. test $ac_status = 0; }; then
  8527. case `/usr/bin/file conftest.$ac_objext` in
  8528. *ELF-32*)
  8529. HPUX_IA64_MODE="32"
  8530. ;;
  8531. *ELF-64*)
  8532. HPUX_IA64_MODE="64"
  8533. ;;
  8534. esac
  8535. fi
  8536. rm -rf conftest*
  8537. ;;
  8538. *-*-irix6*)
  8539. # Find out which ABI we are using.
  8540. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  8541. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8542. (eval $ac_compile) 2>&5
  8543. ac_status=$?
  8544. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8545. test $ac_status = 0; }; then
  8546. if test "$lt_cv_prog_gnu_ld" = yes; then
  8547. case `/usr/bin/file conftest.$ac_objext` in
  8548. *32-bit*)
  8549. LD="${LD-ld} -melf32bsmip"
  8550. ;;
  8551. *N32*)
  8552. LD="${LD-ld} -melf32bmipn32"
  8553. ;;
  8554. *64-bit*)
  8555. LD="${LD-ld} -melf64bmip"
  8556. ;;
  8557. esac
  8558. else
  8559. case `/usr/bin/file conftest.$ac_objext` in
  8560. *32-bit*)
  8561. LD="${LD-ld} -32"
  8562. ;;
  8563. *N32*)
  8564. LD="${LD-ld} -n32"
  8565. ;;
  8566. *64-bit*)
  8567. LD="${LD-ld} -64"
  8568. ;;
  8569. esac
  8570. fi
  8571. fi
  8572. rm -rf conftest*
  8573. ;;
  8574. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  8575. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  8576. # Find out which ABI we are using.
  8577. echo 'int i;' > conftest.$ac_ext
  8578. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8579. (eval $ac_compile) 2>&5
  8580. ac_status=$?
  8581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8582. test $ac_status = 0; }; then
  8583. case `/usr/bin/file conftest.o` in
  8584. *32-bit*)
  8585. case $host in
  8586. x86_64-*kfreebsd*-gnu)
  8587. LD="${LD-ld} -m elf_i386_fbsd"
  8588. ;;
  8589. x86_64-*linux*)
  8590. case `/usr/bin/file conftest.o` in
  8591. *x86-64*)
  8592. LD="${LD-ld} -m elf32_x86_64"
  8593. ;;
  8594. *)
  8595. LD="${LD-ld} -m elf_i386"
  8596. ;;
  8597. esac
  8598. ;;
  8599. powerpc64le-*)
  8600. LD="${LD-ld} -m elf32lppclinux"
  8601. ;;
  8602. powerpc64-*)
  8603. LD="${LD-ld} -m elf32ppclinux"
  8604. ;;
  8605. s390x-*linux*)
  8606. LD="${LD-ld} -m elf_s390"
  8607. ;;
  8608. sparc64-*linux*)
  8609. LD="${LD-ld} -m elf32_sparc"
  8610. ;;
  8611. esac
  8612. ;;
  8613. *64-bit*)
  8614. case $host in
  8615. x86_64-*kfreebsd*-gnu)
  8616. LD="${LD-ld} -m elf_x86_64_fbsd"
  8617. ;;
  8618. x86_64-*linux*)
  8619. LD="${LD-ld} -m elf_x86_64"
  8620. ;;
  8621. powerpcle-*)
  8622. LD="${LD-ld} -m elf64lppc"
  8623. ;;
  8624. powerpc-*)
  8625. LD="${LD-ld} -m elf64ppc"
  8626. ;;
  8627. s390*-*linux*|s390*-*tpf*)
  8628. LD="${LD-ld} -m elf64_s390"
  8629. ;;
  8630. sparc*-*linux*)
  8631. LD="${LD-ld} -m elf64_sparc"
  8632. ;;
  8633. esac
  8634. ;;
  8635. esac
  8636. fi
  8637. rm -rf conftest*
  8638. ;;
  8639. *-*-sco3.2v5*)
  8640. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8641. SAVE_CFLAGS="$CFLAGS"
  8642. CFLAGS="$CFLAGS -belf"
  8643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8644. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8645. if ${lt_cv_cc_needs_belf+:} false; then :
  8646. $as_echo_n "(cached) " >&6
  8647. else
  8648. ac_ext=c
  8649. ac_cpp='$CPP $CPPFLAGS'
  8650. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8651. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8652. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8654. /* end confdefs.h. */
  8655. int main (void)
  8656. {
  8657. ;
  8658. return 0;
  8659. }
  8660. _ACEOF
  8661. if ac_fn_c_try_link "$LINENO"; then :
  8662. lt_cv_cc_needs_belf=yes
  8663. else
  8664. lt_cv_cc_needs_belf=no
  8665. fi
  8666. rm -f core conftest.err conftest.$ac_objext \
  8667. conftest$ac_exeext conftest.$ac_ext
  8668. ac_ext=c
  8669. ac_cpp='$CPP $CPPFLAGS'
  8670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8673. fi
  8674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8675. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8676. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8677. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8678. CFLAGS="$SAVE_CFLAGS"
  8679. fi
  8680. ;;
  8681. *-*solaris*)
  8682. # Find out which ABI we are using.
  8683. echo 'int i;' > conftest.$ac_ext
  8684. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8685. (eval $ac_compile) 2>&5
  8686. ac_status=$?
  8687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8688. test $ac_status = 0; }; then
  8689. case `/usr/bin/file conftest.o` in
  8690. *64-bit*)
  8691. case $lt_cv_prog_gnu_ld in
  8692. yes*)
  8693. case $host in
  8694. i?86-*-solaris*)
  8695. LD="${LD-ld} -m elf_x86_64"
  8696. ;;
  8697. sparc*-*-solaris*)
  8698. LD="${LD-ld} -m elf64_sparc"
  8699. ;;
  8700. esac
  8701. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  8702. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  8703. LD="${LD-ld}_sol2"
  8704. fi
  8705. ;;
  8706. *)
  8707. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  8708. LD="${LD-ld} -64"
  8709. fi
  8710. ;;
  8711. esac
  8712. ;;
  8713. esac
  8714. fi
  8715. rm -rf conftest*
  8716. ;;
  8717. esac
  8718. need_locks="$enable_libtool_lock"
  8719. if test -n "$ac_tool_prefix"; then
  8720. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  8721. set dummy ${ac_tool_prefix}mt; ac_word=$2
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8723. $as_echo_n "checking for $ac_word... " >&6; }
  8724. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  8725. $as_echo_n "(cached) " >&6
  8726. else
  8727. if test -n "$MANIFEST_TOOL"; then
  8728. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  8729. else
  8730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8731. for as_dir in $PATH
  8732. do
  8733. IFS=$as_save_IFS
  8734. test -z "$as_dir" && as_dir=.
  8735. for ac_exec_ext in '' $ac_executable_extensions; do
  8736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8737. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  8738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8739. break 2
  8740. fi
  8741. done
  8742. done
  8743. IFS=$as_save_IFS
  8744. fi
  8745. fi
  8746. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  8747. if test -n "$MANIFEST_TOOL"; then
  8748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  8749. $as_echo "$MANIFEST_TOOL" >&6; }
  8750. else
  8751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8752. $as_echo "no" >&6; }
  8753. fi
  8754. fi
  8755. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  8756. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  8757. # Extract the first word of "mt", so it can be a program name with args.
  8758. set dummy mt; ac_word=$2
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8760. $as_echo_n "checking for $ac_word... " >&6; }
  8761. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  8762. $as_echo_n "(cached) " >&6
  8763. else
  8764. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8765. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  8766. else
  8767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8768. for as_dir in $PATH
  8769. do
  8770. IFS=$as_save_IFS
  8771. test -z "$as_dir" && as_dir=.
  8772. for ac_exec_ext in '' $ac_executable_extensions; do
  8773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8774. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  8775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8776. break 2
  8777. fi
  8778. done
  8779. done
  8780. IFS=$as_save_IFS
  8781. fi
  8782. fi
  8783. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  8784. if test -n "$ac_ct_MANIFEST_TOOL"; then
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  8786. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  8787. else
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8789. $as_echo "no" >&6; }
  8790. fi
  8791. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  8792. MANIFEST_TOOL=":"
  8793. else
  8794. case $cross_compiling:$ac_tool_warned in
  8795. yes:)
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8798. ac_tool_warned=yes ;;
  8799. esac
  8800. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  8801. fi
  8802. else
  8803. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  8804. fi
  8805. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  8806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  8807. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  8808. if ${lt_cv_path_mainfest_tool+:} false; then :
  8809. $as_echo_n "(cached) " >&6
  8810. else
  8811. lt_cv_path_mainfest_tool=no
  8812. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  8813. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  8814. cat conftest.err >&5
  8815. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  8816. lt_cv_path_mainfest_tool=yes
  8817. fi
  8818. rm -f conftest*
  8819. fi
  8820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  8821. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  8822. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  8823. MANIFEST_TOOL=:
  8824. fi
  8825. case $host_os in
  8826. rhapsody* | darwin*)
  8827. if test -n "$ac_tool_prefix"; then
  8828. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  8829. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8831. $as_echo_n "checking for $ac_word... " >&6; }
  8832. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  8833. $as_echo_n "(cached) " >&6
  8834. else
  8835. if test -n "$DSYMUTIL"; then
  8836. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  8837. else
  8838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8839. for as_dir in $PATH
  8840. do
  8841. IFS=$as_save_IFS
  8842. test -z "$as_dir" && as_dir=.
  8843. for ac_exec_ext in '' $ac_executable_extensions; do
  8844. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8845. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  8846. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8847. break 2
  8848. fi
  8849. done
  8850. done
  8851. IFS=$as_save_IFS
  8852. fi
  8853. fi
  8854. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  8855. if test -n "$DSYMUTIL"; then
  8856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  8857. $as_echo "$DSYMUTIL" >&6; }
  8858. else
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8860. $as_echo "no" >&6; }
  8861. fi
  8862. fi
  8863. if test -z "$ac_cv_prog_DSYMUTIL"; then
  8864. ac_ct_DSYMUTIL=$DSYMUTIL
  8865. # Extract the first word of "dsymutil", so it can be a program name with args.
  8866. set dummy dsymutil; ac_word=$2
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8868. $as_echo_n "checking for $ac_word... " >&6; }
  8869. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  8870. $as_echo_n "(cached) " >&6
  8871. else
  8872. if test -n "$ac_ct_DSYMUTIL"; then
  8873. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  8874. else
  8875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8876. for as_dir in $PATH
  8877. do
  8878. IFS=$as_save_IFS
  8879. test -z "$as_dir" && as_dir=.
  8880. for ac_exec_ext in '' $ac_executable_extensions; do
  8881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8882. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  8883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8884. break 2
  8885. fi
  8886. done
  8887. done
  8888. IFS=$as_save_IFS
  8889. fi
  8890. fi
  8891. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  8892. if test -n "$ac_ct_DSYMUTIL"; then
  8893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  8894. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  8895. else
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8897. $as_echo "no" >&6; }
  8898. fi
  8899. if test "x$ac_ct_DSYMUTIL" = x; then
  8900. DSYMUTIL=":"
  8901. else
  8902. case $cross_compiling:$ac_tool_warned in
  8903. yes:)
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8906. ac_tool_warned=yes ;;
  8907. esac
  8908. DSYMUTIL=$ac_ct_DSYMUTIL
  8909. fi
  8910. else
  8911. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  8912. fi
  8913. if test -n "$ac_tool_prefix"; then
  8914. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  8915. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  8916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8917. $as_echo_n "checking for $ac_word... " >&6; }
  8918. if ${ac_cv_prog_NMEDIT+:} false; then :
  8919. $as_echo_n "(cached) " >&6
  8920. else
  8921. if test -n "$NMEDIT"; then
  8922. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  8923. else
  8924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8925. for as_dir in $PATH
  8926. do
  8927. IFS=$as_save_IFS
  8928. test -z "$as_dir" && as_dir=.
  8929. for ac_exec_ext in '' $ac_executable_extensions; do
  8930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8931. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  8932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8933. break 2
  8934. fi
  8935. done
  8936. done
  8937. IFS=$as_save_IFS
  8938. fi
  8939. fi
  8940. NMEDIT=$ac_cv_prog_NMEDIT
  8941. if test -n "$NMEDIT"; then
  8942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  8943. $as_echo "$NMEDIT" >&6; }
  8944. else
  8945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8946. $as_echo "no" >&6; }
  8947. fi
  8948. fi
  8949. if test -z "$ac_cv_prog_NMEDIT"; then
  8950. ac_ct_NMEDIT=$NMEDIT
  8951. # Extract the first word of "nmedit", so it can be a program name with args.
  8952. set dummy nmedit; ac_word=$2
  8953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8954. $as_echo_n "checking for $ac_word... " >&6; }
  8955. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  8956. $as_echo_n "(cached) " >&6
  8957. else
  8958. if test -n "$ac_ct_NMEDIT"; then
  8959. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  8960. else
  8961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8962. for as_dir in $PATH
  8963. do
  8964. IFS=$as_save_IFS
  8965. test -z "$as_dir" && as_dir=.
  8966. for ac_exec_ext in '' $ac_executable_extensions; do
  8967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8968. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  8969. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8970. break 2
  8971. fi
  8972. done
  8973. done
  8974. IFS=$as_save_IFS
  8975. fi
  8976. fi
  8977. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  8978. if test -n "$ac_ct_NMEDIT"; then
  8979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  8980. $as_echo "$ac_ct_NMEDIT" >&6; }
  8981. else
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8983. $as_echo "no" >&6; }
  8984. fi
  8985. if test "x$ac_ct_NMEDIT" = x; then
  8986. NMEDIT=":"
  8987. else
  8988. case $cross_compiling:$ac_tool_warned in
  8989. yes:)
  8990. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8991. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8992. ac_tool_warned=yes ;;
  8993. esac
  8994. NMEDIT=$ac_ct_NMEDIT
  8995. fi
  8996. else
  8997. NMEDIT="$ac_cv_prog_NMEDIT"
  8998. fi
  8999. if test -n "$ac_tool_prefix"; then
  9000. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9001. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9003. $as_echo_n "checking for $ac_word... " >&6; }
  9004. if ${ac_cv_prog_LIPO+:} false; then :
  9005. $as_echo_n "(cached) " >&6
  9006. else
  9007. if test -n "$LIPO"; then
  9008. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9009. else
  9010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9011. for as_dir in $PATH
  9012. do
  9013. IFS=$as_save_IFS
  9014. test -z "$as_dir" && as_dir=.
  9015. for ac_exec_ext in '' $ac_executable_extensions; do
  9016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9017. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9019. break 2
  9020. fi
  9021. done
  9022. done
  9023. IFS=$as_save_IFS
  9024. fi
  9025. fi
  9026. LIPO=$ac_cv_prog_LIPO
  9027. if test -n "$LIPO"; then
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9029. $as_echo "$LIPO" >&6; }
  9030. else
  9031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9032. $as_echo "no" >&6; }
  9033. fi
  9034. fi
  9035. if test -z "$ac_cv_prog_LIPO"; then
  9036. ac_ct_LIPO=$LIPO
  9037. # Extract the first word of "lipo", so it can be a program name with args.
  9038. set dummy lipo; ac_word=$2
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9040. $as_echo_n "checking for $ac_word... " >&6; }
  9041. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9042. $as_echo_n "(cached) " >&6
  9043. else
  9044. if test -n "$ac_ct_LIPO"; then
  9045. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9046. else
  9047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9048. for as_dir in $PATH
  9049. do
  9050. IFS=$as_save_IFS
  9051. test -z "$as_dir" && as_dir=.
  9052. for ac_exec_ext in '' $ac_executable_extensions; do
  9053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9054. ac_cv_prog_ac_ct_LIPO="lipo"
  9055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9056. break 2
  9057. fi
  9058. done
  9059. done
  9060. IFS=$as_save_IFS
  9061. fi
  9062. fi
  9063. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  9064. if test -n "$ac_ct_LIPO"; then
  9065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  9066. $as_echo "$ac_ct_LIPO" >&6; }
  9067. else
  9068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9069. $as_echo "no" >&6; }
  9070. fi
  9071. if test "x$ac_ct_LIPO" = x; then
  9072. LIPO=":"
  9073. else
  9074. case $cross_compiling:$ac_tool_warned in
  9075. yes:)
  9076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9077. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9078. ac_tool_warned=yes ;;
  9079. esac
  9080. LIPO=$ac_ct_LIPO
  9081. fi
  9082. else
  9083. LIPO="$ac_cv_prog_LIPO"
  9084. fi
  9085. if test -n "$ac_tool_prefix"; then
  9086. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  9087. set dummy ${ac_tool_prefix}otool; ac_word=$2
  9088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9089. $as_echo_n "checking for $ac_word... " >&6; }
  9090. if ${ac_cv_prog_OTOOL+:} false; then :
  9091. $as_echo_n "(cached) " >&6
  9092. else
  9093. if test -n "$OTOOL"; then
  9094. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  9095. else
  9096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9097. for as_dir in $PATH
  9098. do
  9099. IFS=$as_save_IFS
  9100. test -z "$as_dir" && as_dir=.
  9101. for ac_exec_ext in '' $ac_executable_extensions; do
  9102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9103. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  9104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9105. break 2
  9106. fi
  9107. done
  9108. done
  9109. IFS=$as_save_IFS
  9110. fi
  9111. fi
  9112. OTOOL=$ac_cv_prog_OTOOL
  9113. if test -n "$OTOOL"; then
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  9115. $as_echo "$OTOOL" >&6; }
  9116. else
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9118. $as_echo "no" >&6; }
  9119. fi
  9120. fi
  9121. if test -z "$ac_cv_prog_OTOOL"; then
  9122. ac_ct_OTOOL=$OTOOL
  9123. # Extract the first word of "otool", so it can be a program name with args.
  9124. set dummy otool; ac_word=$2
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9126. $as_echo_n "checking for $ac_word... " >&6; }
  9127. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  9128. $as_echo_n "(cached) " >&6
  9129. else
  9130. if test -n "$ac_ct_OTOOL"; then
  9131. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  9132. else
  9133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9134. for as_dir in $PATH
  9135. do
  9136. IFS=$as_save_IFS
  9137. test -z "$as_dir" && as_dir=.
  9138. for ac_exec_ext in '' $ac_executable_extensions; do
  9139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9140. ac_cv_prog_ac_ct_OTOOL="otool"
  9141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9142. break 2
  9143. fi
  9144. done
  9145. done
  9146. IFS=$as_save_IFS
  9147. fi
  9148. fi
  9149. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  9150. if test -n "$ac_ct_OTOOL"; then
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  9152. $as_echo "$ac_ct_OTOOL" >&6; }
  9153. else
  9154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9155. $as_echo "no" >&6; }
  9156. fi
  9157. if test "x$ac_ct_OTOOL" = x; then
  9158. OTOOL=":"
  9159. else
  9160. case $cross_compiling:$ac_tool_warned in
  9161. yes:)
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9163. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9164. ac_tool_warned=yes ;;
  9165. esac
  9166. OTOOL=$ac_ct_OTOOL
  9167. fi
  9168. else
  9169. OTOOL="$ac_cv_prog_OTOOL"
  9170. fi
  9171. if test -n "$ac_tool_prefix"; then
  9172. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  9173. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9175. $as_echo_n "checking for $ac_word... " >&6; }
  9176. if ${ac_cv_prog_OTOOL64+:} false; then :
  9177. $as_echo_n "(cached) " >&6
  9178. else
  9179. if test -n "$OTOOL64"; then
  9180. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  9181. else
  9182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9183. for as_dir in $PATH
  9184. do
  9185. IFS=$as_save_IFS
  9186. test -z "$as_dir" && as_dir=.
  9187. for ac_exec_ext in '' $ac_executable_extensions; do
  9188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9189. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  9190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9191. break 2
  9192. fi
  9193. done
  9194. done
  9195. IFS=$as_save_IFS
  9196. fi
  9197. fi
  9198. OTOOL64=$ac_cv_prog_OTOOL64
  9199. if test -n "$OTOOL64"; then
  9200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  9201. $as_echo "$OTOOL64" >&6; }
  9202. else
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9204. $as_echo "no" >&6; }
  9205. fi
  9206. fi
  9207. if test -z "$ac_cv_prog_OTOOL64"; then
  9208. ac_ct_OTOOL64=$OTOOL64
  9209. # Extract the first word of "otool64", so it can be a program name with args.
  9210. set dummy otool64; ac_word=$2
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9212. $as_echo_n "checking for $ac_word... " >&6; }
  9213. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  9214. $as_echo_n "(cached) " >&6
  9215. else
  9216. if test -n "$ac_ct_OTOOL64"; then
  9217. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  9218. else
  9219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9220. for as_dir in $PATH
  9221. do
  9222. IFS=$as_save_IFS
  9223. test -z "$as_dir" && as_dir=.
  9224. for ac_exec_ext in '' $ac_executable_extensions; do
  9225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9226. ac_cv_prog_ac_ct_OTOOL64="otool64"
  9227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9228. break 2
  9229. fi
  9230. done
  9231. done
  9232. IFS=$as_save_IFS
  9233. fi
  9234. fi
  9235. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  9236. if test -n "$ac_ct_OTOOL64"; then
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  9238. $as_echo "$ac_ct_OTOOL64" >&6; }
  9239. else
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9241. $as_echo "no" >&6; }
  9242. fi
  9243. if test "x$ac_ct_OTOOL64" = x; then
  9244. OTOOL64=":"
  9245. else
  9246. case $cross_compiling:$ac_tool_warned in
  9247. yes:)
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9249. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9250. ac_tool_warned=yes ;;
  9251. esac
  9252. OTOOL64=$ac_ct_OTOOL64
  9253. fi
  9254. else
  9255. OTOOL64="$ac_cv_prog_OTOOL64"
  9256. fi
  9257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  9258. $as_echo_n "checking for -single_module linker flag... " >&6; }
  9259. if ${lt_cv_apple_cc_single_mod+:} false; then :
  9260. $as_echo_n "(cached) " >&6
  9261. else
  9262. lt_cv_apple_cc_single_mod=no
  9263. if test -z "${LT_MULTI_MODULE}"; then
  9264. # By default we will add the -single_module flag. You can override
  9265. # by either setting the environment variable LT_MULTI_MODULE
  9266. # non-empty at configure time, or by adding -multi_module to the
  9267. # link flags.
  9268. rm -rf libconftest.dylib*
  9269. echo "int foo(void){return 1;}" > conftest.c
  9270. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9271. -dynamiclib -Wl,-single_module conftest.c" >&5
  9272. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9273. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  9274. _lt_result=$?
  9275. # If there is a non-empty error log, and "single_module"
  9276. # appears in it, assume the flag caused a linker warning
  9277. if test -s conftest.err && $GREP single_module conftest.err; then
  9278. cat conftest.err >&5
  9279. # Otherwise, if the output was created with a 0 exit code from
  9280. # the compiler, it worked.
  9281. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  9282. lt_cv_apple_cc_single_mod=yes
  9283. else
  9284. cat conftest.err >&5
  9285. fi
  9286. rm -rf libconftest.dylib*
  9287. rm -f conftest.*
  9288. fi
  9289. fi
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  9291. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  9293. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  9294. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. lt_cv_ld_exported_symbols_list=no
  9298. save_LDFLAGS=$LDFLAGS
  9299. echo "_main" > conftest.sym
  9300. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  9301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9302. /* end confdefs.h. */
  9303. int main (void)
  9304. {
  9305. ;
  9306. return 0;
  9307. }
  9308. _ACEOF
  9309. if ac_fn_c_try_link "$LINENO"; then :
  9310. lt_cv_ld_exported_symbols_list=yes
  9311. else
  9312. lt_cv_ld_exported_symbols_list=no
  9313. fi
  9314. rm -f core conftest.err conftest.$ac_objext \
  9315. conftest$ac_exeext conftest.$ac_ext
  9316. LDFLAGS="$save_LDFLAGS"
  9317. fi
  9318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  9319. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  9321. $as_echo_n "checking for -force_load linker flag... " >&6; }
  9322. if ${lt_cv_ld_force_load+:} false; then :
  9323. $as_echo_n "(cached) " >&6
  9324. else
  9325. lt_cv_ld_force_load=no
  9326. cat > conftest.c << _LT_EOF
  9327. int forced_loaded() { return 2;}
  9328. _LT_EOF
  9329. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  9330. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  9331. echo "$AR cru libconftest.a conftest.o" >&5
  9332. $AR cru libconftest.a conftest.o 2>&5
  9333. echo "$RANLIB libconftest.a" >&5
  9334. $RANLIB libconftest.a 2>&5
  9335. cat > conftest.c << _LT_EOF
  9336. int main() { return 0;}
  9337. _LT_EOF
  9338. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  9339. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  9340. _lt_result=$?
  9341. if test -s conftest.err && $GREP force_load conftest.err; then
  9342. cat conftest.err >&5
  9343. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  9344. lt_cv_ld_force_load=yes
  9345. else
  9346. cat conftest.err >&5
  9347. fi
  9348. rm -f conftest.err libconftest.a conftest conftest.c
  9349. rm -rf conftest.dSYM
  9350. fi
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  9352. $as_echo "$lt_cv_ld_force_load" >&6; }
  9353. case $host_os in
  9354. rhapsody* | darwin1.[012])
  9355. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  9356. darwin1.*)
  9357. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9358. darwin*) # darwin 5.x on
  9359. # if running on 10.5 or later, the deployment target defaults
  9360. # to the OS version, if on x86, and 10.4, the deployment
  9361. # target defaults to 10.4. Don't you love it?
  9362. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  9363. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  9364. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9365. 10.[012]*)
  9366. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  9367. 10.*)
  9368. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  9369. esac
  9370. ;;
  9371. esac
  9372. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  9373. _lt_dar_single_mod='$single_module'
  9374. fi
  9375. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  9376. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  9377. else
  9378. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9379. fi
  9380. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  9381. _lt_dsymutil='~$DSYMUTIL $lib || :'
  9382. else
  9383. _lt_dsymutil=
  9384. fi
  9385. ;;
  9386. esac
  9387. for ac_header in dlfcn.h
  9388. do :
  9389. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9390. "
  9391. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  9392. cat >>confdefs.h <<_ACEOF
  9393. #define HAVE_DLFCN_H 1
  9394. _ACEOF
  9395. fi
  9396. done
  9397. # ------------------------------------ #
  9398. # Determine libtool default behavior #
  9399. # ------------------------------------ #
  9400. #
  9401. # Default behavior is to enable shared and static libraries on systems
  9402. # where libtool knows how to build both library versions, and does not
  9403. # require separate configuration and build runs for each flavor.
  9404. #
  9405. xc_lt_want_enable_shared='yes'
  9406. xc_lt_want_enable_static='yes'
  9407. #
  9408. # User may have disabled shared or static libraries.
  9409. #
  9410. case "x$enable_shared" in # (
  9411. xno)
  9412. xc_lt_want_enable_shared='no'
  9413. ;;
  9414. esac
  9415. case "x$enable_static" in # (
  9416. xno)
  9417. xc_lt_want_enable_static='no'
  9418. ;;
  9419. esac
  9420. if test "x$xc_lt_want_enable_shared" = 'xno' &&
  9421. test "x$xc_lt_want_enable_static" = 'xno'; then
  9422. as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
  9423. fi
  9424. #
  9425. # Default behavior on systems that require independent configuration
  9426. # and build runs for shared and static is to enable shared libraries
  9427. # and disable static ones. On these systems option '--disable-shared'
  9428. # must be used in order to build a proper static library.
  9429. #
  9430. if test "x$xc_lt_want_enable_shared" = 'xyes' &&
  9431. test "x$xc_lt_want_enable_static" = 'xyes'; then
  9432. case $host_os in # (
  9433. mingw* | pw32* | cegcc* | os2* | aix*)
  9434. xc_lt_want_enable_static='no'
  9435. ;;
  9436. esac
  9437. fi
  9438. #
  9439. # Make libtool aware of current shared and static library preferences
  9440. # taking in account that, depending on host characteristics, libtool
  9441. # may modify these option preferences later in this configure script.
  9442. #
  9443. enable_shared=$xc_lt_want_enable_shared
  9444. enable_static=$xc_lt_want_enable_static
  9445. #
  9446. # Default behavior is to build PIC objects for shared libraries and
  9447. # non-PIC objects for static libraries.
  9448. #
  9449. xc_lt_want_with_pic='default'
  9450. #
  9451. # User may have specified PIC preference.
  9452. #
  9453. case "x$with_pic" in # ((
  9454. xno)
  9455. xc_lt_want_with_pic='no'
  9456. ;;
  9457. xyes)
  9458. xc_lt_want_with_pic='yes'
  9459. ;;
  9460. esac
  9461. #
  9462. # Default behavior on some systems where building a shared library out
  9463. # of non-PIC compiled objects will fail with following linker error
  9464. # "relocation R_X86_64_32 can not be used when making a shared object"
  9465. # is to build PIC objects even for static libraries. This behavior may
  9466. # be overriden using 'configure --disable-shared --without-pic'.
  9467. #
  9468. if test "x$xc_lt_want_with_pic" = 'xdefault'; then
  9469. case $host_cpu in # (
  9470. x86_64 | amd64 | ia64)
  9471. case $host_os in # (
  9472. linux* | freebsd*)
  9473. xc_lt_want_with_pic='yes'
  9474. ;;
  9475. esac
  9476. ;;
  9477. esac
  9478. fi
  9479. #
  9480. # Make libtool aware of current PIC preference taking in account that,
  9481. # depending on host characteristics, libtool may modify PIC default
  9482. # behavior to fit host system idiosyncrasies later in this script.
  9483. #
  9484. with_pic=$xc_lt_want_with_pic
  9485. ## ----------------------- ##
  9486. ## Start of libtool code ##
  9487. ## ----------------------- ##
  9488. # Set options
  9489. enable_win32_dll=yes
  9490. case $host in
  9491. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  9492. if test -n "$ac_tool_prefix"; then
  9493. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  9494. set dummy ${ac_tool_prefix}as; ac_word=$2
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9496. $as_echo_n "checking for $ac_word... " >&6; }
  9497. if ${ac_cv_prog_AS+:} false; then :
  9498. $as_echo_n "(cached) " >&6
  9499. else
  9500. if test -n "$AS"; then
  9501. ac_cv_prog_AS="$AS" # Let the user override the test.
  9502. else
  9503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9504. for as_dir in $PATH
  9505. do
  9506. IFS=$as_save_IFS
  9507. test -z "$as_dir" && as_dir=.
  9508. for ac_exec_ext in '' $ac_executable_extensions; do
  9509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9510. ac_cv_prog_AS="${ac_tool_prefix}as"
  9511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9512. break 2
  9513. fi
  9514. done
  9515. done
  9516. IFS=$as_save_IFS
  9517. fi
  9518. fi
  9519. AS=$ac_cv_prog_AS
  9520. if test -n "$AS"; then
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9522. $as_echo "$AS" >&6; }
  9523. else
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9525. $as_echo "no" >&6; }
  9526. fi
  9527. fi
  9528. if test -z "$ac_cv_prog_AS"; then
  9529. ac_ct_AS=$AS
  9530. # Extract the first word of "as", so it can be a program name with args.
  9531. set dummy as; ac_word=$2
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9533. $as_echo_n "checking for $ac_word... " >&6; }
  9534. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  9535. $as_echo_n "(cached) " >&6
  9536. else
  9537. if test -n "$ac_ct_AS"; then
  9538. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  9539. else
  9540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9541. for as_dir in $PATH
  9542. do
  9543. IFS=$as_save_IFS
  9544. test -z "$as_dir" && as_dir=.
  9545. for ac_exec_ext in '' $ac_executable_extensions; do
  9546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9547. ac_cv_prog_ac_ct_AS="as"
  9548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9549. break 2
  9550. fi
  9551. done
  9552. done
  9553. IFS=$as_save_IFS
  9554. fi
  9555. fi
  9556. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  9557. if test -n "$ac_ct_AS"; then
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  9559. $as_echo "$ac_ct_AS" >&6; }
  9560. else
  9561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9562. $as_echo "no" >&6; }
  9563. fi
  9564. if test "x$ac_ct_AS" = x; then
  9565. AS="false"
  9566. else
  9567. case $cross_compiling:$ac_tool_warned in
  9568. yes:)
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9571. ac_tool_warned=yes ;;
  9572. esac
  9573. AS=$ac_ct_AS
  9574. fi
  9575. else
  9576. AS="$ac_cv_prog_AS"
  9577. fi
  9578. if test -n "$ac_tool_prefix"; then
  9579. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9580. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9582. $as_echo_n "checking for $ac_word... " >&6; }
  9583. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9584. $as_echo_n "(cached) " >&6
  9585. else
  9586. if test -n "$DLLTOOL"; then
  9587. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9588. else
  9589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9590. for as_dir in $PATH
  9591. do
  9592. IFS=$as_save_IFS
  9593. test -z "$as_dir" && as_dir=.
  9594. for ac_exec_ext in '' $ac_executable_extensions; do
  9595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9596. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9598. break 2
  9599. fi
  9600. done
  9601. done
  9602. IFS=$as_save_IFS
  9603. fi
  9604. fi
  9605. DLLTOOL=$ac_cv_prog_DLLTOOL
  9606. if test -n "$DLLTOOL"; then
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9608. $as_echo "$DLLTOOL" >&6; }
  9609. else
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9611. $as_echo "no" >&6; }
  9612. fi
  9613. fi
  9614. if test -z "$ac_cv_prog_DLLTOOL"; then
  9615. ac_ct_DLLTOOL=$DLLTOOL
  9616. # Extract the first word of "dlltool", so it can be a program name with args.
  9617. set dummy dlltool; ac_word=$2
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9619. $as_echo_n "checking for $ac_word... " >&6; }
  9620. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9621. $as_echo_n "(cached) " >&6
  9622. else
  9623. if test -n "$ac_ct_DLLTOOL"; then
  9624. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9625. else
  9626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9627. for as_dir in $PATH
  9628. do
  9629. IFS=$as_save_IFS
  9630. test -z "$as_dir" && as_dir=.
  9631. for ac_exec_ext in '' $ac_executable_extensions; do
  9632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9633. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9635. break 2
  9636. fi
  9637. done
  9638. done
  9639. IFS=$as_save_IFS
  9640. fi
  9641. fi
  9642. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9643. if test -n "$ac_ct_DLLTOOL"; then
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9645. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9646. else
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9648. $as_echo "no" >&6; }
  9649. fi
  9650. if test "x$ac_ct_DLLTOOL" = x; then
  9651. DLLTOOL="false"
  9652. else
  9653. case $cross_compiling:$ac_tool_warned in
  9654. yes:)
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9657. ac_tool_warned=yes ;;
  9658. esac
  9659. DLLTOOL=$ac_ct_DLLTOOL
  9660. fi
  9661. else
  9662. DLLTOOL="$ac_cv_prog_DLLTOOL"
  9663. fi
  9664. if test -n "$ac_tool_prefix"; then
  9665. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9666. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9668. $as_echo_n "checking for $ac_word... " >&6; }
  9669. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9670. $as_echo_n "(cached) " >&6
  9671. else
  9672. if test -n "$OBJDUMP"; then
  9673. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9674. else
  9675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9676. for as_dir in $PATH
  9677. do
  9678. IFS=$as_save_IFS
  9679. test -z "$as_dir" && as_dir=.
  9680. for ac_exec_ext in '' $ac_executable_extensions; do
  9681. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9682. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9684. break 2
  9685. fi
  9686. done
  9687. done
  9688. IFS=$as_save_IFS
  9689. fi
  9690. fi
  9691. OBJDUMP=$ac_cv_prog_OBJDUMP
  9692. if test -n "$OBJDUMP"; then
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9694. $as_echo "$OBJDUMP" >&6; }
  9695. else
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9697. $as_echo "no" >&6; }
  9698. fi
  9699. fi
  9700. if test -z "$ac_cv_prog_OBJDUMP"; then
  9701. ac_ct_OBJDUMP=$OBJDUMP
  9702. # Extract the first word of "objdump", so it can be a program name with args.
  9703. set dummy objdump; ac_word=$2
  9704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9705. $as_echo_n "checking for $ac_word... " >&6; }
  9706. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9707. $as_echo_n "(cached) " >&6
  9708. else
  9709. if test -n "$ac_ct_OBJDUMP"; then
  9710. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9711. else
  9712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9713. for as_dir in $PATH
  9714. do
  9715. IFS=$as_save_IFS
  9716. test -z "$as_dir" && as_dir=.
  9717. for ac_exec_ext in '' $ac_executable_extensions; do
  9718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9719. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9721. break 2
  9722. fi
  9723. done
  9724. done
  9725. IFS=$as_save_IFS
  9726. fi
  9727. fi
  9728. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9729. if test -n "$ac_ct_OBJDUMP"; then
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9731. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9732. else
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9734. $as_echo "no" >&6; }
  9735. fi
  9736. if test "x$ac_ct_OBJDUMP" = x; then
  9737. OBJDUMP="false"
  9738. else
  9739. case $cross_compiling:$ac_tool_warned in
  9740. yes:)
  9741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9742. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9743. ac_tool_warned=yes ;;
  9744. esac
  9745. OBJDUMP=$ac_ct_OBJDUMP
  9746. fi
  9747. else
  9748. OBJDUMP="$ac_cv_prog_OBJDUMP"
  9749. fi
  9750. ;;
  9751. esac
  9752. test -z "$AS" && AS=as
  9753. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9754. test -z "$OBJDUMP" && OBJDUMP=objdump
  9755. enable_dlopen=no
  9756. # Check whether --enable-shared was given.
  9757. if test "${enable_shared+set}" = set; then :
  9758. enableval=$enable_shared; p=${PACKAGE-default}
  9759. case $enableval in
  9760. yes) enable_shared=yes ;;
  9761. no) enable_shared=no ;;
  9762. *)
  9763. enable_shared=no
  9764. # Look at the argument we got. We use all the common list separators.
  9765. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9766. for pkg in $enableval; do
  9767. IFS="$lt_save_ifs"
  9768. if test "X$pkg" = "X$p"; then
  9769. enable_shared=yes
  9770. fi
  9771. done
  9772. IFS="$lt_save_ifs"
  9773. ;;
  9774. esac
  9775. else
  9776. enable_shared=yes
  9777. fi
  9778. # Check whether --enable-static was given.
  9779. if test "${enable_static+set}" = set; then :
  9780. enableval=$enable_static; p=${PACKAGE-default}
  9781. case $enableval in
  9782. yes) enable_static=yes ;;
  9783. no) enable_static=no ;;
  9784. *)
  9785. enable_static=no
  9786. # Look at the argument we got. We use all the common list separators.
  9787. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9788. for pkg in $enableval; do
  9789. IFS="$lt_save_ifs"
  9790. if test "X$pkg" = "X$p"; then
  9791. enable_static=yes
  9792. fi
  9793. done
  9794. IFS="$lt_save_ifs"
  9795. ;;
  9796. esac
  9797. else
  9798. enable_static=yes
  9799. fi
  9800. # Check whether --with-pic was given.
  9801. if test "${with_pic+set}" = set; then :
  9802. withval=$with_pic; lt_p=${PACKAGE-default}
  9803. case $withval in
  9804. yes|no) pic_mode=$withval ;;
  9805. *)
  9806. pic_mode=default
  9807. # Look at the argument we got. We use all the common list separators.
  9808. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9809. for lt_pkg in $withval; do
  9810. IFS="$lt_save_ifs"
  9811. if test "X$lt_pkg" = "X$lt_p"; then
  9812. pic_mode=yes
  9813. fi
  9814. done
  9815. IFS="$lt_save_ifs"
  9816. ;;
  9817. esac
  9818. else
  9819. pic_mode=default
  9820. fi
  9821. test -z "$pic_mode" && pic_mode=default
  9822. # Check whether --enable-fast-install was given.
  9823. if test "${enable_fast_install+set}" = set; then :
  9824. enableval=$enable_fast_install; p=${PACKAGE-default}
  9825. case $enableval in
  9826. yes) enable_fast_install=yes ;;
  9827. no) enable_fast_install=no ;;
  9828. *)
  9829. enable_fast_install=no
  9830. # Look at the argument we got. We use all the common list separators.
  9831. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9832. for pkg in $enableval; do
  9833. IFS="$lt_save_ifs"
  9834. if test "X$pkg" = "X$p"; then
  9835. enable_fast_install=yes
  9836. fi
  9837. done
  9838. IFS="$lt_save_ifs"
  9839. ;;
  9840. esac
  9841. else
  9842. enable_fast_install=yes
  9843. fi
  9844. # This can be used to rebuild libtool when needed
  9845. LIBTOOL_DEPS="$ltmain"
  9846. # Always use our own libtool.
  9847. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9848. test -z "$LN_S" && LN_S="ln -s"
  9849. if test -n "${ZSH_VERSION+set}" ; then
  9850. setopt NO_GLOB_SUBST
  9851. fi
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  9853. $as_echo_n "checking for objdir... " >&6; }
  9854. if ${lt_cv_objdir+:} false; then :
  9855. $as_echo_n "(cached) " >&6
  9856. else
  9857. rm -f .libs 2>/dev/null
  9858. mkdir .libs 2>/dev/null
  9859. if test -d .libs; then
  9860. lt_cv_objdir=.libs
  9861. else
  9862. # MS-DOS does not allow filenames that begin with a dot.
  9863. lt_cv_objdir=_libs
  9864. fi
  9865. rmdir .libs 2>/dev/null
  9866. fi
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  9868. $as_echo "$lt_cv_objdir" >&6; }
  9869. objdir=$lt_cv_objdir
  9870. cat >>confdefs.h <<_ACEOF
  9871. #define LT_OBJDIR "$lt_cv_objdir/"
  9872. _ACEOF
  9873. case $host_os in
  9874. aix3*)
  9875. # AIX sometimes has problems with the GCC collect2 program. For some
  9876. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9877. # vanish in a puff of smoke.
  9878. if test "X${COLLECT_NAMES+set}" != Xset; then
  9879. COLLECT_NAMES=
  9880. export COLLECT_NAMES
  9881. fi
  9882. ;;
  9883. esac
  9884. # Global variables:
  9885. ofile=libtool
  9886. can_build_shared=yes
  9887. # All known linkers require a `.a' archive for static linking (except MSVC,
  9888. # which needs '.lib').
  9889. libext=a
  9890. with_gnu_ld="$lt_cv_prog_gnu_ld"
  9891. old_CC="$CC"
  9892. old_CFLAGS="$CFLAGS"
  9893. # Set sane defaults for various variables
  9894. test -z "$CC" && CC=cc
  9895. test -z "$LTCC" && LTCC=$CC
  9896. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  9897. test -z "$LD" && LD=ld
  9898. test -z "$ac_objext" && ac_objext=o
  9899. for cc_temp in $compiler""; do
  9900. case $cc_temp in
  9901. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9902. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9903. \-*) ;;
  9904. *) break;;
  9905. esac
  9906. done
  9907. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9908. # Only perform the check for file, if the check method requires it
  9909. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  9910. case $deplibs_check_method in
  9911. file_magic*)
  9912. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  9914. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  9915. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. case $MAGIC_CMD in
  9919. [\\/*] | ?:[\\/]*)
  9920. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9921. ;;
  9922. *)
  9923. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9924. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9925. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9926. for ac_dir in $ac_dummy; do
  9927. IFS="$lt_save_ifs"
  9928. test -z "$ac_dir" && ac_dir=.
  9929. if test -f $ac_dir/${ac_tool_prefix}file; then
  9930. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  9931. if test -n "$file_magic_test_file"; then
  9932. case $deplibs_check_method in
  9933. "file_magic "*)
  9934. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9935. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9936. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9937. $EGREP "$file_magic_regex" > /dev/null; then
  9938. :
  9939. else
  9940. cat <<_LT_EOF 1>&2
  9941. *** Warning: the command libtool uses to detect shared libraries,
  9942. *** $file_magic_cmd, produces output that libtool cannot recognize.
  9943. *** The result is that libtool may fail to recognize shared libraries
  9944. *** as such. This will affect the creation of libtool libraries that
  9945. *** depend on shared libraries, but programs linked with such libtool
  9946. *** libraries will work regardless of this problem. Nevertheless, you
  9947. *** may want to report the problem to your system manager and/or to
  9948. *** bug-libtool@gnu.org
  9949. _LT_EOF
  9950. fi ;;
  9951. esac
  9952. fi
  9953. break
  9954. fi
  9955. done
  9956. IFS="$lt_save_ifs"
  9957. MAGIC_CMD="$lt_save_MAGIC_CMD"
  9958. ;;
  9959. esac
  9960. fi
  9961. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9962. if test -n "$MAGIC_CMD"; then
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  9964. $as_echo "$MAGIC_CMD" >&6; }
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969. if test -z "$lt_cv_path_MAGIC_CMD"; then
  9970. if test -n "$ac_tool_prefix"; then
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  9972. $as_echo_n "checking for file... " >&6; }
  9973. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. case $MAGIC_CMD in
  9977. [\\/*] | ?:[\\/]*)
  9978. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  9979. ;;
  9980. *)
  9981. lt_save_MAGIC_CMD="$MAGIC_CMD"
  9982. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9983. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  9984. for ac_dir in $ac_dummy; do
  9985. IFS="$lt_save_ifs"
  9986. test -z "$ac_dir" && ac_dir=.
  9987. if test -f $ac_dir/file; then
  9988. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  9989. if test -n "$file_magic_test_file"; then
  9990. case $deplibs_check_method in
  9991. "file_magic "*)
  9992. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  9993. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  9994. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  9995. $EGREP "$file_magic_regex" > /dev/null; then
  9996. :
  9997. else
  9998. cat <<_LT_EOF 1>&2
  9999. *** Warning: the command libtool uses to detect shared libraries,
  10000. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10001. *** The result is that libtool may fail to recognize shared libraries
  10002. *** as such. This will affect the creation of libtool libraries that
  10003. *** depend on shared libraries, but programs linked with such libtool
  10004. *** libraries will work regardless of this problem. Nevertheless, you
  10005. *** may want to report the problem to your system manager and/or to
  10006. *** bug-libtool@gnu.org
  10007. _LT_EOF
  10008. fi ;;
  10009. esac
  10010. fi
  10011. break
  10012. fi
  10013. done
  10014. IFS="$lt_save_ifs"
  10015. MAGIC_CMD="$lt_save_MAGIC_CMD"
  10016. ;;
  10017. esac
  10018. fi
  10019. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  10020. if test -n "$MAGIC_CMD"; then
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10022. $as_echo "$MAGIC_CMD" >&6; }
  10023. else
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10025. $as_echo "no" >&6; }
  10026. fi
  10027. else
  10028. MAGIC_CMD=:
  10029. fi
  10030. fi
  10031. fi
  10032. ;;
  10033. esac
  10034. # Use C for the default configuration in the libtool script
  10035. lt_save_CC="$CC"
  10036. ac_ext=c
  10037. ac_cpp='$CPP $CPPFLAGS'
  10038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10041. # Source file extension for C test sources.
  10042. ac_ext=c
  10043. # Object file extension for compiled C test sources.
  10044. objext=o
  10045. objext=$objext
  10046. # Code to be used in simple compile tests
  10047. lt_simple_compile_test_code="int some_variable = 0;"
  10048. # Code to be used in simple link tests
  10049. lt_simple_link_test_code='int main(){return(0);}'
  10050. # If no C compiler was specified, use CC.
  10051. LTCC=${LTCC-"$CC"}
  10052. # If no C compiler flags were specified, use CFLAGS.
  10053. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10054. # Allow CC to be a program name with arguments.
  10055. compiler=$CC
  10056. # Save the default compiler, since it gets overwritten when the other
  10057. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  10058. compiler_DEFAULT=$CC
  10059. # save warnings/boilerplate of simple test code
  10060. ac_outfile=conftest.$ac_objext
  10061. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10062. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10063. _lt_compiler_boilerplate=`cat conftest.err`
  10064. $RM conftest*
  10065. ac_outfile=conftest.$ac_objext
  10066. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10067. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10068. _lt_linker_boilerplate=`cat conftest.err`
  10069. $RM -r conftest*
  10070. ## CAVEAT EMPTOR:
  10071. ## There is no encapsulation within the following macros, do not change
  10072. ## the running order or otherwise move them around unless you know exactly
  10073. ## what you are doing...
  10074. if test -n "$compiler"; then
  10075. lt_prog_compiler_no_builtin_flag=
  10076. if test "$GCC" = yes; then
  10077. case $cc_basename in
  10078. nvcc*)
  10079. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  10080. *)
  10081. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  10082. esac
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  10084. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  10085. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  10086. $as_echo_n "(cached) " >&6
  10087. else
  10088. lt_cv_prog_compiler_rtti_exceptions=no
  10089. ac_outfile=conftest.$ac_objext
  10090. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10091. lt_compiler_flag="-fno-rtti -fno-exceptions"
  10092. # Insert the option either (1) after the last *FLAGS variable, or
  10093. # (2) before a word containing "conftest.", or (3) at the end.
  10094. # Note that $ac_compile itself does not contain backslashes and begins
  10095. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10096. # The option is referenced via a variable to avoid confusing sed.
  10097. lt_compile=`echo "$ac_compile" | $SED \
  10098. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10099. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10100. -e 's:$: $lt_compiler_flag:'`
  10101. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10102. (eval "$lt_compile" 2>conftest.err)
  10103. ac_status=$?
  10104. cat conftest.err >&5
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. if (exit $ac_status) && test -s "$ac_outfile"; then
  10107. # The compiler can only warn and ignore the option if not recognized
  10108. # So say no if there are warnings other than the usual output.
  10109. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10110. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10111. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10112. lt_cv_prog_compiler_rtti_exceptions=yes
  10113. fi
  10114. fi
  10115. $RM conftest*
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  10118. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  10119. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  10120. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  10121. else
  10122. :
  10123. fi
  10124. fi
  10125. lt_prog_compiler_wl=
  10126. lt_prog_compiler_pic=
  10127. lt_prog_compiler_static=
  10128. if test "$GCC" = yes; then
  10129. lt_prog_compiler_wl='-Wl,'
  10130. lt_prog_compiler_static='-static'
  10131. case $host_os in
  10132. aix*)
  10133. # All AIX code is PIC.
  10134. if test "$host_cpu" = ia64; then
  10135. # AIX 5 now supports IA64 processor
  10136. lt_prog_compiler_static='-Bstatic'
  10137. fi
  10138. ;;
  10139. amigaos*)
  10140. case $host_cpu in
  10141. powerpc)
  10142. # see comment about AmigaOS4 .so support
  10143. lt_prog_compiler_pic='-fPIC'
  10144. ;;
  10145. m68k)
  10146. # FIXME: we need at least 68020 code to build shared libraries, but
  10147. # adding the `-m68020' flag to GCC prevents building anything better,
  10148. # like `-m68040'.
  10149. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  10150. ;;
  10151. esac
  10152. ;;
  10153. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10154. # PIC is the default for these OSes.
  10155. ;;
  10156. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10157. # This hack is so that the source file can tell whether it is being
  10158. # built for inclusion in a dll (and should export symbols for example).
  10159. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10160. # (--disable-auto-import) libraries
  10161. lt_prog_compiler_pic='-DDLL_EXPORT'
  10162. ;;
  10163. darwin* | rhapsody*)
  10164. # PIC is the default on this platform
  10165. # Common symbols not allowed in MH_DYLIB files
  10166. lt_prog_compiler_pic='-fno-common'
  10167. ;;
  10168. haiku*)
  10169. # PIC is the default for Haiku.
  10170. # The "-static" flag exists, but is broken.
  10171. lt_prog_compiler_static=
  10172. ;;
  10173. hpux*)
  10174. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10175. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10176. # sets the default TLS model and affects inlining.
  10177. case $host_cpu in
  10178. hppa*64*)
  10179. # +Z the default
  10180. ;;
  10181. *)
  10182. lt_prog_compiler_pic='-fPIC'
  10183. ;;
  10184. esac
  10185. ;;
  10186. interix[3-9]*)
  10187. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10188. # Instead, we relocate shared libraries at runtime.
  10189. ;;
  10190. msdosdjgpp*)
  10191. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10192. # on systems that don't support them.
  10193. lt_prog_compiler_can_build_shared=no
  10194. enable_shared=no
  10195. ;;
  10196. *nto* | *qnx*)
  10197. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10198. # it will coredump.
  10199. lt_prog_compiler_pic='-fPIC -shared'
  10200. ;;
  10201. sysv4*MP*)
  10202. if test -d /usr/nec; then
  10203. lt_prog_compiler_pic=-Kconform_pic
  10204. fi
  10205. ;;
  10206. *)
  10207. lt_prog_compiler_pic='-fPIC'
  10208. ;;
  10209. esac
  10210. case $cc_basename in
  10211. nvcc*) # Cuda Compiler Driver 2.2
  10212. lt_prog_compiler_wl='-Xlinker '
  10213. if test -n "$lt_prog_compiler_pic"; then
  10214. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  10215. fi
  10216. ;;
  10217. esac
  10218. else
  10219. # PORTME Check for flag to pass linker flags through the system compiler.
  10220. case $host_os in
  10221. aix*)
  10222. lt_prog_compiler_wl='-Wl,'
  10223. if test "$host_cpu" = ia64; then
  10224. # AIX 5 now supports IA64 processor
  10225. lt_prog_compiler_static='-Bstatic'
  10226. else
  10227. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  10228. fi
  10229. ;;
  10230. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10231. # This hack is so that the source file can tell whether it is being
  10232. # built for inclusion in a dll (and should export symbols for example).
  10233. lt_prog_compiler_pic='-DDLL_EXPORT'
  10234. ;;
  10235. hpux9* | hpux10* | hpux11*)
  10236. lt_prog_compiler_wl='-Wl,'
  10237. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10238. # not for PA HP-UX.
  10239. case $host_cpu in
  10240. hppa*64*|ia64*)
  10241. # +Z the default
  10242. ;;
  10243. *)
  10244. lt_prog_compiler_pic='+Z'
  10245. ;;
  10246. esac
  10247. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10248. lt_prog_compiler_static='${wl}-a ${wl}archive'
  10249. ;;
  10250. irix5* | irix6* | nonstopux*)
  10251. lt_prog_compiler_wl='-Wl,'
  10252. # PIC (with -KPIC) is the default.
  10253. lt_prog_compiler_static='-non_shared'
  10254. ;;
  10255. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10256. case $cc_basename in
  10257. # old Intel for x86_64 which still supported -KPIC.
  10258. ecc*)
  10259. lt_prog_compiler_wl='-Wl,'
  10260. lt_prog_compiler_pic='-KPIC'
  10261. lt_prog_compiler_static='-static'
  10262. ;;
  10263. # icc used to be incompatible with GCC.
  10264. # ICC 10 doesn't accept -KPIC any more.
  10265. icc* | ifort*)
  10266. lt_prog_compiler_wl='-Wl,'
  10267. lt_prog_compiler_pic='-fPIC'
  10268. lt_prog_compiler_static='-static'
  10269. ;;
  10270. # Lahey Fortran 8.1.
  10271. lf95*)
  10272. lt_prog_compiler_wl='-Wl,'
  10273. lt_prog_compiler_pic='--shared'
  10274. lt_prog_compiler_static='--static'
  10275. ;;
  10276. nagfor*)
  10277. # NAG Fortran compiler
  10278. lt_prog_compiler_wl='-Wl,-Wl,,'
  10279. lt_prog_compiler_pic='-PIC'
  10280. lt_prog_compiler_static='-Bstatic'
  10281. ;;
  10282. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10283. # Portland Group compilers (*not* the Pentium gcc compiler,
  10284. # which looks to be a dead project)
  10285. lt_prog_compiler_wl='-Wl,'
  10286. lt_prog_compiler_pic='-fpic'
  10287. lt_prog_compiler_static='-Bstatic'
  10288. ;;
  10289. ccc*)
  10290. lt_prog_compiler_wl='-Wl,'
  10291. # All Alpha code is PIC.
  10292. lt_prog_compiler_static='-non_shared'
  10293. ;;
  10294. xl* | bgxl* | bgf* | mpixl*)
  10295. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10296. lt_prog_compiler_wl='-Wl,'
  10297. lt_prog_compiler_pic='-qpic'
  10298. lt_prog_compiler_static='-qstaticlink'
  10299. ;;
  10300. *)
  10301. case `$CC -V 2>&1 | sed 5q` in
  10302. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  10303. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10304. lt_prog_compiler_pic='-KPIC'
  10305. lt_prog_compiler_static='-Bstatic'
  10306. lt_prog_compiler_wl=''
  10307. ;;
  10308. *Sun\ F* | *Sun*Fortran*)
  10309. lt_prog_compiler_pic='-KPIC'
  10310. lt_prog_compiler_static='-Bstatic'
  10311. lt_prog_compiler_wl='-Qoption ld '
  10312. ;;
  10313. *Sun\ C*)
  10314. # Sun C 5.9
  10315. lt_prog_compiler_pic='-KPIC'
  10316. lt_prog_compiler_static='-Bstatic'
  10317. lt_prog_compiler_wl='-Wl,'
  10318. ;;
  10319. *Intel*\ [CF]*Compiler*)
  10320. lt_prog_compiler_wl='-Wl,'
  10321. lt_prog_compiler_pic='-fPIC'
  10322. lt_prog_compiler_static='-static'
  10323. ;;
  10324. *Portland\ Group*)
  10325. lt_prog_compiler_wl='-Wl,'
  10326. lt_prog_compiler_pic='-fpic'
  10327. lt_prog_compiler_static='-Bstatic'
  10328. ;;
  10329. esac
  10330. ;;
  10331. esac
  10332. ;;
  10333. newsos6)
  10334. lt_prog_compiler_pic='-KPIC'
  10335. lt_prog_compiler_static='-Bstatic'
  10336. ;;
  10337. *nto* | *qnx*)
  10338. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10339. # it will coredump.
  10340. lt_prog_compiler_pic='-fPIC -shared'
  10341. ;;
  10342. osf3* | osf4* | osf5*)
  10343. lt_prog_compiler_wl='-Wl,'
  10344. # All OSF/1 code is PIC.
  10345. lt_prog_compiler_static='-non_shared'
  10346. ;;
  10347. rdos*)
  10348. lt_prog_compiler_static='-non_shared'
  10349. ;;
  10350. solaris*)
  10351. lt_prog_compiler_pic='-KPIC'
  10352. lt_prog_compiler_static='-Bstatic'
  10353. case $cc_basename in
  10354. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  10355. lt_prog_compiler_wl='-Qoption ld ';;
  10356. *)
  10357. lt_prog_compiler_wl='-Wl,';;
  10358. esac
  10359. ;;
  10360. sunos4*)
  10361. lt_prog_compiler_wl='-Qoption ld '
  10362. lt_prog_compiler_pic='-PIC'
  10363. lt_prog_compiler_static='-Bstatic'
  10364. ;;
  10365. sysv4 | sysv4.2uw2* | sysv4.3*)
  10366. lt_prog_compiler_wl='-Wl,'
  10367. lt_prog_compiler_pic='-KPIC'
  10368. lt_prog_compiler_static='-Bstatic'
  10369. ;;
  10370. sysv4*MP*)
  10371. if test -d /usr/nec ;then
  10372. lt_prog_compiler_pic='-Kconform_pic'
  10373. lt_prog_compiler_static='-Bstatic'
  10374. fi
  10375. ;;
  10376. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10377. lt_prog_compiler_wl='-Wl,'
  10378. lt_prog_compiler_pic='-KPIC'
  10379. lt_prog_compiler_static='-Bstatic'
  10380. ;;
  10381. unicos*)
  10382. lt_prog_compiler_wl='-Wl,'
  10383. lt_prog_compiler_can_build_shared=no
  10384. ;;
  10385. uts4*)
  10386. lt_prog_compiler_pic='-pic'
  10387. lt_prog_compiler_static='-Bstatic'
  10388. ;;
  10389. *)
  10390. lt_prog_compiler_can_build_shared=no
  10391. ;;
  10392. esac
  10393. fi
  10394. case $host_os in
  10395. # For platforms which do not support PIC, -DPIC is meaningless:
  10396. *djgpp*)
  10397. lt_prog_compiler_pic=
  10398. ;;
  10399. *)
  10400. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  10401. ;;
  10402. esac
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10404. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10405. if ${lt_cv_prog_compiler_pic+:} false; then :
  10406. $as_echo_n "(cached) " >&6
  10407. else
  10408. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  10409. fi
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  10411. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  10412. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  10413. #
  10414. # Check to make sure the PIC flag actually works.
  10415. #
  10416. if test -n "$lt_prog_compiler_pic"; then
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  10418. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  10419. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  10420. $as_echo_n "(cached) " >&6
  10421. else
  10422. lt_cv_prog_compiler_pic_works=no
  10423. ac_outfile=conftest.$ac_objext
  10424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10425. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  10426. # Insert the option either (1) after the last *FLAGS variable, or
  10427. # (2) before a word containing "conftest.", or (3) at the end.
  10428. # Note that $ac_compile itself does not contain backslashes and begins
  10429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10430. # The option is referenced via a variable to avoid confusing sed.
  10431. lt_compile=`echo "$ac_compile" | $SED \
  10432. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10433. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10434. -e 's:$: $lt_compiler_flag:'`
  10435. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10436. (eval "$lt_compile" 2>conftest.err)
  10437. ac_status=$?
  10438. cat conftest.err >&5
  10439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10440. if (exit $ac_status) && test -s "$ac_outfile"; then
  10441. # The compiler can only warn and ignore the option if not recognized
  10442. # So say no if there are warnings other than the usual output.
  10443. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10445. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10446. lt_cv_prog_compiler_pic_works=yes
  10447. fi
  10448. fi
  10449. $RM conftest*
  10450. fi
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  10452. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  10453. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  10454. case $lt_prog_compiler_pic in
  10455. "" | " "*) ;;
  10456. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  10457. esac
  10458. else
  10459. lt_prog_compiler_pic=
  10460. lt_prog_compiler_can_build_shared=no
  10461. fi
  10462. fi
  10463. #
  10464. # Check to make sure the static flag actually works.
  10465. #
  10466. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  10467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10468. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10469. if ${lt_cv_prog_compiler_static_works+:} false; then :
  10470. $as_echo_n "(cached) " >&6
  10471. else
  10472. lt_cv_prog_compiler_static_works=no
  10473. save_LDFLAGS="$LDFLAGS"
  10474. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10475. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10476. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10477. # The linker can only warn and ignore the option if not recognized
  10478. # So say no if there are warnings
  10479. if test -s conftest.err; then
  10480. # Append any errors to the config.log.
  10481. cat conftest.err 1>&5
  10482. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10483. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10484. if diff conftest.exp conftest.er2 >/dev/null; then
  10485. lt_cv_prog_compiler_static_works=yes
  10486. fi
  10487. else
  10488. lt_cv_prog_compiler_static_works=yes
  10489. fi
  10490. fi
  10491. $RM -r conftest*
  10492. LDFLAGS="$save_LDFLAGS"
  10493. fi
  10494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  10495. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  10496. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  10497. :
  10498. else
  10499. lt_prog_compiler_static=
  10500. fi
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10502. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10503. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10504. $as_echo_n "(cached) " >&6
  10505. else
  10506. lt_cv_prog_compiler_c_o=no
  10507. $RM -r conftest 2>/dev/null
  10508. mkdir conftest
  10509. cd conftest
  10510. mkdir out
  10511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10512. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10513. # Insert the option either (1) after the last *FLAGS variable, or
  10514. # (2) before a word containing "conftest.", or (3) at the end.
  10515. # Note that $ac_compile itself does not contain backslashes and begins
  10516. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10517. lt_compile=`echo "$ac_compile" | $SED \
  10518. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10519. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10520. -e 's:$: $lt_compiler_flag:'`
  10521. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10522. (eval "$lt_compile" 2>out/conftest.err)
  10523. ac_status=$?
  10524. cat out/conftest.err >&5
  10525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10526. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10527. then
  10528. # The compiler can only warn and ignore the option if not recognized
  10529. # So say no if there are warnings
  10530. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10531. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10532. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10533. lt_cv_prog_compiler_c_o=yes
  10534. fi
  10535. fi
  10536. chmod u+w . 2>&5
  10537. $RM conftest*
  10538. # SGI C++ compiler will create directory out/ii_files/ for
  10539. # template instantiation
  10540. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10541. $RM out/* && rmdir out
  10542. cd ..
  10543. $RM -r conftest
  10544. $RM conftest*
  10545. fi
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10547. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10549. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10550. if ${lt_cv_prog_compiler_c_o+:} false; then :
  10551. $as_echo_n "(cached) " >&6
  10552. else
  10553. lt_cv_prog_compiler_c_o=no
  10554. $RM -r conftest 2>/dev/null
  10555. mkdir conftest
  10556. cd conftest
  10557. mkdir out
  10558. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10559. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10560. # Insert the option either (1) after the last *FLAGS variable, or
  10561. # (2) before a word containing "conftest.", or (3) at the end.
  10562. # Note that $ac_compile itself does not contain backslashes and begins
  10563. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10564. lt_compile=`echo "$ac_compile" | $SED \
  10565. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10566. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10567. -e 's:$: $lt_compiler_flag:'`
  10568. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10569. (eval "$lt_compile" 2>out/conftest.err)
  10570. ac_status=$?
  10571. cat out/conftest.err >&5
  10572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10573. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10574. then
  10575. # The compiler can only warn and ignore the option if not recognized
  10576. # So say no if there are warnings
  10577. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10578. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10579. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10580. lt_cv_prog_compiler_c_o=yes
  10581. fi
  10582. fi
  10583. chmod u+w . 2>&5
  10584. $RM conftest*
  10585. # SGI C++ compiler will create directory out/ii_files/ for
  10586. # template instantiation
  10587. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10588. $RM out/* && rmdir out
  10589. cd ..
  10590. $RM -r conftest
  10591. $RM conftest*
  10592. fi
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  10594. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  10595. hard_links="nottested"
  10596. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  10597. # do not overwrite the value of need_locks provided by the user
  10598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10599. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10600. hard_links=yes
  10601. $RM conftest*
  10602. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10603. touch conftest.a
  10604. ln conftest.a conftest.b 2>&5 || hard_links=no
  10605. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10607. $as_echo "$hard_links" >&6; }
  10608. if test "$hard_links" = no; then
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10610. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10611. need_locks=warn
  10612. fi
  10613. else
  10614. need_locks=no
  10615. fi
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10617. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10618. runpath_var=
  10619. allow_undefined_flag=
  10620. always_export_symbols=no
  10621. archive_cmds=
  10622. archive_expsym_cmds=
  10623. compiler_needs_object=no
  10624. enable_shared_with_static_runtimes=no
  10625. export_dynamic_flag_spec=
  10626. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10627. hardcode_automatic=no
  10628. hardcode_direct=no
  10629. hardcode_direct_absolute=no
  10630. hardcode_libdir_flag_spec=
  10631. hardcode_libdir_separator=
  10632. hardcode_minus_L=no
  10633. hardcode_shlibpath_var=unsupported
  10634. inherit_rpath=no
  10635. link_all_deplibs=unknown
  10636. module_cmds=
  10637. module_expsym_cmds=
  10638. old_archive_from_new_cmds=
  10639. old_archive_from_expsyms_cmds=
  10640. thread_safe_flag_spec=
  10641. whole_archive_flag_spec=
  10642. # include_expsyms should be a list of space-separated symbols to be *always*
  10643. # included in the symbol list
  10644. include_expsyms=
  10645. # exclude_expsyms can be an extended regexp of symbols to exclude
  10646. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10647. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10648. # as well as any symbol that contains `d'.
  10649. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10650. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10651. # platforms (ab)use it in PIC code, but their linkers get confused if
  10652. # the symbol is explicitly referenced. Since portable code cannot
  10653. # rely on this symbol name, it's probably fine to never include it in
  10654. # preloaded symbol tables.
  10655. # Exclude shared library initialization/finalization symbols.
  10656. extract_expsyms_cmds=
  10657. case $host_os in
  10658. cygwin* | mingw* | pw32* | cegcc*)
  10659. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10660. # When not using gcc, we currently assume that we are using
  10661. # Microsoft Visual C++.
  10662. if test "$GCC" != yes; then
  10663. with_gnu_ld=no
  10664. fi
  10665. ;;
  10666. interix*)
  10667. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10668. with_gnu_ld=yes
  10669. ;;
  10670. openbsd*)
  10671. with_gnu_ld=no
  10672. ;;
  10673. linux* | k*bsd*-gnu | gnu*)
  10674. link_all_deplibs=no
  10675. ;;
  10676. esac
  10677. ld_shlibs=yes
  10678. # On some targets, GNU ld is compatible enough with the native linker
  10679. # that we're better off using the native interface for both.
  10680. lt_use_gnu_ld_interface=no
  10681. if test "$with_gnu_ld" = yes; then
  10682. case $host_os in
  10683. aix*)
  10684. # The AIX port of GNU ld has always aspired to compatibility
  10685. # with the native linker. However, as the warning in the GNU ld
  10686. # block says, versions before 2.19.5* couldn't really create working
  10687. # shared libraries, regardless of the interface used.
  10688. case `$LD -v 2>&1` in
  10689. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10690. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10691. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10692. *)
  10693. lt_use_gnu_ld_interface=yes
  10694. ;;
  10695. esac
  10696. ;;
  10697. *)
  10698. lt_use_gnu_ld_interface=yes
  10699. ;;
  10700. esac
  10701. fi
  10702. if test "$lt_use_gnu_ld_interface" = yes; then
  10703. # If archive_cmds runs LD, not CC, wlarc should be empty
  10704. wlarc='${wl}'
  10705. # Set some defaults for GNU ld with shared library support. These
  10706. # are reset later if shared libraries are not supported. Putting them
  10707. # here allows them to be overridden if necessary.
  10708. runpath_var=LD_RUN_PATH
  10709. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10710. export_dynamic_flag_spec='${wl}--export-dynamic'
  10711. # ancient GNU ld didn't support --whole-archive et. al.
  10712. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10713. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10714. else
  10715. whole_archive_flag_spec=
  10716. fi
  10717. supports_anon_versioning=no
  10718. case `$LD -v 2>&1` in
  10719. *GNU\ gold*) supports_anon_versioning=yes ;;
  10720. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10721. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10722. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10723. *\ 2.11.*) ;; # other 2.11 versions
  10724. *) supports_anon_versioning=yes ;;
  10725. esac
  10726. # See if GNU ld supports shared libraries.
  10727. case $host_os in
  10728. aix[3-9]*)
  10729. # On AIX/PPC, the GNU linker is very broken
  10730. if test "$host_cpu" != ia64; then
  10731. ld_shlibs=no
  10732. cat <<_LT_EOF 1>&2
  10733. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10734. *** to be unable to reliably create shared libraries on AIX.
  10735. *** Therefore, libtool is disabling shared libraries support. If you
  10736. *** really care for shared libraries, you may want to install binutils
  10737. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10738. *** You will then need to restart the configuration process.
  10739. _LT_EOF
  10740. fi
  10741. ;;
  10742. amigaos*)
  10743. case $host_cpu in
  10744. powerpc)
  10745. # see comment about AmigaOS4 .so support
  10746. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10747. archive_expsym_cmds=''
  10748. ;;
  10749. m68k)
  10750. 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)'
  10751. hardcode_libdir_flag_spec='-L$libdir'
  10752. hardcode_minus_L=yes
  10753. ;;
  10754. esac
  10755. ;;
  10756. beos*)
  10757. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10758. allow_undefined_flag=unsupported
  10759. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10760. # support --undefined. This deserves some investigation. FIXME
  10761. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10762. else
  10763. ld_shlibs=no
  10764. fi
  10765. ;;
  10766. cygwin* | mingw* | pw32* | cegcc*)
  10767. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  10768. # as there is no search path for DLLs.
  10769. hardcode_libdir_flag_spec='-L$libdir'
  10770. export_dynamic_flag_spec='${wl}--export-all-symbols'
  10771. allow_undefined_flag=unsupported
  10772. always_export_symbols=no
  10773. enable_shared_with_static_runtimes=yes
  10774. 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'
  10775. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  10776. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10777. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10778. # If the export-symbols file already is a .def file (1st line
  10779. # is EXPORTS), use it as is; otherwise, prepend...
  10780. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10781. cp $export_symbols $output_objdir/$soname.def;
  10782. else
  10783. echo EXPORTS > $output_objdir/$soname.def;
  10784. cat $export_symbols >> $output_objdir/$soname.def;
  10785. fi~
  10786. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10787. else
  10788. ld_shlibs=no
  10789. fi
  10790. ;;
  10791. haiku*)
  10792. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10793. link_all_deplibs=yes
  10794. ;;
  10795. interix[3-9]*)
  10796. hardcode_direct=no
  10797. hardcode_shlibpath_var=no
  10798. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10799. export_dynamic_flag_spec='${wl}-E'
  10800. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10801. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10802. # default) and relocated if they conflict, which is a slow very memory
  10803. # consuming and fragmenting process. To avoid this, we pick a random,
  10804. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10805. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10806. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10807. 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'
  10808. ;;
  10809. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10810. tmp_diet=no
  10811. if test "$host_os" = linux-dietlibc; then
  10812. case $cc_basename in
  10813. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10814. esac
  10815. fi
  10816. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10817. && test "$tmp_diet" = no
  10818. then
  10819. tmp_addflag=' $pic_flag'
  10820. tmp_sharedflag='-shared'
  10821. case $cc_basename,$host_cpu in
  10822. pgcc*) # Portland Group C compiler
  10823. 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'
  10824. tmp_addflag=' $pic_flag'
  10825. ;;
  10826. pgf77* | pgf90* | pgf95* | pgfortran*)
  10827. # Portland Group f77 and f90 compilers
  10828. 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'
  10829. tmp_addflag=' $pic_flag -Mnomain' ;;
  10830. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10831. tmp_addflag=' -i_dynamic' ;;
  10832. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10833. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10834. ifc* | ifort*) # Intel Fortran compiler
  10835. tmp_addflag=' -nofor_main' ;;
  10836. lf95*) # Lahey Fortran 8.1
  10837. whole_archive_flag_spec=
  10838. tmp_sharedflag='--shared' ;;
  10839. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10840. tmp_sharedflag='-qmkshrobj'
  10841. tmp_addflag= ;;
  10842. nvcc*) # Cuda Compiler Driver 2.2
  10843. 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'
  10844. compiler_needs_object=yes
  10845. ;;
  10846. esac
  10847. case `$CC -V 2>&1 | sed 5q` in
  10848. *Sun\ C*) # Sun C 5.9
  10849. 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'
  10850. compiler_needs_object=yes
  10851. tmp_sharedflag='-G' ;;
  10852. *Sun\ F*) # Sun Fortran 8.3
  10853. tmp_sharedflag='-G' ;;
  10854. esac
  10855. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10856. if test "x$supports_anon_versioning" = xyes; then
  10857. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10858. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10859. echo "local: *; };" >> $output_objdir/$libname.ver~
  10860. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10861. fi
  10862. case $cc_basename in
  10863. xlf* | bgf* | bgxlf* | mpixlf*)
  10864. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10865. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  10866. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10867. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  10868. if test "x$supports_anon_versioning" = xyes; then
  10869. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  10870. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10871. echo "local: *; };" >> $output_objdir/$libname.ver~
  10872. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  10873. fi
  10874. ;;
  10875. esac
  10876. else
  10877. ld_shlibs=no
  10878. fi
  10879. ;;
  10880. netbsd* | netbsdelf*-gnu)
  10881. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10882. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  10883. wlarc=
  10884. else
  10885. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10886. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10887. fi
  10888. ;;
  10889. solaris*)
  10890. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  10891. ld_shlibs=no
  10892. cat <<_LT_EOF 1>&2
  10893. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  10894. *** create shared libraries on Solaris systems. Therefore, libtool
  10895. *** is disabling shared libraries support. We urge you to upgrade GNU
  10896. *** binutils to release 2.9.1 or newer. Another option is to modify
  10897. *** your PATH or compiler configuration so that the native linker is
  10898. *** used, and then restart.
  10899. _LT_EOF
  10900. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10901. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10902. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10903. else
  10904. ld_shlibs=no
  10905. fi
  10906. ;;
  10907. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  10908. case `$LD -v 2>&1` in
  10909. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  10910. ld_shlibs=no
  10911. cat <<_LT_EOF 1>&2
  10912. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  10913. *** reliably create shared libraries on SCO systems. Therefore, libtool
  10914. *** is disabling shared libraries support. We urge you to upgrade GNU
  10915. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  10916. *** your PATH or compiler configuration so that the native linker is
  10917. *** used, and then restart.
  10918. _LT_EOF
  10919. ;;
  10920. *)
  10921. # For security reasons, it is highly recommended that you always
  10922. # use absolute paths for naming shared libraries, and exclude the
  10923. # DT_RUNPATH tag from executables and libraries. But doing so
  10924. # requires that you compile everything twice, which is a pain.
  10925. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10926. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10927. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10928. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10929. else
  10930. ld_shlibs=no
  10931. fi
  10932. ;;
  10933. esac
  10934. ;;
  10935. sunos4*)
  10936. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10937. wlarc=
  10938. hardcode_direct=yes
  10939. hardcode_shlibpath_var=no
  10940. ;;
  10941. *)
  10942. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10943. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10944. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10945. else
  10946. ld_shlibs=no
  10947. fi
  10948. ;;
  10949. esac
  10950. if test "$ld_shlibs" = no; then
  10951. runpath_var=
  10952. hardcode_libdir_flag_spec=
  10953. export_dynamic_flag_spec=
  10954. whole_archive_flag_spec=
  10955. fi
  10956. else
  10957. # PORTME fill in a description of your system's linker (not GNU ld)
  10958. case $host_os in
  10959. aix3*)
  10960. allow_undefined_flag=unsupported
  10961. always_export_symbols=yes
  10962. 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'
  10963. # Note: this linker hardcodes the directories in LIBPATH if there
  10964. # are no directories specified by -L.
  10965. hardcode_minus_L=yes
  10966. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  10967. # Neither direct hardcoding nor static linking is supported with a
  10968. # broken collect2.
  10969. hardcode_direct=unsupported
  10970. fi
  10971. ;;
  10972. aix[4-9]*)
  10973. if test "$host_cpu" = ia64; then
  10974. # On IA64, the linker does run time linking by default, so we don't
  10975. # have to do anything special.
  10976. aix_use_runtimelinking=no
  10977. exp_sym_flag='-Bexport'
  10978. no_entry_flag=""
  10979. else
  10980. # If we're using GNU nm, then we don't want the "-C" option.
  10981. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10982. # Also, AIX nm treats weak defined symbols like other global
  10983. # defined symbols, whereas GNU nm marks them as "W".
  10984. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  10985. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10986. else
  10987. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  10988. fi
  10989. aix_use_runtimelinking=no
  10990. # Test if we are trying to use run time linking or normal
  10991. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10992. # need to do runtime linking.
  10993. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10994. for ld_flag in $LDFLAGS; do
  10995. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10996. aix_use_runtimelinking=yes
  10997. break
  10998. fi
  10999. done
  11000. ;;
  11001. esac
  11002. exp_sym_flag='-bexport'
  11003. no_entry_flag='-bnoentry'
  11004. fi
  11005. # When large executables or shared objects are built, AIX ld can
  11006. # have problems creating the table of contents. If linking a library
  11007. # or program results in "error TOC overflow" add -mminimal-toc to
  11008. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11009. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11010. archive_cmds=''
  11011. hardcode_direct=yes
  11012. hardcode_direct_absolute=yes
  11013. hardcode_libdir_separator=':'
  11014. link_all_deplibs=yes
  11015. file_list_spec='${wl}-f,'
  11016. if test "$GCC" = yes; then
  11017. case $host_os in aix4.[012]|aix4.[012].*)
  11018. # We only want to do this on AIX 4.2 and lower, the check
  11019. # below for broken collect2 doesn't work under 4.3+
  11020. collect2name=`${CC} -print-prog-name=collect2`
  11021. if test -f "$collect2name" &&
  11022. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11023. then
  11024. # We have reworked collect2
  11025. :
  11026. else
  11027. # We have old collect2
  11028. hardcode_direct=unsupported
  11029. # It fails to find uninstalled libraries when the uninstalled
  11030. # path is not listed in the libpath. Setting hardcode_minus_L
  11031. # to unsupported forces relinking
  11032. hardcode_minus_L=yes
  11033. hardcode_libdir_flag_spec='-L$libdir'
  11034. hardcode_libdir_separator=
  11035. fi
  11036. ;;
  11037. esac
  11038. shared_flag='-shared'
  11039. if test "$aix_use_runtimelinking" = yes; then
  11040. shared_flag="$shared_flag "'${wl}-G'
  11041. fi
  11042. link_all_deplibs=no
  11043. else
  11044. # not using gcc
  11045. if test "$host_cpu" = ia64; then
  11046. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11047. # chokes on -Wl,-G. The following line is correct:
  11048. shared_flag='-G'
  11049. else
  11050. if test "$aix_use_runtimelinking" = yes; then
  11051. shared_flag='${wl}-G'
  11052. else
  11053. shared_flag='${wl}-bM:SRE'
  11054. fi
  11055. fi
  11056. fi
  11057. export_dynamic_flag_spec='${wl}-bexpall'
  11058. # It seems that -bexpall does not export symbols beginning with
  11059. # underscore (_), so it is better to generate a list of symbols to export.
  11060. always_export_symbols=yes
  11061. if test "$aix_use_runtimelinking" = yes; then
  11062. # Warning - without using the other runtime loading flags (-brtl),
  11063. # -berok will link without error, but may produce a broken library.
  11064. allow_undefined_flag='-berok'
  11065. # Determine the default libpath from the value encoded in an
  11066. # empty executable.
  11067. if test "${lt_cv_aix_libpath+set}" = set; then
  11068. aix_libpath=$lt_cv_aix_libpath
  11069. else
  11070. if ${lt_cv_aix_libpath_+:} false; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11074. /* end confdefs.h. */
  11075. int main (void)
  11076. {
  11077. ;
  11078. return 0;
  11079. }
  11080. _ACEOF
  11081. if ac_fn_c_try_link "$LINENO"; then :
  11082. lt_aix_libpath_sed='
  11083. /Import File Strings/,/^$/ {
  11084. /^0/ {
  11085. s/^0 *\([^ ]*\) *$/\1/
  11086. p
  11087. }
  11088. }'
  11089. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11090. # Check for a 64-bit object if we didn't find anything.
  11091. if test -z "$lt_cv_aix_libpath_"; then
  11092. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11093. fi
  11094. fi
  11095. rm -f core conftest.err conftest.$ac_objext \
  11096. conftest$ac_exeext conftest.$ac_ext
  11097. if test -z "$lt_cv_aix_libpath_"; then
  11098. lt_cv_aix_libpath_="/usr/lib:/lib"
  11099. fi
  11100. fi
  11101. aix_libpath=$lt_cv_aix_libpath_
  11102. fi
  11103. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11104. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11105. else
  11106. if test "$host_cpu" = ia64; then
  11107. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  11108. allow_undefined_flag="-z nodefs"
  11109. 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"
  11110. else
  11111. # Determine the default libpath from the value encoded in an
  11112. # empty executable.
  11113. if test "${lt_cv_aix_libpath+set}" = set; then
  11114. aix_libpath=$lt_cv_aix_libpath
  11115. else
  11116. if ${lt_cv_aix_libpath_+:} false; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. int main (void)
  11122. {
  11123. ;
  11124. return 0;
  11125. }
  11126. _ACEOF
  11127. if ac_fn_c_try_link "$LINENO"; then :
  11128. lt_aix_libpath_sed='
  11129. /Import File Strings/,/^$/ {
  11130. /^0/ {
  11131. s/^0 *\([^ ]*\) *$/\1/
  11132. p
  11133. }
  11134. }'
  11135. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11136. # Check for a 64-bit object if we didn't find anything.
  11137. if test -z "$lt_cv_aix_libpath_"; then
  11138. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11139. fi
  11140. fi
  11141. rm -f core conftest.err conftest.$ac_objext \
  11142. conftest$ac_exeext conftest.$ac_ext
  11143. if test -z "$lt_cv_aix_libpath_"; then
  11144. lt_cv_aix_libpath_="/usr/lib:/lib"
  11145. fi
  11146. fi
  11147. aix_libpath=$lt_cv_aix_libpath_
  11148. fi
  11149. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  11150. # Warning - without using the other run time loading flags,
  11151. # -berok will link without error, but may produce a broken library.
  11152. no_undefined_flag=' ${wl}-bernotok'
  11153. allow_undefined_flag=' ${wl}-berok'
  11154. if test "$with_gnu_ld" = yes; then
  11155. # We only use this code for GNU lds that support --whole-archive.
  11156. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11157. else
  11158. # Exported symbols can be pulled into shared objects from archives
  11159. whole_archive_flag_spec='$convenience'
  11160. fi
  11161. archive_cmds_need_lc=yes
  11162. # This is similar to how AIX traditionally builds its shared libraries.
  11163. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11164. fi
  11165. fi
  11166. ;;
  11167. amigaos*)
  11168. case $host_cpu in
  11169. powerpc)
  11170. # see comment about AmigaOS4 .so support
  11171. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11172. archive_expsym_cmds=''
  11173. ;;
  11174. m68k)
  11175. 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)'
  11176. hardcode_libdir_flag_spec='-L$libdir'
  11177. hardcode_minus_L=yes
  11178. ;;
  11179. esac
  11180. ;;
  11181. bsdi[45]*)
  11182. export_dynamic_flag_spec=-rdynamic
  11183. ;;
  11184. cygwin* | mingw* | pw32* | cegcc*)
  11185. # When not using gcc, we currently assume that we are using
  11186. # Microsoft Visual C++.
  11187. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11188. # no search path for DLLs.
  11189. case $cc_basename in
  11190. cl*)
  11191. # Native MSVC
  11192. hardcode_libdir_flag_spec=' '
  11193. allow_undefined_flag=unsupported
  11194. always_export_symbols=yes
  11195. file_list_spec='@'
  11196. # Tell ltmain to make .lib files, not .a files.
  11197. libext=lib
  11198. # Tell ltmain to make .dll files, not .so files.
  11199. shrext_cmds=".dll"
  11200. # FIXME: Setting linknames here is a bad hack.
  11201. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11202. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11203. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11204. else
  11205. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11206. fi~
  11207. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11208. linknames='
  11209. # The linker will not automatically build a static lib if we build a DLL.
  11210. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  11211. enable_shared_with_static_runtimes=yes
  11212. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  11213. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11214. # Don't use ranlib
  11215. old_postinstall_cmds='chmod 644 $oldlib'
  11216. postlink_cmds='lt_outputfile="@OUTPUT@"~
  11217. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11218. case $lt_outputfile in
  11219. *.exe|*.EXE) ;;
  11220. *)
  11221. lt_outputfile="$lt_outputfile.exe"
  11222. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11223. ;;
  11224. esac~
  11225. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11226. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11227. $RM "$lt_outputfile.manifest";
  11228. fi'
  11229. ;;
  11230. *)
  11231. # Assume MSVC wrapper
  11232. hardcode_libdir_flag_spec=' '
  11233. allow_undefined_flag=unsupported
  11234. # Tell ltmain to make .lib files, not .a files.
  11235. libext=lib
  11236. # Tell ltmain to make .dll files, not .so files.
  11237. shrext_cmds=".dll"
  11238. # FIXME: Setting linknames here is a bad hack.
  11239. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11240. # The linker will automatically build a .lib file if we build a DLL.
  11241. old_archive_from_new_cmds='true'
  11242. # FIXME: Should let the user specify the lib program.
  11243. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11244. enable_shared_with_static_runtimes=yes
  11245. ;;
  11246. esac
  11247. ;;
  11248. darwin* | rhapsody*)
  11249. archive_cmds_need_lc=no
  11250. hardcode_direct=no
  11251. hardcode_automatic=yes
  11252. hardcode_shlibpath_var=unsupported
  11253. if test "$lt_cv_ld_force_load" = "yes"; then
  11254. 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\"`'
  11255. else
  11256. whole_archive_flag_spec=''
  11257. fi
  11258. link_all_deplibs=yes
  11259. allow_undefined_flag="$_lt_dar_allow_undefined"
  11260. case $cc_basename in
  11261. ifort*) _lt_dar_can_shared=yes ;;
  11262. *) _lt_dar_can_shared=$GCC ;;
  11263. esac
  11264. if test "$_lt_dar_can_shared" = "yes"; then
  11265. output_verbose_link_cmd=func_echo_all
  11266. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11267. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11268. 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}"
  11269. 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}"
  11270. else
  11271. ld_shlibs=no
  11272. fi
  11273. ;;
  11274. dgux*)
  11275. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11276. hardcode_libdir_flag_spec='-L$libdir'
  11277. hardcode_shlibpath_var=no
  11278. ;;
  11279. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11280. # support. Future versions do this automatically, but an explicit c++rt0.o
  11281. # does not break anything, and helps significantly (at the cost of a little
  11282. # extra space).
  11283. freebsd2.2*)
  11284. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11285. hardcode_libdir_flag_spec='-R$libdir'
  11286. hardcode_direct=yes
  11287. hardcode_shlibpath_var=no
  11288. ;;
  11289. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11290. freebsd2.*)
  11291. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11292. hardcode_direct=yes
  11293. hardcode_minus_L=yes
  11294. hardcode_shlibpath_var=no
  11295. ;;
  11296. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11297. freebsd* | dragonfly*)
  11298. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11299. hardcode_libdir_flag_spec='-R$libdir'
  11300. hardcode_direct=yes
  11301. hardcode_shlibpath_var=no
  11302. ;;
  11303. hpux9*)
  11304. if test "$GCC" = yes; then
  11305. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
  11306. else
  11307. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
  11308. fi
  11309. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11310. hardcode_libdir_separator=:
  11311. hardcode_direct=yes
  11312. # hardcode_minus_L: Not really in the search PATH,
  11313. # but as the default location of the library.
  11314. hardcode_minus_L=yes
  11315. export_dynamic_flag_spec='${wl}-E'
  11316. ;;
  11317. hpux10*)
  11318. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11319. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11320. else
  11321. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11322. fi
  11323. if test "$with_gnu_ld" = no; then
  11324. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11325. hardcode_libdir_separator=:
  11326. hardcode_direct=yes
  11327. hardcode_direct_absolute=yes
  11328. export_dynamic_flag_spec='${wl}-E'
  11329. # hardcode_minus_L: Not really in the search PATH,
  11330. # but as the default location of the library.
  11331. hardcode_minus_L=yes
  11332. fi
  11333. ;;
  11334. hpux11*)
  11335. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11336. case $host_cpu in
  11337. hppa*64*)
  11338. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11339. ;;
  11340. ia64*)
  11341. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11342. ;;
  11343. *)
  11344. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11345. ;;
  11346. esac
  11347. else
  11348. case $host_cpu in
  11349. hppa*64*)
  11350. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11351. ;;
  11352. ia64*)
  11353. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11354. ;;
  11355. *)
  11356. # Older versions of the 11.00 compiler do not understand -b yet
  11357. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  11358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  11359. $as_echo_n "checking if $CC understands -b... " >&6; }
  11360. if ${lt_cv_prog_compiler__b+:} false; then :
  11361. $as_echo_n "(cached) " >&6
  11362. else
  11363. lt_cv_prog_compiler__b=no
  11364. save_LDFLAGS="$LDFLAGS"
  11365. LDFLAGS="$LDFLAGS -b"
  11366. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11367. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11368. # The linker can only warn and ignore the option if not recognized
  11369. # So say no if there are warnings
  11370. if test -s conftest.err; then
  11371. # Append any errors to the config.log.
  11372. cat conftest.err 1>&5
  11373. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11375. if diff conftest.exp conftest.er2 >/dev/null; then
  11376. lt_cv_prog_compiler__b=yes
  11377. fi
  11378. else
  11379. lt_cv_prog_compiler__b=yes
  11380. fi
  11381. fi
  11382. $RM -r conftest*
  11383. LDFLAGS="$save_LDFLAGS"
  11384. fi
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  11386. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  11387. if test x"$lt_cv_prog_compiler__b" = xyes; then
  11388. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11389. else
  11390. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11391. fi
  11392. ;;
  11393. esac
  11394. fi
  11395. if test "$with_gnu_ld" = no; then
  11396. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  11397. hardcode_libdir_separator=:
  11398. case $host_cpu in
  11399. hppa*64*|ia64*)
  11400. hardcode_direct=no
  11401. hardcode_shlibpath_var=no
  11402. ;;
  11403. *)
  11404. hardcode_direct=yes
  11405. hardcode_direct_absolute=yes
  11406. export_dynamic_flag_spec='${wl}-E'
  11407. # hardcode_minus_L: Not really in the search PATH,
  11408. # but as the default location of the library.
  11409. hardcode_minus_L=yes
  11410. ;;
  11411. esac
  11412. fi
  11413. ;;
  11414. irix5* | irix6* | nonstopux*)
  11415. if test "$GCC" = yes; then
  11416. 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'
  11417. # Try to use the -exported_symbol ld option, if it does not
  11418. # work, assume that -exports_file does not work either and
  11419. # implicitly export all symbols.
  11420. # This should be the same for all languages, so no per-tag cache variable.
  11421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  11422. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  11423. if ${lt_cv_irix_exported_symbol+:} false; then :
  11424. $as_echo_n "(cached) " >&6
  11425. else
  11426. save_LDFLAGS="$LDFLAGS"
  11427. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11429. /* end confdefs.h. */
  11430. int foo (void) { return 0; }
  11431. _ACEOF
  11432. if ac_fn_c_try_link "$LINENO"; then :
  11433. lt_cv_irix_exported_symbol=yes
  11434. else
  11435. lt_cv_irix_exported_symbol=no
  11436. fi
  11437. rm -f core conftest.err conftest.$ac_objext \
  11438. conftest$ac_exeext conftest.$ac_ext
  11439. LDFLAGS="$save_LDFLAGS"
  11440. fi
  11441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  11442. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  11443. if test "$lt_cv_irix_exported_symbol" = yes; then
  11444. 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'
  11445. fi
  11446. else
  11447. 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'
  11448. 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'
  11449. fi
  11450. archive_cmds_need_lc='no'
  11451. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11452. hardcode_libdir_separator=:
  11453. inherit_rpath=yes
  11454. link_all_deplibs=yes
  11455. ;;
  11456. netbsd* | netbsdelf*-gnu)
  11457. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11458. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11459. else
  11460. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11461. fi
  11462. hardcode_libdir_flag_spec='-R$libdir'
  11463. hardcode_direct=yes
  11464. hardcode_shlibpath_var=no
  11465. ;;
  11466. newsos6)
  11467. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11468. hardcode_direct=yes
  11469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11470. hardcode_libdir_separator=:
  11471. hardcode_shlibpath_var=no
  11472. ;;
  11473. *nto* | *qnx*)
  11474. ;;
  11475. openbsd*)
  11476. if test -f /usr/libexec/ld.so; then
  11477. hardcode_direct=yes
  11478. hardcode_shlibpath_var=no
  11479. hardcode_direct_absolute=yes
  11480. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11481. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11482. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11483. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11484. export_dynamic_flag_spec='${wl}-E'
  11485. else
  11486. case $host_os in
  11487. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11488. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11489. hardcode_libdir_flag_spec='-R$libdir'
  11490. ;;
  11491. *)
  11492. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11493. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  11494. ;;
  11495. esac
  11496. fi
  11497. else
  11498. ld_shlibs=no
  11499. fi
  11500. ;;
  11501. os2*)
  11502. hardcode_libdir_flag_spec='-L$libdir'
  11503. hardcode_minus_L=yes
  11504. allow_undefined_flag=unsupported
  11505. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  11506. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11507. ;;
  11508. osf3*)
  11509. if test "$GCC" = yes; then
  11510. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11511. 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'
  11512. else
  11513. allow_undefined_flag=' -expect_unresolved \*'
  11514. 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'
  11515. fi
  11516. archive_cmds_need_lc='no'
  11517. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11518. hardcode_libdir_separator=:
  11519. ;;
  11520. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11521. if test "$GCC" = yes; then
  11522. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  11523. 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'
  11524. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  11525. else
  11526. allow_undefined_flag=' -expect_unresolved \*'
  11527. 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'
  11528. 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~
  11529. $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'
  11530. # Both c and cxx compiler support -rpath directly
  11531. hardcode_libdir_flag_spec='-rpath $libdir'
  11532. fi
  11533. archive_cmds_need_lc='no'
  11534. hardcode_libdir_separator=:
  11535. ;;
  11536. solaris*)
  11537. no_undefined_flag=' -z defs'
  11538. if test "$GCC" = yes; then
  11539. wlarc='${wl}'
  11540. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11541. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11542. $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'
  11543. else
  11544. case `$CC -V 2>&1` in
  11545. *"Compilers 5.0"*)
  11546. wlarc=''
  11547. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11548. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11549. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11550. ;;
  11551. *)
  11552. wlarc='${wl}'
  11553. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11554. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11555. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11556. ;;
  11557. esac
  11558. fi
  11559. hardcode_libdir_flag_spec='-R$libdir'
  11560. hardcode_shlibpath_var=no
  11561. case $host_os in
  11562. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11563. *)
  11564. # The compiler driver will combine and reorder linker options,
  11565. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11566. # but is careful enough not to reorder.
  11567. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11568. if test "$GCC" = yes; then
  11569. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11570. else
  11571. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  11572. fi
  11573. ;;
  11574. esac
  11575. link_all_deplibs=yes
  11576. ;;
  11577. sunos4*)
  11578. if test "x$host_vendor" = xsequent; then
  11579. # Use $CC to link under sequent, because it throws in some extra .o
  11580. # files that make .init and .fini sections work.
  11581. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11582. else
  11583. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11584. fi
  11585. hardcode_libdir_flag_spec='-L$libdir'
  11586. hardcode_direct=yes
  11587. hardcode_minus_L=yes
  11588. hardcode_shlibpath_var=no
  11589. ;;
  11590. sysv4)
  11591. case $host_vendor in
  11592. sni)
  11593. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11594. hardcode_direct=yes # is this really true???
  11595. ;;
  11596. siemens)
  11597. ## LD is ld it makes a PLAMLIB
  11598. ## CC just makes a GrossModule.
  11599. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11600. reload_cmds='$CC -r -o $output$reload_objs'
  11601. hardcode_direct=no
  11602. ;;
  11603. motorola)
  11604. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11605. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  11606. ;;
  11607. esac
  11608. runpath_var='LD_RUN_PATH'
  11609. hardcode_shlibpath_var=no
  11610. ;;
  11611. sysv4.3*)
  11612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11613. hardcode_shlibpath_var=no
  11614. export_dynamic_flag_spec='-Bexport'
  11615. ;;
  11616. sysv4*MP*)
  11617. if test -d /usr/nec; then
  11618. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11619. hardcode_shlibpath_var=no
  11620. runpath_var=LD_RUN_PATH
  11621. hardcode_runpath_var=yes
  11622. ld_shlibs=yes
  11623. fi
  11624. ;;
  11625. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11626. no_undefined_flag='${wl}-z,text'
  11627. archive_cmds_need_lc=no
  11628. hardcode_shlibpath_var=no
  11629. runpath_var='LD_RUN_PATH'
  11630. if test "$GCC" = yes; then
  11631. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11632. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11633. else
  11634. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11635. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11636. fi
  11637. ;;
  11638. sysv5* | sco3.2v5* | sco5v6*)
  11639. # Note: We can NOT use -z defs as we might desire, because we do not
  11640. # link with -lc, and that would cause any symbols used from libc to
  11641. # always be unresolved, which means just about no library would
  11642. # ever link correctly. If we're not using GNU ld we use -z text
  11643. # though, which does catch some bad symbols but isn't as heavy-handed
  11644. # as -z defs.
  11645. no_undefined_flag='${wl}-z,text'
  11646. allow_undefined_flag='${wl}-z,nodefs'
  11647. archive_cmds_need_lc=no
  11648. hardcode_shlibpath_var=no
  11649. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  11650. hardcode_libdir_separator=':'
  11651. link_all_deplibs=yes
  11652. export_dynamic_flag_spec='${wl}-Bexport'
  11653. runpath_var='LD_RUN_PATH'
  11654. if test "$GCC" = yes; then
  11655. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11656. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11657. else
  11658. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11659. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11660. fi
  11661. ;;
  11662. uts4*)
  11663. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11664. hardcode_libdir_flag_spec='-L$libdir'
  11665. hardcode_shlibpath_var=no
  11666. ;;
  11667. *)
  11668. ld_shlibs=no
  11669. ;;
  11670. esac
  11671. if test x$host_vendor = xsni; then
  11672. case $host in
  11673. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11674. export_dynamic_flag_spec='${wl}-Blargedynsym'
  11675. ;;
  11676. esac
  11677. fi
  11678. fi
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  11680. $as_echo "$ld_shlibs" >&6; }
  11681. test "$ld_shlibs" = no && can_build_shared=no
  11682. with_gnu_ld=$with_gnu_ld
  11683. #
  11684. # Do we need to explicitly link libc?
  11685. #
  11686. case "x$archive_cmds_need_lc" in
  11687. x|xyes)
  11688. # Assume -lc should be added
  11689. archive_cmds_need_lc=yes
  11690. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11691. case $archive_cmds in
  11692. *'~'*)
  11693. # FIXME: we may have to deal with multi-command sequences.
  11694. ;;
  11695. '$CC '*)
  11696. # Test whether the compiler implicitly links with -lc since on some
  11697. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11698. # to ld, don't add -lc before -lgcc.
  11699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11700. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11701. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  11702. $as_echo_n "(cached) " >&6
  11703. else
  11704. $RM conftest*
  11705. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11706. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11707. (eval $ac_compile) 2>&5
  11708. ac_status=$?
  11709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11710. test $ac_status = 0; } 2>conftest.err; then
  11711. soname=conftest
  11712. lib=conftest
  11713. libobjs=conftest.$ac_objext
  11714. deplibs=
  11715. wl=$lt_prog_compiler_wl
  11716. pic_flag=$lt_prog_compiler_pic
  11717. compiler_flags=-v
  11718. linker_flags=-v
  11719. verstring=
  11720. output_objdir=.
  11721. libname=conftest
  11722. lt_save_allow_undefined_flag=$allow_undefined_flag
  11723. allow_undefined_flag=
  11724. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11725. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11726. ac_status=$?
  11727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11728. test $ac_status = 0; }
  11729. then
  11730. lt_cv_archive_cmds_need_lc=no
  11731. else
  11732. lt_cv_archive_cmds_need_lc=yes
  11733. fi
  11734. allow_undefined_flag=$lt_save_allow_undefined_flag
  11735. else
  11736. cat conftest.err 1>&5
  11737. fi
  11738. $RM conftest*
  11739. fi
  11740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  11741. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  11742. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  11743. ;;
  11744. esac
  11745. fi
  11746. ;;
  11747. esac
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11749. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11750. if test "$GCC" = yes; then
  11751. case $host_os in
  11752. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  11753. *) lt_awk_arg="/^libraries:/" ;;
  11754. esac
  11755. case $host_os in
  11756. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  11757. *) lt_sed_strip_eq="s,=/,/,g" ;;
  11758. esac
  11759. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  11760. case $lt_search_path_spec in
  11761. *\;*)
  11762. # if the path contains ";" then we assume it to be the separator
  11763. # otherwise default to the standard path separator (i.e. ":") - it is
  11764. # assumed that no part of a normal pathname contains ";" but that should
  11765. # okay in the real world where ";" in dirpaths is itself problematic.
  11766. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  11767. ;;
  11768. *)
  11769. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  11770. ;;
  11771. esac
  11772. # Ok, now we have the path, separated by spaces, we can step through it
  11773. # and add multilib dir if necessary.
  11774. lt_tmp_lt_search_path_spec=
  11775. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  11776. for lt_sys_path in $lt_search_path_spec; do
  11777. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  11778. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  11779. else
  11780. test -d "$lt_sys_path" && \
  11781. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  11782. fi
  11783. done
  11784. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  11785. BEGIN {RS=" "; FS="/|\n";} {
  11786. lt_foo="";
  11787. lt_count=0;
  11788. for (lt_i = NF; lt_i > 0; lt_i--) {
  11789. if ($lt_i != "" && $lt_i != ".") {
  11790. if ($lt_i == "..") {
  11791. lt_count++;
  11792. } else {
  11793. if (lt_count == 0) {
  11794. lt_foo="/" $lt_i lt_foo;
  11795. } else {
  11796. lt_count--;
  11797. }
  11798. }
  11799. }
  11800. }
  11801. if (lt_foo != "") { lt_freq[lt_foo]++; }
  11802. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  11803. }'`
  11804. # AWK program above erroneously prepends '/' to C:/dos/paths
  11805. # for these hosts.
  11806. case $host_os in
  11807. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  11808. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  11809. esac
  11810. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  11811. else
  11812. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  11813. fi
  11814. library_names_spec=
  11815. libname_spec='lib$name'
  11816. soname_spec=
  11817. shrext_cmds=".so"
  11818. postinstall_cmds=
  11819. postuninstall_cmds=
  11820. finish_cmds=
  11821. finish_eval=
  11822. shlibpath_var=
  11823. shlibpath_overrides_runpath=unknown
  11824. version_type=none
  11825. dynamic_linker="$host_os ld.so"
  11826. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11827. need_lib_prefix=unknown
  11828. hardcode_into_libs=no
  11829. # when you set need_version to no, make sure it does not cause -set_version
  11830. # flags to be left without arguments
  11831. need_version=unknown
  11832. case $host_os in
  11833. aix3*)
  11834. version_type=linux # correct to gnu/linux during the next big refactor
  11835. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11836. shlibpath_var=LIBPATH
  11837. # AIX 3 has no versioning support, so we append a major version to the name.
  11838. soname_spec='${libname}${release}${shared_ext}$major'
  11839. ;;
  11840. aix[4-9]*)
  11841. version_type=linux # correct to gnu/linux during the next big refactor
  11842. need_lib_prefix=no
  11843. need_version=no
  11844. hardcode_into_libs=yes
  11845. if test "$host_cpu" = ia64; then
  11846. # AIX 5 supports IA64
  11847. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11848. shlibpath_var=LD_LIBRARY_PATH
  11849. else
  11850. # With GCC up to 2.95.x, collect2 would create an import file
  11851. # for dependence libraries. The import file would start with
  11852. # the line `#! .'. This would cause the generated library to
  11853. # depend on `.', always an invalid library. This was fixed in
  11854. # development snapshots of GCC prior to 3.0.
  11855. case $host_os in
  11856. aix4 | aix4.[01] | aix4.[01].*)
  11857. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11858. echo ' yes '
  11859. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11860. :
  11861. else
  11862. can_build_shared=no
  11863. fi
  11864. ;;
  11865. esac
  11866. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11867. # soname into executable. Probably we can add versioning support to
  11868. # collect2, so additional links can be useful in future.
  11869. if test "$aix_use_runtimelinking" = yes; then
  11870. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11871. # instead of lib<name>.a to let people know that these are not
  11872. # typical AIX shared libraries.
  11873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11874. else
  11875. # We preserve .a as extension for shared libraries through AIX4.2
  11876. # and later when we are not doing run time linking.
  11877. library_names_spec='${libname}${release}.a $libname.a'
  11878. soname_spec='${libname}${release}${shared_ext}$major'
  11879. fi
  11880. shlibpath_var=LIBPATH
  11881. fi
  11882. ;;
  11883. amigaos*)
  11884. case $host_cpu in
  11885. powerpc)
  11886. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11887. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11889. ;;
  11890. m68k)
  11891. library_names_spec='$libname.ixlibrary $libname.a'
  11892. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11893. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11894. ;;
  11895. esac
  11896. ;;
  11897. beos*)
  11898. library_names_spec='${libname}${shared_ext}'
  11899. dynamic_linker="$host_os ld.so"
  11900. shlibpath_var=LIBRARY_PATH
  11901. ;;
  11902. bsdi[45]*)
  11903. version_type=linux # correct to gnu/linux during the next big refactor
  11904. need_version=no
  11905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11906. soname_spec='${libname}${release}${shared_ext}$major'
  11907. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11908. shlibpath_var=LD_LIBRARY_PATH
  11909. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11910. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11911. # the default ld.so.conf also contains /usr/contrib/lib and
  11912. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11913. # libtool to hard-code these into programs
  11914. ;;
  11915. cygwin* | mingw* | pw32* | cegcc*)
  11916. version_type=windows
  11917. shrext_cmds=".dll"
  11918. need_version=no
  11919. need_lib_prefix=no
  11920. case $GCC,$cc_basename in
  11921. yes,*)
  11922. # gcc
  11923. library_names_spec='$libname.dll.a'
  11924. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11925. postinstall_cmds='base_file=`basename \${file}`~
  11926. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11927. dldir=$destdir/`dirname \$dlpath`~
  11928. test -d \$dldir || mkdir -p \$dldir~
  11929. $install_prog $dir/$dlname \$dldir/$dlname~
  11930. chmod a+x \$dldir/$dlname~
  11931. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11932. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11933. fi'
  11934. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11935. dlpath=$dir/\$dldll~
  11936. $RM \$dlpath'
  11937. shlibpath_overrides_runpath=yes
  11938. case $host_os in
  11939. cygwin*)
  11940. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11941. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11942. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  11943. ;;
  11944. mingw* | cegcc*)
  11945. # MinGW DLLs use traditional 'lib' prefix
  11946. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11947. ;;
  11948. pw32*)
  11949. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11950. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11951. ;;
  11952. esac
  11953. dynamic_linker='Win32 ld.exe'
  11954. ;;
  11955. *,cl*)
  11956. # Native MSVC
  11957. libname_spec='$name'
  11958. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11959. library_names_spec='${libname}.dll.lib'
  11960. case $build_os in
  11961. mingw*)
  11962. sys_lib_search_path_spec=
  11963. lt_save_ifs=$IFS
  11964. IFS=';'
  11965. for lt_path in $LIB
  11966. do
  11967. IFS=$lt_save_ifs
  11968. # Let DOS variable expansion print the short 8.3 style file name.
  11969. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  11970. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  11971. done
  11972. IFS=$lt_save_ifs
  11973. # Convert to MSYS style.
  11974. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  11975. ;;
  11976. cygwin*)
  11977. # Convert to unix form, then to dos form, then back to unix form
  11978. # but this time dos style (no spaces!) so that the unix form looks
  11979. # like /cygdrive/c/PROGRA~1:/cygdr...
  11980. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  11981. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  11982. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11983. ;;
  11984. *)
  11985. sys_lib_search_path_spec="$LIB"
  11986. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11987. # It is most probably a Windows format PATH.
  11988. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11989. else
  11990. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11991. fi
  11992. # FIXME: find the short name or the path components, as spaces are
  11993. # common. (e.g. "Program Files" -> "PROGRA~1")
  11994. ;;
  11995. esac
  11996. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11997. postinstall_cmds='base_file=`basename \${file}`~
  11998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11999. dldir=$destdir/`dirname \$dlpath`~
  12000. test -d \$dldir || mkdir -p \$dldir~
  12001. $install_prog $dir/$dlname \$dldir/$dlname'
  12002. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12003. dlpath=$dir/\$dldll~
  12004. $RM \$dlpath'
  12005. shlibpath_overrides_runpath=yes
  12006. dynamic_linker='Win32 link.exe'
  12007. ;;
  12008. *)
  12009. # Assume MSVC wrapper
  12010. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12011. dynamic_linker='Win32 ld.exe'
  12012. ;;
  12013. esac
  12014. # FIXME: first we should search . and the directory the executable is in
  12015. shlibpath_var=PATH
  12016. ;;
  12017. darwin* | rhapsody*)
  12018. dynamic_linker="$host_os dyld"
  12019. version_type=darwin
  12020. need_lib_prefix=no
  12021. need_version=no
  12022. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12023. soname_spec='${libname}${release}${major}$shared_ext'
  12024. shlibpath_overrides_runpath=yes
  12025. shlibpath_var=DYLD_LIBRARY_PATH
  12026. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12027. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  12028. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12029. ;;
  12030. dgux*)
  12031. version_type=linux # correct to gnu/linux during the next big refactor
  12032. need_lib_prefix=no
  12033. need_version=no
  12034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12035. soname_spec='${libname}${release}${shared_ext}$major'
  12036. shlibpath_var=LD_LIBRARY_PATH
  12037. ;;
  12038. freebsd* | dragonfly*)
  12039. # DragonFly does not have aout. When/if they implement a new
  12040. # versioning mechanism, adjust this.
  12041. if test -x /usr/bin/objformat; then
  12042. objformat=`/usr/bin/objformat`
  12043. else
  12044. case $host_os in
  12045. freebsd[23].*) objformat=aout ;;
  12046. *) objformat=elf ;;
  12047. esac
  12048. fi
  12049. version_type=freebsd-$objformat
  12050. case $version_type in
  12051. freebsd-elf*)
  12052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12053. need_version=no
  12054. need_lib_prefix=no
  12055. ;;
  12056. freebsd-*)
  12057. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12058. need_version=yes
  12059. ;;
  12060. esac
  12061. shlibpath_var=LD_LIBRARY_PATH
  12062. case $host_os in
  12063. freebsd2.*)
  12064. shlibpath_overrides_runpath=yes
  12065. ;;
  12066. freebsd3.[01]* | freebsdelf3.[01]*)
  12067. shlibpath_overrides_runpath=yes
  12068. hardcode_into_libs=yes
  12069. ;;
  12070. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12071. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12072. shlibpath_overrides_runpath=no
  12073. hardcode_into_libs=yes
  12074. ;;
  12075. *) # from 4.6 on, and DragonFly
  12076. shlibpath_overrides_runpath=yes
  12077. hardcode_into_libs=yes
  12078. ;;
  12079. esac
  12080. ;;
  12081. haiku*)
  12082. version_type=linux # correct to gnu/linux during the next big refactor
  12083. need_lib_prefix=no
  12084. need_version=no
  12085. dynamic_linker="$host_os runtime_loader"
  12086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12087. soname_spec='${libname}${release}${shared_ext}$major'
  12088. shlibpath_var=LIBRARY_PATH
  12089. shlibpath_overrides_runpath=yes
  12090. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12091. hardcode_into_libs=yes
  12092. ;;
  12093. hpux9* | hpux10* | hpux11*)
  12094. # Give a soname corresponding to the major version so that dld.sl refuses to
  12095. # link against other versions.
  12096. version_type=sunos
  12097. need_lib_prefix=no
  12098. need_version=no
  12099. case $host_cpu in
  12100. ia64*)
  12101. shrext_cmds='.so'
  12102. hardcode_into_libs=yes
  12103. dynamic_linker="$host_os dld.so"
  12104. shlibpath_var=LD_LIBRARY_PATH
  12105. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12107. soname_spec='${libname}${release}${shared_ext}$major'
  12108. if test "X$HPUX_IA64_MODE" = X32; then
  12109. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12110. else
  12111. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12112. fi
  12113. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12114. ;;
  12115. hppa*64*)
  12116. shrext_cmds='.sl'
  12117. hardcode_into_libs=yes
  12118. dynamic_linker="$host_os dld.sl"
  12119. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12120. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12122. soname_spec='${libname}${release}${shared_ext}$major'
  12123. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12124. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12125. ;;
  12126. *)
  12127. shrext_cmds='.sl'
  12128. dynamic_linker="$host_os dld.sl"
  12129. shlibpath_var=SHLIB_PATH
  12130. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12132. soname_spec='${libname}${release}${shared_ext}$major'
  12133. ;;
  12134. esac
  12135. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12136. postinstall_cmds='chmod 555 $lib'
  12137. # or fails outright, so override atomically:
  12138. install_override_mode=555
  12139. ;;
  12140. interix[3-9]*)
  12141. version_type=linux # correct to gnu/linux during the next big refactor
  12142. need_lib_prefix=no
  12143. need_version=no
  12144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12145. soname_spec='${libname}${release}${shared_ext}$major'
  12146. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12147. shlibpath_var=LD_LIBRARY_PATH
  12148. shlibpath_overrides_runpath=no
  12149. hardcode_into_libs=yes
  12150. ;;
  12151. irix5* | irix6* | nonstopux*)
  12152. case $host_os in
  12153. nonstopux*) version_type=nonstopux ;;
  12154. *)
  12155. if test "$lt_cv_prog_gnu_ld" = yes; then
  12156. version_type=linux # correct to gnu/linux during the next big refactor
  12157. else
  12158. version_type=irix
  12159. fi ;;
  12160. esac
  12161. need_lib_prefix=no
  12162. need_version=no
  12163. soname_spec='${libname}${release}${shared_ext}$major'
  12164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12165. case $host_os in
  12166. irix5* | nonstopux*)
  12167. libsuff= shlibsuff=
  12168. ;;
  12169. *)
  12170. case $LD in # libtool.m4 will add one of these switches to LD
  12171. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12172. libsuff= shlibsuff= libmagic=32-bit;;
  12173. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12174. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12175. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12176. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12177. *) libsuff= shlibsuff= libmagic=never-match;;
  12178. esac
  12179. ;;
  12180. esac
  12181. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12182. shlibpath_overrides_runpath=no
  12183. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12184. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12185. hardcode_into_libs=yes
  12186. ;;
  12187. # No shared lib support for Linux oldld, aout, or coff.
  12188. linux*oldld* | linux*aout* | linux*coff*)
  12189. dynamic_linker=no
  12190. ;;
  12191. # This must be glibc/ELF.
  12192. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12193. version_type=linux # correct to gnu/linux during the next big refactor
  12194. need_lib_prefix=no
  12195. need_version=no
  12196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12197. soname_spec='${libname}${release}${shared_ext}$major'
  12198. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12199. shlibpath_var=LD_LIBRARY_PATH
  12200. shlibpath_overrides_runpath=no
  12201. # Some binutils ld are patched to set DT_RUNPATH
  12202. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12203. $as_echo_n "(cached) " >&6
  12204. else
  12205. lt_cv_shlibpath_overrides_runpath=no
  12206. save_LDFLAGS=$LDFLAGS
  12207. save_libdir=$libdir
  12208. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  12209. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  12210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12211. /* end confdefs.h. */
  12212. int main (void)
  12213. {
  12214. ;
  12215. return 0;
  12216. }
  12217. _ACEOF
  12218. if ac_fn_c_try_link "$LINENO"; then :
  12219. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12220. lt_cv_shlibpath_overrides_runpath=yes
  12221. fi
  12222. fi
  12223. rm -f core conftest.err conftest.$ac_objext \
  12224. conftest$ac_exeext conftest.$ac_ext
  12225. LDFLAGS=$save_LDFLAGS
  12226. libdir=$save_libdir
  12227. fi
  12228. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12229. # This implies no fast_install, which is unacceptable.
  12230. # Some rework will be needed to allow for fast_install
  12231. # before this can be enabled.
  12232. hardcode_into_libs=yes
  12233. # Append ld.so.conf contents to the search path
  12234. if test -f /etc/ld.so.conf; then
  12235. 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' ' '`
  12236. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12237. fi
  12238. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12239. # powerpc, because MkLinux only supported shared libraries with the
  12240. # GNU dynamic linker. Since this was broken with cross compilers,
  12241. # most powerpc-linux boxes support dynamic linking these days and
  12242. # people can always --disable-shared, the test was removed, and we
  12243. # assume the GNU/Linux dynamic linker is in use.
  12244. dynamic_linker='GNU/Linux ld.so'
  12245. ;;
  12246. netbsdelf*-gnu)
  12247. version_type=linux
  12248. need_lib_prefix=no
  12249. need_version=no
  12250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12251. soname_spec='${libname}${release}${shared_ext}$major'
  12252. shlibpath_var=LD_LIBRARY_PATH
  12253. shlibpath_overrides_runpath=no
  12254. hardcode_into_libs=yes
  12255. dynamic_linker='NetBSD ld.elf_so'
  12256. ;;
  12257. netbsd*)
  12258. version_type=sunos
  12259. need_lib_prefix=no
  12260. need_version=no
  12261. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12264. dynamic_linker='NetBSD (a.out) ld.so'
  12265. else
  12266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12267. soname_spec='${libname}${release}${shared_ext}$major'
  12268. dynamic_linker='NetBSD ld.elf_so'
  12269. fi
  12270. shlibpath_var=LD_LIBRARY_PATH
  12271. shlibpath_overrides_runpath=yes
  12272. hardcode_into_libs=yes
  12273. ;;
  12274. newsos6)
  12275. version_type=linux # correct to gnu/linux during the next big refactor
  12276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12277. shlibpath_var=LD_LIBRARY_PATH
  12278. shlibpath_overrides_runpath=yes
  12279. ;;
  12280. *nto* | *qnx*)
  12281. version_type=qnx
  12282. need_lib_prefix=no
  12283. need_version=no
  12284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12285. soname_spec='${libname}${release}${shared_ext}$major'
  12286. shlibpath_var=LD_LIBRARY_PATH
  12287. shlibpath_overrides_runpath=no
  12288. hardcode_into_libs=yes
  12289. dynamic_linker='ldqnx.so'
  12290. ;;
  12291. openbsd*)
  12292. version_type=sunos
  12293. sys_lib_dlsearch_path_spec="/usr/lib"
  12294. need_lib_prefix=no
  12295. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12296. case $host_os in
  12297. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12298. *) need_version=no ;;
  12299. esac
  12300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12301. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12302. shlibpath_var=LD_LIBRARY_PATH
  12303. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12304. case $host_os in
  12305. openbsd2.[89] | openbsd2.[89].*)
  12306. shlibpath_overrides_runpath=no
  12307. ;;
  12308. *)
  12309. shlibpath_overrides_runpath=yes
  12310. ;;
  12311. esac
  12312. else
  12313. shlibpath_overrides_runpath=yes
  12314. fi
  12315. ;;
  12316. os2*)
  12317. libname_spec='$name'
  12318. shrext_cmds=".dll"
  12319. need_lib_prefix=no
  12320. library_names_spec='$libname${shared_ext} $libname.a'
  12321. dynamic_linker='OS/2 ld.exe'
  12322. shlibpath_var=LIBPATH
  12323. ;;
  12324. osf3* | osf4* | osf5*)
  12325. version_type=osf
  12326. need_lib_prefix=no
  12327. need_version=no
  12328. soname_spec='${libname}${release}${shared_ext}$major'
  12329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12330. shlibpath_var=LD_LIBRARY_PATH
  12331. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12332. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12333. ;;
  12334. rdos*)
  12335. dynamic_linker=no
  12336. ;;
  12337. solaris*)
  12338. version_type=linux # correct to gnu/linux during the next big refactor
  12339. need_lib_prefix=no
  12340. need_version=no
  12341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12342. soname_spec='${libname}${release}${shared_ext}$major'
  12343. shlibpath_var=LD_LIBRARY_PATH
  12344. shlibpath_overrides_runpath=yes
  12345. hardcode_into_libs=yes
  12346. # ldd complains unless libraries are executable
  12347. postinstall_cmds='chmod +x $lib'
  12348. ;;
  12349. sunos4*)
  12350. version_type=sunos
  12351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12352. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12353. shlibpath_var=LD_LIBRARY_PATH
  12354. shlibpath_overrides_runpath=yes
  12355. if test "$with_gnu_ld" = yes; then
  12356. need_lib_prefix=no
  12357. fi
  12358. need_version=yes
  12359. ;;
  12360. sysv4 | sysv4.3*)
  12361. version_type=linux # correct to gnu/linux during the next big refactor
  12362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12363. soname_spec='${libname}${release}${shared_ext}$major'
  12364. shlibpath_var=LD_LIBRARY_PATH
  12365. case $host_vendor in
  12366. sni)
  12367. shlibpath_overrides_runpath=no
  12368. need_lib_prefix=no
  12369. runpath_var=LD_RUN_PATH
  12370. ;;
  12371. siemens)
  12372. need_lib_prefix=no
  12373. ;;
  12374. motorola)
  12375. need_lib_prefix=no
  12376. need_version=no
  12377. shlibpath_overrides_runpath=no
  12378. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12379. ;;
  12380. esac
  12381. ;;
  12382. sysv4*MP*)
  12383. if test -d /usr/nec ;then
  12384. version_type=linux # correct to gnu/linux during the next big refactor
  12385. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12386. soname_spec='$libname${shared_ext}.$major'
  12387. shlibpath_var=LD_LIBRARY_PATH
  12388. fi
  12389. ;;
  12390. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12391. version_type=freebsd-elf
  12392. need_lib_prefix=no
  12393. need_version=no
  12394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12395. soname_spec='${libname}${release}${shared_ext}$major'
  12396. shlibpath_var=LD_LIBRARY_PATH
  12397. shlibpath_overrides_runpath=yes
  12398. hardcode_into_libs=yes
  12399. if test "$with_gnu_ld" = yes; then
  12400. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12401. else
  12402. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12403. case $host_os in
  12404. sco3.2v5*)
  12405. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12406. ;;
  12407. esac
  12408. fi
  12409. sys_lib_dlsearch_path_spec='/usr/lib'
  12410. ;;
  12411. tpf*)
  12412. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12413. version_type=linux # correct to gnu/linux during the next big refactor
  12414. need_lib_prefix=no
  12415. need_version=no
  12416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12417. shlibpath_var=LD_LIBRARY_PATH
  12418. shlibpath_overrides_runpath=no
  12419. hardcode_into_libs=yes
  12420. ;;
  12421. uts4*)
  12422. version_type=linux # correct to gnu/linux during the next big refactor
  12423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12424. soname_spec='${libname}${release}${shared_ext}$major'
  12425. shlibpath_var=LD_LIBRARY_PATH
  12426. ;;
  12427. *)
  12428. dynamic_linker=no
  12429. ;;
  12430. esac
  12431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12432. $as_echo "$dynamic_linker" >&6; }
  12433. test "$dynamic_linker" = no && can_build_shared=no
  12434. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12435. if test "$GCC" = yes; then
  12436. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12437. fi
  12438. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12439. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12440. fi
  12441. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12442. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12445. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12446. hardcode_action=
  12447. if test -n "$hardcode_libdir_flag_spec" ||
  12448. test -n "$runpath_var" ||
  12449. test "X$hardcode_automatic" = "Xyes" ; then
  12450. # We can hardcode non-existent directories.
  12451. if test "$hardcode_direct" != no &&
  12452. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12453. # have to relink, otherwise we might link with an installed library
  12454. # when we should be linking with a yet-to-be-installed one
  12455. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  12456. test "$hardcode_minus_L" != no; then
  12457. # Linking always hardcodes the temporary library directory.
  12458. hardcode_action=relink
  12459. else
  12460. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12461. hardcode_action=immediate
  12462. fi
  12463. else
  12464. # We cannot hardcode anything, or else we can only hardcode existing
  12465. # directories.
  12466. hardcode_action=unsupported
  12467. fi
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  12469. $as_echo "$hardcode_action" >&6; }
  12470. if test "$hardcode_action" = relink ||
  12471. test "$inherit_rpath" = yes; then
  12472. # Fast installation is not supported
  12473. enable_fast_install=no
  12474. elif test "$shlibpath_overrides_runpath" = yes ||
  12475. test "$enable_shared" = no; then
  12476. # Fast installation is not necessary
  12477. enable_fast_install=needless
  12478. fi
  12479. if test "x$enable_dlopen" != xyes; then
  12480. enable_dlopen=unknown
  12481. enable_dlopen_self=unknown
  12482. enable_dlopen_self_static=unknown
  12483. else
  12484. lt_cv_dlopen=no
  12485. lt_cv_dlopen_libs=
  12486. case $host_os in
  12487. beos*)
  12488. lt_cv_dlopen="load_add_on"
  12489. lt_cv_dlopen_libs=
  12490. lt_cv_dlopen_self=yes
  12491. ;;
  12492. mingw* | pw32* | cegcc*)
  12493. lt_cv_dlopen="LoadLibrary"
  12494. lt_cv_dlopen_libs=
  12495. ;;
  12496. cygwin*)
  12497. lt_cv_dlopen="dlopen"
  12498. lt_cv_dlopen_libs=
  12499. ;;
  12500. darwin*)
  12501. # if libdl is installed we need to link against it
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12503. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12504. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12505. $as_echo_n "(cached) " >&6
  12506. else
  12507. ac_check_lib_save_LIBS=$LIBS
  12508. LIBS="-ldl $LIBS"
  12509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12510. /* end confdefs.h. */
  12511. #ifdef __cplusplus
  12512. extern "C"
  12513. #endif
  12514. char dlopen ();
  12515. int main (void)
  12516. {
  12517. return dlopen ();
  12518. ;
  12519. return 0;
  12520. }
  12521. _ACEOF
  12522. if ac_fn_c_try_link "$LINENO"; then :
  12523. ac_cv_lib_dl_dlopen=yes
  12524. else
  12525. ac_cv_lib_dl_dlopen=no
  12526. fi
  12527. rm -f core conftest.err conftest.$ac_objext \
  12528. conftest$ac_exeext conftest.$ac_ext
  12529. LIBS=$ac_check_lib_save_LIBS
  12530. fi
  12531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12532. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12533. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12534. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12535. else
  12536. lt_cv_dlopen="dyld"
  12537. lt_cv_dlopen_libs=
  12538. lt_cv_dlopen_self=yes
  12539. fi
  12540. ;;
  12541. *)
  12542. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  12543. if test "x$ac_cv_func_shl_load" = xyes; then :
  12544. lt_cv_dlopen="shl_load"
  12545. else
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  12547. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  12548. if ${ac_cv_lib_dld_shl_load+:} false; then :
  12549. $as_echo_n "(cached) " >&6
  12550. else
  12551. ac_check_lib_save_LIBS=$LIBS
  12552. LIBS="-ldld $LIBS"
  12553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12554. /* end confdefs.h. */
  12555. #ifdef __cplusplus
  12556. extern "C"
  12557. #endif
  12558. char shl_load ();
  12559. int main (void)
  12560. {
  12561. return shl_load ();
  12562. ;
  12563. return 0;
  12564. }
  12565. _ACEOF
  12566. if ac_fn_c_try_link "$LINENO"; then :
  12567. ac_cv_lib_dld_shl_load=yes
  12568. else
  12569. ac_cv_lib_dld_shl_load=no
  12570. fi
  12571. rm -f core conftest.err conftest.$ac_objext \
  12572. conftest$ac_exeext conftest.$ac_ext
  12573. LIBS=$ac_check_lib_save_LIBS
  12574. fi
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  12576. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  12577. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  12578. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  12579. else
  12580. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  12581. if test "x$ac_cv_func_dlopen" = xyes; then :
  12582. lt_cv_dlopen="dlopen"
  12583. else
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12585. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12586. if ${ac_cv_lib_dl_dlopen+:} false; then :
  12587. $as_echo_n "(cached) " >&6
  12588. else
  12589. ac_check_lib_save_LIBS=$LIBS
  12590. LIBS="-ldl $LIBS"
  12591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12592. /* end confdefs.h. */
  12593. #ifdef __cplusplus
  12594. extern "C"
  12595. #endif
  12596. char dlopen ();
  12597. int main (void)
  12598. {
  12599. return dlopen ();
  12600. ;
  12601. return 0;
  12602. }
  12603. _ACEOF
  12604. if ac_fn_c_try_link "$LINENO"; then :
  12605. ac_cv_lib_dl_dlopen=yes
  12606. else
  12607. ac_cv_lib_dl_dlopen=no
  12608. fi
  12609. rm -f core conftest.err conftest.$ac_objext \
  12610. conftest$ac_exeext conftest.$ac_ext
  12611. LIBS=$ac_check_lib_save_LIBS
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12614. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12615. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  12616. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  12617. else
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  12619. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  12620. if ${ac_cv_lib_svld_dlopen+:} false; then :
  12621. $as_echo_n "(cached) " >&6
  12622. else
  12623. ac_check_lib_save_LIBS=$LIBS
  12624. LIBS="-lsvld $LIBS"
  12625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12626. /* end confdefs.h. */
  12627. #ifdef __cplusplus
  12628. extern "C"
  12629. #endif
  12630. char dlopen ();
  12631. int main (void)
  12632. {
  12633. return dlopen ();
  12634. ;
  12635. return 0;
  12636. }
  12637. _ACEOF
  12638. if ac_fn_c_try_link "$LINENO"; then :
  12639. ac_cv_lib_svld_dlopen=yes
  12640. else
  12641. ac_cv_lib_svld_dlopen=no
  12642. fi
  12643. rm -f core conftest.err conftest.$ac_objext \
  12644. conftest$ac_exeext conftest.$ac_ext
  12645. LIBS=$ac_check_lib_save_LIBS
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  12648. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  12649. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  12650. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  12651. else
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  12653. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  12654. if ${ac_cv_lib_dld_dld_link+:} false; then :
  12655. $as_echo_n "(cached) " >&6
  12656. else
  12657. ac_check_lib_save_LIBS=$LIBS
  12658. LIBS="-ldld $LIBS"
  12659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12660. /* end confdefs.h. */
  12661. #ifdef __cplusplus
  12662. extern "C"
  12663. #endif
  12664. char dld_link ();
  12665. int main (void)
  12666. {
  12667. return dld_link ();
  12668. ;
  12669. return 0;
  12670. }
  12671. _ACEOF
  12672. if ac_fn_c_try_link "$LINENO"; then :
  12673. ac_cv_lib_dld_dld_link=yes
  12674. else
  12675. ac_cv_lib_dld_dld_link=no
  12676. fi
  12677. rm -f core conftest.err conftest.$ac_objext \
  12678. conftest$ac_exeext conftest.$ac_ext
  12679. LIBS=$ac_check_lib_save_LIBS
  12680. fi
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  12682. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  12683. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  12684. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  12685. fi
  12686. fi
  12687. fi
  12688. fi
  12689. fi
  12690. fi
  12691. ;;
  12692. esac
  12693. if test "x$lt_cv_dlopen" != xno; then
  12694. enable_dlopen=yes
  12695. else
  12696. enable_dlopen=no
  12697. fi
  12698. case $lt_cv_dlopen in
  12699. dlopen)
  12700. save_CPPFLAGS="$CPPFLAGS"
  12701. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  12702. save_LDFLAGS="$LDFLAGS"
  12703. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  12704. save_LIBS="$LIBS"
  12705. LIBS="$lt_cv_dlopen_libs $LIBS"
  12706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  12707. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  12708. if ${lt_cv_dlopen_self+:} false; then :
  12709. $as_echo_n "(cached) " >&6
  12710. else
  12711. if test "$cross_compiling" = yes; then :
  12712. lt_cv_dlopen_self=cross
  12713. else
  12714. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12715. lt_status=$lt_dlunknown
  12716. cat > conftest.$ac_ext <<_LT_EOF
  12717. #line $LINENO "configure"
  12718. #include "confdefs.h"
  12719. #if HAVE_DLFCN_H
  12720. #include <dlfcn.h>
  12721. #endif
  12722. #include <stdio.h>
  12723. #ifdef RTLD_GLOBAL
  12724. # define LT_DLGLOBAL RTLD_GLOBAL
  12725. #else
  12726. # ifdef DL_GLOBAL
  12727. # define LT_DLGLOBAL DL_GLOBAL
  12728. # else
  12729. # define LT_DLGLOBAL 0
  12730. # endif
  12731. #endif
  12732. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12733. find out it does not work in some platform. */
  12734. #ifndef LT_DLLAZY_OR_NOW
  12735. # ifdef RTLD_LAZY
  12736. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12737. # else
  12738. # ifdef DL_LAZY
  12739. # define LT_DLLAZY_OR_NOW DL_LAZY
  12740. # else
  12741. # ifdef RTLD_NOW
  12742. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12743. # else
  12744. # ifdef DL_NOW
  12745. # define LT_DLLAZY_OR_NOW DL_NOW
  12746. # else
  12747. # define LT_DLLAZY_OR_NOW 0
  12748. # endif
  12749. # endif
  12750. # endif
  12751. # endif
  12752. #endif
  12753. /* When -fvisbility=hidden is used, assume the code has been annotated
  12754. correspondingly for the symbols needed. */
  12755. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12756. int fnord () __attribute__((visibility("default")));
  12757. #endif
  12758. int fnord () { return 42; }
  12759. int main ()
  12760. {
  12761. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12762. int status = $lt_dlunknown;
  12763. if (self)
  12764. {
  12765. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12766. else
  12767. {
  12768. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12769. else puts (dlerror ());
  12770. }
  12771. /* dlclose (self); */
  12772. }
  12773. else
  12774. puts (dlerror ());
  12775. return status;
  12776. }
  12777. _LT_EOF
  12778. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12779. (eval $ac_link) 2>&5
  12780. ac_status=$?
  12781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12782. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12783. (./conftest; exit; ) >&5 2>/dev/null
  12784. lt_status=$?
  12785. case x$lt_status in
  12786. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  12787. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  12788. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  12789. esac
  12790. else :
  12791. # compilation failed
  12792. lt_cv_dlopen_self=no
  12793. fi
  12794. fi
  12795. rm -fr conftest*
  12796. fi
  12797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  12798. $as_echo "$lt_cv_dlopen_self" >&6; }
  12799. if test "x$lt_cv_dlopen_self" = xyes; then
  12800. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  12802. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  12803. if ${lt_cv_dlopen_self_static+:} false; then :
  12804. $as_echo_n "(cached) " >&6
  12805. else
  12806. if test "$cross_compiling" = yes; then :
  12807. lt_cv_dlopen_self_static=cross
  12808. else
  12809. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  12810. lt_status=$lt_dlunknown
  12811. cat > conftest.$ac_ext <<_LT_EOF
  12812. #line $LINENO "configure"
  12813. #include "confdefs.h"
  12814. #if HAVE_DLFCN_H
  12815. #include <dlfcn.h>
  12816. #endif
  12817. #include <stdio.h>
  12818. #ifdef RTLD_GLOBAL
  12819. # define LT_DLGLOBAL RTLD_GLOBAL
  12820. #else
  12821. # ifdef DL_GLOBAL
  12822. # define LT_DLGLOBAL DL_GLOBAL
  12823. # else
  12824. # define LT_DLGLOBAL 0
  12825. # endif
  12826. #endif
  12827. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  12828. find out it does not work in some platform. */
  12829. #ifndef LT_DLLAZY_OR_NOW
  12830. # ifdef RTLD_LAZY
  12831. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  12832. # else
  12833. # ifdef DL_LAZY
  12834. # define LT_DLLAZY_OR_NOW DL_LAZY
  12835. # else
  12836. # ifdef RTLD_NOW
  12837. # define LT_DLLAZY_OR_NOW RTLD_NOW
  12838. # else
  12839. # ifdef DL_NOW
  12840. # define LT_DLLAZY_OR_NOW DL_NOW
  12841. # else
  12842. # define LT_DLLAZY_OR_NOW 0
  12843. # endif
  12844. # endif
  12845. # endif
  12846. # endif
  12847. #endif
  12848. /* When -fvisbility=hidden is used, assume the code has been annotated
  12849. correspondingly for the symbols needed. */
  12850. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  12851. int fnord () __attribute__((visibility("default")));
  12852. #endif
  12853. int fnord () { return 42; }
  12854. int main ()
  12855. {
  12856. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  12857. int status = $lt_dlunknown;
  12858. if (self)
  12859. {
  12860. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  12861. else
  12862. {
  12863. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  12864. else puts (dlerror ());
  12865. }
  12866. /* dlclose (self); */
  12867. }
  12868. else
  12869. puts (dlerror ());
  12870. return status;
  12871. }
  12872. _LT_EOF
  12873. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12874. (eval $ac_link) 2>&5
  12875. ac_status=$?
  12876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12877. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  12878. (./conftest; exit; ) >&5 2>/dev/null
  12879. lt_status=$?
  12880. case x$lt_status in
  12881. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  12882. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  12883. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  12884. esac
  12885. else :
  12886. # compilation failed
  12887. lt_cv_dlopen_self_static=no
  12888. fi
  12889. fi
  12890. rm -fr conftest*
  12891. fi
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  12893. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  12894. fi
  12895. CPPFLAGS="$save_CPPFLAGS"
  12896. LDFLAGS="$save_LDFLAGS"
  12897. LIBS="$save_LIBS"
  12898. ;;
  12899. esac
  12900. case $lt_cv_dlopen_self in
  12901. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  12902. *) enable_dlopen_self=unknown ;;
  12903. esac
  12904. case $lt_cv_dlopen_self_static in
  12905. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  12906. *) enable_dlopen_self_static=unknown ;;
  12907. esac
  12908. fi
  12909. striplib=
  12910. old_striplib=
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  12912. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  12913. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  12914. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  12915. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12917. $as_echo "yes" >&6; }
  12918. else
  12919. # FIXME - insert some real tests, host_os isn't really good enough
  12920. case $host_os in
  12921. darwin*)
  12922. if test -n "$STRIP" ; then
  12923. striplib="$STRIP -x"
  12924. old_striplib="$STRIP -S"
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12926. $as_echo "yes" >&6; }
  12927. else
  12928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12929. $as_echo "no" >&6; }
  12930. fi
  12931. ;;
  12932. *)
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12934. $as_echo "no" >&6; }
  12935. ;;
  12936. esac
  12937. fi
  12938. # Report which library types will actually be built
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  12940. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  12941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  12942. $as_echo "$can_build_shared" >&6; }
  12943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12944. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12945. test "$can_build_shared" = "no" && enable_shared=no
  12946. # On AIX, shared libraries and static libraries use the same namespace, and
  12947. # are all built from PIC.
  12948. case $host_os in
  12949. aix3*)
  12950. test "$enable_shared" = yes && enable_static=no
  12951. if test -n "$RANLIB"; then
  12952. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12953. postinstall_cmds='$RANLIB $lib'
  12954. fi
  12955. ;;
  12956. aix[4-9]*)
  12957. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12958. test "$enable_shared" = yes && enable_static=no
  12959. fi
  12960. ;;
  12961. esac
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  12963. $as_echo "$enable_shared" >&6; }
  12964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  12965. $as_echo_n "checking whether to build static libraries... " >&6; }
  12966. # Make sure either enable_shared or enable_static is yes.
  12967. test "$enable_shared" = yes || enable_static=yes
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  12969. $as_echo "$enable_static" >&6; }
  12970. fi
  12971. ac_ext=c
  12972. ac_cpp='$CPP $CPPFLAGS'
  12973. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12974. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12975. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12976. CC="$lt_save_CC"
  12977. ac_config_commands="$ac_config_commands libtool"
  12978. # Only expand once:
  12979. ## --------------------- ##
  12980. ## End of libtool code ##
  12981. ## --------------------- ##
  12982. #
  12983. # Verify if finally libtool shared libraries will be built
  12984. #
  12985. case "x$enable_shared" in # ((
  12986. xyes | xno)
  12987. xc_lt_build_shared=$enable_shared
  12988. ;;
  12989. *)
  12990. as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
  12991. ;;
  12992. esac
  12993. #
  12994. # Verify if finally libtool static libraries will be built
  12995. #
  12996. case "x$enable_static" in # ((
  12997. xyes | xno)
  12998. xc_lt_build_static=$enable_static
  12999. ;;
  13000. *)
  13001. as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
  13002. ;;
  13003. esac
  13004. #
  13005. # Verify if libtool shared libraries should be linked using flag -version-info
  13006. #
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
  13008. $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
  13009. xc_lt_shlib_use_version_info='yes'
  13010. if test "x$version_type" = 'xnone'; then
  13011. xc_lt_shlib_use_version_info='no'
  13012. fi
  13013. case $host_os in # (
  13014. amigaos*)
  13015. xc_lt_shlib_use_version_info='yes'
  13016. ;;
  13017. esac
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
  13019. $as_echo "$xc_lt_shlib_use_version_info" >&6; }
  13020. #
  13021. # Verify if libtool shared libraries should be linked using flag -no-undefined
  13022. #
  13023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
  13024. $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
  13025. xc_lt_shlib_use_no_undefined='no'
  13026. if test "x$allow_undefined" = 'xno'; then
  13027. xc_lt_shlib_use_no_undefined='yes'
  13028. elif test "x$allow_undefined_flag" = 'xunsupported'; then
  13029. xc_lt_shlib_use_no_undefined='yes'
  13030. fi
  13031. case $host_os in # (
  13032. cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
  13033. xc_lt_shlib_use_no_undefined='yes'
  13034. ;;
  13035. esac
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
  13037. $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
  13038. #
  13039. # Verify if libtool shared libraries should be linked using flag -mimpure-text
  13040. #
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
  13042. $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
  13043. xc_lt_shlib_use_mimpure_text='no'
  13044. case $host_os in # (
  13045. solaris2*)
  13046. if test "x$GCC" = 'xyes'; then
  13047. xc_lt_shlib_use_mimpure_text='yes'
  13048. fi
  13049. ;;
  13050. esac
  13051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
  13052. $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
  13053. #
  13054. # Find out wether libtool libraries would be built wit PIC
  13055. #
  13056. case "x$pic_mode" in # ((((
  13057. xdefault)
  13058. xc_lt_build_shared_with_pic='yes'
  13059. xc_lt_build_static_with_pic='no'
  13060. ;;
  13061. xyes)
  13062. xc_lt_build_shared_with_pic='yes'
  13063. xc_lt_build_static_with_pic='yes'
  13064. ;;
  13065. xno)
  13066. xc_lt_build_shared_with_pic='no'
  13067. xc_lt_build_static_with_pic='no'
  13068. ;;
  13069. *)
  13070. xc_lt_build_shared_with_pic='unknown'
  13071. xc_lt_build_static_with_pic='unknown'
  13072. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
  13073. $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
  13074. ;;
  13075. esac
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
  13077. $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
  13078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
  13079. $as_echo "$xc_lt_build_shared_with_pic" >&6; }
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
  13081. $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
  13082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
  13083. $as_echo "$xc_lt_build_static_with_pic" >&6; }
  13084. #
  13085. # Verify if libtool shared libraries will be built while static not built
  13086. #
  13087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
  13088. $as_echo_n "checking whether to build shared libraries only... " >&6; }
  13089. if test "$xc_lt_build_shared" = 'yes' &&
  13090. test "$xc_lt_build_static" = 'no'; then
  13091. xc_lt_build_shared_only='yes'
  13092. else
  13093. xc_lt_build_shared_only='no'
  13094. fi
  13095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
  13096. $as_echo "$xc_lt_build_shared_only" >&6; }
  13097. #
  13098. # Verify if libtool static libraries will be built while shared not built
  13099. #
  13100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
  13101. $as_echo_n "checking whether to build static libraries only... " >&6; }
  13102. if test "$xc_lt_build_static" = 'yes' &&
  13103. test "$xc_lt_build_shared" = 'no'; then
  13104. xc_lt_build_static_only='yes'
  13105. else
  13106. xc_lt_build_static_only='no'
  13107. fi
  13108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
  13109. $as_echo "$xc_lt_build_static_only" >&6; }
  13110. #
  13111. # Automake conditionals based on libtool related checks
  13112. #
  13113. if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
  13114. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
  13115. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
  13116. else
  13117. CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
  13118. CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
  13119. fi
  13120. if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  13121. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
  13122. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
  13123. else
  13124. CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
  13125. CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
  13126. fi
  13127. if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
  13128. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
  13129. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
  13130. else
  13131. CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
  13132. CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
  13133. fi
  13134. #
  13135. # Due to libtool and automake machinery limitations of not allowing
  13136. # specifying separate CPPFLAGS or CFLAGS when compiling objects for
  13137. # inclusion of these in shared or static libraries, we are forced to
  13138. # build using separate configure runs for shared and static libraries
  13139. # on systems where different CPPFLAGS or CFLAGS are mandatory in order
  13140. # to compile objects for each kind of library. Notice that relying on
  13141. # the '-DPIC' CFLAG that libtool provides is not valid given that the
  13142. # user might for example choose to build static libraries with PIC.
  13143. #
  13144. #
  13145. # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
  13146. # targeting a static library and not building its shared counterpart.
  13147. #
  13148. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13149. USE_CPPFLAG_CURL_STATICLIB_TRUE=
  13150. USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
  13151. else
  13152. USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
  13153. USE_CPPFLAG_CURL_STATICLIB_FALSE=
  13154. fi
  13155. #
  13156. # Make staticlib CPPFLAG variable and its definition visible in output
  13157. # files unconditionally, providing an empty definition unless strictly
  13158. # targeting a static library and not building its shared counterpart.
  13159. #
  13160. CPPFLAG_CURL_STATICLIB=
  13161. if test "x$xc_lt_build_static_only" = 'xyes'; then
  13162. CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
  13163. fi
  13164. # Determine whether all dependent libraries must be specified when linking
  13165. if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
  13166. then
  13167. REQUIRE_LIB_DEPS=no
  13168. else
  13169. REQUIRE_LIB_DEPS=yes
  13170. fi
  13171. if test x$REQUIRE_LIB_DEPS = xyes; then
  13172. USE_EXPLICIT_LIB_DEPS_TRUE=
  13173. USE_EXPLICIT_LIB_DEPS_FALSE='#'
  13174. else
  13175. USE_EXPLICIT_LIB_DEPS_TRUE='#'
  13176. USE_EXPLICIT_LIB_DEPS_FALSE=
  13177. fi
  13178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13179. $as_echo_n "checking for inline... " >&6; }
  13180. if ${ac_cv_c_inline+:} false; then :
  13181. $as_echo_n "(cached) " >&6
  13182. else
  13183. ac_cv_c_inline=no
  13184. for ac_kw in inline __inline__ __inline; do
  13185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13186. /* end confdefs.h. */
  13187. #ifndef __cplusplus
  13188. typedef int foo_t;
  13189. static $ac_kw foo_t static_foo () {return 0; }
  13190. $ac_kw foo_t foo () {return 0; }
  13191. #endif
  13192. _ACEOF
  13193. if ac_fn_c_try_compile "$LINENO"; then :
  13194. ac_cv_c_inline=$ac_kw
  13195. fi
  13196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13197. test "$ac_cv_c_inline" != no && break
  13198. done
  13199. fi
  13200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13201. $as_echo "$ac_cv_c_inline" >&6; }
  13202. case $ac_cv_c_inline in
  13203. inline | yes) ;;
  13204. *)
  13205. case $ac_cv_c_inline in
  13206. no) ac_val=;;
  13207. *) ac_val=$ac_cv_c_inline;;
  13208. esac
  13209. cat >>confdefs.h <<_ACEOF
  13210. #ifndef __cplusplus
  13211. #define inline $ac_val
  13212. #endif
  13213. _ACEOF
  13214. ;;
  13215. esac
  13216. #
  13217. compiler_id="unknown"
  13218. compiler_num="0"
  13219. #
  13220. flags_dbg_all="unknown"
  13221. flags_dbg_yes="unknown"
  13222. flags_dbg_off="unknown"
  13223. flags_opt_all="unknown"
  13224. flags_opt_yes="unknown"
  13225. flags_opt_off="unknown"
  13226. #
  13227. flags_prefer_cppflags="no"
  13228. #
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
  13230. $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
  13231. if test -z "$SED"; then
  13232. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13233. fi
  13234. if test -z "$GREP"; then
  13235. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13236. fi
  13237. tmp_exp=""
  13238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13239. /* end confdefs.h. */
  13240. #ifdef __DECC
  13241. CURL_DEF_TOKEN __DECC
  13242. #endif
  13243. _ACEOF
  13244. if ac_fn_c_try_cpp "$LINENO"; then :
  13245. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13246. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13247. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13248. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13249. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
  13250. tmp_exp=""
  13251. fi
  13252. fi
  13253. rm -f conftest.err conftest.i conftest.$ac_ext
  13254. if test -z "$tmp_exp"; then
  13255. curl_cv_have_def___DECC=no
  13256. else
  13257. curl_cv_have_def___DECC=yes
  13258. curl_cv_def___DECC=$tmp_exp
  13259. fi
  13260. if test -z "$SED"; then
  13261. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13262. fi
  13263. if test -z "$GREP"; then
  13264. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13265. fi
  13266. tmp_exp=""
  13267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13268. /* end confdefs.h. */
  13269. #ifdef __DECC_VER
  13270. CURL_DEF_TOKEN __DECC_VER
  13271. #endif
  13272. _ACEOF
  13273. if ac_fn_c_try_cpp "$LINENO"; then :
  13274. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13275. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13276. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13277. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13278. if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
  13279. tmp_exp=""
  13280. fi
  13281. fi
  13282. rm -f conftest.err conftest.i conftest.$ac_ext
  13283. if test -z "$tmp_exp"; then
  13284. curl_cv_have_def___DECC_VER=no
  13285. else
  13286. curl_cv_have_def___DECC_VER=yes
  13287. curl_cv_def___DECC_VER=$tmp_exp
  13288. fi
  13289. if test "$curl_cv_have_def___DECC" = "yes" &&
  13290. test "$curl_cv_have_def___DECC_VER" = "yes"; then
  13291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13292. $as_echo "yes" >&6; }
  13293. compiler_id="DEC_C"
  13294. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13295. flags_dbg_yes="-g2"
  13296. flags_dbg_off=""
  13297. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
  13298. flags_opt_yes="-O1"
  13299. flags_opt_off="-O0"
  13300. else
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13302. $as_echo "no" >&6; }
  13303. fi
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
  13305. $as_echo_n "checking if compiler is HP-UX C... " >&6; }
  13306. if test -z "$SED"; then
  13307. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13308. fi
  13309. if test -z "$GREP"; then
  13310. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13311. fi
  13312. tmp_exp=""
  13313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13314. /* end confdefs.h. */
  13315. #ifdef __HP_cc
  13316. CURL_DEF_TOKEN __HP_cc
  13317. #endif
  13318. _ACEOF
  13319. if ac_fn_c_try_cpp "$LINENO"; then :
  13320. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13321. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13322. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13323. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13324. if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
  13325. tmp_exp=""
  13326. fi
  13327. fi
  13328. rm -f conftest.err conftest.i conftest.$ac_ext
  13329. if test -z "$tmp_exp"; then
  13330. curl_cv_have_def___HP_cc=no
  13331. else
  13332. curl_cv_have_def___HP_cc=yes
  13333. curl_cv_def___HP_cc=$tmp_exp
  13334. fi
  13335. if test "$curl_cv_have_def___HP_cc" = "yes"; then
  13336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13337. $as_echo "yes" >&6; }
  13338. compiler_id="HP_UX_C"
  13339. flags_dbg_all="-g -s"
  13340. flags_dbg_yes="-g"
  13341. flags_dbg_off="-s"
  13342. flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
  13343. flags_opt_yes="+O2"
  13344. flags_opt_off="+O0"
  13345. else
  13346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13347. $as_echo "no" >&6; }
  13348. fi
  13349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
  13350. $as_echo_n "checking if compiler is IBM C... " >&6; }
  13351. if test -z "$SED"; then
  13352. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13353. fi
  13354. if test -z "$GREP"; then
  13355. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13356. fi
  13357. tmp_exp=""
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. #ifdef __IBMC__
  13361. CURL_DEF_TOKEN __IBMC__
  13362. #endif
  13363. _ACEOF
  13364. if ac_fn_c_try_cpp "$LINENO"; then :
  13365. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13366. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13367. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13368. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13369. if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
  13370. tmp_exp=""
  13371. fi
  13372. fi
  13373. rm -f conftest.err conftest.i conftest.$ac_ext
  13374. if test -z "$tmp_exp"; then
  13375. curl_cv_have_def___IBMC__=no
  13376. else
  13377. curl_cv_have_def___IBMC__=yes
  13378. curl_cv_def___IBMC__=$tmp_exp
  13379. fi
  13380. if test "$curl_cv_have_def___IBMC__" = "yes"; then
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13382. $as_echo "yes" >&6; }
  13383. compiler_id="IBM_C"
  13384. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13385. flags_dbg_yes="-g"
  13386. flags_dbg_off=""
  13387. flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
  13388. flags_opt_all="$flags_opt_all -qnooptimize"
  13389. flags_opt_all="$flags_opt_all -qoptimize=0"
  13390. flags_opt_all="$flags_opt_all -qoptimize=1"
  13391. flags_opt_all="$flags_opt_all -qoptimize=2"
  13392. flags_opt_all="$flags_opt_all -qoptimize=3"
  13393. flags_opt_all="$flags_opt_all -qoptimize=4"
  13394. flags_opt_all="$flags_opt_all -qoptimize=5"
  13395. flags_opt_yes="-O2"
  13396. flags_opt_off="-qnooptimize"
  13397. flags_prefer_cppflags="yes"
  13398. else
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13400. $as_echo "no" >&6; }
  13401. fi
  13402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
  13403. $as_echo_n "checking if compiler is Intel C... " >&6; }
  13404. if test -z "$SED"; then
  13405. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13406. fi
  13407. if test -z "$GREP"; then
  13408. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13409. fi
  13410. tmp_exp=""
  13411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13412. /* end confdefs.h. */
  13413. #ifdef __INTEL_COMPILER
  13414. CURL_DEF_TOKEN __INTEL_COMPILER
  13415. #endif
  13416. _ACEOF
  13417. if ac_fn_c_try_cpp "$LINENO"; then :
  13418. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13419. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13420. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13421. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13422. if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
  13423. tmp_exp=""
  13424. fi
  13425. fi
  13426. rm -f conftest.err conftest.i conftest.$ac_ext
  13427. if test -z "$tmp_exp"; then
  13428. curl_cv_have_def___INTEL_COMPILER=no
  13429. else
  13430. curl_cv_have_def___INTEL_COMPILER=yes
  13431. curl_cv_def___INTEL_COMPILER=$tmp_exp
  13432. fi
  13433. if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13435. $as_echo "yes" >&6; }
  13436. compiler_num="$curl_cv_def___INTEL_COMPILER"
  13437. if test -z "$SED"; then
  13438. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13439. fi
  13440. if test -z "$GREP"; then
  13441. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13442. fi
  13443. tmp_exp=""
  13444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13445. /* end confdefs.h. */
  13446. #ifdef __unix__
  13447. CURL_DEF_TOKEN __unix__
  13448. #endif
  13449. _ACEOF
  13450. if ac_fn_c_try_cpp "$LINENO"; then :
  13451. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13452. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13453. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13454. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13455. if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
  13456. tmp_exp=""
  13457. fi
  13458. fi
  13459. rm -f conftest.err conftest.i conftest.$ac_ext
  13460. if test -z "$tmp_exp"; then
  13461. curl_cv_have_def___unix__=no
  13462. else
  13463. curl_cv_have_def___unix__=yes
  13464. curl_cv_def___unix__=$tmp_exp
  13465. fi
  13466. if test "$curl_cv_have_def___unix__" = "yes"; then
  13467. compiler_id="INTEL_UNIX_C"
  13468. flags_dbg_all="-g -g0"
  13469. flags_dbg_yes="-g"
  13470. flags_dbg_off=""
  13471. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  13472. flags_opt_yes="-O2"
  13473. flags_opt_off="-O0"
  13474. else
  13475. compiler_id="INTEL_WINDOWS_C"
  13476. flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
  13477. flags_dbg_all="$flags_dbg_all /debug"
  13478. flags_dbg_all="$flags_dbg_all /debug:none"
  13479. flags_dbg_all="$flags_dbg_all /debug:minimal"
  13480. flags_dbg_all="$flags_dbg_all /debug:partial"
  13481. flags_dbg_all="$flags_dbg_all /debug:full"
  13482. flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
  13483. flags_dbg_all="$flags_dbg_all /debug:extended"
  13484. flags_dbg_yes="/Zi /Oy-"
  13485. flags_dbg_off="/debug:none /Oy-"
  13486. flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
  13487. flags_opt_yes="/O2"
  13488. flags_opt_off="/Od"
  13489. fi
  13490. else
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13492. $as_echo "no" >&6; }
  13493. fi
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
  13495. $as_echo_n "checking if compiler is clang... " >&6; }
  13496. if test -z "$SED"; then
  13497. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13498. fi
  13499. if test -z "$GREP"; then
  13500. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13501. fi
  13502. tmp_exp=""
  13503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13504. /* end confdefs.h. */
  13505. #ifdef __clang__
  13506. CURL_DEF_TOKEN __clang__
  13507. #endif
  13508. _ACEOF
  13509. if ac_fn_c_try_cpp "$LINENO"; then :
  13510. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13511. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13512. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13513. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13514. if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
  13515. tmp_exp=""
  13516. fi
  13517. fi
  13518. rm -f conftest.err conftest.i conftest.$ac_ext
  13519. if test -z "$tmp_exp"; then
  13520. curl_cv_have_def___clang__=no
  13521. else
  13522. curl_cv_have_def___clang__=yes
  13523. curl_cv_def___clang__=$tmp_exp
  13524. fi
  13525. if test "$curl_cv_have_def___clang__" = "yes"; then
  13526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13527. $as_echo "yes" >&6; }
  13528. compiler_id="CLANG"
  13529. clangver=`$CC -dumpversion`
  13530. clangvhi=`echo $clangver | cut -d . -f1`
  13531. clangvlo=`echo $clangver | cut -d . -f2`
  13532. compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
  13533. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13534. flags_dbg_all="$flags_dbg_all -ggdb"
  13535. flags_dbg_all="$flags_dbg_all -gstabs"
  13536. flags_dbg_all="$flags_dbg_all -gstabs+"
  13537. flags_dbg_all="$flags_dbg_all -gcoff"
  13538. flags_dbg_all="$flags_dbg_all -gxcoff"
  13539. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13540. flags_dbg_all="$flags_dbg_all -gvms"
  13541. flags_dbg_yes="-g"
  13542. flags_dbg_off=""
  13543. flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
  13544. flags_opt_yes="-Os"
  13545. flags_opt_off="-O0"
  13546. else
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13548. $as_echo "no" >&6; }
  13549. fi
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
  13551. $as_echo_n "checking if compiler is GNU C... " >&6; }
  13552. if test -z "$SED"; then
  13553. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13554. fi
  13555. if test -z "$GREP"; then
  13556. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13557. fi
  13558. tmp_exp=""
  13559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13560. /* end confdefs.h. */
  13561. #ifdef __GNUC__
  13562. CURL_DEF_TOKEN __GNUC__
  13563. #endif
  13564. _ACEOF
  13565. if ac_fn_c_try_cpp "$LINENO"; then :
  13566. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13567. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13568. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13569. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13570. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13571. tmp_exp=""
  13572. fi
  13573. fi
  13574. rm -f conftest.err conftest.i conftest.$ac_ext
  13575. if test -z "$tmp_exp"; then
  13576. curl_cv_have_def___GNUC__=no
  13577. else
  13578. curl_cv_have_def___GNUC__=yes
  13579. curl_cv_def___GNUC__=$tmp_exp
  13580. fi
  13581. if test "$curl_cv_have_def___GNUC__" = "yes" &&
  13582. test "$compiler_id" = "unknown"; then
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13584. $as_echo "yes" >&6; }
  13585. compiler_id="GNU_C"
  13586. gccver=`$CC -dumpversion`
  13587. gccvhi=`echo $gccver | cut -d . -f1`
  13588. gccvlo=`echo $gccver | cut -d . -f2`
  13589. compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
  13590. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13591. flags_dbg_all="$flags_dbg_all -ggdb"
  13592. flags_dbg_all="$flags_dbg_all -gstabs"
  13593. flags_dbg_all="$flags_dbg_all -gstabs+"
  13594. flags_dbg_all="$flags_dbg_all -gcoff"
  13595. flags_dbg_all="$flags_dbg_all -gxcoff"
  13596. flags_dbg_all="$flags_dbg_all -gdwarf-2"
  13597. flags_dbg_all="$flags_dbg_all -gvms"
  13598. flags_dbg_yes="-g"
  13599. flags_dbg_off=""
  13600. flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
  13601. flags_opt_yes="-O2"
  13602. flags_opt_off="-O0"
  13603. if test -z "$SED"; then
  13604. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13605. fi
  13606. if test -z "$GREP"; then
  13607. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13608. fi
  13609. tmp_exp=""
  13610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13611. /* end confdefs.h. */
  13612. #ifdef _WIN32
  13613. CURL_DEF_TOKEN _WIN32
  13614. #endif
  13615. _ACEOF
  13616. if ac_fn_c_try_cpp "$LINENO"; then :
  13617. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13618. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13619. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13620. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13621. if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
  13622. tmp_exp=""
  13623. fi
  13624. fi
  13625. rm -f conftest.err conftest.i conftest.$ac_ext
  13626. if test -z "$tmp_exp"; then
  13627. curl_cv_have_def__WIN32=no
  13628. else
  13629. curl_cv_have_def__WIN32=yes
  13630. curl_cv_def__WIN32=$tmp_exp
  13631. fi
  13632. else
  13633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13634. $as_echo "no" >&6; }
  13635. fi
  13636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
  13637. $as_echo_n "checking if compiler is LCC... " >&6; }
  13638. if test -z "$SED"; then
  13639. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13640. fi
  13641. if test -z "$GREP"; then
  13642. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13643. fi
  13644. tmp_exp=""
  13645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13646. /* end confdefs.h. */
  13647. #ifdef __LCC__
  13648. CURL_DEF_TOKEN __LCC__
  13649. #endif
  13650. _ACEOF
  13651. if ac_fn_c_try_cpp "$LINENO"; then :
  13652. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13653. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13654. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13655. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13656. if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
  13657. tmp_exp=""
  13658. fi
  13659. fi
  13660. rm -f conftest.err conftest.i conftest.$ac_ext
  13661. if test -z "$tmp_exp"; then
  13662. curl_cv_have_def___LCC__=no
  13663. else
  13664. curl_cv_have_def___LCC__=yes
  13665. curl_cv_def___LCC__=$tmp_exp
  13666. fi
  13667. if test "$curl_cv_have_def___LCC__" = "yes"; then
  13668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13669. $as_echo "yes" >&6; }
  13670. compiler_id="LCC"
  13671. flags_dbg_all="-g"
  13672. flags_dbg_yes="-g"
  13673. flags_dbg_off=""
  13674. flags_opt_all=""
  13675. flags_opt_yes=""
  13676. flags_opt_off=""
  13677. else
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13679. $as_echo "no" >&6; }
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
  13682. $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
  13683. if test -z "$SED"; then
  13684. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13685. fi
  13686. if test -z "$GREP"; then
  13687. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13688. fi
  13689. tmp_exp=""
  13690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13691. /* end confdefs.h. */
  13692. #ifdef __GNUC__
  13693. CURL_DEF_TOKEN __GNUC__
  13694. #endif
  13695. _ACEOF
  13696. if ac_fn_c_try_cpp "$LINENO"; then :
  13697. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13698. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13699. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13700. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13701. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13702. tmp_exp=""
  13703. fi
  13704. fi
  13705. rm -f conftest.err conftest.i conftest.$ac_ext
  13706. if test -z "$tmp_exp"; then
  13707. curl_cv_have_def___GNUC__=no
  13708. else
  13709. curl_cv_have_def___GNUC__=yes
  13710. curl_cv_def___GNUC__=$tmp_exp
  13711. fi
  13712. if test -z "$SED"; then
  13713. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13714. fi
  13715. if test -z "$GREP"; then
  13716. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13717. fi
  13718. tmp_exp=""
  13719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13720. /* end confdefs.h. */
  13721. #ifdef _COMPILER_VERSION
  13722. CURL_DEF_TOKEN _COMPILER_VERSION
  13723. #endif
  13724. _ACEOF
  13725. if ac_fn_c_try_cpp "$LINENO"; then :
  13726. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13727. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13728. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13729. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13730. if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
  13731. tmp_exp=""
  13732. fi
  13733. fi
  13734. rm -f conftest.err conftest.i conftest.$ac_ext
  13735. if test -z "$tmp_exp"; then
  13736. curl_cv_have_def__COMPILER_VERSION=no
  13737. else
  13738. curl_cv_have_def__COMPILER_VERSION=yes
  13739. curl_cv_def__COMPILER_VERSION=$tmp_exp
  13740. fi
  13741. if test -z "$SED"; then
  13742. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13743. fi
  13744. if test -z "$GREP"; then
  13745. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13746. fi
  13747. tmp_exp=""
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. #ifdef _SGI_COMPILER_VERSION
  13751. CURL_DEF_TOKEN _SGI_COMPILER_VERSION
  13752. #endif
  13753. _ACEOF
  13754. if ac_fn_c_try_cpp "$LINENO"; then :
  13755. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13756. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13757. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13758. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13759. if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
  13760. tmp_exp=""
  13761. fi
  13762. fi
  13763. rm -f conftest.err conftest.i conftest.$ac_ext
  13764. if test -z "$tmp_exp"; then
  13765. curl_cv_have_def__SGI_COMPILER_VERSION=no
  13766. else
  13767. curl_cv_have_def__SGI_COMPILER_VERSION=yes
  13768. curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
  13769. fi
  13770. if test "$curl_cv_have_def___GNUC__" = "no" &&
  13771. (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
  13772. test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13774. $as_echo "yes" >&6; }
  13775. compiler_id="SGI_MIPSPRO_C"
  13776. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13777. flags_dbg_yes="-g"
  13778. flags_dbg_off=""
  13779. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  13780. flags_opt_yes="-O2"
  13781. flags_opt_off="-O0"
  13782. else
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13784. $as_echo "no" >&6; }
  13785. fi
  13786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
  13787. $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
  13788. if test -z "$SED"; then
  13789. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13790. fi
  13791. if test -z "$GREP"; then
  13792. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13793. fi
  13794. tmp_exp=""
  13795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13796. /* end confdefs.h. */
  13797. #ifdef __GNUC__
  13798. CURL_DEF_TOKEN __GNUC__
  13799. #endif
  13800. _ACEOF
  13801. if ac_fn_c_try_cpp "$LINENO"; then :
  13802. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13803. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13804. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13805. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13806. if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
  13807. tmp_exp=""
  13808. fi
  13809. fi
  13810. rm -f conftest.err conftest.i conftest.$ac_ext
  13811. if test -z "$tmp_exp"; then
  13812. curl_cv_have_def___GNUC__=no
  13813. else
  13814. curl_cv_have_def___GNUC__=yes
  13815. curl_cv_def___GNUC__=$tmp_exp
  13816. fi
  13817. if test -z "$SED"; then
  13818. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13819. fi
  13820. if test -z "$GREP"; then
  13821. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13822. fi
  13823. tmp_exp=""
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. #ifdef __sgi
  13827. CURL_DEF_TOKEN __sgi
  13828. #endif
  13829. _ACEOF
  13830. if ac_fn_c_try_cpp "$LINENO"; then :
  13831. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13832. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13833. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13834. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13835. if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
  13836. tmp_exp=""
  13837. fi
  13838. fi
  13839. rm -f conftest.err conftest.i conftest.$ac_ext
  13840. if test -z "$tmp_exp"; then
  13841. curl_cv_have_def___sgi=no
  13842. else
  13843. curl_cv_have_def___sgi=yes
  13844. curl_cv_def___sgi=$tmp_exp
  13845. fi
  13846. if test "$curl_cv_have_def___GNUC__" = "no" &&
  13847. test "$curl_cv_have_def___sgi" = "yes" &&
  13848. test "$compiler_id" = "unknown"; then
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13850. $as_echo "yes" >&6; }
  13851. compiler_id="SGI_MIPS_C"
  13852. flags_dbg_all="-g -g0 -g1 -g2 -g3"
  13853. flags_dbg_yes="-g"
  13854. flags_dbg_off=""
  13855. flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
  13856. flags_opt_yes="-O2"
  13857. flags_opt_off="-O0"
  13858. else
  13859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13860. $as_echo "no" >&6; }
  13861. fi
  13862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
  13863. $as_echo_n "checking if compiler is SunPro C... " >&6; }
  13864. if test -z "$SED"; then
  13865. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13866. fi
  13867. if test -z "$GREP"; then
  13868. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13869. fi
  13870. tmp_exp=""
  13871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13872. /* end confdefs.h. */
  13873. #ifdef __SUNPRO_C
  13874. CURL_DEF_TOKEN __SUNPRO_C
  13875. #endif
  13876. _ACEOF
  13877. if ac_fn_c_try_cpp "$LINENO"; then :
  13878. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13879. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13880. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13881. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13882. if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
  13883. tmp_exp=""
  13884. fi
  13885. fi
  13886. rm -f conftest.err conftest.i conftest.$ac_ext
  13887. if test -z "$tmp_exp"; then
  13888. curl_cv_have_def___SUNPRO_C=no
  13889. else
  13890. curl_cv_have_def___SUNPRO_C=yes
  13891. curl_cv_def___SUNPRO_C=$tmp_exp
  13892. fi
  13893. if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
  13894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13895. $as_echo "yes" >&6; }
  13896. compiler_id="SUNPRO_C"
  13897. flags_dbg_all="-g -s"
  13898. flags_dbg_yes="-g"
  13899. flags_dbg_off="-s"
  13900. flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
  13901. flags_opt_yes="-xO2"
  13902. flags_opt_off=""
  13903. else
  13904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13905. $as_echo "no" >&6; }
  13906. fi
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
  13908. $as_echo_n "checking if compiler is Tiny C... " >&6; }
  13909. if test -z "$SED"; then
  13910. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13911. fi
  13912. if test -z "$GREP"; then
  13913. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13914. fi
  13915. tmp_exp=""
  13916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13917. /* end confdefs.h. */
  13918. #ifdef __TINYC__
  13919. CURL_DEF_TOKEN __TINYC__
  13920. #endif
  13921. _ACEOF
  13922. if ac_fn_c_try_cpp "$LINENO"; then :
  13923. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13924. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13925. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13926. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13927. if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
  13928. tmp_exp=""
  13929. fi
  13930. fi
  13931. rm -f conftest.err conftest.i conftest.$ac_ext
  13932. if test -z "$tmp_exp"; then
  13933. curl_cv_have_def___TINYC__=no
  13934. else
  13935. curl_cv_have_def___TINYC__=yes
  13936. curl_cv_def___TINYC__=$tmp_exp
  13937. fi
  13938. if test "$curl_cv_have_def___TINYC__" = "yes"; then
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13940. $as_echo "yes" >&6; }
  13941. compiler_id="TINY_C"
  13942. flags_dbg_all="-g -b"
  13943. flags_dbg_yes="-g"
  13944. flags_dbg_off=""
  13945. flags_opt_all=""
  13946. flags_opt_yes=""
  13947. flags_opt_off=""
  13948. else
  13949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13950. $as_echo "no" >&6; }
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
  13953. $as_echo_n "checking if compiler is Watcom C... " >&6; }
  13954. if test -z "$SED"; then
  13955. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13956. fi
  13957. if test -z "$GREP"; then
  13958. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13959. fi
  13960. tmp_exp=""
  13961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13962. /* end confdefs.h. */
  13963. #ifdef __WATCOMC__
  13964. CURL_DEF_TOKEN __WATCOMC__
  13965. #endif
  13966. _ACEOF
  13967. if ac_fn_c_try_cpp "$LINENO"; then :
  13968. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  13969. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  13970. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  13971. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  13972. if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
  13973. tmp_exp=""
  13974. fi
  13975. fi
  13976. rm -f conftest.err conftest.i conftest.$ac_ext
  13977. if test -z "$tmp_exp"; then
  13978. curl_cv_have_def___WATCOMC__=no
  13979. else
  13980. curl_cv_have_def___WATCOMC__=yes
  13981. curl_cv_def___WATCOMC__=$tmp_exp
  13982. fi
  13983. if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13985. $as_echo "yes" >&6; }
  13986. if test -z "$SED"; then
  13987. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  13988. fi
  13989. if test -z "$GREP"; then
  13990. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  13991. fi
  13992. tmp_exp=""
  13993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13994. /* end confdefs.h. */
  13995. #ifdef __UNIX__
  13996. CURL_DEF_TOKEN __UNIX__
  13997. #endif
  13998. _ACEOF
  13999. if ac_fn_c_try_cpp "$LINENO"; then :
  14000. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  14001. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  14002. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  14003. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  14004. if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
  14005. tmp_exp=""
  14006. fi
  14007. fi
  14008. rm -f conftest.err conftest.i conftest.$ac_ext
  14009. if test -z "$tmp_exp"; then
  14010. curl_cv_have_def___UNIX__=no
  14011. else
  14012. curl_cv_have_def___UNIX__=yes
  14013. curl_cv_def___UNIX__=$tmp_exp
  14014. fi
  14015. if test "$curl_cv_have_def___UNIX__" = "yes"; then
  14016. compiler_id="WATCOM_UNIX_C"
  14017. flags_dbg_all="-g1 -g1+ -g2 -g3"
  14018. flags_dbg_yes="-g2"
  14019. flags_dbg_off=""
  14020. flags_opt_all="-O0 -O1 -O2 -O3"
  14021. flags_opt_yes="-O2"
  14022. flags_opt_off="-O0"
  14023. else
  14024. compiler_id="WATCOM_WINDOWS_C"
  14025. flags_dbg_all=""
  14026. flags_dbg_yes=""
  14027. flags_dbg_off=""
  14028. flags_opt_all=""
  14029. flags_opt_yes=""
  14030. flags_opt_off=""
  14031. fi
  14032. else
  14033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14034. $as_echo "no" >&6; }
  14035. fi
  14036. #
  14037. if test "$compiler_id" = "unknown"; then
  14038. cat <<_EOF 1>&2
  14039. ***
  14040. *** Warning: This configure script does not have information about the
  14041. *** compiler you are using, relative to the flags required to enable or
  14042. *** disable generation of debug info, optimization options or warnings.
  14043. ***
  14044. *** Whatever settings are present in CFLAGS will be used for this run.
  14045. ***
  14046. *** If you wish to help the cURL project to better support your compiler
  14047. *** you can report this and the required info on the libcurl development
  14048. *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
  14049. ***
  14050. _EOF
  14051. fi
  14052. squeeze() {
  14053. _sqz_result=""
  14054. eval _sqz_input=\$$1
  14055. for _sqz_token in $_sqz_input; do
  14056. if test -z "$_sqz_result"; then
  14057. _sqz_result="$_sqz_token"
  14058. else
  14059. _sqz_result="$_sqz_result $_sqz_token"
  14060. fi
  14061. done
  14062. eval $1=\$_sqz_result
  14063. return 0
  14064. }
  14065. #
  14066. if test "$compiler_id" != "unknown"; then
  14067. #
  14068. if test "$compiler_id" = "GNU_C" ||
  14069. test "$compiler_id" = "CLANG"; then
  14070. if test "$compiler_id" = "GNU_C" ||
  14071. test "$compiler_id" = "CLANG"; then
  14072. tmp_has_include="no"
  14073. tmp_chg_FLAGS="$CFLAGS"
  14074. for word1 in $tmp_chg_FLAGS; do
  14075. case "$word1" in
  14076. -I*)
  14077. tmp_has_include="yes"
  14078. ;;
  14079. esac
  14080. done
  14081. if test "$tmp_has_include" = "yes"; then
  14082. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14083. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14084. CFLAGS="$tmp_chg_FLAGS"
  14085. squeeze CFLAGS
  14086. fi
  14087. tmp_has_include="no"
  14088. tmp_chg_FLAGS="$CPPFLAGS"
  14089. for word1 in $tmp_chg_FLAGS; do
  14090. case "$word1" in
  14091. -I*)
  14092. tmp_has_include="yes"
  14093. ;;
  14094. esac
  14095. done
  14096. if test "$tmp_has_include" = "yes"; then
  14097. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
  14098. tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
  14099. CPPFLAGS="$tmp_chg_FLAGS"
  14100. squeeze CPPFLAGS
  14101. fi
  14102. fi
  14103. fi
  14104. #
  14105. tmp_save_CPPFLAGS="$CPPFLAGS"
  14106. tmp_save_CFLAGS="$CFLAGS"
  14107. tmp_CPPFLAGS=""
  14108. tmp_CFLAGS=""
  14109. #
  14110. case "$compiler_id" in
  14111. #
  14112. CLANG)
  14113. #
  14114. tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
  14115. ;;
  14116. #
  14117. DEC_C)
  14118. #
  14119. tmp_CFLAGS="$tmp_CFLAGS -std1"
  14120. tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
  14121. tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
  14122. tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
  14123. ;;
  14124. #
  14125. GNU_C)
  14126. #
  14127. tmp_CFLAGS="$tmp_CFLAGS"
  14128. ;;
  14129. #
  14130. HP_UX_C)
  14131. #
  14132. tmp_CFLAGS="$tmp_CFLAGS -z"
  14133. tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
  14134. ;;
  14135. #
  14136. IBM_C)
  14137. #
  14138. tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
  14139. tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
  14140. tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
  14141. ;;
  14142. #
  14143. INTEL_UNIX_C)
  14144. #
  14145. tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
  14146. tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
  14147. tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
  14148. ;;
  14149. #
  14150. INTEL_WINDOWS_C)
  14151. #
  14152. tmp_CFLAGS="$tmp_CFLAGS"
  14153. ;;
  14154. #
  14155. LCC)
  14156. #
  14157. tmp_CFLAGS="$tmp_CFLAGS -n"
  14158. ;;
  14159. #
  14160. SGI_MIPS_C)
  14161. #
  14162. tmp_CFLAGS="$tmp_CFLAGS"
  14163. ;;
  14164. #
  14165. SGI_MIPSPRO_C)
  14166. #
  14167. tmp_CFLAGS="$tmp_CFLAGS"
  14168. ;;
  14169. #
  14170. SUNPRO_C)
  14171. #
  14172. tmp_CFLAGS="$tmp_CFLAGS"
  14173. ;;
  14174. #
  14175. TINY_C)
  14176. #
  14177. tmp_CFLAGS="$tmp_CFLAGS"
  14178. ;;
  14179. #
  14180. WATCOM_UNIX_C)
  14181. #
  14182. tmp_CFLAGS="$tmp_CFLAGS"
  14183. ;;
  14184. #
  14185. WATCOM_WINDOWS_C)
  14186. #
  14187. tmp_CFLAGS="$tmp_CFLAGS"
  14188. ;;
  14189. #
  14190. esac
  14191. #
  14192. squeeze tmp_CPPFLAGS
  14193. squeeze tmp_CFLAGS
  14194. #
  14195. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
  14197. $as_echo_n "checking if compiler accepts some basic options... " >&6; }
  14198. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  14199. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  14200. squeeze CPPFLAGS
  14201. squeeze CFLAGS
  14202. tmp_compiler_works="unknown"
  14203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14204. /* end confdefs.h. */
  14205. int main (void)
  14206. {
  14207. int i = 1;
  14208. return i;
  14209. ;
  14210. return 0;
  14211. }
  14212. _ACEOF
  14213. if ac_fn_c_try_compile "$LINENO"; then :
  14214. tmp_compiler_works="yes"
  14215. else
  14216. tmp_compiler_works="no"
  14217. echo " " >&6
  14218. sed 's/^/cc-fail: /' conftest.err >&6
  14219. echo " " >&6
  14220. fi
  14221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14222. if test "$tmp_compiler_works" = "yes"; then
  14223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14224. /* end confdefs.h. */
  14225. int main (void)
  14226. {
  14227. int i = 1;
  14228. return i;
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_link "$LINENO"; then :
  14234. tmp_compiler_works="yes"
  14235. else
  14236. tmp_compiler_works="no"
  14237. echo " " >&6
  14238. sed 's/^/link-fail: /' conftest.err >&6
  14239. echo " " >&6
  14240. fi
  14241. rm -f core conftest.err conftest.$ac_objext \
  14242. conftest$ac_exeext conftest.$ac_ext
  14243. fi
  14244. if test "x$cross_compiling" != "xyes" &&
  14245. test "$tmp_compiler_works" = "yes"; then
  14246. if test "$cross_compiling" = yes; then :
  14247. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14248. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14249. as_fn_error $? "cannot run test program while cross compiling
  14250. See \`config.log' for more details" "$LINENO" 5; }
  14251. else
  14252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14253. /* end confdefs.h. */
  14254. # ifdef __STDC__
  14255. # include <stdlib.h>
  14256. # endif
  14257. int main (void)
  14258. {
  14259. int i = 0;
  14260. exit(i);
  14261. ;
  14262. return 0;
  14263. }
  14264. _ACEOF
  14265. if ac_fn_c_try_run "$LINENO"; then :
  14266. tmp_compiler_works="yes"
  14267. else
  14268. tmp_compiler_works="no"
  14269. echo " " >&6
  14270. echo "run-fail: test program exited with status $ac_status" >&6
  14271. echo " " >&6
  14272. fi
  14273. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14274. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14275. fi
  14276. fi
  14277. if test "$tmp_compiler_works" = "yes"; then
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14279. $as_echo "yes" >&6; }
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14281. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  14282. else
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14284. $as_echo "no" >&6; }
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14286. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  14287. CPPFLAGS="$tmp_save_CPPFLAGS"
  14288. CFLAGS="$tmp_save_CFLAGS"
  14289. fi
  14290. fi
  14291. #
  14292. fi
  14293. #
  14294. if test "$compiler_id" != "unknown"; then
  14295. #
  14296. tmp_save_CFLAGS="$CFLAGS"
  14297. tmp_save_CPPFLAGS="$CPPFLAGS"
  14298. #
  14299. tmp_options=""
  14300. tmp_CFLAGS="$CFLAGS"
  14301. tmp_CPPFLAGS="$CPPFLAGS"
  14302. ac_var_stripped=""
  14303. for word1 in $tmp_CFLAGS; do
  14304. ac_var_strip_word="no"
  14305. for word2 in $flags_dbg_all; do
  14306. if test "$word1" = "$word2"; then
  14307. ac_var_strip_word="yes"
  14308. fi
  14309. done
  14310. if test "$ac_var_strip_word" = "no"; then
  14311. ac_var_stripped="$ac_var_stripped $word1"
  14312. fi
  14313. done
  14314. tmp_CFLAGS="$ac_var_stripped"
  14315. squeeze tmp_CFLAGS
  14316. ac_var_stripped=""
  14317. for word1 in $tmp_CPPFLAGS; do
  14318. ac_var_strip_word="no"
  14319. for word2 in $flags_dbg_all; do
  14320. if test "$word1" = "$word2"; then
  14321. ac_var_strip_word="yes"
  14322. fi
  14323. done
  14324. if test "$ac_var_strip_word" = "no"; then
  14325. ac_var_stripped="$ac_var_stripped $word1"
  14326. fi
  14327. done
  14328. tmp_CPPFLAGS="$ac_var_stripped"
  14329. squeeze tmp_CPPFLAGS
  14330. #
  14331. if test "$want_debug" = "yes"; then
  14332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
  14333. $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
  14334. tmp_options="$flags_dbg_yes"
  14335. fi
  14336. if test "$want_debug" = "no"; then
  14337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
  14338. $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
  14339. tmp_options="$flags_dbg_off"
  14340. fi
  14341. #
  14342. if test "$flags_prefer_cppflags" = "yes"; then
  14343. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14344. CFLAGS="$tmp_CFLAGS"
  14345. else
  14346. CPPFLAGS="$tmp_CPPFLAGS"
  14347. CFLAGS="$tmp_CFLAGS $tmp_options"
  14348. fi
  14349. squeeze CPPFLAGS
  14350. squeeze CFLAGS
  14351. tmp_compiler_works="unknown"
  14352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14353. /* end confdefs.h. */
  14354. int main (void)
  14355. {
  14356. int i = 1;
  14357. return i;
  14358. ;
  14359. return 0;
  14360. }
  14361. _ACEOF
  14362. if ac_fn_c_try_compile "$LINENO"; then :
  14363. tmp_compiler_works="yes"
  14364. else
  14365. tmp_compiler_works="no"
  14366. echo " " >&6
  14367. sed 's/^/cc-fail: /' conftest.err >&6
  14368. echo " " >&6
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14371. if test "$tmp_compiler_works" = "yes"; then
  14372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14373. /* end confdefs.h. */
  14374. int main (void)
  14375. {
  14376. int i = 1;
  14377. return i;
  14378. ;
  14379. return 0;
  14380. }
  14381. _ACEOF
  14382. if ac_fn_c_try_link "$LINENO"; then :
  14383. tmp_compiler_works="yes"
  14384. else
  14385. tmp_compiler_works="no"
  14386. echo " " >&6
  14387. sed 's/^/link-fail: /' conftest.err >&6
  14388. echo " " >&6
  14389. fi
  14390. rm -f core conftest.err conftest.$ac_objext \
  14391. conftest$ac_exeext conftest.$ac_ext
  14392. fi
  14393. if test "x$cross_compiling" != "xyes" &&
  14394. test "$tmp_compiler_works" = "yes"; then
  14395. if test "$cross_compiling" = yes; then :
  14396. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14397. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14398. as_fn_error $? "cannot run test program while cross compiling
  14399. See \`config.log' for more details" "$LINENO" 5; }
  14400. else
  14401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14402. /* end confdefs.h. */
  14403. # ifdef __STDC__
  14404. # include <stdlib.h>
  14405. # endif
  14406. int main (void)
  14407. {
  14408. int i = 0;
  14409. exit(i);
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. if ac_fn_c_try_run "$LINENO"; then :
  14415. tmp_compiler_works="yes"
  14416. else
  14417. tmp_compiler_works="no"
  14418. echo " " >&6
  14419. echo "run-fail: test program exited with status $ac_status" >&6
  14420. echo " " >&6
  14421. fi
  14422. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14423. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14424. fi
  14425. fi
  14426. if test "$tmp_compiler_works" = "yes"; then
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14428. $as_echo "yes" >&6; }
  14429. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  14430. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  14431. else
  14432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14433. $as_echo "no" >&6; }
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  14435. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  14436. CPPFLAGS="$tmp_save_CPPFLAGS"
  14437. CFLAGS="$tmp_save_CFLAGS"
  14438. fi
  14439. #
  14440. fi
  14441. #
  14442. if test "$compiler_id" != "unknown"; then
  14443. #
  14444. tmp_save_CFLAGS="$CFLAGS"
  14445. tmp_save_CPPFLAGS="$CPPFLAGS"
  14446. #
  14447. tmp_options=""
  14448. tmp_CFLAGS="$CFLAGS"
  14449. tmp_CPPFLAGS="$CPPFLAGS"
  14450. honor_optimize_option="yes"
  14451. #
  14452. #
  14453. if test "$want_optimize" = "assume_no" ||
  14454. test "$want_optimize" = "assume_yes"; then
  14455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
  14456. $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
  14457. ac_var_match_word="no"
  14458. for word1 in $tmp_CFLAGS; do
  14459. for word2 in $flags_opt_all; do
  14460. if test "$word1" = "$word2"; then
  14461. ac_var_match_word="yes"
  14462. fi
  14463. done
  14464. done
  14465. if test "$ac_var_match_word" = "yes"; then
  14466. honor_optimize_option="no"
  14467. fi
  14468. ac_var_match_word="no"
  14469. for word1 in $tmp_CPPFLAGS; do
  14470. for word2 in $flags_opt_all; do
  14471. if test "$word1" = "$word2"; then
  14472. ac_var_match_word="yes"
  14473. fi
  14474. done
  14475. done
  14476. if test "$ac_var_match_word" = "yes"; then
  14477. honor_optimize_option="no"
  14478. fi
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
  14480. $as_echo "$honor_optimize_option" >&6; }
  14481. if test "$honor_optimize_option" = "yes"; then
  14482. if test "$want_optimize" = "assume_yes"; then
  14483. want_optimize="yes"
  14484. fi
  14485. if test "$want_optimize" = "assume_no"; then
  14486. want_optimize="no"
  14487. fi
  14488. fi
  14489. fi
  14490. #
  14491. if test "$honor_optimize_option" = "yes"; then
  14492. ac_var_stripped=""
  14493. for word1 in $tmp_CFLAGS; do
  14494. ac_var_strip_word="no"
  14495. for word2 in $flags_opt_all; do
  14496. if test "$word1" = "$word2"; then
  14497. ac_var_strip_word="yes"
  14498. fi
  14499. done
  14500. if test "$ac_var_strip_word" = "no"; then
  14501. ac_var_stripped="$ac_var_stripped $word1"
  14502. fi
  14503. done
  14504. tmp_CFLAGS="$ac_var_stripped"
  14505. squeeze tmp_CFLAGS
  14506. ac_var_stripped=""
  14507. for word1 in $tmp_CPPFLAGS; do
  14508. ac_var_strip_word="no"
  14509. for word2 in $flags_opt_all; do
  14510. if test "$word1" = "$word2"; then
  14511. ac_var_strip_word="yes"
  14512. fi
  14513. done
  14514. if test "$ac_var_strip_word" = "no"; then
  14515. ac_var_stripped="$ac_var_stripped $word1"
  14516. fi
  14517. done
  14518. tmp_CPPFLAGS="$ac_var_stripped"
  14519. squeeze tmp_CPPFLAGS
  14520. if test "$want_optimize" = "yes"; then
  14521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
  14522. $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
  14523. tmp_options="$flags_opt_yes"
  14524. fi
  14525. if test "$want_optimize" = "no"; then
  14526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
  14527. $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
  14528. tmp_options="$flags_opt_off"
  14529. fi
  14530. if test "$flags_prefer_cppflags" = "yes"; then
  14531. CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
  14532. CFLAGS="$tmp_CFLAGS"
  14533. else
  14534. CPPFLAGS="$tmp_CPPFLAGS"
  14535. CFLAGS="$tmp_CFLAGS $tmp_options"
  14536. fi
  14537. squeeze CPPFLAGS
  14538. squeeze CFLAGS
  14539. tmp_compiler_works="unknown"
  14540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14541. /* end confdefs.h. */
  14542. int main (void)
  14543. {
  14544. int i = 1;
  14545. return i;
  14546. ;
  14547. return 0;
  14548. }
  14549. _ACEOF
  14550. if ac_fn_c_try_compile "$LINENO"; then :
  14551. tmp_compiler_works="yes"
  14552. else
  14553. tmp_compiler_works="no"
  14554. echo " " >&6
  14555. sed 's/^/cc-fail: /' conftest.err >&6
  14556. echo " " >&6
  14557. fi
  14558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14559. if test "$tmp_compiler_works" = "yes"; then
  14560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14561. /* end confdefs.h. */
  14562. int main (void)
  14563. {
  14564. int i = 1;
  14565. return i;
  14566. ;
  14567. return 0;
  14568. }
  14569. _ACEOF
  14570. if ac_fn_c_try_link "$LINENO"; then :
  14571. tmp_compiler_works="yes"
  14572. else
  14573. tmp_compiler_works="no"
  14574. echo " " >&6
  14575. sed 's/^/link-fail: /' conftest.err >&6
  14576. echo " " >&6
  14577. fi
  14578. rm -f core conftest.err conftest.$ac_objext \
  14579. conftest$ac_exeext conftest.$ac_ext
  14580. fi
  14581. if test "x$cross_compiling" != "xyes" &&
  14582. test "$tmp_compiler_works" = "yes"; then
  14583. if test "$cross_compiling" = yes; then :
  14584. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14586. as_fn_error $? "cannot run test program while cross compiling
  14587. See \`config.log' for more details" "$LINENO" 5; }
  14588. else
  14589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14590. /* end confdefs.h. */
  14591. # ifdef __STDC__
  14592. # include <stdlib.h>
  14593. # endif
  14594. int main (void)
  14595. {
  14596. int i = 0;
  14597. exit(i);
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_c_try_run "$LINENO"; then :
  14603. tmp_compiler_works="yes"
  14604. else
  14605. tmp_compiler_works="no"
  14606. echo " " >&6
  14607. echo "run-fail: test program exited with status $ac_status" >&6
  14608. echo " " >&6
  14609. fi
  14610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14611. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14612. fi
  14613. fi
  14614. if test "$tmp_compiler_works" = "yes"; then
  14615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14616. $as_echo "yes" >&6; }
  14617. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
  14618. $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
  14619. else
  14620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14621. $as_echo "no" >&6; }
  14622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
  14623. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
  14624. CPPFLAGS="$tmp_save_CPPFLAGS"
  14625. CFLAGS="$tmp_save_CFLAGS"
  14626. fi
  14627. fi
  14628. #
  14629. fi
  14630. #
  14631. if test "$compiler_id" != "unknown"; then
  14632. #
  14633. tmp_save_CPPFLAGS="$CPPFLAGS"
  14634. tmp_save_CFLAGS="$CFLAGS"
  14635. tmp_CPPFLAGS=""
  14636. tmp_CFLAGS=""
  14637. #
  14638. case "$compiler_id" in
  14639. #
  14640. CLANG)
  14641. #
  14642. if test "$want_warnings" = "yes"; then
  14643. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  14644. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  14645. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  14646. tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
  14647. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  14648. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  14649. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  14650. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  14651. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  14652. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  14653. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  14654. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  14655. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  14656. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  14657. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  14658. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  14659. tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
  14660. #
  14661. if test "$compiler_num" -ge "101"; then
  14662. tmp_CFLAGS="$tmp_CFLAGS -Wunused"
  14663. fi
  14664. fi
  14665. ;;
  14666. #
  14667. DEC_C)
  14668. #
  14669. if test "$want_warnings" = "yes"; then
  14670. tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
  14671. fi
  14672. ;;
  14673. #
  14674. GNU_C)
  14675. #
  14676. if test "$want_warnings" = "yes"; then
  14677. #
  14678. if test "x$cross_compiling" != "xyes" ||
  14679. test "$compiler_num" -ge "300"; then
  14680. tmp_CFLAGS="$tmp_CFLAGS -pedantic"
  14681. fi
  14682. #
  14683. tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
  14684. #
  14685. if test "$compiler_num" -ge "104"; then
  14686. tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
  14687. if test "x$cross_compiling" != "xyes" ||
  14688. test "$compiler_num" -ge "300"; then
  14689. tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
  14690. fi
  14691. fi
  14692. #
  14693. if test "$compiler_num" -ge "207"; then
  14694. tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
  14695. if test "x$cross_compiling" != "xyes" ||
  14696. test "$compiler_num" -ge "300"; then
  14697. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
  14698. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
  14699. fi
  14700. fi
  14701. #
  14702. if test "$compiler_num" -ge "295"; then
  14703. tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
  14704. fi
  14705. #
  14706. if test "$compiler_num" -ge "296"; then
  14707. tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
  14708. tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
  14709. tmp_CFLAGS="$tmp_CFLAGS -Wundef"
  14710. fi
  14711. #
  14712. if test "$compiler_num" -ge "297"; then
  14713. tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
  14714. fi
  14715. #
  14716. if test "$compiler_num" -ge "300"; then
  14717. tmp_CFLAGS="$tmp_CFLAGS"
  14718. fi
  14719. #
  14720. if test "$compiler_num" -ge "303"; then
  14721. tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
  14722. fi
  14723. #
  14724. if test "$compiler_num" -ge "304"; then
  14725. tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
  14726. fi
  14727. #
  14728. if test "$compiler_num" -ge "400"; then
  14729. tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
  14730. fi
  14731. #
  14732. if test "$compiler_num" -ge "402"; then
  14733. tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
  14734. fi
  14735. #
  14736. if test "$compiler_num" -ge "403"; then
  14737. tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
  14738. tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
  14739. tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
  14740. tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
  14741. fi
  14742. #
  14743. if test "$compiler_num" -ge "405"; then
  14744. if test "$curl_cv_have_def__WIN32" = "yes"; then
  14745. tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
  14746. fi
  14747. fi
  14748. #
  14749. fi
  14750. #
  14751. if test "$compiler_num" -ge "300"; then
  14752. tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
  14753. else
  14754. if test "x$cross_compiling" = "xyes"; then
  14755. if test "$compiler_num" -ge "104"; then
  14756. tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
  14757. fi
  14758. if test "$compiler_num" -ge "207"; then
  14759. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
  14760. tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
  14761. fi
  14762. fi
  14763. fi
  14764. ;;
  14765. #
  14766. HP_UX_C)
  14767. #
  14768. if test "$want_warnings" = "yes"; then
  14769. tmp_CFLAGS="$tmp_CFLAGS +w1"
  14770. fi
  14771. ;;
  14772. #
  14773. IBM_C)
  14774. #
  14775. tmp_CFLAGS="$tmp_CFLAGS"
  14776. ;;
  14777. #
  14778. INTEL_UNIX_C)
  14779. #
  14780. if test "$want_warnings" = "yes"; then
  14781. if test "$compiler_num" -gt "600"; then
  14782. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
  14783. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
  14784. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
  14785. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
  14786. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
  14787. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
  14788. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
  14789. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
  14790. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
  14791. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
  14792. tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
  14793. fi
  14794. fi
  14795. tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
  14796. tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
  14797. tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
  14798. if test "$compiler_num" -ge "1000"; then
  14799. tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
  14800. fi
  14801. ;;
  14802. #
  14803. INTEL_WINDOWS_C)
  14804. #
  14805. tmp_CFLAGS="$tmp_CFLAGS"
  14806. ;;
  14807. #
  14808. LCC)
  14809. #
  14810. if test "$want_warnings" = "yes"; then
  14811. tmp_CFLAGS="$tmp_CFLAGS"
  14812. fi
  14813. ;;
  14814. #
  14815. SGI_MIPS_C)
  14816. #
  14817. if test "$want_warnings" = "yes"; then
  14818. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  14819. fi
  14820. ;;
  14821. #
  14822. SGI_MIPSPRO_C)
  14823. #
  14824. if test "$want_warnings" = "yes"; then
  14825. tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
  14826. tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
  14827. fi
  14828. ;;
  14829. #
  14830. SUNPRO_C)
  14831. #
  14832. if test "$want_warnings" = "yes"; then
  14833. tmp_CFLAGS="$tmp_CFLAGS -v"
  14834. fi
  14835. ;;
  14836. #
  14837. TINY_C)
  14838. #
  14839. if test "$want_warnings" = "yes"; then
  14840. tmp_CFLAGS="$tmp_CFLAGS -Wall"
  14841. tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
  14842. tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
  14843. fi
  14844. ;;
  14845. #
  14846. WATCOM_UNIX_C)
  14847. #
  14848. if test "$want_warnings" = "yes"; then
  14849. tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
  14850. fi
  14851. ;;
  14852. #
  14853. WATCOM_WINDOWS_C)
  14854. #
  14855. tmp_CFLAGS="$tmp_CFLAGS"
  14856. ;;
  14857. #
  14858. esac
  14859. #
  14860. squeeze tmp_CPPFLAGS
  14861. squeeze tmp_CFLAGS
  14862. #
  14863. if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
  14865. $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
  14866. CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
  14867. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  14868. squeeze CPPFLAGS
  14869. squeeze CFLAGS
  14870. tmp_compiler_works="unknown"
  14871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14872. /* end confdefs.h. */
  14873. int main (void)
  14874. {
  14875. int i = 1;
  14876. return i;
  14877. ;
  14878. return 0;
  14879. }
  14880. _ACEOF
  14881. if ac_fn_c_try_compile "$LINENO"; then :
  14882. tmp_compiler_works="yes"
  14883. else
  14884. tmp_compiler_works="no"
  14885. echo " " >&6
  14886. sed 's/^/cc-fail: /' conftest.err >&6
  14887. echo " " >&6
  14888. fi
  14889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14890. if test "$tmp_compiler_works" = "yes"; then
  14891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14892. /* end confdefs.h. */
  14893. int main (void)
  14894. {
  14895. int i = 1;
  14896. return i;
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_link "$LINENO"; then :
  14902. tmp_compiler_works="yes"
  14903. else
  14904. tmp_compiler_works="no"
  14905. echo " " >&6
  14906. sed 's/^/link-fail: /' conftest.err >&6
  14907. echo " " >&6
  14908. fi
  14909. rm -f core conftest.err conftest.$ac_objext \
  14910. conftest$ac_exeext conftest.$ac_ext
  14911. fi
  14912. if test "x$cross_compiling" != "xyes" &&
  14913. test "$tmp_compiler_works" = "yes"; then
  14914. if test "$cross_compiling" = yes; then :
  14915. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14916. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14917. as_fn_error $? "cannot run test program while cross compiling
  14918. See \`config.log' for more details" "$LINENO" 5; }
  14919. else
  14920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14921. /* end confdefs.h. */
  14922. # ifdef __STDC__
  14923. # include <stdlib.h>
  14924. # endif
  14925. int main (void)
  14926. {
  14927. int i = 0;
  14928. exit(i);
  14929. ;
  14930. return 0;
  14931. }
  14932. _ACEOF
  14933. if ac_fn_c_try_run "$LINENO"; then :
  14934. tmp_compiler_works="yes"
  14935. else
  14936. tmp_compiler_works="no"
  14937. echo " " >&6
  14938. echo "run-fail: test program exited with status $ac_status" >&6
  14939. echo " " >&6
  14940. fi
  14941. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14942. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14943. fi
  14944. fi
  14945. if test "$tmp_compiler_works" = "yes"; then
  14946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14947. $as_echo "yes" >&6; }
  14948. { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14949. $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
  14950. else
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14952. $as_echo "no" >&6; }
  14953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
  14954. $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
  14955. CPPFLAGS="$tmp_save_CPPFLAGS"
  14956. CFLAGS="$tmp_save_CFLAGS"
  14957. fi
  14958. fi
  14959. #
  14960. fi
  14961. if test "$compiler_id" = "INTEL_UNIX_C"; then
  14962. #
  14963. if test "$compiler_num" -ge "1000"; then
  14964. CFLAGS="$CFLAGS -shared-intel"
  14965. elif test "$compiler_num" -ge "900"; then
  14966. CFLAGS="$CFLAGS -i-dynamic"
  14967. fi
  14968. #
  14969. fi
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
  14971. $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
  14972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14973. /* end confdefs.h. */
  14974. int main (void)
  14975. {
  14976. force compilation error
  14977. ;
  14978. return 0;
  14979. }
  14980. _ACEOF
  14981. if ac_fn_c_try_compile "$LINENO"; then :
  14982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14983. $as_echo "no" >&6; }
  14984. as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
  14985. else
  14986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14987. $as_echo "yes" >&6; }
  14988. fi
  14989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
  14991. $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
  14992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14993. /* end confdefs.h. */
  14994. typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
  14995. int main (void)
  14996. {
  14997. bad_t dummy;
  14998. ;
  14999. return 0;
  15000. }
  15001. _ACEOF
  15002. if ac_fn_c_try_compile "$LINENO"; then :
  15003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15004. $as_echo "no" >&6; }
  15005. as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
  15006. else
  15007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15008. $as_echo "yes" >&6; }
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
  15012. $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
  15013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15014. /* end confdefs.h. */
  15015. # include <stdlib.h>
  15016. int rand(int n);
  15017. int rand(int n)
  15018. {
  15019. if(n)
  15020. return ++n;
  15021. else
  15022. return n;
  15023. }
  15024. int main (void)
  15025. {
  15026. int i[2]={0,0};
  15027. int j = rand(i[0]);
  15028. if(j)
  15029. return j;
  15030. ;
  15031. return 0;
  15032. }
  15033. _ACEOF
  15034. if ac_fn_c_try_compile "$LINENO"; then :
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15036. $as_echo "no" >&6; }
  15037. as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
  15038. else
  15039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15040. $as_echo "yes" >&6; }
  15041. fi
  15042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
  15044. $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
  15045. supports_symbol_hiding="no"
  15046. symbol_hiding_CFLAGS=""
  15047. symbol_hiding_EXTERN=""
  15048. tmp_CFLAGS=""
  15049. tmp_EXTERN=""
  15050. case "$compiler_id" in
  15051. CLANG)
  15052. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15053. tmp_CFLAGS="-fvisibility=hidden"
  15054. supports_symbol_hiding="yes"
  15055. ;;
  15056. GNU_C)
  15057. if test "$compiler_num" -ge "304"; then
  15058. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  15059. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15060. tmp_CFLAGS="-fvisibility=hidden"
  15061. supports_symbol_hiding="yes"
  15062. fi
  15063. fi
  15064. ;;
  15065. INTEL_UNIX_C)
  15066. if test "$compiler_num" -ge "900"; then
  15067. if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
  15068. tmp_save_CFLAGS="$CFLAGS"
  15069. CFLAGS="$CFLAGS -fvisibility=hidden"
  15070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15071. /* end confdefs.h. */
  15072. # include <stdio.h>
  15073. int main (void)
  15074. {
  15075. printf("icc fvisibility bug test");
  15076. ;
  15077. return 0;
  15078. }
  15079. _ACEOF
  15080. if ac_fn_c_try_link "$LINENO"; then :
  15081. tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
  15082. tmp_CFLAGS="-fvisibility=hidden"
  15083. supports_symbol_hiding="yes"
  15084. fi
  15085. rm -f core conftest.err conftest.$ac_objext \
  15086. conftest$ac_exeext conftest.$ac_ext
  15087. CFLAGS="$tmp_save_CFLAGS"
  15088. fi
  15089. fi
  15090. ;;
  15091. SUNPRO_C)
  15092. if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
  15093. tmp_EXTERN="__global"
  15094. tmp_CFLAGS="-xldscope=hidden"
  15095. supports_symbol_hiding="yes"
  15096. fi
  15097. ;;
  15098. esac
  15099. if test "$supports_symbol_hiding" = "yes"; then
  15100. tmp_save_CFLAGS="$CFLAGS"
  15101. CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
  15102. squeeze CFLAGS
  15103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15104. /* end confdefs.h. */
  15105. $tmp_EXTERN char *dummy(char *buff);
  15106. char *dummy(char *buff)
  15107. {
  15108. if(buff)
  15109. return ++buff;
  15110. else
  15111. return buff;
  15112. }
  15113. int main (void)
  15114. {
  15115. char b[16];
  15116. char *r = dummy(&b[0]);
  15117. if(r)
  15118. return (int)*r;
  15119. ;
  15120. return 0;
  15121. }
  15122. _ACEOF
  15123. if ac_fn_c_try_compile "$LINENO"; then :
  15124. supports_symbol_hiding="yes"
  15125. if test -f conftest.err; then
  15126. grep 'visibility' conftest.err >/dev/null
  15127. if test "$?" -eq "0"; then
  15128. supports_symbol_hiding="no"
  15129. fi
  15130. fi
  15131. else
  15132. supports_symbol_hiding="no"
  15133. echo " " >&6
  15134. sed 's/^/cc-src: /' conftest.$ac_ext >&6
  15135. sed 's/^/cc-err: /' conftest.err >&6
  15136. echo " " >&6
  15137. fi
  15138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15139. CFLAGS="$tmp_save_CFLAGS"
  15140. fi
  15141. if test "$supports_symbol_hiding" = "yes"; then
  15142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15143. $as_echo "yes" >&6; }
  15144. symbol_hiding_CFLAGS="$tmp_CFLAGS"
  15145. symbol_hiding_EXTERN="$tmp_EXTERN"
  15146. else
  15147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15148. $as_echo "no" >&6; }
  15149. fi
  15150. supports_curldebug="unknown"
  15151. if test "$want_curldebug" = "yes"; then
  15152. if test "x$enable_shared" != "xno" &&
  15153. test "x$enable_shared" != "xyes"; then
  15154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
  15155. $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
  15156. supports_curldebug="no"
  15157. fi
  15158. if test "x$enable_static" != "xno" &&
  15159. test "x$enable_static" != "xyes"; then
  15160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
  15161. $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
  15162. supports_curldebug="no"
  15163. fi
  15164. if test "$supports_curldebug" != "no"; then
  15165. if test "$enable_shared" = "yes" &&
  15166. test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
  15167. supports_curldebug="no"
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
  15169. $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
  15170. fi
  15171. fi
  15172. fi
  15173. #
  15174. if test "$want_curldebug" = "yes"; then
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
  15176. $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
  15177. test "$supports_curldebug" = "no" || supports_curldebug="yes"
  15178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
  15179. $as_echo "$supports_curldebug" >&6; }
  15180. if test "$supports_curldebug" = "no"; then
  15181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
  15182. $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
  15183. want_curldebug="no"
  15184. fi
  15185. fi
  15186. #
  15187. if test "$want_curldebug" = "yes"; then
  15188. CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
  15189. squeeze CPPFLAGS
  15190. fi
  15191. if test "$want_debug" = "yes"; then
  15192. CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
  15193. squeeze CPPFLAGS
  15194. fi
  15195. if test x$want_curldebug = xyes; then
  15196. CURLDEBUG_TRUE=
  15197. CURLDEBUG_FALSE='#'
  15198. else
  15199. CURLDEBUG_TRUE='#'
  15200. CURLDEBUG_FALSE=
  15201. fi
  15202. supports_unittests=yes
  15203. # cross-compilation of unit tests static library/programs fails when
  15204. # libcurl shared library is built. This might be due to a libtool or
  15205. # automake issue. In this case we disable unit tests.
  15206. if test "x$cross_compiling" != "xno" &&
  15207. test "x$enable_shared" != "xno"; then
  15208. supports_unittests=no
  15209. fi
  15210. # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
  15211. # a problem related with OpenSSL headers and library versions not matching.
  15212. # Disable unit tests while time to further investigate this is found.
  15213. case $host in
  15214. mips-sgi-irix6.5)
  15215. if test "$compiler_id" = "GNU_C"; then
  15216. supports_unittests=no
  15217. fi
  15218. ;;
  15219. esac
  15220. # All AIX autobuilds fails unit tests linking against unittests library
  15221. # due to unittests library being built with no symbols or members. Libtool ?
  15222. # Disable unit tests while time to further investigate this is found.
  15223. case $host_os in
  15224. aix*)
  15225. supports_unittests=no
  15226. ;;
  15227. esac
  15228. if test "x$want_debug" = "xyes" &&
  15229. test "x$supports_unittests" = "xyes"; then
  15230. want_unittests=yes
  15231. else
  15232. want_unittests=no
  15233. fi
  15234. if test x$want_unittests = xyes; then
  15235. BUILD_UNITTESTS_TRUE=
  15236. BUILD_UNITTESTS_FALSE='#'
  15237. else
  15238. BUILD_UNITTESTS_TRUE='#'
  15239. BUILD_UNITTESTS_FALSE=
  15240. fi
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  15242. $as_echo_n "checking for windows.h... " >&6; }
  15243. if ${ac_cv_header_windows_h+:} false; then :
  15244. $as_echo_n "(cached) " >&6
  15245. else
  15246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15247. /* end confdefs.h. */
  15248. #undef inline
  15249. #ifndef WIN32_LEAN_AND_MEAN
  15250. #define WIN32_LEAN_AND_MEAN
  15251. #endif
  15252. #include <windows.h>
  15253. int main (void)
  15254. {
  15255. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15256. HAVE_WINDOWS_H shall not be defined.
  15257. #else
  15258. int dummy=2*WINVER;
  15259. #endif
  15260. ;
  15261. return 0;
  15262. }
  15263. _ACEOF
  15264. if ac_fn_c_try_compile "$LINENO"; then :
  15265. ac_cv_header_windows_h="yes"
  15266. else
  15267. ac_cv_header_windows_h="no"
  15268. fi
  15269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15270. fi
  15271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  15272. $as_echo "$ac_cv_header_windows_h" >&6; }
  15273. case "$ac_cv_header_windows_h" in
  15274. yes)
  15275. cat >>confdefs.h <<_ACEOF
  15276. #define HAVE_WINDOWS_H 1
  15277. _ACEOF
  15278. cat >>confdefs.h <<_ACEOF
  15279. #define WIN32_LEAN_AND_MEAN 1
  15280. _ACEOF
  15281. ;;
  15282. esac
  15283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
  15284. $as_echo_n "checking whether build target is a native Windows one... " >&6; }
  15285. if ${ac_cv_native_windows+:} false; then :
  15286. $as_echo_n "(cached) " >&6
  15287. else
  15288. if test "$ac_cv_header_windows_h" = "no"; then
  15289. ac_cv_native_windows="no"
  15290. else
  15291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15292. /* end confdefs.h. */
  15293. int main (void)
  15294. {
  15295. #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
  15296. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
  15297. int dummy=1;
  15298. #else
  15299. Not a native Windows build target.
  15300. #endif
  15301. ;
  15302. return 0;
  15303. }
  15304. _ACEOF
  15305. if ac_fn_c_try_compile "$LINENO"; then :
  15306. ac_cv_native_windows="yes"
  15307. else
  15308. ac_cv_native_windows="no"
  15309. fi
  15310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15311. fi
  15312. fi
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
  15314. $as_echo "$ac_cv_native_windows" >&6; }
  15315. if test "x$ac_cv_native_windows" = xyes; then
  15316. DOING_NATIVE_WINDOWS_TRUE=
  15317. DOING_NATIVE_WINDOWS_FALSE='#'
  15318. else
  15319. DOING_NATIVE_WINDOWS_TRUE='#'
  15320. DOING_NATIVE_WINDOWS_FALSE=
  15321. fi
  15322. case X-"$ac_cv_native_windows" in
  15323. X-yes)
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  15325. $as_echo_n "checking for winsock.h... " >&6; }
  15326. if ${ac_cv_header_winsock_h+:} false; then :
  15327. $as_echo_n "(cached) " >&6
  15328. else
  15329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15330. /* end confdefs.h. */
  15331. #undef inline
  15332. #ifndef WIN32_LEAN_AND_MEAN
  15333. #define WIN32_LEAN_AND_MEAN
  15334. #endif
  15335. #include <windows.h>
  15336. #include <winsock.h>
  15337. int main (void)
  15338. {
  15339. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15340. HAVE_WINSOCK_H shall not be defined.
  15341. #else
  15342. int dummy=WSACleanup();
  15343. #endif
  15344. ;
  15345. return 0;
  15346. }
  15347. _ACEOF
  15348. if ac_fn_c_try_compile "$LINENO"; then :
  15349. ac_cv_header_winsock_h="yes"
  15350. else
  15351. ac_cv_header_winsock_h="no"
  15352. fi
  15353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15354. fi
  15355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  15356. $as_echo "$ac_cv_header_winsock_h" >&6; }
  15357. case "$ac_cv_header_winsock_h" in
  15358. yes)
  15359. cat >>confdefs.h <<_ACEOF
  15360. #define HAVE_WINSOCK_H 1
  15361. _ACEOF
  15362. ;;
  15363. esac
  15364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  15365. $as_echo_n "checking for winsock2.h... " >&6; }
  15366. if ${ac_cv_header_winsock2_h+:} false; then :
  15367. $as_echo_n "(cached) " >&6
  15368. else
  15369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15370. /* end confdefs.h. */
  15371. #undef inline
  15372. #ifndef WIN32_LEAN_AND_MEAN
  15373. #define WIN32_LEAN_AND_MEAN
  15374. #endif
  15375. #include <windows.h>
  15376. #include <winsock2.h>
  15377. int main (void)
  15378. {
  15379. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15380. HAVE_WINSOCK2_H shall not be defined.
  15381. #else
  15382. int dummy=2*IPPROTO_ESP;
  15383. #endif
  15384. ;
  15385. return 0;
  15386. }
  15387. _ACEOF
  15388. if ac_fn_c_try_compile "$LINENO"; then :
  15389. ac_cv_header_winsock2_h="yes"
  15390. else
  15391. ac_cv_header_winsock2_h="no"
  15392. fi
  15393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15394. fi
  15395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  15396. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  15397. case "$ac_cv_header_winsock2_h" in
  15398. yes)
  15399. cat >>confdefs.h <<_ACEOF
  15400. #define HAVE_WINSOCK2_H 1
  15401. _ACEOF
  15402. ;;
  15403. esac
  15404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  15405. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  15406. if ${ac_cv_header_ws2tcpip_h+:} false; then :
  15407. $as_echo_n "(cached) " >&6
  15408. else
  15409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15410. /* end confdefs.h. */
  15411. #undef inline
  15412. #ifndef WIN32_LEAN_AND_MEAN
  15413. #define WIN32_LEAN_AND_MEAN
  15414. #endif
  15415. #include <windows.h>
  15416. #include <winsock2.h>
  15417. #include <ws2tcpip.h>
  15418. int main (void)
  15419. {
  15420. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  15421. HAVE_WS2TCPIP_H shall not be defined.
  15422. #else
  15423. int dummy=2*IP_PKTINFO;
  15424. #endif
  15425. ;
  15426. return 0;
  15427. }
  15428. _ACEOF
  15429. if ac_fn_c_try_compile "$LINENO"; then :
  15430. ac_cv_header_ws2tcpip_h="yes"
  15431. else
  15432. ac_cv_header_ws2tcpip_h="no"
  15433. fi
  15434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15435. fi
  15436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  15437. $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
  15438. case "$ac_cv_header_ws2tcpip_h" in
  15439. yes)
  15440. cat >>confdefs.h <<_ACEOF
  15441. #define HAVE_WS2TCPIP_H 1
  15442. _ACEOF
  15443. ;;
  15444. esac
  15445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
  15446. $as_echo_n "checking for winldap.h... " >&6; }
  15447. if ${ac_cv_header_winldap_h+:} false; then :
  15448. $as_echo_n "(cached) " >&6
  15449. else
  15450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15451. /* end confdefs.h. */
  15452. #undef inline
  15453. #ifdef HAVE_WINDOWS_H
  15454. #ifndef WIN32_LEAN_AND_MEAN
  15455. #define WIN32_LEAN_AND_MEAN
  15456. #endif
  15457. #include <windows.h>
  15458. #endif
  15459. #include <winldap.h>
  15460. int main (void)
  15461. {
  15462. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15463. HAVE_WINLDAP_H shall not be defined.
  15464. #else
  15465. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  15466. ULONG res = ldap_unbind(ldp);
  15467. #endif
  15468. ;
  15469. return 0;
  15470. }
  15471. _ACEOF
  15472. if ac_fn_c_try_compile "$LINENO"; then :
  15473. ac_cv_header_winldap_h="yes"
  15474. else
  15475. ac_cv_header_winldap_h="no"
  15476. fi
  15477. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15478. fi
  15479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
  15480. $as_echo "$ac_cv_header_winldap_h" >&6; }
  15481. case "$ac_cv_header_winldap_h" in
  15482. yes)
  15483. cat >>confdefs.h <<_ACEOF
  15484. #define HAVE_WINLDAP_H 1
  15485. _ACEOF
  15486. ;;
  15487. esac
  15488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
  15489. $as_echo_n "checking for winber.h... " >&6; }
  15490. if ${ac_cv_header_winber_h+:} false; then :
  15491. $as_echo_n "(cached) " >&6
  15492. else
  15493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15494. /* end confdefs.h. */
  15495. #undef inline
  15496. #ifdef HAVE_WINDOWS_H
  15497. #ifndef WIN32_LEAN_AND_MEAN
  15498. #define WIN32_LEAN_AND_MEAN
  15499. #endif
  15500. #include <windows.h>
  15501. #endif
  15502. #include <winldap.h>
  15503. #include <winber.h>
  15504. int main (void)
  15505. {
  15506. #if defined(__CYGWIN__) || defined(__CEGCC__)
  15507. HAVE_WINBER_H shall not be defined.
  15508. #else
  15509. BERVAL *bvp = NULL;
  15510. BerElement *bep = ber_init(bvp);
  15511. ber_free(bep, 1);
  15512. #endif
  15513. ;
  15514. return 0;
  15515. }
  15516. _ACEOF
  15517. if ac_fn_c_try_compile "$LINENO"; then :
  15518. ac_cv_header_winber_h="yes"
  15519. else
  15520. ac_cv_header_winber_h="no"
  15521. fi
  15522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15523. fi
  15524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
  15525. $as_echo "$ac_cv_header_winber_h" >&6; }
  15526. case "$ac_cv_header_winber_h" in
  15527. yes)
  15528. cat >>confdefs.h <<_ACEOF
  15529. #define HAVE_WINBER_H 1
  15530. _ACEOF
  15531. ;;
  15532. esac
  15533. ;;
  15534. *)
  15535. ac_cv_header_winsock_h="no"
  15536. ac_cv_header_winsock2_h="no"
  15537. ac_cv_header_ws2tcpip_h="no"
  15538. ac_cv_header_winldap_h="no"
  15539. ac_cv_header_winber_h="no"
  15540. ;;
  15541. esac
  15542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
  15543. $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
  15544. curl_win32_file_api="no"
  15545. if test "$ac_cv_header_windows_h" = "yes"; then
  15546. if test x"$enable_largefile" != "xno"; then
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. int main (void)
  15550. {
  15551. #if !defined(_WIN32_WCE) && \
  15552. (defined(__MINGW32__) || \
  15553. (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
  15554. int dummy=1;
  15555. #else
  15556. WIN32 large file API not supported.
  15557. #endif
  15558. ;
  15559. return 0;
  15560. }
  15561. _ACEOF
  15562. if ac_fn_c_try_compile "$LINENO"; then :
  15563. curl_win32_file_api="win32_large_files"
  15564. fi
  15565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15566. fi
  15567. if test "$curl_win32_file_api" = "no"; then
  15568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15569. /* end confdefs.h. */
  15570. int main (void)
  15571. {
  15572. #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
  15573. int dummy=1;
  15574. #else
  15575. WIN32 small file API not supported.
  15576. #endif
  15577. ;
  15578. return 0;
  15579. }
  15580. _ACEOF
  15581. if ac_fn_c_try_compile "$LINENO"; then :
  15582. curl_win32_file_api="win32_small_files"
  15583. fi
  15584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15585. fi
  15586. fi
  15587. case "$curl_win32_file_api" in
  15588. win32_large_files)
  15589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
  15590. $as_echo "yes (large file enabled)" >&6; }
  15591. cat >>confdefs.h <<_ACEOF
  15592. #define USE_WIN32_LARGE_FILES 1
  15593. _ACEOF
  15594. ;;
  15595. win32_small_files)
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
  15597. $as_echo "yes (large file disabled)" >&6; }
  15598. cat >>confdefs.h <<_ACEOF
  15599. #define USE_WIN32_SMALL_FILES 1
  15600. _ACEOF
  15601. ;;
  15602. *)
  15603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15604. $as_echo "no" >&6; }
  15605. ;;
  15606. esac
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
  15608. $as_echo_n "checking whether to support http... " >&6; }
  15609. # Check whether --enable-http was given.
  15610. if test "${enable_http+set}" = set; then :
  15611. enableval=$enable_http; case "$enableval" in
  15612. no)
  15613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15614. $as_echo "no" >&6; }
  15615. $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
  15616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
  15617. $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
  15618. CURL_DISABLE_HTTP=1
  15619. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  15620. CURL_DISABLE_RTSP=1
  15621. ;;
  15622. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15623. $as_echo "yes" >&6; }
  15624. ;;
  15625. esac
  15626. else
  15627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15628. $as_echo "yes" >&6; }
  15629. fi
  15630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
  15631. $as_echo_n "checking whether to support ftp... " >&6; }
  15632. # Check whether --enable-ftp was given.
  15633. if test "${enable_ftp+set}" = set; then :
  15634. enableval=$enable_ftp; case "$enableval" in
  15635. no)
  15636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15637. $as_echo "no" >&6; }
  15638. $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
  15639. CURL_DISABLE_FTP=1
  15640. ;;
  15641. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15642. $as_echo "yes" >&6; }
  15643. ;;
  15644. esac
  15645. else
  15646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15647. $as_echo "yes" >&6; }
  15648. fi
  15649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
  15650. $as_echo_n "checking whether to support file... " >&6; }
  15651. # Check whether --enable-file was given.
  15652. if test "${enable_file+set}" = set; then :
  15653. enableval=$enable_file; case "$enableval" in
  15654. no)
  15655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15656. $as_echo "no" >&6; }
  15657. $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
  15658. CURL_DISABLE_FILE=1
  15659. ;;
  15660. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15661. $as_echo "yes" >&6; }
  15662. ;;
  15663. esac
  15664. else
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15666. $as_echo "yes" >&6; }
  15667. fi
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
  15669. $as_echo_n "checking whether to support ldap... " >&6; }
  15670. # Check whether --enable-ldap was given.
  15671. if test "${enable_ldap+set}" = set; then :
  15672. enableval=$enable_ldap; case "$enableval" in
  15673. no)
  15674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15675. $as_echo "no" >&6; }
  15676. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  15677. CURL_DISABLE_LDAP=1
  15678. ;;
  15679. *)
  15680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15681. $as_echo "yes" >&6; }
  15682. ;;
  15683. esac
  15684. else
  15685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15686. $as_echo "yes" >&6; }
  15687. fi
  15688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
  15689. $as_echo_n "checking whether to support ldaps... " >&6; }
  15690. # Check whether --enable-ldaps was given.
  15691. if test "${enable_ldaps+set}" = set; then :
  15692. enableval=$enable_ldaps; case "$enableval" in
  15693. no)
  15694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15695. $as_echo "no" >&6; }
  15696. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15697. CURL_DISABLE_LDAPS=1
  15698. ;;
  15699. *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  15700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
  15701. $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
  15702. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15703. CURL_DISABLE_LDAPS=1
  15704. else
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15706. $as_echo "yes" >&6; }
  15707. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  15708. HAVE_LDAP_SSL=1
  15709. fi
  15710. ;;
  15711. esac
  15712. else
  15713. if test "x$CURL_DISABLE_LDAP" = "x1" ; then
  15714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15715. $as_echo "no" >&6; }
  15716. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  15717. CURL_DISABLE_LDAPS=1
  15718. else
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15720. $as_echo "yes" >&6; }
  15721. $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
  15722. HAVE_LDAP_SSL=1
  15723. fi
  15724. fi
  15725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
  15726. $as_echo_n "checking whether to support rtsp... " >&6; }
  15727. # Check whether --enable-rtsp was given.
  15728. if test "${enable_rtsp+set}" = set; then :
  15729. enableval=$enable_rtsp; case "$enableval" in
  15730. no)
  15731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15732. $as_echo "no" >&6; }
  15733. $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
  15734. CURL_DISABLE_RTSP=1
  15735. ;;
  15736. *) if test x$CURL_DISABLE_HTTP = x1 ; then
  15737. as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
  15738. else
  15739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15740. $as_echo "yes" >&6; }
  15741. curl_rtsp_msg="enabled"
  15742. fi
  15743. ;;
  15744. esac
  15745. else
  15746. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  15747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15748. $as_echo "yes" >&6; }
  15749. curl_rtsp_msg="enabled"
  15750. else
  15751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15752. $as_echo "no" >&6; }
  15753. fi
  15754. fi
  15755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
  15756. $as_echo_n "checking whether to support proxies... " >&6; }
  15757. # Check whether --enable-proxy was given.
  15758. if test "${enable_proxy+set}" = set; then :
  15759. enableval=$enable_proxy; case "$enableval" in
  15760. no)
  15761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15762. $as_echo "no" >&6; }
  15763. $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
  15764. CURL_DISABLE_PROXY=1
  15765. ;;
  15766. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15767. $as_echo "yes" >&6; }
  15768. ;;
  15769. esac
  15770. else
  15771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15772. $as_echo "yes" >&6; }
  15773. fi
  15774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
  15775. $as_echo_n "checking whether to support dict... " >&6; }
  15776. # Check whether --enable-dict was given.
  15777. if test "${enable_dict+set}" = set; then :
  15778. enableval=$enable_dict; case "$enableval" in
  15779. no)
  15780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15781. $as_echo "no" >&6; }
  15782. $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
  15783. CURL_DISABLE_DICT=1
  15784. ;;
  15785. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15786. $as_echo "yes" >&6; }
  15787. ;;
  15788. esac
  15789. else
  15790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15791. $as_echo "yes" >&6; }
  15792. fi
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
  15794. $as_echo_n "checking whether to support telnet... " >&6; }
  15795. # Check whether --enable-telnet was given.
  15796. if test "${enable_telnet+set}" = set; then :
  15797. enableval=$enable_telnet; case "$enableval" in
  15798. no)
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15800. $as_echo "no" >&6; }
  15801. $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
  15802. CURL_DISABLE_TELNET=1
  15803. ;;
  15804. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15805. $as_echo "yes" >&6; }
  15806. ;;
  15807. esac
  15808. else
  15809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15810. $as_echo "yes" >&6; }
  15811. fi
  15812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
  15813. $as_echo_n "checking whether to support tftp... " >&6; }
  15814. # Check whether --enable-tftp was given.
  15815. if test "${enable_tftp+set}" = set; then :
  15816. enableval=$enable_tftp; case "$enableval" in
  15817. no)
  15818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15819. $as_echo "no" >&6; }
  15820. $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
  15821. CURL_DISABLE_TFTP=1
  15822. ;;
  15823. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15824. $as_echo "yes" >&6; }
  15825. ;;
  15826. esac
  15827. else
  15828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15829. $as_echo "yes" >&6; }
  15830. fi
  15831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
  15832. $as_echo_n "checking whether to support pop3... " >&6; }
  15833. # Check whether --enable-pop3 was given.
  15834. if test "${enable_pop3+set}" = set; then :
  15835. enableval=$enable_pop3; case "$enableval" in
  15836. no)
  15837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15838. $as_echo "no" >&6; }
  15839. $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
  15840. CURL_DISABLE_POP3=1
  15841. ;;
  15842. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15843. $as_echo "yes" >&6; }
  15844. ;;
  15845. esac
  15846. else
  15847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15848. $as_echo "yes" >&6; }
  15849. fi
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
  15851. $as_echo_n "checking whether to support imap... " >&6; }
  15852. # Check whether --enable-imap was given.
  15853. if test "${enable_imap+set}" = set; then :
  15854. enableval=$enable_imap; case "$enableval" in
  15855. no)
  15856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15857. $as_echo "no" >&6; }
  15858. $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
  15859. CURL_DISABLE_IMAP=1
  15860. ;;
  15861. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15862. $as_echo "yes" >&6; }
  15863. ;;
  15864. esac
  15865. else
  15866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15867. $as_echo "yes" >&6; }
  15868. fi
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
  15870. $as_echo_n "checking whether to support smtp... " >&6; }
  15871. # Check whether --enable-smtp was given.
  15872. if test "${enable_smtp+set}" = set; then :
  15873. enableval=$enable_smtp; case "$enableval" in
  15874. no)
  15875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15876. $as_echo "no" >&6; }
  15877. $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
  15878. CURL_DISABLE_SMTP=1
  15879. ;;
  15880. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15881. $as_echo "yes" >&6; }
  15882. ;;
  15883. esac
  15884. else
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15886. $as_echo "yes" >&6; }
  15887. fi
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
  15889. $as_echo_n "checking whether to support gopher... " >&6; }
  15890. # Check whether --enable-gopher was given.
  15891. if test "${enable_gopher+set}" = set; then :
  15892. enableval=$enable_gopher; case "$enableval" in
  15893. no)
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15895. $as_echo "no" >&6; }
  15896. $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
  15897. CURL_DISABLE_GOPHER=1
  15898. ;;
  15899. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15900. $as_echo "yes" >&6; }
  15901. ;;
  15902. esac
  15903. else
  15904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15905. $as_echo "yes" >&6; }
  15906. fi
  15907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
  15908. $as_echo_n "checking whether to provide built-in manual... " >&6; }
  15909. # Check whether --enable-manual was given.
  15910. if test "${enable_manual+set}" = set; then :
  15911. enableval=$enable_manual; case "$enableval" in
  15912. no)
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15914. $as_echo "no" >&6; }
  15915. ;;
  15916. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15917. $as_echo "yes" >&6; }
  15918. USE_MANUAL="1"
  15919. ;;
  15920. esac
  15921. else
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15923. $as_echo "yes" >&6; }
  15924. USE_MANUAL="1"
  15925. fi
  15926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
  15927. $as_echo_n "checking whether to enable generation of C code... " >&6; }
  15928. # Check whether --enable-libcurl_option was given.
  15929. if test "${enable_libcurl_option+set}" = set; then :
  15930. enableval=$enable_libcurl_option; case "$enableval" in
  15931. no)
  15932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15933. $as_echo "no" >&6; }
  15934. $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
  15935. curl_libcurl_msg="no"
  15936. ;;
  15937. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15938. $as_echo "yes" >&6; }
  15939. ;;
  15940. esac
  15941. else
  15942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15943. $as_echo "yes" >&6; }
  15944. fi
  15945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
  15946. $as_echo_n "checking whether to use libgcc... " >&6; }
  15947. # Check whether --enable-libgcc was given.
  15948. if test "${enable_libgcc+set}" = set; then :
  15949. enableval=$enable_libgcc; case "$enableval" in
  15950. yes)
  15951. LIBS="-lgcc $LIBS"
  15952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15953. $as_echo "yes" >&6; }
  15954. ;;
  15955. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15956. $as_echo "no" >&6; }
  15957. ;;
  15958. esac
  15959. else
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15961. $as_echo "no" >&6; }
  15962. fi
  15963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
  15964. $as_echo_n "checking if X/Open network library is required... " >&6; }
  15965. tst_lib_xnet_required="no"
  15966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15967. /* end confdefs.h. */
  15968. int main (void)
  15969. {
  15970. #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
  15971. return 0;
  15972. #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
  15973. return 0;
  15974. #else
  15975. force compilation error
  15976. #endif
  15977. }
  15978. _ACEOF
  15979. if ac_fn_c_try_compile "$LINENO"; then :
  15980. tst_lib_xnet_required="yes"
  15981. LIBS="-lxnet $LIBS"
  15982. fi
  15983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
  15985. $as_echo "$tst_lib_xnet_required" >&6; }
  15986. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  15987. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  15988. HAVE_GETHOSTBYNAME="1"
  15989. else
  15990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  15991. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  15992. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  15993. $as_echo_n "(cached) " >&6
  15994. else
  15995. ac_check_lib_save_LIBS=$LIBS
  15996. LIBS="-lnsl $LIBS"
  15997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15998. /* end confdefs.h. */
  15999. #ifdef __cplusplus
  16000. extern "C"
  16001. #endif
  16002. char gethostbyname ();
  16003. int main (void)
  16004. {
  16005. return gethostbyname ();
  16006. ;
  16007. return 0;
  16008. }
  16009. _ACEOF
  16010. if ac_fn_c_try_link "$LINENO"; then :
  16011. ac_cv_lib_nsl_gethostbyname=yes
  16012. else
  16013. ac_cv_lib_nsl_gethostbyname=no
  16014. fi
  16015. rm -f core conftest.err conftest.$ac_objext \
  16016. conftest$ac_exeext conftest.$ac_ext
  16017. LIBS=$ac_check_lib_save_LIBS
  16018. fi
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  16020. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  16021. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  16022. HAVE_GETHOSTBYNAME="1"
  16023. LIBS="-lnsl $LIBS"
  16024. fi
  16025. fi
  16026. if test "$HAVE_GETHOSTBYNAME" != "1"
  16027. then
  16028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
  16029. $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
  16030. if ${ac_cv_lib_socket_gethostbyname+:} false; then :
  16031. $as_echo_n "(cached) " >&6
  16032. else
  16033. ac_check_lib_save_LIBS=$LIBS
  16034. LIBS="-lsocket $LIBS"
  16035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16036. /* end confdefs.h. */
  16037. #ifdef __cplusplus
  16038. extern "C"
  16039. #endif
  16040. char gethostbyname ();
  16041. int main (void)
  16042. {
  16043. return gethostbyname ();
  16044. ;
  16045. return 0;
  16046. }
  16047. _ACEOF
  16048. if ac_fn_c_try_link "$LINENO"; then :
  16049. ac_cv_lib_socket_gethostbyname=yes
  16050. else
  16051. ac_cv_lib_socket_gethostbyname=no
  16052. fi
  16053. rm -f core conftest.err conftest.$ac_objext \
  16054. conftest$ac_exeext conftest.$ac_ext
  16055. LIBS=$ac_check_lib_save_LIBS
  16056. fi
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
  16058. $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
  16059. if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
  16060. HAVE_GETHOSTBYNAME="1"
  16061. LIBS="-lsocket $LIBS"
  16062. fi
  16063. fi
  16064. if test "$HAVE_GETHOSTBYNAME" != "1"
  16065. then
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
  16067. $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
  16068. if ${ac_cv_lib_watt_gethostbyname+:} false; then :
  16069. $as_echo_n "(cached) " >&6
  16070. else
  16071. ac_check_lib_save_LIBS=$LIBS
  16072. LIBS="-lwatt $LIBS"
  16073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16074. /* end confdefs.h. */
  16075. #ifdef __cplusplus
  16076. extern "C"
  16077. #endif
  16078. char gethostbyname ();
  16079. int main (void)
  16080. {
  16081. return gethostbyname ();
  16082. ;
  16083. return 0;
  16084. }
  16085. _ACEOF
  16086. if ac_fn_c_try_link "$LINENO"; then :
  16087. ac_cv_lib_watt_gethostbyname=yes
  16088. else
  16089. ac_cv_lib_watt_gethostbyname=no
  16090. fi
  16091. rm -f core conftest.err conftest.$ac_objext \
  16092. conftest$ac_exeext conftest.$ac_ext
  16093. LIBS=$ac_check_lib_save_LIBS
  16094. fi
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
  16096. $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
  16097. if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
  16098. HAVE_GETHOSTBYNAME="1"
  16099. CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
  16100. LDFLAGS="-L/dev/env/WATT_ROOT/lib"
  16101. LIBS="-lwatt $LIBS"
  16102. fi
  16103. fi
  16104. if test "$HAVE_GETHOSTBYNAME" != "1"
  16105. then
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
  16107. $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
  16108. my_ac_save_LIBS=$LIBS
  16109. LIBS="-lnsl -lsocket $LIBS"
  16110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16111. /* end confdefs.h. */
  16112. int main (void)
  16113. {
  16114. gethostbyname();
  16115. ;
  16116. return 0;
  16117. }
  16118. _ACEOF
  16119. if ac_fn_c_try_link "$LINENO"; then :
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16121. $as_echo "yes" >&6; }
  16122. HAVE_GETHOSTBYNAME="1"
  16123. else
  16124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16125. $as_echo "no" >&6; }
  16126. LIBS=$my_ac_save_LIBS
  16127. fi
  16128. rm -f core conftest.err conftest.$ac_objext \
  16129. conftest$ac_exeext conftest.$ac_ext
  16130. fi
  16131. if test "$HAVE_GETHOSTBYNAME" != "1"
  16132. then
  16133. if test "$ac_cv_header_windows_h" = "yes"; then
  16134. if test "$ac_cv_header_winsock_h" = "yes"; then
  16135. case $host in
  16136. *-*-mingw32ce*)
  16137. winsock_LIB="-lwinsock"
  16138. ;;
  16139. *)
  16140. winsock_LIB="-lwsock32"
  16141. ;;
  16142. esac
  16143. fi
  16144. if test "$ac_cv_header_winsock2_h" = "yes"; then
  16145. winsock_LIB="-lws2_32"
  16146. fi
  16147. if test ! -z "$winsock_LIB"; then
  16148. my_ac_save_LIBS=$LIBS
  16149. LIBS="$winsock_LIB $LIBS"
  16150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
  16151. $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
  16152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. /* end confdefs.h. */
  16154. #ifdef HAVE_WINDOWS_H
  16155. #ifndef WIN32_LEAN_AND_MEAN
  16156. #define WIN32_LEAN_AND_MEAN
  16157. #endif
  16158. #include <windows.h>
  16159. #ifdef HAVE_WINSOCK2_H
  16160. #include <winsock2.h>
  16161. #else
  16162. #ifdef HAVE_WINSOCK_H
  16163. #include <winsock.h>
  16164. #endif
  16165. #endif
  16166. #endif
  16167. int main (void)
  16168. {
  16169. gethostbyname("www.dummysite.com");
  16170. ;
  16171. return 0;
  16172. }
  16173. _ACEOF
  16174. if ac_fn_c_try_link "$LINENO"; then :
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16176. $as_echo "yes" >&6; }
  16177. HAVE_GETHOSTBYNAME="1"
  16178. else
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16180. $as_echo "no" >&6; }
  16181. winsock_LIB=""
  16182. LIBS=$my_ac_save_LIBS
  16183. fi
  16184. rm -f core conftest.err conftest.$ac_objext \
  16185. conftest$ac_exeext conftest.$ac_ext
  16186. fi
  16187. fi
  16188. fi
  16189. if test "$HAVE_GETHOSTBYNAME" != "1"
  16190. then
  16191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
  16192. $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
  16193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16194. /* end confdefs.h. */
  16195. /* Older Minix versions may need <net/gen/netdb.h> here instead */
  16196. #include <netdb.h>
  16197. int main (void)
  16198. {
  16199. gethostbyname("www.dummysite.com");
  16200. ;
  16201. return 0;
  16202. }
  16203. _ACEOF
  16204. if ac_fn_c_try_link "$LINENO"; then :
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16206. $as_echo "yes" >&6; }
  16207. HAVE_GETHOSTBYNAME="1"
  16208. else
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16210. $as_echo "no" >&6; }
  16211. fi
  16212. rm -f core conftest.err conftest.$ac_objext \
  16213. conftest$ac_exeext conftest.$ac_ext
  16214. fi
  16215. if test "$HAVE_GETHOSTBYNAME" != "1"
  16216. then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
  16218. $as_echo_n "checking for gethostbyname for eCos... " >&6; }
  16219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16220. /* end confdefs.h. */
  16221. #include <stdio.h>
  16222. #include <netdb.h>
  16223. int main (void)
  16224. {
  16225. gethostbyname("www.dummysite.com");
  16226. ;
  16227. return 0;
  16228. }
  16229. _ACEOF
  16230. if ac_fn_c_try_link "$LINENO"; then :
  16231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16232. $as_echo "yes" >&6; }
  16233. HAVE_GETHOSTBYNAME="1"
  16234. else
  16235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16236. $as_echo "no" >&6; }
  16237. fi
  16238. rm -f core conftest.err conftest.$ac_objext \
  16239. conftest$ac_exeext conftest.$ac_ext
  16240. fi
  16241. if test "$HAVE_GETHOSTBYNAME" != "1"
  16242. then
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
  16244. $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
  16245. if ${ac_cv_lib_network_gethostbyname+:} false; then :
  16246. $as_echo_n "(cached) " >&6
  16247. else
  16248. ac_check_lib_save_LIBS=$LIBS
  16249. LIBS="-lnetwork $LIBS"
  16250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16251. /* end confdefs.h. */
  16252. #ifdef __cplusplus
  16253. extern "C"
  16254. #endif
  16255. char gethostbyname ();
  16256. int main (void)
  16257. {
  16258. return gethostbyname ();
  16259. ;
  16260. return 0;
  16261. }
  16262. _ACEOF
  16263. if ac_fn_c_try_link "$LINENO"; then :
  16264. ac_cv_lib_network_gethostbyname=yes
  16265. else
  16266. ac_cv_lib_network_gethostbyname=no
  16267. fi
  16268. rm -f core conftest.err conftest.$ac_objext \
  16269. conftest$ac_exeext conftest.$ac_ext
  16270. LIBS=$ac_check_lib_save_LIBS
  16271. fi
  16272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
  16273. $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
  16274. if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
  16275. HAVE_GETHOSTBYNAME="1"
  16276. LIBS="-lnetwork $LIBS"
  16277. fi
  16278. fi
  16279. if test "$HAVE_GETHOSTBYNAME" != "1"
  16280. then
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
  16282. $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
  16283. if ${ac_cv_lib_net_gethostbyname+:} false; then :
  16284. $as_echo_n "(cached) " >&6
  16285. else
  16286. ac_check_lib_save_LIBS=$LIBS
  16287. LIBS="-lnet $LIBS"
  16288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16289. /* end confdefs.h. */
  16290. #ifdef __cplusplus
  16291. extern "C"
  16292. #endif
  16293. char gethostbyname ();
  16294. int main (void)
  16295. {
  16296. return gethostbyname ();
  16297. ;
  16298. return 0;
  16299. }
  16300. _ACEOF
  16301. if ac_fn_c_try_link "$LINENO"; then :
  16302. ac_cv_lib_net_gethostbyname=yes
  16303. else
  16304. ac_cv_lib_net_gethostbyname=no
  16305. fi
  16306. rm -f core conftest.err conftest.$ac_objext \
  16307. conftest$ac_exeext conftest.$ac_ext
  16308. LIBS=$ac_check_lib_save_LIBS
  16309. fi
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
  16311. $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
  16312. if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
  16313. HAVE_GETHOSTBYNAME="1"
  16314. LIBS="-lnet $LIBS"
  16315. fi
  16316. fi
  16317. if test "$HAVE_GETHOSTBYNAME" != "1"; then
  16318. as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
  16319. fi
  16320. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16321. if test "x$ac_cv_func_strcasecmp" = xyes; then :
  16322. else
  16323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  16324. $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
  16325. if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
  16326. $as_echo_n "(cached) " >&6
  16327. else
  16328. ac_check_lib_save_LIBS=$LIBS
  16329. LIBS="-lresolve $LIBS"
  16330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16331. /* end confdefs.h. */
  16332. #ifdef __cplusplus
  16333. extern "C"
  16334. #endif
  16335. char strcasecmp ();
  16336. int main (void)
  16337. {
  16338. return strcasecmp ();
  16339. ;
  16340. return 0;
  16341. }
  16342. _ACEOF
  16343. if ac_fn_c_try_link "$LINENO"; then :
  16344. ac_cv_lib_resolve_strcasecmp=yes
  16345. else
  16346. ac_cv_lib_resolve_strcasecmp=no
  16347. fi
  16348. rm -f core conftest.err conftest.$ac_objext \
  16349. conftest$ac_exeext conftest.$ac_ext
  16350. LIBS=$ac_check_lib_save_LIBS
  16351. fi
  16352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  16353. $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
  16354. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
  16355. cat >>confdefs.h <<_ACEOF
  16356. #define HAVE_LIBRESOLVE 1
  16357. _ACEOF
  16358. LIBS="-lresolve $LIBS"
  16359. fi
  16360. fi
  16361. if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
  16362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
  16363. $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
  16364. if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
  16365. $as_echo_n "(cached) " >&6
  16366. else
  16367. ac_check_lib_save_LIBS=$LIBS
  16368. LIBS="-lresolve -lnsl $LIBS"
  16369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16370. /* end confdefs.h. */
  16371. #ifdef __cplusplus
  16372. extern "C"
  16373. #endif
  16374. char strcasecmp ();
  16375. int main (void)
  16376. {
  16377. return strcasecmp ();
  16378. ;
  16379. return 0;
  16380. }
  16381. _ACEOF
  16382. if ac_fn_c_try_link "$LINENO"; then :
  16383. ac_cv_lib_resolve_strcasecmp=yes
  16384. else
  16385. ac_cv_lib_resolve_strcasecmp=no
  16386. fi
  16387. rm -f core conftest.err conftest.$ac_objext \
  16388. conftest$ac_exeext conftest.$ac_ext
  16389. LIBS=$ac_check_lib_save_LIBS
  16390. fi
  16391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
  16392. $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
  16393. if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
  16394. LIBS="-lresolve $LIBS"
  16395. fi
  16396. fi
  16397. ac_cv_func_strcasecmp="no"
  16398. curl_includes_winsock2="\
  16399. /* includes start */
  16400. #ifdef HAVE_WINDOWS_H
  16401. # ifndef WIN32_LEAN_AND_MEAN
  16402. # define WIN32_LEAN_AND_MEAN
  16403. # endif
  16404. # include <windows.h>
  16405. # ifdef HAVE_WINSOCK2_H
  16406. # include <winsock2.h>
  16407. # else
  16408. # ifdef HAVE_WINSOCK_H
  16409. # include <winsock.h>
  16410. # endif
  16411. # endif
  16412. #endif
  16413. /* includes end */"
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  16415. $as_echo_n "checking for windows.h... " >&6; }
  16416. if ${ac_cv_header_windows_h+:} false; then :
  16417. $as_echo_n "(cached) " >&6
  16418. else
  16419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16420. /* end confdefs.h. */
  16421. #undef inline
  16422. #ifndef WIN32_LEAN_AND_MEAN
  16423. #define WIN32_LEAN_AND_MEAN
  16424. #endif
  16425. #include <windows.h>
  16426. int main (void)
  16427. {
  16428. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16429. HAVE_WINDOWS_H shall not be defined.
  16430. #else
  16431. int dummy=2*WINVER;
  16432. #endif
  16433. ;
  16434. return 0;
  16435. }
  16436. _ACEOF
  16437. if ac_fn_c_try_compile "$LINENO"; then :
  16438. ac_cv_header_windows_h="yes"
  16439. else
  16440. ac_cv_header_windows_h="no"
  16441. fi
  16442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16443. fi
  16444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  16445. $as_echo "$ac_cv_header_windows_h" >&6; }
  16446. case "$ac_cv_header_windows_h" in
  16447. yes)
  16448. cat >>confdefs.h <<_ACEOF
  16449. #define HAVE_WINDOWS_H 1
  16450. _ACEOF
  16451. cat >>confdefs.h <<_ACEOF
  16452. #define WIN32_LEAN_AND_MEAN 1
  16453. _ACEOF
  16454. ;;
  16455. esac
  16456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
  16457. $as_echo_n "checking for winsock.h... " >&6; }
  16458. if ${ac_cv_header_winsock_h+:} false; then :
  16459. $as_echo_n "(cached) " >&6
  16460. else
  16461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16462. /* end confdefs.h. */
  16463. #undef inline
  16464. #ifndef WIN32_LEAN_AND_MEAN
  16465. #define WIN32_LEAN_AND_MEAN
  16466. #endif
  16467. #include <windows.h>
  16468. #include <winsock.h>
  16469. int main (void)
  16470. {
  16471. #if defined(__CYGWIN__) || defined(__CEGCC__)
  16472. HAVE_WINSOCK_H shall not be defined.
  16473. #else
  16474. int dummy=WSACleanup();
  16475. #endif
  16476. ;
  16477. return 0;
  16478. }
  16479. _ACEOF
  16480. if ac_fn_c_try_compile "$LINENO"; then :
  16481. ac_cv_header_winsock_h="yes"
  16482. else
  16483. ac_cv_header_winsock_h="no"
  16484. fi
  16485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16486. fi
  16487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
  16488. $as_echo "$ac_cv_header_winsock_h" >&6; }
  16489. case "$ac_cv_header_winsock_h" in
  16490. yes)
  16491. cat >>confdefs.h <<_ACEOF
  16492. #define HAVE_WINSOCK_H 1
  16493. _ACEOF
  16494. ;;
  16495. esac
  16496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  16497. $as_echo_n "checking for winsock2.h... " >&6; }
  16498. if ${ac_cv_header_winsock2_h+:} false; then :
  16499. $as_echo_n "(cached) " >&6
  16500. else
  16501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16502. /* end confdefs.h. */
  16503. #undef inline
  16504. #ifndef WIN32_LEAN_AND_MEAN
  16505. #define WIN32_LEAN_AND_MEAN
  16506. #endif
  16507. #include <windows.h>
  16508. #include <winsock2.h>
  16509. int main (void)
  16510. {
  16511. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  16512. HAVE_WINSOCK2_H shall not be defined.
  16513. #else
  16514. int dummy=2*IPPROTO_ESP;
  16515. #endif
  16516. ;
  16517. return 0;
  16518. }
  16519. _ACEOF
  16520. if ac_fn_c_try_compile "$LINENO"; then :
  16521. ac_cv_header_winsock2_h="yes"
  16522. else
  16523. ac_cv_header_winsock2_h="no"
  16524. fi
  16525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16526. fi
  16527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  16528. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  16529. case "$ac_cv_header_winsock2_h" in
  16530. yes)
  16531. cat >>confdefs.h <<_ACEOF
  16532. #define HAVE_WINSOCK2_H 1
  16533. _ACEOF
  16534. ;;
  16535. esac
  16536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
  16537. $as_echo_n "checking for connect in libraries... " >&6; }
  16538. tst_connect_save_LIBS="$LIBS"
  16539. tst_connect_need_LIBS="unknown"
  16540. for tst_lib in '' '-lsocket' ; do
  16541. if test "$tst_connect_need_LIBS" = "unknown"; then
  16542. LIBS="$tst_lib $tst_connect_save_LIBS"
  16543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16544. /* end confdefs.h. */
  16545. $curl_includes_winsock2
  16546. #ifndef HAVE_WINDOWS_H
  16547. int connect(int, void*, int);
  16548. #endif
  16549. int main (void)
  16550. {
  16551. if(0 != connect(0, 0, 0))
  16552. return 1;
  16553. ;
  16554. return 0;
  16555. }
  16556. _ACEOF
  16557. if ac_fn_c_try_link "$LINENO"; then :
  16558. tst_connect_need_LIBS="$tst_lib"
  16559. fi
  16560. rm -f core conftest.err conftest.$ac_objext \
  16561. conftest$ac_exeext conftest.$ac_ext
  16562. fi
  16563. done
  16564. LIBS="$tst_connect_save_LIBS"
  16565. #
  16566. case X-"$tst_connect_need_LIBS" in
  16567. X-unknown)
  16568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
  16569. $as_echo "cannot find connect" >&6; }
  16570. as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
  16571. ;;
  16572. X-)
  16573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16574. $as_echo "yes" >&6; }
  16575. ;;
  16576. *)
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
  16578. $as_echo "$tst_connect_need_LIBS" >&6; }
  16579. LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
  16580. ;;
  16581. esac
  16582. CURL_NETWORK_LIBS=$LIBS
  16583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  16584. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  16585. if ${ac_cv_header_time+:} false; then :
  16586. $as_echo_n "(cached) " >&6
  16587. else
  16588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16589. /* end confdefs.h. */
  16590. #include <sys/types.h>
  16591. #include <sys/time.h>
  16592. #include <time.h>
  16593. int main (void)
  16594. {
  16595. if ((struct tm *) 0)
  16596. return 0;
  16597. ;
  16598. return 0;
  16599. }
  16600. _ACEOF
  16601. if ac_fn_c_try_compile "$LINENO"; then :
  16602. ac_cv_header_time=yes
  16603. else
  16604. ac_cv_header_time=no
  16605. fi
  16606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16607. fi
  16608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  16609. $as_echo "$ac_cv_header_time" >&6; }
  16610. if test $ac_cv_header_time = yes; then
  16611. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  16612. fi
  16613. for ac_header in sys/types.h sys/time.h time.h
  16614. do :
  16615. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16616. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16617. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16618. cat >>confdefs.h <<_ACEOF
  16619. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16620. _ACEOF
  16621. fi
  16622. done
  16623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
  16624. $as_echo_n "checking for monotonic clock_gettime... " >&6; }
  16625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16626. /* end confdefs.h. */
  16627. #ifdef HAVE_SYS_TYPES_H
  16628. #include <sys/types.h>
  16629. #endif
  16630. #ifdef HAVE_SYS_TIME_H
  16631. #include <sys/time.h>
  16632. #ifdef TIME_WITH_SYS_TIME
  16633. #include <time.h>
  16634. #endif
  16635. #else
  16636. #ifdef HAVE_TIME_H
  16637. #include <time.h>
  16638. #endif
  16639. #endif
  16640. int main (void)
  16641. {
  16642. struct timespec ts;
  16643. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  16644. ;
  16645. return 0;
  16646. }
  16647. _ACEOF
  16648. if ac_fn_c_try_compile "$LINENO"; then :
  16649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16650. $as_echo "yes" >&6; }
  16651. ac_cv_func_clock_gettime="yes"
  16652. else
  16653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16654. $as_echo "no" >&6; }
  16655. ac_cv_func_clock_gettime="no"
  16656. fi
  16657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16658. #
  16659. if test "$ac_cv_func_clock_gettime" = "yes"; then
  16660. #
  16661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
  16662. $as_echo_n "checking for clock_gettime in libraries... " >&6; }
  16663. #
  16664. curl_cv_save_LIBS="$LIBS"
  16665. curl_cv_gclk_LIBS="unknown"
  16666. #
  16667. for x_xlibs in '' '-lrt' '-lposix4' ; do
  16668. if test "$curl_cv_gclk_LIBS" = "unknown"; then
  16669. if test -z "$x_xlibs"; then
  16670. LIBS="$curl_cv_save_LIBS"
  16671. else
  16672. LIBS="$x_xlibs $curl_cv_save_LIBS"
  16673. fi
  16674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16675. /* end confdefs.h. */
  16676. #ifdef HAVE_SYS_TYPES_H
  16677. #include <sys/types.h>
  16678. #endif
  16679. #ifdef HAVE_SYS_TIME_H
  16680. #include <sys/time.h>
  16681. #ifdef TIME_WITH_SYS_TIME
  16682. #include <time.h>
  16683. #endif
  16684. #else
  16685. #ifdef HAVE_TIME_H
  16686. #include <time.h>
  16687. #endif
  16688. #endif
  16689. int main (void)
  16690. {
  16691. struct timespec ts;
  16692. (void)clock_gettime(CLOCK_MONOTONIC, &ts);
  16693. ;
  16694. return 0;
  16695. }
  16696. _ACEOF
  16697. if ac_fn_c_try_link "$LINENO"; then :
  16698. curl_cv_gclk_LIBS="$x_xlibs"
  16699. fi
  16700. rm -f core conftest.err conftest.$ac_objext \
  16701. conftest$ac_exeext conftest.$ac_ext
  16702. fi
  16703. done
  16704. #
  16705. LIBS="$curl_cv_save_LIBS"
  16706. #
  16707. case X-"$curl_cv_gclk_LIBS" in
  16708. X-unknown)
  16709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
  16710. $as_echo "cannot find clock_gettime" >&6; }
  16711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  16712. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  16713. ac_cv_func_clock_gettime="no"
  16714. ;;
  16715. X-)
  16716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  16717. $as_echo "no additional lib required" >&6; }
  16718. ac_cv_func_clock_gettime="yes"
  16719. ;;
  16720. *)
  16721. if test -z "$curl_cv_save_LIBS"; then
  16722. LIBS="$curl_cv_gclk_LIBS"
  16723. else
  16724. LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
  16725. fi
  16726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
  16727. $as_echo "$curl_cv_gclk_LIBS" >&6; }
  16728. ac_cv_func_clock_gettime="yes"
  16729. ;;
  16730. esac
  16731. #
  16732. if test "x$cross_compiling" != "xyes" &&
  16733. test "$ac_cv_func_clock_gettime" = "yes"; then
  16734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
  16735. $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
  16736. if test "$cross_compiling" = yes; then :
  16737. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16738. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16739. as_fn_error $? "cannot run test program while cross compiling
  16740. See \`config.log' for more details" "$LINENO" 5; }
  16741. else
  16742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16743. /* end confdefs.h. */
  16744. #ifdef HAVE_STDLIB_H
  16745. #include <stdlib.h>
  16746. #endif
  16747. #ifdef HAVE_SYS_TYPES_H
  16748. #include <sys/types.h>
  16749. #endif
  16750. #ifdef HAVE_SYS_TIME_H
  16751. #include <sys/time.h>
  16752. #ifdef TIME_WITH_SYS_TIME
  16753. #include <time.h>
  16754. #endif
  16755. #else
  16756. #ifdef HAVE_TIME_H
  16757. #include <time.h>
  16758. #endif
  16759. #endif
  16760. int main (void)
  16761. {
  16762. struct timespec ts;
  16763. if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
  16764. exit(0);
  16765. else
  16766. exit(1);
  16767. ;
  16768. return 0;
  16769. }
  16770. _ACEOF
  16771. if ac_fn_c_try_run "$LINENO"; then :
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16773. $as_echo "yes" >&6; }
  16774. else
  16775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16776. $as_echo "no" >&6; }
  16777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
  16778. $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
  16779. ac_cv_func_clock_gettime="no"
  16780. LIBS="$curl_cv_save_LIBS"
  16781. fi
  16782. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16783. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16784. fi
  16785. fi
  16786. #
  16787. case "$ac_cv_func_clock_gettime" in
  16788. yes)
  16789. cat >>confdefs.h <<_ACEOF
  16790. #define HAVE_CLOCK_GETTIME_MONOTONIC 1
  16791. _ACEOF
  16792. ;;
  16793. esac
  16794. #
  16795. fi
  16796. #
  16797. CURL_NETWORK_AND_TIME_LIBS=$LIBS
  16798. clean_CPPFLAGS=$CPPFLAGS
  16799. clean_LDFLAGS=$LDFLAGS
  16800. clean_LIBS=$LIBS
  16801. ZLIB_LIBS=""
  16802. # Check whether --with-zlib was given.
  16803. if test "${with_zlib+set}" = set; then :
  16804. withval=$with_zlib; OPT_ZLIB="$withval"
  16805. fi
  16806. if test "$OPT_ZLIB" = "no" ; then
  16807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
  16808. $as_echo "$as_me: WARNING: zlib disabled" >&2;}
  16809. else
  16810. if test "$OPT_ZLIB" = "yes" ; then
  16811. OPT_ZLIB=""
  16812. fi
  16813. if test -z "$OPT_ZLIB" ; then
  16814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
  16815. $as_echo_n "checking for inflateEnd in -lz... " >&6; }
  16816. if ${ac_cv_lib_z_inflateEnd+:} false; then :
  16817. $as_echo_n "(cached) " >&6
  16818. else
  16819. ac_check_lib_save_LIBS=$LIBS
  16820. LIBS="-lz $LIBS"
  16821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16822. /* end confdefs.h. */
  16823. #ifdef __cplusplus
  16824. extern "C"
  16825. #endif
  16826. char inflateEnd ();
  16827. int main (void)
  16828. {
  16829. return inflateEnd ();
  16830. ;
  16831. return 0;
  16832. }
  16833. _ACEOF
  16834. if ac_fn_c_try_link "$LINENO"; then :
  16835. ac_cv_lib_z_inflateEnd=yes
  16836. else
  16837. ac_cv_lib_z_inflateEnd=no
  16838. fi
  16839. rm -f core conftest.err conftest.$ac_objext \
  16840. conftest$ac_exeext conftest.$ac_ext
  16841. LIBS=$ac_check_lib_save_LIBS
  16842. fi
  16843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
  16844. $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
  16845. if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
  16846. HAVE_LIBZ="1"
  16847. LIBS="-lz $LIBS"
  16848. else
  16849. OPT_ZLIB="/usr/local"
  16850. fi
  16851. fi
  16852. if test -n "$OPT_ZLIB"; then
  16853. CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
  16854. LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
  16855. fi
  16856. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  16857. if test "x$ac_cv_header_zlib_h" = xyes; then :
  16858. HAVE_ZLIB_H="1"
  16859. if test "$HAVE_LIBZ" != "1"; then
  16860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
  16861. $as_echo_n "checking for gzread in -lz... " >&6; }
  16862. if ${ac_cv_lib_z_gzread+:} false; then :
  16863. $as_echo_n "(cached) " >&6
  16864. else
  16865. ac_check_lib_save_LIBS=$LIBS
  16866. LIBS="-lz $LIBS"
  16867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16868. /* end confdefs.h. */
  16869. #ifdef __cplusplus
  16870. extern "C"
  16871. #endif
  16872. char gzread ();
  16873. int main (void)
  16874. {
  16875. return gzread ();
  16876. ;
  16877. return 0;
  16878. }
  16879. _ACEOF
  16880. if ac_fn_c_try_link "$LINENO"; then :
  16881. ac_cv_lib_z_gzread=yes
  16882. else
  16883. ac_cv_lib_z_gzread=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_z_gzread" >&5
  16890. $as_echo "$ac_cv_lib_z_gzread" >&6; }
  16891. if test "x$ac_cv_lib_z_gzread" = xyes; then :
  16892. HAVE_LIBZ="1"
  16893. LIBS="-lz $LIBS"
  16894. else
  16895. CPPFLAGS=$clean_CPPFLAGS
  16896. LDFLAGS=$clean_LDFLAGS
  16897. fi
  16898. fi
  16899. else
  16900. CPPFLAGS=$clean_CPPFLAGS
  16901. LDFLAGS=$clean_LDFLAGS
  16902. fi
  16903. if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
  16904. then
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
  16906. $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
  16907. HAVE_LIBZ=""
  16908. CPPFLAGS=$clean_CPPFLAGS
  16909. LDFLAGS=$clean_LDFLAGS
  16910. LIBS=$clean_LIBS
  16911. elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
  16912. then
  16913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
  16914. $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
  16915. CPPFLAGS=$clean_CPPFLAGS
  16916. LDFLAGS=$clean_LDFLAGS
  16917. LIBS=$clean_LIBS
  16918. elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
  16919. then
  16920. $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
  16921. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  16922. ZLIB_LIBS="-lz"
  16923. LIBS="-lz $clean_LIBS"
  16924. AMFIXLIB="1"
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
  16926. $as_echo "$as_me: found both libz and libz.h header" >&6;}
  16927. curl_zlib_msg="enabled"
  16928. fi
  16929. fi
  16930. if test x"$AMFIXLIB" = x1; then
  16931. HAVE_LIBZ_TRUE=
  16932. HAVE_LIBZ_FALSE='#'
  16933. else
  16934. HAVE_LIBZ_TRUE='#'
  16935. HAVE_LIBZ_FALSE=
  16936. fi
  16937. LDAPLIBNAME=""
  16938. # Check whether --with-ldap-lib was given.
  16939. if test "${with_ldap_lib+set}" = set; then :
  16940. withval=$with_ldap_lib; LDAPLIBNAME="$withval"
  16941. fi
  16942. LBERLIBNAME=""
  16943. # Check whether --with-lber-lib was given.
  16944. if test "${with_lber_lib+set}" = set; then :
  16945. withval=$with_lber_lib; LBERLIBNAME="$withval"
  16946. fi
  16947. if test x$CURL_DISABLE_LDAP != x1 ; then
  16948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
  16949. $as_echo_n "checking for lber.h... " >&6; }
  16950. if ${ac_cv_header_lber_h+:} false; then :
  16951. $as_echo_n "(cached) " >&6
  16952. else
  16953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16954. /* end confdefs.h. */
  16955. #undef inline
  16956. #ifdef HAVE_WINDOWS_H
  16957. #ifndef WIN32_LEAN_AND_MEAN
  16958. #define WIN32_LEAN_AND_MEAN
  16959. #endif
  16960. #include <windows.h>
  16961. #else
  16962. #ifdef HAVE_SYS_TYPES_H
  16963. #include <sys/types.h>
  16964. #endif
  16965. #endif
  16966. #ifndef NULL
  16967. #define NULL (void *)0
  16968. #endif
  16969. #include <lber.h>
  16970. int main (void)
  16971. {
  16972. BerValue *bvp = NULL;
  16973. BerElement *bep = ber_init(bvp);
  16974. ber_free(bep, 1);
  16975. ;
  16976. return 0;
  16977. }
  16978. _ACEOF
  16979. if ac_fn_c_try_compile "$LINENO"; then :
  16980. ac_cv_header_lber_h="yes"
  16981. else
  16982. ac_cv_header_lber_h="no"
  16983. fi
  16984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16985. fi
  16986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
  16987. $as_echo "$ac_cv_header_lber_h" >&6; }
  16988. if test "$ac_cv_header_lber_h" = "yes"; then
  16989. cat >>confdefs.h <<_ACEOF
  16990. #define HAVE_LBER_H 1
  16991. _ACEOF
  16992. #
  16993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16994. /* end confdefs.h. */
  16995. #undef inline
  16996. #ifdef HAVE_WINDOWS_H
  16997. #ifndef WIN32_LEAN_AND_MEAN
  16998. #define WIN32_LEAN_AND_MEAN
  16999. #endif
  17000. #include <windows.h>
  17001. #else
  17002. #ifdef HAVE_SYS_TYPES_H
  17003. #include <sys/types.h>
  17004. #endif
  17005. #endif
  17006. #ifndef NULL
  17007. #define NULL (void *)0
  17008. #endif
  17009. #ifndef LDAP_DEPRECATED
  17010. #define LDAP_DEPRECATED 1
  17011. #endif
  17012. #include <ldap.h>
  17013. int main (void)
  17014. {
  17015. BerValue *bvp = NULL;
  17016. BerElement *bep = ber_init(bvp);
  17017. ber_free(bep, 1);
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_compile "$LINENO"; then :
  17023. curl_cv_need_header_lber_h="no"
  17024. else
  17025. curl_cv_need_header_lber_h="yes"
  17026. fi
  17027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17028. #
  17029. case "$curl_cv_need_header_lber_h" in
  17030. yes)
  17031. cat >>confdefs.h <<_ACEOF
  17032. #define NEED_LBER_H 1
  17033. _ACEOF
  17034. ;;
  17035. esac
  17036. fi
  17037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
  17038. $as_echo_n "checking for ldap.h... " >&6; }
  17039. if ${ac_cv_header_ldap_h+:} false; then :
  17040. $as_echo_n "(cached) " >&6
  17041. else
  17042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17043. /* end confdefs.h. */
  17044. #undef inline
  17045. #ifdef HAVE_WINDOWS_H
  17046. #ifndef WIN32_LEAN_AND_MEAN
  17047. #define WIN32_LEAN_AND_MEAN
  17048. #endif
  17049. #include <windows.h>
  17050. #else
  17051. #ifdef HAVE_SYS_TYPES_H
  17052. #include <sys/types.h>
  17053. #endif
  17054. #endif
  17055. #ifndef LDAP_DEPRECATED
  17056. #define LDAP_DEPRECATED 1
  17057. #endif
  17058. #ifdef NEED_LBER_H
  17059. #include <lber.h>
  17060. #endif
  17061. #include <ldap.h>
  17062. int main (void)
  17063. {
  17064. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17065. int res = ldap_unbind(ldp);
  17066. ;
  17067. return 0;
  17068. }
  17069. _ACEOF
  17070. if ac_fn_c_try_compile "$LINENO"; then :
  17071. ac_cv_header_ldap_h="yes"
  17072. else
  17073. ac_cv_header_ldap_h="no"
  17074. fi
  17075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17076. fi
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
  17078. $as_echo "$ac_cv_header_ldap_h" >&6; }
  17079. case "$ac_cv_header_ldap_h" in
  17080. yes)
  17081. cat >>confdefs.h <<_ACEOF
  17082. #define HAVE_LDAP_H 1
  17083. _ACEOF
  17084. ;;
  17085. esac
  17086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
  17087. $as_echo_n "checking for ldapssl.h... " >&6; }
  17088. if ${ac_cv_header_ldapssl_h+:} false; then :
  17089. $as_echo_n "(cached) " >&6
  17090. else
  17091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17092. /* end confdefs.h. */
  17093. #undef inline
  17094. #ifdef HAVE_WINDOWS_H
  17095. #ifndef WIN32_LEAN_AND_MEAN
  17096. #define WIN32_LEAN_AND_MEAN
  17097. #endif
  17098. #include <windows.h>
  17099. #else
  17100. #ifdef HAVE_SYS_TYPES_H
  17101. #include <sys/types.h>
  17102. #endif
  17103. #endif
  17104. #ifndef NULL
  17105. #define NULL (void *)0
  17106. #endif
  17107. #ifndef LDAP_DEPRECATED
  17108. #define LDAP_DEPRECATED 1
  17109. #endif
  17110. #ifdef NEED_LBER_H
  17111. #include <lber.h>
  17112. #endif
  17113. #ifdef HAVE_LDAP_H
  17114. #include <ldap.h>
  17115. #endif
  17116. #include <ldapssl.h>
  17117. int main (void)
  17118. {
  17119. char *cert_label = NULL;
  17120. LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
  17121. ;
  17122. return 0;
  17123. }
  17124. _ACEOF
  17125. if ac_fn_c_try_compile "$LINENO"; then :
  17126. ac_cv_header_ldapssl_h="yes"
  17127. else
  17128. ac_cv_header_ldapssl_h="no"
  17129. fi
  17130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17131. fi
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
  17133. $as_echo "$ac_cv_header_ldapssl_h" >&6; }
  17134. case "$ac_cv_header_ldapssl_h" in
  17135. yes)
  17136. cat >>confdefs.h <<_ACEOF
  17137. #define HAVE_LDAPSSL_H 1
  17138. _ACEOF
  17139. ;;
  17140. esac
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
  17142. $as_echo_n "checking for ldap_ssl.h... " >&6; }
  17143. if ${ac_cv_header_ldap_ssl_h+:} false; then :
  17144. $as_echo_n "(cached) " >&6
  17145. else
  17146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17147. /* end confdefs.h. */
  17148. #undef inline
  17149. #ifdef HAVE_WINDOWS_H
  17150. #ifndef WIN32_LEAN_AND_MEAN
  17151. #define WIN32_LEAN_AND_MEAN
  17152. #endif
  17153. #include <windows.h>
  17154. #else
  17155. #ifdef HAVE_SYS_TYPES_H
  17156. #include <sys/types.h>
  17157. #endif
  17158. #endif
  17159. #ifndef LDAP_DEPRECATED
  17160. #define LDAP_DEPRECATED 1
  17161. #endif
  17162. #ifdef NEED_LBER_H
  17163. #include <lber.h>
  17164. #endif
  17165. #ifdef HAVE_LDAP_H
  17166. #include <ldap.h>
  17167. #endif
  17168. #include <ldap_ssl.h>
  17169. int main (void)
  17170. {
  17171. LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
  17172. ;
  17173. return 0;
  17174. }
  17175. _ACEOF
  17176. if ac_fn_c_try_compile "$LINENO"; then :
  17177. ac_cv_header_ldap_ssl_h="yes"
  17178. else
  17179. ac_cv_header_ldap_ssl_h="no"
  17180. fi
  17181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17182. fi
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
  17184. $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
  17185. case "$ac_cv_header_ldap_ssl_h" in
  17186. yes)
  17187. cat >>confdefs.h <<_ACEOF
  17188. #define HAVE_LDAP_SSL_H 1
  17189. _ACEOF
  17190. ;;
  17191. esac
  17192. if test -z "$LDAPLIBNAME" ; then
  17193. if test "$ac_cv_native_windows" = "yes"; then
  17194. LDAPLIBNAME="wldap32"
  17195. LBERLIBNAME="no"
  17196. fi
  17197. fi
  17198. if test "$LDAPLIBNAME" ; then
  17199. as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
  17200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
  17201. $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
  17202. if eval \${$as_ac_Lib+:} false; then :
  17203. $as_echo_n "(cached) " >&6
  17204. else
  17205. ac_check_lib_save_LIBS=$LIBS
  17206. LIBS="-l"$LDAPLIBNAME" $LIBS"
  17207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17208. /* end confdefs.h. */
  17209. #ifdef __cplusplus
  17210. extern "C"
  17211. #endif
  17212. char ldap_init ();
  17213. int main (void)
  17214. {
  17215. return ldap_init ();
  17216. ;
  17217. return 0;
  17218. }
  17219. _ACEOF
  17220. if ac_fn_c_try_link "$LINENO"; then :
  17221. eval "$as_ac_Lib=yes"
  17222. else
  17223. eval "$as_ac_Lib=no"
  17224. fi
  17225. rm -f core conftest.err conftest.$ac_objext \
  17226. conftest$ac_exeext conftest.$ac_ext
  17227. LIBS=$ac_check_lib_save_LIBS
  17228. fi
  17229. eval ac_res=\$$as_ac_Lib
  17230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17231. $as_echo "$ac_res" >&6; }
  17232. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17233. cat >>confdefs.h <<_ACEOF
  17234. #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
  17235. _ACEOF
  17236. LIBS="-l"$LDAPLIBNAME" $LIBS"
  17237. else
  17238. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
  17239. $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
  17240. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17241. CURL_DISABLE_LDAP=1
  17242. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17243. CURL_DISABLE_LDAPS=1
  17244. fi
  17245. else
  17246. #
  17247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
  17248. $as_echo_n "checking for LDAP libraries... " >&6; }
  17249. #
  17250. u_libs=""
  17251. #
  17252. #
  17253. curl_cv_save_LIBS="$LIBS"
  17254. curl_cv_ldap_LIBS="unknown"
  17255. #
  17256. for x_nlibs in '' "$u_libs" \
  17257. '-lldap' \
  17258. '-llber -lldap' \
  17259. '-lldap -llber' \
  17260. '-lldapssl -lldapx -lldapsdk' \
  17261. '-lldapsdk -lldapx -lldapssl' ; do
  17262. if test "$curl_cv_ldap_LIBS" = "unknown"; then
  17263. if test -z "$x_nlibs"; then
  17264. LIBS="$curl_cv_save_LIBS"
  17265. else
  17266. LIBS="$x_nlibs $curl_cv_save_LIBS"
  17267. fi
  17268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17269. /* end confdefs.h. */
  17270. #undef inline
  17271. #ifdef HAVE_WINDOWS_H
  17272. #ifndef WIN32_LEAN_AND_MEAN
  17273. #define WIN32_LEAN_AND_MEAN
  17274. #endif
  17275. #include <windows.h>
  17276. #else
  17277. #ifdef HAVE_SYS_TYPES_H
  17278. #include <sys/types.h>
  17279. #endif
  17280. #endif
  17281. #ifndef NULL
  17282. #define NULL (void *)0
  17283. #endif
  17284. #ifndef LDAP_DEPRECATED
  17285. #define LDAP_DEPRECATED 1
  17286. #endif
  17287. #ifdef NEED_LBER_H
  17288. #include <lber.h>
  17289. #endif
  17290. #ifdef HAVE_LDAP_H
  17291. #include <ldap.h>
  17292. #endif
  17293. int main (void)
  17294. {
  17295. BerValue *bvp = NULL;
  17296. BerElement *bep = ber_init(bvp);
  17297. LDAP *ldp = ldap_init("dummy", LDAP_PORT);
  17298. int res = ldap_unbind(ldp);
  17299. ber_free(bep, 1);
  17300. ;
  17301. return 0;
  17302. }
  17303. _ACEOF
  17304. if ac_fn_c_try_link "$LINENO"; then :
  17305. curl_cv_ldap_LIBS="$x_nlibs"
  17306. fi
  17307. rm -f core conftest.err conftest.$ac_objext \
  17308. conftest$ac_exeext conftest.$ac_ext
  17309. fi
  17310. done
  17311. #
  17312. LIBS="$curl_cv_save_LIBS"
  17313. #
  17314. case X-"$curl_cv_ldap_LIBS" in
  17315. X-unknown)
  17316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
  17317. $as_echo "cannot find LDAP libraries" >&6; }
  17318. ;;
  17319. X-)
  17320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
  17321. $as_echo "no additional lib required" >&6; }
  17322. ;;
  17323. *)
  17324. if test -z "$curl_cv_save_LIBS"; then
  17325. LIBS="$curl_cv_ldap_LIBS"
  17326. else
  17327. LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
  17328. fi
  17329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
  17330. $as_echo "$curl_cv_ldap_LIBS" >&6; }
  17331. ;;
  17332. esac
  17333. #
  17334. case X-"$curl_cv_ldap_LIBS" in
  17335. X-unknown)
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
  17337. $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
  17338. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17339. CURL_DISABLE_LDAP=1
  17340. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17341. CURL_DISABLE_LDAPS=1
  17342. ;;
  17343. esac
  17344. fi
  17345. fi
  17346. if test x$CURL_DISABLE_LDAP != x1 ; then
  17347. if test "$LBERLIBNAME" ; then
  17348. if test "$LBERLIBNAME" != "no" ; then
  17349. as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
  17350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
  17351. $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
  17352. if eval \${$as_ac_Lib+:} false; then :
  17353. $as_echo_n "(cached) " >&6
  17354. else
  17355. ac_check_lib_save_LIBS=$LIBS
  17356. LIBS="-l"$LBERLIBNAME" $LIBS"
  17357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17358. /* end confdefs.h. */
  17359. #ifdef __cplusplus
  17360. extern "C"
  17361. #endif
  17362. char ber_free ();
  17363. int main (void)
  17364. {
  17365. return ber_free ();
  17366. ;
  17367. return 0;
  17368. }
  17369. _ACEOF
  17370. if ac_fn_c_try_link "$LINENO"; then :
  17371. eval "$as_ac_Lib=yes"
  17372. else
  17373. eval "$as_ac_Lib=no"
  17374. fi
  17375. rm -f core conftest.err conftest.$ac_objext \
  17376. conftest$ac_exeext conftest.$ac_ext
  17377. LIBS=$ac_check_lib_save_LIBS
  17378. fi
  17379. eval ac_res=\$$as_ac_Lib
  17380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17381. $as_echo "$ac_res" >&6; }
  17382. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17383. cat >>confdefs.h <<_ACEOF
  17384. #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
  17385. _ACEOF
  17386. LIBS="-l"$LBERLIBNAME" $LIBS"
  17387. else
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
  17389. $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
  17390. $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
  17391. CURL_DISABLE_LDAP=1
  17392. $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
  17393. CURL_DISABLE_LDAPS=1
  17394. fi
  17395. fi
  17396. fi
  17397. fi
  17398. if test x$CURL_DISABLE_LDAP != x1 ; then
  17399. for ac_func in ldap_url_parse ldap_init_fd
  17400. do :
  17401. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17402. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17403. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  17404. cat >>confdefs.h <<_ACEOF
  17405. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17406. _ACEOF
  17407. fi
  17408. done
  17409. if test "$LDAPLIBNAME" = "wldap32"; then
  17410. curl_ldap_msg="enabled (winldap)"
  17411. $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
  17412. else
  17413. curl_ldap_msg="enabled (OpenLDAP)"
  17414. if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
  17415. $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
  17416. USE_OPENLDAP=1
  17417. fi
  17418. fi
  17419. fi
  17420. if test x$CURL_DISABLE_LDAPS != x1 ; then
  17421. curl_ldaps_msg="enabled"
  17422. fi
  17423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
  17424. $as_echo_n "checking whether to enable ipv6... " >&6; }
  17425. # Check whether --enable-ipv6 was given.
  17426. if test "${enable_ipv6+set}" = set; then :
  17427. enableval=$enable_ipv6; case "$enableval" in
  17428. no)
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17430. $as_echo "no" >&6; }
  17431. ipv6=no
  17432. ;;
  17433. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17434. $as_echo "yes" >&6; }
  17435. ipv6=yes
  17436. ;;
  17437. esac
  17438. else
  17439. if test "$cross_compiling" = yes; then :
  17440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17441. $as_echo "no" >&6; }
  17442. ipv6=no
  17443. else
  17444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17445. /* end confdefs.h. */
  17446. /* is AF_INET6 available? */
  17447. #include <sys/types.h>
  17448. #include <sys/socket.h>
  17449. #include <stdlib.h> /* for exit() */
  17450. main()
  17451. {
  17452. if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
  17453. exit(1);
  17454. else
  17455. exit(0);
  17456. }
  17457. _ACEOF
  17458. if ac_fn_c_try_run "$LINENO"; then :
  17459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17460. $as_echo "yes" >&6; }
  17461. ipv6=yes
  17462. else
  17463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17464. $as_echo "no" >&6; }
  17465. ipv6=no
  17466. fi
  17467. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17468. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17469. fi
  17470. fi
  17471. if test "$ipv6" = "yes"; then
  17472. curl_ipv6_msg="enabled"
  17473. fi
  17474. # Check if struct sockaddr_in6 have sin6_scope_id member
  17475. if test "$ipv6" = yes; then
  17476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
  17477. $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
  17478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17479. /* end confdefs.h. */
  17480. #include <sys/types.h>
  17481. #include <netinet/in.h>
  17482. int main (void)
  17483. {
  17484. struct sockaddr_in6 s; s.sin6_scope_id = 0;
  17485. ;
  17486. return 0;
  17487. }
  17488. _ACEOF
  17489. if ac_fn_c_try_compile "$LINENO"; then :
  17490. have_sin6_scope_id=yes
  17491. fi
  17492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17493. if test "$have_sin6_scope_id" = yes; then
  17494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17495. $as_echo "yes" >&6; }
  17496. $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
  17497. else
  17498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17499. $as_echo "no" >&6; }
  17500. fi
  17501. fi
  17502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
  17503. $as_echo_n "checking if argv can be written to... " >&6; }
  17504. if test "$cross_compiling" = yes; then :
  17505. curl_cv_writable_argv=cross
  17506. else
  17507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17508. /* end confdefs.h. */
  17509. int main(int argc, char ** argv) {
  17510. argv[0][0] = ' ';
  17511. return (argv[0][0] == ' ')?0:1;
  17512. }
  17513. _ACEOF
  17514. if ac_fn_c_try_run "$LINENO"; then :
  17515. curl_cv_writable_argv=yes
  17516. else
  17517. curl_cv_writable_argv=no
  17518. fi
  17519. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17520. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17521. fi
  17522. case $curl_cv_writable_argv in
  17523. yes)
  17524. $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
  17525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17526. $as_echo "yes" >&6; }
  17527. ;;
  17528. no)
  17529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17530. $as_echo "no" >&6; }
  17531. ;;
  17532. *)
  17533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17534. $as_echo "no" >&6; }
  17535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
  17536. $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
  17537. ;;
  17538. esac
  17539. # Check whether --with-spnego was given.
  17540. if test "${with_spnego+set}" = set; then :
  17541. withval=$with_spnego;
  17542. SPNEGO_ROOT="$withval"
  17543. if test x"$SPNEGO_ROOT" != xno; then
  17544. want_spnego="yes"
  17545. fi
  17546. fi
  17547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
  17548. $as_echo_n "checking if SPNEGO support is requested... " >&6; }
  17549. if test x"$want_spnego" = xyes; then
  17550. if test X"$SPNEGO_ROOT" = Xyes; then
  17551. as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  17552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17553. $as_echo "no" >&6; }
  17554. else
  17555. if test -z "$SPNEGO_LIB_DIR"; then
  17556. LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
  17557. else
  17558. LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
  17559. fi
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17561. $as_echo "yes" >&6; }
  17562. $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
  17563. curl_spnego_msg="enabled"
  17564. fi
  17565. else
  17566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17567. $as_echo "no" >&6; }
  17568. fi
  17569. GSSAPI_ROOT="/usr"
  17570. # Check whether --with-gssapi-includes was given.
  17571. if test "${with_gssapi_includes+set}" = set; then :
  17572. withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
  17573. want_gss="yes"
  17574. fi
  17575. # Check whether --with-gssapi-libs was given.
  17576. if test "${with_gssapi_libs+set}" = set; then :
  17577. withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
  17578. want_gss="yes"
  17579. fi
  17580. # Check whether --with-gssapi was given.
  17581. if test "${with_gssapi+set}" = set; then :
  17582. withval=$with_gssapi;
  17583. GSSAPI_ROOT="$withval"
  17584. if test x"$GSSAPI_ROOT" != xno; then
  17585. want_gss="yes"
  17586. if test x"$GSSAPI_ROOT" = xyes; then
  17587. GSSAPI_ROOT="/usr"
  17588. fi
  17589. fi
  17590. fi
  17591. save_CPPFLAGS="$CPPFLAGS"
  17592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
  17593. $as_echo_n "checking if GSS-API support is requested... " >&6; }
  17594. if test x"$want_gss" = xyes; then
  17595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17596. $as_echo "yes" >&6; }
  17597. if test -z "$GSSAPI_INCS"; then
  17598. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  17599. GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
  17600. elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  17601. GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
  17602. elif test "$GSSAPI_ROOT" != "yes"; then
  17603. GSSAPI_INCS="-I$GSSAPI_ROOT/include"
  17604. fi
  17605. fi
  17606. CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
  17607. ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
  17608. if test "x$ac_cv_header_gss_h" = xyes; then :
  17609. $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
  17610. gnu_gss=yes
  17611. else
  17612. for ac_header in gssapi/gssapi.h
  17613. do :
  17614. ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
  17615. if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
  17616. cat >>confdefs.h <<_ACEOF
  17617. #define HAVE_GSSAPI_GSSAPI_H 1
  17618. _ACEOF
  17619. else
  17620. not_mit=1
  17621. fi
  17622. done
  17623. for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
  17624. do :
  17625. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17626. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  17627. $ac_includes_default
  17628. #ifdef HAVE_GSSAPI_GSSAPI_H
  17629. #include <gssapi/gssapi.h>
  17630. #endif
  17631. "
  17632. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17635. _ACEOF
  17636. else
  17637. not_mit=1
  17638. fi
  17639. done
  17640. if test "x$not_mit" = "x1"; then
  17641. ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
  17642. if test "x$ac_cv_header_gssapi_h" = xyes; then :
  17643. $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
  17644. else
  17645. want_gss=no
  17646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
  17647. $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
  17648. fi
  17649. else
  17650. $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
  17651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
  17652. $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
  17653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17654. /* end confdefs.h. */
  17655. #include <gssapi/gssapi.h>
  17656. #include <gssapi/gssapi_generic.h>
  17657. #include <gssapi/gssapi_krb5.h>
  17658. int main (void)
  17659. {
  17660. gss_import_name(
  17661. (OM_uint32 *)0,
  17662. (gss_buffer_t)0,
  17663. GSS_C_NT_HOSTBASED_SERVICE,
  17664. (gss_name_t *)0);
  17665. ;
  17666. return 0;
  17667. }
  17668. _ACEOF
  17669. if ac_fn_c_try_compile "$LINENO"; then :
  17670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17671. $as_echo "yes" >&6; }
  17672. else
  17673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17674. $as_echo "no" >&6; }
  17675. $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
  17676. fi
  17677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17678. fi
  17679. fi
  17680. else
  17681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17682. $as_echo "no" >&6; }
  17683. fi
  17684. if test x"$want_gss" = xyes; then
  17685. $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
  17686. curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
  17687. if test -n "$gnu_gss"; then
  17688. curl_gss_msg="enabled (GNU GSS)"
  17689. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  17690. LIBS="-lgss $LIBS"
  17691. elif test -z "$GSSAPI_LIB_DIR"; then
  17692. case $host in
  17693. *-*-darwin*)
  17694. LIBS="-lgssapi_krb5 -lresolv $LIBS"
  17695. ;;
  17696. *-hp-hpux*)
  17697. if test "$GSSAPI_ROOT" != "yes"; then
  17698. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  17699. fi
  17700. LIBS="-lgss $LIBS"
  17701. ;;
  17702. *)
  17703. if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
  17704. gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
  17705. LIBS="$gss_libs $LIBS"
  17706. elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
  17707. gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
  17708. LIBS="$gss_libs $LIBS"
  17709. elif test "$GSSAPI_ROOT" != "yes"; then
  17710. LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
  17711. LIBS="-lgssapi $LIBS"
  17712. else
  17713. LIBS="-lgssapi $LIBS"
  17714. fi
  17715. ;;
  17716. esac
  17717. else
  17718. LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
  17719. case $host in
  17720. *-hp-hpux*)
  17721. LIBS="-lgss $LIBS"
  17722. ;;
  17723. *)
  17724. LIBS="-lgssapi $LIBS"
  17725. ;;
  17726. esac
  17727. fi
  17728. else
  17729. CPPFLAGS="$save_CPPFLAGS"
  17730. fi
  17731. OPT_WINSSL=no
  17732. # Check whether --with-winssl was given.
  17733. if test "${with_winssl+set}" = set; then :
  17734. withval=$with_winssl; OPT_WINSSL=$withval
  17735. fi
  17736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
  17737. $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
  17738. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  17739. if test "x$OPT_WINSSL" != "xno" &&
  17740. test "x$ac_cv_native_windows" = "xyes"; then
  17741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17742. $as_echo "yes" >&6; }
  17743. $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
  17744. USE_SCHANNEL=1
  17745. curl_ssl_msg="enabled (Windows-native)"
  17746. WINSSL_ENABLED=1
  17747. # --with-winssl implies --enable-sspi
  17748. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  17749. USE_WINDOWS_SSPI=1
  17750. curl_sspi_msg="enabled"
  17751. else
  17752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17753. $as_echo "no" >&6; }
  17754. fi
  17755. else
  17756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17757. $as_echo "no" >&6; }
  17758. fi
  17759. OPT_DARWINSSL=no
  17760. # Check whether --with-darwinssl was given.
  17761. if test "${with_darwinssl+set}" = set; then :
  17762. withval=$with_darwinssl; OPT_DARWINSSL=$withval
  17763. fi
  17764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
  17765. $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
  17766. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  17767. if test "x$OPT_DARWINSSL" != "xno" &&
  17768. test -d "/System/Library/Frameworks/Security.framework"; then
  17769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17770. $as_echo "yes" >&6; }
  17771. $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
  17772. USE_DARWINSSL=1
  17773. curl_ssl_msg="enabled (iOS/Mac OS X-native)"
  17774. DARWINSSL_ENABLED=1
  17775. LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
  17776. else
  17777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17778. $as_echo "no" >&6; }
  17779. fi
  17780. else
  17781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17782. $as_echo "no" >&6; }
  17783. fi
  17784. OPT_SSL=off
  17785. ca="no"
  17786. # Check whether --with-ssl was given.
  17787. if test "${with_ssl+set}" = set; then :
  17788. withval=$with_ssl; OPT_SSL=$withval
  17789. fi
  17790. if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
  17791. CLEANLDFLAGS="$LDFLAGS"
  17792. CLEANCPPFLAGS="$CPPFLAGS"
  17793. CLEANLIBS="$LIBS"
  17794. case "$OPT_SSL" in
  17795. yes)
  17796. if test x$cross_compiling != xyes; then
  17797. PKGTEST="yes"
  17798. fi
  17799. PREFIX_OPENSSL=/usr/local/ssl
  17800. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  17801. ;;
  17802. off)
  17803. if test x$cross_compiling != xyes; then
  17804. PKGTEST="yes"
  17805. fi
  17806. PREFIX_OPENSSL=
  17807. ;;
  17808. *)
  17809. PKGTEST="no"
  17810. PREFIX_OPENSSL=$OPT_SSL
  17811. OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
  17812. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
  17813. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
  17814. if test -f "$OPENSSL_PCDIR/openssl.pc"; then
  17815. PKGTEST="yes"
  17816. fi
  17817. LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
  17818. if test "$PREFIX_OPENSSL" != "/usr" ; then
  17819. SSL_LDFLAGS="-L$LIB_OPENSSL"
  17820. SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
  17821. fi
  17822. SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
  17823. ;;
  17824. esac
  17825. if test "$PKGTEST" = "yes"; then
  17826. PKGCONFIG="no"
  17827. if test -n "$ac_tool_prefix"; then
  17828. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  17829. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  17830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17831. $as_echo_n "checking for $ac_word... " >&6; }
  17832. if ${ac_cv_path_PKGCONFIG+:} false; then :
  17833. $as_echo_n "(cached) " >&6
  17834. else
  17835. case $PKGCONFIG in
  17836. [\\/]* | ?:[\\/]*)
  17837. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  17838. ;;
  17839. *)
  17840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17841. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17842. for as_dir in $as_dummy
  17843. do
  17844. IFS=$as_save_IFS
  17845. test -z "$as_dir" && as_dir=.
  17846. for ac_exec_ext in '' $ac_executable_extensions; do
  17847. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17848. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17849. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17850. break 2
  17851. fi
  17852. done
  17853. done
  17854. IFS=$as_save_IFS
  17855. ;;
  17856. esac
  17857. fi
  17858. PKGCONFIG=$ac_cv_path_PKGCONFIG
  17859. if test -n "$PKGCONFIG"; then
  17860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  17861. $as_echo "$PKGCONFIG" >&6; }
  17862. else
  17863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17864. $as_echo "no" >&6; }
  17865. fi
  17866. fi
  17867. if test -z "$ac_cv_path_PKGCONFIG"; then
  17868. ac_pt_PKGCONFIG=$PKGCONFIG
  17869. # Extract the first word of "pkg-config", so it can be a program name with args.
  17870. set dummy pkg-config; ac_word=$2
  17871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17872. $as_echo_n "checking for $ac_word... " >&6; }
  17873. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  17874. $as_echo_n "(cached) " >&6
  17875. else
  17876. case $ac_pt_PKGCONFIG in
  17877. [\\/]* | ?:[\\/]*)
  17878. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  17879. ;;
  17880. *)
  17881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17882. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  17883. for as_dir in $as_dummy
  17884. do
  17885. IFS=$as_save_IFS
  17886. test -z "$as_dir" && as_dir=.
  17887. for ac_exec_ext in '' $ac_executable_extensions; do
  17888. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17889. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  17890. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17891. break 2
  17892. fi
  17893. done
  17894. done
  17895. IFS=$as_save_IFS
  17896. ;;
  17897. esac
  17898. fi
  17899. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  17900. if test -n "$ac_pt_PKGCONFIG"; then
  17901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  17902. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  17903. else
  17904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17905. $as_echo "no" >&6; }
  17906. fi
  17907. if test "x$ac_pt_PKGCONFIG" = x; then
  17908. PKGCONFIG="no"
  17909. else
  17910. case $cross_compiling:$ac_tool_warned in
  17911. yes:)
  17912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17914. ac_tool_warned=yes ;;
  17915. esac
  17916. PKGCONFIG=$ac_pt_PKGCONFIG
  17917. fi
  17918. else
  17919. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  17920. fi
  17921. if test x$PKGCONFIG != xno; then
  17922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
  17923. $as_echo_n "checking for openssl options with pkg-config... " >&6; }
  17924. itexists=`
  17925. if test -n "$OPENSSL_PCDIR"; then
  17926. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  17927. export PKG_CONFIG_LIBDIR
  17928. fi
  17929. $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
  17930. if test -z "$itexists"; then
  17931. PKGCONFIG="no"
  17932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17933. $as_echo "no" >&6; }
  17934. else
  17935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  17936. $as_echo "found" >&6; }
  17937. fi
  17938. fi
  17939. if test "$PKGCONFIG" != "no" ; then
  17940. SSL_LIBS=`
  17941. if test -n "$OPENSSL_PCDIR"; then
  17942. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  17943. export PKG_CONFIG_LIBDIR
  17944. fi
  17945. $PKGCONFIG --libs-only-l openssl 2>/dev/null`
  17946. SSL_LDFLAGS=`
  17947. if test -n "$OPENSSL_PCDIR"; then
  17948. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  17949. export PKG_CONFIG_LIBDIR
  17950. fi
  17951. $PKGCONFIG --libs-only-L openssl 2>/dev/null`
  17952. SSL_CPPFLAGS=`
  17953. if test -n "$OPENSSL_PCDIR"; then
  17954. PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
  17955. export PKG_CONFIG_LIBDIR
  17956. fi
  17957. $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
  17958. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
  17959. $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
  17960. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
  17961. $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
  17962. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
  17963. $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
  17964. LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
  17965. LIBS="$SSL_LIBS $LIBS"
  17966. fi
  17967. fi
  17968. CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
  17969. LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
  17970. case $host in
  17971. *-*-msys* | *-*-mingw*)
  17972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
  17973. $as_echo_n "checking for gdi32... " >&6; }
  17974. my_ac_save_LIBS=$LIBS
  17975. LIBS="-lgdi32 $LIBS"
  17976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17977. /* end confdefs.h. */
  17978. #include <windef.h>
  17979. #include <wingdi.h>
  17980. int main (void)
  17981. {
  17982. GdiFlush();
  17983. ;
  17984. return 0;
  17985. }
  17986. _ACEOF
  17987. if ac_fn_c_try_link "$LINENO"; then :
  17988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17989. $as_echo "yes" >&6; }
  17990. else
  17991. LIBS=$my_ac_save_LIBS
  17992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17993. $as_echo "no" >&6; }
  17994. fi
  17995. rm -f core conftest.err conftest.$ac_objext \
  17996. conftest$ac_exeext conftest.$ac_ext
  17997. ;;
  17998. esac
  17999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
  18000. $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
  18001. if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
  18002. $as_echo_n "(cached) " >&6
  18003. else
  18004. ac_check_lib_save_LIBS=$LIBS
  18005. LIBS="-lcrypto $LIBS"
  18006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18007. /* end confdefs.h. */
  18008. #ifdef __cplusplus
  18009. extern "C"
  18010. #endif
  18011. char CRYPTO_lock ();
  18012. int main (void)
  18013. {
  18014. return CRYPTO_lock ();
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_link "$LINENO"; then :
  18020. ac_cv_lib_crypto_CRYPTO_lock=yes
  18021. else
  18022. ac_cv_lib_crypto_CRYPTO_lock=no
  18023. fi
  18024. rm -f core conftest.err conftest.$ac_objext \
  18025. conftest$ac_exeext conftest.$ac_ext
  18026. LIBS=$ac_check_lib_save_LIBS
  18027. fi
  18028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
  18029. $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
  18030. if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
  18031. HAVECRYPTO="yes"
  18032. LIBS="-lcrypto $LIBS"
  18033. else
  18034. LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
  18035. CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
  18037. $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
  18038. if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
  18039. $as_echo_n "(cached) " >&6
  18040. else
  18041. ac_check_lib_save_LIBS=$LIBS
  18042. LIBS="-lcrypto $LIBS"
  18043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18044. /* end confdefs.h. */
  18045. #ifdef __cplusplus
  18046. extern "C"
  18047. #endif
  18048. char CRYPTO_add_lock ();
  18049. int main (void)
  18050. {
  18051. return CRYPTO_add_lock ();
  18052. ;
  18053. return 0;
  18054. }
  18055. _ACEOF
  18056. if ac_fn_c_try_link "$LINENO"; then :
  18057. ac_cv_lib_crypto_CRYPTO_add_lock=yes
  18058. else
  18059. ac_cv_lib_crypto_CRYPTO_add_lock=no
  18060. fi
  18061. rm -f core conftest.err conftest.$ac_objext \
  18062. conftest$ac_exeext conftest.$ac_ext
  18063. LIBS=$ac_check_lib_save_LIBS
  18064. fi
  18065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
  18066. $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
  18067. if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
  18068. HAVECRYPTO="yes"
  18069. LIBS="-lcrypto $LIBS"
  18070. else
  18071. LDFLAGS="$CLEANLDFLAGS"
  18072. CPPFLAGS="$CLEANCPPFLAGS"
  18073. LIBS="$CLEANLIBS"
  18074. fi
  18075. fi
  18076. if test X"$HAVECRYPTO" = X"yes"; then
  18077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  18078. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  18079. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  18080. $as_echo_n "(cached) " >&6
  18081. else
  18082. ac_check_lib_save_LIBS=$LIBS
  18083. LIBS="-lssl $LIBS"
  18084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18085. /* end confdefs.h. */
  18086. #ifdef __cplusplus
  18087. extern "C"
  18088. #endif
  18089. char SSL_connect ();
  18090. int main (void)
  18091. {
  18092. return SSL_connect ();
  18093. ;
  18094. return 0;
  18095. }
  18096. _ACEOF
  18097. if ac_fn_c_try_link "$LINENO"; then :
  18098. ac_cv_lib_ssl_SSL_connect=yes
  18099. else
  18100. ac_cv_lib_ssl_SSL_connect=no
  18101. fi
  18102. rm -f core conftest.err conftest.$ac_objext \
  18103. conftest$ac_exeext conftest.$ac_ext
  18104. LIBS=$ac_check_lib_save_LIBS
  18105. fi
  18106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  18107. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  18108. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  18109. cat >>confdefs.h <<_ACEOF
  18110. #define HAVE_LIBSSL 1
  18111. _ACEOF
  18112. LIBS="-lssl $LIBS"
  18113. fi
  18114. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  18115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
  18116. $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
  18117. OLIBS=$LIBS
  18118. LIBS="-lRSAglue -lrsaref $LIBS"
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  18120. $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
  18121. if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
  18122. $as_echo_n "(cached) " >&6
  18123. else
  18124. ac_check_lib_save_LIBS=$LIBS
  18125. LIBS="-lssl $LIBS"
  18126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18127. /* end confdefs.h. */
  18128. #ifdef __cplusplus
  18129. extern "C"
  18130. #endif
  18131. char SSL_connect ();
  18132. int main (void)
  18133. {
  18134. return SSL_connect ();
  18135. ;
  18136. return 0;
  18137. }
  18138. _ACEOF
  18139. if ac_fn_c_try_link "$LINENO"; then :
  18140. ac_cv_lib_ssl_SSL_connect=yes
  18141. else
  18142. ac_cv_lib_ssl_SSL_connect=no
  18143. fi
  18144. rm -f core conftest.err conftest.$ac_objext \
  18145. conftest$ac_exeext conftest.$ac_ext
  18146. LIBS=$ac_check_lib_save_LIBS
  18147. fi
  18148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  18149. $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
  18150. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
  18151. cat >>confdefs.h <<_ACEOF
  18152. #define HAVE_LIBSSL 1
  18153. _ACEOF
  18154. LIBS="-lssl $LIBS"
  18155. fi
  18156. if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
  18157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18158. $as_echo "no" >&6; }
  18159. LIBS=$OLIBS
  18160. else
  18161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18162. $as_echo "yes" >&6; }
  18163. fi
  18164. else
  18165. for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
  18166. openssl/pem.h openssl/ssl.h openssl/err.h
  18167. do :
  18168. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18169. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18170. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18171. cat >>confdefs.h <<_ACEOF
  18172. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18173. _ACEOF
  18174. curl_ssl_msg="enabled (OpenSSL)"
  18175. OPENSSL_ENABLED=1
  18176. $as_echo "#define USE_OPENSSL 1" >>confdefs.h
  18177. fi
  18178. done
  18179. if test $ac_cv_header_openssl_x509_h = no; then
  18180. for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
  18181. do :
  18182. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18183. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18184. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18185. cat >>confdefs.h <<_ACEOF
  18186. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18187. _ACEOF
  18188. fi
  18189. done
  18190. if test $ac_cv_header_x509_h = yes &&
  18191. test $ac_cv_header_crypto_h = yes &&
  18192. test $ac_cv_header_ssl_h = yes; then
  18193. curl_ssl_msg="enabled (OpenSSL)"
  18194. OPENSSL_ENABLED=1
  18195. fi
  18196. fi
  18197. fi
  18198. if test X"$OPENSSL_ENABLED" = X"1"; then
  18199. $as_echo "#define USE_SSLEAY 1" >>confdefs.h
  18200. for ac_header in openssl/pkcs12.h
  18201. do :
  18202. ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
  18203. if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
  18204. cat >>confdefs.h <<_ACEOF
  18205. #define HAVE_OPENSSL_PKCS12_H 1
  18206. _ACEOF
  18207. fi
  18208. done
  18209. else
  18210. LIBS="$CLEANLIBS"
  18211. fi
  18212. USE_SSLEAY="$OPENSSL_ENABLED"
  18213. if test X"$OPT_SSL" != Xoff &&
  18214. test "$OPENSSL_ENABLED" != "1"; then
  18215. as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
  18216. fi
  18217. fi
  18218. if test X"$OPENSSL_ENABLED" = X"1"; then
  18219. ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
  18220. if test "x$ac_cv_func_ENGINE_init" = xyes; then :
  18221. for ac_header in openssl/engine.h
  18222. do :
  18223. ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
  18224. if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
  18225. cat >>confdefs.h <<_ACEOF
  18226. #define HAVE_OPENSSL_ENGINE_H 1
  18227. _ACEOF
  18228. fi
  18229. done
  18230. for ac_func in ENGINE_load_builtin_engines
  18231. do :
  18232. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18233. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18234. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18235. cat >>confdefs.h <<_ACEOF
  18236. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18237. _ACEOF
  18238. fi
  18239. done
  18240. fi
  18241. for ac_func in RAND_status \
  18242. RAND_screen \
  18243. RAND_egd \
  18244. ENGINE_cleanup \
  18245. CRYPTO_cleanup_all_ex_data \
  18246. SSL_get_shutdown \
  18247. SSLv2_client_method \
  18248. SSL_CTX_set_next_proto_select_cb \
  18249. SSL_CTX_set_alpn_protos \
  18250. SSL_CTX_set_alpn_select_cb
  18251. do :
  18252. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18253. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18254. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  18255. cat >>confdefs.h <<_ACEOF
  18256. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18257. _ACEOF
  18258. fi
  18259. done
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
  18261. $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
  18262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18263. /* end confdefs.h. */
  18264. #include <openssl/ssl.h>
  18265. int main (void)
  18266. {
  18267. #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
  18268. int dummy = SSL_ERROR_NONE;
  18269. #else
  18270. Not the yaSSL OpenSSL compatibility header.
  18271. #endif
  18272. ;
  18273. return 0;
  18274. }
  18275. _ACEOF
  18276. if ac_fn_c_try_compile "$LINENO"; then :
  18277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18278. $as_echo "yes" >&6; }
  18279. cat >>confdefs.h <<_ACEOF
  18280. #define USE_YASSLEMUL 1
  18281. _ACEOF
  18282. curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
  18283. else
  18284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18285. $as_echo "no" >&6; }
  18286. fi
  18287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18288. fi
  18289. if test "$OPENSSL_ENABLED" = "1"; then
  18290. if test -n "$LIB_OPENSSL"; then
  18291. if test "x$cross_compiling" != "xyes"; then
  18292. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
  18293. export LD_LIBRARY_PATH
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
  18295. $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
  18296. fi
  18297. fi
  18298. #
  18299. #
  18300. tst_api="unknown"
  18301. #
  18302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
  18303. $as_echo_n "checking for OpenSSL headers version... " >&6; }
  18304. if test -z "$SED"; then
  18305. as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
  18306. fi
  18307. if test -z "$GREP"; then
  18308. as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
  18309. fi
  18310. tmp_exp=""
  18311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18312. /* end confdefs.h. */
  18313. # ifdef USE_OPENSSL
  18314. # include <openssl/crypto.h>
  18315. # else
  18316. # include <crypto.h>
  18317. # endif
  18318. #ifdef OPENSSL_VERSION_NUMBER
  18319. CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
  18320. #endif
  18321. _ACEOF
  18322. if ac_fn_c_try_cpp "$LINENO"; then :
  18323. tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
  18324. "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
  18325. "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
  18326. "$SED" 's/["][ ]*["]//g' 2>/dev/null`
  18327. if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
  18328. tmp_exp=""
  18329. fi
  18330. fi
  18331. rm -f conftest.err conftest.i conftest.$ac_ext
  18332. if test -z "$tmp_exp"; then
  18333. curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
  18334. else
  18335. curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
  18336. curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
  18337. fi
  18338. if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
  18339. tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
  18340. case "x$tst_verlen" in
  18341. x6)
  18342. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  18343. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
  18344. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  18345. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  18346. ;;
  18347. x11|x10)
  18348. tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
  18349. tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
  18350. tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
  18351. tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
  18352. ;;
  18353. *)
  18354. tst_api="unknown"
  18355. ;;
  18356. esac
  18357. case $tst_api in
  18358. 0x110) tst_show="1.1.0" ;;
  18359. 0x101) tst_show="1.0.1" ;;
  18360. 0x100) tst_show="1.0.0" ;;
  18361. 0x099) tst_show="0.9.9" ;;
  18362. 0x098) tst_show="0.9.8" ;;
  18363. 0x097) tst_show="0.9.7" ;;
  18364. 0x096) tst_show="0.9.6" ;;
  18365. 0x095) tst_show="0.9.5" ;;
  18366. 0x094) tst_show="0.9.4" ;;
  18367. 0x093) tst_show="0.9.3" ;;
  18368. 0x092) tst_show="0.9.2" ;;
  18369. 0x091) tst_show="0.9.1" ;;
  18370. *) tst_show="unknown" ;;
  18371. esac
  18372. tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
  18373. else
  18374. tst_show="unknown"
  18375. fi
  18376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  18377. $as_echo "$tst_show" >&6; }
  18378. #
  18379. curl_openssl_api_headers=$tst_api
  18380. #
  18381. tst_api="unknown"
  18382. #
  18383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
  18384. $as_echo_n "checking for OpenSSL library version... " >&6; }
  18385. if test "$tst_api" = "unknown"; then
  18386. case $host in
  18387. *-*-vms*)
  18388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18389. /* end confdefs.h. */
  18390. #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
  18391. #ifdef __STDC__
  18392. # include <limits.h>
  18393. #else
  18394. # include <assert.h>
  18395. #endif
  18396. #undef SSL_CTX_set_not_resumbl_sess_cb
  18397. #ifdef __cplusplus
  18398. extern "C"
  18399. #endif
  18400. char SSL_CTX_set_not_resumbl_sess_cb ();
  18401. #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
  18402. choke me
  18403. #endif
  18404. int main (void)
  18405. {
  18406. return SSL_CTX_set_not_resumbl_sess_cb ();
  18407. ;
  18408. return 0;
  18409. }
  18410. _ACEOF
  18411. if ac_fn_c_try_link "$LINENO"; then :
  18412. tst_api="0x110"
  18413. fi
  18414. rm -f core conftest.err conftest.$ac_objext \
  18415. conftest$ac_exeext conftest.$ac_ext
  18416. ;;
  18417. *)
  18418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18419. /* end confdefs.h. */
  18420. #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
  18421. #ifdef __STDC__
  18422. # include <limits.h>
  18423. #else
  18424. # include <assert.h>
  18425. #endif
  18426. #undef SSL_CTX_set_not_resumable_session_callback
  18427. #ifdef __cplusplus
  18428. extern "C"
  18429. #endif
  18430. char SSL_CTX_set_not_resumable_session_callback ();
  18431. #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
  18432. choke me
  18433. #endif
  18434. int main (void)
  18435. {
  18436. return SSL_CTX_set_not_resumable_session_callback ();
  18437. ;
  18438. return 0;
  18439. }
  18440. _ACEOF
  18441. if ac_fn_c_try_link "$LINENO"; then :
  18442. tst_api="0x110"
  18443. fi
  18444. rm -f core conftest.err conftest.$ac_objext \
  18445. conftest$ac_exeext conftest.$ac_ext
  18446. ;;
  18447. esac
  18448. fi
  18449. if test "$tst_api" = "unknown"; then
  18450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18451. /* end confdefs.h. */
  18452. #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
  18453. #ifdef __STDC__
  18454. # include <limits.h>
  18455. #else
  18456. # include <assert.h>
  18457. #endif
  18458. #undef SSL_renegotiate_abbreviated
  18459. #ifdef __cplusplus
  18460. extern "C"
  18461. #endif
  18462. char SSL_renegotiate_abbreviated ();
  18463. #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
  18464. choke me
  18465. #endif
  18466. int main (void)
  18467. {
  18468. return SSL_renegotiate_abbreviated ();
  18469. ;
  18470. return 0;
  18471. }
  18472. _ACEOF
  18473. if ac_fn_c_try_link "$LINENO"; then :
  18474. tst_api="0x101"
  18475. fi
  18476. rm -f core conftest.err conftest.$ac_objext \
  18477. conftest$ac_exeext conftest.$ac_ext
  18478. fi
  18479. if test "$tst_api" = "unknown"; then
  18480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18481. /* end confdefs.h. */
  18482. #define OBJ_add_sigid innocuous_OBJ_add_sigid
  18483. #ifdef __STDC__
  18484. # include <limits.h>
  18485. #else
  18486. # include <assert.h>
  18487. #endif
  18488. #undef OBJ_add_sigid
  18489. #ifdef __cplusplus
  18490. extern "C"
  18491. #endif
  18492. char OBJ_add_sigid ();
  18493. #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
  18494. choke me
  18495. #endif
  18496. int main (void)
  18497. {
  18498. return OBJ_add_sigid ();
  18499. ;
  18500. return 0;
  18501. }
  18502. _ACEOF
  18503. if ac_fn_c_try_link "$LINENO"; then :
  18504. tst_api="0x100"
  18505. fi
  18506. rm -f core conftest.err conftest.$ac_objext \
  18507. conftest$ac_exeext conftest.$ac_ext
  18508. fi
  18509. if test "$tst_api" = "unknown"; then
  18510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18511. /* end confdefs.h. */
  18512. #define ERR_set_mark innocuous_ERR_set_mark
  18513. #ifdef __STDC__
  18514. # include <limits.h>
  18515. #else
  18516. # include <assert.h>
  18517. #endif
  18518. #undef ERR_set_mark
  18519. #ifdef __cplusplus
  18520. extern "C"
  18521. #endif
  18522. char ERR_set_mark ();
  18523. #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
  18524. choke me
  18525. #endif
  18526. int main (void)
  18527. {
  18528. return ERR_set_mark ();
  18529. ;
  18530. return 0;
  18531. }
  18532. _ACEOF
  18533. if ac_fn_c_try_link "$LINENO"; then :
  18534. tst_api="0x098"
  18535. fi
  18536. rm -f core conftest.err conftest.$ac_objext \
  18537. conftest$ac_exeext conftest.$ac_ext
  18538. fi
  18539. if test "$tst_api" = "unknown"; then
  18540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18541. /* end confdefs.h. */
  18542. #define ERR_peek_last_error innocuous_ERR_peek_last_error
  18543. #ifdef __STDC__
  18544. # include <limits.h>
  18545. #else
  18546. # include <assert.h>
  18547. #endif
  18548. #undef ERR_peek_last_error
  18549. #ifdef __cplusplus
  18550. extern "C"
  18551. #endif
  18552. char ERR_peek_last_error ();
  18553. #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
  18554. choke me
  18555. #endif
  18556. int main (void)
  18557. {
  18558. return ERR_peek_last_error ();
  18559. ;
  18560. return 0;
  18561. }
  18562. _ACEOF
  18563. if ac_fn_c_try_link "$LINENO"; then :
  18564. tst_api="0x097"
  18565. fi
  18566. rm -f core conftest.err conftest.$ac_objext \
  18567. conftest$ac_exeext conftest.$ac_ext
  18568. fi
  18569. if test "$tst_api" = "unknown"; then
  18570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18571. /* end confdefs.h. */
  18572. #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
  18573. #ifdef __STDC__
  18574. # include <limits.h>
  18575. #else
  18576. # include <assert.h>
  18577. #endif
  18578. #undef c2i_ASN1_OBJECT
  18579. #ifdef __cplusplus
  18580. extern "C"
  18581. #endif
  18582. char c2i_ASN1_OBJECT ();
  18583. #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
  18584. choke me
  18585. #endif
  18586. int main (void)
  18587. {
  18588. return c2i_ASN1_OBJECT ();
  18589. ;
  18590. return 0;
  18591. }
  18592. _ACEOF
  18593. if ac_fn_c_try_link "$LINENO"; then :
  18594. tst_api="0x096"
  18595. fi
  18596. rm -f core conftest.err conftest.$ac_objext \
  18597. conftest$ac_exeext conftest.$ac_ext
  18598. fi
  18599. if test "$tst_api" = "unknown"; then
  18600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18601. /* end confdefs.h. */
  18602. #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
  18603. #ifdef __STDC__
  18604. # include <limits.h>
  18605. #else
  18606. # include <assert.h>
  18607. #endif
  18608. #undef SSL_CTX_set_purpose
  18609. #ifdef __cplusplus
  18610. extern "C"
  18611. #endif
  18612. char SSL_CTX_set_purpose ();
  18613. #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
  18614. choke me
  18615. #endif
  18616. int main (void)
  18617. {
  18618. return SSL_CTX_set_purpose ();
  18619. ;
  18620. return 0;
  18621. }
  18622. _ACEOF
  18623. if ac_fn_c_try_link "$LINENO"; then :
  18624. tst_api="0x095"
  18625. fi
  18626. rm -f core conftest.err conftest.$ac_objext \
  18627. conftest$ac_exeext conftest.$ac_ext
  18628. fi
  18629. if test "$tst_api" = "unknown"; then
  18630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18631. /* end confdefs.h. */
  18632. #define OBJ_obj2txt innocuous_OBJ_obj2txt
  18633. #ifdef __STDC__
  18634. # include <limits.h>
  18635. #else
  18636. # include <assert.h>
  18637. #endif
  18638. #undef OBJ_obj2txt
  18639. #ifdef __cplusplus
  18640. extern "C"
  18641. #endif
  18642. char OBJ_obj2txt ();
  18643. #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
  18644. choke me
  18645. #endif
  18646. int main (void)
  18647. {
  18648. return OBJ_obj2txt ();
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. if ac_fn_c_try_link "$LINENO"; then :
  18654. tst_api="0x094"
  18655. fi
  18656. rm -f core conftest.err conftest.$ac_objext \
  18657. conftest$ac_exeext conftest.$ac_ext
  18658. fi
  18659. if test "$tst_api" = "unknown"; then
  18660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18661. /* end confdefs.h. */
  18662. #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
  18663. #ifdef __STDC__
  18664. # include <limits.h>
  18665. #else
  18666. # include <assert.h>
  18667. #endif
  18668. #undef SSL_get_verify_depth
  18669. #ifdef __cplusplus
  18670. extern "C"
  18671. #endif
  18672. char SSL_get_verify_depth ();
  18673. #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
  18674. choke me
  18675. #endif
  18676. int main (void)
  18677. {
  18678. return SSL_get_verify_depth ();
  18679. ;
  18680. return 0;
  18681. }
  18682. _ACEOF
  18683. if ac_fn_c_try_link "$LINENO"; then :
  18684. tst_api="0x093"
  18685. fi
  18686. rm -f core conftest.err conftest.$ac_objext \
  18687. conftest$ac_exeext conftest.$ac_ext
  18688. fi
  18689. if test "$tst_api" = "unknown"; then
  18690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18691. /* end confdefs.h. */
  18692. #define SSL_library_init innocuous_SSL_library_init
  18693. #ifdef __STDC__
  18694. # include <limits.h>
  18695. #else
  18696. # include <assert.h>
  18697. #endif
  18698. #undef SSL_library_init
  18699. #ifdef __cplusplus
  18700. extern "C"
  18701. #endif
  18702. char SSL_library_init ();
  18703. #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
  18704. choke me
  18705. #endif
  18706. int main (void)
  18707. {
  18708. return SSL_library_init ();
  18709. ;
  18710. return 0;
  18711. }
  18712. _ACEOF
  18713. if ac_fn_c_try_link "$LINENO"; then :
  18714. tst_api="0x092"
  18715. fi
  18716. rm -f core conftest.err conftest.$ac_objext \
  18717. conftest$ac_exeext conftest.$ac_ext
  18718. fi
  18719. if test "$tst_api" = "unknown"; then
  18720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18721. /* end confdefs.h. */
  18722. #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
  18723. #ifdef __STDC__
  18724. # include <limits.h>
  18725. #else
  18726. # include <assert.h>
  18727. #endif
  18728. #undef SSL_CTX_set_cipher_list
  18729. #ifdef __cplusplus
  18730. extern "C"
  18731. #endif
  18732. char SSL_CTX_set_cipher_list ();
  18733. #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
  18734. choke me
  18735. #endif
  18736. int main (void)
  18737. {
  18738. return SSL_CTX_set_cipher_list ();
  18739. ;
  18740. return 0;
  18741. }
  18742. _ACEOF
  18743. if ac_fn_c_try_link "$LINENO"; then :
  18744. tst_api="0x091"
  18745. fi
  18746. rm -f core conftest.err conftest.$ac_objext \
  18747. conftest$ac_exeext conftest.$ac_ext
  18748. fi
  18749. case $tst_api in
  18750. 0x110) tst_show="1.1.0" ;;
  18751. 0x101) tst_show="1.0.1" ;;
  18752. 0x100) tst_show="1.0.0" ;;
  18753. 0x099) tst_show="0.9.9" ;;
  18754. 0x098) tst_show="0.9.8" ;;
  18755. 0x097) tst_show="0.9.7" ;;
  18756. 0x096) tst_show="0.9.6" ;;
  18757. 0x095) tst_show="0.9.5" ;;
  18758. 0x094) tst_show="0.9.4" ;;
  18759. 0x093) tst_show="0.9.3" ;;
  18760. 0x092) tst_show="0.9.2" ;;
  18761. 0x091) tst_show="0.9.1" ;;
  18762. *) tst_show="unknown" ;;
  18763. esac
  18764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
  18765. $as_echo "$tst_show" >&6; }
  18766. #
  18767. curl_openssl_api_library=$tst_api
  18768. #
  18769. tst_match="yes"
  18770. #
  18771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
  18772. $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
  18773. if test "$curl_openssl_api_headers" = "unknown" ||
  18774. test "$curl_openssl_api_library" = "unknown"; then
  18775. tst_match="fail"
  18776. tst_warns="Can not compare OpenSSL headers and library versions."
  18777. elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
  18778. tst_match="no"
  18779. tst_warns="OpenSSL headers and library versions do not match."
  18780. fi
  18781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
  18782. $as_echo "$tst_match" >&6; }
  18783. if test "$tst_match" != "yes"; then
  18784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
  18785. $as_echo "$as_me: WARNING: $tst_warns" >&2;}
  18786. fi
  18787. fi
  18788. fi
  18789. if test X"$OPENSSL_ENABLED" = X"1"; then
  18790. # Check whether --with-egd-socket was given.
  18791. if test "${with_egd_socket+set}" = set; then :
  18792. withval=$with_egd_socket; EGD_SOCKET="$withval"
  18793. fi
  18794. if test -n "$EGD_SOCKET" ; then
  18795. cat >>confdefs.h <<_ACEOF
  18796. #define EGD_SOCKET "$EGD_SOCKET"
  18797. _ACEOF
  18798. fi
  18799. # Check whether --with-random was given.
  18800. if test "${with_random+set}" = set; then :
  18801. withval=$with_random; RANDOM_FILE="$withval"
  18802. else
  18803. if test x$cross_compiling != xyes; then
  18804. as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
  18805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
  18806. $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
  18807. if eval \${$as_ac_File+:} false; then :
  18808. $as_echo_n "(cached) " >&6
  18809. else
  18810. test "$cross_compiling" = yes &&
  18811. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  18812. if test -r ""/dev/urandom""; then
  18813. eval "$as_ac_File=yes"
  18814. else
  18815. eval "$as_ac_File=no"
  18816. fi
  18817. fi
  18818. eval ac_res=\$$as_ac_File
  18819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18820. $as_echo "$ac_res" >&6; }
  18821. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  18822. RANDOM_FILE="/dev/urandom"
  18823. fi
  18824. else
  18825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
  18826. $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
  18827. fi
  18828. fi
  18829. if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
  18830. cat >>confdefs.h <<_ACEOF
  18831. #define RANDOM_FILE "$RANDOM_FILE"
  18832. _ACEOF
  18833. fi
  18834. fi
  18835. if test "$OPENSSL_ENABLED" = "1"; then
  18836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
  18837. $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
  18838. if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
  18839. $as_echo_n "(cached) " >&6
  18840. else
  18841. ac_check_lib_save_LIBS=$LIBS
  18842. LIBS="-lcrypto $LIBS"
  18843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18844. /* end confdefs.h. */
  18845. #ifdef __cplusplus
  18846. extern "C"
  18847. #endif
  18848. char SRP_Calc_client_key ();
  18849. int main (void)
  18850. {
  18851. return SRP_Calc_client_key ();
  18852. ;
  18853. return 0;
  18854. }
  18855. _ACEOF
  18856. if ac_fn_c_try_link "$LINENO"; then :
  18857. ac_cv_lib_crypto_SRP_Calc_client_key=yes
  18858. else
  18859. ac_cv_lib_crypto_SRP_Calc_client_key=no
  18860. fi
  18861. rm -f core conftest.err conftest.$ac_objext \
  18862. conftest$ac_exeext conftest.$ac_ext
  18863. LIBS=$ac_check_lib_save_LIBS
  18864. fi
  18865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
  18866. $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
  18867. if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
  18868. $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
  18869. HAVE_SSLEAY_SRP=1
  18870. fi
  18871. fi
  18872. OPT_GNUTLS=no
  18873. # Check whether --with-gnutls was given.
  18874. if test "${with_gnutls+set}" = set; then :
  18875. withval=$with_gnutls; OPT_GNUTLS=$withval
  18876. fi
  18877. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  18878. if test X"$OPT_GNUTLS" != Xno; then
  18879. addld=""
  18880. addlib=""
  18881. gtlslib=""
  18882. version=""
  18883. addcflags=""
  18884. if test "x$OPT_GNUTLS" = "xyes"; then
  18885. PKGCONFIG="no"
  18886. if test -n "$ac_tool_prefix"; then
  18887. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  18888. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18890. $as_echo_n "checking for $ac_word... " >&6; }
  18891. if ${ac_cv_path_PKGCONFIG+:} false; then :
  18892. $as_echo_n "(cached) " >&6
  18893. else
  18894. case $PKGCONFIG in
  18895. [\\/]* | ?:[\\/]*)
  18896. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  18897. ;;
  18898. *)
  18899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18900. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18901. for as_dir in $as_dummy
  18902. do
  18903. IFS=$as_save_IFS
  18904. test -z "$as_dir" && as_dir=.
  18905. for ac_exec_ext in '' $ac_executable_extensions; do
  18906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18907. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18909. break 2
  18910. fi
  18911. done
  18912. done
  18913. IFS=$as_save_IFS
  18914. ;;
  18915. esac
  18916. fi
  18917. PKGCONFIG=$ac_cv_path_PKGCONFIG
  18918. if test -n "$PKGCONFIG"; then
  18919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  18920. $as_echo "$PKGCONFIG" >&6; }
  18921. else
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18923. $as_echo "no" >&6; }
  18924. fi
  18925. fi
  18926. if test -z "$ac_cv_path_PKGCONFIG"; then
  18927. ac_pt_PKGCONFIG=$PKGCONFIG
  18928. # Extract the first word of "pkg-config", so it can be a program name with args.
  18929. set dummy pkg-config; ac_word=$2
  18930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18931. $as_echo_n "checking for $ac_word... " >&6; }
  18932. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  18933. $as_echo_n "(cached) " >&6
  18934. else
  18935. case $ac_pt_PKGCONFIG in
  18936. [\\/]* | ?:[\\/]*)
  18937. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  18938. ;;
  18939. *)
  18940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18941. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  18942. for as_dir in $as_dummy
  18943. do
  18944. IFS=$as_save_IFS
  18945. test -z "$as_dir" && as_dir=.
  18946. for ac_exec_ext in '' $ac_executable_extensions; do
  18947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18948. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18950. break 2
  18951. fi
  18952. done
  18953. done
  18954. IFS=$as_save_IFS
  18955. ;;
  18956. esac
  18957. fi
  18958. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  18959. if test -n "$ac_pt_PKGCONFIG"; then
  18960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  18961. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  18962. else
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18964. $as_echo "no" >&6; }
  18965. fi
  18966. if test "x$ac_pt_PKGCONFIG" = x; then
  18967. PKGCONFIG="no"
  18968. else
  18969. case $cross_compiling:$ac_tool_warned in
  18970. yes:)
  18971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18973. ac_tool_warned=yes ;;
  18974. esac
  18975. PKGCONFIG=$ac_pt_PKGCONFIG
  18976. fi
  18977. else
  18978. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  18979. fi
  18980. if test x$PKGCONFIG != xno; then
  18981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
  18982. $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
  18983. itexists=`
  18984. if test -n ""; then
  18985. PKG_CONFIG_LIBDIR=""
  18986. export PKG_CONFIG_LIBDIR
  18987. fi
  18988. $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
  18989. if test -z "$itexists"; then
  18990. PKGCONFIG="no"
  18991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18992. $as_echo "no" >&6; }
  18993. else
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  18995. $as_echo "found" >&6; }
  18996. fi
  18997. fi
  18998. if test "$PKGCONFIG" != "no" ; then
  18999. addlib=`$PKGCONFIG --libs-only-l gnutls`
  19000. addld=`$PKGCONFIG --libs-only-L gnutls`
  19001. addcflags=`$PKGCONFIG --cflags-only-I gnutls`
  19002. version=`$PKGCONFIG --modversion gnutls`
  19003. gtlslib=`echo $addld | $SED -e 's/-L//'`
  19004. else
  19005. check=`libgnutls-config --version 2>/dev/null`
  19006. if test -n "$check"; then
  19007. addlib=`libgnutls-config --libs`
  19008. addcflags=`libgnutls-config --cflags`
  19009. version=`libgnutls-config --version`
  19010. gtlslib=`libgnutls-config --prefix`/lib$libsuff
  19011. fi
  19012. fi
  19013. else
  19014. cfg=$OPT_GNUTLS/bin/libgnutls-config
  19015. check=`$cfg --version 2>/dev/null`
  19016. if test -n "$check"; then
  19017. addlib=`$cfg --libs`
  19018. addcflags=`$cfg --cflags`
  19019. version=`$cfg --version`
  19020. gtlslib=`$cfg --prefix`/lib$libsuff
  19021. else
  19022. addlib=-lgnutls
  19023. addld=-L$OPT_GNUTLS/lib$libsuff
  19024. addcflags=-I$OPT_GNUTLS/include
  19025. version="" # we just don't know
  19026. gtlslib=$OPT_GNUTLS/lib$libsuff
  19027. fi
  19028. fi
  19029. if test -z "$version"; then
  19030. version="unknown"
  19031. fi
  19032. if test -n "$addlib"; then
  19033. CLEANLIBS="$LIBS"
  19034. CLEANCPPFLAGS="$CPPFLAGS"
  19035. CLEANLDFLAGS="$LDFLAGS"
  19036. LIBS="$addlib $LIBS"
  19037. LDFLAGS="$LDFLAGS $addld"
  19038. if test "$addcflags" != "-I/usr/include"; then
  19039. CPPFLAGS="$CPPFLAGS $addcflags"
  19040. fi
  19041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
  19042. $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
  19043. if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
  19044. $as_echo_n "(cached) " >&6
  19045. else
  19046. ac_check_lib_save_LIBS=$LIBS
  19047. LIBS="-lgnutls $LIBS"
  19048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19049. /* end confdefs.h. */
  19050. #ifdef __cplusplus
  19051. extern "C"
  19052. #endif
  19053. char gnutls_check_version ();
  19054. int main (void)
  19055. {
  19056. return gnutls_check_version ();
  19057. ;
  19058. return 0;
  19059. }
  19060. _ACEOF
  19061. if ac_fn_c_try_link "$LINENO"; then :
  19062. ac_cv_lib_gnutls_gnutls_check_version=yes
  19063. else
  19064. ac_cv_lib_gnutls_gnutls_check_version=no
  19065. fi
  19066. rm -f core conftest.err conftest.$ac_objext \
  19067. conftest$ac_exeext conftest.$ac_ext
  19068. LIBS=$ac_check_lib_save_LIBS
  19069. fi
  19070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
  19071. $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
  19072. if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
  19073. $as_echo "#define USE_GNUTLS 1" >>confdefs.h
  19074. USE_GNUTLS=1
  19075. GNUTLS_ENABLED=1
  19076. USE_GNUTLS="yes"
  19077. curl_ssl_msg="enabled (GnuTLS)"
  19078. else
  19079. LIBS="$CLEANLIBS"
  19080. CPPFLAGS="$CLEANCPPFLAGS"
  19081. fi
  19082. if test "x$USE_GNUTLS" = "xyes"; then
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
  19084. $as_echo "$as_me: detected GnuTLS version $version" >&6;}
  19085. if test -n "$gtlslib"; then
  19086. if test "x$cross_compiling" != "xyes"; then
  19087. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
  19088. export LD_LIBRARY_PATH
  19089. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
  19090. $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
  19091. fi
  19092. fi
  19093. fi
  19094. fi
  19095. fi
  19096. fi
  19097. if test "$GNUTLS_ENABLED" = "1"; then
  19098. USE_GNUTLS_NETTLE=
  19099. # First check if we can detect either crypto library via transitive linking
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
  19101. $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
  19102. if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
  19103. $as_echo_n "(cached) " >&6
  19104. else
  19105. ac_check_lib_save_LIBS=$LIBS
  19106. LIBS="-lgnutls $LIBS"
  19107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19108. /* end confdefs.h. */
  19109. #ifdef __cplusplus
  19110. extern "C"
  19111. #endif
  19112. char nettle_MD5Init ();
  19113. int main (void)
  19114. {
  19115. return nettle_MD5Init ();
  19116. ;
  19117. return 0;
  19118. }
  19119. _ACEOF
  19120. if ac_fn_c_try_link "$LINENO"; then :
  19121. ac_cv_lib_gnutls_nettle_MD5Init=yes
  19122. else
  19123. ac_cv_lib_gnutls_nettle_MD5Init=no
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext \
  19126. conftest$ac_exeext conftest.$ac_ext
  19127. LIBS=$ac_check_lib_save_LIBS
  19128. fi
  19129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
  19130. $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
  19131. if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
  19132. USE_GNUTLS_NETTLE=1
  19133. fi
  19134. if test "$USE_GNUTLS_NETTLE" = ""; then
  19135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
  19136. $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
  19137. if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
  19138. $as_echo_n "(cached) " >&6
  19139. else
  19140. ac_check_lib_save_LIBS=$LIBS
  19141. LIBS="-lgnutls $LIBS"
  19142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19143. /* end confdefs.h. */
  19144. #ifdef __cplusplus
  19145. extern "C"
  19146. #endif
  19147. char gcry_control ();
  19148. int main (void)
  19149. {
  19150. return gcry_control ();
  19151. ;
  19152. return 0;
  19153. }
  19154. _ACEOF
  19155. if ac_fn_c_try_link "$LINENO"; then :
  19156. ac_cv_lib_gnutls_gcry_control=yes
  19157. else
  19158. ac_cv_lib_gnutls_gcry_control=no
  19159. fi
  19160. rm -f core conftest.err conftest.$ac_objext \
  19161. conftest$ac_exeext conftest.$ac_ext
  19162. LIBS=$ac_check_lib_save_LIBS
  19163. fi
  19164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
  19165. $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
  19166. if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
  19167. USE_GNUTLS_NETTLE=0
  19168. fi
  19169. fi
  19170. # If not, try linking directly to both of them to see if they are available
  19171. if test "$USE_GNUTLS_NETTLE" = ""; then
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
  19173. $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
  19174. if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
  19175. $as_echo_n "(cached) " >&6
  19176. else
  19177. ac_check_lib_save_LIBS=$LIBS
  19178. LIBS="-lnettle $LIBS"
  19179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19180. /* end confdefs.h. */
  19181. #ifdef __cplusplus
  19182. extern "C"
  19183. #endif
  19184. char nettle_MD5Init ();
  19185. int main (void)
  19186. {
  19187. return nettle_MD5Init ();
  19188. ;
  19189. return 0;
  19190. }
  19191. _ACEOF
  19192. if ac_fn_c_try_link "$LINENO"; then :
  19193. ac_cv_lib_nettle_nettle_MD5Init=yes
  19194. else
  19195. ac_cv_lib_nettle_nettle_MD5Init=no
  19196. fi
  19197. rm -f core conftest.err conftest.$ac_objext \
  19198. conftest$ac_exeext conftest.$ac_ext
  19199. LIBS=$ac_check_lib_save_LIBS
  19200. fi
  19201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
  19202. $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
  19203. if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
  19204. USE_GNUTLS_NETTLE=1
  19205. fi
  19206. fi
  19207. if test "$USE_GNUTLS_NETTLE" = ""; then
  19208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
  19209. $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
  19210. if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
  19211. $as_echo_n "(cached) " >&6
  19212. else
  19213. ac_check_lib_save_LIBS=$LIBS
  19214. LIBS="-lgcrypt $LIBS"
  19215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19216. /* end confdefs.h. */
  19217. #ifdef __cplusplus
  19218. extern "C"
  19219. #endif
  19220. char gcry_control ();
  19221. int main (void)
  19222. {
  19223. return gcry_control ();
  19224. ;
  19225. return 0;
  19226. }
  19227. _ACEOF
  19228. if ac_fn_c_try_link "$LINENO"; then :
  19229. ac_cv_lib_gcrypt_gcry_control=yes
  19230. else
  19231. ac_cv_lib_gcrypt_gcry_control=no
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext \
  19234. conftest$ac_exeext conftest.$ac_ext
  19235. LIBS=$ac_check_lib_save_LIBS
  19236. fi
  19237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
  19238. $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
  19239. if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
  19240. USE_GNUTLS_NETTLE=0
  19241. fi
  19242. fi
  19243. if test "$USE_GNUTLS_NETTLE" = ""; then
  19244. as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
  19245. fi
  19246. if test "$USE_GNUTLS_NETTLE" = "1"; then
  19247. $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
  19248. USE_GNUTLS_NETTLE=1
  19249. LIBS="-lnettle $LIBS"
  19250. else
  19251. LIBS="-lgcrypt $LIBS"
  19252. fi
  19253. fi
  19254. if test "$GNUTLS_ENABLED" = "1"; then
  19255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
  19256. $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
  19257. if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
  19258. $as_echo_n "(cached) " >&6
  19259. else
  19260. ac_check_lib_save_LIBS=$LIBS
  19261. LIBS="-lgnutls $LIBS"
  19262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19263. /* end confdefs.h. */
  19264. #ifdef __cplusplus
  19265. extern "C"
  19266. #endif
  19267. char gnutls_srp_verifier ();
  19268. int main (void)
  19269. {
  19270. return gnutls_srp_verifier ();
  19271. ;
  19272. return 0;
  19273. }
  19274. _ACEOF
  19275. if ac_fn_c_try_link "$LINENO"; then :
  19276. ac_cv_lib_gnutls_gnutls_srp_verifier=yes
  19277. else
  19278. ac_cv_lib_gnutls_gnutls_srp_verifier=no
  19279. fi
  19280. rm -f core conftest.err conftest.$ac_objext \
  19281. conftest$ac_exeext conftest.$ac_ext
  19282. LIBS=$ac_check_lib_save_LIBS
  19283. fi
  19284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
  19285. $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
  19286. if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
  19287. $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
  19288. HAVE_GNUTLS_SRP=1
  19289. fi
  19290. fi
  19291. OPT_POLARSSL=no
  19292. _cppflags=$CPPFLAGS
  19293. _ldflags=$LDFLAGS
  19294. # Check whether --with-polarssl was given.
  19295. if test "${with_polarssl+set}" = set; then :
  19296. withval=$with_polarssl; OPT_POLARSSL=$withval
  19297. fi
  19298. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19299. if test X"$OPT_POLARSSL" != Xno; then
  19300. if test "$OPT_POLARSSL" = "yes"; then
  19301. OPT_POLARSSL=""
  19302. fi
  19303. if test -z "$OPT_POLARSSL" ; then
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
  19305. $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
  19306. if ${ac_cv_lib_polarssl_havege_init+:} false; then :
  19307. $as_echo_n "(cached) " >&6
  19308. else
  19309. ac_check_lib_save_LIBS=$LIBS
  19310. LIBS="-lpolarssl $LIBS"
  19311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19312. /* end confdefs.h. */
  19313. #ifdef __cplusplus
  19314. extern "C"
  19315. #endif
  19316. char havege_init ();
  19317. int main (void)
  19318. {
  19319. return havege_init ();
  19320. ;
  19321. return 0;
  19322. }
  19323. _ACEOF
  19324. if ac_fn_c_try_link "$LINENO"; then :
  19325. ac_cv_lib_polarssl_havege_init=yes
  19326. else
  19327. ac_cv_lib_polarssl_havege_init=no
  19328. fi
  19329. rm -f core conftest.err conftest.$ac_objext \
  19330. conftest$ac_exeext conftest.$ac_ext
  19331. LIBS=$ac_check_lib_save_LIBS
  19332. fi
  19333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
  19334. $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
  19335. if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
  19336. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  19337. USE_POLARSSL=1
  19338. POLARSSL_ENABLED=1
  19339. USE_POLARSSL="yes"
  19340. curl_ssl_msg="enabled (PolarSSL)"
  19341. fi
  19342. fi
  19343. addld=""
  19344. addlib=""
  19345. addcflags=""
  19346. polarssllib=""
  19347. if test "x$USE_POLARSSL" != "xyes"; then
  19348. addld=-L$OPT_POLARSSL/lib$libsuff
  19349. addcflags=-I$OPT_POLARSSL/include
  19350. polarssllib=$OPT_POLARSSL/lib$libsuff
  19351. LDFLAGS="$LDFLAGS $addld"
  19352. if test "$addcflags" != "-I/usr/include"; then
  19353. CPPFLAGS="$CPPFLAGS $addcflags"
  19354. fi
  19355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
  19356. $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
  19357. if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
  19358. $as_echo_n "(cached) " >&6
  19359. else
  19360. ac_check_lib_save_LIBS=$LIBS
  19361. LIBS="-lpolarssl $LIBS"
  19362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19363. /* end confdefs.h. */
  19364. #ifdef __cplusplus
  19365. extern "C"
  19366. #endif
  19367. char ssl_init ();
  19368. int main (void)
  19369. {
  19370. return ssl_init ();
  19371. ;
  19372. return 0;
  19373. }
  19374. _ACEOF
  19375. if ac_fn_c_try_link "$LINENO"; then :
  19376. ac_cv_lib_polarssl_ssl_init=yes
  19377. else
  19378. ac_cv_lib_polarssl_ssl_init=no
  19379. fi
  19380. rm -f core conftest.err conftest.$ac_objext \
  19381. conftest$ac_exeext conftest.$ac_ext
  19382. LIBS=$ac_check_lib_save_LIBS
  19383. fi
  19384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
  19385. $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
  19386. if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
  19387. $as_echo "#define USE_POLARSSL 1" >>confdefs.h
  19388. USE_POLARSSL=1
  19389. POLARSSL_ENABLED=1
  19390. USE_POLARSSL="yes"
  19391. curl_ssl_msg="enabled (PolarSSL)"
  19392. else
  19393. CPPFLAGS=$_cppflags
  19394. LDFLAGS=$_ldflags
  19395. fi
  19396. fi
  19397. if test "x$USE_POLARSSL" = "xyes"; then
  19398. { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
  19399. $as_echo "$as_me: detected PolarSSL" >&6;}
  19400. LIBS="-lpolarssl $LIBS"
  19401. if test -n "$polarssllib"; then
  19402. if test "x$cross_compiling" != "xyes"; then
  19403. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
  19404. export LD_LIBRARY_PATH
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
  19406. $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
  19407. fi
  19408. fi
  19409. fi
  19410. fi
  19411. fi
  19412. OPT_CYASSL=no
  19413. _cppflags=$CPPFLAGS
  19414. _ldflags=$LDFLAGS
  19415. # Check whether --with-cyassl was given.
  19416. if test "${with_cyassl+set}" = set; then :
  19417. withval=$with_cyassl; OPT_CYASSL=$withval
  19418. fi
  19419. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19420. if test X"$OPT_CYASSL" != Xno; then
  19421. if test "$OPT_CYASSL" = "yes"; then
  19422. OPT_CYASSL=""
  19423. fi
  19424. if test -z "$OPT_CYASSL" ; then
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  19426. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  19427. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  19428. $as_echo_n "(cached) " >&6
  19429. else
  19430. ac_check_lib_save_LIBS=$LIBS
  19431. LIBS="-lcyassl $LIBS"
  19432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19433. /* end confdefs.h. */
  19434. #ifdef __cplusplus
  19435. extern "C"
  19436. #endif
  19437. char CyaSSL_Init ();
  19438. int main (void)
  19439. {
  19440. return CyaSSL_Init ();
  19441. ;
  19442. return 0;
  19443. }
  19444. _ACEOF
  19445. if ac_fn_c_try_link "$LINENO"; then :
  19446. ac_cv_lib_cyassl_CyaSSL_Init=yes
  19447. else
  19448. ac_cv_lib_cyassl_CyaSSL_Init=no
  19449. fi
  19450. rm -f core conftest.err conftest.$ac_objext \
  19451. conftest$ac_exeext conftest.$ac_ext
  19452. LIBS=$ac_check_lib_save_LIBS
  19453. fi
  19454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  19455. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  19456. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  19457. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  19458. USE_CYASSL=1
  19459. CYASSL_ENABLED=1
  19460. USE_CYASSL="yes"
  19461. curl_ssl_msg="enabled (CyaSSL)"
  19462. fi
  19463. fi
  19464. addld=""
  19465. addlib=""
  19466. addcflags=""
  19467. cyassllib=""
  19468. if test "x$USE_CYASSL" != "xyes"; then
  19469. addld=-L$OPT_CYASSL/lib$libsuff
  19470. addcflags=-I$OPT_CYASSL/include
  19471. cyassllib=$OPT_CYASSL/lib$libsuff
  19472. LDFLAGS="$LDFLAGS $addld"
  19473. if test "$addcflags" != "-I/usr/include"; then
  19474. CPPFLAGS="$CPPFLAGS $addcflags"
  19475. fi
  19476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
  19477. $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
  19478. if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
  19479. $as_echo_n "(cached) " >&6
  19480. else
  19481. ac_check_lib_save_LIBS=$LIBS
  19482. LIBS="-lcyassl $LIBS"
  19483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19484. /* end confdefs.h. */
  19485. #ifdef __cplusplus
  19486. extern "C"
  19487. #endif
  19488. char CyaSSL_Init ();
  19489. int main (void)
  19490. {
  19491. return CyaSSL_Init ();
  19492. ;
  19493. return 0;
  19494. }
  19495. _ACEOF
  19496. if ac_fn_c_try_link "$LINENO"; then :
  19497. ac_cv_lib_cyassl_CyaSSL_Init=yes
  19498. else
  19499. ac_cv_lib_cyassl_CyaSSL_Init=no
  19500. fi
  19501. rm -f core conftest.err conftest.$ac_objext \
  19502. conftest$ac_exeext conftest.$ac_ext
  19503. LIBS=$ac_check_lib_save_LIBS
  19504. fi
  19505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
  19506. $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
  19507. if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
  19508. $as_echo "#define USE_CYASSL 1" >>confdefs.h
  19509. USE_CYASSL=1
  19510. CYASSL_ENABLED=1
  19511. USE_CYASSL="yes"
  19512. curl_ssl_msg="enabled (CyaSSL)"
  19513. else
  19514. CPPFLAGS=$_cppflags
  19515. LDFLAGS=$_ldflags
  19516. fi
  19517. fi
  19518. if test "x$USE_CYASSL" = "xyes"; then
  19519. { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
  19520. $as_echo "$as_me: detected CyaSSL" >&6;}
  19521. # The cast to long int works around a bug in the HP C Compiler
  19522. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19523. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19524. # This bug is HP SR number 8606223364.
  19525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  19526. $as_echo_n "checking size of long long... " >&6; }
  19527. if ${ac_cv_sizeof_long_long+:} false; then :
  19528. $as_echo_n "(cached) " >&6
  19529. else
  19530. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  19531. else
  19532. if test "$ac_cv_type_long_long" = yes; then
  19533. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19534. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19535. as_fn_error 77 "cannot compute sizeof (long long)
  19536. See \`config.log' for more details" "$LINENO" 5; }
  19537. else
  19538. ac_cv_sizeof_long_long=0
  19539. fi
  19540. fi
  19541. fi
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  19543. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  19544. cat >>confdefs.h <<_ACEOF
  19545. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  19546. _ACEOF
  19547. for ac_header in cyassl/error-ssl.h
  19548. do :
  19549. ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
  19550. if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
  19551. cat >>confdefs.h <<_ACEOF
  19552. #define HAVE_CYASSL_ERROR_SSL_H 1
  19553. _ACEOF
  19554. fi
  19555. done
  19556. LIBS="-lcyassl -lm $LIBS"
  19557. if test -n "$cyassllib"; then
  19558. if test "x$cross_compiling" != "xyes"; then
  19559. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
  19560. export LD_LIBRARY_PATH
  19561. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
  19562. $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
  19563. fi
  19564. fi
  19565. fi
  19566. fi
  19567. fi
  19568. OPT_NSS=no
  19569. # Check whether --with-nss was given.
  19570. if test "${with_nss+set}" = set; then :
  19571. withval=$with_nss; OPT_NSS=$withval
  19572. fi
  19573. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19574. if test X"$OPT_NSS" != Xno; then
  19575. addld=""
  19576. addlib=""
  19577. addcflags=""
  19578. nssprefix=""
  19579. version=""
  19580. if test "x$OPT_NSS" = "xyes"; then
  19581. PKGCONFIG="no"
  19582. if test -n "$ac_tool_prefix"; then
  19583. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19584. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19586. $as_echo_n "checking for $ac_word... " >&6; }
  19587. if ${ac_cv_path_PKGCONFIG+:} false; then :
  19588. $as_echo_n "(cached) " >&6
  19589. else
  19590. case $PKGCONFIG in
  19591. [\\/]* | ?:[\\/]*)
  19592. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19593. ;;
  19594. *)
  19595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19596. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19597. for as_dir in $as_dummy
  19598. do
  19599. IFS=$as_save_IFS
  19600. test -z "$as_dir" && as_dir=.
  19601. for ac_exec_ext in '' $ac_executable_extensions; do
  19602. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19603. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19604. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19605. break 2
  19606. fi
  19607. done
  19608. done
  19609. IFS=$as_save_IFS
  19610. ;;
  19611. esac
  19612. fi
  19613. PKGCONFIG=$ac_cv_path_PKGCONFIG
  19614. if test -n "$PKGCONFIG"; then
  19615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  19616. $as_echo "$PKGCONFIG" >&6; }
  19617. else
  19618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19619. $as_echo "no" >&6; }
  19620. fi
  19621. fi
  19622. if test -z "$ac_cv_path_PKGCONFIG"; then
  19623. ac_pt_PKGCONFIG=$PKGCONFIG
  19624. # Extract the first word of "pkg-config", so it can be a program name with args.
  19625. set dummy pkg-config; ac_word=$2
  19626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19627. $as_echo_n "checking for $ac_word... " >&6; }
  19628. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  19629. $as_echo_n "(cached) " >&6
  19630. else
  19631. case $ac_pt_PKGCONFIG in
  19632. [\\/]* | ?:[\\/]*)
  19633. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  19634. ;;
  19635. *)
  19636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19637. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19638. for as_dir in $as_dummy
  19639. do
  19640. IFS=$as_save_IFS
  19641. test -z "$as_dir" && as_dir=.
  19642. for ac_exec_ext in '' $ac_executable_extensions; do
  19643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19644. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19646. break 2
  19647. fi
  19648. done
  19649. done
  19650. IFS=$as_save_IFS
  19651. ;;
  19652. esac
  19653. fi
  19654. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  19655. if test -n "$ac_pt_PKGCONFIG"; then
  19656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  19657. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  19658. else
  19659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19660. $as_echo "no" >&6; }
  19661. fi
  19662. if test "x$ac_pt_PKGCONFIG" = x; then
  19663. PKGCONFIG="no"
  19664. else
  19665. case $cross_compiling:$ac_tool_warned in
  19666. yes:)
  19667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19669. ac_tool_warned=yes ;;
  19670. esac
  19671. PKGCONFIG=$ac_pt_PKGCONFIG
  19672. fi
  19673. else
  19674. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  19675. fi
  19676. if test x$PKGCONFIG != xno; then
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
  19678. $as_echo_n "checking for nss options with pkg-config... " >&6; }
  19679. itexists=`
  19680. if test -n ""; then
  19681. PKG_CONFIG_LIBDIR=""
  19682. export PKG_CONFIG_LIBDIR
  19683. fi
  19684. $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
  19685. if test -z "$itexists"; then
  19686. PKGCONFIG="no"
  19687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19688. $as_echo "no" >&6; }
  19689. else
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  19691. $as_echo "found" >&6; }
  19692. fi
  19693. fi
  19694. if test "$PKGCONFIG" != "no" ; then
  19695. addlib=`$PKGCONFIG --libs nss`
  19696. addcflags=`$PKGCONFIG --cflags nss`
  19697. version=`$PKGCONFIG --modversion nss`
  19698. nssprefix=`$PKGCONFIG --variable=prefix nss`
  19699. else
  19700. check=`nss-config --version 2>/dev/null`
  19701. if test -n "$check"; then
  19702. addlib=`nss-config --libs`
  19703. addcflags=`nss-config --cflags`
  19704. version=`nss-config --version`
  19705. nssprefix=`nss-config --prefix`
  19706. else
  19707. addlib="-lnss3"
  19708. addcflags=""
  19709. version="unknown"
  19710. fi
  19711. fi
  19712. else
  19713. # Without pkg-config, we'll kludge in some defaults
  19714. addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
  19715. addcflags="-I$OPT_NSS/include"
  19716. version="unknown"
  19717. nssprefix=$OPT_NSS
  19718. fi
  19719. if test -n "$addlib"; then
  19720. CLEANLIBS="$LIBS"
  19721. CLEANCPPFLAGS="$CPPFLAGS"
  19722. LIBS="$addlib $LIBS"
  19723. if test "$addcflags" != "-I/usr/include"; then
  19724. CPPFLAGS="$CPPFLAGS $addcflags"
  19725. fi
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
  19727. $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
  19728. if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
  19729. $as_echo_n "(cached) " >&6
  19730. else
  19731. ac_check_lib_save_LIBS=$LIBS
  19732. LIBS="-lnss3 $LIBS"
  19733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19734. /* end confdefs.h. */
  19735. #ifdef __cplusplus
  19736. extern "C"
  19737. #endif
  19738. char SSL_VersionRangeSet ();
  19739. int main (void)
  19740. {
  19741. return SSL_VersionRangeSet ();
  19742. ;
  19743. return 0;
  19744. }
  19745. _ACEOF
  19746. if ac_fn_c_try_link "$LINENO"; then :
  19747. ac_cv_lib_nss3_SSL_VersionRangeSet=yes
  19748. else
  19749. ac_cv_lib_nss3_SSL_VersionRangeSet=no
  19750. fi
  19751. rm -f core conftest.err conftest.$ac_objext \
  19752. conftest$ac_exeext conftest.$ac_ext
  19753. LIBS=$ac_check_lib_save_LIBS
  19754. fi
  19755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
  19756. $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
  19757. if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
  19758. $as_echo "#define USE_NSS 1" >>confdefs.h
  19759. USE_NSS=1
  19760. USE_NSS="yes"
  19761. NSS_ENABLED=1
  19762. curl_ssl_msg="enabled (NSS)"
  19763. else
  19764. LIBS="$CLEANLIBS"
  19765. CPPFLAGS="$CLEANCPPFLAGS"
  19766. fi
  19767. if test "x$USE_NSS" = "xyes"; then
  19768. { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
  19769. $as_echo "$as_me: detected NSS version $version" >&6;}
  19770. if test "x$cross_compiling" != "xyes"; then
  19771. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
  19772. export LD_LIBRARY_PATH
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
  19774. $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
  19775. fi
  19776. fi
  19777. fi
  19778. fi
  19779. fi
  19780. OPT_AXTLS=off
  19781. # Check whether --with-axtls was given.
  19782. if test "${with_axtls+set}" = set; then :
  19783. withval=$with_axtls; OPT_AXTLS=$withval
  19784. fi
  19785. if test "$curl_ssl_msg" = "$init_ssl_msg"; then
  19786. if test X"$OPT_AXTLS" != Xno; then
  19787. CLEANLDFLAGS="$LDFLAGS"
  19788. CLEANCPPFLAGS="$CPPFLAGS"
  19789. CLEANLIBS="$LIBS"
  19790. case "$OPT_AXTLS" in
  19791. yes)
  19792. PREFIX_AXTLS=/usr/local
  19793. LIB_AXTLS="$PREFIX_AXTLS/lib"
  19794. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  19795. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  19796. ;;
  19797. off)
  19798. PREFIX_AXTLS=
  19799. ;;
  19800. *)
  19801. PREFIX_AXTLS=$OPT_AXTLS
  19802. LIB_AXTLS="$PREFIX_AXTLS/lib"
  19803. LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
  19804. CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
  19805. ;;
  19806. esac
  19807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
  19808. $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
  19809. if ${ac_cv_lib_axtls_ssl_version+:} false; then :
  19810. $as_echo_n "(cached) " >&6
  19811. else
  19812. ac_check_lib_save_LIBS=$LIBS
  19813. LIBS="-laxtls $LIBS"
  19814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19815. /* end confdefs.h. */
  19816. #ifdef __cplusplus
  19817. extern "C"
  19818. #endif
  19819. char ssl_version ();
  19820. int main (void)
  19821. {
  19822. return ssl_version ();
  19823. ;
  19824. return 0;
  19825. }
  19826. _ACEOF
  19827. if ac_fn_c_try_link "$LINENO"; then :
  19828. ac_cv_lib_axtls_ssl_version=yes
  19829. else
  19830. ac_cv_lib_axtls_ssl_version=no
  19831. fi
  19832. rm -f core conftest.err conftest.$ac_objext \
  19833. conftest$ac_exeext conftest.$ac_ext
  19834. LIBS=$ac_check_lib_save_LIBS
  19835. fi
  19836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
  19837. $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
  19838. if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
  19839. LIBS="-laxtls $LIBS"
  19840. $as_echo "#define USE_AXTLS 1" >>confdefs.h
  19841. USE_AXTLS=1
  19842. AXTLS_ENABLED=1
  19843. USE_AXTLS="yes"
  19844. curl_ssl_msg="enabled (axTLS)"
  19845. if test "x$cross_compiling" != "xyes"; then
  19846. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
  19847. export LD_LIBRARY_PATH
  19848. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
  19849. $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
  19850. fi
  19851. else
  19852. LDFLAGS="$CLEANLDFLAGS"
  19853. CPPFLAGS="$CLEANCPPFLAGS"
  19854. LIBS="$CLEANLIBS"
  19855. fi
  19856. fi
  19857. fi
  19858. if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
  19859. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
  19860. $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
  19861. { $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
  19862. $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;}
  19863. else
  19864. # SSL is enabled, genericly
  19865. SSL_ENABLED="1"
  19866. fi
  19867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
  19868. $as_echo_n "checking default CA cert bundle/path... " >&6; }
  19869. # Check whether --with-ca-bundle was given.
  19870. if test "${with_ca_bundle+set}" = set; then :
  19871. withval=$with_ca_bundle;
  19872. want_ca="$withval"
  19873. if test "x$want_ca" = "xyes"; then
  19874. as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
  19875. fi
  19876. else
  19877. want_ca="unset"
  19878. fi
  19879. # Check whether --with-ca-path was given.
  19880. if test "${with_ca_path+set}" = set; then :
  19881. withval=$with_ca_path;
  19882. want_capath="$withval"
  19883. if test "x$want_capath" = "xyes"; then
  19884. as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
  19885. fi
  19886. else
  19887. want_capath="unset"
  19888. fi
  19889. if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
  19890. "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  19891. as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
  19892. elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
  19893. ca="$want_ca"
  19894. capath="no"
  19895. elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
  19896. if test "x$OPENSSL_ENABLED" != "x1"; then
  19897. as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
  19898. fi
  19899. capath="$want_capath"
  19900. ca="no"
  19901. else
  19902. ca="no"
  19903. capath="no"
  19904. if test "x$cross_compiling" != "xyes"; then
  19905. if test "x$want_ca" = "xunset"; then
  19906. if test "x$prefix" != xNONE; then
  19907. cac="${prefix}/share/curl/curl-ca-bundle.crt"
  19908. else
  19909. cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
  19910. fi
  19911. for a in /etc/ssl/certs/ca-certificates.crt \
  19912. /etc/pki/tls/certs/ca-bundle.crt \
  19913. /usr/share/ssl/certs/ca-bundle.crt \
  19914. /usr/local/share/certs/ca-root.crt \
  19915. /etc/ssl/cert.pem \
  19916. "$cac"; do
  19917. if test -f "$a"; then
  19918. ca="$a"
  19919. break
  19920. fi
  19921. done
  19922. fi
  19923. if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
  19924. "x$OPENSSL_ENABLED" = "x1"; then
  19925. for a in /etc/ssl/certs/; do
  19926. 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
  19927. capath="$a"
  19928. break
  19929. fi
  19930. done
  19931. fi
  19932. else
  19933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
  19934. $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
  19935. fi
  19936. fi
  19937. if test "x$ca" != "xno"; then
  19938. CURL_CA_BUNDLE='"'$ca'"'
  19939. cat >>confdefs.h <<_ACEOF
  19940. #define CURL_CA_BUNDLE "$ca"
  19941. _ACEOF
  19942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
  19943. $as_echo "$ca" >&6; }
  19944. elif test "x$capath" != "xno"; then
  19945. CURL_CA_PATH="\"$capath\""
  19946. cat >>confdefs.h <<_ACEOF
  19947. #define CURL_CA_PATH "$capath"
  19948. _ACEOF
  19949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
  19950. $as_echo "$capath (capath)" >&6; }
  19951. else
  19952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19953. $as_echo "no" >&6; }
  19954. fi
  19955. OPT_LIBMETALINK=no
  19956. # Check whether --with-libmetalink was given.
  19957. if test "${with_libmetalink+set}" = set; then :
  19958. withval=$with_libmetalink; OPT_LIBMETALINK=$withval
  19959. fi
  19960. if test X"$OPT_LIBMETALINK" != Xno; then
  19961. addld=""
  19962. addlib=""
  19963. addcflags=""
  19964. version=""
  19965. libmetalinklib=""
  19966. PKGTEST="no"
  19967. if test "x$OPT_LIBMETALINK" = "xyes"; then
  19968. PKGTEST="yes"
  19969. PKGCONFIG="no"
  19970. if test -n "$ac_tool_prefix"; then
  19971. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19972. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19974. $as_echo_n "checking for $ac_word... " >&6; }
  19975. if ${ac_cv_path_PKGCONFIG+:} false; then :
  19976. $as_echo_n "(cached) " >&6
  19977. else
  19978. case $PKGCONFIG in
  19979. [\\/]* | ?:[\\/]*)
  19980. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  19981. ;;
  19982. *)
  19983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19984. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  19985. for as_dir in $as_dummy
  19986. do
  19987. IFS=$as_save_IFS
  19988. test -z "$as_dir" && as_dir=.
  19989. for ac_exec_ext in '' $ac_executable_extensions; do
  19990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19991. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  19992. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19993. break 2
  19994. fi
  19995. done
  19996. done
  19997. IFS=$as_save_IFS
  19998. ;;
  19999. esac
  20000. fi
  20001. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20002. if test -n "$PKGCONFIG"; then
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20004. $as_echo "$PKGCONFIG" >&6; }
  20005. else
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20007. $as_echo "no" >&6; }
  20008. fi
  20009. fi
  20010. if test -z "$ac_cv_path_PKGCONFIG"; then
  20011. ac_pt_PKGCONFIG=$PKGCONFIG
  20012. # Extract the first word of "pkg-config", so it can be a program name with args.
  20013. set dummy pkg-config; ac_word=$2
  20014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20015. $as_echo_n "checking for $ac_word... " >&6; }
  20016. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20017. $as_echo_n "(cached) " >&6
  20018. else
  20019. case $ac_pt_PKGCONFIG in
  20020. [\\/]* | ?:[\\/]*)
  20021. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20022. ;;
  20023. *)
  20024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20025. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20026. for as_dir in $as_dummy
  20027. do
  20028. IFS=$as_save_IFS
  20029. test -z "$as_dir" && as_dir=.
  20030. for ac_exec_ext in '' $ac_executable_extensions; do
  20031. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20032. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20033. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20034. break 2
  20035. fi
  20036. done
  20037. done
  20038. IFS=$as_save_IFS
  20039. ;;
  20040. esac
  20041. fi
  20042. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20043. if test -n "$ac_pt_PKGCONFIG"; then
  20044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20045. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20046. else
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20048. $as_echo "no" >&6; }
  20049. fi
  20050. if test "x$ac_pt_PKGCONFIG" = x; then
  20051. PKGCONFIG="no"
  20052. else
  20053. case $cross_compiling:$ac_tool_warned in
  20054. yes:)
  20055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20057. ac_tool_warned=yes ;;
  20058. esac
  20059. PKGCONFIG=$ac_pt_PKGCONFIG
  20060. fi
  20061. else
  20062. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20063. fi
  20064. if test x$PKGCONFIG != xno; then
  20065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  20066. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  20067. itexists=`
  20068. if test -n ""; then
  20069. PKG_CONFIG_LIBDIR=""
  20070. export PKG_CONFIG_LIBDIR
  20071. fi
  20072. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  20073. if test -z "$itexists"; then
  20074. PKGCONFIG="no"
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20076. $as_echo "no" >&6; }
  20077. else
  20078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20079. $as_echo "found" >&6; }
  20080. fi
  20081. fi
  20082. else
  20083. LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
  20084. { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
  20085. $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
  20086. if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
  20087. PKGTEST="yes"
  20088. fi
  20089. if test "$PKGTEST" = "yes"; then
  20090. PKGCONFIG="no"
  20091. if test -n "$ac_tool_prefix"; then
  20092. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20093. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20095. $as_echo_n "checking for $ac_word... " >&6; }
  20096. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20097. $as_echo_n "(cached) " >&6
  20098. else
  20099. case $PKGCONFIG in
  20100. [\\/]* | ?:[\\/]*)
  20101. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20102. ;;
  20103. *)
  20104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20105. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20106. for as_dir in $as_dummy
  20107. do
  20108. IFS=$as_save_IFS
  20109. test -z "$as_dir" && as_dir=.
  20110. for ac_exec_ext in '' $ac_executable_extensions; do
  20111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20112. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20114. break 2
  20115. fi
  20116. done
  20117. done
  20118. IFS=$as_save_IFS
  20119. ;;
  20120. esac
  20121. fi
  20122. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20123. if test -n "$PKGCONFIG"; then
  20124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20125. $as_echo "$PKGCONFIG" >&6; }
  20126. else
  20127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20128. $as_echo "no" >&6; }
  20129. fi
  20130. fi
  20131. if test -z "$ac_cv_path_PKGCONFIG"; then
  20132. ac_pt_PKGCONFIG=$PKGCONFIG
  20133. # Extract the first word of "pkg-config", so it can be a program name with args.
  20134. set dummy pkg-config; ac_word=$2
  20135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20136. $as_echo_n "checking for $ac_word... " >&6; }
  20137. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20138. $as_echo_n "(cached) " >&6
  20139. else
  20140. case $ac_pt_PKGCONFIG in
  20141. [\\/]* | ?:[\\/]*)
  20142. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20143. ;;
  20144. *)
  20145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20146. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20147. for as_dir in $as_dummy
  20148. do
  20149. IFS=$as_save_IFS
  20150. test -z "$as_dir" && as_dir=.
  20151. for ac_exec_ext in '' $ac_executable_extensions; do
  20152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20153. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20155. break 2
  20156. fi
  20157. done
  20158. done
  20159. IFS=$as_save_IFS
  20160. ;;
  20161. esac
  20162. fi
  20163. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20164. if test -n "$ac_pt_PKGCONFIG"; then
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20166. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20167. else
  20168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20169. $as_echo "no" >&6; }
  20170. fi
  20171. if test "x$ac_pt_PKGCONFIG" = x; then
  20172. PKGCONFIG="no"
  20173. else
  20174. case $cross_compiling:$ac_tool_warned in
  20175. yes:)
  20176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20177. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20178. ac_tool_warned=yes ;;
  20179. esac
  20180. PKGCONFIG=$ac_pt_PKGCONFIG
  20181. fi
  20182. else
  20183. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20184. fi
  20185. if test x$PKGCONFIG != xno; then
  20186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
  20187. $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
  20188. itexists=`
  20189. if test -n "$LIBMETALINK_PCDIR"; then
  20190. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20191. export PKG_CONFIG_LIBDIR
  20192. fi
  20193. $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
  20194. if test -z "$itexists"; then
  20195. PKGCONFIG="no"
  20196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20197. $as_echo "no" >&6; }
  20198. else
  20199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20200. $as_echo "found" >&6; }
  20201. fi
  20202. fi
  20203. fi
  20204. fi
  20205. if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
  20206. addlib=`
  20207. if test -n "$LIBMETALINK_PCDIR"; then
  20208. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20209. export PKG_CONFIG_LIBDIR
  20210. fi
  20211. $PKGCONFIG --libs-only-l libmetalink`
  20212. addld=`
  20213. if test -n "$LIBMETALINK_PCDIR"; then
  20214. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20215. export PKG_CONFIG_LIBDIR
  20216. fi
  20217. $PKGCONFIG --libs-only-L libmetalink`
  20218. addcflags=`
  20219. if test -n "$LIBMETALINK_PCDIR"; then
  20220. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20221. export PKG_CONFIG_LIBDIR
  20222. fi
  20223. $PKGCONFIG --cflags-only-I libmetalink`
  20224. version=`
  20225. if test -n "$LIBMETALINK_PCDIR"; then
  20226. PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
  20227. export PKG_CONFIG_LIBDIR
  20228. fi
  20229. $PKGCONFIG --modversion libmetalink`
  20230. libmetalinklib=`echo $addld | $SED -e 's/-L//'`
  20231. fi
  20232. if test -n "$addlib"; then
  20233. clean_CPPFLAGS="$CPPFLAGS"
  20234. clean_LDFLAGS="$LDFLAGS"
  20235. clean_LIBS="$LIBS"
  20236. CPPFLAGS="$addcflags $clean_CPPFLAGS"
  20237. LDFLAGS="$addld $clean_LDFLAGS"
  20238. LIBS="$addlib $clean_LIBS"
  20239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
  20240. $as_echo_n "checking if libmetalink is recent enough... " >&6; }
  20241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20242. /* end confdefs.h. */
  20243. # include <metalink/metalink.h>
  20244. int main (void)
  20245. {
  20246. if(0 != metalink_strerror(0)) /* added in 0.1.0 */
  20247. return 1;
  20248. ;
  20249. return 0;
  20250. }
  20251. _ACEOF
  20252. if ac_fn_c_try_link "$LINENO"; then :
  20253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
  20254. $as_echo "yes ($version)" >&6; }
  20255. want_metalink="yes"
  20256. else
  20257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
  20258. $as_echo "no ($version)" >&6; }
  20259. { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
  20260. $as_echo "$as_me: libmetalink library defective or too old" >&6;}
  20261. want_metalink="no"
  20262. fi
  20263. rm -f core conftest.err conftest.$ac_objext \
  20264. conftest$ac_exeext conftest.$ac_ext
  20265. CPPFLAGS="$clean_CPPFLAGS"
  20266. LDFLAGS="$clean_LDFLAGS"
  20267. LIBS="$clean_LIBS"
  20268. if test "$want_metalink" = "yes"; then
  20269. $as_echo "#define USE_METALINK 1" >>confdefs.h
  20270. LIBMETALINK_LIBS=$addlib
  20271. LIBMETALINK_LDFLAGS=$addld
  20272. LIBMETALINK_CPPFLAGS=$addcflags
  20273. curl_mtlnk_msg="enabled"
  20274. fi
  20275. fi
  20276. fi
  20277. OPT_LIBSSH2=off
  20278. # Check whether --with-libssh2 was given.
  20279. if test "${with_libssh2+set}" = set; then :
  20280. withval=$with_libssh2; OPT_LIBSSH2=$withval
  20281. fi
  20282. if test X"$OPT_LIBSSH2" != Xno; then
  20283. CLEANLDFLAGS="$LDFLAGS"
  20284. CLEANCPPFLAGS="$CPPFLAGS"
  20285. CLEANLIBS="$LIBS"
  20286. case "$OPT_LIBSSH2" in
  20287. yes)
  20288. PKGCONFIG="no"
  20289. if test -n "$ac_tool_prefix"; then
  20290. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20291. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20293. $as_echo_n "checking for $ac_word... " >&6; }
  20294. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20295. $as_echo_n "(cached) " >&6
  20296. else
  20297. case $PKGCONFIG in
  20298. [\\/]* | ?:[\\/]*)
  20299. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20300. ;;
  20301. *)
  20302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20303. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20304. for as_dir in $as_dummy
  20305. do
  20306. IFS=$as_save_IFS
  20307. test -z "$as_dir" && as_dir=.
  20308. for ac_exec_ext in '' $ac_executable_extensions; do
  20309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20310. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20312. break 2
  20313. fi
  20314. done
  20315. done
  20316. IFS=$as_save_IFS
  20317. ;;
  20318. esac
  20319. fi
  20320. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20321. if test -n "$PKGCONFIG"; then
  20322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20323. $as_echo "$PKGCONFIG" >&6; }
  20324. else
  20325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20326. $as_echo "no" >&6; }
  20327. fi
  20328. fi
  20329. if test -z "$ac_cv_path_PKGCONFIG"; then
  20330. ac_pt_PKGCONFIG=$PKGCONFIG
  20331. # Extract the first word of "pkg-config", so it can be a program name with args.
  20332. set dummy pkg-config; ac_word=$2
  20333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20334. $as_echo_n "checking for $ac_word... " >&6; }
  20335. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20336. $as_echo_n "(cached) " >&6
  20337. else
  20338. case $ac_pt_PKGCONFIG in
  20339. [\\/]* | ?:[\\/]*)
  20340. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20341. ;;
  20342. *)
  20343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20344. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20345. for as_dir in $as_dummy
  20346. do
  20347. IFS=$as_save_IFS
  20348. test -z "$as_dir" && as_dir=.
  20349. for ac_exec_ext in '' $ac_executable_extensions; do
  20350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20351. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20353. break 2
  20354. fi
  20355. done
  20356. done
  20357. IFS=$as_save_IFS
  20358. ;;
  20359. esac
  20360. fi
  20361. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20362. if test -n "$ac_pt_PKGCONFIG"; then
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20364. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20365. else
  20366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20367. $as_echo "no" >&6; }
  20368. fi
  20369. if test "x$ac_pt_PKGCONFIG" = x; then
  20370. PKGCONFIG="no"
  20371. else
  20372. case $cross_compiling:$ac_tool_warned in
  20373. yes:)
  20374. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20375. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20376. ac_tool_warned=yes ;;
  20377. esac
  20378. PKGCONFIG=$ac_pt_PKGCONFIG
  20379. fi
  20380. else
  20381. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20382. fi
  20383. if test x$PKGCONFIG != xno; then
  20384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
  20385. $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
  20386. itexists=`
  20387. if test -n ""; then
  20388. PKG_CONFIG_LIBDIR=""
  20389. export PKG_CONFIG_LIBDIR
  20390. fi
  20391. $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
  20392. if test -z "$itexists"; then
  20393. PKGCONFIG="no"
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20395. $as_echo "no" >&6; }
  20396. else
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20398. $as_echo "found" >&6; }
  20399. fi
  20400. fi
  20401. if test "$PKGCONFIG" != "no" ; then
  20402. LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
  20403. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  20404. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  20405. version=`$PKGCONFIG --modversion libssh2`
  20406. DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
  20407. fi
  20408. ;;
  20409. off)
  20410. ;;
  20411. *)
  20412. PREFIX_SSH2=$OPT_LIBSSH2
  20413. ;;
  20414. esac
  20415. if test -n "$PREFIX_SSH2"; then
  20416. LIB_SSH2="-lssh2"
  20417. LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
  20418. CPP_SSH2=-I${PREFIX_SSH2}/include
  20419. DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
  20420. fi
  20421. LDFLAGS="$LDFLAGS $LD_SSH2"
  20422. CPPFLAGS="$CPPFLAGS $CPP_SSH2"
  20423. LIBS="$LIB_SSH2 $LIBS"
  20424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
  20425. $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
  20426. if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
  20427. $as_echo_n "(cached) " >&6
  20428. else
  20429. ac_check_lib_save_LIBS=$LIBS
  20430. LIBS="-lssh2 $LIBS"
  20431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20432. /* end confdefs.h. */
  20433. #ifdef __cplusplus
  20434. extern "C"
  20435. #endif
  20436. char libssh2_channel_open_ex ();
  20437. int main (void)
  20438. {
  20439. return libssh2_channel_open_ex ();
  20440. ;
  20441. return 0;
  20442. }
  20443. _ACEOF
  20444. if ac_fn_c_try_link "$LINENO"; then :
  20445. ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
  20446. else
  20447. ac_cv_lib_ssh2_libssh2_channel_open_ex=no
  20448. fi
  20449. rm -f core conftest.err conftest.$ac_objext \
  20450. conftest$ac_exeext conftest.$ac_ext
  20451. LIBS=$ac_check_lib_save_LIBS
  20452. fi
  20453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
  20454. $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
  20455. if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
  20456. cat >>confdefs.h <<_ACEOF
  20457. #define HAVE_LIBSSH2 1
  20458. _ACEOF
  20459. LIBS="-lssh2 $LIBS"
  20460. fi
  20461. for ac_header in libssh2.h
  20462. do :
  20463. ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
  20464. if test "x$ac_cv_header_libssh2_h" = xyes; then :
  20465. cat >>confdefs.h <<_ACEOF
  20466. #define HAVE_LIBSSH2_H 1
  20467. _ACEOF
  20468. curl_ssh_msg="enabled (libSSH2)"
  20469. LIBSSH2_ENABLED=1
  20470. $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
  20471. USE_LIBSSH2=1
  20472. fi
  20473. done
  20474. if test X"$OPT_LIBSSH2" != Xoff &&
  20475. test "$LIBSSH2_ENABLED" != "1"; then
  20476. as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
  20477. fi
  20478. if test "$LIBSSH2_ENABLED" = "1"; then
  20479. if test -n "$DIR_SSH2"; then
  20480. for ac_func in libssh2_version libssh2_init libssh2_exit \
  20481. libssh2_scp_send64 libssh2_session_handshake
  20482. do :
  20483. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20484. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20485. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20486. cat >>confdefs.h <<_ACEOF
  20487. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20488. _ACEOF
  20489. fi
  20490. done
  20491. if test "x$cross_compiling" != "xyes"; then
  20492. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
  20493. export LD_LIBRARY_PATH
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
  20495. $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
  20496. fi
  20497. fi
  20498. else
  20499. LDFLAGS=$CLEANLDFLAGS
  20500. CPPFLAGS=$CLEANCPPFLAGS
  20501. LIBS=$CLEANLIBS
  20502. fi
  20503. fi
  20504. OPT_LIBRTMP=off
  20505. # Check whether --with-librtmp was given.
  20506. if test "${with_librtmp+set}" = set; then :
  20507. withval=$with_librtmp; OPT_LIBRTMP=$withval
  20508. fi
  20509. if test X"$OPT_LIBRTMP" != Xno; then
  20510. CLEANLDFLAGS="$LDFLAGS"
  20511. CLEANCPPFLAGS="$CPPFLAGS"
  20512. CLEANLIBS="$LIBS"
  20513. case "$OPT_LIBRTMP" in
  20514. yes)
  20515. PKGCONFIG="no"
  20516. if test -n "$ac_tool_prefix"; then
  20517. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20518. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20520. $as_echo_n "checking for $ac_word... " >&6; }
  20521. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20522. $as_echo_n "(cached) " >&6
  20523. else
  20524. case $PKGCONFIG in
  20525. [\\/]* | ?:[\\/]*)
  20526. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20527. ;;
  20528. *)
  20529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20530. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20531. for as_dir in $as_dummy
  20532. do
  20533. IFS=$as_save_IFS
  20534. test -z "$as_dir" && as_dir=.
  20535. for ac_exec_ext in '' $ac_executable_extensions; do
  20536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20537. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20539. break 2
  20540. fi
  20541. done
  20542. done
  20543. IFS=$as_save_IFS
  20544. ;;
  20545. esac
  20546. fi
  20547. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20548. if test -n "$PKGCONFIG"; then
  20549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20550. $as_echo "$PKGCONFIG" >&6; }
  20551. else
  20552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20553. $as_echo "no" >&6; }
  20554. fi
  20555. fi
  20556. if test -z "$ac_cv_path_PKGCONFIG"; then
  20557. ac_pt_PKGCONFIG=$PKGCONFIG
  20558. # Extract the first word of "pkg-config", so it can be a program name with args.
  20559. set dummy pkg-config; ac_word=$2
  20560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20561. $as_echo_n "checking for $ac_word... " >&6; }
  20562. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20563. $as_echo_n "(cached) " >&6
  20564. else
  20565. case $ac_pt_PKGCONFIG in
  20566. [\\/]* | ?:[\\/]*)
  20567. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20568. ;;
  20569. *)
  20570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20571. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20572. for as_dir in $as_dummy
  20573. do
  20574. IFS=$as_save_IFS
  20575. test -z "$as_dir" && as_dir=.
  20576. for ac_exec_ext in '' $ac_executable_extensions; do
  20577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20578. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20580. break 2
  20581. fi
  20582. done
  20583. done
  20584. IFS=$as_save_IFS
  20585. ;;
  20586. esac
  20587. fi
  20588. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20589. if test -n "$ac_pt_PKGCONFIG"; then
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20591. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20592. else
  20593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20594. $as_echo "no" >&6; }
  20595. fi
  20596. if test "x$ac_pt_PKGCONFIG" = x; then
  20597. PKGCONFIG="no"
  20598. else
  20599. case $cross_compiling:$ac_tool_warned in
  20600. yes:)
  20601. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20602. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20603. ac_tool_warned=yes ;;
  20604. esac
  20605. PKGCONFIG=$ac_pt_PKGCONFIG
  20606. fi
  20607. else
  20608. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20609. fi
  20610. if test x$PKGCONFIG != xno; then
  20611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
  20612. $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
  20613. itexists=`
  20614. if test -n ""; then
  20615. PKG_CONFIG_LIBDIR=""
  20616. export PKG_CONFIG_LIBDIR
  20617. fi
  20618. $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
  20619. if test -z "$itexists"; then
  20620. PKGCONFIG="no"
  20621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20622. $as_echo "no" >&6; }
  20623. else
  20624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  20625. $as_echo "found" >&6; }
  20626. fi
  20627. fi
  20628. if test "$PKGCONFIG" != "no" ; then
  20629. LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
  20630. LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
  20631. CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
  20632. version=`$PKGCONFIG --modversion librtmp`
  20633. DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
  20634. else
  20635. as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
  20636. fi
  20637. ;;
  20638. off)
  20639. LIB_RTMP="-lrtmp"
  20640. ;;
  20641. *)
  20642. PREFIX_RTMP=$OPT_LIBRTMP
  20643. ;;
  20644. esac
  20645. if test -n "$PREFIX_RTMP"; then
  20646. LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
  20647. CPP_RTMP=-I${PREFIX_RTMP}/include
  20648. DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
  20649. fi
  20650. LDFLAGS="$LDFLAGS $LD_RTMP"
  20651. CPPFLAGS="$CPPFLAGS $CPP_RTMP"
  20652. LIBS="$LIB_RTMP $LIBS"
  20653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
  20654. $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
  20655. if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
  20656. $as_echo_n "(cached) " >&6
  20657. else
  20658. ac_check_lib_save_LIBS=$LIBS
  20659. LIBS="-lrtmp $LIBS"
  20660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20661. /* end confdefs.h. */
  20662. #ifdef __cplusplus
  20663. extern "C"
  20664. #endif
  20665. char RTMP_Init ();
  20666. int main (void)
  20667. {
  20668. return RTMP_Init ();
  20669. ;
  20670. return 0;
  20671. }
  20672. _ACEOF
  20673. if ac_fn_c_try_link "$LINENO"; then :
  20674. ac_cv_lib_rtmp_RTMP_Init=yes
  20675. else
  20676. ac_cv_lib_rtmp_RTMP_Init=no
  20677. fi
  20678. rm -f core conftest.err conftest.$ac_objext \
  20679. conftest$ac_exeext conftest.$ac_ext
  20680. LIBS=$ac_check_lib_save_LIBS
  20681. fi
  20682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
  20683. $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
  20684. if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
  20685. for ac_header in librtmp/rtmp.h
  20686. do :
  20687. ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
  20688. if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
  20689. cat >>confdefs.h <<_ACEOF
  20690. #define HAVE_LIBRTMP_RTMP_H 1
  20691. _ACEOF
  20692. curl_rtmp_msg="enabled (librtmp)"
  20693. LIBRTMP_ENABLED=1
  20694. $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
  20695. USE_LIBRTMP=1
  20696. fi
  20697. done
  20698. else
  20699. LDFLAGS=$CLEANLDFLAGS
  20700. CPPFLAGS=$CLEANCPPFLAGS
  20701. LIBS=$CLEANLIBS
  20702. fi
  20703. if test X"$OPT_LIBRTMP" != Xoff &&
  20704. test "$LIBRTMP_ENABLED" != "1"; then
  20705. as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
  20706. fi
  20707. fi
  20708. versioned_symbols_flavour=
  20709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
  20710. $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
  20711. # Check whether --enable-versioned-symbols was given.
  20712. if test "${enable_versioned_symbols+set}" = set; then :
  20713. enableval=$enable_versioned_symbols; case "$enableval" in
  20714. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20715. $as_echo "yes" >&6; }
  20716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
  20717. $as_echo_n "checking if libraries can be versioned... " >&6; }
  20718. GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
  20719. if test -z "$GLD"; then
  20720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20721. $as_echo "no" >&6; }
  20722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
  20723. $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
  20724. else
  20725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20726. $as_echo "yes" >&6; }
  20727. if test "x$OPENSSL_ENABLED" = "x1"; then
  20728. versioned_symbols_flavour="OPENSSL_"
  20729. elif test "x$GNUTLS_ENABLED" = "x1"; then
  20730. versioned_symbols_flavour="GNUTLS_"
  20731. elif test "x$NSS_ENABLED" = "x1"; then
  20732. versioned_symbols_flavour="NSS_"
  20733. elif test "x$POLARSSL_ENABLED" = "x1"; then
  20734. versioned_symbols_flavour="POLARSSL_"
  20735. elif test "x$CYASSL_ENABLED" = "x1"; then
  20736. versioned_symbols_flavour="CYASSL_"
  20737. elif test "x$AXTLS_ENABLED" = "x1"; then
  20738. versioned_symbols_flavour="AXTLS_"
  20739. elif test "x$WINSSL_ENABLED" = "x1"; then
  20740. versioned_symbols_flavour="WINSSL_"
  20741. elif test "x$DARWINSSL_ENABLED" = "x1"; then
  20742. versioned_symbols_flavour="DARWINSSL_"
  20743. else
  20744. versioned_symbols_flavour=""
  20745. fi
  20746. versioned_symbols="yes"
  20747. fi
  20748. ;;
  20749. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20750. $as_echo "no" >&6; }
  20751. ;;
  20752. esac
  20753. else
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20755. $as_echo "no" >&6; }
  20756. fi
  20757. CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
  20758. if test "x$versioned_symbols" = 'xyes'; then
  20759. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
  20760. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
  20761. else
  20762. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
  20763. CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
  20764. fi
  20765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
  20766. $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
  20767. OPT_WINIDN="default"
  20768. # Check whether --with-winidn was given.
  20769. if test "${with_winidn+set}" = set; then :
  20770. withval=$with_winidn; OPT_WINIDN=$withval
  20771. fi
  20772. case "$OPT_WINIDN" in
  20773. no|default)
  20774. want_winidn="no"
  20775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20776. $as_echo "no" >&6; }
  20777. ;;
  20778. yes)
  20779. want_winidn="yes"
  20780. want_winidn_path="default"
  20781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20782. $as_echo "yes" >&6; }
  20783. ;;
  20784. *)
  20785. want_winidn="yes"
  20786. want_winidn_path="$withval"
  20787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  20788. $as_echo "yes ($withval)" >&6; }
  20789. ;;
  20790. esac
  20791. if test "$want_winidn" = "yes"; then
  20792. clean_CPPFLAGS="$CPPFLAGS"
  20793. clean_LDFLAGS="$LDFLAGS"
  20794. clean_LIBS="$LIBS"
  20795. WINIDN_LIBS="-lnormaliz"
  20796. #
  20797. if test "$want_winidn_path" != "default"; then
  20798. WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
  20799. WINIDN_CPPFLAGS="-I$want_winidn_path/include"
  20800. WINIDN_DIR="$want_winidn_path/lib$libsuff"
  20801. fi
  20802. #
  20803. CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
  20804. LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
  20805. LIBS="$WINIDN_LIBS $LIBS"
  20806. #
  20807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
  20808. $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
  20809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20810. /* end confdefs.h. */
  20811. #define IdnToUnicode innocuous_IdnToUnicode
  20812. #ifdef __STDC__
  20813. # include <limits.h>
  20814. #else
  20815. # include <assert.h>
  20816. #endif
  20817. #undef IdnToUnicode
  20818. #ifdef __cplusplus
  20819. extern "C"
  20820. #endif
  20821. char IdnToUnicode ();
  20822. #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
  20823. choke me
  20824. #endif
  20825. int main (void)
  20826. {
  20827. return IdnToUnicode ();
  20828. ;
  20829. return 0;
  20830. }
  20831. _ACEOF
  20832. if ac_fn_c_try_link "$LINENO"; then :
  20833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20834. $as_echo "yes" >&6; }
  20835. tst_links_winidn="yes"
  20836. else
  20837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20838. $as_echo "no" >&6; }
  20839. tst_links_winidn="no"
  20840. fi
  20841. rm -f core conftest.err conftest.$ac_objext \
  20842. conftest$ac_exeext conftest.$ac_ext
  20843. #
  20844. if test "$tst_links_winidn" = "yes"; then
  20845. $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
  20846. $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
  20847. IDN_ENABLED=1
  20848. curl_idn_msg="enabled (Windows-native)"
  20849. else
  20850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  20851. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  20852. CPPFLAGS="$clean_CPPFLAGS"
  20853. LDFLAGS="$clean_LDFLAGS"
  20854. LIBS="$clean_LIBS"
  20855. fi
  20856. fi
  20857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
  20858. $as_echo_n "checking whether to build with libidn... " >&6; }
  20859. OPT_IDN="default"
  20860. # Check whether --with-libidn was given.
  20861. if test "${with_libidn+set}" = set; then :
  20862. withval=$with_libidn; OPT_IDN=$withval
  20863. fi
  20864. case "$OPT_IDN" in
  20865. no)
  20866. want_idn="no"
  20867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20868. $as_echo "no" >&6; }
  20869. ;;
  20870. default)
  20871. want_idn="yes"
  20872. want_idn_path="default"
  20873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
  20874. $as_echo "(assumed) yes" >&6; }
  20875. ;;
  20876. yes)
  20877. want_idn="yes"
  20878. want_idn_path="default"
  20879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20880. $as_echo "yes" >&6; }
  20881. ;;
  20882. *)
  20883. want_idn="yes"
  20884. want_idn_path="$withval"
  20885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
  20886. $as_echo "yes ($withval)" >&6; }
  20887. ;;
  20888. esac
  20889. if test "$want_idn" = "yes"; then
  20890. clean_CPPFLAGS="$CPPFLAGS"
  20891. clean_LDFLAGS="$LDFLAGS"
  20892. clean_LIBS="$LIBS"
  20893. PKGCONFIG="no"
  20894. #
  20895. if test "$want_idn_path" != "default"; then
  20896. IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
  20897. PKGCONFIG="no"
  20898. if test -n "$ac_tool_prefix"; then
  20899. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  20900. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  20901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20902. $as_echo_n "checking for $ac_word... " >&6; }
  20903. if ${ac_cv_path_PKGCONFIG+:} false; then :
  20904. $as_echo_n "(cached) " >&6
  20905. else
  20906. case $PKGCONFIG in
  20907. [\\/]* | ?:[\\/]*)
  20908. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  20909. ;;
  20910. *)
  20911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20912. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20913. for as_dir in $as_dummy
  20914. do
  20915. IFS=$as_save_IFS
  20916. test -z "$as_dir" && as_dir=.
  20917. for ac_exec_ext in '' $ac_executable_extensions; do
  20918. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20919. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20921. break 2
  20922. fi
  20923. done
  20924. done
  20925. IFS=$as_save_IFS
  20926. ;;
  20927. esac
  20928. fi
  20929. PKGCONFIG=$ac_cv_path_PKGCONFIG
  20930. if test -n "$PKGCONFIG"; then
  20931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  20932. $as_echo "$PKGCONFIG" >&6; }
  20933. else
  20934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20935. $as_echo "no" >&6; }
  20936. fi
  20937. fi
  20938. if test -z "$ac_cv_path_PKGCONFIG"; then
  20939. ac_pt_PKGCONFIG=$PKGCONFIG
  20940. # Extract the first word of "pkg-config", so it can be a program name with args.
  20941. set dummy pkg-config; ac_word=$2
  20942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20943. $as_echo_n "checking for $ac_word... " >&6; }
  20944. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  20945. $as_echo_n "(cached) " >&6
  20946. else
  20947. case $ac_pt_PKGCONFIG in
  20948. [\\/]* | ?:[\\/]*)
  20949. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  20950. ;;
  20951. *)
  20952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20953. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  20954. for as_dir in $as_dummy
  20955. do
  20956. IFS=$as_save_IFS
  20957. test -z "$as_dir" && as_dir=.
  20958. for ac_exec_ext in '' $ac_executable_extensions; do
  20959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20960. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  20961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20962. break 2
  20963. fi
  20964. done
  20965. done
  20966. IFS=$as_save_IFS
  20967. ;;
  20968. esac
  20969. fi
  20970. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  20971. if test -n "$ac_pt_PKGCONFIG"; then
  20972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  20973. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  20974. else
  20975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20976. $as_echo "no" >&6; }
  20977. fi
  20978. if test "x$ac_pt_PKGCONFIG" = x; then
  20979. PKGCONFIG="no"
  20980. else
  20981. case $cross_compiling:$ac_tool_warned in
  20982. yes:)
  20983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20984. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20985. ac_tool_warned=yes ;;
  20986. esac
  20987. PKGCONFIG=$ac_pt_PKGCONFIG
  20988. fi
  20989. else
  20990. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  20991. fi
  20992. if test x$PKGCONFIG != xno; then
  20993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
  20994. $as_echo_n "checking for libidn options with pkg-config... " >&6; }
  20995. itexists=`
  20996. if test -n "$IDN_PCDIR"; then
  20997. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  20998. export PKG_CONFIG_LIBDIR
  20999. fi
  21000. $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
  21001. if test -z "$itexists"; then
  21002. PKGCONFIG="no"
  21003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21004. $as_echo "no" >&6; }
  21005. else
  21006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21007. $as_echo "found" >&6; }
  21008. fi
  21009. fi
  21010. if test "$PKGCONFIG" != "no"; then
  21011. IDN_LIBS=`
  21012. if test -n "$IDN_PCDIR"; then
  21013. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21014. export PKG_CONFIG_LIBDIR
  21015. fi
  21016. $PKGCONFIG --libs-only-l libidn 2>/dev/null`
  21017. IDN_LDFLAGS=`
  21018. if test -n "$IDN_PCDIR"; then
  21019. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21020. export PKG_CONFIG_LIBDIR
  21021. fi
  21022. $PKGCONFIG --libs-only-L libidn 2>/dev/null`
  21023. IDN_CPPFLAGS=`
  21024. if test -n "$IDN_PCDIR"; then
  21025. PKG_CONFIG_LIBDIR="$IDN_PCDIR"
  21026. export PKG_CONFIG_LIBDIR
  21027. fi
  21028. $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
  21029. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  21030. else
  21031. IDN_LIBS="-lidn"
  21032. IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
  21033. IDN_CPPFLAGS="-I$want_idn_path/include"
  21034. IDN_DIR="$want_idn_path/lib$libsuff"
  21035. fi
  21036. else
  21037. PKGCONFIG="no"
  21038. if test -n "$ac_tool_prefix"; then
  21039. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21040. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21042. $as_echo_n "checking for $ac_word... " >&6; }
  21043. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21044. $as_echo_n "(cached) " >&6
  21045. else
  21046. case $PKGCONFIG in
  21047. [\\/]* | ?:[\\/]*)
  21048. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21049. ;;
  21050. *)
  21051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21052. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21053. for as_dir in $as_dummy
  21054. do
  21055. IFS=$as_save_IFS
  21056. test -z "$as_dir" && as_dir=.
  21057. for ac_exec_ext in '' $ac_executable_extensions; do
  21058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21059. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21061. break 2
  21062. fi
  21063. done
  21064. done
  21065. IFS=$as_save_IFS
  21066. ;;
  21067. esac
  21068. fi
  21069. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21070. if test -n "$PKGCONFIG"; then
  21071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21072. $as_echo "$PKGCONFIG" >&6; }
  21073. else
  21074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21075. $as_echo "no" >&6; }
  21076. fi
  21077. fi
  21078. if test -z "$ac_cv_path_PKGCONFIG"; then
  21079. ac_pt_PKGCONFIG=$PKGCONFIG
  21080. # Extract the first word of "pkg-config", so it can be a program name with args.
  21081. set dummy pkg-config; ac_word=$2
  21082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21083. $as_echo_n "checking for $ac_word... " >&6; }
  21084. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21085. $as_echo_n "(cached) " >&6
  21086. else
  21087. case $ac_pt_PKGCONFIG in
  21088. [\\/]* | ?:[\\/]*)
  21089. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21090. ;;
  21091. *)
  21092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21093. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21094. for as_dir in $as_dummy
  21095. do
  21096. IFS=$as_save_IFS
  21097. test -z "$as_dir" && as_dir=.
  21098. for ac_exec_ext in '' $ac_executable_extensions; do
  21099. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21100. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21102. break 2
  21103. fi
  21104. done
  21105. done
  21106. IFS=$as_save_IFS
  21107. ;;
  21108. esac
  21109. fi
  21110. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21111. if test -n "$ac_pt_PKGCONFIG"; then
  21112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21113. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21114. else
  21115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21116. $as_echo "no" >&6; }
  21117. fi
  21118. if test "x$ac_pt_PKGCONFIG" = x; then
  21119. PKGCONFIG="no"
  21120. else
  21121. case $cross_compiling:$ac_tool_warned in
  21122. yes:)
  21123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21125. ac_tool_warned=yes ;;
  21126. esac
  21127. PKGCONFIG=$ac_pt_PKGCONFIG
  21128. fi
  21129. else
  21130. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21131. fi
  21132. if test x$PKGCONFIG != xno; then
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
  21134. $as_echo_n "checking for libidn options with pkg-config... " >&6; }
  21135. itexists=`
  21136. if test -n ""; then
  21137. PKG_CONFIG_LIBDIR=""
  21138. export PKG_CONFIG_LIBDIR
  21139. fi
  21140. $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
  21141. if test -z "$itexists"; then
  21142. PKGCONFIG="no"
  21143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21144. $as_echo "no" >&6; }
  21145. else
  21146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21147. $as_echo "found" >&6; }
  21148. fi
  21149. fi
  21150. if test "$PKGCONFIG" != "no"; then
  21151. IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
  21152. IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
  21153. IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
  21154. IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
  21155. else
  21156. IDN_LIBS="-lidn"
  21157. fi
  21158. fi
  21159. #
  21160. if test "$PKGCONFIG" != "no"; then
  21161. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
  21162. $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  21163. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  21164. $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  21165. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  21166. $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  21167. { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
  21168. $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
  21169. else
  21170. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
  21171. $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
  21172. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
  21173. $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
  21174. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
  21175. $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
  21176. { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
  21177. $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
  21178. fi
  21179. #
  21180. CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
  21181. LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
  21182. LIBS="$IDN_LIBS $LIBS"
  21183. #
  21184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
  21185. $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
  21186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21187. /* end confdefs.h. */
  21188. #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
  21189. #ifdef __STDC__
  21190. # include <limits.h>
  21191. #else
  21192. # include <assert.h>
  21193. #endif
  21194. #undef idna_to_ascii_4i
  21195. #ifdef __cplusplus
  21196. extern "C"
  21197. #endif
  21198. char idna_to_ascii_4i ();
  21199. #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
  21200. choke me
  21201. #endif
  21202. int main (void)
  21203. {
  21204. return idna_to_ascii_4i ();
  21205. ;
  21206. return 0;
  21207. }
  21208. _ACEOF
  21209. if ac_fn_c_try_link "$LINENO"; then :
  21210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21211. $as_echo "yes" >&6; }
  21212. tst_links_libidn="yes"
  21213. else
  21214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21215. $as_echo "no" >&6; }
  21216. tst_links_libidn="no"
  21217. fi
  21218. rm -f core conftest.err conftest.$ac_objext \
  21219. conftest$ac_exeext conftest.$ac_ext
  21220. if test "$tst_links_libidn" = "no"; then
  21221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
  21222. $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
  21223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21224. /* end confdefs.h. */
  21225. #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
  21226. #ifdef __STDC__
  21227. # include <limits.h>
  21228. #else
  21229. # include <assert.h>
  21230. #endif
  21231. #undef idna_to_ascii_lz
  21232. #ifdef __cplusplus
  21233. extern "C"
  21234. #endif
  21235. char idna_to_ascii_lz ();
  21236. #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
  21237. choke me
  21238. #endif
  21239. int main (void)
  21240. {
  21241. return idna_to_ascii_lz ();
  21242. ;
  21243. return 0;
  21244. }
  21245. _ACEOF
  21246. if ac_fn_c_try_link "$LINENO"; then :
  21247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21248. $as_echo "yes" >&6; }
  21249. tst_links_libidn="yes"
  21250. else
  21251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21252. $as_echo "no" >&6; }
  21253. tst_links_libidn="no"
  21254. fi
  21255. rm -f core conftest.err conftest.$ac_objext \
  21256. conftest$ac_exeext conftest.$ac_ext
  21257. fi
  21258. #
  21259. if test "$tst_links_libidn" = "yes"; then
  21260. $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
  21261. for ac_func in idn_free idna_strerror tld_strerror
  21262. do :
  21263. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21264. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21265. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21266. cat >>confdefs.h <<_ACEOF
  21267. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21268. _ACEOF
  21269. fi
  21270. done
  21271. for ac_header in idn-free.h tld.h
  21272. do :
  21273. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21274. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  21275. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21276. cat >>confdefs.h <<_ACEOF
  21277. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21278. _ACEOF
  21279. fi
  21280. done
  21281. if test "x$ac_cv_header_tld_h" = "xyes"; then
  21282. IDN_ENABLED=1
  21283. curl_idn_msg="enabled"
  21284. if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
  21285. LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
  21286. export LD_LIBRARY_PATH
  21287. { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
  21288. $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
  21289. fi
  21290. else
  21291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
  21292. $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
  21293. CPPFLAGS="$clean_CPPFLAGS"
  21294. LDFLAGS="$clean_LDFLAGS"
  21295. LIBS="$clean_LIBS"
  21296. fi
  21297. else
  21298. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
  21299. $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
  21300. CPPFLAGS="$clean_CPPFLAGS"
  21301. LDFLAGS="$clean_LDFLAGS"
  21302. LIBS="$clean_LIBS"
  21303. fi
  21304. fi
  21305. OPT_H2="yes"
  21306. # Check whether --with-nghttp2 was given.
  21307. if test "${with_nghttp2+set}" = set; then :
  21308. withval=$with_nghttp2; OPT_H2=$withval
  21309. fi
  21310. case "$OPT_H2" in
  21311. no)
  21312. want_h2="no"
  21313. ;;
  21314. yes)
  21315. want_h2="default"
  21316. want_h2_path=""
  21317. ;;
  21318. *)
  21319. want_h2="yes"
  21320. want_h2_path="$withval/lib/pkgconfig"
  21321. ;;
  21322. esac
  21323. curl_h2_msg="disabled (--with-nghttp2)"
  21324. if test X"$want_h2" != Xno; then
  21325. CLEANLDFLAGS="$LDFLAGS"
  21326. CLEANCPPFLAGS="$CPPFLAGS"
  21327. CLEANLIBS="$LIBS"
  21328. PKGCONFIG="no"
  21329. if test -n "$ac_tool_prefix"; then
  21330. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  21331. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  21332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21333. $as_echo_n "checking for $ac_word... " >&6; }
  21334. if ${ac_cv_path_PKGCONFIG+:} false; then :
  21335. $as_echo_n "(cached) " >&6
  21336. else
  21337. case $PKGCONFIG in
  21338. [\\/]* | ?:[\\/]*)
  21339. ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
  21340. ;;
  21341. *)
  21342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21343. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21344. for as_dir in $as_dummy
  21345. do
  21346. IFS=$as_save_IFS
  21347. test -z "$as_dir" && as_dir=.
  21348. for ac_exec_ext in '' $ac_executable_extensions; do
  21349. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21350. ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21352. break 2
  21353. fi
  21354. done
  21355. done
  21356. IFS=$as_save_IFS
  21357. ;;
  21358. esac
  21359. fi
  21360. PKGCONFIG=$ac_cv_path_PKGCONFIG
  21361. if test -n "$PKGCONFIG"; then
  21362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
  21363. $as_echo "$PKGCONFIG" >&6; }
  21364. else
  21365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21366. $as_echo "no" >&6; }
  21367. fi
  21368. fi
  21369. if test -z "$ac_cv_path_PKGCONFIG"; then
  21370. ac_pt_PKGCONFIG=$PKGCONFIG
  21371. # Extract the first word of "pkg-config", so it can be a program name with args.
  21372. set dummy pkg-config; ac_word=$2
  21373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21374. $as_echo_n "checking for $ac_word... " >&6; }
  21375. if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
  21376. $as_echo_n "(cached) " >&6
  21377. else
  21378. case $ac_pt_PKGCONFIG in
  21379. [\\/]* | ?:[\\/]*)
  21380. ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
  21381. ;;
  21382. *)
  21383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21384. as_dummy="$PATH:/usr/bin:/usr/local/bin"
  21385. for as_dir in $as_dummy
  21386. do
  21387. IFS=$as_save_IFS
  21388. test -z "$as_dir" && as_dir=.
  21389. for ac_exec_ext in '' $ac_executable_extensions; do
  21390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21391. ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
  21392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21393. break 2
  21394. fi
  21395. done
  21396. done
  21397. IFS=$as_save_IFS
  21398. ;;
  21399. esac
  21400. fi
  21401. ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
  21402. if test -n "$ac_pt_PKGCONFIG"; then
  21403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
  21404. $as_echo "$ac_pt_PKGCONFIG" >&6; }
  21405. else
  21406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21407. $as_echo "no" >&6; }
  21408. fi
  21409. if test "x$ac_pt_PKGCONFIG" = x; then
  21410. PKGCONFIG="no"
  21411. else
  21412. case $cross_compiling:$ac_tool_warned in
  21413. yes:)
  21414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21416. ac_tool_warned=yes ;;
  21417. esac
  21418. PKGCONFIG=$ac_pt_PKGCONFIG
  21419. fi
  21420. else
  21421. PKGCONFIG="$ac_cv_path_PKGCONFIG"
  21422. fi
  21423. if test x$PKGCONFIG != xno; then
  21424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
  21425. $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
  21426. itexists=`
  21427. if test -n "$want_h2_path"; then
  21428. PKG_CONFIG_LIBDIR="$want_h2_path"
  21429. export PKG_CONFIG_LIBDIR
  21430. fi
  21431. $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
  21432. if test -z "$itexists"; then
  21433. PKGCONFIG="no"
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21435. $as_echo "no" >&6; }
  21436. else
  21437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  21438. $as_echo "found" >&6; }
  21439. fi
  21440. fi
  21441. if test "$PKGCONFIG" != "no" ; then
  21442. LIB_H2=`
  21443. if test -n "$want_h2_path"; then
  21444. PKG_CONFIG_LIBDIR="$want_h2_path"
  21445. export PKG_CONFIG_LIBDIR
  21446. fi
  21447. $PKGCONFIG --libs-only-l libnghttp2`
  21448. { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
  21449. $as_echo "$as_me: -l is $LIB_H2" >&6;}
  21450. CPP_H2=`
  21451. if test -n "$want_h2_path"; then
  21452. PKG_CONFIG_LIBDIR="$want_h2_path"
  21453. export PKG_CONFIG_LIBDIR
  21454. fi
  21455. $PKGCONFIG --cflags-only-I libnghttp2`
  21456. { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
  21457. $as_echo "$as_me: -I is $CPP_H2" >&6;}
  21458. LD_H2=`
  21459. if test -n "$want_h2_path"; then
  21460. PKG_CONFIG_LIBDIR="$want_h2_path"
  21461. export PKG_CONFIG_LIBDIR
  21462. fi
  21463. $PKGCONFIG --libs-only-L libnghttp2`
  21464. { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
  21465. $as_echo "$as_me: -L is $LD_H2" >&6;}
  21466. LDFLAGS="$LDFLAGS $LD_H2"
  21467. CPPFLAGS="$CPPFLAGS $CPP_H2"
  21468. LIBS="$LIB_H2 $LIBS"
  21469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_client_new in -lnghttp2" >&5
  21470. $as_echo_n "checking for nghttp2_session_client_new in -lnghttp2... " >&6; }
  21471. if ${ac_cv_lib_nghttp2_nghttp2_session_client_new+:} false; then :
  21472. $as_echo_n "(cached) " >&6
  21473. else
  21474. ac_check_lib_save_LIBS=$LIBS
  21475. LIBS="-lnghttp2 $LIBS"
  21476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21477. /* end confdefs.h. */
  21478. #ifdef __cplusplus
  21479. extern "C"
  21480. #endif
  21481. char nghttp2_session_client_new ();
  21482. int main (void)
  21483. {
  21484. return nghttp2_session_client_new ();
  21485. ;
  21486. return 0;
  21487. }
  21488. _ACEOF
  21489. if ac_fn_c_try_link "$LINENO"; then :
  21490. ac_cv_lib_nghttp2_nghttp2_session_client_new=yes
  21491. else
  21492. ac_cv_lib_nghttp2_nghttp2_session_client_new=no
  21493. fi
  21494. rm -f core conftest.err conftest.$ac_objext \
  21495. conftest$ac_exeext conftest.$ac_ext
  21496. LIBS=$ac_check_lib_save_LIBS
  21497. fi
  21498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_client_new" >&5
  21499. $as_echo "$ac_cv_lib_nghttp2_nghttp2_session_client_new" >&6; }
  21500. if test "x$ac_cv_lib_nghttp2_nghttp2_session_client_new" = xyes; then :
  21501. for ac_header in nghttp2/nghttp2.h
  21502. do :
  21503. ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
  21504. if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
  21505. cat >>confdefs.h <<_ACEOF
  21506. #define HAVE_NGHTTP2_NGHTTP2_H 1
  21507. _ACEOF
  21508. curl_h2_msg="enabled (nghttp2)"
  21509. NGHTTP2_ENABLED=1
  21510. $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
  21511. USE_NGHTTP2=1
  21512. fi
  21513. done
  21514. else
  21515. LDFLAGS=$CLEANLDFLAGS
  21516. CPPFLAGS=$CLEANCPPFLAGS
  21517. LIBS=$CLEANLIBS
  21518. fi
  21519. else
  21520. if test X"$want_h2" != Xdefault; then
  21521. as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
  21522. fi
  21523. fi
  21524. fi
  21525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  21526. $as_echo_n "checking for ANSI C header files... " >&6; }
  21527. if ${ac_cv_header_stdc+:} false; then :
  21528. $as_echo_n "(cached) " >&6
  21529. else
  21530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21531. /* end confdefs.h. */
  21532. #include <stdlib.h>
  21533. #include <stdarg.h>
  21534. #include <string.h>
  21535. #include <float.h>
  21536. int main (void)
  21537. {
  21538. ;
  21539. return 0;
  21540. }
  21541. _ACEOF
  21542. if ac_fn_c_try_compile "$LINENO"; then :
  21543. ac_cv_header_stdc=yes
  21544. else
  21545. ac_cv_header_stdc=no
  21546. fi
  21547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21548. if test $ac_cv_header_stdc = yes; then
  21549. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  21550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21551. /* end confdefs.h. */
  21552. #include <string.h>
  21553. _ACEOF
  21554. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21555. $EGREP "memchr" >/dev/null 2>&1; then :
  21556. else
  21557. ac_cv_header_stdc=no
  21558. fi
  21559. rm -f conftest*
  21560. fi
  21561. if test $ac_cv_header_stdc = yes; then
  21562. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  21563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21564. /* end confdefs.h. */
  21565. #include <stdlib.h>
  21566. _ACEOF
  21567. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  21568. $EGREP "free" >/dev/null 2>&1; then :
  21569. else
  21570. ac_cv_header_stdc=no
  21571. fi
  21572. rm -f conftest*
  21573. fi
  21574. if test $ac_cv_header_stdc = yes; then
  21575. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  21576. if test "$cross_compiling" = yes; then :
  21577. :
  21578. else
  21579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21580. /* end confdefs.h. */
  21581. #include <ctype.h>
  21582. #include <stdlib.h>
  21583. #if ((' ' & 0x0FF) == 0x020)
  21584. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  21585. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  21586. #else
  21587. # define ISLOWER(c) \
  21588. (('a' <= (c) && (c) <= 'i') \
  21589. || ('j' <= (c) && (c) <= 'r') \
  21590. || ('s' <= (c) && (c) <= 'z'))
  21591. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  21592. #endif
  21593. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  21594. int
  21595. main ()
  21596. {
  21597. int i;
  21598. for (i = 0; i < 256; i++)
  21599. if (XOR (islower (i), ISLOWER (i))
  21600. || toupper (i) != TOUPPER (i))
  21601. return 2;
  21602. return 0;
  21603. }
  21604. _ACEOF
  21605. if ac_fn_c_try_run "$LINENO"; then :
  21606. else
  21607. ac_cv_header_stdc=no
  21608. fi
  21609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  21610. conftest.$ac_objext conftest.beam conftest.$ac_ext
  21611. fi
  21612. fi
  21613. fi
  21614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  21615. $as_echo "$ac_cv_header_stdc" >&6; }
  21616. if test $ac_cv_header_stdc = yes; then
  21617. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  21618. fi
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
  21620. $as_echo_n "checking for malloc.h... " >&6; }
  21621. if ${ac_cv_header_malloc_h+:} false; then :
  21622. $as_echo_n "(cached) " >&6
  21623. else
  21624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21625. /* end confdefs.h. */
  21626. #include <malloc.h>
  21627. int main (void)
  21628. {
  21629. void *p = malloc(10);
  21630. void *q = calloc(10,10);
  21631. free(p);
  21632. free(q);
  21633. ;
  21634. return 0;
  21635. }
  21636. _ACEOF
  21637. if ac_fn_c_try_compile "$LINENO"; then :
  21638. ac_cv_header_malloc_h="yes"
  21639. else
  21640. ac_cv_header_malloc_h="no"
  21641. fi
  21642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21643. fi
  21644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
  21645. $as_echo "$ac_cv_header_malloc_h" >&6; }
  21646. if test "$ac_cv_header_malloc_h" = "yes"; then
  21647. cat >>confdefs.h <<_ACEOF
  21648. #define HAVE_MALLOC_H 1
  21649. _ACEOF
  21650. #
  21651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21652. /* end confdefs.h. */
  21653. #include <stdlib.h>
  21654. int main (void)
  21655. {
  21656. void *p = malloc(10);
  21657. void *q = calloc(10,10);
  21658. free(p);
  21659. free(q);
  21660. ;
  21661. return 0;
  21662. }
  21663. _ACEOF
  21664. if ac_fn_c_try_compile "$LINENO"; then :
  21665. curl_cv_need_header_malloc_h="no"
  21666. else
  21667. curl_cv_need_header_malloc_h="yes"
  21668. fi
  21669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21670. #
  21671. case "$curl_cv_need_header_malloc_h" in
  21672. yes)
  21673. cat >>confdefs.h <<_ACEOF
  21674. #define NEED_MALLOC_H 1
  21675. _ACEOF
  21676. ;;
  21677. esac
  21678. fi
  21679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
  21680. $as_echo_n "checking for memory.h... " >&6; }
  21681. if ${ac_cv_header_memory_h+:} false; then :
  21682. $as_echo_n "(cached) " >&6
  21683. else
  21684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21685. /* end confdefs.h. */
  21686. #include <memory.h>
  21687. int main (void)
  21688. {
  21689. void *p = malloc(10);
  21690. void *q = calloc(10,10);
  21691. free(p);
  21692. free(q);
  21693. ;
  21694. return 0;
  21695. }
  21696. _ACEOF
  21697. if ac_fn_c_try_compile "$LINENO"; then :
  21698. ac_cv_header_memory_h="yes"
  21699. else
  21700. ac_cv_header_memory_h="no"
  21701. fi
  21702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21703. fi
  21704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
  21705. $as_echo "$ac_cv_header_memory_h" >&6; }
  21706. if test "$ac_cv_header_memory_h" = "yes"; then
  21707. cat >>confdefs.h <<_ACEOF
  21708. #define HAVE_MEMORY_H 1
  21709. _ACEOF
  21710. #
  21711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21712. /* end confdefs.h. */
  21713. #include <stdlib.h>
  21714. int main (void)
  21715. {
  21716. void *p = malloc(10);
  21717. void *q = calloc(10,10);
  21718. free(p);
  21719. free(q);
  21720. ;
  21721. return 0;
  21722. }
  21723. _ACEOF
  21724. if ac_fn_c_try_compile "$LINENO"; then :
  21725. curl_cv_need_header_memory_h="no"
  21726. else
  21727. curl_cv_need_header_memory_h="yes"
  21728. fi
  21729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21730. #
  21731. case "$curl_cv_need_header_memory_h" in
  21732. yes)
  21733. cat >>confdefs.h <<_ACEOF
  21734. #define NEED_MEMORY_H 1
  21735. _ACEOF
  21736. ;;
  21737. esac
  21738. fi
  21739. for ac_header in sys/types.h \
  21740. sys/time.h \
  21741. sys/select.h \
  21742. sys/socket.h \
  21743. sys/ioctl.h \
  21744. sys/uio.h \
  21745. assert.h \
  21746. unistd.h \
  21747. stdlib.h \
  21748. limits.h \
  21749. arpa/inet.h \
  21750. net/if.h \
  21751. netinet/in.h \
  21752. sys/un.h \
  21753. netinet/tcp.h \
  21754. netdb.h \
  21755. sys/sockio.h \
  21756. sys/stat.h \
  21757. sys/param.h \
  21758. termios.h \
  21759. termio.h \
  21760. sgtty.h \
  21761. fcntl.h \
  21762. alloca.h \
  21763. time.h \
  21764. io.h \
  21765. pwd.h \
  21766. utime.h \
  21767. sys/utime.h \
  21768. sys/poll.h \
  21769. poll.h \
  21770. socket.h \
  21771. sys/resource.h \
  21772. libgen.h \
  21773. locale.h \
  21774. errno.h \
  21775. stdbool.h \
  21776. arpa/tftp.h \
  21777. sys/filio.h \
  21778. sys/wait.h \
  21779. setjmp.h
  21780. do :
  21781. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21782. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
  21783. #ifdef HAVE_SYS_TYPES_H
  21784. #include <sys/types.h>
  21785. #endif
  21786. #ifdef HAVE_SYS_TIME_H
  21787. #include <sys/time.h>
  21788. #endif
  21789. #ifdef HAVE_SYS_SELECT_H
  21790. #include <sys/select.h>
  21791. #endif
  21792. #ifdef HAVE_SYS_SOCKET_H
  21793. #include <sys/socket.h>
  21794. #endif
  21795. #ifdef HAVE_NETINET_IN_H
  21796. #include <netinet/in.h>
  21797. #endif
  21798. #ifdef HAVE_SYS_UN_H
  21799. #include <sys/un.h>
  21800. #endif
  21801. "
  21802. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  21803. cat >>confdefs.h <<_ACEOF
  21804. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  21805. _ACEOF
  21806. fi
  21807. done
  21808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  21809. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  21810. if ${ac_cv_c_const+:} false; then :
  21811. $as_echo_n "(cached) " >&6
  21812. else
  21813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21814. /* end confdefs.h. */
  21815. int main (void)
  21816. {
  21817. #ifndef __cplusplus
  21818. /* Ultrix mips cc rejects this sort of thing. */
  21819. typedef int charset[2];
  21820. const charset cs = { 0, 0 };
  21821. /* SunOS 4.1.1 cc rejects this. */
  21822. char const *const *pcpcc;
  21823. char **ppc;
  21824. /* NEC SVR4.0.2 mips cc rejects this. */
  21825. struct point {int x, y;};
  21826. static struct point const zero = {0,0};
  21827. /* AIX XL C 1.02.0.0 rejects this.
  21828. It does not let you subtract one const X* pointer from another in
  21829. an arm of an if-expression whose if-part is not a constant
  21830. expression */
  21831. const char *g = "string";
  21832. pcpcc = &g + (g ? g-g : 0);
  21833. /* HPUX 7.0 cc rejects these. */
  21834. ++pcpcc;
  21835. ppc = (char**) pcpcc;
  21836. pcpcc = (char const *const *) ppc;
  21837. { /* SCO 3.2v4 cc rejects this sort of thing. */
  21838. char tx;
  21839. char *t = &tx;
  21840. char const *s = 0 ? (char *) 0 : (char const *) 0;
  21841. *t++ = 0;
  21842. if (s) return 0;
  21843. }
  21844. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  21845. int x[] = {25, 17};
  21846. const int *foo = &x[0];
  21847. ++foo;
  21848. }
  21849. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  21850. typedef const int *iptr;
  21851. iptr p = 0;
  21852. ++p;
  21853. }
  21854. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  21855. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  21856. struct s { int j; const int *ap[3]; } bx;
  21857. struct s *b = &bx; b->j = 5;
  21858. }
  21859. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  21860. const int foo = 10;
  21861. if (!foo) return 0;
  21862. }
  21863. return !cs[0] && !zero.x;
  21864. #endif
  21865. ;
  21866. return 0;
  21867. }
  21868. _ACEOF
  21869. if ac_fn_c_try_compile "$LINENO"; then :
  21870. ac_cv_c_const=yes
  21871. else
  21872. ac_cv_c_const=no
  21873. fi
  21874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21875. fi
  21876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  21877. $as_echo "$ac_cv_c_const" >&6; }
  21878. if test $ac_cv_c_const = no; then
  21879. $as_echo "#define const /**/" >>confdefs.h
  21880. fi
  21881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
  21882. $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
  21883. if ${curl_cv_variadic_macros_c99+:} false; then :
  21884. $as_echo_n "(cached) " >&6
  21885. else
  21886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21887. /* end confdefs.h. */
  21888. #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
  21889. #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
  21890. int fun3(int arg1, int arg2, int arg3);
  21891. int fun2(int arg1, int arg2);
  21892. int fun3(int arg1, int arg2, int arg3)
  21893. { return arg1 + arg2 + arg3; }
  21894. int fun2(int arg1, int arg2)
  21895. { return arg1 + arg2; }
  21896. int main (void)
  21897. {
  21898. int res3 = c99_vmacro3(1, 2, 3);
  21899. int res2 = c99_vmacro2(1, 2);
  21900. ;
  21901. return 0;
  21902. }
  21903. _ACEOF
  21904. if ac_fn_c_try_compile "$LINENO"; then :
  21905. curl_cv_variadic_macros_c99="yes"
  21906. else
  21907. curl_cv_variadic_macros_c99="no"
  21908. fi
  21909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21910. fi
  21911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
  21912. $as_echo "$curl_cv_variadic_macros_c99" >&6; }
  21913. case "$curl_cv_variadic_macros_c99" in
  21914. yes)
  21915. cat >>confdefs.h <<_ACEOF
  21916. #define HAVE_VARIADIC_MACROS_C99 1
  21917. _ACEOF
  21918. ;;
  21919. esac
  21920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
  21921. $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
  21922. if ${curl_cv_variadic_macros_gcc+:} false; then :
  21923. $as_echo_n "(cached) " >&6
  21924. else
  21925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21926. /* end confdefs.h. */
  21927. #define gcc_vmacro3(first, args...) fun3(first, args)
  21928. #define gcc_vmacro2(first, args...) fun2(first, args)
  21929. int fun3(int arg1, int arg2, int arg3);
  21930. int fun2(int arg1, int arg2);
  21931. int fun3(int arg1, int arg2, int arg3)
  21932. { return arg1 + arg2 + arg3; }
  21933. int fun2(int arg1, int arg2)
  21934. { return arg1 + arg2; }
  21935. int main (void)
  21936. {
  21937. int res3 = gcc_vmacro3(1, 2, 3);
  21938. int res2 = gcc_vmacro2(1, 2);
  21939. ;
  21940. return 0;
  21941. }
  21942. _ACEOF
  21943. if ac_fn_c_try_compile "$LINENO"; then :
  21944. curl_cv_variadic_macros_gcc="yes"
  21945. else
  21946. curl_cv_variadic_macros_gcc="no"
  21947. fi
  21948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21949. fi
  21950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
  21951. $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
  21952. case "$curl_cv_variadic_macros_gcc" in
  21953. yes)
  21954. cat >>confdefs.h <<_ACEOF
  21955. #define HAVE_VARIADIC_MACROS_GCC 1
  21956. _ACEOF
  21957. ;;
  21958. esac
  21959. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  21960. if test "x$ac_cv_type_size_t" = xyes; then :
  21961. else
  21962. cat >>confdefs.h <<_ACEOF
  21963. #define size_t unsigned int
  21964. _ACEOF
  21965. fi
  21966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  21967. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  21968. if ${ac_cv_header_time+:} false; then :
  21969. $as_echo_n "(cached) " >&6
  21970. else
  21971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21972. /* end confdefs.h. */
  21973. #include <sys/types.h>
  21974. #include <sys/time.h>
  21975. #include <time.h>
  21976. int main (void)
  21977. {
  21978. if ((struct tm *) 0)
  21979. return 0;
  21980. ;
  21981. return 0;
  21982. }
  21983. _ACEOF
  21984. if ac_fn_c_try_compile "$LINENO"; then :
  21985. ac_cv_header_time=yes
  21986. else
  21987. ac_cv_header_time=no
  21988. fi
  21989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21990. fi
  21991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  21992. $as_echo "$ac_cv_header_time" >&6; }
  21993. if test $ac_cv_header_time = yes; then
  21994. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  21995. fi
  21996. for ac_header in sys/types.h sys/time.h time.h sys/socket.h
  21997. do :
  21998. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  21999. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  22000. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22001. cat >>confdefs.h <<_ACEOF
  22002. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22003. _ACEOF
  22004. fi
  22005. done
  22006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
  22007. $as_echo_n "checking for struct timeval... " >&6; }
  22008. if ${ac_cv_struct_timeval+:} false; then :
  22009. $as_echo_n "(cached) " >&6
  22010. else
  22011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22012. /* end confdefs.h. */
  22013. #undef inline
  22014. #ifdef HAVE_WINDOWS_H
  22015. #ifndef WIN32_LEAN_AND_MEAN
  22016. #define WIN32_LEAN_AND_MEAN
  22017. #endif
  22018. #include <windows.h>
  22019. #ifdef HAVE_WINSOCK2_H
  22020. #include <winsock2.h>
  22021. #else
  22022. #ifdef HAVE_WINSOCK_H
  22023. #include <winsock.h>
  22024. #endif
  22025. #endif
  22026. #endif
  22027. #ifdef HAVE_SYS_TYPES_H
  22028. #include <sys/types.h>
  22029. #endif
  22030. #ifdef HAVE_SYS_TIME_H
  22031. #include <sys/time.h>
  22032. #ifdef TIME_WITH_SYS_TIME
  22033. #include <time.h>
  22034. #endif
  22035. #else
  22036. #ifdef HAVE_TIME_H
  22037. #include <time.h>
  22038. #endif
  22039. #endif
  22040. #ifdef HAVE_SYS_SOCKET_H
  22041. #include <sys/socket.h>
  22042. #endif
  22043. int main (void)
  22044. {
  22045. struct timeval ts;
  22046. ts.tv_sec = 0;
  22047. ts.tv_usec = 0;
  22048. ;
  22049. return 0;
  22050. }
  22051. _ACEOF
  22052. if ac_fn_c_try_compile "$LINENO"; then :
  22053. ac_cv_struct_timeval="yes"
  22054. else
  22055. ac_cv_struct_timeval="no"
  22056. fi
  22057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22058. fi
  22059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
  22060. $as_echo "$ac_cv_struct_timeval" >&6; }
  22061. case "$ac_cv_struct_timeval" in
  22062. yes)
  22063. cat >>confdefs.h <<_ACEOF
  22064. #define HAVE_STRUCT_TIMEVAL 1
  22065. _ACEOF
  22066. ;;
  22067. esac
  22068. if test "x$cross_compiling" != xyes; then
  22069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
  22070. $as_echo_n "checking run-time libs availability... " >&6; }
  22071. if test "$cross_compiling" = yes; then :
  22072. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22073. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22074. as_fn_error $? "cannot run test program while cross compiling
  22075. See \`config.log' for more details" "$LINENO" 5; }
  22076. else
  22077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22078. /* end confdefs.h. */
  22079. main()
  22080. {
  22081. return 0;
  22082. }
  22083. _ACEOF
  22084. if ac_fn_c_try_run "$LINENO"; then :
  22085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
  22086. $as_echo "fine" >&6; }
  22087. else
  22088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  22089. $as_echo "failed" >&6; }
  22090. as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
  22091. fi
  22092. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  22093. conftest.$ac_objext conftest.beam conftest.$ac_ext
  22094. fi
  22095. fi
  22096. # The cast to long int works around a bug in the HP C Compiler
  22097. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22098. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22099. # This bug is HP SR number 8606223364.
  22100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  22101. $as_echo_n "checking size of size_t... " >&6; }
  22102. if ${ac_cv_sizeof_size_t+:} false; then :
  22103. $as_echo_n "(cached) " >&6
  22104. else
  22105. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  22106. else
  22107. if test "$ac_cv_type_size_t" = yes; then
  22108. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22110. as_fn_error 77 "cannot compute sizeof (size_t)
  22111. See \`config.log' for more details" "$LINENO" 5; }
  22112. else
  22113. ac_cv_sizeof_size_t=0
  22114. fi
  22115. fi
  22116. fi
  22117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  22118. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  22119. cat >>confdefs.h <<_ACEOF
  22120. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  22121. _ACEOF
  22122. # The cast to long int works around a bug in the HP C Compiler
  22123. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22124. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22125. # This bug is HP SR number 8606223364.
  22126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  22127. $as_echo_n "checking size of long... " >&6; }
  22128. if ${ac_cv_sizeof_long+:} false; then :
  22129. $as_echo_n "(cached) " >&6
  22130. else
  22131. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  22132. else
  22133. if test "$ac_cv_type_long" = yes; then
  22134. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22135. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22136. as_fn_error 77 "cannot compute sizeof (long)
  22137. See \`config.log' for more details" "$LINENO" 5; }
  22138. else
  22139. ac_cv_sizeof_long=0
  22140. fi
  22141. fi
  22142. fi
  22143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  22144. $as_echo "$ac_cv_sizeof_long" >&6; }
  22145. cat >>confdefs.h <<_ACEOF
  22146. #define SIZEOF_LONG $ac_cv_sizeof_long
  22147. _ACEOF
  22148. # The cast to long int works around a bug in the HP C Compiler
  22149. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22150. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22151. # This bug is HP SR number 8606223364.
  22152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  22153. $as_echo_n "checking size of int... " >&6; }
  22154. if ${ac_cv_sizeof_int+:} false; then :
  22155. $as_echo_n "(cached) " >&6
  22156. else
  22157. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  22158. else
  22159. if test "$ac_cv_type_int" = yes; then
  22160. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22162. as_fn_error 77 "cannot compute sizeof (int)
  22163. See \`config.log' for more details" "$LINENO" 5; }
  22164. else
  22165. ac_cv_sizeof_int=0
  22166. fi
  22167. fi
  22168. fi
  22169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  22170. $as_echo "$ac_cv_sizeof_int" >&6; }
  22171. cat >>confdefs.h <<_ACEOF
  22172. #define SIZEOF_INT $ac_cv_sizeof_int
  22173. _ACEOF
  22174. # The cast to long int works around a bug in the HP C Compiler
  22175. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22176. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22177. # This bug is HP SR number 8606223364.
  22178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  22179. $as_echo_n "checking size of short... " >&6; }
  22180. if ${ac_cv_sizeof_short+:} false; then :
  22181. $as_echo_n "(cached) " >&6
  22182. else
  22183. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  22184. else
  22185. if test "$ac_cv_type_short" = yes; then
  22186. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22187. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22188. as_fn_error 77 "cannot compute sizeof (short)
  22189. See \`config.log' for more details" "$LINENO" 5; }
  22190. else
  22191. ac_cv_sizeof_short=0
  22192. fi
  22193. fi
  22194. fi
  22195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  22196. $as_echo "$ac_cv_sizeof_short" >&6; }
  22197. cat >>confdefs.h <<_ACEOF
  22198. #define SIZEOF_SHORT $ac_cv_sizeof_short
  22199. _ACEOF
  22200. if test -z "$ac_cv_sizeof_long" ||
  22201. test "$ac_cv_sizeof_long" -eq "0"; then
  22202. as_fn_error $? "cannot find out size of long." "$LINENO" 5
  22203. fi
  22204. cat >>confdefs.h <<_EOF
  22205. #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
  22206. _EOF
  22207. # The cast to long int works around a bug in the HP C Compiler
  22208. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22209. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22210. # This bug is HP SR number 8606223364.
  22211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  22212. $as_echo_n "checking size of time_t... " >&6; }
  22213. if ${ac_cv_sizeof_time_t+:} false; then :
  22214. $as_echo_n "(cached) " >&6
  22215. else
  22216. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  22217. else
  22218. if test "$ac_cv_type_time_t" = yes; then
  22219. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22221. as_fn_error 77 "cannot compute sizeof (time_t)
  22222. See \`config.log' for more details" "$LINENO" 5; }
  22223. else
  22224. ac_cv_sizeof_time_t=0
  22225. fi
  22226. fi
  22227. fi
  22228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  22229. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  22230. cat >>confdefs.h <<_ACEOF
  22231. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  22232. _ACEOF
  22233. # The cast to long int works around a bug in the HP C Compiler
  22234. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  22235. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  22236. # This bug is HP SR number 8606223364.
  22237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
  22238. $as_echo_n "checking size of off_t... " >&6; }
  22239. if ${ac_cv_sizeof_off_t+:} false; then :
  22240. $as_echo_n "(cached) " >&6
  22241. else
  22242. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
  22243. else
  22244. if test "$ac_cv_type_off_t" = yes; then
  22245. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22246. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22247. as_fn_error 77 "cannot compute sizeof (off_t)
  22248. See \`config.log' for more details" "$LINENO" 5; }
  22249. else
  22250. ac_cv_sizeof_off_t=0
  22251. fi
  22252. fi
  22253. fi
  22254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
  22255. $as_echo "$ac_cv_sizeof_off_t" >&6; }
  22256. cat >>confdefs.h <<_ACEOF
  22257. #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
  22258. _ACEOF
  22259. soname_bump=no
  22260. if test x"$ac_cv_native_windows" != "xyes" &&
  22261. test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
  22262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
  22263. $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
  22264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
  22265. $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
  22266. soname_bump=yes
  22267. fi
  22268. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  22269. if test "x$ac_cv_type_long_long" = xyes; then :
  22270. $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
  22271. longlong="yes"
  22272. fi
  22273. if test "xyes" = "x$longlong"; then
  22274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
  22275. $as_echo_n "checking if numberLL works... " >&6; }
  22276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22277. /* end confdefs.h. */
  22278. int main (void)
  22279. {
  22280. long long val = 1000LL;
  22281. ;
  22282. return 0;
  22283. }
  22284. _ACEOF
  22285. if ac_fn_c_try_compile "$LINENO"; then :
  22286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22287. $as_echo "yes" >&6; }
  22288. $as_echo "#define HAVE_LL 1" >>confdefs.h
  22289. else
  22290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22291. $as_echo "no" >&6; }
  22292. fi
  22293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22294. fi
  22295. # check for ssize_t
  22296. ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  22297. if test "x$ac_cv_type_ssize_t" = xyes; then :
  22298. else
  22299. $as_echo "#define ssize_t int" >>confdefs.h
  22300. fi
  22301. # check for bool type
  22302. ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
  22303. #ifdef HAVE_SYS_TYPES_H
  22304. #include <sys/types.h>
  22305. #endif
  22306. #ifdef HAVE_STDBOOL_H
  22307. #include <stdbool.h>
  22308. #endif
  22309. "
  22310. if test "x$ac_cv_type_bool" = xyes; then :
  22311. $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
  22312. fi
  22313. curl_includes_ws2tcpip="\
  22314. /* includes start */
  22315. #ifdef HAVE_WINDOWS_H
  22316. # ifndef WIN32_LEAN_AND_MEAN
  22317. # define WIN32_LEAN_AND_MEAN
  22318. # endif
  22319. # include <windows.h>
  22320. # ifdef HAVE_WINSOCK2_H
  22321. # include <winsock2.h>
  22322. # ifdef HAVE_WS2TCPIP_H
  22323. # include <ws2tcpip.h>
  22324. # endif
  22325. # endif
  22326. #endif
  22327. /* includes end */"
  22328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
  22329. $as_echo_n "checking for windows.h... " >&6; }
  22330. if ${ac_cv_header_windows_h+:} false; then :
  22331. $as_echo_n "(cached) " >&6
  22332. else
  22333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22334. /* end confdefs.h. */
  22335. #undef inline
  22336. #ifndef WIN32_LEAN_AND_MEAN
  22337. #define WIN32_LEAN_AND_MEAN
  22338. #endif
  22339. #include <windows.h>
  22340. int main (void)
  22341. {
  22342. #if defined(__CYGWIN__) || defined(__CEGCC__)
  22343. HAVE_WINDOWS_H shall not be defined.
  22344. #else
  22345. int dummy=2*WINVER;
  22346. #endif
  22347. ;
  22348. return 0;
  22349. }
  22350. _ACEOF
  22351. if ac_fn_c_try_compile "$LINENO"; then :
  22352. ac_cv_header_windows_h="yes"
  22353. else
  22354. ac_cv_header_windows_h="no"
  22355. fi
  22356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22357. fi
  22358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
  22359. $as_echo "$ac_cv_header_windows_h" >&6; }
  22360. case "$ac_cv_header_windows_h" in
  22361. yes)
  22362. cat >>confdefs.h <<_ACEOF
  22363. #define HAVE_WINDOWS_H 1
  22364. _ACEOF
  22365. cat >>confdefs.h <<_ACEOF
  22366. #define WIN32_LEAN_AND_MEAN 1
  22367. _ACEOF
  22368. ;;
  22369. esac
  22370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
  22371. $as_echo_n "checking for winsock2.h... " >&6; }
  22372. if ${ac_cv_header_winsock2_h+:} false; then :
  22373. $as_echo_n "(cached) " >&6
  22374. else
  22375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22376. /* end confdefs.h. */
  22377. #undef inline
  22378. #ifndef WIN32_LEAN_AND_MEAN
  22379. #define WIN32_LEAN_AND_MEAN
  22380. #endif
  22381. #include <windows.h>
  22382. #include <winsock2.h>
  22383. int main (void)
  22384. {
  22385. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  22386. HAVE_WINSOCK2_H shall not be defined.
  22387. #else
  22388. int dummy=2*IPPROTO_ESP;
  22389. #endif
  22390. ;
  22391. return 0;
  22392. }
  22393. _ACEOF
  22394. if ac_fn_c_try_compile "$LINENO"; then :
  22395. ac_cv_header_winsock2_h="yes"
  22396. else
  22397. ac_cv_header_winsock2_h="no"
  22398. fi
  22399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22400. fi
  22401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
  22402. $as_echo "$ac_cv_header_winsock2_h" >&6; }
  22403. case "$ac_cv_header_winsock2_h" in
  22404. yes)
  22405. cat >>confdefs.h <<_ACEOF
  22406. #define HAVE_WINSOCK2_H 1
  22407. _ACEOF
  22408. ;;
  22409. esac
  22410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
  22411. $as_echo_n "checking for ws2tcpip.h... " >&6; }
  22412. if ${ac_cv_header_ws2tcpip_h+:} false; then :
  22413. $as_echo_n "(cached) " >&6
  22414. else
  22415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22416. /* end confdefs.h. */
  22417. #undef inline
  22418. #ifndef WIN32_LEAN_AND_MEAN
  22419. #define WIN32_LEAN_AND_MEAN
  22420. #endif
  22421. #include <windows.h>
  22422. #include <winsock2.h>
  22423. #include <ws2tcpip.h>
  22424. int main (void)
  22425. {
  22426. #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
  22427. HAVE_WS2TCPIP_H shall not be defined.
  22428. #else
  22429. int dummy=2*IP_PKTINFO;
  22430. #endif
  22431. ;
  22432. return 0;
  22433. }
  22434. _ACEOF
  22435. if ac_fn_c_try_compile "$LINENO"; then :
  22436. ac_cv_header_ws2tcpip_h="yes"
  22437. else
  22438. ac_cv_header_ws2tcpip_h="no"
  22439. fi
  22440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22441. fi
  22442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
  22443. $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
  22444. case "$ac_cv_header_ws2tcpip_h" in
  22445. yes)
  22446. cat >>confdefs.h <<_ACEOF
  22447. #define HAVE_WS2TCPIP_H 1
  22448. _ACEOF
  22449. ;;
  22450. esac
  22451. curl_includes_sys_socket="\
  22452. /* includes start */
  22453. #ifdef HAVE_SYS_TYPES_H
  22454. # include <sys/types.h>
  22455. #endif
  22456. #ifdef HAVE_SYS_SOCKET_H
  22457. # include <sys/socket.h>
  22458. #endif
  22459. /* includes end */"
  22460. for ac_header in sys/types.h sys/socket.h
  22461. do :
  22462. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22463. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
  22464. "
  22465. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22466. cat >>confdefs.h <<_ACEOF
  22467. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22468. _ACEOF
  22469. fi
  22470. done
  22471. curl_preprocess_callconv="\
  22472. /* preprocess start */
  22473. #ifdef HAVE_WINDOWS_H
  22474. # define FUNCALLCONV __stdcall
  22475. #else
  22476. # define FUNCALLCONV
  22477. #endif
  22478. /* preprocess end */"
  22479. #
  22480. #
  22481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
  22482. $as_echo_n "checking for curl_socklen_t data type... " >&6; }
  22483. curl_typeof_curl_socklen_t="unknown"
  22484. for arg1 in int SOCKET; do
  22485. for arg2 in 'struct sockaddr' void; do
  22486. for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
  22487. if test "$curl_typeof_curl_socklen_t" = "unknown"; then
  22488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22489. /* end confdefs.h. */
  22490. $curl_includes_ws2tcpip
  22491. $curl_includes_sys_socket
  22492. $curl_preprocess_callconv
  22493. extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
  22494. int main (void)
  22495. {
  22496. $t *lenptr = 0;
  22497. if(0 != getpeername(0, 0, lenptr))
  22498. return 1;
  22499. ;
  22500. return 0;
  22501. }
  22502. _ACEOF
  22503. if ac_fn_c_try_compile "$LINENO"; then :
  22504. curl_typeof_curl_socklen_t="$t"
  22505. fi
  22506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22507. fi
  22508. done
  22509. done
  22510. done
  22511. for t in socklen_t int; do
  22512. if test "$curl_typeof_curl_socklen_t" = "void"; then
  22513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22514. /* end confdefs.h. */
  22515. $curl_includes_sys_socket
  22516. typedef $t curl_socklen_t;
  22517. int main (void)
  22518. {
  22519. curl_socklen_t dummy;
  22520. ;
  22521. return 0;
  22522. }
  22523. _ACEOF
  22524. if ac_fn_c_try_compile "$LINENO"; then :
  22525. curl_typeof_curl_socklen_t="$t"
  22526. fi
  22527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22528. fi
  22529. done
  22530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
  22531. $as_echo "$curl_typeof_curl_socklen_t" >&6; }
  22532. if test "$curl_typeof_curl_socklen_t" = "void" ||
  22533. test "$curl_typeof_curl_socklen_t" = "unknown"; then
  22534. as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
  22535. fi
  22536. #
  22537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
  22538. $as_echo_n "checking size of curl_socklen_t... " >&6; }
  22539. curl_sizeof_curl_socklen_t="unknown"
  22540. curl_pull_headers_socklen_t="unknown"
  22541. if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
  22542. tst_pull_header_checks='none ws2tcpip'
  22543. tst_size_checks='4'
  22544. else
  22545. tst_pull_header_checks='none systypes syssocket'
  22546. tst_size_checks='4 8 2'
  22547. fi
  22548. for tst_size in $tst_size_checks; do
  22549. for tst_pull_headers in $tst_pull_header_checks; do
  22550. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  22551. case $tst_pull_headers in
  22552. ws2tcpip)
  22553. tmp_includes="$curl_includes_ws2tcpip"
  22554. ;;
  22555. systypes)
  22556. tmp_includes="$curl_includes_sys_types"
  22557. ;;
  22558. syssocket)
  22559. tmp_includes="$curl_includes_sys_socket"
  22560. ;;
  22561. *)
  22562. tmp_includes=""
  22563. ;;
  22564. esac
  22565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22566. /* end confdefs.h. */
  22567. $tmp_includes
  22568. typedef $curl_typeof_curl_socklen_t curl_socklen_t;
  22569. typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
  22570. int main (void)
  22571. {
  22572. curl_socklen_t dummy;
  22573. ;
  22574. return 0;
  22575. }
  22576. _ACEOF
  22577. if ac_fn_c_try_compile "$LINENO"; then :
  22578. curl_sizeof_curl_socklen_t="$tst_size"
  22579. curl_pull_headers_socklen_t="$tst_pull_headers"
  22580. fi
  22581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22582. fi
  22583. done
  22584. done
  22585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
  22586. $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
  22587. if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
  22588. as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
  22589. fi
  22590. #
  22591. case $curl_pull_headers_socklen_t in
  22592. ws2tcpip)
  22593. cat >>confdefs.h <<_EOF
  22594. #define CURL_PULL_WS2TCPIP_H 1
  22595. _EOF
  22596. ;;
  22597. systypes)
  22598. cat >>confdefs.h <<_EOF
  22599. #define CURL_PULL_SYS_TYPES_H 1
  22600. _EOF
  22601. ;;
  22602. syssocket)
  22603. cat >>confdefs.h <<_EOF
  22604. #define CURL_PULL_SYS_TYPES_H 1
  22605. _EOF
  22606. cat >>confdefs.h <<_EOF
  22607. #define CURL_PULL_SYS_SOCKET_H 1
  22608. _EOF
  22609. ;;
  22610. esac
  22611. cat >>confdefs.h <<_EOF
  22612. #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
  22613. _EOF
  22614. cat >>confdefs.h <<_EOF
  22615. #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
  22616. _EOF
  22617. curl_includes_poll="\
  22618. /* includes start */
  22619. #ifdef HAVE_SYS_TYPES_H
  22620. # include <sys/types.h>
  22621. #endif
  22622. #ifdef HAVE_POLL_H
  22623. # include <poll.h>
  22624. #endif
  22625. #ifdef HAVE_SYS_POLL_H
  22626. # include <sys/poll.h>
  22627. #endif
  22628. /* includes end */"
  22629. for ac_header in sys/types.h poll.h sys/poll.h
  22630. do :
  22631. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22632. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
  22633. "
  22634. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22635. cat >>confdefs.h <<_ACEOF
  22636. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22637. _ACEOF
  22638. fi
  22639. done
  22640. #
  22641. tst_poll_events_macro_defined="unknown"
  22642. #
  22643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22644. /* end confdefs.h. */
  22645. $curl_includes_poll
  22646. int main (void)
  22647. {
  22648. #if defined(events) || defined(revents)
  22649. return 0;
  22650. #else
  22651. force compilation error
  22652. #endif
  22653. ;
  22654. return 0;
  22655. }
  22656. _ACEOF
  22657. if ac_fn_c_try_compile "$LINENO"; then :
  22658. tst_poll_events_macro_defined="yes"
  22659. else
  22660. tst_poll_events_macro_defined="no"
  22661. fi
  22662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22663. #
  22664. if test "$tst_poll_events_macro_defined" = "yes"; then
  22665. if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
  22666. cat >>confdefs.h <<_EOF
  22667. #define CURL_PULL_SYS_POLL_H 1
  22668. _EOF
  22669. fi
  22670. fi
  22671. #
  22672. ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
  22673. #undef inline
  22674. #ifdef HAVE_WINDOWS_H
  22675. #ifndef WIN32_LEAN_AND_MEAN
  22676. #define WIN32_LEAN_AND_MEAN
  22677. #endif
  22678. #include <windows.h>
  22679. #ifdef HAVE_WINSOCK2_H
  22680. #include <winsock2.h>
  22681. #else
  22682. #ifdef HAVE_WINSOCK_H
  22683. #include <winsock.h>
  22684. #endif
  22685. #endif
  22686. #else
  22687. #ifdef HAVE_SYS_TYPES_H
  22688. #include <sys/types.h>
  22689. #endif
  22690. #ifdef HAVE_SYS_SOCKET_H
  22691. #include <sys/socket.h>
  22692. #endif
  22693. #ifdef HAVE_NETINET_IN_H
  22694. #include <netinet/in.h>
  22695. #endif
  22696. #ifdef HAVE_ARPA_INET_H
  22697. #include <arpa/inet.h>
  22698. #endif
  22699. #endif
  22700. "
  22701. if test "x$ac_cv_type_in_addr_t" = xyes; then :
  22702. else
  22703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
  22704. $as_echo_n "checking for in_addr_t equivalent... " >&6; }
  22705. if ${curl_cv_in_addr_t_equiv+:} false; then :
  22706. $as_echo_n "(cached) " >&6
  22707. else
  22708. curl_cv_in_addr_t_equiv="unknown"
  22709. for t in "unsigned long" int size_t unsigned long; do
  22710. if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
  22711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22712. /* end confdefs.h. */
  22713. #undef inline
  22714. #ifdef HAVE_WINDOWS_H
  22715. #ifndef WIN32_LEAN_AND_MEAN
  22716. #define WIN32_LEAN_AND_MEAN
  22717. #endif
  22718. #include <windows.h>
  22719. #ifdef HAVE_WINSOCK2_H
  22720. #include <winsock2.h>
  22721. #else
  22722. #ifdef HAVE_WINSOCK_H
  22723. #include <winsock.h>
  22724. #endif
  22725. #endif
  22726. #else
  22727. #ifdef HAVE_SYS_TYPES_H
  22728. #include <sys/types.h>
  22729. #endif
  22730. #ifdef HAVE_SYS_SOCKET_H
  22731. #include <sys/socket.h>
  22732. #endif
  22733. #ifdef HAVE_NETINET_IN_H
  22734. #include <netinet/in.h>
  22735. #endif
  22736. #ifdef HAVE_ARPA_INET_H
  22737. #include <arpa/inet.h>
  22738. #endif
  22739. #endif
  22740. int main (void)
  22741. {
  22742. $t data = inet_addr ("1.2.3.4");
  22743. ;
  22744. return 0;
  22745. }
  22746. _ACEOF
  22747. if ac_fn_c_try_link "$LINENO"; then :
  22748. curl_cv_in_addr_t_equiv="$t"
  22749. fi
  22750. rm -f core conftest.err conftest.$ac_objext \
  22751. conftest$ac_exeext conftest.$ac_ext
  22752. fi
  22753. done
  22754. fi
  22755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
  22756. $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
  22757. case "$curl_cv_in_addr_t_equiv" in
  22758. unknown)
  22759. as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
  22760. ;;
  22761. *)
  22762. cat >>confdefs.h <<_ACEOF
  22763. #define in_addr_t $curl_cv_in_addr_t_equiv
  22764. _ACEOF
  22765. ;;
  22766. esac
  22767. fi
  22768. ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
  22769. #undef inline
  22770. #ifdef HAVE_WINDOWS_H
  22771. #ifndef WIN32_LEAN_AND_MEAN
  22772. #define WIN32_LEAN_AND_MEAN
  22773. #endif
  22774. #include <windows.h>
  22775. #ifdef HAVE_WINSOCK2_H
  22776. #include <winsock2.h>
  22777. #endif
  22778. #else
  22779. #ifdef HAVE_SYS_TYPES_H
  22780. #include <sys/types.h>
  22781. #endif
  22782. #ifdef HAVE_SYS_SOCKET_H
  22783. #include <sys/socket.h>
  22784. #endif
  22785. #ifdef HAVE_NETINET_IN_H
  22786. #include <netinet/in.h>
  22787. #endif
  22788. #ifdef HAVE_ARPA_INET_H
  22789. #include <arpa/inet.h>
  22790. #endif
  22791. #endif
  22792. "
  22793. if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
  22794. $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  22795. fi
  22796. for ac_header in signal.h
  22797. do :
  22798. ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  22799. if test "x$ac_cv_header_signal_h" = xyes; then :
  22800. cat >>confdefs.h <<_ACEOF
  22801. #define HAVE_SIGNAL_H 1
  22802. _ACEOF
  22803. fi
  22804. done
  22805. ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
  22806. #ifdef HAVE_SIGNAL_H
  22807. #include <signal.h>
  22808. #endif
  22809. "
  22810. if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
  22811. $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
  22812. fi
  22813. case "$ac_cv_type_sig_atomic_t" in
  22814. yes)
  22815. #
  22816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
  22817. $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
  22818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22819. /* end confdefs.h. */
  22820. #ifdef HAVE_SIGNAL_H
  22821. #include <signal.h>
  22822. #endif
  22823. int main (void)
  22824. {
  22825. static volatile sig_atomic_t dummy = 0;
  22826. ;
  22827. return 0;
  22828. }
  22829. _ACEOF
  22830. if ac_fn_c_try_link "$LINENO"; then :
  22831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22832. $as_echo "no" >&6; }
  22833. ac_cv_sig_atomic_t_volatile="no"
  22834. else
  22835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22836. $as_echo "yes" >&6; }
  22837. ac_cv_sig_atomic_t_volatile="yes"
  22838. fi
  22839. rm -f core conftest.err conftest.$ac_objext \
  22840. conftest$ac_exeext conftest.$ac_ext
  22841. #
  22842. if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
  22843. $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
  22844. fi
  22845. ;;
  22846. esac
  22847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  22848. $as_echo_n "checking return type of signal handlers... " >&6; }
  22849. if ${ac_cv_type_signal+:} false; then :
  22850. $as_echo_n "(cached) " >&6
  22851. else
  22852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22853. /* end confdefs.h. */
  22854. #include <sys/types.h>
  22855. #include <signal.h>
  22856. int main (void)
  22857. {
  22858. return *(signal (0, 0)) (0) == 1;
  22859. ;
  22860. return 0;
  22861. }
  22862. _ACEOF
  22863. if ac_fn_c_try_compile "$LINENO"; then :
  22864. ac_cv_type_signal=int
  22865. else
  22866. ac_cv_type_signal=void
  22867. fi
  22868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22869. fi
  22870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  22871. $as_echo "$ac_cv_type_signal" >&6; }
  22872. cat >>confdefs.h <<_ACEOF
  22873. #define RETSIGTYPE $ac_cv_type_signal
  22874. _ACEOF
  22875. for ac_header in sys/select.h sys/socket.h
  22876. do :
  22877. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22878. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  22879. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  22880. cat >>confdefs.h <<_ACEOF
  22881. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22882. _ACEOF
  22883. fi
  22884. done
  22885. #
  22886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
  22887. $as_echo_n "checking for select... " >&6; }
  22888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22889. /* end confdefs.h. */
  22890. #undef inline
  22891. #ifdef HAVE_WINDOWS_H
  22892. #ifndef WIN32_LEAN_AND_MEAN
  22893. #define WIN32_LEAN_AND_MEAN
  22894. #endif
  22895. #include <windows.h>
  22896. #ifdef HAVE_WINSOCK2_H
  22897. #include <winsock2.h>
  22898. #else
  22899. #ifdef HAVE_WINSOCK_H
  22900. #include <winsock.h>
  22901. #endif
  22902. #endif
  22903. #endif
  22904. #ifdef HAVE_SYS_TYPES_H
  22905. #include <sys/types.h>
  22906. #endif
  22907. #ifdef HAVE_SYS_TIME_H
  22908. #include <sys/time.h>
  22909. #ifdef TIME_WITH_SYS_TIME
  22910. #include <time.h>
  22911. #endif
  22912. #else
  22913. #ifdef HAVE_TIME_H
  22914. #include <time.h>
  22915. #endif
  22916. #endif
  22917. #ifndef HAVE_WINDOWS_H
  22918. #ifdef HAVE_SYS_SELECT_H
  22919. #include <sys/select.h>
  22920. #endif
  22921. #ifdef HAVE_SYS_SOCKET_H
  22922. #include <sys/socket.h>
  22923. #endif
  22924. #endif
  22925. int main (void)
  22926. {
  22927. select(0, 0, 0, 0, 0);
  22928. ;
  22929. return 0;
  22930. }
  22931. _ACEOF
  22932. if ac_fn_c_try_link "$LINENO"; then :
  22933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22934. $as_echo "yes" >&6; }
  22935. curl_cv_select="yes"
  22936. else
  22937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22938. $as_echo "no" >&6; }
  22939. curl_cv_select="no"
  22940. fi
  22941. rm -f core conftest.err conftest.$ac_objext \
  22942. conftest$ac_exeext conftest.$ac_ext
  22943. #
  22944. if test "$curl_cv_select" = "yes"; then
  22945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
  22946. $as_echo_n "checking types of args and return type for select... " >&6; }
  22947. if ${curl_cv_func_select_args+:} false; then :
  22948. $as_echo_n "(cached) " >&6
  22949. else
  22950. curl_cv_func_select_args="unknown"
  22951. for sel_retv in 'int' 'ssize_t'; do
  22952. for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
  22953. for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
  22954. for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
  22955. if test "$curl_cv_func_select_args" = "unknown"; then
  22956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22957. /* end confdefs.h. */
  22958. #undef inline
  22959. #ifdef HAVE_WINDOWS_H
  22960. #ifndef WIN32_LEAN_AND_MEAN
  22961. #define WIN32_LEAN_AND_MEAN
  22962. #endif
  22963. #include <windows.h>
  22964. #ifdef HAVE_WINSOCK2_H
  22965. #include <winsock2.h>
  22966. #else
  22967. #ifdef HAVE_WINSOCK_H
  22968. #include <winsock.h>
  22969. #endif
  22970. #endif
  22971. #define SELECTCALLCONV PASCAL
  22972. #endif
  22973. #ifdef HAVE_SYS_TYPES_H
  22974. #include <sys/types.h>
  22975. #endif
  22976. #ifdef HAVE_SYS_TIME_H
  22977. #include <sys/time.h>
  22978. #ifdef TIME_WITH_SYS_TIME
  22979. #include <time.h>
  22980. #endif
  22981. #else
  22982. #ifdef HAVE_TIME_H
  22983. #include <time.h>
  22984. #endif
  22985. #endif
  22986. #ifndef HAVE_WINDOWS_H
  22987. #ifdef HAVE_SYS_SELECT_H
  22988. #include <sys/select.h>
  22989. #endif
  22990. #ifdef HAVE_SYS_SOCKET_H
  22991. #include <sys/socket.h>
  22992. #endif
  22993. #define SELECTCALLCONV
  22994. #endif
  22995. #ifndef HAVE_STRUCT_TIMEVAL
  22996. struct timeval {
  22997. long tv_sec;
  22998. long tv_usec;
  22999. };
  23000. #endif
  23001. extern $sel_retv SELECTCALLCONV select($sel_arg1,
  23002. $sel_arg234,
  23003. $sel_arg234,
  23004. $sel_arg234,
  23005. $sel_arg5);
  23006. int main (void)
  23007. {
  23008. $sel_arg1 nfds=0;
  23009. $sel_arg234 rfds=0;
  23010. $sel_arg234 wfds=0;
  23011. $sel_arg234 efds=0;
  23012. $sel_retv res = select(nfds, rfds, wfds, efds, 0);
  23013. ;
  23014. return 0;
  23015. }
  23016. _ACEOF
  23017. if ac_fn_c_try_compile "$LINENO"; then :
  23018. curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
  23019. fi
  23020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23021. fi
  23022. done
  23023. done
  23024. done
  23025. done
  23026. fi
  23027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
  23028. $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
  23029. if test "$curl_cv_func_select_args" = "unknown"; then
  23030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
  23031. $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
  23032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
  23033. $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
  23034. else
  23035. select_prev_IFS=$IFS; IFS=','
  23036. set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
  23037. IFS=$select_prev_IFS
  23038. shift
  23039. #
  23040. sel_qual_type_arg5=$3
  23041. #
  23042. cat >>confdefs.h <<_ACEOF
  23043. #define SELECT_TYPE_ARG1 $1
  23044. _ACEOF
  23045. cat >>confdefs.h <<_ACEOF
  23046. #define SELECT_TYPE_ARG234 $2
  23047. _ACEOF
  23048. cat >>confdefs.h <<_ACEOF
  23049. #define SELECT_TYPE_RETV $4
  23050. _ACEOF
  23051. #
  23052. prev_sh_opts=$-
  23053. #
  23054. case $prev_sh_opts in
  23055. *f*)
  23056. ;;
  23057. *)
  23058. set -f
  23059. ;;
  23060. esac
  23061. #
  23062. case "$sel_qual_type_arg5" in
  23063. const*)
  23064. sel_qual_arg5=const
  23065. sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
  23066. ;;
  23067. *)
  23068. sel_qual_arg5=
  23069. sel_type_arg5=$sel_qual_type_arg5
  23070. ;;
  23071. esac
  23072. #
  23073. cat >>confdefs.h <<_ACEOF
  23074. #define SELECT_QUAL_ARG5 $sel_qual_arg5
  23075. _ACEOF
  23076. cat >>confdefs.h <<_ACEOF
  23077. #define SELECT_TYPE_ARG5 $sel_type_arg5
  23078. _ACEOF
  23079. #
  23080. case $prev_sh_opts in
  23081. *f*)
  23082. ;;
  23083. *)
  23084. set +f
  23085. ;;
  23086. esac
  23087. #
  23088. cat >>confdefs.h <<_ACEOF
  23089. #define HAVE_SELECT 1
  23090. _ACEOF
  23091. ac_cv_func_select="yes"
  23092. fi
  23093. fi
  23094. for ac_header in sys/types.h sys/socket.h
  23095. do :
  23096. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23097. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23098. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23099. cat >>confdefs.h <<_ACEOF
  23100. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23101. _ACEOF
  23102. fi
  23103. done
  23104. #
  23105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
  23106. $as_echo_n "checking for recv... " >&6; }
  23107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23108. /* end confdefs.h. */
  23109. #undef inline
  23110. #ifdef HAVE_WINDOWS_H
  23111. #ifndef WIN32_LEAN_AND_MEAN
  23112. #define WIN32_LEAN_AND_MEAN
  23113. #endif
  23114. #include <windows.h>
  23115. #ifdef HAVE_WINSOCK2_H
  23116. #include <winsock2.h>
  23117. #else
  23118. #ifdef HAVE_WINSOCK_H
  23119. #include <winsock.h>
  23120. #endif
  23121. #endif
  23122. #else
  23123. #ifdef HAVE_SYS_TYPES_H
  23124. #include <sys/types.h>
  23125. #endif
  23126. #ifdef HAVE_SYS_SOCKET_H
  23127. #include <sys/socket.h>
  23128. #endif
  23129. #endif
  23130. int main (void)
  23131. {
  23132. recv(0, 0, 0, 0);
  23133. ;
  23134. return 0;
  23135. }
  23136. _ACEOF
  23137. if ac_fn_c_try_link "$LINENO"; then :
  23138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23139. $as_echo "yes" >&6; }
  23140. curl_cv_recv="yes"
  23141. else
  23142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23143. $as_echo "no" >&6; }
  23144. curl_cv_recv="no"
  23145. fi
  23146. rm -f core conftest.err conftest.$ac_objext \
  23147. conftest$ac_exeext conftest.$ac_ext
  23148. #
  23149. if test "$curl_cv_recv" = "yes"; then
  23150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
  23151. $as_echo_n "checking types of args and return type for recv... " >&6; }
  23152. if ${curl_cv_func_recv_args+:} false; then :
  23153. $as_echo_n "(cached) " >&6
  23154. else
  23155. curl_cv_func_recv_args="unknown"
  23156. for recv_retv in 'int' 'ssize_t'; do
  23157. for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  23158. for recv_arg2 in 'char *' 'void *'; do
  23159. for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  23160. for recv_arg4 in 'int' 'unsigned int'; do
  23161. if test "$curl_cv_func_recv_args" = "unknown"; then
  23162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23163. /* end confdefs.h. */
  23164. #undef inline
  23165. #ifdef HAVE_WINDOWS_H
  23166. #ifndef WIN32_LEAN_AND_MEAN
  23167. #define WIN32_LEAN_AND_MEAN
  23168. #endif
  23169. #include <windows.h>
  23170. #ifdef HAVE_WINSOCK2_H
  23171. #include <winsock2.h>
  23172. #else
  23173. #ifdef HAVE_WINSOCK_H
  23174. #include <winsock.h>
  23175. #endif
  23176. #endif
  23177. #define RECVCALLCONV PASCAL
  23178. #else
  23179. #ifdef HAVE_SYS_TYPES_H
  23180. #include <sys/types.h>
  23181. #endif
  23182. #ifdef HAVE_SYS_SOCKET_H
  23183. #include <sys/socket.h>
  23184. #endif
  23185. #define RECVCALLCONV
  23186. #endif
  23187. extern $recv_retv RECVCALLCONV
  23188. recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
  23189. int main (void)
  23190. {
  23191. $recv_arg1 s=0;
  23192. $recv_arg2 buf=0;
  23193. $recv_arg3 len=0;
  23194. $recv_arg4 flags=0;
  23195. $recv_retv res = recv(s, buf, len, flags);
  23196. ;
  23197. return 0;
  23198. }
  23199. _ACEOF
  23200. if ac_fn_c_try_compile "$LINENO"; then :
  23201. curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
  23202. fi
  23203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23204. fi
  23205. done
  23206. done
  23207. done
  23208. done
  23209. done
  23210. fi
  23211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
  23212. $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
  23213. if test "$curl_cv_func_recv_args" = "unknown"; then
  23214. as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
  23215. else
  23216. recv_prev_IFS=$IFS; IFS=','
  23217. set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
  23218. IFS=$recv_prev_IFS
  23219. shift
  23220. #
  23221. cat >>confdefs.h <<_ACEOF
  23222. #define RECV_TYPE_ARG1 $1
  23223. _ACEOF
  23224. cat >>confdefs.h <<_ACEOF
  23225. #define RECV_TYPE_ARG2 $2
  23226. _ACEOF
  23227. cat >>confdefs.h <<_ACEOF
  23228. #define RECV_TYPE_ARG3 $3
  23229. _ACEOF
  23230. cat >>confdefs.h <<_ACEOF
  23231. #define RECV_TYPE_ARG4 $4
  23232. _ACEOF
  23233. cat >>confdefs.h <<_ACEOF
  23234. #define RECV_TYPE_RETV $5
  23235. _ACEOF
  23236. #
  23237. cat >>confdefs.h <<_ACEOF
  23238. #define HAVE_RECV 1
  23239. _ACEOF
  23240. ac_cv_func_recv="yes"
  23241. fi
  23242. else
  23243. as_fn_error $? "Unable to link function recv" "$LINENO" 5
  23244. fi
  23245. for ac_header in sys/types.h sys/socket.h
  23246. do :
  23247. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23248. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23249. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23250. cat >>confdefs.h <<_ACEOF
  23251. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23252. _ACEOF
  23253. fi
  23254. done
  23255. #
  23256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
  23257. $as_echo_n "checking for send... " >&6; }
  23258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23259. /* end confdefs.h. */
  23260. #undef inline
  23261. #ifdef HAVE_WINDOWS_H
  23262. #ifndef WIN32_LEAN_AND_MEAN
  23263. #define WIN32_LEAN_AND_MEAN
  23264. #endif
  23265. #include <windows.h>
  23266. #ifdef HAVE_WINSOCK2_H
  23267. #include <winsock2.h>
  23268. #else
  23269. #ifdef HAVE_WINSOCK_H
  23270. #include <winsock.h>
  23271. #endif
  23272. #endif
  23273. #else
  23274. #ifdef HAVE_SYS_TYPES_H
  23275. #include <sys/types.h>
  23276. #endif
  23277. #ifdef HAVE_SYS_SOCKET_H
  23278. #include <sys/socket.h>
  23279. #endif
  23280. #endif
  23281. int main (void)
  23282. {
  23283. send(0, 0, 0, 0);
  23284. ;
  23285. return 0;
  23286. }
  23287. _ACEOF
  23288. if ac_fn_c_try_link "$LINENO"; then :
  23289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23290. $as_echo "yes" >&6; }
  23291. curl_cv_send="yes"
  23292. else
  23293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23294. $as_echo "no" >&6; }
  23295. curl_cv_send="no"
  23296. fi
  23297. rm -f core conftest.err conftest.$ac_objext \
  23298. conftest$ac_exeext conftest.$ac_ext
  23299. #
  23300. if test "$curl_cv_send" = "yes"; then
  23301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
  23302. $as_echo_n "checking types of args and return type for send... " >&6; }
  23303. if ${curl_cv_func_send_args+:} false; then :
  23304. $as_echo_n "(cached) " >&6
  23305. else
  23306. curl_cv_func_send_args="unknown"
  23307. for send_retv in 'int' 'ssize_t'; do
  23308. for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
  23309. for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
  23310. for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
  23311. for send_arg4 in 'int' 'unsigned int'; do
  23312. if test "$curl_cv_func_send_args" = "unknown"; then
  23313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23314. /* end confdefs.h. */
  23315. #undef inline
  23316. #ifdef HAVE_WINDOWS_H
  23317. #ifndef WIN32_LEAN_AND_MEAN
  23318. #define WIN32_LEAN_AND_MEAN
  23319. #endif
  23320. #include <windows.h>
  23321. #ifdef HAVE_WINSOCK2_H
  23322. #include <winsock2.h>
  23323. #else
  23324. #ifdef HAVE_WINSOCK_H
  23325. #include <winsock.h>
  23326. #endif
  23327. #endif
  23328. #define SENDCALLCONV PASCAL
  23329. #else
  23330. #ifdef HAVE_SYS_TYPES_H
  23331. #include <sys/types.h>
  23332. #endif
  23333. #ifdef HAVE_SYS_SOCKET_H
  23334. #include <sys/socket.h>
  23335. #endif
  23336. #define SENDCALLCONV
  23337. #endif
  23338. extern $send_retv SENDCALLCONV
  23339. send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
  23340. int main (void)
  23341. {
  23342. $send_arg1 s=0;
  23343. $send_arg3 len=0;
  23344. $send_arg4 flags=0;
  23345. $send_retv res = send(s, 0, len, flags);
  23346. ;
  23347. return 0;
  23348. }
  23349. _ACEOF
  23350. if ac_fn_c_try_compile "$LINENO"; then :
  23351. curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
  23352. fi
  23353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23354. fi
  23355. done
  23356. done
  23357. done
  23358. done
  23359. done
  23360. fi
  23361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
  23362. $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
  23363. if test "$curl_cv_func_send_args" = "unknown"; then
  23364. as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
  23365. else
  23366. send_prev_IFS=$IFS; IFS=','
  23367. set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
  23368. IFS=$send_prev_IFS
  23369. shift
  23370. #
  23371. send_qual_type_arg2=$2
  23372. #
  23373. cat >>confdefs.h <<_ACEOF
  23374. #define SEND_TYPE_ARG1 $1
  23375. _ACEOF
  23376. cat >>confdefs.h <<_ACEOF
  23377. #define SEND_TYPE_ARG3 $3
  23378. _ACEOF
  23379. cat >>confdefs.h <<_ACEOF
  23380. #define SEND_TYPE_ARG4 $4
  23381. _ACEOF
  23382. cat >>confdefs.h <<_ACEOF
  23383. #define SEND_TYPE_RETV $5
  23384. _ACEOF
  23385. #
  23386. prev_sh_opts=$-
  23387. #
  23388. case $prev_sh_opts in
  23389. *f*)
  23390. ;;
  23391. *)
  23392. set -f
  23393. ;;
  23394. esac
  23395. #
  23396. case "$send_qual_type_arg2" in
  23397. const*)
  23398. send_qual_arg2=const
  23399. send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
  23400. ;;
  23401. *)
  23402. send_qual_arg2=
  23403. send_type_arg2=$send_qual_type_arg2
  23404. ;;
  23405. esac
  23406. #
  23407. cat >>confdefs.h <<_ACEOF
  23408. #define SEND_QUAL_ARG2 $send_qual_arg2
  23409. _ACEOF
  23410. cat >>confdefs.h <<_ACEOF
  23411. #define SEND_TYPE_ARG2 $send_type_arg2
  23412. _ACEOF
  23413. #
  23414. case $prev_sh_opts in
  23415. *f*)
  23416. ;;
  23417. *)
  23418. set +f
  23419. ;;
  23420. esac
  23421. #
  23422. cat >>confdefs.h <<_ACEOF
  23423. #define HAVE_SEND 1
  23424. _ACEOF
  23425. ac_cv_func_send="yes"
  23426. fi
  23427. else
  23428. as_fn_error $? "Unable to link function send" "$LINENO" 5
  23429. fi
  23430. for ac_header in sys/types.h sys/socket.h
  23431. do :
  23432. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23433. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  23434. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23435. cat >>confdefs.h <<_ACEOF
  23436. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23437. _ACEOF
  23438. fi
  23439. done
  23440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
  23441. $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
  23442. if ${ac_cv_msg_nosignal+:} false; then :
  23443. $as_echo_n "(cached) " >&6
  23444. else
  23445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23446. /* end confdefs.h. */
  23447. #undef inline
  23448. #ifdef HAVE_WINDOWS_H
  23449. #ifndef WIN32_LEAN_AND_MEAN
  23450. #define WIN32_LEAN_AND_MEAN
  23451. #endif
  23452. #include <windows.h>
  23453. #ifdef HAVE_WINSOCK2_H
  23454. #include <winsock2.h>
  23455. #else
  23456. #ifdef HAVE_WINSOCK_H
  23457. #include <winsock.h>
  23458. #endif
  23459. #endif
  23460. #else
  23461. #ifdef HAVE_SYS_TYPES_H
  23462. #include <sys/types.h>
  23463. #endif
  23464. #ifdef HAVE_SYS_SOCKET_H
  23465. #include <sys/socket.h>
  23466. #endif
  23467. #endif
  23468. int main (void)
  23469. {
  23470. int flag=MSG_NOSIGNAL;
  23471. ;
  23472. return 0;
  23473. }
  23474. _ACEOF
  23475. if ac_fn_c_try_compile "$LINENO"; then :
  23476. ac_cv_msg_nosignal="yes"
  23477. else
  23478. ac_cv_msg_nosignal="no"
  23479. fi
  23480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23481. fi
  23482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
  23483. $as_echo "$ac_cv_msg_nosignal" >&6; }
  23484. case "$ac_cv_msg_nosignal" in
  23485. yes)
  23486. cat >>confdefs.h <<_ACEOF
  23487. #define HAVE_MSG_NOSIGNAL 1
  23488. _ACEOF
  23489. ;;
  23490. esac
  23491. curl_includes_unistd="\
  23492. /* includes start */
  23493. #ifdef HAVE_SYS_TYPES_H
  23494. # include <sys/types.h>
  23495. #endif
  23496. #ifdef HAVE_UNISTD_H
  23497. # include <unistd.h>
  23498. #endif
  23499. /* includes end */"
  23500. for ac_header in sys/types.h unistd.h
  23501. do :
  23502. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23503. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
  23504. "
  23505. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23506. cat >>confdefs.h <<_ACEOF
  23507. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23508. _ACEOF
  23509. fi
  23510. done
  23511. #
  23512. tst_links_alarm="unknown"
  23513. tst_proto_alarm="unknown"
  23514. tst_compi_alarm="unknown"
  23515. tst_allow_alarm="unknown"
  23516. #
  23517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
  23518. $as_echo_n "checking if alarm can be linked... " >&6; }
  23519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23520. /* end confdefs.h. */
  23521. #define alarm innocuous_alarm
  23522. #ifdef __STDC__
  23523. # include <limits.h>
  23524. #else
  23525. # include <assert.h>
  23526. #endif
  23527. #undef alarm
  23528. #ifdef __cplusplus
  23529. extern "C"
  23530. #endif
  23531. char alarm ();
  23532. #if defined __stub_alarm || defined __stub___alarm
  23533. choke me
  23534. #endif
  23535. int main (void)
  23536. {
  23537. return alarm ();
  23538. ;
  23539. return 0;
  23540. }
  23541. _ACEOF
  23542. if ac_fn_c_try_link "$LINENO"; then :
  23543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23544. $as_echo "yes" >&6; }
  23545. tst_links_alarm="yes"
  23546. else
  23547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23548. $as_echo "no" >&6; }
  23549. tst_links_alarm="no"
  23550. fi
  23551. rm -f core conftest.err conftest.$ac_objext \
  23552. conftest$ac_exeext conftest.$ac_ext
  23553. #
  23554. if test "$tst_links_alarm" = "yes"; then
  23555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
  23556. $as_echo_n "checking if alarm is prototyped... " >&6; }
  23557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23558. /* end confdefs.h. */
  23559. $curl_includes_unistd
  23560. _ACEOF
  23561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23562. $EGREP "alarm" >/dev/null 2>&1; then :
  23563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23564. $as_echo "yes" >&6; }
  23565. tst_proto_alarm="yes"
  23566. else
  23567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23568. $as_echo "no" >&6; }
  23569. tst_proto_alarm="no"
  23570. fi
  23571. rm -f conftest*
  23572. fi
  23573. #
  23574. if test "$tst_proto_alarm" = "yes"; then
  23575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
  23576. $as_echo_n "checking if alarm is compilable... " >&6; }
  23577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23578. /* end confdefs.h. */
  23579. $curl_includes_unistd
  23580. int main (void)
  23581. {
  23582. if(0 != alarm(0))
  23583. return 1;
  23584. ;
  23585. return 0;
  23586. }
  23587. _ACEOF
  23588. if ac_fn_c_try_compile "$LINENO"; then :
  23589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23590. $as_echo "yes" >&6; }
  23591. tst_compi_alarm="yes"
  23592. else
  23593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23594. $as_echo "no" >&6; }
  23595. tst_compi_alarm="no"
  23596. fi
  23597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23598. fi
  23599. #
  23600. if test "$tst_compi_alarm" = "yes"; then
  23601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
  23602. $as_echo_n "checking if alarm usage allowed... " >&6; }
  23603. if test "x$curl_disallow_alarm" != "xyes"; then
  23604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23605. $as_echo "yes" >&6; }
  23606. tst_allow_alarm="yes"
  23607. else
  23608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23609. $as_echo "no" >&6; }
  23610. tst_allow_alarm="no"
  23611. fi
  23612. fi
  23613. #
  23614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
  23615. $as_echo_n "checking if alarm might be used... " >&6; }
  23616. if test "$tst_links_alarm" = "yes" &&
  23617. test "$tst_proto_alarm" = "yes" &&
  23618. test "$tst_compi_alarm" = "yes" &&
  23619. test "$tst_allow_alarm" = "yes"; then
  23620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23621. $as_echo "yes" >&6; }
  23622. cat >>confdefs.h <<_ACEOF
  23623. #define HAVE_ALARM 1
  23624. _ACEOF
  23625. ac_cv_func_alarm="yes"
  23626. else
  23627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23628. $as_echo "no" >&6; }
  23629. ac_cv_func_alarm="no"
  23630. fi
  23631. curl_includes_string="\
  23632. /* includes start */
  23633. #ifdef HAVE_SYS_TYPES_H
  23634. # include <sys/types.h>
  23635. #endif
  23636. #ifdef HAVE_STRING_H
  23637. # include <string.h>
  23638. #endif
  23639. #ifdef HAVE_STRINGS_H
  23640. # include <strings.h>
  23641. #endif
  23642. /* includes end */"
  23643. for ac_header in sys/types.h string.h strings.h
  23644. do :
  23645. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23646. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
  23647. "
  23648. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23649. cat >>confdefs.h <<_ACEOF
  23650. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23651. _ACEOF
  23652. fi
  23653. done
  23654. curl_includes_libgen="\
  23655. /* includes start */
  23656. #ifdef HAVE_SYS_TYPES_H
  23657. # include <sys/types.h>
  23658. #endif
  23659. #ifdef HAVE_LIBGEN_H
  23660. # include <libgen.h>
  23661. #endif
  23662. /* includes end */"
  23663. for ac_header in sys/types.h libgen.h
  23664. do :
  23665. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23666. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
  23667. "
  23668. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23669. cat >>confdefs.h <<_ACEOF
  23670. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23671. _ACEOF
  23672. fi
  23673. done
  23674. #
  23675. tst_links_basename="unknown"
  23676. tst_proto_basename="unknown"
  23677. tst_compi_basename="unknown"
  23678. tst_allow_basename="unknown"
  23679. #
  23680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
  23681. $as_echo_n "checking if basename can be linked... " >&6; }
  23682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23683. /* end confdefs.h. */
  23684. #define basename innocuous_basename
  23685. #ifdef __STDC__
  23686. # include <limits.h>
  23687. #else
  23688. # include <assert.h>
  23689. #endif
  23690. #undef basename
  23691. #ifdef __cplusplus
  23692. extern "C"
  23693. #endif
  23694. char basename ();
  23695. #if defined __stub_basename || defined __stub___basename
  23696. choke me
  23697. #endif
  23698. int main (void)
  23699. {
  23700. return basename ();
  23701. ;
  23702. return 0;
  23703. }
  23704. _ACEOF
  23705. if ac_fn_c_try_link "$LINENO"; then :
  23706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23707. $as_echo "yes" >&6; }
  23708. tst_links_basename="yes"
  23709. else
  23710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23711. $as_echo "no" >&6; }
  23712. tst_links_basename="no"
  23713. fi
  23714. rm -f core conftest.err conftest.$ac_objext \
  23715. conftest$ac_exeext conftest.$ac_ext
  23716. #
  23717. if test "$tst_links_basename" = "yes"; then
  23718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
  23719. $as_echo_n "checking if basename is prototyped... " >&6; }
  23720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23721. /* end confdefs.h. */
  23722. $curl_includes_string
  23723. $curl_includes_libgen
  23724. $curl_includes_unistd
  23725. _ACEOF
  23726. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23727. $EGREP "basename" >/dev/null 2>&1; then :
  23728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23729. $as_echo "yes" >&6; }
  23730. tst_proto_basename="yes"
  23731. else
  23732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23733. $as_echo "no" >&6; }
  23734. tst_proto_basename="no"
  23735. fi
  23736. rm -f conftest*
  23737. fi
  23738. #
  23739. if test "$tst_proto_basename" = "yes"; then
  23740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
  23741. $as_echo_n "checking if basename is compilable... " >&6; }
  23742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23743. /* end confdefs.h. */
  23744. $curl_includes_string
  23745. $curl_includes_libgen
  23746. $curl_includes_unistd
  23747. int main (void)
  23748. {
  23749. if(0 != basename(0))
  23750. return 1;
  23751. ;
  23752. return 0;
  23753. }
  23754. _ACEOF
  23755. if ac_fn_c_try_compile "$LINENO"; then :
  23756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23757. $as_echo "yes" >&6; }
  23758. tst_compi_basename="yes"
  23759. else
  23760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23761. $as_echo "no" >&6; }
  23762. tst_compi_basename="no"
  23763. fi
  23764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23765. fi
  23766. #
  23767. if test "$tst_compi_basename" = "yes"; then
  23768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
  23769. $as_echo_n "checking if basename usage allowed... " >&6; }
  23770. if test "x$curl_disallow_basename" != "xyes"; then
  23771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23772. $as_echo "yes" >&6; }
  23773. tst_allow_basename="yes"
  23774. else
  23775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23776. $as_echo "no" >&6; }
  23777. tst_allow_basename="no"
  23778. fi
  23779. fi
  23780. #
  23781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
  23782. $as_echo_n "checking if basename might be used... " >&6; }
  23783. if test "$tst_links_basename" = "yes" &&
  23784. test "$tst_proto_basename" = "yes" &&
  23785. test "$tst_compi_basename" = "yes" &&
  23786. test "$tst_allow_basename" = "yes"; then
  23787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23788. $as_echo "yes" >&6; }
  23789. cat >>confdefs.h <<_ACEOF
  23790. #define HAVE_BASENAME 1
  23791. _ACEOF
  23792. ac_cv_func_basename="yes"
  23793. else
  23794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23795. $as_echo "no" >&6; }
  23796. ac_cv_func_basename="no"
  23797. fi
  23798. curl_includes_socket="\
  23799. /* includes start */
  23800. #ifdef HAVE_SYS_TYPES_H
  23801. # include <sys/types.h>
  23802. #endif
  23803. #ifdef HAVE_SOCKET_H
  23804. # include <socket.h>
  23805. #endif
  23806. /* includes end */"
  23807. for ac_header in sys/types.h socket.h
  23808. do :
  23809. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23810. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
  23811. "
  23812. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23813. cat >>confdefs.h <<_ACEOF
  23814. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23815. _ACEOF
  23816. fi
  23817. done
  23818. #
  23819. tst_links_closesocket="unknown"
  23820. tst_proto_closesocket="unknown"
  23821. tst_compi_closesocket="unknown"
  23822. tst_allow_closesocket="unknown"
  23823. #
  23824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
  23825. $as_echo_n "checking if closesocket can be linked... " >&6; }
  23826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23827. /* end confdefs.h. */
  23828. $curl_includes_winsock2
  23829. $curl_includes_socket
  23830. int main (void)
  23831. {
  23832. if(0 != closesocket(0))
  23833. return 1;
  23834. ;
  23835. return 0;
  23836. }
  23837. _ACEOF
  23838. if ac_fn_c_try_link "$LINENO"; then :
  23839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23840. $as_echo "yes" >&6; }
  23841. tst_links_closesocket="yes"
  23842. else
  23843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23844. $as_echo "no" >&6; }
  23845. tst_links_closesocket="no"
  23846. fi
  23847. rm -f core conftest.err conftest.$ac_objext \
  23848. conftest$ac_exeext conftest.$ac_ext
  23849. #
  23850. if test "$tst_links_closesocket" = "yes"; then
  23851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
  23852. $as_echo_n "checking if closesocket is prototyped... " >&6; }
  23853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23854. /* end confdefs.h. */
  23855. $curl_includes_winsock2
  23856. $curl_includes_socket
  23857. _ACEOF
  23858. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23859. $EGREP "closesocket" >/dev/null 2>&1; then :
  23860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23861. $as_echo "yes" >&6; }
  23862. tst_proto_closesocket="yes"
  23863. else
  23864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23865. $as_echo "no" >&6; }
  23866. tst_proto_closesocket="no"
  23867. fi
  23868. rm -f conftest*
  23869. fi
  23870. #
  23871. if test "$tst_proto_closesocket" = "yes"; then
  23872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
  23873. $as_echo_n "checking if closesocket is compilable... " >&6; }
  23874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23875. /* end confdefs.h. */
  23876. $curl_includes_winsock2
  23877. $curl_includes_socket
  23878. int main (void)
  23879. {
  23880. if(0 != closesocket(0))
  23881. return 1;
  23882. ;
  23883. return 0;
  23884. }
  23885. _ACEOF
  23886. if ac_fn_c_try_compile "$LINENO"; then :
  23887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23888. $as_echo "yes" >&6; }
  23889. tst_compi_closesocket="yes"
  23890. else
  23891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23892. $as_echo "no" >&6; }
  23893. tst_compi_closesocket="no"
  23894. fi
  23895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23896. fi
  23897. #
  23898. if test "$tst_compi_closesocket" = "yes"; then
  23899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
  23900. $as_echo_n "checking if closesocket usage allowed... " >&6; }
  23901. if test "x$curl_disallow_closesocket" != "xyes"; then
  23902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23903. $as_echo "yes" >&6; }
  23904. tst_allow_closesocket="yes"
  23905. else
  23906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23907. $as_echo "no" >&6; }
  23908. tst_allow_closesocket="no"
  23909. fi
  23910. fi
  23911. #
  23912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
  23913. $as_echo_n "checking if closesocket might be used... " >&6; }
  23914. if test "$tst_links_closesocket" = "yes" &&
  23915. test "$tst_proto_closesocket" = "yes" &&
  23916. test "$tst_compi_closesocket" = "yes" &&
  23917. test "$tst_allow_closesocket" = "yes"; then
  23918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23919. $as_echo "yes" >&6; }
  23920. cat >>confdefs.h <<_ACEOF
  23921. #define HAVE_CLOSESOCKET 1
  23922. _ACEOF
  23923. ac_cv_func_closesocket="yes"
  23924. else
  23925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23926. $as_echo "no" >&6; }
  23927. ac_cv_func_closesocket="no"
  23928. fi
  23929. #
  23930. tst_links_closesocket_camel="unknown"
  23931. tst_proto_closesocket_camel="unknown"
  23932. tst_compi_closesocket_camel="unknown"
  23933. tst_allow_closesocket_camel="unknown"
  23934. #
  23935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
  23936. $as_echo_n "checking if CloseSocket can be linked... " >&6; }
  23937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23938. /* end confdefs.h. */
  23939. $curl_includes_sys_socket
  23940. int main (void)
  23941. {
  23942. if(0 != CloseSocket(0))
  23943. return 1;
  23944. ;
  23945. return 0;
  23946. }
  23947. _ACEOF
  23948. if ac_fn_c_try_link "$LINENO"; then :
  23949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23950. $as_echo "yes" >&6; }
  23951. tst_links_closesocket_camel="yes"
  23952. else
  23953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23954. $as_echo "no" >&6; }
  23955. tst_links_closesocket_camel="no"
  23956. fi
  23957. rm -f core conftest.err conftest.$ac_objext \
  23958. conftest$ac_exeext conftest.$ac_ext
  23959. #
  23960. if test "$tst_links_closesocket_camel" = "yes"; then
  23961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
  23962. $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
  23963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23964. /* end confdefs.h. */
  23965. $curl_includes_sys_socket
  23966. _ACEOF
  23967. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23968. $EGREP "CloseSocket" >/dev/null 2>&1; then :
  23969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23970. $as_echo "yes" >&6; }
  23971. tst_proto_closesocket_camel="yes"
  23972. else
  23973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23974. $as_echo "no" >&6; }
  23975. tst_proto_closesocket_camel="no"
  23976. fi
  23977. rm -f conftest*
  23978. fi
  23979. #
  23980. if test "$tst_proto_closesocket_camel" = "yes"; then
  23981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
  23982. $as_echo_n "checking if CloseSocket is compilable... " >&6; }
  23983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23984. /* end confdefs.h. */
  23985. $curl_includes_sys_socket
  23986. int main (void)
  23987. {
  23988. if(0 != CloseSocket(0))
  23989. return 1;
  23990. ;
  23991. return 0;
  23992. }
  23993. _ACEOF
  23994. if ac_fn_c_try_compile "$LINENO"; then :
  23995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23996. $as_echo "yes" >&6; }
  23997. tst_compi_closesocket_camel="yes"
  23998. else
  23999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24000. $as_echo "no" >&6; }
  24001. tst_compi_closesocket_camel="no"
  24002. fi
  24003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24004. fi
  24005. #
  24006. if test "$tst_compi_closesocket_camel" = "yes"; then
  24007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
  24008. $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
  24009. if test "x$curl_disallow_closesocket_camel" != "xyes"; then
  24010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24011. $as_echo "yes" >&6; }
  24012. tst_allow_closesocket_camel="yes"
  24013. else
  24014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24015. $as_echo "no" >&6; }
  24016. tst_allow_closesocket_camel="no"
  24017. fi
  24018. fi
  24019. #
  24020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
  24021. $as_echo_n "checking if CloseSocket might be used... " >&6; }
  24022. if test "$tst_links_closesocket_camel" = "yes" &&
  24023. test "$tst_proto_closesocket_camel" = "yes" &&
  24024. test "$tst_compi_closesocket_camel" = "yes" &&
  24025. test "$tst_allow_closesocket_camel" = "yes"; then
  24026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24027. $as_echo "yes" >&6; }
  24028. cat >>confdefs.h <<_ACEOF
  24029. #define HAVE_CLOSESOCKET_CAMEL 1
  24030. _ACEOF
  24031. ac_cv_func_closesocket_camel="yes"
  24032. else
  24033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24034. $as_echo "no" >&6; }
  24035. ac_cv_func_closesocket_camel="no"
  24036. fi
  24037. #
  24038. tst_links_connect="unknown"
  24039. tst_proto_connect="unknown"
  24040. tst_compi_connect="unknown"
  24041. tst_allow_connect="unknown"
  24042. #
  24043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
  24044. $as_echo_n "checking if connect can be linked... " >&6; }
  24045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24046. /* end confdefs.h. */
  24047. $curl_includes_winsock2
  24048. $curl_includes_sys_socket
  24049. $curl_includes_socket
  24050. int main (void)
  24051. {
  24052. if(0 != connect(0, 0, 0))
  24053. return 1;
  24054. ;
  24055. return 0;
  24056. }
  24057. _ACEOF
  24058. if ac_fn_c_try_link "$LINENO"; then :
  24059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24060. $as_echo "yes" >&6; }
  24061. tst_links_connect="yes"
  24062. else
  24063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24064. $as_echo "no" >&6; }
  24065. tst_links_connect="no"
  24066. fi
  24067. rm -f core conftest.err conftest.$ac_objext \
  24068. conftest$ac_exeext conftest.$ac_ext
  24069. #
  24070. if test "$tst_links_connect" = "yes"; then
  24071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
  24072. $as_echo_n "checking if connect is prototyped... " >&6; }
  24073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24074. /* end confdefs.h. */
  24075. $curl_includes_winsock2
  24076. $curl_includes_sys_socket
  24077. $curl_includes_socket
  24078. _ACEOF
  24079. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24080. $EGREP "connect" >/dev/null 2>&1; then :
  24081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24082. $as_echo "yes" >&6; }
  24083. tst_proto_connect="yes"
  24084. else
  24085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24086. $as_echo "no" >&6; }
  24087. tst_proto_connect="no"
  24088. fi
  24089. rm -f conftest*
  24090. fi
  24091. #
  24092. if test "$tst_proto_connect" = "yes"; then
  24093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
  24094. $as_echo_n "checking if connect is compilable... " >&6; }
  24095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24096. /* end confdefs.h. */
  24097. $curl_includes_winsock2
  24098. $curl_includes_sys_socket
  24099. $curl_includes_socket
  24100. int main (void)
  24101. {
  24102. if(0 != connect(0, 0, 0))
  24103. return 1;
  24104. ;
  24105. return 0;
  24106. }
  24107. _ACEOF
  24108. if ac_fn_c_try_compile "$LINENO"; then :
  24109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24110. $as_echo "yes" >&6; }
  24111. tst_compi_connect="yes"
  24112. else
  24113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24114. $as_echo "no" >&6; }
  24115. tst_compi_connect="no"
  24116. fi
  24117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24118. fi
  24119. #
  24120. if test "$tst_compi_connect" = "yes"; then
  24121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
  24122. $as_echo_n "checking if connect usage allowed... " >&6; }
  24123. if test "x$curl_disallow_connect" != "xyes"; then
  24124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24125. $as_echo "yes" >&6; }
  24126. tst_allow_connect="yes"
  24127. else
  24128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24129. $as_echo "no" >&6; }
  24130. tst_allow_connect="no"
  24131. fi
  24132. fi
  24133. #
  24134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
  24135. $as_echo_n "checking if connect might be used... " >&6; }
  24136. if test "$tst_links_connect" = "yes" &&
  24137. test "$tst_proto_connect" = "yes" &&
  24138. test "$tst_compi_connect" = "yes" &&
  24139. test "$tst_allow_connect" = "yes"; then
  24140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24141. $as_echo "yes" >&6; }
  24142. cat >>confdefs.h <<_ACEOF
  24143. #define HAVE_CONNECT 1
  24144. _ACEOF
  24145. ac_cv_func_connect="yes"
  24146. else
  24147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24148. $as_echo "no" >&6; }
  24149. ac_cv_func_connect="no"
  24150. fi
  24151. curl_includes_fcntl="\
  24152. /* includes start */
  24153. #ifdef HAVE_SYS_TYPES_H
  24154. # include <sys/types.h>
  24155. #endif
  24156. #ifdef HAVE_UNISTD_H
  24157. # include <unistd.h>
  24158. #endif
  24159. #ifdef HAVE_FCNTL_H
  24160. # include <fcntl.h>
  24161. #endif
  24162. /* includes end */"
  24163. for ac_header in sys/types.h unistd.h fcntl.h
  24164. do :
  24165. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24166. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
  24167. "
  24168. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24169. cat >>confdefs.h <<_ACEOF
  24170. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24171. _ACEOF
  24172. fi
  24173. done
  24174. #
  24175. tst_links_fcntl="unknown"
  24176. tst_proto_fcntl="unknown"
  24177. tst_compi_fcntl="unknown"
  24178. tst_allow_fcntl="unknown"
  24179. #
  24180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
  24181. $as_echo_n "checking if fcntl can be linked... " >&6; }
  24182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24183. /* end confdefs.h. */
  24184. #define fcntl innocuous_fcntl
  24185. #ifdef __STDC__
  24186. # include <limits.h>
  24187. #else
  24188. # include <assert.h>
  24189. #endif
  24190. #undef fcntl
  24191. #ifdef __cplusplus
  24192. extern "C"
  24193. #endif
  24194. char fcntl ();
  24195. #if defined __stub_fcntl || defined __stub___fcntl
  24196. choke me
  24197. #endif
  24198. int main (void)
  24199. {
  24200. return fcntl ();
  24201. ;
  24202. return 0;
  24203. }
  24204. _ACEOF
  24205. if ac_fn_c_try_link "$LINENO"; then :
  24206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24207. $as_echo "yes" >&6; }
  24208. tst_links_fcntl="yes"
  24209. else
  24210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24211. $as_echo "no" >&6; }
  24212. tst_links_fcntl="no"
  24213. fi
  24214. rm -f core conftest.err conftest.$ac_objext \
  24215. conftest$ac_exeext conftest.$ac_ext
  24216. #
  24217. if test "$tst_links_fcntl" = "yes"; then
  24218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
  24219. $as_echo_n "checking if fcntl is prototyped... " >&6; }
  24220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24221. /* end confdefs.h. */
  24222. $curl_includes_fcntl
  24223. _ACEOF
  24224. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24225. $EGREP "fcntl" >/dev/null 2>&1; then :
  24226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24227. $as_echo "yes" >&6; }
  24228. tst_proto_fcntl="yes"
  24229. else
  24230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24231. $as_echo "no" >&6; }
  24232. tst_proto_fcntl="no"
  24233. fi
  24234. rm -f conftest*
  24235. fi
  24236. #
  24237. if test "$tst_proto_fcntl" = "yes"; then
  24238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
  24239. $as_echo_n "checking if fcntl is compilable... " >&6; }
  24240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24241. /* end confdefs.h. */
  24242. $curl_includes_fcntl
  24243. int main (void)
  24244. {
  24245. if(0 != fcntl(0, 0, 0))
  24246. return 1;
  24247. ;
  24248. return 0;
  24249. }
  24250. _ACEOF
  24251. if ac_fn_c_try_compile "$LINENO"; then :
  24252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24253. $as_echo "yes" >&6; }
  24254. tst_compi_fcntl="yes"
  24255. else
  24256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24257. $as_echo "no" >&6; }
  24258. tst_compi_fcntl="no"
  24259. fi
  24260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24261. fi
  24262. #
  24263. if test "$tst_compi_fcntl" = "yes"; then
  24264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
  24265. $as_echo_n "checking if fcntl usage allowed... " >&6; }
  24266. if test "x$curl_disallow_fcntl" != "xyes"; then
  24267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24268. $as_echo "yes" >&6; }
  24269. tst_allow_fcntl="yes"
  24270. else
  24271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24272. $as_echo "no" >&6; }
  24273. tst_allow_fcntl="no"
  24274. fi
  24275. fi
  24276. #
  24277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
  24278. $as_echo_n "checking if fcntl might be used... " >&6; }
  24279. if test "$tst_links_fcntl" = "yes" &&
  24280. test "$tst_proto_fcntl" = "yes" &&
  24281. test "$tst_compi_fcntl" = "yes" &&
  24282. test "$tst_allow_fcntl" = "yes"; then
  24283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24284. $as_echo "yes" >&6; }
  24285. cat >>confdefs.h <<_ACEOF
  24286. #define HAVE_FCNTL 1
  24287. _ACEOF
  24288. ac_cv_func_fcntl="yes"
  24289. #
  24290. tst_compi_fcntl_o_nonblock="unknown"
  24291. tst_allow_fcntl_o_nonblock="unknown"
  24292. #
  24293. case $host_os in
  24294. sunos4* | aix3* | beos*)
  24295. curl_disallow_fcntl_o_nonblock="yes"
  24296. ;;
  24297. esac
  24298. #
  24299. if test "$ac_cv_func_fcntl" = "yes"; then
  24300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
  24301. $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
  24302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24303. /* end confdefs.h. */
  24304. $curl_includes_fcntl
  24305. int main (void)
  24306. {
  24307. int flags = 0;
  24308. if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
  24309. return 1;
  24310. ;
  24311. return 0;
  24312. }
  24313. _ACEOF
  24314. if ac_fn_c_try_compile "$LINENO"; then :
  24315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24316. $as_echo "yes" >&6; }
  24317. tst_compi_fcntl_o_nonblock="yes"
  24318. else
  24319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24320. $as_echo "no" >&6; }
  24321. tst_compi_fcntl_o_nonblock="no"
  24322. fi
  24323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24324. fi
  24325. #
  24326. if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
  24327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
  24328. $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
  24329. if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
  24330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24331. $as_echo "yes" >&6; }
  24332. tst_allow_fcntl_o_nonblock="yes"
  24333. else
  24334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24335. $as_echo "no" >&6; }
  24336. tst_allow_fcntl_o_nonblock="no"
  24337. fi
  24338. fi
  24339. #
  24340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
  24341. $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
  24342. if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
  24343. test "$tst_allow_fcntl_o_nonblock" = "yes"; then
  24344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24345. $as_echo "yes" >&6; }
  24346. cat >>confdefs.h <<_ACEOF
  24347. #define HAVE_FCNTL_O_NONBLOCK 1
  24348. _ACEOF
  24349. ac_cv_func_fcntl_o_nonblock="yes"
  24350. else
  24351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24352. $as_echo "no" >&6; }
  24353. ac_cv_func_fcntl_o_nonblock="no"
  24354. fi
  24355. else
  24356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24357. $as_echo "no" >&6; }
  24358. ac_cv_func_fcntl="no"
  24359. fi
  24360. curl_includes_stdio="\
  24361. /* includes start */
  24362. #ifdef HAVE_SYS_TYPES_H
  24363. # include <sys/types.h>
  24364. #endif
  24365. #ifdef HAVE_STDIO_H
  24366. # include <stdio.h>
  24367. #endif
  24368. /* includes end */"
  24369. for ac_header in sys/types.h stdio.h
  24370. do :
  24371. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24372. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
  24373. "
  24374. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24375. cat >>confdefs.h <<_ACEOF
  24376. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24377. _ACEOF
  24378. fi
  24379. done
  24380. #
  24381. tst_links_fdopen="unknown"
  24382. tst_proto_fdopen="unknown"
  24383. tst_compi_fdopen="unknown"
  24384. tst_allow_fdopen="unknown"
  24385. #
  24386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
  24387. $as_echo_n "checking if fdopen can be linked... " >&6; }
  24388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24389. /* end confdefs.h. */
  24390. #define fdopen innocuous_fdopen
  24391. #ifdef __STDC__
  24392. # include <limits.h>
  24393. #else
  24394. # include <assert.h>
  24395. #endif
  24396. #undef fdopen
  24397. #ifdef __cplusplus
  24398. extern "C"
  24399. #endif
  24400. char fdopen ();
  24401. #if defined __stub_fdopen || defined __stub___fdopen
  24402. choke me
  24403. #endif
  24404. int main (void)
  24405. {
  24406. return fdopen ();
  24407. ;
  24408. return 0;
  24409. }
  24410. _ACEOF
  24411. if ac_fn_c_try_link "$LINENO"; then :
  24412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24413. $as_echo "yes" >&6; }
  24414. tst_links_fdopen="yes"
  24415. else
  24416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24417. $as_echo "no" >&6; }
  24418. tst_links_fdopen="no"
  24419. fi
  24420. rm -f core conftest.err conftest.$ac_objext \
  24421. conftest$ac_exeext conftest.$ac_ext
  24422. #
  24423. if test "$tst_links_fdopen" = "yes"; then
  24424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
  24425. $as_echo_n "checking if fdopen is prototyped... " >&6; }
  24426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24427. /* end confdefs.h. */
  24428. $curl_includes_stdio
  24429. _ACEOF
  24430. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24431. $EGREP "fdopen" >/dev/null 2>&1; then :
  24432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24433. $as_echo "yes" >&6; }
  24434. tst_proto_fdopen="yes"
  24435. else
  24436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24437. $as_echo "no" >&6; }
  24438. tst_proto_fdopen="no"
  24439. fi
  24440. rm -f conftest*
  24441. fi
  24442. #
  24443. if test "$tst_proto_fdopen" = "yes"; then
  24444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
  24445. $as_echo_n "checking if fdopen is compilable... " >&6; }
  24446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24447. /* end confdefs.h. */
  24448. $curl_includes_stdio
  24449. int main (void)
  24450. {
  24451. if(0 != fdopen(0, 0))
  24452. return 1;
  24453. ;
  24454. return 0;
  24455. }
  24456. _ACEOF
  24457. if ac_fn_c_try_compile "$LINENO"; then :
  24458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24459. $as_echo "yes" >&6; }
  24460. tst_compi_fdopen="yes"
  24461. else
  24462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24463. $as_echo "no" >&6; }
  24464. tst_compi_fdopen="no"
  24465. fi
  24466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24467. fi
  24468. #
  24469. if test "$tst_compi_fdopen" = "yes"; then
  24470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
  24471. $as_echo_n "checking if fdopen usage allowed... " >&6; }
  24472. if test "x$curl_disallow_fdopen" != "xyes"; then
  24473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24474. $as_echo "yes" >&6; }
  24475. tst_allow_fdopen="yes"
  24476. else
  24477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24478. $as_echo "no" >&6; }
  24479. tst_allow_fdopen="no"
  24480. fi
  24481. fi
  24482. #
  24483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
  24484. $as_echo_n "checking if fdopen might be used... " >&6; }
  24485. if test "$tst_links_fdopen" = "yes" &&
  24486. test "$tst_proto_fdopen" = "yes" &&
  24487. test "$tst_compi_fdopen" = "yes" &&
  24488. test "$tst_allow_fdopen" = "yes"; then
  24489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24490. $as_echo "yes" >&6; }
  24491. cat >>confdefs.h <<_ACEOF
  24492. #define HAVE_FDOPEN 1
  24493. _ACEOF
  24494. ac_cv_func_fdopen="yes"
  24495. else
  24496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24497. $as_echo "no" >&6; }
  24498. ac_cv_func_fdopen="no"
  24499. fi
  24500. curl_includes_netdb="\
  24501. /* includes start */
  24502. #ifdef HAVE_SYS_TYPES_H
  24503. # include <sys/types.h>
  24504. #endif
  24505. #ifdef HAVE_NETDB_H
  24506. # include <netdb.h>
  24507. #endif
  24508. /* includes end */"
  24509. for ac_header in sys/types.h netdb.h
  24510. do :
  24511. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24512. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
  24513. "
  24514. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24515. cat >>confdefs.h <<_ACEOF
  24516. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24517. _ACEOF
  24518. fi
  24519. done
  24520. #
  24521. tst_links_freeaddrinfo="unknown"
  24522. tst_proto_freeaddrinfo="unknown"
  24523. tst_compi_freeaddrinfo="unknown"
  24524. tst_allow_freeaddrinfo="unknown"
  24525. #
  24526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
  24527. $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
  24528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24529. /* end confdefs.h. */
  24530. $curl_includes_ws2tcpip
  24531. $curl_includes_sys_socket
  24532. $curl_includes_netdb
  24533. int main (void)
  24534. {
  24535. freeaddrinfo(0);
  24536. ;
  24537. return 0;
  24538. }
  24539. _ACEOF
  24540. if ac_fn_c_try_link "$LINENO"; then :
  24541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24542. $as_echo "yes" >&6; }
  24543. tst_links_freeaddrinfo="yes"
  24544. else
  24545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24546. $as_echo "no" >&6; }
  24547. tst_links_freeaddrinfo="no"
  24548. fi
  24549. rm -f core conftest.err conftest.$ac_objext \
  24550. conftest$ac_exeext conftest.$ac_ext
  24551. #
  24552. if test "$tst_links_freeaddrinfo" = "yes"; then
  24553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
  24554. $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
  24555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24556. /* end confdefs.h. */
  24557. $curl_includes_ws2tcpip
  24558. $curl_includes_sys_socket
  24559. $curl_includes_netdb
  24560. _ACEOF
  24561. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24562. $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
  24563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24564. $as_echo "yes" >&6; }
  24565. tst_proto_freeaddrinfo="yes"
  24566. else
  24567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24568. $as_echo "no" >&6; }
  24569. tst_proto_freeaddrinfo="no"
  24570. fi
  24571. rm -f conftest*
  24572. fi
  24573. #
  24574. if test "$tst_proto_freeaddrinfo" = "yes"; then
  24575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
  24576. $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
  24577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24578. /* end confdefs.h. */
  24579. $curl_includes_ws2tcpip
  24580. $curl_includes_sys_socket
  24581. $curl_includes_netdb
  24582. int main (void)
  24583. {
  24584. freeaddrinfo(0);
  24585. ;
  24586. return 0;
  24587. }
  24588. _ACEOF
  24589. if ac_fn_c_try_compile "$LINENO"; then :
  24590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24591. $as_echo "yes" >&6; }
  24592. tst_compi_freeaddrinfo="yes"
  24593. else
  24594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24595. $as_echo "no" >&6; }
  24596. tst_compi_freeaddrinfo="no"
  24597. fi
  24598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24599. fi
  24600. #
  24601. if test "$tst_compi_freeaddrinfo" = "yes"; then
  24602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
  24603. $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
  24604. if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
  24605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24606. $as_echo "yes" >&6; }
  24607. tst_allow_freeaddrinfo="yes"
  24608. else
  24609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24610. $as_echo "no" >&6; }
  24611. tst_allow_freeaddrinfo="no"
  24612. fi
  24613. fi
  24614. #
  24615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
  24616. $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
  24617. if test "$tst_links_freeaddrinfo" = "yes" &&
  24618. test "$tst_proto_freeaddrinfo" = "yes" &&
  24619. test "$tst_compi_freeaddrinfo" = "yes" &&
  24620. test "$tst_allow_freeaddrinfo" = "yes"; then
  24621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24622. $as_echo "yes" >&6; }
  24623. cat >>confdefs.h <<_ACEOF
  24624. #define HAVE_FREEADDRINFO 1
  24625. _ACEOF
  24626. ac_cv_func_freeaddrinfo="yes"
  24627. else
  24628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24629. $as_echo "no" >&6; }
  24630. ac_cv_func_freeaddrinfo="no"
  24631. fi
  24632. curl_includes_ifaddrs="\
  24633. /* includes start */
  24634. #ifdef HAVE_SYS_TYPES_H
  24635. # include <sys/types.h>
  24636. #endif
  24637. #ifdef HAVE_SYS_SOCKET_H
  24638. # include <sys/socket.h>
  24639. #endif
  24640. #ifdef HAVE_NETINET_IN_H
  24641. # include <netinet/in.h>
  24642. #endif
  24643. #ifdef HAVE_IFADDRS_H
  24644. # include <ifaddrs.h>
  24645. #endif
  24646. /* includes end */"
  24647. for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
  24648. do :
  24649. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24650. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
  24651. "
  24652. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24653. cat >>confdefs.h <<_ACEOF
  24654. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24655. _ACEOF
  24656. fi
  24657. done
  24658. #
  24659. tst_links_freeifaddrs="unknown"
  24660. tst_proto_freeifaddrs="unknown"
  24661. tst_compi_freeifaddrs="unknown"
  24662. tst_allow_freeifaddrs="unknown"
  24663. #
  24664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
  24665. $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
  24666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24667. /* end confdefs.h. */
  24668. #define freeifaddrs innocuous_freeifaddrs
  24669. #ifdef __STDC__
  24670. # include <limits.h>
  24671. #else
  24672. # include <assert.h>
  24673. #endif
  24674. #undef freeifaddrs
  24675. #ifdef __cplusplus
  24676. extern "C"
  24677. #endif
  24678. char freeifaddrs ();
  24679. #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
  24680. choke me
  24681. #endif
  24682. int main (void)
  24683. {
  24684. return freeifaddrs ();
  24685. ;
  24686. return 0;
  24687. }
  24688. _ACEOF
  24689. if ac_fn_c_try_link "$LINENO"; then :
  24690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24691. $as_echo "yes" >&6; }
  24692. tst_links_freeifaddrs="yes"
  24693. else
  24694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24695. $as_echo "no" >&6; }
  24696. tst_links_freeifaddrs="no"
  24697. fi
  24698. rm -f core conftest.err conftest.$ac_objext \
  24699. conftest$ac_exeext conftest.$ac_ext
  24700. #
  24701. if test "$tst_links_freeifaddrs" = "yes"; then
  24702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
  24703. $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
  24704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24705. /* end confdefs.h. */
  24706. $curl_includes_ifaddrs
  24707. _ACEOF
  24708. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24709. $EGREP "freeifaddrs" >/dev/null 2>&1; then :
  24710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24711. $as_echo "yes" >&6; }
  24712. tst_proto_freeifaddrs="yes"
  24713. else
  24714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24715. $as_echo "no" >&6; }
  24716. tst_proto_freeifaddrs="no"
  24717. fi
  24718. rm -f conftest*
  24719. fi
  24720. #
  24721. if test "$tst_proto_freeifaddrs" = "yes"; then
  24722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
  24723. $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
  24724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24725. /* end confdefs.h. */
  24726. $curl_includes_ifaddrs
  24727. int main (void)
  24728. {
  24729. freeifaddrs(0);
  24730. ;
  24731. return 0;
  24732. }
  24733. _ACEOF
  24734. if ac_fn_c_try_compile "$LINENO"; then :
  24735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24736. $as_echo "yes" >&6; }
  24737. tst_compi_freeifaddrs="yes"
  24738. else
  24739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24740. $as_echo "no" >&6; }
  24741. tst_compi_freeifaddrs="no"
  24742. fi
  24743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24744. fi
  24745. #
  24746. if test "$tst_compi_freeifaddrs" = "yes"; then
  24747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
  24748. $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
  24749. if test "x$curl_disallow_freeifaddrs" != "xyes"; then
  24750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24751. $as_echo "yes" >&6; }
  24752. tst_allow_freeifaddrs="yes"
  24753. else
  24754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24755. $as_echo "no" >&6; }
  24756. tst_allow_freeifaddrs="no"
  24757. fi
  24758. fi
  24759. #
  24760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
  24761. $as_echo_n "checking if freeifaddrs might be used... " >&6; }
  24762. if test "$tst_links_freeifaddrs" = "yes" &&
  24763. test "$tst_proto_freeifaddrs" = "yes" &&
  24764. test "$tst_compi_freeifaddrs" = "yes" &&
  24765. test "$tst_allow_freeifaddrs" = "yes"; then
  24766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24767. $as_echo "yes" >&6; }
  24768. cat >>confdefs.h <<_ACEOF
  24769. #define HAVE_FREEIFADDRS 1
  24770. _ACEOF
  24771. ac_cv_func_freeifaddrs="yes"
  24772. else
  24773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24774. $as_echo "no" >&6; }
  24775. ac_cv_func_freeifaddrs="no"
  24776. fi
  24777. curl_includes_sys_xattr="\
  24778. /* includes start */
  24779. #ifdef HAVE_SYS_TYPES_H
  24780. # include <sys/types.h>
  24781. #endif
  24782. #ifdef HAVE_SYS_XATTR_H
  24783. # include <sys/xattr.h>
  24784. #endif
  24785. /* includes end */"
  24786. for ac_header in sys/types.h sys/xattr.h
  24787. do :
  24788. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  24789. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
  24790. "
  24791. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  24792. cat >>confdefs.h <<_ACEOF
  24793. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  24794. _ACEOF
  24795. fi
  24796. done
  24797. #
  24798. tst_links_fsetxattr="unknown"
  24799. tst_proto_fsetxattr="unknown"
  24800. tst_compi_fsetxattr="unknown"
  24801. tst_allow_fsetxattr="unknown"
  24802. tst_nargs_fsetxattr="unknown"
  24803. #
  24804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
  24805. $as_echo_n "checking if fsetxattr can be linked... " >&6; }
  24806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24807. /* end confdefs.h. */
  24808. #define fsetxattr innocuous_fsetxattr
  24809. #ifdef __STDC__
  24810. # include <limits.h>
  24811. #else
  24812. # include <assert.h>
  24813. #endif
  24814. #undef fsetxattr
  24815. #ifdef __cplusplus
  24816. extern "C"
  24817. #endif
  24818. char fsetxattr ();
  24819. #if defined __stub_fsetxattr || defined __stub___fsetxattr
  24820. choke me
  24821. #endif
  24822. int main (void)
  24823. {
  24824. return fsetxattr ();
  24825. ;
  24826. return 0;
  24827. }
  24828. _ACEOF
  24829. if ac_fn_c_try_link "$LINENO"; then :
  24830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24831. $as_echo "yes" >&6; }
  24832. tst_links_fsetxattr="yes"
  24833. else
  24834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24835. $as_echo "no" >&6; }
  24836. tst_links_fsetxattr="no"
  24837. fi
  24838. rm -f core conftest.err conftest.$ac_objext \
  24839. conftest$ac_exeext conftest.$ac_ext
  24840. #
  24841. if test "$tst_links_fsetxattr" = "yes"; then
  24842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
  24843. $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
  24844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24845. /* end confdefs.h. */
  24846. $curl_includes_sys_xattr
  24847. _ACEOF
  24848. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  24849. $EGREP "fsetxattr" >/dev/null 2>&1; then :
  24850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24851. $as_echo "yes" >&6; }
  24852. tst_proto_fsetxattr="yes"
  24853. else
  24854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24855. $as_echo "no" >&6; }
  24856. tst_proto_fsetxattr="no"
  24857. fi
  24858. rm -f conftest*
  24859. fi
  24860. #
  24861. if test "$tst_proto_fsetxattr" = "yes"; then
  24862. if test "$tst_nargs_fsetxattr" = "unknown"; then
  24863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
  24864. $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
  24865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24866. /* end confdefs.h. */
  24867. $curl_includes_sys_xattr
  24868. int main (void)
  24869. {
  24870. if(0 != fsetxattr(0, 0, 0, 0, 0))
  24871. return 1;
  24872. ;
  24873. return 0;
  24874. }
  24875. _ACEOF
  24876. if ac_fn_c_try_compile "$LINENO"; then :
  24877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24878. $as_echo "yes" >&6; }
  24879. tst_compi_fsetxattr="yes"
  24880. tst_nargs_fsetxattr="5"
  24881. else
  24882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24883. $as_echo "no" >&6; }
  24884. tst_compi_fsetxattr="no"
  24885. fi
  24886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24887. fi
  24888. if test "$tst_nargs_fsetxattr" = "unknown"; then
  24889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
  24890. $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
  24891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24892. /* end confdefs.h. */
  24893. $curl_includes_sys_xattr
  24894. int main (void)
  24895. {
  24896. if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
  24897. return 1;
  24898. ;
  24899. return 0;
  24900. }
  24901. _ACEOF
  24902. if ac_fn_c_try_compile "$LINENO"; then :
  24903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24904. $as_echo "yes" >&6; }
  24905. tst_compi_fsetxattr="yes"
  24906. tst_nargs_fsetxattr="6"
  24907. else
  24908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24909. $as_echo "no" >&6; }
  24910. tst_compi_fsetxattr="no"
  24911. fi
  24912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24913. fi
  24914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
  24915. $as_echo_n "checking if fsetxattr is compilable... " >&6; }
  24916. if test "$tst_compi_fsetxattr" = "yes"; then
  24917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24918. $as_echo "yes" >&6; }
  24919. else
  24920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24921. $as_echo "no" >&6; }
  24922. fi
  24923. fi
  24924. #
  24925. if test "$tst_compi_fsetxattr" = "yes"; then
  24926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
  24927. $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
  24928. if test "x$curl_disallow_fsetxattr" != "xyes"; then
  24929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24930. $as_echo "yes" >&6; }
  24931. tst_allow_fsetxattr="yes"
  24932. else
  24933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24934. $as_echo "no" >&6; }
  24935. tst_allow_fsetxattr="no"
  24936. fi
  24937. fi
  24938. #
  24939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
  24940. $as_echo_n "checking if fsetxattr might be used... " >&6; }
  24941. if test "$tst_links_fsetxattr" = "yes" &&
  24942. test "$tst_proto_fsetxattr" = "yes" &&
  24943. test "$tst_compi_fsetxattr" = "yes" &&
  24944. test "$tst_allow_fsetxattr" = "yes"; then
  24945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24946. $as_echo "yes" >&6; }
  24947. cat >>confdefs.h <<_ACEOF
  24948. #define HAVE_FSETXATTR 1
  24949. _ACEOF
  24950. #
  24951. if test "$tst_nargs_fsetxattr" -eq "5"; then
  24952. $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
  24953. elif test "$tst_nargs_fsetxattr" -eq "6"; then
  24954. $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
  24955. fi
  24956. #
  24957. ac_cv_func_fsetxattr="yes"
  24958. else
  24959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24960. $as_echo "no" >&6; }
  24961. ac_cv_func_fsetxattr="no"
  24962. fi
  24963. #
  24964. tst_links_ftruncate="unknown"
  24965. tst_proto_ftruncate="unknown"
  24966. tst_compi_ftruncate="unknown"
  24967. tst_allow_ftruncate="unknown"
  24968. #
  24969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
  24970. $as_echo_n "checking if ftruncate can be linked... " >&6; }
  24971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24972. /* end confdefs.h. */
  24973. #define ftruncate innocuous_ftruncate
  24974. #ifdef __STDC__
  24975. # include <limits.h>
  24976. #else
  24977. # include <assert.h>
  24978. #endif
  24979. #undef ftruncate
  24980. #ifdef __cplusplus
  24981. extern "C"
  24982. #endif
  24983. char ftruncate ();
  24984. #if defined __stub_ftruncate || defined __stub___ftruncate
  24985. choke me
  24986. #endif
  24987. int main (void)
  24988. {
  24989. return ftruncate ();
  24990. ;
  24991. return 0;
  24992. }
  24993. _ACEOF
  24994. if ac_fn_c_try_link "$LINENO"; then :
  24995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24996. $as_echo "yes" >&6; }
  24997. tst_links_ftruncate="yes"
  24998. else
  24999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25000. $as_echo "no" >&6; }
  25001. tst_links_ftruncate="no"
  25002. fi
  25003. rm -f core conftest.err conftest.$ac_objext \
  25004. conftest$ac_exeext conftest.$ac_ext
  25005. #
  25006. if test "$tst_links_ftruncate" = "yes"; then
  25007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
  25008. $as_echo_n "checking if ftruncate is prototyped... " >&6; }
  25009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25010. /* end confdefs.h. */
  25011. $curl_includes_unistd
  25012. _ACEOF
  25013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25014. $EGREP "ftruncate" >/dev/null 2>&1; then :
  25015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25016. $as_echo "yes" >&6; }
  25017. tst_proto_ftruncate="yes"
  25018. else
  25019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25020. $as_echo "no" >&6; }
  25021. tst_proto_ftruncate="no"
  25022. fi
  25023. rm -f conftest*
  25024. fi
  25025. #
  25026. if test "$tst_proto_ftruncate" = "yes"; then
  25027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
  25028. $as_echo_n "checking if ftruncate is compilable... " >&6; }
  25029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25030. /* end confdefs.h. */
  25031. $curl_includes_unistd
  25032. int main (void)
  25033. {
  25034. if(0 != ftruncate(0, 0))
  25035. return 1;
  25036. ;
  25037. return 0;
  25038. }
  25039. _ACEOF
  25040. if ac_fn_c_try_compile "$LINENO"; then :
  25041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25042. $as_echo "yes" >&6; }
  25043. tst_compi_ftruncate="yes"
  25044. else
  25045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25046. $as_echo "no" >&6; }
  25047. tst_compi_ftruncate="no"
  25048. fi
  25049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25050. fi
  25051. #
  25052. if test "$tst_compi_ftruncate" = "yes"; then
  25053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
  25054. $as_echo_n "checking if ftruncate usage allowed... " >&6; }
  25055. if test "x$curl_disallow_ftruncate" != "xyes"; then
  25056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25057. $as_echo "yes" >&6; }
  25058. tst_allow_ftruncate="yes"
  25059. else
  25060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25061. $as_echo "no" >&6; }
  25062. tst_allow_ftruncate="no"
  25063. fi
  25064. fi
  25065. #
  25066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
  25067. $as_echo_n "checking if ftruncate might be used... " >&6; }
  25068. if test "$tst_links_ftruncate" = "yes" &&
  25069. test "$tst_proto_ftruncate" = "yes" &&
  25070. test "$tst_compi_ftruncate" = "yes" &&
  25071. test "$tst_allow_ftruncate" = "yes"; then
  25072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25073. $as_echo "yes" >&6; }
  25074. cat >>confdefs.h <<_ACEOF
  25075. #define HAVE_FTRUNCATE 1
  25076. _ACEOF
  25077. ac_cv_func_ftruncate="yes"
  25078. else
  25079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25080. $as_echo "no" >&6; }
  25081. ac_cv_func_ftruncate="no"
  25082. fi
  25083. curl_includes_stdlib="\
  25084. /* includes start */
  25085. #ifdef HAVE_SYS_TYPES_H
  25086. # include <sys/types.h>
  25087. #endif
  25088. #ifdef HAVE_STDLIB_H
  25089. # include <stdlib.h>
  25090. #endif
  25091. /* includes end */"
  25092. for ac_header in sys/types.h stdlib.h
  25093. do :
  25094. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25095. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
  25096. "
  25097. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  25098. cat >>confdefs.h <<_ACEOF
  25099. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25100. _ACEOF
  25101. fi
  25102. done
  25103. #
  25104. tst_links_getaddrinfo="unknown"
  25105. tst_proto_getaddrinfo="unknown"
  25106. tst_compi_getaddrinfo="unknown"
  25107. tst_works_getaddrinfo="unknown"
  25108. tst_allow_getaddrinfo="unknown"
  25109. tst_tsafe_getaddrinfo="unknown"
  25110. #
  25111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
  25112. $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
  25113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25114. /* end confdefs.h. */
  25115. $curl_includes_ws2tcpip
  25116. $curl_includes_sys_socket
  25117. $curl_includes_netdb
  25118. int main (void)
  25119. {
  25120. if(0 != getaddrinfo(0, 0, 0, 0))
  25121. return 1;
  25122. ;
  25123. return 0;
  25124. }
  25125. _ACEOF
  25126. if ac_fn_c_try_link "$LINENO"; then :
  25127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25128. $as_echo "yes" >&6; }
  25129. tst_links_getaddrinfo="yes"
  25130. else
  25131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25132. $as_echo "no" >&6; }
  25133. tst_links_getaddrinfo="no"
  25134. fi
  25135. rm -f core conftest.err conftest.$ac_objext \
  25136. conftest$ac_exeext conftest.$ac_ext
  25137. #
  25138. if test "$tst_links_getaddrinfo" = "yes"; then
  25139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
  25140. $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
  25141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25142. /* end confdefs.h. */
  25143. $curl_includes_ws2tcpip
  25144. $curl_includes_sys_socket
  25145. $curl_includes_netdb
  25146. _ACEOF
  25147. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25148. $EGREP "getaddrinfo" >/dev/null 2>&1; then :
  25149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25150. $as_echo "yes" >&6; }
  25151. tst_proto_getaddrinfo="yes"
  25152. else
  25153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25154. $as_echo "no" >&6; }
  25155. tst_proto_getaddrinfo="no"
  25156. fi
  25157. rm -f conftest*
  25158. fi
  25159. #
  25160. if test "$tst_proto_getaddrinfo" = "yes"; then
  25161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
  25162. $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
  25163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25164. /* end confdefs.h. */
  25165. $curl_includes_ws2tcpip
  25166. $curl_includes_sys_socket
  25167. $curl_includes_netdb
  25168. int main (void)
  25169. {
  25170. if(0 != getaddrinfo(0, 0, 0, 0))
  25171. return 1;
  25172. ;
  25173. return 0;
  25174. }
  25175. _ACEOF
  25176. if ac_fn_c_try_compile "$LINENO"; then :
  25177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25178. $as_echo "yes" >&6; }
  25179. tst_compi_getaddrinfo="yes"
  25180. else
  25181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25182. $as_echo "no" >&6; }
  25183. tst_compi_getaddrinfo="no"
  25184. fi
  25185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25186. fi
  25187. #
  25188. if test "x$cross_compiling" != "xyes" &&
  25189. test "$tst_compi_getaddrinfo" = "yes"; then
  25190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
  25191. $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
  25192. if test "$cross_compiling" = yes; then :
  25193. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25194. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25195. as_fn_error $? "cannot run test program while cross compiling
  25196. See \`config.log' for more details" "$LINENO" 5; }
  25197. else
  25198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25199. /* end confdefs.h. */
  25200. $curl_includes_ws2tcpip
  25201. $curl_includes_stdlib
  25202. $curl_includes_string
  25203. $curl_includes_sys_socket
  25204. $curl_includes_netdb
  25205. int main (void)
  25206. {
  25207. struct addrinfo hints;
  25208. struct addrinfo *ai = 0;
  25209. int error;
  25210. memset(&hints, 0, sizeof(hints));
  25211. hints.ai_flags = AI_NUMERICHOST;
  25212. hints.ai_family = AF_UNSPEC;
  25213. hints.ai_socktype = SOCK_STREAM;
  25214. error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
  25215. if(error || !ai)
  25216. exit(1); /* fail */
  25217. else
  25218. exit(0);
  25219. ;
  25220. return 0;
  25221. }
  25222. _ACEOF
  25223. if ac_fn_c_try_run "$LINENO"; then :
  25224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25225. $as_echo "yes" >&6; }
  25226. tst_works_getaddrinfo="yes"
  25227. else
  25228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25229. $as_echo "no" >&6; }
  25230. tst_works_getaddrinfo="no"
  25231. fi
  25232. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25233. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25234. fi
  25235. fi
  25236. #
  25237. if test "$tst_compi_getaddrinfo" = "yes" &&
  25238. test "$tst_works_getaddrinfo" != "no"; then
  25239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
  25240. $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
  25241. if test "x$curl_disallow_getaddrinfo" != "xyes"; then
  25242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25243. $as_echo "yes" >&6; }
  25244. tst_allow_getaddrinfo="yes"
  25245. else
  25246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25247. $as_echo "no" >&6; }
  25248. tst_allow_getaddrinfo="no"
  25249. fi
  25250. fi
  25251. #
  25252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
  25253. $as_echo_n "checking if getaddrinfo might be used... " >&6; }
  25254. if test "$tst_links_getaddrinfo" = "yes" &&
  25255. test "$tst_proto_getaddrinfo" = "yes" &&
  25256. test "$tst_compi_getaddrinfo" = "yes" &&
  25257. test "$tst_allow_getaddrinfo" = "yes" &&
  25258. test "$tst_works_getaddrinfo" != "no"; then
  25259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25260. $as_echo "yes" >&6; }
  25261. cat >>confdefs.h <<_ACEOF
  25262. #define HAVE_GETADDRINFO 1
  25263. _ACEOF
  25264. ac_cv_func_getaddrinfo="yes"
  25265. else
  25266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25267. $as_echo "no" >&6; }
  25268. ac_cv_func_getaddrinfo="no"
  25269. ac_cv_func_getaddrinfo_threadsafe="no"
  25270. fi
  25271. #
  25272. if test "$ac_cv_func_getaddrinfo" = "yes"; then
  25273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
  25274. $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
  25275. case $host_os in
  25276. aix[1234].* | aix5.[01].*)
  25277. tst_tsafe_getaddrinfo="no"
  25278. ;;
  25279. aix*)
  25280. tst_tsafe_getaddrinfo="yes"
  25281. ;;
  25282. darwin[12345].*)
  25283. tst_tsafe_getaddrinfo="no"
  25284. ;;
  25285. darwin*)
  25286. tst_tsafe_getaddrinfo="yes"
  25287. ;;
  25288. freebsd[1234].* | freebsd5.[1234]*)
  25289. tst_tsafe_getaddrinfo="no"
  25290. ;;
  25291. freebsd*)
  25292. tst_tsafe_getaddrinfo="yes"
  25293. ;;
  25294. hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
  25295. tst_tsafe_getaddrinfo="no"
  25296. ;;
  25297. hpux*)
  25298. tst_tsafe_getaddrinfo="yes"
  25299. ;;
  25300. netbsd[123].*)
  25301. tst_tsafe_getaddrinfo="no"
  25302. ;;
  25303. netbsd*)
  25304. tst_tsafe_getaddrinfo="yes"
  25305. ;;
  25306. *bsd*)
  25307. tst_tsafe_getaddrinfo="no"
  25308. ;;
  25309. solaris2*)
  25310. tst_tsafe_getaddrinfo="yes"
  25311. ;;
  25312. esac
  25313. if test "$tst_tsafe_getaddrinfo" = "unknown" &&
  25314. test "$ac_cv_native_windows" = "yes"; then
  25315. tst_tsafe_getaddrinfo="yes"
  25316. fi
  25317. if test "$tst_tsafe_getaddrinfo" = "unknown"; then
  25318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25319. /* end confdefs.h. */
  25320. $curl_includes_sys_socket
  25321. $curl_includes_netdb
  25322. int main (void)
  25323. {
  25324. #ifdef h_errno
  25325. return 0;
  25326. #else
  25327. force compilation error
  25328. #endif
  25329. }
  25330. _ACEOF
  25331. if ac_fn_c_try_compile "$LINENO"; then :
  25332. tst_symbol_defined="yes"
  25333. else
  25334. tst_symbol_defined="no"
  25335. fi
  25336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25337. if test "$tst_symbol_defined" = "yes"; then
  25338. curl_cv_have_def_h_errno=yes
  25339. else
  25340. curl_cv_have_def_h_errno=no
  25341. fi
  25342. if test "$curl_cv_have_def_h_errno" = "yes"; then
  25343. tst_h_errno_macro="yes"
  25344. else
  25345. tst_h_errno_macro="no"
  25346. fi
  25347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25348. /* end confdefs.h. */
  25349. $curl_includes_sys_socket
  25350. $curl_includes_netdb
  25351. int main (void)
  25352. {
  25353. h_errno = 2;
  25354. if(0 != h_errno)
  25355. return 1;
  25356. ;
  25357. return 0;
  25358. }
  25359. _ACEOF
  25360. if ac_fn_c_try_compile "$LINENO"; then :
  25361. tst_h_errno_modifiable_lvalue="yes"
  25362. else
  25363. tst_h_errno_modifiable_lvalue="no"
  25364. fi
  25365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25367. /* end confdefs.h. */
  25368. int main (void)
  25369. {
  25370. #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
  25371. return 0;
  25372. #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
  25373. return 0;
  25374. #else
  25375. force compilation error
  25376. #endif
  25377. ;
  25378. return 0;
  25379. }
  25380. _ACEOF
  25381. if ac_fn_c_try_compile "$LINENO"; then :
  25382. tst_h_errno_sbs_issue_7="yes"
  25383. else
  25384. tst_h_errno_sbs_issue_7="no"
  25385. fi
  25386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25387. if test "$tst_h_errno_macro" = "no" &&
  25388. test "$tst_h_errno_modifiable_lvalue" = "no" &&
  25389. test "$tst_h_errno_sbs_issue_7" = "no"; then
  25390. tst_tsafe_getaddrinfo="no"
  25391. else
  25392. tst_tsafe_getaddrinfo="yes"
  25393. fi
  25394. fi
  25395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
  25396. $as_echo "$tst_tsafe_getaddrinfo" >&6; }
  25397. if test "$tst_tsafe_getaddrinfo" = "yes"; then
  25398. cat >>confdefs.h <<_ACEOF
  25399. #define HAVE_GETADDRINFO_THREADSAFE 1
  25400. _ACEOF
  25401. ac_cv_func_getaddrinfo_threadsafe="yes"
  25402. else
  25403. ac_cv_func_getaddrinfo_threadsafe="no"
  25404. fi
  25405. fi
  25406. #
  25407. tst_links_gai_strerror="unknown"
  25408. tst_proto_gai_strerror="unknown"
  25409. tst_compi_gai_strerror="unknown"
  25410. tst_allow_gai_strerror="unknown"
  25411. #
  25412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
  25413. $as_echo_n "checking if gai_strerror can be linked... " >&6; }
  25414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25415. /* end confdefs.h. */
  25416. $curl_includes_winsock2
  25417. $curl_includes_netdb
  25418. int main (void)
  25419. {
  25420. if(0 != gai_strerror(0))
  25421. return 1;
  25422. ;
  25423. return 0;
  25424. }
  25425. _ACEOF
  25426. if ac_fn_c_try_link "$LINENO"; then :
  25427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25428. $as_echo "yes" >&6; }
  25429. tst_links_gai_strerror="yes"
  25430. else
  25431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25432. $as_echo "no" >&6; }
  25433. tst_links_gai_strerror="no"
  25434. fi
  25435. rm -f core conftest.err conftest.$ac_objext \
  25436. conftest$ac_exeext conftest.$ac_ext
  25437. #
  25438. if test "$tst_links_gai_strerror" = "yes"; then
  25439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
  25440. $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
  25441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25442. /* end confdefs.h. */
  25443. $curl_includes_winsock2
  25444. $curl_includes_netdb
  25445. _ACEOF
  25446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25447. $EGREP "gai_strerror" >/dev/null 2>&1; then :
  25448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25449. $as_echo "yes" >&6; }
  25450. tst_proto_gai_strerror="yes"
  25451. else
  25452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25453. $as_echo "no" >&6; }
  25454. tst_proto_gai_strerror="no"
  25455. fi
  25456. rm -f conftest*
  25457. fi
  25458. #
  25459. if test "$tst_proto_gai_strerror" = "yes"; then
  25460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
  25461. $as_echo_n "checking if gai_strerror is compilable... " >&6; }
  25462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25463. /* end confdefs.h. */
  25464. $curl_includes_winsock2
  25465. $curl_includes_netdb
  25466. int main (void)
  25467. {
  25468. if(0 != gai_strerror(0))
  25469. return 1;
  25470. ;
  25471. return 0;
  25472. }
  25473. _ACEOF
  25474. if ac_fn_c_try_compile "$LINENO"; then :
  25475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25476. $as_echo "yes" >&6; }
  25477. tst_compi_gai_strerror="yes"
  25478. else
  25479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25480. $as_echo "no" >&6; }
  25481. tst_compi_gai_strerror="no"
  25482. fi
  25483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25484. fi
  25485. #
  25486. if test "$tst_compi_gai_strerror" = "yes"; then
  25487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
  25488. $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
  25489. if test "x$curl_disallow_gai_strerror" != "xyes"; then
  25490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25491. $as_echo "yes" >&6; }
  25492. tst_allow_gai_strerror="yes"
  25493. else
  25494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25495. $as_echo "no" >&6; }
  25496. tst_allow_gai_strerror="no"
  25497. fi
  25498. fi
  25499. #
  25500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
  25501. $as_echo_n "checking if gai_strerror might be used... " >&6; }
  25502. if test "$tst_links_gai_strerror" = "yes" &&
  25503. test "$tst_proto_gai_strerror" = "yes" &&
  25504. test "$tst_compi_gai_strerror" = "yes" &&
  25505. test "$tst_allow_gai_strerror" = "yes"; then
  25506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25507. $as_echo "yes" >&6; }
  25508. cat >>confdefs.h <<_ACEOF
  25509. #define HAVE_GAI_STRERROR 1
  25510. _ACEOF
  25511. ac_cv_func_gai_strerror="yes"
  25512. else
  25513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25514. $as_echo "no" >&6; }
  25515. ac_cv_func_gai_strerror="no"
  25516. fi
  25517. #
  25518. tst_links_gethostbyaddr="unknown"
  25519. tst_proto_gethostbyaddr="unknown"
  25520. tst_compi_gethostbyaddr="unknown"
  25521. tst_allow_gethostbyaddr="unknown"
  25522. #
  25523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
  25524. $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
  25525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25526. /* end confdefs.h. */
  25527. $curl_includes_winsock2
  25528. $curl_includes_netdb
  25529. int main (void)
  25530. {
  25531. if(0 != gethostbyaddr(0, 0, 0))
  25532. return 1;
  25533. ;
  25534. return 0;
  25535. }
  25536. _ACEOF
  25537. if ac_fn_c_try_link "$LINENO"; then :
  25538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25539. $as_echo "yes" >&6; }
  25540. tst_links_gethostbyaddr="yes"
  25541. else
  25542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25543. $as_echo "no" >&6; }
  25544. tst_links_gethostbyaddr="no"
  25545. fi
  25546. rm -f core conftest.err conftest.$ac_objext \
  25547. conftest$ac_exeext conftest.$ac_ext
  25548. #
  25549. if test "$tst_links_gethostbyaddr" = "yes"; then
  25550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
  25551. $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
  25552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25553. /* end confdefs.h. */
  25554. $curl_includes_winsock2
  25555. $curl_includes_netdb
  25556. _ACEOF
  25557. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25558. $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
  25559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25560. $as_echo "yes" >&6; }
  25561. tst_proto_gethostbyaddr="yes"
  25562. else
  25563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25564. $as_echo "no" >&6; }
  25565. tst_proto_gethostbyaddr="no"
  25566. fi
  25567. rm -f conftest*
  25568. fi
  25569. #
  25570. if test "$tst_proto_gethostbyaddr" = "yes"; then
  25571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
  25572. $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
  25573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25574. /* end confdefs.h. */
  25575. $curl_includes_winsock2
  25576. $curl_includes_netdb
  25577. int main (void)
  25578. {
  25579. if(0 != gethostbyaddr(0, 0, 0))
  25580. return 1;
  25581. ;
  25582. return 0;
  25583. }
  25584. _ACEOF
  25585. if ac_fn_c_try_compile "$LINENO"; then :
  25586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25587. $as_echo "yes" >&6; }
  25588. tst_compi_gethostbyaddr="yes"
  25589. else
  25590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25591. $as_echo "no" >&6; }
  25592. tst_compi_gethostbyaddr="no"
  25593. fi
  25594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25595. fi
  25596. #
  25597. if test "$tst_compi_gethostbyaddr" = "yes"; then
  25598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
  25599. $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
  25600. if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
  25601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25602. $as_echo "yes" >&6; }
  25603. tst_allow_gethostbyaddr="yes"
  25604. else
  25605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25606. $as_echo "no" >&6; }
  25607. tst_allow_gethostbyaddr="no"
  25608. fi
  25609. fi
  25610. #
  25611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
  25612. $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
  25613. if test "$tst_links_gethostbyaddr" = "yes" &&
  25614. test "$tst_proto_gethostbyaddr" = "yes" &&
  25615. test "$tst_compi_gethostbyaddr" = "yes" &&
  25616. test "$tst_allow_gethostbyaddr" = "yes"; then
  25617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25618. $as_echo "yes" >&6; }
  25619. cat >>confdefs.h <<_ACEOF
  25620. #define HAVE_GETHOSTBYADDR 1
  25621. _ACEOF
  25622. ac_cv_func_gethostbyaddr="yes"
  25623. else
  25624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25625. $as_echo "no" >&6; }
  25626. ac_cv_func_gethostbyaddr="no"
  25627. fi
  25628. #
  25629. tst_links_gethostbyaddr_r="unknown"
  25630. tst_proto_gethostbyaddr_r="unknown"
  25631. tst_compi_gethostbyaddr_r="unknown"
  25632. tst_allow_gethostbyaddr_r="unknown"
  25633. tst_nargs_gethostbyaddr_r="unknown"
  25634. #
  25635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
  25636. $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
  25637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25638. /* end confdefs.h. */
  25639. #define gethostbyaddr_r innocuous_gethostbyaddr_r
  25640. #ifdef __STDC__
  25641. # include <limits.h>
  25642. #else
  25643. # include <assert.h>
  25644. #endif
  25645. #undef gethostbyaddr_r
  25646. #ifdef __cplusplus
  25647. extern "C"
  25648. #endif
  25649. char gethostbyaddr_r ();
  25650. #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
  25651. choke me
  25652. #endif
  25653. int main (void)
  25654. {
  25655. return gethostbyaddr_r ();
  25656. ;
  25657. return 0;
  25658. }
  25659. _ACEOF
  25660. if ac_fn_c_try_link "$LINENO"; then :
  25661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25662. $as_echo "yes" >&6; }
  25663. tst_links_gethostbyaddr_r="yes"
  25664. else
  25665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25666. $as_echo "no" >&6; }
  25667. tst_links_gethostbyaddr_r="no"
  25668. fi
  25669. rm -f core conftest.err conftest.$ac_objext \
  25670. conftest$ac_exeext conftest.$ac_ext
  25671. #
  25672. if test "$tst_links_gethostbyaddr_r" = "yes"; then
  25673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
  25674. $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
  25675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25676. /* end confdefs.h. */
  25677. $curl_includes_netdb
  25678. _ACEOF
  25679. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25680. $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
  25681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25682. $as_echo "yes" >&6; }
  25683. tst_proto_gethostbyaddr_r="yes"
  25684. else
  25685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25686. $as_echo "no" >&6; }
  25687. tst_proto_gethostbyaddr_r="no"
  25688. fi
  25689. rm -f conftest*
  25690. fi
  25691. #
  25692. if test "$tst_proto_gethostbyaddr_r" = "yes"; then
  25693. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
  25695. $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
  25696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25697. /* end confdefs.h. */
  25698. $curl_includes_netdb
  25699. int main (void)
  25700. {
  25701. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
  25702. return 1;
  25703. ;
  25704. return 0;
  25705. }
  25706. _ACEOF
  25707. if ac_fn_c_try_compile "$LINENO"; then :
  25708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25709. $as_echo "yes" >&6; }
  25710. tst_compi_gethostbyaddr_r="yes"
  25711. tst_nargs_gethostbyaddr_r="5"
  25712. else
  25713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25714. $as_echo "no" >&6; }
  25715. tst_compi_gethostbyaddr_r="no"
  25716. fi
  25717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25718. fi
  25719. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
  25721. $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
  25722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25723. /* end confdefs.h. */
  25724. $curl_includes_netdb
  25725. int main (void)
  25726. {
  25727. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
  25728. return 1;
  25729. ;
  25730. return 0;
  25731. }
  25732. _ACEOF
  25733. if ac_fn_c_try_compile "$LINENO"; then :
  25734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25735. $as_echo "yes" >&6; }
  25736. tst_compi_gethostbyaddr_r="yes"
  25737. tst_nargs_gethostbyaddr_r="7"
  25738. else
  25739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25740. $as_echo "no" >&6; }
  25741. tst_compi_gethostbyaddr_r="no"
  25742. fi
  25743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25744. fi
  25745. if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
  25746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
  25747. $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
  25748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25749. /* end confdefs.h. */
  25750. $curl_includes_netdb
  25751. int main (void)
  25752. {
  25753. if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
  25754. return 1;
  25755. ;
  25756. return 0;
  25757. }
  25758. _ACEOF
  25759. if ac_fn_c_try_compile "$LINENO"; then :
  25760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25761. $as_echo "yes" >&6; }
  25762. tst_compi_gethostbyaddr_r="yes"
  25763. tst_nargs_gethostbyaddr_r="8"
  25764. else
  25765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25766. $as_echo "no" >&6; }
  25767. tst_compi_gethostbyaddr_r="no"
  25768. fi
  25769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25770. fi
  25771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
  25772. $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
  25773. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  25774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25775. $as_echo "yes" >&6; }
  25776. else
  25777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25778. $as_echo "no" >&6; }
  25779. fi
  25780. fi
  25781. #
  25782. if test "$tst_compi_gethostbyaddr_r" = "yes"; then
  25783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
  25784. $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
  25785. if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
  25786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25787. $as_echo "yes" >&6; }
  25788. tst_allow_gethostbyaddr_r="yes"
  25789. else
  25790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25791. $as_echo "no" >&6; }
  25792. tst_allow_gethostbyaddr_r="no"
  25793. fi
  25794. fi
  25795. #
  25796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
  25797. $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
  25798. if test "$tst_links_gethostbyaddr_r" = "yes" &&
  25799. test "$tst_proto_gethostbyaddr_r" = "yes" &&
  25800. test "$tst_compi_gethostbyaddr_r" = "yes" &&
  25801. test "$tst_allow_gethostbyaddr_r" = "yes"; then
  25802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25803. $as_echo "yes" >&6; }
  25804. cat >>confdefs.h <<_ACEOF
  25805. #define HAVE_GETHOSTBYADDR_R 1
  25806. _ACEOF
  25807. #
  25808. if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
  25809. $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
  25810. elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
  25811. $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
  25812. elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
  25813. $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
  25814. fi
  25815. #
  25816. ac_cv_func_gethostbyaddr_r="yes"
  25817. else
  25818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25819. $as_echo "no" >&6; }
  25820. ac_cv_func_gethostbyaddr_r="no"
  25821. fi
  25822. #
  25823. tst_links_gethostbyname="unknown"
  25824. tst_proto_gethostbyname="unknown"
  25825. tst_compi_gethostbyname="unknown"
  25826. tst_allow_gethostbyname="unknown"
  25827. #
  25828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
  25829. $as_echo_n "checking if gethostbyname can be linked... " >&6; }
  25830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25831. /* end confdefs.h. */
  25832. $curl_includes_winsock2
  25833. $curl_includes_netdb
  25834. int main (void)
  25835. {
  25836. if(0 != gethostbyname(0))
  25837. return 1;
  25838. ;
  25839. return 0;
  25840. }
  25841. _ACEOF
  25842. if ac_fn_c_try_link "$LINENO"; then :
  25843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25844. $as_echo "yes" >&6; }
  25845. tst_links_gethostbyname="yes"
  25846. else
  25847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25848. $as_echo "no" >&6; }
  25849. tst_links_gethostbyname="no"
  25850. fi
  25851. rm -f core conftest.err conftest.$ac_objext \
  25852. conftest$ac_exeext conftest.$ac_ext
  25853. #
  25854. if test "$tst_links_gethostbyname" = "yes"; then
  25855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
  25856. $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
  25857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25858. /* end confdefs.h. */
  25859. $curl_includes_winsock2
  25860. $curl_includes_netdb
  25861. _ACEOF
  25862. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25863. $EGREP "gethostbyname" >/dev/null 2>&1; then :
  25864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25865. $as_echo "yes" >&6; }
  25866. tst_proto_gethostbyname="yes"
  25867. else
  25868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25869. $as_echo "no" >&6; }
  25870. tst_proto_gethostbyname="no"
  25871. fi
  25872. rm -f conftest*
  25873. fi
  25874. #
  25875. if test "$tst_proto_gethostbyname" = "yes"; then
  25876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
  25877. $as_echo_n "checking if gethostbyname is compilable... " >&6; }
  25878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25879. /* end confdefs.h. */
  25880. $curl_includes_winsock2
  25881. $curl_includes_netdb
  25882. int main (void)
  25883. {
  25884. if(0 != gethostbyname(0))
  25885. return 1;
  25886. ;
  25887. return 0;
  25888. }
  25889. _ACEOF
  25890. if ac_fn_c_try_compile "$LINENO"; then :
  25891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25892. $as_echo "yes" >&6; }
  25893. tst_compi_gethostbyname="yes"
  25894. else
  25895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25896. $as_echo "no" >&6; }
  25897. tst_compi_gethostbyname="no"
  25898. fi
  25899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25900. fi
  25901. #
  25902. if test "$tst_compi_gethostbyname" = "yes"; then
  25903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
  25904. $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
  25905. if test "x$curl_disallow_gethostbyname" != "xyes"; then
  25906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25907. $as_echo "yes" >&6; }
  25908. tst_allow_gethostbyname="yes"
  25909. else
  25910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25911. $as_echo "no" >&6; }
  25912. tst_allow_gethostbyname="no"
  25913. fi
  25914. fi
  25915. #
  25916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
  25917. $as_echo_n "checking if gethostbyname might be used... " >&6; }
  25918. if test "$tst_links_gethostbyname" = "yes" &&
  25919. test "$tst_proto_gethostbyname" = "yes" &&
  25920. test "$tst_compi_gethostbyname" = "yes" &&
  25921. test "$tst_allow_gethostbyname" = "yes"; then
  25922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25923. $as_echo "yes" >&6; }
  25924. cat >>confdefs.h <<_ACEOF
  25925. #define HAVE_GETHOSTBYNAME 1
  25926. _ACEOF
  25927. ac_cv_func_gethostbyname="yes"
  25928. else
  25929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25930. $as_echo "no" >&6; }
  25931. ac_cv_func_gethostbyname="no"
  25932. fi
  25933. #
  25934. tst_links_gethostbyname_r="unknown"
  25935. tst_proto_gethostbyname_r="unknown"
  25936. tst_compi_gethostbyname_r="unknown"
  25937. tst_allow_gethostbyname_r="unknown"
  25938. tst_nargs_gethostbyname_r="unknown"
  25939. #
  25940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
  25941. $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
  25942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25943. /* end confdefs.h. */
  25944. #define gethostbyname_r innocuous_gethostbyname_r
  25945. #ifdef __STDC__
  25946. # include <limits.h>
  25947. #else
  25948. # include <assert.h>
  25949. #endif
  25950. #undef gethostbyname_r
  25951. #ifdef __cplusplus
  25952. extern "C"
  25953. #endif
  25954. char gethostbyname_r ();
  25955. #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
  25956. choke me
  25957. #endif
  25958. int main (void)
  25959. {
  25960. return gethostbyname_r ();
  25961. ;
  25962. return 0;
  25963. }
  25964. _ACEOF
  25965. if ac_fn_c_try_link "$LINENO"; then :
  25966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25967. $as_echo "yes" >&6; }
  25968. tst_links_gethostbyname_r="yes"
  25969. else
  25970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25971. $as_echo "no" >&6; }
  25972. tst_links_gethostbyname_r="no"
  25973. fi
  25974. rm -f core conftest.err conftest.$ac_objext \
  25975. conftest$ac_exeext conftest.$ac_ext
  25976. #
  25977. if test "$tst_links_gethostbyname_r" = "yes"; then
  25978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
  25979. $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
  25980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25981. /* end confdefs.h. */
  25982. $curl_includes_netdb
  25983. _ACEOF
  25984. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25985. $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
  25986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25987. $as_echo "yes" >&6; }
  25988. tst_proto_gethostbyname_r="yes"
  25989. else
  25990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25991. $as_echo "no" >&6; }
  25992. tst_proto_gethostbyname_r="no"
  25993. fi
  25994. rm -f conftest*
  25995. fi
  25996. #
  25997. if test "$tst_proto_gethostbyname_r" = "yes"; then
  25998. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  25999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
  26000. $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
  26001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26002. /* end confdefs.h. */
  26003. $curl_includes_netdb
  26004. int main (void)
  26005. {
  26006. if(0 != gethostbyname_r(0, 0, 0))
  26007. return 1;
  26008. ;
  26009. return 0;
  26010. }
  26011. _ACEOF
  26012. if ac_fn_c_try_compile "$LINENO"; then :
  26013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26014. $as_echo "yes" >&6; }
  26015. tst_compi_gethostbyname_r="yes"
  26016. tst_nargs_gethostbyname_r="3"
  26017. else
  26018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26019. $as_echo "no" >&6; }
  26020. tst_compi_gethostbyname_r="no"
  26021. fi
  26022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26023. fi
  26024. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  26025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
  26026. $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
  26027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26028. /* end confdefs.h. */
  26029. $curl_includes_netdb
  26030. int main (void)
  26031. {
  26032. if(0 != gethostbyname_r(0, 0, 0, 0, 0))
  26033. return 1;
  26034. ;
  26035. return 0;
  26036. }
  26037. _ACEOF
  26038. if ac_fn_c_try_compile "$LINENO"; then :
  26039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26040. $as_echo "yes" >&6; }
  26041. tst_compi_gethostbyname_r="yes"
  26042. tst_nargs_gethostbyname_r="5"
  26043. else
  26044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26045. $as_echo "no" >&6; }
  26046. tst_compi_gethostbyname_r="no"
  26047. fi
  26048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26049. fi
  26050. if test "$tst_nargs_gethostbyname_r" = "unknown"; then
  26051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
  26052. $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
  26053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26054. /* end confdefs.h. */
  26055. $curl_includes_netdb
  26056. int main (void)
  26057. {
  26058. if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
  26059. return 1;
  26060. ;
  26061. return 0;
  26062. }
  26063. _ACEOF
  26064. if ac_fn_c_try_compile "$LINENO"; then :
  26065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26066. $as_echo "yes" >&6; }
  26067. tst_compi_gethostbyname_r="yes"
  26068. tst_nargs_gethostbyname_r="6"
  26069. else
  26070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26071. $as_echo "no" >&6; }
  26072. tst_compi_gethostbyname_r="no"
  26073. fi
  26074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26075. fi
  26076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
  26077. $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
  26078. if test "$tst_compi_gethostbyname_r" = "yes"; then
  26079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26080. $as_echo "yes" >&6; }
  26081. else
  26082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26083. $as_echo "no" >&6; }
  26084. fi
  26085. fi
  26086. #
  26087. if test "$tst_compi_gethostbyname_r" = "yes"; then
  26088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
  26089. $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
  26090. if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
  26091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26092. $as_echo "yes" >&6; }
  26093. tst_allow_gethostbyname_r="yes"
  26094. else
  26095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26096. $as_echo "no" >&6; }
  26097. tst_allow_gethostbyname_r="no"
  26098. fi
  26099. fi
  26100. #
  26101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
  26102. $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
  26103. if test "$tst_links_gethostbyname_r" = "yes" &&
  26104. test "$tst_proto_gethostbyname_r" = "yes" &&
  26105. test "$tst_compi_gethostbyname_r" = "yes" &&
  26106. test "$tst_allow_gethostbyname_r" = "yes"; then
  26107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26108. $as_echo "yes" >&6; }
  26109. cat >>confdefs.h <<_ACEOF
  26110. #define HAVE_GETHOSTBYNAME_R 1
  26111. _ACEOF
  26112. #
  26113. if test "$tst_nargs_gethostbyname_r" -eq "3"; then
  26114. $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
  26115. elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
  26116. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  26117. elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
  26118. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  26119. fi
  26120. #
  26121. ac_cv_func_gethostbyname_r="yes"
  26122. else
  26123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26124. $as_echo "no" >&6; }
  26125. ac_cv_func_gethostbyname_r="no"
  26126. fi
  26127. #
  26128. tst_links_gethostname="unknown"
  26129. tst_proto_gethostname="unknown"
  26130. tst_compi_gethostname="unknown"
  26131. tst_allow_gethostname="unknown"
  26132. #
  26133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
  26134. $as_echo_n "checking if gethostname can be linked... " >&6; }
  26135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26136. /* end confdefs.h. */
  26137. $curl_includes_winsock2
  26138. $curl_includes_unistd
  26139. int main (void)
  26140. {
  26141. if(0 != gethostname(0, 0))
  26142. return 1;
  26143. ;
  26144. return 0;
  26145. }
  26146. _ACEOF
  26147. if ac_fn_c_try_link "$LINENO"; then :
  26148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26149. $as_echo "yes" >&6; }
  26150. tst_links_gethostname="yes"
  26151. else
  26152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26153. $as_echo "no" >&6; }
  26154. tst_links_gethostname="no"
  26155. fi
  26156. rm -f core conftest.err conftest.$ac_objext \
  26157. conftest$ac_exeext conftest.$ac_ext
  26158. #
  26159. if test "$tst_links_gethostname" = "yes"; then
  26160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
  26161. $as_echo_n "checking if gethostname is prototyped... " >&6; }
  26162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26163. /* end confdefs.h. */
  26164. $curl_includes_winsock2
  26165. $curl_includes_unistd
  26166. _ACEOF
  26167. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26168. $EGREP "gethostname" >/dev/null 2>&1; then :
  26169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26170. $as_echo "yes" >&6; }
  26171. tst_proto_gethostname="yes"
  26172. else
  26173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26174. $as_echo "no" >&6; }
  26175. tst_proto_gethostname="no"
  26176. fi
  26177. rm -f conftest*
  26178. fi
  26179. #
  26180. if test "$tst_proto_gethostname" = "yes"; then
  26181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
  26182. $as_echo_n "checking if gethostname is compilable... " >&6; }
  26183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26184. /* end confdefs.h. */
  26185. $curl_includes_winsock2
  26186. $curl_includes_unistd
  26187. int main (void)
  26188. {
  26189. if(0 != gethostname(0, 0))
  26190. return 1;
  26191. ;
  26192. return 0;
  26193. }
  26194. _ACEOF
  26195. if ac_fn_c_try_compile "$LINENO"; then :
  26196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26197. $as_echo "yes" >&6; }
  26198. tst_compi_gethostname="yes"
  26199. else
  26200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26201. $as_echo "no" >&6; }
  26202. tst_compi_gethostname="no"
  26203. fi
  26204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26205. fi
  26206. #
  26207. if test "$tst_compi_gethostname" = "yes"; then
  26208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
  26209. $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
  26210. tst_gethostname_type_arg2="unknown"
  26211. for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
  26212. for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
  26213. if test "$tst_gethostname_type_arg2" = "unknown"; then
  26214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26215. /* end confdefs.h. */
  26216. $curl_includes_winsock2
  26217. $curl_includes_unistd
  26218. $curl_preprocess_callconv
  26219. extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
  26220. int main (void)
  26221. {
  26222. if(0 != gethostname(0, 0))
  26223. return 1;
  26224. ;
  26225. return 0;
  26226. }
  26227. _ACEOF
  26228. if ac_fn_c_try_compile "$LINENO"; then :
  26229. tst_gethostname_type_arg2="$tst_arg2"
  26230. fi
  26231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26232. fi
  26233. done
  26234. done
  26235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
  26236. $as_echo "$tst_gethostname_type_arg2" >&6; }
  26237. if test "$tst_gethostname_type_arg2" != "unknown"; then
  26238. cat >>confdefs.h <<_ACEOF
  26239. #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
  26240. _ACEOF
  26241. fi
  26242. fi
  26243. #
  26244. if test "$tst_compi_gethostname" = "yes"; then
  26245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
  26246. $as_echo_n "checking if gethostname usage allowed... " >&6; }
  26247. if test "x$curl_disallow_gethostname" != "xyes"; then
  26248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26249. $as_echo "yes" >&6; }
  26250. tst_allow_gethostname="yes"
  26251. else
  26252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26253. $as_echo "no" >&6; }
  26254. tst_allow_gethostname="no"
  26255. fi
  26256. fi
  26257. #
  26258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
  26259. $as_echo_n "checking if gethostname might be used... " >&6; }
  26260. if test "$tst_links_gethostname" = "yes" &&
  26261. test "$tst_proto_gethostname" = "yes" &&
  26262. test "$tst_compi_gethostname" = "yes" &&
  26263. test "$tst_allow_gethostname" = "yes"; then
  26264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26265. $as_echo "yes" >&6; }
  26266. cat >>confdefs.h <<_ACEOF
  26267. #define HAVE_GETHOSTNAME 1
  26268. _ACEOF
  26269. ac_cv_func_gethostname="yes"
  26270. else
  26271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26272. $as_echo "no" >&6; }
  26273. ac_cv_func_gethostname="no"
  26274. fi
  26275. #
  26276. tst_links_getifaddrs="unknown"
  26277. tst_proto_getifaddrs="unknown"
  26278. tst_compi_getifaddrs="unknown"
  26279. tst_works_getifaddrs="unknown"
  26280. tst_allow_getifaddrs="unknown"
  26281. #
  26282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
  26283. $as_echo_n "checking if getifaddrs can be linked... " >&6; }
  26284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26285. /* end confdefs.h. */
  26286. #define getifaddrs innocuous_getifaddrs
  26287. #ifdef __STDC__
  26288. # include <limits.h>
  26289. #else
  26290. # include <assert.h>
  26291. #endif
  26292. #undef getifaddrs
  26293. #ifdef __cplusplus
  26294. extern "C"
  26295. #endif
  26296. char getifaddrs ();
  26297. #if defined __stub_getifaddrs || defined __stub___getifaddrs
  26298. choke me
  26299. #endif
  26300. int main (void)
  26301. {
  26302. return getifaddrs ();
  26303. ;
  26304. return 0;
  26305. }
  26306. _ACEOF
  26307. if ac_fn_c_try_link "$LINENO"; then :
  26308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26309. $as_echo "yes" >&6; }
  26310. tst_links_getifaddrs="yes"
  26311. else
  26312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26313. $as_echo "no" >&6; }
  26314. tst_links_getifaddrs="no"
  26315. fi
  26316. rm -f core conftest.err conftest.$ac_objext \
  26317. conftest$ac_exeext conftest.$ac_ext
  26318. #
  26319. if test "$tst_links_getifaddrs" = "yes"; then
  26320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
  26321. $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
  26322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26323. /* end confdefs.h. */
  26324. $curl_includes_ifaddrs
  26325. _ACEOF
  26326. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26327. $EGREP "getifaddrs" >/dev/null 2>&1; then :
  26328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26329. $as_echo "yes" >&6; }
  26330. tst_proto_getifaddrs="yes"
  26331. else
  26332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26333. $as_echo "no" >&6; }
  26334. tst_proto_getifaddrs="no"
  26335. fi
  26336. rm -f conftest*
  26337. fi
  26338. #
  26339. if test "$tst_proto_getifaddrs" = "yes"; then
  26340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
  26341. $as_echo_n "checking if getifaddrs is compilable... " >&6; }
  26342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26343. /* end confdefs.h. */
  26344. $curl_includes_ifaddrs
  26345. int main (void)
  26346. {
  26347. if(0 != getifaddrs(0))
  26348. return 1;
  26349. ;
  26350. return 0;
  26351. }
  26352. _ACEOF
  26353. if ac_fn_c_try_compile "$LINENO"; then :
  26354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26355. $as_echo "yes" >&6; }
  26356. tst_compi_getifaddrs="yes"
  26357. else
  26358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26359. $as_echo "no" >&6; }
  26360. tst_compi_getifaddrs="no"
  26361. fi
  26362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26363. fi
  26364. #
  26365. if test "x$cross_compiling" != "xyes" &&
  26366. test "$tst_compi_getifaddrs" = "yes"; then
  26367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
  26368. $as_echo_n "checking if getifaddrs seems to work... " >&6; }
  26369. if test "$cross_compiling" = yes; then :
  26370. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26371. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26372. as_fn_error $? "cannot run test program while cross compiling
  26373. See \`config.log' for more details" "$LINENO" 5; }
  26374. else
  26375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26376. /* end confdefs.h. */
  26377. $curl_includes_stdlib
  26378. $curl_includes_ifaddrs
  26379. int main (void)
  26380. {
  26381. struct ifaddrs *ifa = 0;
  26382. int error;
  26383. error = getifaddrs(&ifa);
  26384. if(error || !ifa)
  26385. exit(1); /* fail */
  26386. else
  26387. exit(0);
  26388. ;
  26389. return 0;
  26390. }
  26391. _ACEOF
  26392. if ac_fn_c_try_run "$LINENO"; then :
  26393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26394. $as_echo "yes" >&6; }
  26395. tst_works_getifaddrs="yes"
  26396. else
  26397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26398. $as_echo "no" >&6; }
  26399. tst_works_getifaddrs="no"
  26400. fi
  26401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26402. conftest.$ac_objext conftest.beam conftest.$ac_ext
  26403. fi
  26404. fi
  26405. #
  26406. if test "$tst_compi_getifaddrs" = "yes" &&
  26407. test "$tst_works_getifaddrs" != "no"; then
  26408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
  26409. $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
  26410. if test "x$curl_disallow_getifaddrs" != "xyes"; then
  26411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26412. $as_echo "yes" >&6; }
  26413. tst_allow_getifaddrs="yes"
  26414. else
  26415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26416. $as_echo "no" >&6; }
  26417. tst_allow_getifaddrs="no"
  26418. fi
  26419. fi
  26420. #
  26421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
  26422. $as_echo_n "checking if getifaddrs might be used... " >&6; }
  26423. if test "$tst_links_getifaddrs" = "yes" &&
  26424. test "$tst_proto_getifaddrs" = "yes" &&
  26425. test "$tst_compi_getifaddrs" = "yes" &&
  26426. test "$tst_allow_getifaddrs" = "yes" &&
  26427. test "$tst_works_getifaddrs" != "no"; then
  26428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26429. $as_echo "yes" >&6; }
  26430. cat >>confdefs.h <<_ACEOF
  26431. #define HAVE_GETIFADDRS 1
  26432. _ACEOF
  26433. ac_cv_func_getifaddrs="yes"
  26434. else
  26435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26436. $as_echo "no" >&6; }
  26437. ac_cv_func_getifaddrs="no"
  26438. fi
  26439. #
  26440. tst_links_getservbyport_r="unknown"
  26441. tst_proto_getservbyport_r="unknown"
  26442. tst_compi_getservbyport_r="unknown"
  26443. tst_allow_getservbyport_r="unknown"
  26444. tst_nargs_getservbyport_r="unknown"
  26445. #
  26446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
  26447. $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
  26448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26449. /* end confdefs.h. */
  26450. #define getservbyport_r innocuous_getservbyport_r
  26451. #ifdef __STDC__
  26452. # include <limits.h>
  26453. #else
  26454. # include <assert.h>
  26455. #endif
  26456. #undef getservbyport_r
  26457. #ifdef __cplusplus
  26458. extern "C"
  26459. #endif
  26460. char getservbyport_r ();
  26461. #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
  26462. choke me
  26463. #endif
  26464. int main (void)
  26465. {
  26466. return getservbyport_r ();
  26467. ;
  26468. return 0;
  26469. }
  26470. _ACEOF
  26471. if ac_fn_c_try_link "$LINENO"; then :
  26472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26473. $as_echo "yes" >&6; }
  26474. tst_links_getservbyport_r="yes"
  26475. else
  26476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26477. $as_echo "no" >&6; }
  26478. tst_links_getservbyport_r="no"
  26479. fi
  26480. rm -f core conftest.err conftest.$ac_objext \
  26481. conftest$ac_exeext conftest.$ac_ext
  26482. #
  26483. if test "$tst_links_getservbyport_r" = "yes"; then
  26484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
  26485. $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
  26486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26487. /* end confdefs.h. */
  26488. $curl_includes_netdb
  26489. _ACEOF
  26490. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26491. $EGREP "getservbyport_r" >/dev/null 2>&1; then :
  26492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26493. $as_echo "yes" >&6; }
  26494. tst_proto_getservbyport_r="yes"
  26495. else
  26496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26497. $as_echo "no" >&6; }
  26498. tst_proto_getservbyport_r="no"
  26499. fi
  26500. rm -f conftest*
  26501. fi
  26502. #
  26503. if test "$tst_proto_getservbyport_r" = "yes"; then
  26504. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
  26506. $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
  26507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26508. /* end confdefs.h. */
  26509. $curl_includes_netdb
  26510. int main (void)
  26511. {
  26512. if(0 != getservbyport_r(0, 0, 0, 0))
  26513. return 1;
  26514. ;
  26515. return 0;
  26516. }
  26517. _ACEOF
  26518. if ac_fn_c_try_compile "$LINENO"; then :
  26519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26520. $as_echo "yes" >&6; }
  26521. tst_compi_getservbyport_r="yes"
  26522. tst_nargs_getservbyport_r="4"
  26523. else
  26524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26525. $as_echo "no" >&6; }
  26526. tst_compi_getservbyport_r="no"
  26527. fi
  26528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26529. fi
  26530. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
  26532. $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
  26533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26534. /* end confdefs.h. */
  26535. $curl_includes_netdb
  26536. int main (void)
  26537. {
  26538. if(0 != getservbyport_r(0, 0, 0, 0, 0))
  26539. return 1;
  26540. ;
  26541. return 0;
  26542. }
  26543. _ACEOF
  26544. if ac_fn_c_try_compile "$LINENO"; then :
  26545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26546. $as_echo "yes" >&6; }
  26547. tst_compi_getservbyport_r="yes"
  26548. tst_nargs_getservbyport_r="5"
  26549. else
  26550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26551. $as_echo "no" >&6; }
  26552. tst_compi_getservbyport_r="no"
  26553. fi
  26554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26555. fi
  26556. if test "$tst_nargs_getservbyport_r" = "unknown"; then
  26557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
  26558. $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
  26559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26560. /* end confdefs.h. */
  26561. $curl_includes_netdb
  26562. int main (void)
  26563. {
  26564. if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
  26565. return 1;
  26566. ;
  26567. return 0;
  26568. }
  26569. _ACEOF
  26570. if ac_fn_c_try_compile "$LINENO"; then :
  26571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26572. $as_echo "yes" >&6; }
  26573. tst_compi_getservbyport_r="yes"
  26574. tst_nargs_getservbyport_r="6"
  26575. else
  26576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26577. $as_echo "no" >&6; }
  26578. tst_compi_getservbyport_r="no"
  26579. fi
  26580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26581. fi
  26582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
  26583. $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
  26584. if test "$tst_compi_getservbyport_r" = "yes"; then
  26585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26586. $as_echo "yes" >&6; }
  26587. else
  26588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26589. $as_echo "no" >&6; }
  26590. fi
  26591. fi
  26592. #
  26593. if test "$tst_compi_getservbyport_r" = "yes"; then
  26594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
  26595. $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
  26596. if test "x$curl_disallow_getservbyport_r" != "xyes"; then
  26597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26598. $as_echo "yes" >&6; }
  26599. tst_allow_getservbyport_r="yes"
  26600. else
  26601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26602. $as_echo "no" >&6; }
  26603. tst_allow_getservbyport_r="no"
  26604. fi
  26605. fi
  26606. #
  26607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
  26608. $as_echo_n "checking if getservbyport_r might be used... " >&6; }
  26609. if test "$tst_links_getservbyport_r" = "yes" &&
  26610. test "$tst_proto_getservbyport_r" = "yes" &&
  26611. test "$tst_compi_getservbyport_r" = "yes" &&
  26612. test "$tst_allow_getservbyport_r" = "yes"; then
  26613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26614. $as_echo "yes" >&6; }
  26615. cat >>confdefs.h <<_ACEOF
  26616. #define HAVE_GETSERVBYPORT_R 1
  26617. _ACEOF
  26618. cat >>confdefs.h <<_ACEOF
  26619. #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
  26620. _ACEOF
  26621. if test "$tst_nargs_getservbyport_r" -eq "4"; then
  26622. $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
  26623. else
  26624. $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
  26625. fi
  26626. ac_cv_func_getservbyport_r="yes"
  26627. else
  26628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26629. $as_echo "no" >&6; }
  26630. ac_cv_func_getservbyport_r="no"
  26631. fi
  26632. curl_includes_time="\
  26633. /* includes start */
  26634. #ifdef HAVE_SYS_TYPES_H
  26635. # include <sys/types.h>
  26636. #endif
  26637. #ifdef HAVE_SYS_TIME_H
  26638. # include <sys/time.h>
  26639. # ifdef TIME_WITH_SYS_TIME
  26640. # include <time.h>
  26641. # endif
  26642. #else
  26643. # ifdef HAVE_TIME_H
  26644. # include <time.h>
  26645. # endif
  26646. #endif
  26647. /* includes end */"
  26648. for ac_header in sys/types.h sys/time.h time.h
  26649. do :
  26650. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26651. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
  26652. "
  26653. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26654. cat >>confdefs.h <<_ACEOF
  26655. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26656. _ACEOF
  26657. fi
  26658. done
  26659. #
  26660. tst_links_gmtime_r="unknown"
  26661. tst_proto_gmtime_r="unknown"
  26662. tst_compi_gmtime_r="unknown"
  26663. tst_works_gmtime_r="unknown"
  26664. tst_allow_gmtime_r="unknown"
  26665. #
  26666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
  26667. $as_echo_n "checking if gmtime_r can be linked... " >&6; }
  26668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26669. /* end confdefs.h. */
  26670. #define gmtime_r innocuous_gmtime_r
  26671. #ifdef __STDC__
  26672. # include <limits.h>
  26673. #else
  26674. # include <assert.h>
  26675. #endif
  26676. #undef gmtime_r
  26677. #ifdef __cplusplus
  26678. extern "C"
  26679. #endif
  26680. char gmtime_r ();
  26681. #if defined __stub_gmtime_r || defined __stub___gmtime_r
  26682. choke me
  26683. #endif
  26684. int main (void)
  26685. {
  26686. return gmtime_r ();
  26687. ;
  26688. return 0;
  26689. }
  26690. _ACEOF
  26691. if ac_fn_c_try_link "$LINENO"; then :
  26692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26693. $as_echo "yes" >&6; }
  26694. tst_links_gmtime_r="yes"
  26695. else
  26696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26697. $as_echo "no" >&6; }
  26698. tst_links_gmtime_r="no"
  26699. fi
  26700. rm -f core conftest.err conftest.$ac_objext \
  26701. conftest$ac_exeext conftest.$ac_ext
  26702. #
  26703. if test "$tst_links_gmtime_r" = "yes"; then
  26704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
  26705. $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
  26706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26707. /* end confdefs.h. */
  26708. $curl_includes_time
  26709. _ACEOF
  26710. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26711. $EGREP "gmtime_r" >/dev/null 2>&1; then :
  26712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26713. $as_echo "yes" >&6; }
  26714. tst_proto_gmtime_r="yes"
  26715. else
  26716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26717. $as_echo "no" >&6; }
  26718. tst_proto_gmtime_r="no"
  26719. fi
  26720. rm -f conftest*
  26721. fi
  26722. #
  26723. if test "$tst_proto_gmtime_r" = "yes"; then
  26724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
  26725. $as_echo_n "checking if gmtime_r is compilable... " >&6; }
  26726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26727. /* end confdefs.h. */
  26728. $curl_includes_time
  26729. int main (void)
  26730. {
  26731. if(0 != gmtime_r(0, 0))
  26732. return 1;
  26733. ;
  26734. return 0;
  26735. }
  26736. _ACEOF
  26737. if ac_fn_c_try_compile "$LINENO"; then :
  26738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26739. $as_echo "yes" >&6; }
  26740. tst_compi_gmtime_r="yes"
  26741. else
  26742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26743. $as_echo "no" >&6; }
  26744. tst_compi_gmtime_r="no"
  26745. fi
  26746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26747. fi
  26748. #
  26749. if test "x$cross_compiling" != "xyes" &&
  26750. test "$tst_compi_gmtime_r" = "yes"; then
  26751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
  26752. $as_echo_n "checking if gmtime_r seems to work... " >&6; }
  26753. if test "$cross_compiling" = yes; then :
  26754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  26755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  26756. as_fn_error $? "cannot run test program while cross compiling
  26757. See \`config.log' for more details" "$LINENO" 5; }
  26758. else
  26759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26760. /* end confdefs.h. */
  26761. $curl_includes_stdlib
  26762. $curl_includes_time
  26763. int main (void)
  26764. {
  26765. time_t local = 1170352587;
  26766. struct tm *gmt = 0;
  26767. struct tm result;
  26768. gmt = gmtime_r(&local, &result);
  26769. if(gmt)
  26770. exit(0);
  26771. else
  26772. exit(1);
  26773. ;
  26774. return 0;
  26775. }
  26776. _ACEOF
  26777. if ac_fn_c_try_run "$LINENO"; then :
  26778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26779. $as_echo "yes" >&6; }
  26780. tst_works_gmtime_r="yes"
  26781. else
  26782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26783. $as_echo "no" >&6; }
  26784. tst_works_gmtime_r="no"
  26785. fi
  26786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  26787. conftest.$ac_objext conftest.beam conftest.$ac_ext
  26788. fi
  26789. fi
  26790. #
  26791. if test "$tst_compi_gmtime_r" = "yes" &&
  26792. test "$tst_works_gmtime_r" != "no"; then
  26793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
  26794. $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
  26795. if test "x$curl_disallow_gmtime_r" != "xyes"; then
  26796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26797. $as_echo "yes" >&6; }
  26798. tst_allow_gmtime_r="yes"
  26799. else
  26800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26801. $as_echo "no" >&6; }
  26802. tst_allow_gmtime_r="no"
  26803. fi
  26804. fi
  26805. #
  26806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
  26807. $as_echo_n "checking if gmtime_r might be used... " >&6; }
  26808. if test "$tst_links_gmtime_r" = "yes" &&
  26809. test "$tst_proto_gmtime_r" = "yes" &&
  26810. test "$tst_compi_gmtime_r" = "yes" &&
  26811. test "$tst_allow_gmtime_r" = "yes" &&
  26812. test "$tst_works_gmtime_r" != "no"; then
  26813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26814. $as_echo "yes" >&6; }
  26815. cat >>confdefs.h <<_ACEOF
  26816. #define HAVE_GMTIME_R 1
  26817. _ACEOF
  26818. ac_cv_func_gmtime_r="yes"
  26819. else
  26820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26821. $as_echo "no" >&6; }
  26822. ac_cv_func_gmtime_r="no"
  26823. fi
  26824. curl_includes_arpa_inet="\
  26825. /* includes start */
  26826. #ifdef HAVE_SYS_TYPES_H
  26827. # include <sys/types.h>
  26828. #endif
  26829. #ifdef HAVE_SYS_SOCKET_H
  26830. # include <sys/socket.h>
  26831. #endif
  26832. #ifdef HAVE_NETINET_IN_H
  26833. # include <netinet/in.h>
  26834. #endif
  26835. #ifdef HAVE_ARPA_INET_H
  26836. # include <arpa/inet.h>
  26837. #endif
  26838. /* includes end */"
  26839. for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
  26840. do :
  26841. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  26842. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
  26843. "
  26844. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  26845. cat >>confdefs.h <<_ACEOF
  26846. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  26847. _ACEOF
  26848. fi
  26849. done
  26850. #
  26851. tst_links_inet_ntoa_r="unknown"
  26852. tst_proto_inet_ntoa_r="unknown"
  26853. tst_compi_inet_ntoa_r="unknown"
  26854. tst_allow_inet_ntoa_r="unknown"
  26855. tst_nargs_inet_ntoa_r="unknown"
  26856. #
  26857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
  26858. $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
  26859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26860. /* end confdefs.h. */
  26861. #define inet_ntoa_r innocuous_inet_ntoa_r
  26862. #ifdef __STDC__
  26863. # include <limits.h>
  26864. #else
  26865. # include <assert.h>
  26866. #endif
  26867. #undef inet_ntoa_r
  26868. #ifdef __cplusplus
  26869. extern "C"
  26870. #endif
  26871. char inet_ntoa_r ();
  26872. #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
  26873. choke me
  26874. #endif
  26875. int main (void)
  26876. {
  26877. return inet_ntoa_r ();
  26878. ;
  26879. return 0;
  26880. }
  26881. _ACEOF
  26882. if ac_fn_c_try_link "$LINENO"; then :
  26883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26884. $as_echo "yes" >&6; }
  26885. tst_links_inet_ntoa_r="yes"
  26886. else
  26887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26888. $as_echo "no" >&6; }
  26889. tst_links_inet_ntoa_r="no"
  26890. fi
  26891. rm -f core conftest.err conftest.$ac_objext \
  26892. conftest$ac_exeext conftest.$ac_ext
  26893. #
  26894. if test "$tst_links_inet_ntoa_r" = "yes"; then
  26895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
  26896. $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
  26897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26898. /* end confdefs.h. */
  26899. $curl_includes_arpa_inet
  26900. _ACEOF
  26901. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  26902. $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
  26903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26904. $as_echo "yes" >&6; }
  26905. tst_proto_inet_ntoa_r="yes"
  26906. else
  26907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26908. $as_echo "no" >&6; }
  26909. tst_proto_inet_ntoa_r="no"
  26910. fi
  26911. rm -f conftest*
  26912. fi
  26913. #
  26914. if test "$tst_proto_inet_ntoa_r" = "yes"; then
  26915. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  26916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
  26917. $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
  26918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26919. /* end confdefs.h. */
  26920. $curl_includes_arpa_inet
  26921. int main (void)
  26922. {
  26923. struct in_addr addr;
  26924. if(0 != inet_ntoa_r(addr, 0))
  26925. return 1;
  26926. ;
  26927. return 0;
  26928. }
  26929. _ACEOF
  26930. if ac_fn_c_try_compile "$LINENO"; then :
  26931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26932. $as_echo "yes" >&6; }
  26933. tst_compi_inet_ntoa_r="yes"
  26934. tst_nargs_inet_ntoa_r="2"
  26935. else
  26936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26937. $as_echo "no" >&6; }
  26938. tst_compi_inet_ntoa_r="no"
  26939. fi
  26940. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26941. fi
  26942. if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
  26943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
  26944. $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
  26945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26946. /* end confdefs.h. */
  26947. $curl_includes_arpa_inet
  26948. int main (void)
  26949. {
  26950. struct in_addr addr;
  26951. if(0 != inet_ntoa_r(addr, 0, 0))
  26952. return 1;
  26953. ;
  26954. return 0;
  26955. }
  26956. _ACEOF
  26957. if ac_fn_c_try_compile "$LINENO"; then :
  26958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26959. $as_echo "yes" >&6; }
  26960. tst_compi_inet_ntoa_r="yes"
  26961. tst_nargs_inet_ntoa_r="3"
  26962. else
  26963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26964. $as_echo "no" >&6; }
  26965. tst_compi_inet_ntoa_r="no"
  26966. fi
  26967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26968. fi
  26969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
  26970. $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
  26971. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  26972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26973. $as_echo "yes" >&6; }
  26974. else
  26975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26976. $as_echo "no" >&6; }
  26977. fi
  26978. fi
  26979. #
  26980. if test "$tst_compi_inet_ntoa_r" = "yes"; then
  26981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
  26982. $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
  26983. if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
  26984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26985. $as_echo "yes" >&6; }
  26986. tst_allow_inet_ntoa_r="yes"
  26987. else
  26988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26989. $as_echo "no" >&6; }
  26990. tst_allow_inet_ntoa_r="no"
  26991. fi
  26992. fi
  26993. #
  26994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
  26995. $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
  26996. if test "$tst_links_inet_ntoa_r" = "yes" &&
  26997. test "$tst_proto_inet_ntoa_r" = "yes" &&
  26998. test "$tst_compi_inet_ntoa_r" = "yes" &&
  26999. test "$tst_allow_inet_ntoa_r" = "yes"; then
  27000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27001. $as_echo "yes" >&6; }
  27002. cat >>confdefs.h <<_ACEOF
  27003. #define HAVE_INET_NTOA_R 1
  27004. _ACEOF
  27005. #
  27006. if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
  27007. $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
  27008. elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
  27009. $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
  27010. fi
  27011. #
  27012. ac_cv_func_inet_ntoa_r="yes"
  27013. else
  27014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27015. $as_echo "no" >&6; }
  27016. ac_cv_func_inet_ntoa_r="no"
  27017. fi
  27018. #
  27019. tst_links_inet_ntop="unknown"
  27020. tst_proto_inet_ntop="unknown"
  27021. tst_compi_inet_ntop="unknown"
  27022. tst_works_inet_ntop="unknown"
  27023. tst_allow_inet_ntop="unknown"
  27024. #
  27025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
  27026. $as_echo_n "checking if inet_ntop can be linked... " >&6; }
  27027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27028. /* end confdefs.h. */
  27029. #define inet_ntop innocuous_inet_ntop
  27030. #ifdef __STDC__
  27031. # include <limits.h>
  27032. #else
  27033. # include <assert.h>
  27034. #endif
  27035. #undef inet_ntop
  27036. #ifdef __cplusplus
  27037. extern "C"
  27038. #endif
  27039. char inet_ntop ();
  27040. #if defined __stub_inet_ntop || defined __stub___inet_ntop
  27041. choke me
  27042. #endif
  27043. int main (void)
  27044. {
  27045. return inet_ntop ();
  27046. ;
  27047. return 0;
  27048. }
  27049. _ACEOF
  27050. if ac_fn_c_try_link "$LINENO"; then :
  27051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27052. $as_echo "yes" >&6; }
  27053. tst_links_inet_ntop="yes"
  27054. else
  27055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27056. $as_echo "no" >&6; }
  27057. tst_links_inet_ntop="no"
  27058. fi
  27059. rm -f core conftest.err conftest.$ac_objext \
  27060. conftest$ac_exeext conftest.$ac_ext
  27061. #
  27062. if test "$tst_links_inet_ntop" = "yes"; then
  27063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
  27064. $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
  27065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27066. /* end confdefs.h. */
  27067. $curl_includes_arpa_inet
  27068. _ACEOF
  27069. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27070. $EGREP "inet_ntop" >/dev/null 2>&1; then :
  27071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27072. $as_echo "yes" >&6; }
  27073. tst_proto_inet_ntop="yes"
  27074. else
  27075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27076. $as_echo "no" >&6; }
  27077. tst_proto_inet_ntop="no"
  27078. fi
  27079. rm -f conftest*
  27080. fi
  27081. #
  27082. if test "$tst_proto_inet_ntop" = "yes"; then
  27083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
  27084. $as_echo_n "checking if inet_ntop is compilable... " >&6; }
  27085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27086. /* end confdefs.h. */
  27087. $curl_includes_arpa_inet
  27088. int main (void)
  27089. {
  27090. if(0 != inet_ntop(0, 0, 0, 0))
  27091. return 1;
  27092. ;
  27093. return 0;
  27094. }
  27095. _ACEOF
  27096. if ac_fn_c_try_compile "$LINENO"; then :
  27097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27098. $as_echo "yes" >&6; }
  27099. tst_compi_inet_ntop="yes"
  27100. else
  27101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27102. $as_echo "no" >&6; }
  27103. tst_compi_inet_ntop="no"
  27104. fi
  27105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27106. fi
  27107. #
  27108. if test "x$cross_compiling" != "xyes" &&
  27109. test "$tst_compi_inet_ntop" = "yes"; then
  27110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
  27111. $as_echo_n "checking if inet_ntop seems to work... " >&6; }
  27112. if test "$cross_compiling" = yes; then :
  27113. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27114. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27115. as_fn_error $? "cannot run test program while cross compiling
  27116. See \`config.log' for more details" "$LINENO" 5; }
  27117. else
  27118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27119. /* end confdefs.h. */
  27120. $curl_includes_stdlib
  27121. $curl_includes_arpa_inet
  27122. $curl_includes_string
  27123. int main (void)
  27124. {
  27125. char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
  27126. char ipv4res[sizeof "255.255.255.255"];
  27127. unsigned char ipv6a[26];
  27128. unsigned char ipv4a[5];
  27129. char *ipv6ptr = 0;
  27130. char *ipv4ptr = 0;
  27131. /* - */
  27132. ipv4res[0] = '\0';
  27133. ipv4a[0] = 0xc0;
  27134. ipv4a[1] = 0xa8;
  27135. ipv4a[2] = 0x64;
  27136. ipv4a[3] = 0x01;
  27137. ipv4a[4] = 0x01;
  27138. /* - */
  27139. ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
  27140. if(!ipv4ptr)
  27141. exit(1); /* fail */
  27142. if(ipv4ptr != ipv4res)
  27143. exit(1); /* fail */
  27144. if(!ipv4ptr[0])
  27145. exit(1); /* fail */
  27146. if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
  27147. exit(1); /* fail */
  27148. /* - */
  27149. ipv6res[0] = '\0';
  27150. memset(ipv6a, 0, sizeof(ipv6a));
  27151. ipv6a[0] = 0xfe;
  27152. ipv6a[1] = 0x80;
  27153. ipv6a[8] = 0x02;
  27154. ipv6a[9] = 0x14;
  27155. ipv6a[10] = 0x4f;
  27156. ipv6a[11] = 0xff;
  27157. ipv6a[12] = 0xfe;
  27158. ipv6a[13] = 0x0b;
  27159. ipv6a[14] = 0x76;
  27160. ipv6a[15] = 0xc8;
  27161. ipv6a[25] = 0x01;
  27162. /* - */
  27163. ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
  27164. if(!ipv6ptr)
  27165. exit(1); /* fail */
  27166. if(ipv6ptr != ipv6res)
  27167. exit(1); /* fail */
  27168. if(!ipv6ptr[0])
  27169. exit(1); /* fail */
  27170. if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
  27171. exit(1); /* fail */
  27172. /* - */
  27173. exit(0);
  27174. ;
  27175. return 0;
  27176. }
  27177. _ACEOF
  27178. if ac_fn_c_try_run "$LINENO"; then :
  27179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27180. $as_echo "yes" >&6; }
  27181. tst_works_inet_ntop="yes"
  27182. else
  27183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27184. $as_echo "no" >&6; }
  27185. tst_works_inet_ntop="no"
  27186. fi
  27187. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27188. conftest.$ac_objext conftest.beam conftest.$ac_ext
  27189. fi
  27190. fi
  27191. #
  27192. if test "$tst_compi_inet_ntop" = "yes" &&
  27193. test "$tst_works_inet_ntop" != "no"; then
  27194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
  27195. $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
  27196. if test "x$curl_disallow_inet_ntop" != "xyes"; then
  27197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27198. $as_echo "yes" >&6; }
  27199. tst_allow_inet_ntop="yes"
  27200. else
  27201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27202. $as_echo "no" >&6; }
  27203. tst_allow_inet_ntop="no"
  27204. fi
  27205. fi
  27206. #
  27207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
  27208. $as_echo_n "checking if inet_ntop might be used... " >&6; }
  27209. if test "$tst_links_inet_ntop" = "yes" &&
  27210. test "$tst_proto_inet_ntop" = "yes" &&
  27211. test "$tst_compi_inet_ntop" = "yes" &&
  27212. test "$tst_allow_inet_ntop" = "yes" &&
  27213. test "$tst_works_inet_ntop" != "no"; then
  27214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27215. $as_echo "yes" >&6; }
  27216. cat >>confdefs.h <<_ACEOF
  27217. #define HAVE_INET_NTOP 1
  27218. _ACEOF
  27219. ac_cv_func_inet_ntop="yes"
  27220. else
  27221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27222. $as_echo "no" >&6; }
  27223. ac_cv_func_inet_ntop="no"
  27224. fi
  27225. #
  27226. tst_links_inet_pton="unknown"
  27227. tst_proto_inet_pton="unknown"
  27228. tst_compi_inet_pton="unknown"
  27229. tst_works_inet_pton="unknown"
  27230. tst_allow_inet_pton="unknown"
  27231. #
  27232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
  27233. $as_echo_n "checking if inet_pton can be linked... " >&6; }
  27234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27235. /* end confdefs.h. */
  27236. #define inet_pton innocuous_inet_pton
  27237. #ifdef __STDC__
  27238. # include <limits.h>
  27239. #else
  27240. # include <assert.h>
  27241. #endif
  27242. #undef inet_pton
  27243. #ifdef __cplusplus
  27244. extern "C"
  27245. #endif
  27246. char inet_pton ();
  27247. #if defined __stub_inet_pton || defined __stub___inet_pton
  27248. choke me
  27249. #endif
  27250. int main (void)
  27251. {
  27252. return inet_pton ();
  27253. ;
  27254. return 0;
  27255. }
  27256. _ACEOF
  27257. if ac_fn_c_try_link "$LINENO"; then :
  27258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27259. $as_echo "yes" >&6; }
  27260. tst_links_inet_pton="yes"
  27261. else
  27262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27263. $as_echo "no" >&6; }
  27264. tst_links_inet_pton="no"
  27265. fi
  27266. rm -f core conftest.err conftest.$ac_objext \
  27267. conftest$ac_exeext conftest.$ac_ext
  27268. #
  27269. if test "$tst_links_inet_pton" = "yes"; then
  27270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
  27271. $as_echo_n "checking if inet_pton is prototyped... " >&6; }
  27272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27273. /* end confdefs.h. */
  27274. $curl_includes_arpa_inet
  27275. _ACEOF
  27276. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27277. $EGREP "inet_pton" >/dev/null 2>&1; then :
  27278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27279. $as_echo "yes" >&6; }
  27280. tst_proto_inet_pton="yes"
  27281. else
  27282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27283. $as_echo "no" >&6; }
  27284. tst_proto_inet_pton="no"
  27285. fi
  27286. rm -f conftest*
  27287. fi
  27288. #
  27289. if test "$tst_proto_inet_pton" = "yes"; then
  27290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
  27291. $as_echo_n "checking if inet_pton is compilable... " >&6; }
  27292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27293. /* end confdefs.h. */
  27294. $curl_includes_arpa_inet
  27295. int main (void)
  27296. {
  27297. if(0 != inet_pton(0, 0, 0))
  27298. return 1;
  27299. ;
  27300. return 0;
  27301. }
  27302. _ACEOF
  27303. if ac_fn_c_try_compile "$LINENO"; then :
  27304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27305. $as_echo "yes" >&6; }
  27306. tst_compi_inet_pton="yes"
  27307. else
  27308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27309. $as_echo "no" >&6; }
  27310. tst_compi_inet_pton="no"
  27311. fi
  27312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27313. fi
  27314. #
  27315. if test "x$cross_compiling" != "xyes" &&
  27316. test "$tst_compi_inet_pton" = "yes"; then
  27317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
  27318. $as_echo_n "checking if inet_pton seems to work... " >&6; }
  27319. if test "$cross_compiling" = yes; then :
  27320. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  27321. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  27322. as_fn_error $? "cannot run test program while cross compiling
  27323. See \`config.log' for more details" "$LINENO" 5; }
  27324. else
  27325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27326. /* end confdefs.h. */
  27327. $curl_includes_stdlib
  27328. $curl_includes_arpa_inet
  27329. $curl_includes_string
  27330. int main (void)
  27331. {
  27332. unsigned char ipv6a[16+1];
  27333. unsigned char ipv4a[4+1];
  27334. const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
  27335. const char *ipv4src = "192.168.100.1";
  27336. /* - */
  27337. memset(ipv4a, 1, sizeof(ipv4a));
  27338. if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
  27339. exit(1); /* fail */
  27340. /* - */
  27341. if( (ipv4a[0] != 0xc0) ||
  27342. (ipv4a[1] != 0xa8) ||
  27343. (ipv4a[2] != 0x64) ||
  27344. (ipv4a[3] != 0x01) ||
  27345. (ipv4a[4] != 0x01) )
  27346. exit(1); /* fail */
  27347. /* - */
  27348. memset(ipv6a, 1, sizeof(ipv6a));
  27349. if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
  27350. exit(1); /* fail */
  27351. /* - */
  27352. if( (ipv6a[0] != 0xfe) ||
  27353. (ipv6a[1] != 0x80) ||
  27354. (ipv6a[8] != 0x02) ||
  27355. (ipv6a[9] != 0x14) ||
  27356. (ipv6a[10] != 0x4f) ||
  27357. (ipv6a[11] != 0xff) ||
  27358. (ipv6a[12] != 0xfe) ||
  27359. (ipv6a[13] != 0x0b) ||
  27360. (ipv6a[14] != 0x76) ||
  27361. (ipv6a[15] != 0xc8) ||
  27362. (ipv6a[16] != 0x01) )
  27363. exit(1); /* fail */
  27364. /* - */
  27365. if( (ipv6a[2] != 0x0) ||
  27366. (ipv6a[3] != 0x0) ||
  27367. (ipv6a[4] != 0x0) ||
  27368. (ipv6a[5] != 0x0) ||
  27369. (ipv6a[6] != 0x0) ||
  27370. (ipv6a[7] != 0x0) )
  27371. exit(1); /* fail */
  27372. /* - */
  27373. exit(0);
  27374. ;
  27375. return 0;
  27376. }
  27377. _ACEOF
  27378. if ac_fn_c_try_run "$LINENO"; then :
  27379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27380. $as_echo "yes" >&6; }
  27381. tst_works_inet_pton="yes"
  27382. else
  27383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27384. $as_echo "no" >&6; }
  27385. tst_works_inet_pton="no"
  27386. fi
  27387. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  27388. conftest.$ac_objext conftest.beam conftest.$ac_ext
  27389. fi
  27390. fi
  27391. #
  27392. if test "$tst_compi_inet_pton" = "yes" &&
  27393. test "$tst_works_inet_pton" != "no"; then
  27394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
  27395. $as_echo_n "checking if inet_pton usage allowed... " >&6; }
  27396. if test "x$curl_disallow_inet_pton" != "xyes"; then
  27397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27398. $as_echo "yes" >&6; }
  27399. tst_allow_inet_pton="yes"
  27400. else
  27401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27402. $as_echo "no" >&6; }
  27403. tst_allow_inet_pton="no"
  27404. fi
  27405. fi
  27406. #
  27407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
  27408. $as_echo_n "checking if inet_pton might be used... " >&6; }
  27409. if test "$tst_links_inet_pton" = "yes" &&
  27410. test "$tst_proto_inet_pton" = "yes" &&
  27411. test "$tst_compi_inet_pton" = "yes" &&
  27412. test "$tst_allow_inet_pton" = "yes" &&
  27413. test "$tst_works_inet_pton" != "no"; then
  27414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27415. $as_echo "yes" >&6; }
  27416. cat >>confdefs.h <<_ACEOF
  27417. #define HAVE_INET_PTON 1
  27418. _ACEOF
  27419. ac_cv_func_inet_pton="yes"
  27420. else
  27421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27422. $as_echo "no" >&6; }
  27423. ac_cv_func_inet_pton="no"
  27424. fi
  27425. curl_includes_stropts="\
  27426. /* includes start */
  27427. #ifdef HAVE_SYS_TYPES_H
  27428. # include <sys/types.h>
  27429. #endif
  27430. #ifdef HAVE_UNISTD_H
  27431. # include <unistd.h>
  27432. #endif
  27433. #ifdef HAVE_SYS_SOCKET_H
  27434. # include <sys/socket.h>
  27435. #endif
  27436. #ifdef HAVE_SYS_IOCTL_H
  27437. # include <sys/ioctl.h>
  27438. #endif
  27439. #ifdef HAVE_STROPTS_H
  27440. # include <stropts.h>
  27441. #endif
  27442. /* includes end */"
  27443. for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
  27444. do :
  27445. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  27446. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
  27447. "
  27448. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  27449. cat >>confdefs.h <<_ACEOF
  27450. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  27451. _ACEOF
  27452. fi
  27453. done
  27454. #
  27455. tst_links_ioctl="unknown"
  27456. tst_proto_ioctl="unknown"
  27457. tst_compi_ioctl="unknown"
  27458. tst_allow_ioctl="unknown"
  27459. #
  27460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
  27461. $as_echo_n "checking if ioctl can be linked... " >&6; }
  27462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27463. /* end confdefs.h. */
  27464. #define ioctl innocuous_ioctl
  27465. #ifdef __STDC__
  27466. # include <limits.h>
  27467. #else
  27468. # include <assert.h>
  27469. #endif
  27470. #undef ioctl
  27471. #ifdef __cplusplus
  27472. extern "C"
  27473. #endif
  27474. char ioctl ();
  27475. #if defined __stub_ioctl || defined __stub___ioctl
  27476. choke me
  27477. #endif
  27478. int main (void)
  27479. {
  27480. return ioctl ();
  27481. ;
  27482. return 0;
  27483. }
  27484. _ACEOF
  27485. if ac_fn_c_try_link "$LINENO"; then :
  27486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27487. $as_echo "yes" >&6; }
  27488. tst_links_ioctl="yes"
  27489. else
  27490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27491. $as_echo "no" >&6; }
  27492. tst_links_ioctl="no"
  27493. fi
  27494. rm -f core conftest.err conftest.$ac_objext \
  27495. conftest$ac_exeext conftest.$ac_ext
  27496. #
  27497. if test "$tst_links_ioctl" = "yes"; then
  27498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
  27499. $as_echo_n "checking if ioctl is prototyped... " >&6; }
  27500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27501. /* end confdefs.h. */
  27502. $curl_includes_stropts
  27503. _ACEOF
  27504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27505. $EGREP "ioctl" >/dev/null 2>&1; then :
  27506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27507. $as_echo "yes" >&6; }
  27508. tst_proto_ioctl="yes"
  27509. else
  27510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27511. $as_echo "no" >&6; }
  27512. tst_proto_ioctl="no"
  27513. fi
  27514. rm -f conftest*
  27515. fi
  27516. #
  27517. if test "$tst_proto_ioctl" = "yes"; then
  27518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
  27519. $as_echo_n "checking if ioctl is compilable... " >&6; }
  27520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27521. /* end confdefs.h. */
  27522. $curl_includes_stropts
  27523. int main (void)
  27524. {
  27525. if(0 != ioctl(0, 0, 0))
  27526. return 1;
  27527. ;
  27528. return 0;
  27529. }
  27530. _ACEOF
  27531. if ac_fn_c_try_compile "$LINENO"; then :
  27532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27533. $as_echo "yes" >&6; }
  27534. tst_compi_ioctl="yes"
  27535. else
  27536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27537. $as_echo "no" >&6; }
  27538. tst_compi_ioctl="no"
  27539. fi
  27540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27541. fi
  27542. #
  27543. if test "$tst_compi_ioctl" = "yes"; then
  27544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
  27545. $as_echo_n "checking if ioctl usage allowed... " >&6; }
  27546. if test "x$curl_disallow_ioctl" != "xyes"; then
  27547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27548. $as_echo "yes" >&6; }
  27549. tst_allow_ioctl="yes"
  27550. else
  27551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27552. $as_echo "no" >&6; }
  27553. tst_allow_ioctl="no"
  27554. fi
  27555. fi
  27556. #
  27557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
  27558. $as_echo_n "checking if ioctl might be used... " >&6; }
  27559. if test "$tst_links_ioctl" = "yes" &&
  27560. test "$tst_proto_ioctl" = "yes" &&
  27561. test "$tst_compi_ioctl" = "yes" &&
  27562. test "$tst_allow_ioctl" = "yes"; then
  27563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27564. $as_echo "yes" >&6; }
  27565. cat >>confdefs.h <<_ACEOF
  27566. #define HAVE_IOCTL 1
  27567. _ACEOF
  27568. ac_cv_func_ioctl="yes"
  27569. #
  27570. tst_compi_ioctl_fionbio="unknown"
  27571. tst_allow_ioctl_fionbio="unknown"
  27572. #
  27573. if test "$ac_cv_func_ioctl" = "yes"; then
  27574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
  27575. $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
  27576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27577. /* end confdefs.h. */
  27578. $curl_includes_stropts
  27579. int main (void)
  27580. {
  27581. int flags = 0;
  27582. if(0 != ioctl(0, FIONBIO, &flags))
  27583. return 1;
  27584. ;
  27585. return 0;
  27586. }
  27587. _ACEOF
  27588. if ac_fn_c_try_compile "$LINENO"; then :
  27589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27590. $as_echo "yes" >&6; }
  27591. tst_compi_ioctl_fionbio="yes"
  27592. else
  27593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27594. $as_echo "no" >&6; }
  27595. tst_compi_ioctl_fionbio="no"
  27596. fi
  27597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27598. fi
  27599. #
  27600. if test "$tst_compi_ioctl_fionbio" = "yes"; then
  27601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
  27602. $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
  27603. if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
  27604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27605. $as_echo "yes" >&6; }
  27606. tst_allow_ioctl_fionbio="yes"
  27607. else
  27608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27609. $as_echo "no" >&6; }
  27610. tst_allow_ioctl_fionbio="no"
  27611. fi
  27612. fi
  27613. #
  27614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
  27615. $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
  27616. if test "$tst_compi_ioctl_fionbio" = "yes" &&
  27617. test "$tst_allow_ioctl_fionbio" = "yes"; then
  27618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27619. $as_echo "yes" >&6; }
  27620. cat >>confdefs.h <<_ACEOF
  27621. #define HAVE_IOCTL_FIONBIO 1
  27622. _ACEOF
  27623. ac_cv_func_ioctl_fionbio="yes"
  27624. else
  27625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27626. $as_echo "no" >&6; }
  27627. ac_cv_func_ioctl_fionbio="no"
  27628. fi
  27629. #
  27630. tst_compi_ioctl_siocgifaddr="unknown"
  27631. tst_allow_ioctl_siocgifaddr="unknown"
  27632. #
  27633. if test "$ac_cv_func_ioctl" = "yes"; then
  27634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
  27635. $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
  27636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27637. /* end confdefs.h. */
  27638. $curl_includes_stropts
  27639. #include <net/if.h>
  27640. int main (void)
  27641. {
  27642. struct ifreq ifr;
  27643. if(0 != ioctl(0, SIOCGIFADDR, &ifr))
  27644. return 1;
  27645. ;
  27646. return 0;
  27647. }
  27648. _ACEOF
  27649. if ac_fn_c_try_compile "$LINENO"; then :
  27650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27651. $as_echo "yes" >&6; }
  27652. tst_compi_ioctl_siocgifaddr="yes"
  27653. else
  27654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27655. $as_echo "no" >&6; }
  27656. tst_compi_ioctl_siocgifaddr="no"
  27657. fi
  27658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27659. fi
  27660. #
  27661. if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
  27662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
  27663. $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
  27664. if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
  27665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27666. $as_echo "yes" >&6; }
  27667. tst_allow_ioctl_siocgifaddr="yes"
  27668. else
  27669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27670. $as_echo "no" >&6; }
  27671. tst_allow_ioctl_siocgifaddr="no"
  27672. fi
  27673. fi
  27674. #
  27675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
  27676. $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
  27677. if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
  27678. test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
  27679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27680. $as_echo "yes" >&6; }
  27681. cat >>confdefs.h <<_ACEOF
  27682. #define HAVE_IOCTL_SIOCGIFADDR 1
  27683. _ACEOF
  27684. ac_cv_func_ioctl_siocgifaddr="yes"
  27685. else
  27686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27687. $as_echo "no" >&6; }
  27688. ac_cv_func_ioctl_siocgifaddr="no"
  27689. fi
  27690. else
  27691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27692. $as_echo "no" >&6; }
  27693. ac_cv_func_ioctl="no"
  27694. fi
  27695. #
  27696. tst_links_ioctlsocket="unknown"
  27697. tst_proto_ioctlsocket="unknown"
  27698. tst_compi_ioctlsocket="unknown"
  27699. tst_allow_ioctlsocket="unknown"
  27700. #
  27701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
  27702. $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
  27703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27704. /* end confdefs.h. */
  27705. $curl_includes_winsock2
  27706. int main (void)
  27707. {
  27708. if(0 != ioctlsocket(0, 0, 0))
  27709. return 1;
  27710. ;
  27711. return 0;
  27712. }
  27713. _ACEOF
  27714. if ac_fn_c_try_link "$LINENO"; then :
  27715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27716. $as_echo "yes" >&6; }
  27717. tst_links_ioctlsocket="yes"
  27718. else
  27719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27720. $as_echo "no" >&6; }
  27721. tst_links_ioctlsocket="no"
  27722. fi
  27723. rm -f core conftest.err conftest.$ac_objext \
  27724. conftest$ac_exeext conftest.$ac_ext
  27725. #
  27726. if test "$tst_links_ioctlsocket" = "yes"; then
  27727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
  27728. $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
  27729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27730. /* end confdefs.h. */
  27731. $curl_includes_winsock2
  27732. _ACEOF
  27733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27734. $EGREP "ioctlsocket" >/dev/null 2>&1; then :
  27735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27736. $as_echo "yes" >&6; }
  27737. tst_proto_ioctlsocket="yes"
  27738. else
  27739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27740. $as_echo "no" >&6; }
  27741. tst_proto_ioctlsocket="no"
  27742. fi
  27743. rm -f conftest*
  27744. fi
  27745. #
  27746. if test "$tst_proto_ioctlsocket" = "yes"; then
  27747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
  27748. $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
  27749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27750. /* end confdefs.h. */
  27751. $curl_includes_winsock2
  27752. int main (void)
  27753. {
  27754. if(0 != ioctlsocket(0, 0, 0))
  27755. return 1;
  27756. ;
  27757. return 0;
  27758. }
  27759. _ACEOF
  27760. if ac_fn_c_try_compile "$LINENO"; then :
  27761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27762. $as_echo "yes" >&6; }
  27763. tst_compi_ioctlsocket="yes"
  27764. else
  27765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27766. $as_echo "no" >&6; }
  27767. tst_compi_ioctlsocket="no"
  27768. fi
  27769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27770. fi
  27771. #
  27772. if test "$tst_compi_ioctlsocket" = "yes"; then
  27773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
  27774. $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
  27775. if test "x$curl_disallow_ioctlsocket" != "xyes"; then
  27776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27777. $as_echo "yes" >&6; }
  27778. tst_allow_ioctlsocket="yes"
  27779. else
  27780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27781. $as_echo "no" >&6; }
  27782. tst_allow_ioctlsocket="no"
  27783. fi
  27784. fi
  27785. #
  27786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
  27787. $as_echo_n "checking if ioctlsocket might be used... " >&6; }
  27788. if test "$tst_links_ioctlsocket" = "yes" &&
  27789. test "$tst_proto_ioctlsocket" = "yes" &&
  27790. test "$tst_compi_ioctlsocket" = "yes" &&
  27791. test "$tst_allow_ioctlsocket" = "yes"; then
  27792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27793. $as_echo "yes" >&6; }
  27794. cat >>confdefs.h <<_ACEOF
  27795. #define HAVE_IOCTLSOCKET 1
  27796. _ACEOF
  27797. ac_cv_func_ioctlsocket="yes"
  27798. #
  27799. tst_compi_ioctlsocket_fionbio="unknown"
  27800. tst_allow_ioctlsocket_fionbio="unknown"
  27801. #
  27802. if test "$ac_cv_func_ioctlsocket" = "yes"; then
  27803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
  27804. $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
  27805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27806. /* end confdefs.h. */
  27807. $curl_includes_winsock2
  27808. int main (void)
  27809. {
  27810. int flags = 0;
  27811. if(0 != ioctlsocket(0, FIONBIO, &flags))
  27812. return 1;
  27813. ;
  27814. return 0;
  27815. }
  27816. _ACEOF
  27817. if ac_fn_c_try_compile "$LINENO"; then :
  27818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27819. $as_echo "yes" >&6; }
  27820. tst_compi_ioctlsocket_fionbio="yes"
  27821. else
  27822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27823. $as_echo "no" >&6; }
  27824. tst_compi_ioctlsocket_fionbio="no"
  27825. fi
  27826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27827. fi
  27828. #
  27829. if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
  27830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
  27831. $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
  27832. if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
  27833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27834. $as_echo "yes" >&6; }
  27835. tst_allow_ioctlsocket_fionbio="yes"
  27836. else
  27837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27838. $as_echo "no" >&6; }
  27839. tst_allow_ioctlsocket_fionbio="no"
  27840. fi
  27841. fi
  27842. #
  27843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
  27844. $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
  27845. if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
  27846. test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
  27847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27848. $as_echo "yes" >&6; }
  27849. cat >>confdefs.h <<_ACEOF
  27850. #define HAVE_IOCTLSOCKET_FIONBIO 1
  27851. _ACEOF
  27852. ac_cv_func_ioctlsocket_fionbio="yes"
  27853. else
  27854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27855. $as_echo "no" >&6; }
  27856. ac_cv_func_ioctlsocket_fionbio="no"
  27857. fi
  27858. else
  27859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27860. $as_echo "no" >&6; }
  27861. ac_cv_func_ioctlsocket="no"
  27862. fi
  27863. #
  27864. tst_links_ioctlsocket_camel="unknown"
  27865. tst_proto_ioctlsocket_camel="unknown"
  27866. tst_compi_ioctlsocket_camel="unknown"
  27867. tst_allow_ioctlsocket_camel="unknown"
  27868. #
  27869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
  27870. $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
  27871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27872. /* end confdefs.h. */
  27873. #define IoctlSocket innocuous_IoctlSocket
  27874. #ifdef __STDC__
  27875. # include <limits.h>
  27876. #else
  27877. # include <assert.h>
  27878. #endif
  27879. #undef IoctlSocket
  27880. #ifdef __cplusplus
  27881. extern "C"
  27882. #endif
  27883. char IoctlSocket ();
  27884. #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
  27885. choke me
  27886. #endif
  27887. int main (void)
  27888. {
  27889. return IoctlSocket ();
  27890. ;
  27891. return 0;
  27892. }
  27893. _ACEOF
  27894. if ac_fn_c_try_link "$LINENO"; then :
  27895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27896. $as_echo "yes" >&6; }
  27897. tst_links_ioctlsocket_camel="yes"
  27898. else
  27899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27900. $as_echo "no" >&6; }
  27901. tst_links_ioctlsocket_camel="no"
  27902. fi
  27903. rm -f core conftest.err conftest.$ac_objext \
  27904. conftest$ac_exeext conftest.$ac_ext
  27905. #
  27906. if test "$tst_links_ioctlsocket_camel" = "yes"; then
  27907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
  27908. $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
  27909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27910. /* end confdefs.h. */
  27911. $curl_includes_stropts
  27912. _ACEOF
  27913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  27914. $EGREP "IoctlSocket" >/dev/null 2>&1; then :
  27915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27916. $as_echo "yes" >&6; }
  27917. tst_proto_ioctlsocket_camel="yes"
  27918. else
  27919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27920. $as_echo "no" >&6; }
  27921. tst_proto_ioctlsocket_camel="no"
  27922. fi
  27923. rm -f conftest*
  27924. fi
  27925. #
  27926. if test "$tst_proto_ioctlsocket_camel" = "yes"; then
  27927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
  27928. $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
  27929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27930. /* end confdefs.h. */
  27931. $curl_includes_stropts
  27932. int main (void)
  27933. {
  27934. if(0 != IoctlSocket(0, 0, 0))
  27935. return 1;
  27936. ;
  27937. return 0;
  27938. }
  27939. _ACEOF
  27940. if ac_fn_c_try_compile "$LINENO"; then :
  27941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27942. $as_echo "yes" >&6; }
  27943. tst_compi_ioctlsocket_camel="yes"
  27944. else
  27945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27946. $as_echo "no" >&6; }
  27947. tst_compi_ioctlsocket_camel="no"
  27948. fi
  27949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27950. fi
  27951. #
  27952. if test "$tst_compi_ioctlsocket_camel" = "yes"; then
  27953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
  27954. $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
  27955. if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
  27956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27957. $as_echo "yes" >&6; }
  27958. tst_allow_ioctlsocket_camel="yes"
  27959. else
  27960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27961. $as_echo "no" >&6; }
  27962. tst_allow_ioctlsocket_camel="no"
  27963. fi
  27964. fi
  27965. #
  27966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
  27967. $as_echo_n "checking if IoctlSocket might be used... " >&6; }
  27968. if test "$tst_links_ioctlsocket_camel" = "yes" &&
  27969. test "$tst_proto_ioctlsocket_camel" = "yes" &&
  27970. test "$tst_compi_ioctlsocket_camel" = "yes" &&
  27971. test "$tst_allow_ioctlsocket_camel" = "yes"; then
  27972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27973. $as_echo "yes" >&6; }
  27974. cat >>confdefs.h <<_ACEOF
  27975. #define HAVE_IOCTLSOCKET_CAMEL 1
  27976. _ACEOF
  27977. ac_cv_func_ioctlsocket_camel="yes"
  27978. #
  27979. tst_compi_ioctlsocket_camel_fionbio="unknown"
  27980. tst_allow_ioctlsocket_camel_fionbio="unknown"
  27981. #
  27982. if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
  27983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
  27984. $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
  27985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27986. /* end confdefs.h. */
  27987. $curl_includes_stropts
  27988. int main (void)
  27989. {
  27990. long flags = 0;
  27991. if(0 != ioctlsocket(0, FIONBIO, &flags))
  27992. return 1;
  27993. ;
  27994. return 0;
  27995. }
  27996. _ACEOF
  27997. if ac_fn_c_try_compile "$LINENO"; then :
  27998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27999. $as_echo "yes" >&6; }
  28000. tst_compi_ioctlsocket_camel_fionbio="yes"
  28001. else
  28002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28003. $as_echo "no" >&6; }
  28004. tst_compi_ioctlsocket_camel_fionbio="no"
  28005. fi
  28006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28007. fi
  28008. #
  28009. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
  28010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
  28011. $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
  28012. if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
  28013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28014. $as_echo "yes" >&6; }
  28015. tst_allow_ioctlsocket_camel_fionbio="yes"
  28016. else
  28017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28018. $as_echo "no" >&6; }
  28019. tst_allow_ioctlsocket_camel_fionbio="no"
  28020. fi
  28021. fi
  28022. #
  28023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
  28024. $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
  28025. if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
  28026. test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
  28027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28028. $as_echo "yes" >&6; }
  28029. cat >>confdefs.h <<_ACEOF
  28030. #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
  28031. _ACEOF
  28032. ac_cv_func_ioctlsocket_camel_fionbio="yes"
  28033. else
  28034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28035. $as_echo "no" >&6; }
  28036. ac_cv_func_ioctlsocket_camel_fionbio="no"
  28037. fi
  28038. else
  28039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28040. $as_echo "no" >&6; }
  28041. ac_cv_func_ioctlsocket_camel="no"
  28042. fi
  28043. #
  28044. tst_links_localtime_r="unknown"
  28045. tst_proto_localtime_r="unknown"
  28046. tst_compi_localtime_r="unknown"
  28047. tst_works_localtime_r="unknown"
  28048. tst_allow_localtime_r="unknown"
  28049. #
  28050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
  28051. $as_echo_n "checking if localtime_r can be linked... " >&6; }
  28052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28053. /* end confdefs.h. */
  28054. #define localtime_r innocuous_localtime_r
  28055. #ifdef __STDC__
  28056. # include <limits.h>
  28057. #else
  28058. # include <assert.h>
  28059. #endif
  28060. #undef localtime_r
  28061. #ifdef __cplusplus
  28062. extern "C"
  28063. #endif
  28064. char localtime_r ();
  28065. #if defined __stub_localtime_r || defined __stub___localtime_r
  28066. choke me
  28067. #endif
  28068. int main (void)
  28069. {
  28070. return localtime_r ();
  28071. ;
  28072. return 0;
  28073. }
  28074. _ACEOF
  28075. if ac_fn_c_try_link "$LINENO"; then :
  28076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28077. $as_echo "yes" >&6; }
  28078. tst_links_localtime_r="yes"
  28079. else
  28080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28081. $as_echo "no" >&6; }
  28082. tst_links_localtime_r="no"
  28083. fi
  28084. rm -f core conftest.err conftest.$ac_objext \
  28085. conftest$ac_exeext conftest.$ac_ext
  28086. #
  28087. if test "$tst_links_localtime_r" = "yes"; then
  28088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
  28089. $as_echo_n "checking if localtime_r is prototyped... " >&6; }
  28090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28091. /* end confdefs.h. */
  28092. $curl_includes_time
  28093. _ACEOF
  28094. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28095. $EGREP "localtime_r" >/dev/null 2>&1; then :
  28096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28097. $as_echo "yes" >&6; }
  28098. tst_proto_localtime_r="yes"
  28099. else
  28100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28101. $as_echo "no" >&6; }
  28102. tst_proto_localtime_r="no"
  28103. fi
  28104. rm -f conftest*
  28105. fi
  28106. #
  28107. if test "$tst_proto_localtime_r" = "yes"; then
  28108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
  28109. $as_echo_n "checking if localtime_r is compilable... " >&6; }
  28110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28111. /* end confdefs.h. */
  28112. $curl_includes_time
  28113. int main (void)
  28114. {
  28115. if(0 != localtime_r(0, 0))
  28116. return 1;
  28117. ;
  28118. return 0;
  28119. }
  28120. _ACEOF
  28121. if ac_fn_c_try_compile "$LINENO"; then :
  28122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28123. $as_echo "yes" >&6; }
  28124. tst_compi_localtime_r="yes"
  28125. else
  28126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28127. $as_echo "no" >&6; }
  28128. tst_compi_localtime_r="no"
  28129. fi
  28130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28131. fi
  28132. #
  28133. if test "x$cross_compiling" != "xyes" &&
  28134. test "$tst_compi_localtime_r" = "yes"; then
  28135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
  28136. $as_echo_n "checking if localtime_r seems to work... " >&6; }
  28137. if test "$cross_compiling" = yes; then :
  28138. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28140. as_fn_error $? "cannot run test program while cross compiling
  28141. See \`config.log' for more details" "$LINENO" 5; }
  28142. else
  28143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28144. /* end confdefs.h. */
  28145. $curl_includes_stdlib
  28146. $curl_includes_time
  28147. int main (void)
  28148. {
  28149. time_t clock = 1170352587;
  28150. struct tm *tmp = 0;
  28151. struct tm result;
  28152. tmp = localtime_r(&clock, &result);
  28153. if(tmp)
  28154. exit(0);
  28155. else
  28156. exit(1);
  28157. ;
  28158. return 0;
  28159. }
  28160. _ACEOF
  28161. if ac_fn_c_try_run "$LINENO"; then :
  28162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28163. $as_echo "yes" >&6; }
  28164. tst_works_localtime_r="yes"
  28165. else
  28166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28167. $as_echo "no" >&6; }
  28168. tst_works_localtime_r="no"
  28169. fi
  28170. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28171. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28172. fi
  28173. fi
  28174. #
  28175. if test "$tst_compi_localtime_r" = "yes" &&
  28176. test "$tst_works_localtime_r" != "no"; then
  28177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
  28178. $as_echo_n "checking if localtime_r usage allowed... " >&6; }
  28179. if test "x$curl_disallow_localtime_r" != "xyes"; then
  28180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28181. $as_echo "yes" >&6; }
  28182. tst_allow_localtime_r="yes"
  28183. else
  28184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28185. $as_echo "no" >&6; }
  28186. tst_allow_localtime_r="no"
  28187. fi
  28188. fi
  28189. #
  28190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
  28191. $as_echo_n "checking if localtime_r might be used... " >&6; }
  28192. if test "$tst_links_localtime_r" = "yes" &&
  28193. test "$tst_proto_localtime_r" = "yes" &&
  28194. test "$tst_compi_localtime_r" = "yes" &&
  28195. test "$tst_allow_localtime_r" = "yes" &&
  28196. test "$tst_works_localtime_r" != "no"; then
  28197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28198. $as_echo "yes" >&6; }
  28199. cat >>confdefs.h <<_ACEOF
  28200. #define HAVE_LOCALTIME_R 1
  28201. _ACEOF
  28202. ac_cv_func_localtime_r="yes"
  28203. else
  28204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28205. $as_echo "no" >&6; }
  28206. ac_cv_func_localtime_r="no"
  28207. fi
  28208. #
  28209. tst_links_memrchr="unknown"
  28210. tst_macro_memrchr="unknown"
  28211. tst_proto_memrchr="unknown"
  28212. tst_compi_memrchr="unknown"
  28213. tst_allow_memrchr="unknown"
  28214. #
  28215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
  28216. $as_echo_n "checking if memrchr can be linked... " >&6; }
  28217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28218. /* end confdefs.h. */
  28219. #define memrchr innocuous_memrchr
  28220. #ifdef __STDC__
  28221. # include <limits.h>
  28222. #else
  28223. # include <assert.h>
  28224. #endif
  28225. #undef memrchr
  28226. #ifdef __cplusplus
  28227. extern "C"
  28228. #endif
  28229. char memrchr ();
  28230. #if defined __stub_memrchr || defined __stub___memrchr
  28231. choke me
  28232. #endif
  28233. int main (void)
  28234. {
  28235. return memrchr ();
  28236. ;
  28237. return 0;
  28238. }
  28239. _ACEOF
  28240. if ac_fn_c_try_link "$LINENO"; then :
  28241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28242. $as_echo "yes" >&6; }
  28243. tst_links_memrchr="yes"
  28244. else
  28245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28246. $as_echo "no" >&6; }
  28247. tst_links_memrchr="no"
  28248. fi
  28249. rm -f core conftest.err conftest.$ac_objext \
  28250. conftest$ac_exeext conftest.$ac_ext
  28251. #
  28252. if test "$tst_links_memrchr" = "no"; then
  28253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
  28254. $as_echo_n "checking if memrchr seems a macro... " >&6; }
  28255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28256. /* end confdefs.h. */
  28257. $curl_includes_string
  28258. int main (void)
  28259. {
  28260. if(0 != memrchr(0, 0, 0))
  28261. return 1;
  28262. ;
  28263. return 0;
  28264. }
  28265. _ACEOF
  28266. if ac_fn_c_try_link "$LINENO"; then :
  28267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28268. $as_echo "yes" >&6; }
  28269. tst_macro_memrchr="yes"
  28270. else
  28271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28272. $as_echo "no" >&6; }
  28273. tst_macro_memrchr="no"
  28274. fi
  28275. rm -f core conftest.err conftest.$ac_objext \
  28276. conftest$ac_exeext conftest.$ac_ext
  28277. fi
  28278. #
  28279. if test "$tst_links_memrchr" = "yes"; then
  28280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
  28281. $as_echo_n "checking if memrchr is prototyped... " >&6; }
  28282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28283. /* end confdefs.h. */
  28284. $curl_includes_string
  28285. _ACEOF
  28286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28287. $EGREP "memrchr" >/dev/null 2>&1; then :
  28288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28289. $as_echo "yes" >&6; }
  28290. tst_proto_memrchr="yes"
  28291. else
  28292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28293. $as_echo "no" >&6; }
  28294. tst_proto_memrchr="no"
  28295. fi
  28296. rm -f conftest*
  28297. fi
  28298. #
  28299. if test "$tst_proto_memrchr" = "yes" ||
  28300. test "$tst_macro_memrchr" = "yes"; then
  28301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
  28302. $as_echo_n "checking if memrchr is compilable... " >&6; }
  28303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28304. /* end confdefs.h. */
  28305. $curl_includes_string
  28306. int main (void)
  28307. {
  28308. if(0 != memrchr(0, 0, 0))
  28309. return 1;
  28310. ;
  28311. return 0;
  28312. }
  28313. _ACEOF
  28314. if ac_fn_c_try_compile "$LINENO"; then :
  28315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28316. $as_echo "yes" >&6; }
  28317. tst_compi_memrchr="yes"
  28318. else
  28319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28320. $as_echo "no" >&6; }
  28321. tst_compi_memrchr="no"
  28322. fi
  28323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28324. fi
  28325. #
  28326. if test "$tst_compi_memrchr" = "yes"; then
  28327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
  28328. $as_echo_n "checking if memrchr usage allowed... " >&6; }
  28329. if test "x$curl_disallow_memrchr" != "xyes"; then
  28330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28331. $as_echo "yes" >&6; }
  28332. tst_allow_memrchr="yes"
  28333. else
  28334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28335. $as_echo "no" >&6; }
  28336. tst_allow_memrchr="no"
  28337. fi
  28338. fi
  28339. #
  28340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
  28341. $as_echo_n "checking if memrchr might be used... " >&6; }
  28342. if (test "$tst_proto_memrchr" = "yes" ||
  28343. test "$tst_macro_memrchr" = "yes") &&
  28344. test "$tst_compi_memrchr" = "yes" &&
  28345. test "$tst_allow_memrchr" = "yes"; then
  28346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28347. $as_echo "yes" >&6; }
  28348. cat >>confdefs.h <<_ACEOF
  28349. #define HAVE_MEMRCHR 1
  28350. _ACEOF
  28351. ac_cv_func_memrchr="yes"
  28352. else
  28353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28354. $as_echo "no" >&6; }
  28355. ac_cv_func_memrchr="no"
  28356. fi
  28357. #
  28358. tst_links_poll="unknown"
  28359. tst_proto_poll="unknown"
  28360. tst_compi_poll="unknown"
  28361. tst_works_poll="unknown"
  28362. tst_allow_poll="unknown"
  28363. #
  28364. case $host_os in
  28365. darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
  28366. curl_disallow_poll="yes"
  28367. ;;
  28368. esac
  28369. #
  28370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
  28371. $as_echo_n "checking if poll can be linked... " >&6; }
  28372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28373. /* end confdefs.h. */
  28374. $curl_includes_poll
  28375. int main (void)
  28376. {
  28377. if(0 != poll(0, 0, 0))
  28378. return 1;
  28379. ;
  28380. return 0;
  28381. }
  28382. _ACEOF
  28383. if ac_fn_c_try_link "$LINENO"; then :
  28384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28385. $as_echo "yes" >&6; }
  28386. tst_links_poll="yes"
  28387. else
  28388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28389. $as_echo "no" >&6; }
  28390. tst_links_poll="no"
  28391. fi
  28392. rm -f core conftest.err conftest.$ac_objext \
  28393. conftest$ac_exeext conftest.$ac_ext
  28394. #
  28395. if test "$tst_links_poll" = "yes"; then
  28396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
  28397. $as_echo_n "checking if poll is prototyped... " >&6; }
  28398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28399. /* end confdefs.h. */
  28400. $curl_includes_poll
  28401. _ACEOF
  28402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28403. $EGREP "poll" >/dev/null 2>&1; then :
  28404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28405. $as_echo "yes" >&6; }
  28406. tst_proto_poll="yes"
  28407. else
  28408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28409. $as_echo "no" >&6; }
  28410. tst_proto_poll="no"
  28411. fi
  28412. rm -f conftest*
  28413. fi
  28414. #
  28415. if test "$tst_proto_poll" = "yes"; then
  28416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
  28417. $as_echo_n "checking if poll is compilable... " >&6; }
  28418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28419. /* end confdefs.h. */
  28420. $curl_includes_poll
  28421. int main (void)
  28422. {
  28423. if(0 != poll(0, 0, 0))
  28424. return 1;
  28425. ;
  28426. return 0;
  28427. }
  28428. _ACEOF
  28429. if ac_fn_c_try_compile "$LINENO"; then :
  28430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28431. $as_echo "yes" >&6; }
  28432. tst_compi_poll="yes"
  28433. else
  28434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28435. $as_echo "no" >&6; }
  28436. tst_compi_poll="no"
  28437. fi
  28438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28439. fi
  28440. #
  28441. if test "x$cross_compiling" != "xyes" &&
  28442. test "$tst_compi_poll" = "yes"; then
  28443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
  28444. $as_echo_n "checking if poll seems to work... " >&6; }
  28445. if test "$cross_compiling" = yes; then :
  28446. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  28447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  28448. as_fn_error $? "cannot run test program while cross compiling
  28449. See \`config.log' for more details" "$LINENO" 5; }
  28450. else
  28451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28452. /* end confdefs.h. */
  28453. $curl_includes_stdlib
  28454. $curl_includes_poll
  28455. int main (void)
  28456. {
  28457. if(0 != poll(0, 0, 10))
  28458. exit(1); /* fail */
  28459. else
  28460. exit(0);
  28461. ;
  28462. return 0;
  28463. }
  28464. _ACEOF
  28465. if ac_fn_c_try_run "$LINENO"; then :
  28466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28467. $as_echo "yes" >&6; }
  28468. tst_works_poll="yes"
  28469. else
  28470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28471. $as_echo "no" >&6; }
  28472. tst_works_poll="no"
  28473. fi
  28474. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  28475. conftest.$ac_objext conftest.beam conftest.$ac_ext
  28476. fi
  28477. fi
  28478. #
  28479. if test "$tst_compi_poll" = "yes" &&
  28480. test "$tst_works_poll" != "no"; then
  28481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
  28482. $as_echo_n "checking if poll usage allowed... " >&6; }
  28483. if test "x$curl_disallow_poll" != "xyes"; then
  28484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28485. $as_echo "yes" >&6; }
  28486. tst_allow_poll="yes"
  28487. else
  28488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28489. $as_echo "no" >&6; }
  28490. tst_allow_poll="no"
  28491. fi
  28492. fi
  28493. #
  28494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
  28495. $as_echo_n "checking if poll might be used... " >&6; }
  28496. if test "$tst_links_poll" = "yes" &&
  28497. test "$tst_proto_poll" = "yes" &&
  28498. test "$tst_compi_poll" = "yes" &&
  28499. test "$tst_allow_poll" = "yes" &&
  28500. test "$tst_works_poll" != "no"; then
  28501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28502. $as_echo "yes" >&6; }
  28503. cat >>confdefs.h <<_ACEOF
  28504. #define HAVE_POLL 1
  28505. _ACEOF
  28506. cat >>confdefs.h <<_ACEOF
  28507. #define HAVE_POLL_FINE 1
  28508. _ACEOF
  28509. ac_cv_func_poll="yes"
  28510. else
  28511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28512. $as_echo "no" >&6; }
  28513. ac_cv_func_poll="no"
  28514. fi
  28515. #
  28516. tst_links_setsockopt="unknown"
  28517. tst_proto_setsockopt="unknown"
  28518. tst_compi_setsockopt="unknown"
  28519. tst_allow_setsockopt="unknown"
  28520. #
  28521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
  28522. $as_echo_n "checking if setsockopt can be linked... " >&6; }
  28523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28524. /* end confdefs.h. */
  28525. $curl_includes_winsock2
  28526. $curl_includes_sys_socket
  28527. int main (void)
  28528. {
  28529. if(0 != setsockopt(0, 0, 0, 0, 0))
  28530. return 1;
  28531. ;
  28532. return 0;
  28533. }
  28534. _ACEOF
  28535. if ac_fn_c_try_link "$LINENO"; then :
  28536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28537. $as_echo "yes" >&6; }
  28538. tst_links_setsockopt="yes"
  28539. else
  28540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28541. $as_echo "no" >&6; }
  28542. tst_links_setsockopt="no"
  28543. fi
  28544. rm -f core conftest.err conftest.$ac_objext \
  28545. conftest$ac_exeext conftest.$ac_ext
  28546. #
  28547. if test "$tst_links_setsockopt" = "yes"; then
  28548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
  28549. $as_echo_n "checking if setsockopt is prototyped... " >&6; }
  28550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28551. /* end confdefs.h. */
  28552. $curl_includes_winsock2
  28553. $curl_includes_sys_socket
  28554. _ACEOF
  28555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28556. $EGREP "setsockopt" >/dev/null 2>&1; then :
  28557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28558. $as_echo "yes" >&6; }
  28559. tst_proto_setsockopt="yes"
  28560. else
  28561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28562. $as_echo "no" >&6; }
  28563. tst_proto_setsockopt="no"
  28564. fi
  28565. rm -f conftest*
  28566. fi
  28567. #
  28568. if test "$tst_proto_setsockopt" = "yes"; then
  28569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
  28570. $as_echo_n "checking if setsockopt is compilable... " >&6; }
  28571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28572. /* end confdefs.h. */
  28573. $curl_includes_winsock2
  28574. $curl_includes_sys_socket
  28575. int main (void)
  28576. {
  28577. if(0 != setsockopt(0, 0, 0, 0, 0))
  28578. return 1;
  28579. ;
  28580. return 0;
  28581. }
  28582. _ACEOF
  28583. if ac_fn_c_try_compile "$LINENO"; then :
  28584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28585. $as_echo "yes" >&6; }
  28586. tst_compi_setsockopt="yes"
  28587. else
  28588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28589. $as_echo "no" >&6; }
  28590. tst_compi_setsockopt="no"
  28591. fi
  28592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28593. fi
  28594. #
  28595. if test "$tst_compi_setsockopt" = "yes"; then
  28596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
  28597. $as_echo_n "checking if setsockopt usage allowed... " >&6; }
  28598. if test "x$curl_disallow_setsockopt" != "xyes"; then
  28599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28600. $as_echo "yes" >&6; }
  28601. tst_allow_setsockopt="yes"
  28602. else
  28603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28604. $as_echo "no" >&6; }
  28605. tst_allow_setsockopt="no"
  28606. fi
  28607. fi
  28608. #
  28609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
  28610. $as_echo_n "checking if setsockopt might be used... " >&6; }
  28611. if test "$tst_links_setsockopt" = "yes" &&
  28612. test "$tst_proto_setsockopt" = "yes" &&
  28613. test "$tst_compi_setsockopt" = "yes" &&
  28614. test "$tst_allow_setsockopt" = "yes"; then
  28615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28616. $as_echo "yes" >&6; }
  28617. cat >>confdefs.h <<_ACEOF
  28618. #define HAVE_SETSOCKOPT 1
  28619. _ACEOF
  28620. ac_cv_func_setsockopt="yes"
  28621. #
  28622. tst_compi_setsockopt_so_nonblock="unknown"
  28623. tst_allow_setsockopt_so_nonblock="unknown"
  28624. #
  28625. if test "$ac_cv_func_setsockopt" = "yes"; then
  28626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
  28627. $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
  28628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28629. /* end confdefs.h. */
  28630. $curl_includes_winsock2
  28631. $curl_includes_sys_socket
  28632. int main (void)
  28633. {
  28634. if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
  28635. return 1;
  28636. ;
  28637. return 0;
  28638. }
  28639. _ACEOF
  28640. if ac_fn_c_try_compile "$LINENO"; then :
  28641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28642. $as_echo "yes" >&6; }
  28643. tst_compi_setsockopt_so_nonblock="yes"
  28644. else
  28645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28646. $as_echo "no" >&6; }
  28647. tst_compi_setsockopt_so_nonblock="no"
  28648. fi
  28649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28650. fi
  28651. #
  28652. if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
  28653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
  28654. $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
  28655. if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
  28656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28657. $as_echo "yes" >&6; }
  28658. tst_allow_setsockopt_so_nonblock="yes"
  28659. else
  28660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28661. $as_echo "no" >&6; }
  28662. tst_allow_setsockopt_so_nonblock="no"
  28663. fi
  28664. fi
  28665. #
  28666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
  28667. $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
  28668. if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
  28669. test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
  28670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28671. $as_echo "yes" >&6; }
  28672. cat >>confdefs.h <<_ACEOF
  28673. #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
  28674. _ACEOF
  28675. ac_cv_func_setsockopt_so_nonblock="yes"
  28676. else
  28677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28678. $as_echo "no" >&6; }
  28679. ac_cv_func_setsockopt_so_nonblock="no"
  28680. fi
  28681. else
  28682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28683. $as_echo "no" >&6; }
  28684. ac_cv_func_setsockopt="no"
  28685. fi
  28686. curl_includes_signal="\
  28687. /* includes start */
  28688. #ifdef HAVE_SYS_TYPES_H
  28689. # include <sys/types.h>
  28690. #endif
  28691. #ifdef HAVE_SIGNAL_H
  28692. # include <signal.h>
  28693. #endif
  28694. /* includes end */"
  28695. for ac_header in sys/types.h signal.h
  28696. do :
  28697. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  28698. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
  28699. "
  28700. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  28701. cat >>confdefs.h <<_ACEOF
  28702. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  28703. _ACEOF
  28704. fi
  28705. done
  28706. #
  28707. tst_links_sigaction="unknown"
  28708. tst_proto_sigaction="unknown"
  28709. tst_compi_sigaction="unknown"
  28710. tst_allow_sigaction="unknown"
  28711. #
  28712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
  28713. $as_echo_n "checking if sigaction can be linked... " >&6; }
  28714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28715. /* end confdefs.h. */
  28716. #define sigaction innocuous_sigaction
  28717. #ifdef __STDC__
  28718. # include <limits.h>
  28719. #else
  28720. # include <assert.h>
  28721. #endif
  28722. #undef sigaction
  28723. #ifdef __cplusplus
  28724. extern "C"
  28725. #endif
  28726. char sigaction ();
  28727. #if defined __stub_sigaction || defined __stub___sigaction
  28728. choke me
  28729. #endif
  28730. int main (void)
  28731. {
  28732. return sigaction ();
  28733. ;
  28734. return 0;
  28735. }
  28736. _ACEOF
  28737. if ac_fn_c_try_link "$LINENO"; then :
  28738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28739. $as_echo "yes" >&6; }
  28740. tst_links_sigaction="yes"
  28741. else
  28742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28743. $as_echo "no" >&6; }
  28744. tst_links_sigaction="no"
  28745. fi
  28746. rm -f core conftest.err conftest.$ac_objext \
  28747. conftest$ac_exeext conftest.$ac_ext
  28748. #
  28749. if test "$tst_links_sigaction" = "yes"; then
  28750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
  28751. $as_echo_n "checking if sigaction is prototyped... " >&6; }
  28752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28753. /* end confdefs.h. */
  28754. $curl_includes_signal
  28755. _ACEOF
  28756. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28757. $EGREP "sigaction" >/dev/null 2>&1; then :
  28758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28759. $as_echo "yes" >&6; }
  28760. tst_proto_sigaction="yes"
  28761. else
  28762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28763. $as_echo "no" >&6; }
  28764. tst_proto_sigaction="no"
  28765. fi
  28766. rm -f conftest*
  28767. fi
  28768. #
  28769. if test "$tst_proto_sigaction" = "yes"; then
  28770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
  28771. $as_echo_n "checking if sigaction is compilable... " >&6; }
  28772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28773. /* end confdefs.h. */
  28774. $curl_includes_signal
  28775. int main (void)
  28776. {
  28777. if(0 != sigaction(0, 0, 0))
  28778. return 1;
  28779. ;
  28780. return 0;
  28781. }
  28782. _ACEOF
  28783. if ac_fn_c_try_compile "$LINENO"; then :
  28784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28785. $as_echo "yes" >&6; }
  28786. tst_compi_sigaction="yes"
  28787. else
  28788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28789. $as_echo "no" >&6; }
  28790. tst_compi_sigaction="no"
  28791. fi
  28792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28793. fi
  28794. #
  28795. if test "$tst_compi_sigaction" = "yes"; then
  28796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
  28797. $as_echo_n "checking if sigaction usage allowed... " >&6; }
  28798. if test "x$curl_disallow_sigaction" != "xyes"; then
  28799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28800. $as_echo "yes" >&6; }
  28801. tst_allow_sigaction="yes"
  28802. else
  28803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28804. $as_echo "no" >&6; }
  28805. tst_allow_sigaction="no"
  28806. fi
  28807. fi
  28808. #
  28809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
  28810. $as_echo_n "checking if sigaction might be used... " >&6; }
  28811. if test "$tst_links_sigaction" = "yes" &&
  28812. test "$tst_proto_sigaction" = "yes" &&
  28813. test "$tst_compi_sigaction" = "yes" &&
  28814. test "$tst_allow_sigaction" = "yes"; then
  28815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28816. $as_echo "yes" >&6; }
  28817. cat >>confdefs.h <<_ACEOF
  28818. #define HAVE_SIGACTION 1
  28819. _ACEOF
  28820. ac_cv_func_sigaction="yes"
  28821. else
  28822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28823. $as_echo "no" >&6; }
  28824. ac_cv_func_sigaction="no"
  28825. fi
  28826. #
  28827. tst_links_siginterrupt="unknown"
  28828. tst_proto_siginterrupt="unknown"
  28829. tst_compi_siginterrupt="unknown"
  28830. tst_allow_siginterrupt="unknown"
  28831. #
  28832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
  28833. $as_echo_n "checking if siginterrupt can be linked... " >&6; }
  28834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28835. /* end confdefs.h. */
  28836. #define siginterrupt innocuous_siginterrupt
  28837. #ifdef __STDC__
  28838. # include <limits.h>
  28839. #else
  28840. # include <assert.h>
  28841. #endif
  28842. #undef siginterrupt
  28843. #ifdef __cplusplus
  28844. extern "C"
  28845. #endif
  28846. char siginterrupt ();
  28847. #if defined __stub_siginterrupt || defined __stub___siginterrupt
  28848. choke me
  28849. #endif
  28850. int main (void)
  28851. {
  28852. return siginterrupt ();
  28853. ;
  28854. return 0;
  28855. }
  28856. _ACEOF
  28857. if ac_fn_c_try_link "$LINENO"; then :
  28858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28859. $as_echo "yes" >&6; }
  28860. tst_links_siginterrupt="yes"
  28861. else
  28862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28863. $as_echo "no" >&6; }
  28864. tst_links_siginterrupt="no"
  28865. fi
  28866. rm -f core conftest.err conftest.$ac_objext \
  28867. conftest$ac_exeext conftest.$ac_ext
  28868. #
  28869. if test "$tst_links_siginterrupt" = "yes"; then
  28870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
  28871. $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
  28872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28873. /* end confdefs.h. */
  28874. $curl_includes_signal
  28875. _ACEOF
  28876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28877. $EGREP "siginterrupt" >/dev/null 2>&1; then :
  28878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28879. $as_echo "yes" >&6; }
  28880. tst_proto_siginterrupt="yes"
  28881. else
  28882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28883. $as_echo "no" >&6; }
  28884. tst_proto_siginterrupt="no"
  28885. fi
  28886. rm -f conftest*
  28887. fi
  28888. #
  28889. if test "$tst_proto_siginterrupt" = "yes"; then
  28890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
  28891. $as_echo_n "checking if siginterrupt is compilable... " >&6; }
  28892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28893. /* end confdefs.h. */
  28894. $curl_includes_signal
  28895. int main (void)
  28896. {
  28897. if(0 != siginterrupt(0, 0))
  28898. return 1;
  28899. ;
  28900. return 0;
  28901. }
  28902. _ACEOF
  28903. if ac_fn_c_try_compile "$LINENO"; then :
  28904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28905. $as_echo "yes" >&6; }
  28906. tst_compi_siginterrupt="yes"
  28907. else
  28908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28909. $as_echo "no" >&6; }
  28910. tst_compi_siginterrupt="no"
  28911. fi
  28912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28913. fi
  28914. #
  28915. if test "$tst_compi_siginterrupt" = "yes"; then
  28916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
  28917. $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
  28918. if test "x$curl_disallow_siginterrupt" != "xyes"; then
  28919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28920. $as_echo "yes" >&6; }
  28921. tst_allow_siginterrupt="yes"
  28922. else
  28923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28924. $as_echo "no" >&6; }
  28925. tst_allow_siginterrupt="no"
  28926. fi
  28927. fi
  28928. #
  28929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
  28930. $as_echo_n "checking if siginterrupt might be used... " >&6; }
  28931. if test "$tst_links_siginterrupt" = "yes" &&
  28932. test "$tst_proto_siginterrupt" = "yes" &&
  28933. test "$tst_compi_siginterrupt" = "yes" &&
  28934. test "$tst_allow_siginterrupt" = "yes"; then
  28935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28936. $as_echo "yes" >&6; }
  28937. cat >>confdefs.h <<_ACEOF
  28938. #define HAVE_SIGINTERRUPT 1
  28939. _ACEOF
  28940. ac_cv_func_siginterrupt="yes"
  28941. else
  28942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28943. $as_echo "no" >&6; }
  28944. ac_cv_func_siginterrupt="no"
  28945. fi
  28946. #
  28947. tst_links_signal="unknown"
  28948. tst_proto_signal="unknown"
  28949. tst_compi_signal="unknown"
  28950. tst_allow_signal="unknown"
  28951. #
  28952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
  28953. $as_echo_n "checking if signal can be linked... " >&6; }
  28954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28955. /* end confdefs.h. */
  28956. #define signal innocuous_signal
  28957. #ifdef __STDC__
  28958. # include <limits.h>
  28959. #else
  28960. # include <assert.h>
  28961. #endif
  28962. #undef signal
  28963. #ifdef __cplusplus
  28964. extern "C"
  28965. #endif
  28966. char signal ();
  28967. #if defined __stub_signal || defined __stub___signal
  28968. choke me
  28969. #endif
  28970. int main (void)
  28971. {
  28972. return signal ();
  28973. ;
  28974. return 0;
  28975. }
  28976. _ACEOF
  28977. if ac_fn_c_try_link "$LINENO"; then :
  28978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28979. $as_echo "yes" >&6; }
  28980. tst_links_signal="yes"
  28981. else
  28982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28983. $as_echo "no" >&6; }
  28984. tst_links_signal="no"
  28985. fi
  28986. rm -f core conftest.err conftest.$ac_objext \
  28987. conftest$ac_exeext conftest.$ac_ext
  28988. #
  28989. if test "$tst_links_signal" = "yes"; then
  28990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
  28991. $as_echo_n "checking if signal is prototyped... " >&6; }
  28992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28993. /* end confdefs.h. */
  28994. $curl_includes_signal
  28995. _ACEOF
  28996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  28997. $EGREP "signal" >/dev/null 2>&1; then :
  28998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28999. $as_echo "yes" >&6; }
  29000. tst_proto_signal="yes"
  29001. else
  29002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29003. $as_echo "no" >&6; }
  29004. tst_proto_signal="no"
  29005. fi
  29006. rm -f conftest*
  29007. fi
  29008. #
  29009. if test "$tst_proto_signal" = "yes"; then
  29010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
  29011. $as_echo_n "checking if signal is compilable... " >&6; }
  29012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29013. /* end confdefs.h. */
  29014. $curl_includes_signal
  29015. int main (void)
  29016. {
  29017. if(0 != signal(0, 0))
  29018. return 1;
  29019. ;
  29020. return 0;
  29021. }
  29022. _ACEOF
  29023. if ac_fn_c_try_compile "$LINENO"; then :
  29024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29025. $as_echo "yes" >&6; }
  29026. tst_compi_signal="yes"
  29027. else
  29028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29029. $as_echo "no" >&6; }
  29030. tst_compi_signal="no"
  29031. fi
  29032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29033. fi
  29034. #
  29035. if test "$tst_compi_signal" = "yes"; then
  29036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
  29037. $as_echo_n "checking if signal usage allowed... " >&6; }
  29038. if test "x$curl_disallow_signal" != "xyes"; then
  29039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29040. $as_echo "yes" >&6; }
  29041. tst_allow_signal="yes"
  29042. else
  29043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29044. $as_echo "no" >&6; }
  29045. tst_allow_signal="no"
  29046. fi
  29047. fi
  29048. #
  29049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
  29050. $as_echo_n "checking if signal might be used... " >&6; }
  29051. if test "$tst_links_signal" = "yes" &&
  29052. test "$tst_proto_signal" = "yes" &&
  29053. test "$tst_compi_signal" = "yes" &&
  29054. test "$tst_allow_signal" = "yes"; then
  29055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29056. $as_echo "yes" >&6; }
  29057. cat >>confdefs.h <<_ACEOF
  29058. #define HAVE_SIGNAL 1
  29059. _ACEOF
  29060. ac_cv_func_signal="yes"
  29061. else
  29062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29063. $as_echo "no" >&6; }
  29064. ac_cv_func_signal="no"
  29065. fi
  29066. curl_includes_setjmp="\
  29067. /* includes start */
  29068. #ifdef HAVE_SYS_TYPES_H
  29069. # include <sys/types.h>
  29070. #endif
  29071. #ifdef HAVE_SETJMP_H
  29072. # include <setjmp.h>
  29073. #endif
  29074. /* includes end */"
  29075. for ac_header in sys/types.h setjmp.h
  29076. do :
  29077. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  29078. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
  29079. "
  29080. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  29081. cat >>confdefs.h <<_ACEOF
  29082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  29083. _ACEOF
  29084. fi
  29085. done
  29086. #
  29087. tst_links_sigsetjmp="unknown"
  29088. tst_macro_sigsetjmp="unknown"
  29089. tst_proto_sigsetjmp="unknown"
  29090. tst_compi_sigsetjmp="unknown"
  29091. tst_allow_sigsetjmp="unknown"
  29092. #
  29093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
  29094. $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
  29095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29096. /* end confdefs.h. */
  29097. #define sigsetjmp innocuous_sigsetjmp
  29098. #ifdef __STDC__
  29099. # include <limits.h>
  29100. #else
  29101. # include <assert.h>
  29102. #endif
  29103. #undef sigsetjmp
  29104. #ifdef __cplusplus
  29105. extern "C"
  29106. #endif
  29107. char sigsetjmp ();
  29108. #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
  29109. choke me
  29110. #endif
  29111. int main (void)
  29112. {
  29113. return sigsetjmp ();
  29114. ;
  29115. return 0;
  29116. }
  29117. _ACEOF
  29118. if ac_fn_c_try_link "$LINENO"; then :
  29119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29120. $as_echo "yes" >&6; }
  29121. tst_links_sigsetjmp="yes"
  29122. else
  29123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29124. $as_echo "no" >&6; }
  29125. tst_links_sigsetjmp="no"
  29126. fi
  29127. rm -f core conftest.err conftest.$ac_objext \
  29128. conftest$ac_exeext conftest.$ac_ext
  29129. #
  29130. if test "$tst_links_sigsetjmp" = "no"; then
  29131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
  29132. $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
  29133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29134. /* end confdefs.h. */
  29135. $curl_includes_setjmp
  29136. int main (void)
  29137. {
  29138. sigjmp_buf env;
  29139. if(0 != sigsetjmp(env, 0))
  29140. return 1;
  29141. ;
  29142. return 0;
  29143. }
  29144. _ACEOF
  29145. if ac_fn_c_try_link "$LINENO"; then :
  29146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29147. $as_echo "yes" >&6; }
  29148. tst_macro_sigsetjmp="yes"
  29149. else
  29150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29151. $as_echo "no" >&6; }
  29152. tst_macro_sigsetjmp="no"
  29153. fi
  29154. rm -f core conftest.err conftest.$ac_objext \
  29155. conftest$ac_exeext conftest.$ac_ext
  29156. fi
  29157. #
  29158. if test "$tst_links_sigsetjmp" = "yes"; then
  29159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
  29160. $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
  29161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29162. /* end confdefs.h. */
  29163. $curl_includes_setjmp
  29164. _ACEOF
  29165. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29166. $EGREP "sigsetjmp" >/dev/null 2>&1; then :
  29167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29168. $as_echo "yes" >&6; }
  29169. tst_proto_sigsetjmp="yes"
  29170. else
  29171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29172. $as_echo "no" >&6; }
  29173. tst_proto_sigsetjmp="no"
  29174. fi
  29175. rm -f conftest*
  29176. fi
  29177. #
  29178. if test "$tst_proto_sigsetjmp" = "yes" ||
  29179. test "$tst_macro_sigsetjmp" = "yes"; then
  29180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
  29181. $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
  29182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29183. /* end confdefs.h. */
  29184. $curl_includes_setjmp
  29185. int main (void)
  29186. {
  29187. sigjmp_buf env;
  29188. if(0 != sigsetjmp(env, 0))
  29189. return 1;
  29190. ;
  29191. return 0;
  29192. }
  29193. _ACEOF
  29194. if ac_fn_c_try_compile "$LINENO"; then :
  29195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29196. $as_echo "yes" >&6; }
  29197. tst_compi_sigsetjmp="yes"
  29198. else
  29199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29200. $as_echo "no" >&6; }
  29201. tst_compi_sigsetjmp="no"
  29202. fi
  29203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29204. fi
  29205. #
  29206. if test "$tst_compi_sigsetjmp" = "yes"; then
  29207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
  29208. $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
  29209. if test "x$curl_disallow_sigsetjmp" != "xyes"; then
  29210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29211. $as_echo "yes" >&6; }
  29212. tst_allow_sigsetjmp="yes"
  29213. else
  29214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29215. $as_echo "no" >&6; }
  29216. tst_allow_sigsetjmp="no"
  29217. fi
  29218. fi
  29219. #
  29220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
  29221. $as_echo_n "checking if sigsetjmp might be used... " >&6; }
  29222. if (test "$tst_proto_sigsetjmp" = "yes" ||
  29223. test "$tst_macro_sigsetjmp" = "yes") &&
  29224. test "$tst_compi_sigsetjmp" = "yes" &&
  29225. test "$tst_allow_sigsetjmp" = "yes"; then
  29226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29227. $as_echo "yes" >&6; }
  29228. cat >>confdefs.h <<_ACEOF
  29229. #define HAVE_SIGSETJMP 1
  29230. _ACEOF
  29231. ac_cv_func_sigsetjmp="yes"
  29232. else
  29233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29234. $as_echo "no" >&6; }
  29235. ac_cv_func_sigsetjmp="no"
  29236. fi
  29237. #
  29238. tst_links_socket="unknown"
  29239. tst_proto_socket="unknown"
  29240. tst_compi_socket="unknown"
  29241. tst_allow_socket="unknown"
  29242. #
  29243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
  29244. $as_echo_n "checking if socket can be linked... " >&6; }
  29245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29246. /* end confdefs.h. */
  29247. $curl_includes_winsock2
  29248. $curl_includes_sys_socket
  29249. $curl_includes_socket
  29250. int main (void)
  29251. {
  29252. if(0 != socket(0, 0, 0))
  29253. return 1;
  29254. ;
  29255. return 0;
  29256. }
  29257. _ACEOF
  29258. if ac_fn_c_try_link "$LINENO"; then :
  29259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29260. $as_echo "yes" >&6; }
  29261. tst_links_socket="yes"
  29262. else
  29263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29264. $as_echo "no" >&6; }
  29265. tst_links_socket="no"
  29266. fi
  29267. rm -f core conftest.err conftest.$ac_objext \
  29268. conftest$ac_exeext conftest.$ac_ext
  29269. #
  29270. if test "$tst_links_socket" = "yes"; then
  29271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
  29272. $as_echo_n "checking if socket is prototyped... " >&6; }
  29273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29274. /* end confdefs.h. */
  29275. $curl_includes_winsock2
  29276. $curl_includes_sys_socket
  29277. $curl_includes_socket
  29278. _ACEOF
  29279. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29280. $EGREP "socket" >/dev/null 2>&1; then :
  29281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29282. $as_echo "yes" >&6; }
  29283. tst_proto_socket="yes"
  29284. else
  29285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29286. $as_echo "no" >&6; }
  29287. tst_proto_socket="no"
  29288. fi
  29289. rm -f conftest*
  29290. fi
  29291. #
  29292. if test "$tst_proto_socket" = "yes"; then
  29293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
  29294. $as_echo_n "checking if socket is compilable... " >&6; }
  29295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29296. /* end confdefs.h. */
  29297. $curl_includes_winsock2
  29298. $curl_includes_sys_socket
  29299. $curl_includes_socket
  29300. int main (void)
  29301. {
  29302. if(0 != socket(0, 0, 0))
  29303. return 1;
  29304. ;
  29305. return 0;
  29306. }
  29307. _ACEOF
  29308. if ac_fn_c_try_compile "$LINENO"; then :
  29309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29310. $as_echo "yes" >&6; }
  29311. tst_compi_socket="yes"
  29312. else
  29313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29314. $as_echo "no" >&6; }
  29315. tst_compi_socket="no"
  29316. fi
  29317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29318. fi
  29319. #
  29320. if test "$tst_compi_socket" = "yes"; then
  29321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
  29322. $as_echo_n "checking if socket usage allowed... " >&6; }
  29323. if test "x$curl_disallow_socket" != "xyes"; then
  29324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29325. $as_echo "yes" >&6; }
  29326. tst_allow_socket="yes"
  29327. else
  29328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29329. $as_echo "no" >&6; }
  29330. tst_allow_socket="no"
  29331. fi
  29332. fi
  29333. #
  29334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
  29335. $as_echo_n "checking if socket might be used... " >&6; }
  29336. if test "$tst_links_socket" = "yes" &&
  29337. test "$tst_proto_socket" = "yes" &&
  29338. test "$tst_compi_socket" = "yes" &&
  29339. test "$tst_allow_socket" = "yes"; then
  29340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29341. $as_echo "yes" >&6; }
  29342. cat >>confdefs.h <<_ACEOF
  29343. #define HAVE_SOCKET 1
  29344. _ACEOF
  29345. ac_cv_func_socket="yes"
  29346. else
  29347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29348. $as_echo "no" >&6; }
  29349. ac_cv_func_socket="no"
  29350. fi
  29351. #
  29352. tst_links_socketpair="unknown"
  29353. tst_proto_socketpair="unknown"
  29354. tst_compi_socketpair="unknown"
  29355. tst_allow_socketpair="unknown"
  29356. #
  29357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
  29358. $as_echo_n "checking if socketpair can be linked... " >&6; }
  29359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29360. /* end confdefs.h. */
  29361. #define socketpair innocuous_socketpair
  29362. #ifdef __STDC__
  29363. # include <limits.h>
  29364. #else
  29365. # include <assert.h>
  29366. #endif
  29367. #undef socketpair
  29368. #ifdef __cplusplus
  29369. extern "C"
  29370. #endif
  29371. char socketpair ();
  29372. #if defined __stub_socketpair || defined __stub___socketpair
  29373. choke me
  29374. #endif
  29375. int main (void)
  29376. {
  29377. return socketpair ();
  29378. ;
  29379. return 0;
  29380. }
  29381. _ACEOF
  29382. if ac_fn_c_try_link "$LINENO"; then :
  29383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29384. $as_echo "yes" >&6; }
  29385. tst_links_socketpair="yes"
  29386. else
  29387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29388. $as_echo "no" >&6; }
  29389. tst_links_socketpair="no"
  29390. fi
  29391. rm -f core conftest.err conftest.$ac_objext \
  29392. conftest$ac_exeext conftest.$ac_ext
  29393. #
  29394. if test "$tst_links_socketpair" = "yes"; then
  29395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
  29396. $as_echo_n "checking if socketpair is prototyped... " >&6; }
  29397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29398. /* end confdefs.h. */
  29399. $curl_includes_sys_socket
  29400. $curl_includes_socket
  29401. _ACEOF
  29402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29403. $EGREP "socketpair" >/dev/null 2>&1; then :
  29404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29405. $as_echo "yes" >&6; }
  29406. tst_proto_socketpair="yes"
  29407. else
  29408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29409. $as_echo "no" >&6; }
  29410. tst_proto_socketpair="no"
  29411. fi
  29412. rm -f conftest*
  29413. fi
  29414. #
  29415. if test "$tst_proto_socketpair" = "yes"; then
  29416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
  29417. $as_echo_n "checking if socketpair is compilable... " >&6; }
  29418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29419. /* end confdefs.h. */
  29420. $curl_includes_sys_socket
  29421. $curl_includes_socket
  29422. int main (void)
  29423. {
  29424. int sv[2];
  29425. if(0 != socketpair(0, 0, 0, sv))
  29426. return 1;
  29427. ;
  29428. return 0;
  29429. }
  29430. _ACEOF
  29431. if ac_fn_c_try_compile "$LINENO"; then :
  29432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29433. $as_echo "yes" >&6; }
  29434. tst_compi_socketpair="yes"
  29435. else
  29436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29437. $as_echo "no" >&6; }
  29438. tst_compi_socketpair="no"
  29439. fi
  29440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29441. fi
  29442. #
  29443. if test "$tst_compi_socketpair" = "yes"; then
  29444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
  29445. $as_echo_n "checking if socketpair usage allowed... " >&6; }
  29446. if test "x$curl_disallow_socketpair" != "xyes"; then
  29447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29448. $as_echo "yes" >&6; }
  29449. tst_allow_socketpair="yes"
  29450. else
  29451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29452. $as_echo "no" >&6; }
  29453. tst_allow_socketpair="no"
  29454. fi
  29455. fi
  29456. #
  29457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
  29458. $as_echo_n "checking if socketpair might be used... " >&6; }
  29459. if test "$tst_links_socketpair" = "yes" &&
  29460. test "$tst_proto_socketpair" = "yes" &&
  29461. test "$tst_compi_socketpair" = "yes" &&
  29462. test "$tst_allow_socketpair" = "yes"; then
  29463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29464. $as_echo "yes" >&6; }
  29465. cat >>confdefs.h <<_ACEOF
  29466. #define HAVE_SOCKETPAIR 1
  29467. _ACEOF
  29468. ac_cv_func_socketpair="yes"
  29469. else
  29470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29471. $as_echo "no" >&6; }
  29472. ac_cv_func_socketpair="no"
  29473. fi
  29474. #
  29475. tst_links_strcasecmp="unknown"
  29476. tst_proto_strcasecmp="unknown"
  29477. tst_compi_strcasecmp="unknown"
  29478. tst_allow_strcasecmp="unknown"
  29479. #
  29480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
  29481. $as_echo_n "checking if strcasecmp can be linked... " >&6; }
  29482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29483. /* end confdefs.h. */
  29484. #define strcasecmp innocuous_strcasecmp
  29485. #ifdef __STDC__
  29486. # include <limits.h>
  29487. #else
  29488. # include <assert.h>
  29489. #endif
  29490. #undef strcasecmp
  29491. #ifdef __cplusplus
  29492. extern "C"
  29493. #endif
  29494. char strcasecmp ();
  29495. #if defined __stub_strcasecmp || defined __stub___strcasecmp
  29496. choke me
  29497. #endif
  29498. int main (void)
  29499. {
  29500. return strcasecmp ();
  29501. ;
  29502. return 0;
  29503. }
  29504. _ACEOF
  29505. if ac_fn_c_try_link "$LINENO"; then :
  29506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29507. $as_echo "yes" >&6; }
  29508. tst_links_strcasecmp="yes"
  29509. else
  29510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29511. $as_echo "no" >&6; }
  29512. tst_links_strcasecmp="no"
  29513. fi
  29514. rm -f core conftest.err conftest.$ac_objext \
  29515. conftest$ac_exeext conftest.$ac_ext
  29516. #
  29517. if test "$tst_links_strcasecmp" = "yes"; then
  29518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
  29519. $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
  29520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29521. /* end confdefs.h. */
  29522. $curl_includes_string
  29523. _ACEOF
  29524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29525. $EGREP "strcasecmp" >/dev/null 2>&1; then :
  29526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29527. $as_echo "yes" >&6; }
  29528. tst_proto_strcasecmp="yes"
  29529. else
  29530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29531. $as_echo "no" >&6; }
  29532. tst_proto_strcasecmp="no"
  29533. fi
  29534. rm -f conftest*
  29535. fi
  29536. #
  29537. if test "$tst_proto_strcasecmp" = "yes"; then
  29538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
  29539. $as_echo_n "checking if strcasecmp is compilable... " >&6; }
  29540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29541. /* end confdefs.h. */
  29542. $curl_includes_string
  29543. int main (void)
  29544. {
  29545. if(0 != strcasecmp(0, 0))
  29546. return 1;
  29547. ;
  29548. return 0;
  29549. }
  29550. _ACEOF
  29551. if ac_fn_c_try_compile "$LINENO"; then :
  29552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29553. $as_echo "yes" >&6; }
  29554. tst_compi_strcasecmp="yes"
  29555. else
  29556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29557. $as_echo "no" >&6; }
  29558. tst_compi_strcasecmp="no"
  29559. fi
  29560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29561. fi
  29562. #
  29563. if test "$tst_compi_strcasecmp" = "yes"; then
  29564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
  29565. $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
  29566. if test "x$curl_disallow_strcasecmp" != "xyes"; then
  29567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29568. $as_echo "yes" >&6; }
  29569. tst_allow_strcasecmp="yes"
  29570. else
  29571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29572. $as_echo "no" >&6; }
  29573. tst_allow_strcasecmp="no"
  29574. fi
  29575. fi
  29576. #
  29577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
  29578. $as_echo_n "checking if strcasecmp might be used... " >&6; }
  29579. if test "$tst_links_strcasecmp" = "yes" &&
  29580. test "$tst_proto_strcasecmp" = "yes" &&
  29581. test "$tst_compi_strcasecmp" = "yes" &&
  29582. test "$tst_allow_strcasecmp" = "yes"; then
  29583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29584. $as_echo "yes" >&6; }
  29585. cat >>confdefs.h <<_ACEOF
  29586. #define HAVE_STRCASECMP 1
  29587. _ACEOF
  29588. ac_cv_func_strcasecmp="yes"
  29589. else
  29590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29591. $as_echo "no" >&6; }
  29592. ac_cv_func_strcasecmp="no"
  29593. fi
  29594. #
  29595. tst_links_strcmpi="unknown"
  29596. tst_proto_strcmpi="unknown"
  29597. tst_compi_strcmpi="unknown"
  29598. tst_allow_strcmpi="unknown"
  29599. #
  29600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
  29601. $as_echo_n "checking if strcmpi can be linked... " >&6; }
  29602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29603. /* end confdefs.h. */
  29604. #define strcmpi innocuous_strcmpi
  29605. #ifdef __STDC__
  29606. # include <limits.h>
  29607. #else
  29608. # include <assert.h>
  29609. #endif
  29610. #undef strcmpi
  29611. #ifdef __cplusplus
  29612. extern "C"
  29613. #endif
  29614. char strcmpi ();
  29615. #if defined __stub_strcmpi || defined __stub___strcmpi
  29616. choke me
  29617. #endif
  29618. int main (void)
  29619. {
  29620. return strcmpi ();
  29621. ;
  29622. return 0;
  29623. }
  29624. _ACEOF
  29625. if ac_fn_c_try_link "$LINENO"; then :
  29626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29627. $as_echo "yes" >&6; }
  29628. tst_links_strcmpi="yes"
  29629. else
  29630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29631. $as_echo "no" >&6; }
  29632. tst_links_strcmpi="no"
  29633. fi
  29634. rm -f core conftest.err conftest.$ac_objext \
  29635. conftest$ac_exeext conftest.$ac_ext
  29636. #
  29637. if test "$tst_links_strcmpi" = "yes"; then
  29638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
  29639. $as_echo_n "checking if strcmpi is prototyped... " >&6; }
  29640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29641. /* end confdefs.h. */
  29642. $curl_includes_string
  29643. _ACEOF
  29644. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29645. $EGREP "strcmpi" >/dev/null 2>&1; then :
  29646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29647. $as_echo "yes" >&6; }
  29648. tst_proto_strcmpi="yes"
  29649. else
  29650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29651. $as_echo "no" >&6; }
  29652. tst_proto_strcmpi="no"
  29653. fi
  29654. rm -f conftest*
  29655. fi
  29656. #
  29657. if test "$tst_proto_strcmpi" = "yes"; then
  29658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
  29659. $as_echo_n "checking if strcmpi is compilable... " >&6; }
  29660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29661. /* end confdefs.h. */
  29662. $curl_includes_string
  29663. int main (void)
  29664. {
  29665. if(0 != strcmpi(0, 0))
  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_strcmpi="yes"
  29675. else
  29676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29677. $as_echo "no" >&6; }
  29678. tst_compi_strcmpi="no"
  29679. fi
  29680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29681. fi
  29682. #
  29683. if test "$tst_compi_strcmpi" = "yes"; then
  29684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
  29685. $as_echo_n "checking if strcmpi usage allowed... " >&6; }
  29686. if test "x$curl_disallow_strcmpi" != "xyes"; then
  29687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29688. $as_echo "yes" >&6; }
  29689. tst_allow_strcmpi="yes"
  29690. else
  29691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29692. $as_echo "no" >&6; }
  29693. tst_allow_strcmpi="no"
  29694. fi
  29695. fi
  29696. #
  29697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
  29698. $as_echo_n "checking if strcmpi might be used... " >&6; }
  29699. if test "$tst_links_strcmpi" = "yes" &&
  29700. test "$tst_proto_strcmpi" = "yes" &&
  29701. test "$tst_compi_strcmpi" = "yes" &&
  29702. test "$tst_allow_strcmpi" = "yes"; then
  29703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29704. $as_echo "yes" >&6; }
  29705. cat >>confdefs.h <<_ACEOF
  29706. #define HAVE_STRCMPI 1
  29707. _ACEOF
  29708. ac_cv_func_strcmpi="yes"
  29709. else
  29710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29711. $as_echo "no" >&6; }
  29712. ac_cv_func_strcmpi="no"
  29713. fi
  29714. #
  29715. tst_links_strdup="unknown"
  29716. tst_proto_strdup="unknown"
  29717. tst_compi_strdup="unknown"
  29718. tst_allow_strdup="unknown"
  29719. #
  29720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
  29721. $as_echo_n "checking if strdup can be linked... " >&6; }
  29722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29723. /* end confdefs.h. */
  29724. #define strdup innocuous_strdup
  29725. #ifdef __STDC__
  29726. # include <limits.h>
  29727. #else
  29728. # include <assert.h>
  29729. #endif
  29730. #undef strdup
  29731. #ifdef __cplusplus
  29732. extern "C"
  29733. #endif
  29734. char strdup ();
  29735. #if defined __stub_strdup || defined __stub___strdup
  29736. choke me
  29737. #endif
  29738. int main (void)
  29739. {
  29740. return strdup ();
  29741. ;
  29742. return 0;
  29743. }
  29744. _ACEOF
  29745. if ac_fn_c_try_link "$LINENO"; then :
  29746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29747. $as_echo "yes" >&6; }
  29748. tst_links_strdup="yes"
  29749. else
  29750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29751. $as_echo "no" >&6; }
  29752. tst_links_strdup="no"
  29753. fi
  29754. rm -f core conftest.err conftest.$ac_objext \
  29755. conftest$ac_exeext conftest.$ac_ext
  29756. #
  29757. if test "$tst_links_strdup" = "yes"; then
  29758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
  29759. $as_echo_n "checking if strdup is prototyped... " >&6; }
  29760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29761. /* end confdefs.h. */
  29762. $curl_includes_string
  29763. _ACEOF
  29764. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29765. $EGREP "strdup" >/dev/null 2>&1; then :
  29766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29767. $as_echo "yes" >&6; }
  29768. tst_proto_strdup="yes"
  29769. else
  29770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29771. $as_echo "no" >&6; }
  29772. tst_proto_strdup="no"
  29773. fi
  29774. rm -f conftest*
  29775. fi
  29776. #
  29777. if test "$tst_proto_strdup" = "yes"; then
  29778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
  29779. $as_echo_n "checking if strdup is compilable... " >&6; }
  29780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29781. /* end confdefs.h. */
  29782. $curl_includes_string
  29783. int main (void)
  29784. {
  29785. if(0 != strdup(0))
  29786. return 1;
  29787. ;
  29788. return 0;
  29789. }
  29790. _ACEOF
  29791. if ac_fn_c_try_compile "$LINENO"; then :
  29792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29793. $as_echo "yes" >&6; }
  29794. tst_compi_strdup="yes"
  29795. else
  29796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29797. $as_echo "no" >&6; }
  29798. tst_compi_strdup="no"
  29799. fi
  29800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29801. fi
  29802. #
  29803. if test "$tst_compi_strdup" = "yes"; then
  29804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
  29805. $as_echo_n "checking if strdup usage allowed... " >&6; }
  29806. if test "x$curl_disallow_strdup" != "xyes"; then
  29807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29808. $as_echo "yes" >&6; }
  29809. tst_allow_strdup="yes"
  29810. else
  29811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29812. $as_echo "no" >&6; }
  29813. tst_allow_strdup="no"
  29814. fi
  29815. fi
  29816. #
  29817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
  29818. $as_echo_n "checking if strdup might be used... " >&6; }
  29819. if test "$tst_links_strdup" = "yes" &&
  29820. test "$tst_proto_strdup" = "yes" &&
  29821. test "$tst_compi_strdup" = "yes" &&
  29822. test "$tst_allow_strdup" = "yes"; then
  29823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29824. $as_echo "yes" >&6; }
  29825. cat >>confdefs.h <<_ACEOF
  29826. #define HAVE_STRDUP 1
  29827. _ACEOF
  29828. ac_cv_func_strdup="yes"
  29829. else
  29830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29831. $as_echo "no" >&6; }
  29832. ac_cv_func_strdup="no"
  29833. fi
  29834. #
  29835. tst_links_strerror_r="unknown"
  29836. tst_proto_strerror_r="unknown"
  29837. tst_compi_strerror_r="unknown"
  29838. tst_glibc_strerror_r="unknown"
  29839. tst_posix_strerror_r="unknown"
  29840. tst_allow_strerror_r="unknown"
  29841. tst_works_glibc_strerror_r="unknown"
  29842. tst_works_posix_strerror_r="unknown"
  29843. tst_glibc_strerror_r_type_arg3="unknown"
  29844. tst_posix_strerror_r_type_arg3="unknown"
  29845. #
  29846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
  29847. $as_echo_n "checking if strerror_r can be linked... " >&6; }
  29848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29849. /* end confdefs.h. */
  29850. #define strerror_r innocuous_strerror_r
  29851. #ifdef __STDC__
  29852. # include <limits.h>
  29853. #else
  29854. # include <assert.h>
  29855. #endif
  29856. #undef strerror_r
  29857. #ifdef __cplusplus
  29858. extern "C"
  29859. #endif
  29860. char strerror_r ();
  29861. #if defined __stub_strerror_r || defined __stub___strerror_r
  29862. choke me
  29863. #endif
  29864. int main (void)
  29865. {
  29866. return strerror_r ();
  29867. ;
  29868. return 0;
  29869. }
  29870. _ACEOF
  29871. if ac_fn_c_try_link "$LINENO"; then :
  29872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29873. $as_echo "yes" >&6; }
  29874. tst_links_strerror_r="yes"
  29875. else
  29876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29877. $as_echo "no" >&6; }
  29878. tst_links_strerror_r="no"
  29879. fi
  29880. rm -f core conftest.err conftest.$ac_objext \
  29881. conftest$ac_exeext conftest.$ac_ext
  29882. #
  29883. if test "$tst_links_strerror_r" = "yes"; then
  29884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
  29885. $as_echo_n "checking if strerror_r is prototyped... " >&6; }
  29886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29887. /* end confdefs.h. */
  29888. $curl_includes_string
  29889. _ACEOF
  29890. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  29891. $EGREP "strerror_r" >/dev/null 2>&1; then :
  29892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29893. $as_echo "yes" >&6; }
  29894. tst_proto_strerror_r="yes"
  29895. else
  29896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29897. $as_echo "no" >&6; }
  29898. tst_proto_strerror_r="no"
  29899. fi
  29900. rm -f conftest*
  29901. fi
  29902. #
  29903. if test "$tst_proto_strerror_r" = "yes"; then
  29904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
  29905. $as_echo_n "checking if strerror_r is compilable... " >&6; }
  29906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29907. /* end confdefs.h. */
  29908. $curl_includes_string
  29909. int main (void)
  29910. {
  29911. if(0 != strerror_r(0, 0, 0))
  29912. return 1;
  29913. ;
  29914. return 0;
  29915. }
  29916. _ACEOF
  29917. if ac_fn_c_try_compile "$LINENO"; then :
  29918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29919. $as_echo "yes" >&6; }
  29920. tst_compi_strerror_r="yes"
  29921. else
  29922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29923. $as_echo "no" >&6; }
  29924. tst_compi_strerror_r="no"
  29925. fi
  29926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29927. fi
  29928. #
  29929. if test "$tst_compi_strerror_r" = "yes"; then
  29930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
  29931. $as_echo_n "checking if strerror_r is glibc like... " >&6; }
  29932. tst_glibc_strerror_r_type_arg3="unknown"
  29933. for arg3 in 'size_t' 'int' 'unsigned int'; do
  29934. if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
  29935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29936. /* end confdefs.h. */
  29937. $curl_includes_string
  29938. char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
  29939. int main (void)
  29940. {
  29941. if(0 != strerror_r(0, 0, 0))
  29942. return 1;
  29943. ;
  29944. return 0;
  29945. }
  29946. _ACEOF
  29947. if ac_fn_c_try_compile "$LINENO"; then :
  29948. tst_glibc_strerror_r_type_arg3="$arg3"
  29949. fi
  29950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29951. fi
  29952. done
  29953. case "$tst_glibc_strerror_r_type_arg3" in
  29954. unknown)
  29955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29956. $as_echo "no" >&6; }
  29957. tst_glibc_strerror_r="no"
  29958. ;;
  29959. *)
  29960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29961. $as_echo "yes" >&6; }
  29962. tst_glibc_strerror_r="yes"
  29963. ;;
  29964. esac
  29965. fi
  29966. #
  29967. if test "x$cross_compiling" != "xyes" &&
  29968. test "$tst_glibc_strerror_r" = "yes"; then
  29969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  29970. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  29971. if test "$cross_compiling" = yes; then :
  29972. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  29973. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  29974. as_fn_error $? "cannot run test program while cross compiling
  29975. See \`config.log' for more details" "$LINENO" 5; }
  29976. else
  29977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29978. /* end confdefs.h. */
  29979. $curl_includes_stdlib
  29980. $curl_includes_string
  29981. # include <errno.h>
  29982. int main (void)
  29983. {
  29984. char buffer[1024];
  29985. char *string = 0;
  29986. buffer[0] = '\0';
  29987. string = strerror_r(EACCES, buffer, sizeof(buffer));
  29988. if(!string)
  29989. exit(1); /* fail */
  29990. if(!string[0])
  29991. exit(1); /* fail */
  29992. else
  29993. exit(0);
  29994. ;
  29995. return 0;
  29996. }
  29997. _ACEOF
  29998. if ac_fn_c_try_run "$LINENO"; then :
  29999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30000. $as_echo "yes" >&6; }
  30001. tst_works_glibc_strerror_r="yes"
  30002. else
  30003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30004. $as_echo "no" >&6; }
  30005. tst_works_glibc_strerror_r="no"
  30006. fi
  30007. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30008. conftest.$ac_objext conftest.beam conftest.$ac_ext
  30009. fi
  30010. fi
  30011. #
  30012. if test "$tst_compi_strerror_r" = "yes" &&
  30013. test "$tst_works_glibc_strerror_r" != "yes"; then
  30014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
  30015. $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
  30016. tst_posix_strerror_r_type_arg3="unknown"
  30017. for arg3 in 'size_t' 'int' 'unsigned int'; do
  30018. if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
  30019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30020. /* end confdefs.h. */
  30021. $curl_includes_string
  30022. int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
  30023. int main (void)
  30024. {
  30025. if(0 != strerror_r(0, 0, 0))
  30026. return 1;
  30027. ;
  30028. return 0;
  30029. }
  30030. _ACEOF
  30031. if ac_fn_c_try_compile "$LINENO"; then :
  30032. tst_posix_strerror_r_type_arg3="$arg3"
  30033. fi
  30034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30035. fi
  30036. done
  30037. case "$tst_posix_strerror_r_type_arg3" in
  30038. unknown)
  30039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30040. $as_echo "no" >&6; }
  30041. tst_posix_strerror_r="no"
  30042. ;;
  30043. *)
  30044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30045. $as_echo "yes" >&6; }
  30046. tst_posix_strerror_r="yes"
  30047. ;;
  30048. esac
  30049. fi
  30050. #
  30051. if test "x$cross_compiling" != "xyes" &&
  30052. test "$tst_posix_strerror_r" = "yes"; then
  30053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
  30054. $as_echo_n "checking if strerror_r seems to work... " >&6; }
  30055. if test "$cross_compiling" = yes; then :
  30056. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  30057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  30058. as_fn_error $? "cannot run test program while cross compiling
  30059. See \`config.log' for more details" "$LINENO" 5; }
  30060. else
  30061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30062. /* end confdefs.h. */
  30063. $curl_includes_stdlib
  30064. $curl_includes_string
  30065. # include <errno.h>
  30066. int main (void)
  30067. {
  30068. char buffer[1024];
  30069. int error = 1;
  30070. buffer[0] = '\0';
  30071. error = strerror_r(EACCES, buffer, sizeof(buffer));
  30072. if(error)
  30073. exit(1); /* fail */
  30074. if(buffer[0] == '\0')
  30075. exit(1); /* fail */
  30076. else
  30077. exit(0);
  30078. ;
  30079. return 0;
  30080. }
  30081. _ACEOF
  30082. if ac_fn_c_try_run "$LINENO"; then :
  30083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30084. $as_echo "yes" >&6; }
  30085. tst_works_posix_strerror_r="yes"
  30086. else
  30087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30088. $as_echo "no" >&6; }
  30089. tst_works_posix_strerror_r="no"
  30090. fi
  30091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30092. conftest.$ac_objext conftest.beam conftest.$ac_ext
  30093. fi
  30094. fi
  30095. #
  30096. if test "$tst_works_glibc_strerror_r" = "yes"; then
  30097. tst_posix_strerror_r="no"
  30098. fi
  30099. if test "$tst_works_posix_strerror_r" = "yes"; then
  30100. tst_glibc_strerror_r="no"
  30101. fi
  30102. if test "$tst_glibc_strerror_r" = "yes" &&
  30103. test "$tst_works_glibc_strerror_r" != "no" &&
  30104. test "$tst_posix_strerror_r" != "yes"; then
  30105. tst_allow_strerror_r="check"
  30106. fi
  30107. if test "$tst_posix_strerror_r" = "yes" &&
  30108. test "$tst_works_posix_strerror_r" != "no" &&
  30109. test "$tst_glibc_strerror_r" != "yes"; then
  30110. tst_allow_strerror_r="check"
  30111. fi
  30112. if test "$tst_allow_strerror_r" = "check"; then
  30113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
  30114. $as_echo_n "checking if strerror_r usage allowed... " >&6; }
  30115. if test "x$curl_disallow_strerror_r" != "xyes"; then
  30116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30117. $as_echo "yes" >&6; }
  30118. tst_allow_strerror_r="yes"
  30119. else
  30120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30121. $as_echo "no" >&6; }
  30122. tst_allow_strerror_r="no"
  30123. fi
  30124. fi
  30125. #
  30126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
  30127. $as_echo_n "checking if strerror_r might be used... " >&6; }
  30128. if test "$tst_links_strerror_r" = "yes" &&
  30129. test "$tst_proto_strerror_r" = "yes" &&
  30130. test "$tst_compi_strerror_r" = "yes" &&
  30131. test "$tst_allow_strerror_r" = "yes"; then
  30132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30133. $as_echo "yes" >&6; }
  30134. if test "$tst_glibc_strerror_r" = "yes"; then
  30135. cat >>confdefs.h <<_ACEOF
  30136. #define HAVE_STRERROR_R 1
  30137. _ACEOF
  30138. cat >>confdefs.h <<_ACEOF
  30139. #define HAVE_GLIBC_STRERROR_R 1
  30140. _ACEOF
  30141. cat >>confdefs.h <<_ACEOF
  30142. #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
  30143. _ACEOF
  30144. fi
  30145. if test "$tst_posix_strerror_r" = "yes"; then
  30146. cat >>confdefs.h <<_ACEOF
  30147. #define HAVE_STRERROR_R 1
  30148. _ACEOF
  30149. cat >>confdefs.h <<_ACEOF
  30150. #define HAVE_POSIX_STRERROR_R 1
  30151. _ACEOF
  30152. cat >>confdefs.h <<_ACEOF
  30153. #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
  30154. _ACEOF
  30155. fi
  30156. ac_cv_func_strerror_r="yes"
  30157. else
  30158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30159. $as_echo "no" >&6; }
  30160. ac_cv_func_strerror_r="no"
  30161. fi
  30162. #
  30163. if test "$tst_compi_strerror_r" = "yes" &&
  30164. test "$tst_allow_strerror_r" = "unknown"; then
  30165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
  30166. $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
  30167. fi
  30168. #
  30169. #
  30170. tst_links_stricmp="unknown"
  30171. tst_proto_stricmp="unknown"
  30172. tst_compi_stricmp="unknown"
  30173. tst_allow_stricmp="unknown"
  30174. #
  30175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
  30176. $as_echo_n "checking if stricmp can be linked... " >&6; }
  30177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30178. /* end confdefs.h. */
  30179. #define stricmp innocuous_stricmp
  30180. #ifdef __STDC__
  30181. # include <limits.h>
  30182. #else
  30183. # include <assert.h>
  30184. #endif
  30185. #undef stricmp
  30186. #ifdef __cplusplus
  30187. extern "C"
  30188. #endif
  30189. char stricmp ();
  30190. #if defined __stub_stricmp || defined __stub___stricmp
  30191. choke me
  30192. #endif
  30193. int main (void)
  30194. {
  30195. return stricmp ();
  30196. ;
  30197. return 0;
  30198. }
  30199. _ACEOF
  30200. if ac_fn_c_try_link "$LINENO"; then :
  30201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30202. $as_echo "yes" >&6; }
  30203. tst_links_stricmp="yes"
  30204. else
  30205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30206. $as_echo "no" >&6; }
  30207. tst_links_stricmp="no"
  30208. fi
  30209. rm -f core conftest.err conftest.$ac_objext \
  30210. conftest$ac_exeext conftest.$ac_ext
  30211. #
  30212. if test "$tst_links_stricmp" = "yes"; then
  30213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
  30214. $as_echo_n "checking if stricmp is prototyped... " >&6; }
  30215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30216. /* end confdefs.h. */
  30217. $curl_includes_string
  30218. _ACEOF
  30219. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30220. $EGREP "stricmp" >/dev/null 2>&1; then :
  30221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30222. $as_echo "yes" >&6; }
  30223. tst_proto_stricmp="yes"
  30224. else
  30225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30226. $as_echo "no" >&6; }
  30227. tst_proto_stricmp="no"
  30228. fi
  30229. rm -f conftest*
  30230. fi
  30231. #
  30232. if test "$tst_proto_stricmp" = "yes"; then
  30233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
  30234. $as_echo_n "checking if stricmp is compilable... " >&6; }
  30235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30236. /* end confdefs.h. */
  30237. $curl_includes_string
  30238. int main (void)
  30239. {
  30240. if(0 != stricmp(0, 0))
  30241. return 1;
  30242. ;
  30243. return 0;
  30244. }
  30245. _ACEOF
  30246. if ac_fn_c_try_compile "$LINENO"; then :
  30247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30248. $as_echo "yes" >&6; }
  30249. tst_compi_stricmp="yes"
  30250. else
  30251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30252. $as_echo "no" >&6; }
  30253. tst_compi_stricmp="no"
  30254. fi
  30255. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30256. fi
  30257. #
  30258. if test "$tst_compi_stricmp" = "yes"; then
  30259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
  30260. $as_echo_n "checking if stricmp usage allowed... " >&6; }
  30261. if test "x$curl_disallow_stricmp" != "xyes"; then
  30262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30263. $as_echo "yes" >&6; }
  30264. tst_allow_stricmp="yes"
  30265. else
  30266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30267. $as_echo "no" >&6; }
  30268. tst_allow_stricmp="no"
  30269. fi
  30270. fi
  30271. #
  30272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
  30273. $as_echo_n "checking if stricmp might be used... " >&6; }
  30274. if test "$tst_links_stricmp" = "yes" &&
  30275. test "$tst_proto_stricmp" = "yes" &&
  30276. test "$tst_compi_stricmp" = "yes" &&
  30277. test "$tst_allow_stricmp" = "yes"; then
  30278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30279. $as_echo "yes" >&6; }
  30280. cat >>confdefs.h <<_ACEOF
  30281. #define HAVE_STRICMP 1
  30282. _ACEOF
  30283. ac_cv_func_stricmp="yes"
  30284. else
  30285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30286. $as_echo "no" >&6; }
  30287. ac_cv_func_stricmp="no"
  30288. fi
  30289. #
  30290. tst_links_strncasecmp="unknown"
  30291. tst_proto_strncasecmp="unknown"
  30292. tst_compi_strncasecmp="unknown"
  30293. tst_allow_strncasecmp="unknown"
  30294. #
  30295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
  30296. $as_echo_n "checking if strncasecmp can be linked... " >&6; }
  30297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30298. /* end confdefs.h. */
  30299. #define strncasecmp innocuous_strncasecmp
  30300. #ifdef __STDC__
  30301. # include <limits.h>
  30302. #else
  30303. # include <assert.h>
  30304. #endif
  30305. #undef strncasecmp
  30306. #ifdef __cplusplus
  30307. extern "C"
  30308. #endif
  30309. char strncasecmp ();
  30310. #if defined __stub_strncasecmp || defined __stub___strncasecmp
  30311. choke me
  30312. #endif
  30313. int main (void)
  30314. {
  30315. return strncasecmp ();
  30316. ;
  30317. return 0;
  30318. }
  30319. _ACEOF
  30320. if ac_fn_c_try_link "$LINENO"; then :
  30321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30322. $as_echo "yes" >&6; }
  30323. tst_links_strncasecmp="yes"
  30324. else
  30325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30326. $as_echo "no" >&6; }
  30327. tst_links_strncasecmp="no"
  30328. fi
  30329. rm -f core conftest.err conftest.$ac_objext \
  30330. conftest$ac_exeext conftest.$ac_ext
  30331. #
  30332. if test "$tst_links_strncasecmp" = "yes"; then
  30333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
  30334. $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
  30335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30336. /* end confdefs.h. */
  30337. $curl_includes_string
  30338. _ACEOF
  30339. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30340. $EGREP "strncasecmp" >/dev/null 2>&1; then :
  30341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30342. $as_echo "yes" >&6; }
  30343. tst_proto_strncasecmp="yes"
  30344. else
  30345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30346. $as_echo "no" >&6; }
  30347. tst_proto_strncasecmp="no"
  30348. fi
  30349. rm -f conftest*
  30350. fi
  30351. #
  30352. if test "$tst_proto_strncasecmp" = "yes"; then
  30353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
  30354. $as_echo_n "checking if strncasecmp is compilable... " >&6; }
  30355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30356. /* end confdefs.h. */
  30357. $curl_includes_string
  30358. int main (void)
  30359. {
  30360. if(0 != strncasecmp(0, 0, 0))
  30361. return 1;
  30362. ;
  30363. return 0;
  30364. }
  30365. _ACEOF
  30366. if ac_fn_c_try_compile "$LINENO"; then :
  30367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30368. $as_echo "yes" >&6; }
  30369. tst_compi_strncasecmp="yes"
  30370. else
  30371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30372. $as_echo "no" >&6; }
  30373. tst_compi_strncasecmp="no"
  30374. fi
  30375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30376. fi
  30377. #
  30378. if test "$tst_compi_strncasecmp" = "yes"; then
  30379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
  30380. $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
  30381. if test "x$curl_disallow_strncasecmp" != "xyes"; then
  30382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30383. $as_echo "yes" >&6; }
  30384. tst_allow_strncasecmp="yes"
  30385. else
  30386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30387. $as_echo "no" >&6; }
  30388. tst_allow_strncasecmp="no"
  30389. fi
  30390. fi
  30391. #
  30392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
  30393. $as_echo_n "checking if strncasecmp might be used... " >&6; }
  30394. if test "$tst_links_strncasecmp" = "yes" &&
  30395. test "$tst_proto_strncasecmp" = "yes" &&
  30396. test "$tst_compi_strncasecmp" = "yes" &&
  30397. test "$tst_allow_strncasecmp" = "yes"; then
  30398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30399. $as_echo "yes" >&6; }
  30400. cat >>confdefs.h <<_ACEOF
  30401. #define HAVE_STRNCASECMP 1
  30402. _ACEOF
  30403. ac_cv_func_strncasecmp="yes"
  30404. else
  30405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30406. $as_echo "no" >&6; }
  30407. ac_cv_func_strncasecmp="no"
  30408. fi
  30409. #
  30410. tst_links_strncmpi="unknown"
  30411. tst_proto_strncmpi="unknown"
  30412. tst_compi_strncmpi="unknown"
  30413. tst_allow_strncmpi="unknown"
  30414. #
  30415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
  30416. $as_echo_n "checking if strncmpi can be linked... " >&6; }
  30417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30418. /* end confdefs.h. */
  30419. #define strncmpi innocuous_strncmpi
  30420. #ifdef __STDC__
  30421. # include <limits.h>
  30422. #else
  30423. # include <assert.h>
  30424. #endif
  30425. #undef strncmpi
  30426. #ifdef __cplusplus
  30427. extern "C"
  30428. #endif
  30429. char strncmpi ();
  30430. #if defined __stub_strncmpi || defined __stub___strncmpi
  30431. choke me
  30432. #endif
  30433. int main (void)
  30434. {
  30435. return strncmpi ();
  30436. ;
  30437. return 0;
  30438. }
  30439. _ACEOF
  30440. if ac_fn_c_try_link "$LINENO"; then :
  30441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30442. $as_echo "yes" >&6; }
  30443. tst_links_strncmpi="yes"
  30444. else
  30445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30446. $as_echo "no" >&6; }
  30447. tst_links_strncmpi="no"
  30448. fi
  30449. rm -f core conftest.err conftest.$ac_objext \
  30450. conftest$ac_exeext conftest.$ac_ext
  30451. #
  30452. if test "$tst_links_strncmpi" = "yes"; then
  30453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
  30454. $as_echo_n "checking if strncmpi is prototyped... " >&6; }
  30455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30456. /* end confdefs.h. */
  30457. $curl_includes_string
  30458. _ACEOF
  30459. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30460. $EGREP "strncmpi" >/dev/null 2>&1; then :
  30461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30462. $as_echo "yes" >&6; }
  30463. tst_proto_strncmpi="yes"
  30464. else
  30465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30466. $as_echo "no" >&6; }
  30467. tst_proto_strncmpi="no"
  30468. fi
  30469. rm -f conftest*
  30470. fi
  30471. #
  30472. if test "$tst_proto_strncmpi" = "yes"; then
  30473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
  30474. $as_echo_n "checking if strncmpi is compilable... " >&6; }
  30475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30476. /* end confdefs.h. */
  30477. $curl_includes_string
  30478. int main (void)
  30479. {
  30480. if(0 != strncmpi(0, 0))
  30481. return 1;
  30482. ;
  30483. return 0;
  30484. }
  30485. _ACEOF
  30486. if ac_fn_c_try_compile "$LINENO"; then :
  30487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30488. $as_echo "yes" >&6; }
  30489. tst_compi_strncmpi="yes"
  30490. else
  30491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30492. $as_echo "no" >&6; }
  30493. tst_compi_strncmpi="no"
  30494. fi
  30495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30496. fi
  30497. #
  30498. if test "$tst_compi_strncmpi" = "yes"; then
  30499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
  30500. $as_echo_n "checking if strncmpi usage allowed... " >&6; }
  30501. if test "x$curl_disallow_strncmpi" != "xyes"; then
  30502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30503. $as_echo "yes" >&6; }
  30504. tst_allow_strncmpi="yes"
  30505. else
  30506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30507. $as_echo "no" >&6; }
  30508. tst_allow_strncmpi="no"
  30509. fi
  30510. fi
  30511. #
  30512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
  30513. $as_echo_n "checking if strncmpi might be used... " >&6; }
  30514. if test "$tst_links_strncmpi" = "yes" &&
  30515. test "$tst_proto_strncmpi" = "yes" &&
  30516. test "$tst_compi_strncmpi" = "yes" &&
  30517. test "$tst_allow_strncmpi" = "yes"; then
  30518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30519. $as_echo "yes" >&6; }
  30520. cat >>confdefs.h <<_ACEOF
  30521. #define HAVE_STRNCMPI 1
  30522. _ACEOF
  30523. ac_cv_func_strncmpi="yes"
  30524. else
  30525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30526. $as_echo "no" >&6; }
  30527. ac_cv_func_strncmpi="no"
  30528. fi
  30529. #
  30530. tst_links_strnicmp="unknown"
  30531. tst_proto_strnicmp="unknown"
  30532. tst_compi_strnicmp="unknown"
  30533. tst_allow_strnicmp="unknown"
  30534. #
  30535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
  30536. $as_echo_n "checking if strnicmp can be linked... " >&6; }
  30537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30538. /* end confdefs.h. */
  30539. #define strnicmp innocuous_strnicmp
  30540. #ifdef __STDC__
  30541. # include <limits.h>
  30542. #else
  30543. # include <assert.h>
  30544. #endif
  30545. #undef strnicmp
  30546. #ifdef __cplusplus
  30547. extern "C"
  30548. #endif
  30549. char strnicmp ();
  30550. #if defined __stub_strnicmp || defined __stub___strnicmp
  30551. choke me
  30552. #endif
  30553. int main (void)
  30554. {
  30555. return strnicmp ();
  30556. ;
  30557. return 0;
  30558. }
  30559. _ACEOF
  30560. if ac_fn_c_try_link "$LINENO"; then :
  30561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30562. $as_echo "yes" >&6; }
  30563. tst_links_strnicmp="yes"
  30564. else
  30565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30566. $as_echo "no" >&6; }
  30567. tst_links_strnicmp="no"
  30568. fi
  30569. rm -f core conftest.err conftest.$ac_objext \
  30570. conftest$ac_exeext conftest.$ac_ext
  30571. #
  30572. if test "$tst_links_strnicmp" = "yes"; then
  30573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
  30574. $as_echo_n "checking if strnicmp is prototyped... " >&6; }
  30575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30576. /* end confdefs.h. */
  30577. $curl_includes_string
  30578. _ACEOF
  30579. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30580. $EGREP "strnicmp" >/dev/null 2>&1; then :
  30581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30582. $as_echo "yes" >&6; }
  30583. tst_proto_strnicmp="yes"
  30584. else
  30585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30586. $as_echo "no" >&6; }
  30587. tst_proto_strnicmp="no"
  30588. fi
  30589. rm -f conftest*
  30590. fi
  30591. #
  30592. if test "$tst_proto_strnicmp" = "yes"; then
  30593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
  30594. $as_echo_n "checking if strnicmp is compilable... " >&6; }
  30595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30596. /* end confdefs.h. */
  30597. $curl_includes_string
  30598. int main (void)
  30599. {
  30600. if(0 != strnicmp(0, 0))
  30601. return 1;
  30602. ;
  30603. return 0;
  30604. }
  30605. _ACEOF
  30606. if ac_fn_c_try_compile "$LINENO"; then :
  30607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30608. $as_echo "yes" >&6; }
  30609. tst_compi_strnicmp="yes"
  30610. else
  30611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30612. $as_echo "no" >&6; }
  30613. tst_compi_strnicmp="no"
  30614. fi
  30615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30616. fi
  30617. #
  30618. if test "$tst_compi_strnicmp" = "yes"; then
  30619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
  30620. $as_echo_n "checking if strnicmp usage allowed... " >&6; }
  30621. if test "x$curl_disallow_strnicmp" != "xyes"; then
  30622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30623. $as_echo "yes" >&6; }
  30624. tst_allow_strnicmp="yes"
  30625. else
  30626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30627. $as_echo "no" >&6; }
  30628. tst_allow_strnicmp="no"
  30629. fi
  30630. fi
  30631. #
  30632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
  30633. $as_echo_n "checking if strnicmp might be used... " >&6; }
  30634. if test "$tst_links_strnicmp" = "yes" &&
  30635. test "$tst_proto_strnicmp" = "yes" &&
  30636. test "$tst_compi_strnicmp" = "yes" &&
  30637. test "$tst_allow_strnicmp" = "yes"; then
  30638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30639. $as_echo "yes" >&6; }
  30640. cat >>confdefs.h <<_ACEOF
  30641. #define HAVE_STRNICMP 1
  30642. _ACEOF
  30643. ac_cv_func_strnicmp="yes"
  30644. else
  30645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30646. $as_echo "no" >&6; }
  30647. ac_cv_func_strnicmp="no"
  30648. fi
  30649. #
  30650. tst_links_strstr="unknown"
  30651. tst_proto_strstr="unknown"
  30652. tst_compi_strstr="unknown"
  30653. tst_allow_strstr="unknown"
  30654. #
  30655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
  30656. $as_echo_n "checking if strstr can be linked... " >&6; }
  30657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30658. /* end confdefs.h. */
  30659. #define strstr innocuous_strstr
  30660. #ifdef __STDC__
  30661. # include <limits.h>
  30662. #else
  30663. # include <assert.h>
  30664. #endif
  30665. #undef strstr
  30666. #ifdef __cplusplus
  30667. extern "C"
  30668. #endif
  30669. char strstr ();
  30670. #if defined __stub_strstr || defined __stub___strstr
  30671. choke me
  30672. #endif
  30673. int main (void)
  30674. {
  30675. return strstr ();
  30676. ;
  30677. return 0;
  30678. }
  30679. _ACEOF
  30680. if ac_fn_c_try_link "$LINENO"; then :
  30681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30682. $as_echo "yes" >&6; }
  30683. tst_links_strstr="yes"
  30684. else
  30685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30686. $as_echo "no" >&6; }
  30687. tst_links_strstr="no"
  30688. fi
  30689. rm -f core conftest.err conftest.$ac_objext \
  30690. conftest$ac_exeext conftest.$ac_ext
  30691. #
  30692. if test "$tst_links_strstr" = "yes"; then
  30693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
  30694. $as_echo_n "checking if strstr is prototyped... " >&6; }
  30695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30696. /* end confdefs.h. */
  30697. $curl_includes_string
  30698. _ACEOF
  30699. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30700. $EGREP "strstr" >/dev/null 2>&1; then :
  30701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30702. $as_echo "yes" >&6; }
  30703. tst_proto_strstr="yes"
  30704. else
  30705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30706. $as_echo "no" >&6; }
  30707. tst_proto_strstr="no"
  30708. fi
  30709. rm -f conftest*
  30710. fi
  30711. #
  30712. if test "$tst_proto_strstr" = "yes"; then
  30713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
  30714. $as_echo_n "checking if strstr is compilable... " >&6; }
  30715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30716. /* end confdefs.h. */
  30717. $curl_includes_string
  30718. int main (void)
  30719. {
  30720. if(0 != strstr(0, 0))
  30721. return 1;
  30722. ;
  30723. return 0;
  30724. }
  30725. _ACEOF
  30726. if ac_fn_c_try_compile "$LINENO"; then :
  30727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30728. $as_echo "yes" >&6; }
  30729. tst_compi_strstr="yes"
  30730. else
  30731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30732. $as_echo "no" >&6; }
  30733. tst_compi_strstr="no"
  30734. fi
  30735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30736. fi
  30737. #
  30738. if test "$tst_compi_strstr" = "yes"; then
  30739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
  30740. $as_echo_n "checking if strstr usage allowed... " >&6; }
  30741. if test "x$curl_disallow_strstr" != "xyes"; then
  30742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30743. $as_echo "yes" >&6; }
  30744. tst_allow_strstr="yes"
  30745. else
  30746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30747. $as_echo "no" >&6; }
  30748. tst_allow_strstr="no"
  30749. fi
  30750. fi
  30751. #
  30752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
  30753. $as_echo_n "checking if strstr might be used... " >&6; }
  30754. if test "$tst_links_strstr" = "yes" &&
  30755. test "$tst_proto_strstr" = "yes" &&
  30756. test "$tst_compi_strstr" = "yes" &&
  30757. test "$tst_allow_strstr" = "yes"; then
  30758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30759. $as_echo "yes" >&6; }
  30760. cat >>confdefs.h <<_ACEOF
  30761. #define HAVE_STRSTR 1
  30762. _ACEOF
  30763. ac_cv_func_strstr="yes"
  30764. else
  30765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30766. $as_echo "no" >&6; }
  30767. ac_cv_func_strstr="no"
  30768. fi
  30769. #
  30770. tst_links_strtok_r="unknown"
  30771. tst_proto_strtok_r="unknown"
  30772. tst_compi_strtok_r="unknown"
  30773. tst_allow_strtok_r="unknown"
  30774. #
  30775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
  30776. $as_echo_n "checking if strtok_r can be linked... " >&6; }
  30777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30778. /* end confdefs.h. */
  30779. #define strtok_r innocuous_strtok_r
  30780. #ifdef __STDC__
  30781. # include <limits.h>
  30782. #else
  30783. # include <assert.h>
  30784. #endif
  30785. #undef strtok_r
  30786. #ifdef __cplusplus
  30787. extern "C"
  30788. #endif
  30789. char strtok_r ();
  30790. #if defined __stub_strtok_r || defined __stub___strtok_r
  30791. choke me
  30792. #endif
  30793. int main (void)
  30794. {
  30795. return strtok_r ();
  30796. ;
  30797. return 0;
  30798. }
  30799. _ACEOF
  30800. if ac_fn_c_try_link "$LINENO"; then :
  30801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30802. $as_echo "yes" >&6; }
  30803. tst_links_strtok_r="yes"
  30804. else
  30805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30806. $as_echo "no" >&6; }
  30807. tst_links_strtok_r="no"
  30808. fi
  30809. rm -f core conftest.err conftest.$ac_objext \
  30810. conftest$ac_exeext conftest.$ac_ext
  30811. #
  30812. if test "$tst_links_strtok_r" = "yes"; then
  30813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
  30814. $as_echo_n "checking if strtok_r is prototyped... " >&6; }
  30815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30816. /* end confdefs.h. */
  30817. $curl_includes_string
  30818. _ACEOF
  30819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30820. $EGREP "strtok_r" >/dev/null 2>&1; then :
  30821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30822. $as_echo "yes" >&6; }
  30823. tst_proto_strtok_r="yes"
  30824. else
  30825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30826. $as_echo "no" >&6; }
  30827. tst_proto_strtok_r="no"
  30828. fi
  30829. rm -f conftest*
  30830. fi
  30831. #
  30832. if test "$tst_proto_strtok_r" = "yes"; then
  30833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
  30834. $as_echo_n "checking if strtok_r is compilable... " >&6; }
  30835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30836. /* end confdefs.h. */
  30837. $curl_includes_string
  30838. int main (void)
  30839. {
  30840. if(0 != strtok_r(0, 0, 0))
  30841. return 1;
  30842. ;
  30843. return 0;
  30844. }
  30845. _ACEOF
  30846. if ac_fn_c_try_compile "$LINENO"; then :
  30847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30848. $as_echo "yes" >&6; }
  30849. tst_compi_strtok_r="yes"
  30850. else
  30851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30852. $as_echo "no" >&6; }
  30853. tst_compi_strtok_r="no"
  30854. fi
  30855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30856. fi
  30857. #
  30858. if test "$tst_compi_strtok_r" = "yes"; then
  30859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
  30860. $as_echo_n "checking if strtok_r usage allowed... " >&6; }
  30861. if test "x$curl_disallow_strtok_r" != "xyes"; then
  30862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30863. $as_echo "yes" >&6; }
  30864. tst_allow_strtok_r="yes"
  30865. else
  30866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30867. $as_echo "no" >&6; }
  30868. tst_allow_strtok_r="no"
  30869. fi
  30870. fi
  30871. #
  30872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
  30873. $as_echo_n "checking if strtok_r might be used... " >&6; }
  30874. if test "$tst_links_strtok_r" = "yes" &&
  30875. test "$tst_proto_strtok_r" = "yes" &&
  30876. test "$tst_compi_strtok_r" = "yes" &&
  30877. test "$tst_allow_strtok_r" = "yes"; then
  30878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30879. $as_echo "yes" >&6; }
  30880. cat >>confdefs.h <<_ACEOF
  30881. #define HAVE_STRTOK_R 1
  30882. _ACEOF
  30883. ac_cv_func_strtok_r="yes"
  30884. else
  30885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30886. $as_echo "no" >&6; }
  30887. ac_cv_func_strtok_r="no"
  30888. fi
  30889. #
  30890. tst_links_strtoll="unknown"
  30891. tst_proto_strtoll="unknown"
  30892. tst_compi_strtoll="unknown"
  30893. tst_allow_strtoll="unknown"
  30894. #
  30895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
  30896. $as_echo_n "checking if strtoll can be linked... " >&6; }
  30897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30898. /* end confdefs.h. */
  30899. #define strtoll innocuous_strtoll
  30900. #ifdef __STDC__
  30901. # include <limits.h>
  30902. #else
  30903. # include <assert.h>
  30904. #endif
  30905. #undef strtoll
  30906. #ifdef __cplusplus
  30907. extern "C"
  30908. #endif
  30909. char strtoll ();
  30910. #if defined __stub_strtoll || defined __stub___strtoll
  30911. choke me
  30912. #endif
  30913. int main (void)
  30914. {
  30915. return strtoll ();
  30916. ;
  30917. return 0;
  30918. }
  30919. _ACEOF
  30920. if ac_fn_c_try_link "$LINENO"; then :
  30921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30922. $as_echo "yes" >&6; }
  30923. tst_links_strtoll="yes"
  30924. else
  30925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30926. $as_echo "no" >&6; }
  30927. tst_links_strtoll="no"
  30928. fi
  30929. rm -f core conftest.err conftest.$ac_objext \
  30930. conftest$ac_exeext conftest.$ac_ext
  30931. #
  30932. if test "$tst_links_strtoll" = "yes"; then
  30933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
  30934. $as_echo_n "checking if strtoll is prototyped... " >&6; }
  30935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30936. /* end confdefs.h. */
  30937. $curl_includes_stdlib
  30938. _ACEOF
  30939. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30940. $EGREP "strtoll" >/dev/null 2>&1; then :
  30941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30942. $as_echo "yes" >&6; }
  30943. tst_proto_strtoll="yes"
  30944. else
  30945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30946. $as_echo "no" >&6; }
  30947. tst_proto_strtoll="no"
  30948. fi
  30949. rm -f conftest*
  30950. fi
  30951. #
  30952. if test "$tst_proto_strtoll" = "yes"; then
  30953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
  30954. $as_echo_n "checking if strtoll is compilable... " >&6; }
  30955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30956. /* end confdefs.h. */
  30957. $curl_includes_stdlib
  30958. int main (void)
  30959. {
  30960. if(0 != strtoll(0, 0, 0))
  30961. return 1;
  30962. ;
  30963. return 0;
  30964. }
  30965. _ACEOF
  30966. if ac_fn_c_try_compile "$LINENO"; then :
  30967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30968. $as_echo "yes" >&6; }
  30969. tst_compi_strtoll="yes"
  30970. else
  30971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30972. $as_echo "no" >&6; }
  30973. tst_compi_strtoll="no"
  30974. fi
  30975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30976. fi
  30977. #
  30978. if test "$tst_compi_strtoll" = "yes"; then
  30979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
  30980. $as_echo_n "checking if strtoll usage allowed... " >&6; }
  30981. if test "x$curl_disallow_strtoll" != "xyes"; then
  30982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30983. $as_echo "yes" >&6; }
  30984. tst_allow_strtoll="yes"
  30985. else
  30986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30987. $as_echo "no" >&6; }
  30988. tst_allow_strtoll="no"
  30989. fi
  30990. fi
  30991. #
  30992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
  30993. $as_echo_n "checking if strtoll might be used... " >&6; }
  30994. if test "$tst_links_strtoll" = "yes" &&
  30995. test "$tst_proto_strtoll" = "yes" &&
  30996. test "$tst_compi_strtoll" = "yes" &&
  30997. test "$tst_allow_strtoll" = "yes"; then
  30998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30999. $as_echo "yes" >&6; }
  31000. cat >>confdefs.h <<_ACEOF
  31001. #define HAVE_STRTOLL 1
  31002. _ACEOF
  31003. ac_cv_func_strtoll="yes"
  31004. else
  31005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31006. $as_echo "no" >&6; }
  31007. ac_cv_func_strtoll="no"
  31008. fi
  31009. curl_includes_sys_uio="\
  31010. /* includes start */
  31011. #ifdef HAVE_SYS_TYPES_H
  31012. # include <sys/types.h>
  31013. #endif
  31014. #ifdef HAVE_SYS_UIO_H
  31015. # include <sys/uio.h>
  31016. #endif
  31017. /* includes end */"
  31018. for ac_header in sys/types.h sys/uio.h
  31019. do :
  31020. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31021. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
  31022. "
  31023. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  31024. cat >>confdefs.h <<_ACEOF
  31025. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31026. _ACEOF
  31027. fi
  31028. done
  31029. #
  31030. tst_links_writev="unknown"
  31031. tst_proto_writev="unknown"
  31032. tst_compi_writev="unknown"
  31033. tst_allow_writev="unknown"
  31034. #
  31035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
  31036. $as_echo_n "checking if writev can be linked... " >&6; }
  31037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31038. /* end confdefs.h. */
  31039. #define writev innocuous_writev
  31040. #ifdef __STDC__
  31041. # include <limits.h>
  31042. #else
  31043. # include <assert.h>
  31044. #endif
  31045. #undef writev
  31046. #ifdef __cplusplus
  31047. extern "C"
  31048. #endif
  31049. char writev ();
  31050. #if defined __stub_writev || defined __stub___writev
  31051. choke me
  31052. #endif
  31053. int main (void)
  31054. {
  31055. return writev ();
  31056. ;
  31057. return 0;
  31058. }
  31059. _ACEOF
  31060. if ac_fn_c_try_link "$LINENO"; then :
  31061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31062. $as_echo "yes" >&6; }
  31063. tst_links_writev="yes"
  31064. else
  31065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31066. $as_echo "no" >&6; }
  31067. tst_links_writev="no"
  31068. fi
  31069. rm -f core conftest.err conftest.$ac_objext \
  31070. conftest$ac_exeext conftest.$ac_ext
  31071. #
  31072. if test "$tst_links_writev" = "yes"; then
  31073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
  31074. $as_echo_n "checking if writev is prototyped... " >&6; }
  31075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31076. /* end confdefs.h. */
  31077. $curl_includes_sys_uio
  31078. _ACEOF
  31079. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31080. $EGREP "writev" >/dev/null 2>&1; then :
  31081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31082. $as_echo "yes" >&6; }
  31083. tst_proto_writev="yes"
  31084. else
  31085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31086. $as_echo "no" >&6; }
  31087. tst_proto_writev="no"
  31088. fi
  31089. rm -f conftest*
  31090. fi
  31091. #
  31092. if test "$tst_proto_writev" = "yes"; then
  31093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
  31094. $as_echo_n "checking if writev is compilable... " >&6; }
  31095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31096. /* end confdefs.h. */
  31097. $curl_includes_sys_uio
  31098. int main (void)
  31099. {
  31100. if(0 != writev(0, 0, 0))
  31101. return 1;
  31102. ;
  31103. return 0;
  31104. }
  31105. _ACEOF
  31106. if ac_fn_c_try_compile "$LINENO"; then :
  31107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31108. $as_echo "yes" >&6; }
  31109. tst_compi_writev="yes"
  31110. else
  31111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31112. $as_echo "no" >&6; }
  31113. tst_compi_writev="no"
  31114. fi
  31115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31116. fi
  31117. #
  31118. if test "$tst_compi_writev" = "yes"; then
  31119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
  31120. $as_echo_n "checking if writev usage allowed... " >&6; }
  31121. if test "x$curl_disallow_writev" != "xyes"; then
  31122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31123. $as_echo "yes" >&6; }
  31124. tst_allow_writev="yes"
  31125. else
  31126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31127. $as_echo "no" >&6; }
  31128. tst_allow_writev="no"
  31129. fi
  31130. fi
  31131. #
  31132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
  31133. $as_echo_n "checking if writev might be used... " >&6; }
  31134. if test "$tst_links_writev" = "yes" &&
  31135. test "$tst_proto_writev" = "yes" &&
  31136. test "$tst_compi_writev" = "yes" &&
  31137. test "$tst_allow_writev" = "yes"; then
  31138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31139. $as_echo "yes" >&6; }
  31140. cat >>confdefs.h <<_ACEOF
  31141. #define HAVE_WRITEV 1
  31142. _ACEOF
  31143. ac_cv_func_writev="yes"
  31144. else
  31145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31146. $as_echo "no" >&6; }
  31147. ac_cv_func_writev="no"
  31148. fi
  31149. case $host in
  31150. *msdosdjgpp)
  31151. ac_cv_func_pipe=no
  31152. skipcheck_pipe=yes
  31153. { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
  31154. $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
  31155. ;;
  31156. esac
  31157. for ac_func in fork \
  31158. geteuid \
  31159. getpass_r \
  31160. getppid \
  31161. getprotobyname \
  31162. getpwuid \
  31163. getpwuid_r \
  31164. getrlimit \
  31165. gettimeofday \
  31166. if_nametoindex \
  31167. inet_addr \
  31168. perror \
  31169. pipe \
  31170. setlocale \
  31171. setmode \
  31172. setrlimit \
  31173. uname \
  31174. utime
  31175. do :
  31176. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31177. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  31178. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  31179. cat >>confdefs.h <<_ACEOF
  31180. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31181. _ACEOF
  31182. else
  31183. func="$ac_func"
  31184. eval skipcheck=\$skipcheck_$func
  31185. if test "x$skipcheck" != "xyes"; then
  31186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
  31187. $as_echo_n "checking deeper for $func... " >&6; }
  31188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31189. /* end confdefs.h. */
  31190. int main (void)
  31191. {
  31192. $func ();
  31193. ;
  31194. return 0;
  31195. }
  31196. _ACEOF
  31197. if ac_fn_c_try_link "$LINENO"; then :
  31198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31199. $as_echo "yes" >&6; }
  31200. eval "ac_cv_func_$func=yes"
  31201. cat >>confdefs.h <<_ACEOF
  31202. #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
  31203. _ACEOF
  31204. else
  31205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31206. $as_echo "but still no" >&6; }
  31207. fi
  31208. rm -f core conftest.err conftest.$ac_objext \
  31209. conftest$ac_exeext conftest.$ac_ext
  31210. fi
  31211. fi
  31212. done
  31213. for ac_header in sys/types.h sys/socket.h netdb.h
  31214. do :
  31215. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31216. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  31217. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  31218. cat >>confdefs.h <<_ACEOF
  31219. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31220. _ACEOF
  31221. fi
  31222. done
  31223. #
  31224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
  31225. $as_echo_n "checking for getnameinfo... " >&6; }
  31226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31227. /* end confdefs.h. */
  31228. #define getnameinfo innocuous_getnameinfo
  31229. #ifdef __STDC__
  31230. # include <limits.h>
  31231. #else
  31232. # include <assert.h>
  31233. #endif
  31234. #undef getnameinfo
  31235. #ifdef __cplusplus
  31236. extern "C"
  31237. #endif
  31238. char getnameinfo ();
  31239. #if defined __stub_getnameinfo || defined __stub___getnameinfo
  31240. choke me
  31241. #endif
  31242. int main (void)
  31243. {
  31244. return getnameinfo ();
  31245. ;
  31246. return 0;
  31247. }
  31248. _ACEOF
  31249. if ac_fn_c_try_link "$LINENO"; then :
  31250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31251. $as_echo "yes" >&6; }
  31252. curl_cv_getnameinfo="yes"
  31253. else
  31254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31255. $as_echo "no" >&6; }
  31256. curl_cv_getnameinfo="no"
  31257. fi
  31258. rm -f core conftest.err conftest.$ac_objext \
  31259. conftest$ac_exeext conftest.$ac_ext
  31260. #
  31261. if test "$curl_cv_getnameinfo" != "yes"; then
  31262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
  31263. $as_echo_n "checking deeper for getnameinfo... " >&6; }
  31264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31265. /* end confdefs.h. */
  31266. int main (void)
  31267. {
  31268. getnameinfo();
  31269. ;
  31270. return 0;
  31271. }
  31272. _ACEOF
  31273. if ac_fn_c_try_link "$LINENO"; then :
  31274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31275. $as_echo "yes" >&6; }
  31276. curl_cv_getnameinfo="yes"
  31277. else
  31278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31279. $as_echo "but still no" >&6; }
  31280. curl_cv_getnameinfo="no"
  31281. fi
  31282. rm -f core conftest.err conftest.$ac_objext \
  31283. conftest$ac_exeext conftest.$ac_ext
  31284. fi
  31285. #
  31286. if test "$curl_cv_getnameinfo" != "yes"; then
  31287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
  31288. $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
  31289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31290. /* end confdefs.h. */
  31291. #undef inline
  31292. #ifdef HAVE_WINDOWS_H
  31293. #ifndef WIN32_LEAN_AND_MEAN
  31294. #define WIN32_LEAN_AND_MEAN
  31295. #endif
  31296. #include <windows.h>
  31297. #ifdef HAVE_WINSOCK2_H
  31298. #include <winsock2.h>
  31299. #ifdef HAVE_WS2TCPIP_H
  31300. #include <ws2tcpip.h>
  31301. #endif
  31302. #endif
  31303. #else
  31304. #ifdef HAVE_SYS_TYPES_H
  31305. #include <sys/types.h>
  31306. #endif
  31307. #ifdef HAVE_SYS_SOCKET_H
  31308. #include <sys/socket.h>
  31309. #endif
  31310. #ifdef HAVE_NETDB_H
  31311. #include <netdb.h>
  31312. #endif
  31313. #endif
  31314. int main (void)
  31315. {
  31316. getnameinfo(0, 0, 0, 0, 0, 0, 0);
  31317. ;
  31318. return 0;
  31319. }
  31320. _ACEOF
  31321. if ac_fn_c_try_link "$LINENO"; then :
  31322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31323. $as_echo "yes" >&6; }
  31324. curl_cv_getnameinfo="yes"
  31325. else
  31326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
  31327. $as_echo "but still no" >&6; }
  31328. curl_cv_getnameinfo="no"
  31329. fi
  31330. rm -f core conftest.err conftest.$ac_objext \
  31331. conftest$ac_exeext conftest.$ac_ext
  31332. fi
  31333. #
  31334. if test "$curl_cv_getnameinfo" = "yes"; then
  31335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
  31336. $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
  31337. if ${curl_cv_func_getnameinfo_args+:} false; then :
  31338. $as_echo_n "(cached) " >&6
  31339. else
  31340. curl_cv_func_getnameinfo_args="unknown"
  31341. for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
  31342. for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
  31343. for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
  31344. for gni_arg7 in 'int' 'unsigned int'; do
  31345. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  31346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31347. /* end confdefs.h. */
  31348. #undef inline
  31349. #ifdef HAVE_WINDOWS_H
  31350. #ifndef WIN32_LEAN_AND_MEAN
  31351. #define WIN32_LEAN_AND_MEAN
  31352. #endif
  31353. #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
  31354. #undef _WIN32_WINNT
  31355. #define _WIN32_WINNT 0x0501
  31356. #endif
  31357. #include <windows.h>
  31358. #ifdef HAVE_WINSOCK2_H
  31359. #include <winsock2.h>
  31360. #ifdef HAVE_WS2TCPIP_H
  31361. #include <ws2tcpip.h>
  31362. #endif
  31363. #endif
  31364. #define GNICALLCONV WSAAPI
  31365. #else
  31366. #ifdef HAVE_SYS_TYPES_H
  31367. #include <sys/types.h>
  31368. #endif
  31369. #ifdef HAVE_SYS_SOCKET_H
  31370. #include <sys/socket.h>
  31371. #endif
  31372. #ifdef HAVE_NETDB_H
  31373. #include <netdb.h>
  31374. #endif
  31375. #define GNICALLCONV
  31376. #endif
  31377. extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
  31378. char *, $gni_arg46,
  31379. char *, $gni_arg46,
  31380. $gni_arg7);
  31381. int main (void)
  31382. {
  31383. $gni_arg2 salen=0;
  31384. $gni_arg46 hostlen=0;
  31385. $gni_arg46 servlen=0;
  31386. $gni_arg7 flags=0;
  31387. int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
  31388. ;
  31389. return 0;
  31390. }
  31391. _ACEOF
  31392. if ac_fn_c_try_compile "$LINENO"; then :
  31393. curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
  31394. fi
  31395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31396. fi
  31397. done
  31398. done
  31399. done
  31400. done
  31401. fi
  31402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
  31403. $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
  31404. if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
  31405. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
  31406. $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
  31407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
  31408. $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
  31409. else
  31410. gni_prev_IFS=$IFS; IFS=','
  31411. set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
  31412. IFS=$gni_prev_IFS
  31413. shift
  31414. #
  31415. gni_qual_type_arg1=$1
  31416. #
  31417. cat >>confdefs.h <<_ACEOF
  31418. #define GETNAMEINFO_TYPE_ARG2 $2
  31419. _ACEOF
  31420. cat >>confdefs.h <<_ACEOF
  31421. #define GETNAMEINFO_TYPE_ARG46 $3
  31422. _ACEOF
  31423. cat >>confdefs.h <<_ACEOF
  31424. #define GETNAMEINFO_TYPE_ARG7 $4
  31425. _ACEOF
  31426. #
  31427. prev_sh_opts=$-
  31428. #
  31429. case $prev_sh_opts in
  31430. *f*)
  31431. ;;
  31432. *)
  31433. set -f
  31434. ;;
  31435. esac
  31436. #
  31437. case "$gni_qual_type_arg1" in
  31438. const*)
  31439. gni_qual_arg1=const
  31440. gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
  31441. ;;
  31442. *)
  31443. gni_qual_arg1=
  31444. gni_type_arg1=$gni_qual_type_arg1
  31445. ;;
  31446. esac
  31447. #
  31448. cat >>confdefs.h <<_ACEOF
  31449. #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
  31450. _ACEOF
  31451. cat >>confdefs.h <<_ACEOF
  31452. #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
  31453. _ACEOF
  31454. #
  31455. case $prev_sh_opts in
  31456. *f*)
  31457. ;;
  31458. *)
  31459. set +f
  31460. ;;
  31461. esac
  31462. #
  31463. cat >>confdefs.h <<_ACEOF
  31464. #define HAVE_GETNAMEINFO 1
  31465. _ACEOF
  31466. ac_cv_func_getnameinfo="yes"
  31467. fi
  31468. fi
  31469. if test "$ipv6" = "yes"; then
  31470. if test "$ac_cv_func_getaddrinfo" = "yes"; then
  31471. $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
  31472. IPV6_ENABLED=1
  31473. fi
  31474. for ac_header in stdio.h sys/types.h sys/socket.h \
  31475. netdb.h netinet/in.h arpa/inet.h
  31476. do :
  31477. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31478. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  31479. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  31480. cat >>confdefs.h <<_ACEOF
  31481. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31482. _ACEOF
  31483. fi
  31484. done
  31485. #
  31486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
  31487. $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
  31488. if ${ac_cv_working_ni_withscopeid+:} false; then :
  31489. $as_echo_n "(cached) " >&6
  31490. else
  31491. if test "$cross_compiling" = yes; then :
  31492. # Program is not run when cross-compiling. So we assume
  31493. # NI_WITHSCOPEID will work if we are able to compile it.
  31494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31495. /* end confdefs.h. */
  31496. #include <sys/types.h>
  31497. #include <sys/socket.h>
  31498. #include <netdb.h>
  31499. int main (void)
  31500. {
  31501. unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  31502. ;
  31503. return 0;
  31504. }
  31505. _ACEOF
  31506. if ac_fn_c_try_compile "$LINENO"; then :
  31507. ac_cv_working_ni_withscopeid="yes"
  31508. else
  31509. ac_cv_working_ni_withscopeid="no"
  31510. fi
  31511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
  31512. else
  31513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31514. /* end confdefs.h. */
  31515. #ifdef HAVE_STDLIB_H
  31516. #include <stdlib.h>
  31517. #endif
  31518. #ifdef HAVE_STDIO_H
  31519. #include <stdio.h>
  31520. #endif
  31521. #ifdef HAVE_SYS_TYPES_H
  31522. #include <sys/types.h>
  31523. #endif
  31524. #ifdef HAVE_SYS_SOCKET_H
  31525. #include <sys/socket.h>
  31526. #endif
  31527. #ifdef HAVE_NETDB_H
  31528. #include <netdb.h>
  31529. #endif
  31530. #ifdef HAVE_NETINET_IN_H
  31531. #include <netinet/in.h>
  31532. #endif
  31533. #ifdef HAVE_ARPA_INET_H
  31534. #include <arpa/inet.h>
  31535. #endif
  31536. int main (void)
  31537. {
  31538. #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
  31539. #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
  31540. struct sockaddr_storage sa;
  31541. #else
  31542. unsigned char sa[256];
  31543. #endif
  31544. char hostbuf[NI_MAXHOST];
  31545. int rc;
  31546. GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
  31547. GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
  31548. GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
  31549. int fd = socket(AF_INET6, SOCK_STREAM, 0);
  31550. if(fd < 0) {
  31551. perror("socket()");
  31552. return 1; /* Error creating socket */
  31553. }
  31554. rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
  31555. if(rc) {
  31556. perror("getsockname()");
  31557. return 2; /* Error retrieving socket name */
  31558. }
  31559. rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
  31560. if(rc) {
  31561. printf("rc = %s\n", gai_strerror(rc));
  31562. return 3; /* Error translating socket address */
  31563. }
  31564. return 0; /* Ok, NI_WITHSCOPEID works */
  31565. #else
  31566. return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
  31567. #endif
  31568. ;
  31569. return 0;
  31570. } # AC-LANG-PROGRAM
  31571. _ACEOF
  31572. if ac_fn_c_try_run "$LINENO"; then :
  31573. # Exit code == 0. Program worked.
  31574. ac_cv_working_ni_withscopeid="yes"
  31575. else
  31576. # Exit code != 0. Program failed.
  31577. ac_cv_working_ni_withscopeid="no"
  31578. fi
  31579. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31580. conftest.$ac_objext conftest.beam conftest.$ac_ext
  31581. fi
  31582. # AC-RUN-IFELSE
  31583. fi
  31584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
  31585. $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
  31586. case "$ac_cv_working_ni_withscopeid" in
  31587. yes)
  31588. $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
  31589. ;;
  31590. esac
  31591. fi
  31592. #
  31593. tst_method="unknown"
  31594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
  31595. $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
  31596. if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
  31597. tst_method="fcntl O_NONBLOCK"
  31598. elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
  31599. tst_method="ioctl FIONBIO"
  31600. elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
  31601. tst_method="ioctlsocket FIONBIO"
  31602. elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
  31603. tst_method="IoctlSocket FIONBIO"
  31604. elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
  31605. tst_method="setsockopt SO_NONBLOCK"
  31606. fi
  31607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
  31608. $as_echo "$tst_method" >&6; }
  31609. if test "$tst_method" = "unknown"; then
  31610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
  31611. $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
  31612. fi
  31613. # Extract the first word of "perl", so it can be a program name with args.
  31614. set dummy perl; ac_word=$2
  31615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31616. $as_echo_n "checking for $ac_word... " >&6; }
  31617. if ${ac_cv_path_PERL+:} false; then :
  31618. $as_echo_n "(cached) " >&6
  31619. else
  31620. case $PERL in
  31621. [\\/]* | ?:[\\/]*)
  31622. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  31623. ;;
  31624. *)
  31625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31626. as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
  31627. for as_dir in $as_dummy
  31628. do
  31629. IFS=$as_save_IFS
  31630. test -z "$as_dir" && as_dir=.
  31631. for ac_exec_ext in '' $ac_executable_extensions; do
  31632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31633. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  31634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31635. break 2
  31636. fi
  31637. done
  31638. done
  31639. IFS=$as_save_IFS
  31640. ;;
  31641. esac
  31642. fi
  31643. PERL=$ac_cv_path_PERL
  31644. if test -n "$PERL"; then
  31645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  31646. $as_echo "$PERL" >&6; }
  31647. else
  31648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31649. $as_echo "no" >&6; }
  31650. fi
  31651. for ac_prog in gnroff nroff
  31652. do
  31653. # Extract the first word of "$ac_prog", so it can be a program name with args.
  31654. set dummy $ac_prog; ac_word=$2
  31655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  31656. $as_echo_n "checking for $ac_word... " >&6; }
  31657. if ${ac_cv_path_NROFF+:} false; then :
  31658. $as_echo_n "(cached) " >&6
  31659. else
  31660. case $NROFF in
  31661. [\\/]* | ?:[\\/]*)
  31662. ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
  31663. ;;
  31664. *)
  31665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31666. as_dummy="$PATH:/usr/bin/:/usr/local/bin "
  31667. for as_dir in $as_dummy
  31668. do
  31669. IFS=$as_save_IFS
  31670. test -z "$as_dir" && as_dir=.
  31671. for ac_exec_ext in '' $ac_executable_extensions; do
  31672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  31673. ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
  31674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  31675. break 2
  31676. fi
  31677. done
  31678. done
  31679. IFS=$as_save_IFS
  31680. ;;
  31681. esac
  31682. fi
  31683. NROFF=$ac_cv_path_NROFF
  31684. if test -n "$NROFF"; then
  31685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  31686. $as_echo "$NROFF" >&6; }
  31687. else
  31688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31689. $as_echo "no" >&6; }
  31690. fi
  31691. test -n "$NROFF" && break
  31692. done
  31693. if test -n "$NROFF"; then
  31694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
  31695. $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
  31696. MANOPT="-man"
  31697. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  31698. if test -z "$mancheck"; then
  31699. MANOPT="-mandoc"
  31700. mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
  31701. if test -z "$mancheck"; then
  31702. MANOPT=""
  31703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  31704. $as_echo "failed" >&6; }
  31705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
  31706. $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
  31707. else
  31708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  31709. $as_echo "$MANOPT" >&6; }
  31710. fi
  31711. else
  31712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
  31713. $as_echo "$MANOPT" >&6; }
  31714. fi
  31715. fi
  31716. if test -z "$MANOPT"
  31717. then
  31718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
  31719. $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
  31720. USE_MANUAL="no";
  31721. fi
  31722. if test "$USE_MANUAL" = "1"; then
  31723. $as_echo "#define USE_MANUAL 1" >>confdefs.h
  31724. curl_manual_msg="enabled"
  31725. fi
  31726. if test x"$USE_MANUAL" = x1; then
  31727. USE_MANUAL_TRUE=
  31728. USE_MANUAL_FALSE='#'
  31729. else
  31730. USE_MANUAL_TRUE='#'
  31731. USE_MANUAL_FALSE=
  31732. fi
  31733. #
  31734. if test "$want_ares" = "yes"; then
  31735. clean_CPPFLAGS="$CPPFLAGS"
  31736. clean_LDFLAGS="$LDFLAGS"
  31737. clean_LIBS="$LIBS"
  31738. embedded_ares="unknown"
  31739. configure_runpath=`pwd`
  31740. embedded_ares_builddir="$configure_runpath/ares"
  31741. if test -n "$want_ares_path"; then
  31742. ares_CPPFLAGS="-I$want_ares_path/include"
  31743. ares_LDFLAGS="-L$want_ares_path/lib"
  31744. ares_LIBS="-lcares"
  31745. else
  31746. if test -d "$srcdir/ares"; then
  31747. embedded_ares="yes"
  31748. subdirs="$subdirs ares"
  31749. ares_CPPFLAGS=""
  31750. ares_LDFLAGS="-L$embedded_ares_builddir"
  31751. ares_LIBS="-lcares"
  31752. else
  31753. ares_CPPFLAGS=""
  31754. ares_LDFLAGS=""
  31755. ares_LIBS="-lcares"
  31756. fi
  31757. fi
  31758. #
  31759. CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
  31760. LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
  31761. LIBS="$ares_LIBS $clean_LIBS"
  31762. #
  31763. if test "$embedded_ares" != "yes"; then
  31764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
  31765. $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
  31766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31767. /* end confdefs.h. */
  31768. #include <ares.h>
  31769. /* set of dummy functions in case c-ares was built with debug */
  31770. void curl_dofree() { }
  31771. void curl_sclose() { }
  31772. void curl_domalloc() { }
  31773. void curl_docalloc() { }
  31774. void curl_socket() { }
  31775. int main (void)
  31776. {
  31777. ares_channel channel;
  31778. ares_cancel(channel); /* added in 1.2.0 */
  31779. ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
  31780. ares_dup(&channel, channel); /* added in 1.6.0 */
  31781. ;
  31782. return 0;
  31783. }
  31784. _ACEOF
  31785. if ac_fn_c_try_link "$LINENO"; then :
  31786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31787. $as_echo "yes" >&6; }
  31788. else
  31789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31790. $as_echo "no" >&6; }
  31791. as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
  31792. CPPFLAGS="$clean_CPPFLAGS"
  31793. LDFLAGS="$clean_LDFLAGS"
  31794. LIBS="$clean_LIBS"
  31795. # prevent usage
  31796. want_ares="no"
  31797. fi
  31798. rm -f core conftest.err conftest.$ac_objext \
  31799. conftest$ac_exeext conftest.$ac_ext
  31800. fi
  31801. if test "$want_ares" = "yes"; then
  31802. $as_echo "#define USE_ARES 1" >>confdefs.h
  31803. USE_ARES=1
  31804. curl_res_msg="c-ares"
  31805. fi
  31806. fi
  31807. if test x$embedded_ares = xyes; then
  31808. USE_EMBEDDED_ARES_TRUE=
  31809. USE_EMBEDDED_ARES_FALSE='#'
  31810. else
  31811. USE_EMBEDDED_ARES_TRUE='#'
  31812. USE_EMBEDDED_ARES_FALSE=
  31813. fi
  31814. if test "x$ac_cv_native_windows" != "xyes" &&
  31815. test "x$enable_shared" = "xyes"; then
  31816. build_libhostname=yes
  31817. else
  31818. build_libhostname=no
  31819. fi
  31820. if test x$build_libhostname = xyes; then
  31821. BUILD_LIBHOSTNAME_TRUE=
  31822. BUILD_LIBHOSTNAME_FALSE='#'
  31823. else
  31824. BUILD_LIBHOSTNAME_TRUE='#'
  31825. BUILD_LIBHOSTNAME_FALSE=
  31826. fi
  31827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
  31828. $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
  31829. OPT_THRES="default"
  31830. # Check whether --enable-threaded_resolver was given.
  31831. if test "${enable_threaded_resolver+set}" = set; then :
  31832. enableval=$enable_threaded_resolver; OPT_THRES=$enableval
  31833. fi
  31834. case "$OPT_THRES" in
  31835. yes)
  31836. want_thres="yes"
  31837. ;;
  31838. *)
  31839. want_thres="no"
  31840. ;;
  31841. esac
  31842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
  31843. $as_echo "$want_thres" >&6; }
  31844. if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
  31845. as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
  31846. fi
  31847. if test "$want_thres" = "yes"; then
  31848. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  31849. if test "x$ac_cv_header_pthread_h" = xyes; then :
  31850. $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
  31851. save_CFLAGS="$CFLAGS"
  31852. ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
  31853. if test "x$ac_cv_func_pthread_create" = xyes; then :
  31854. USE_THREADS_POSIX=1
  31855. fi
  31856. if test "$USE_THREADS_POSIX" != "1"
  31857. then
  31858. CFLAGS="$CFLAGS -pthread"
  31859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  31860. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  31861. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  31862. $as_echo_n "(cached) " >&6
  31863. else
  31864. ac_check_lib_save_LIBS=$LIBS
  31865. LIBS="-lpthread $LIBS"
  31866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31867. /* end confdefs.h. */
  31868. #ifdef __cplusplus
  31869. extern "C"
  31870. #endif
  31871. char pthread_create ();
  31872. int main (void)
  31873. {
  31874. return pthread_create ();
  31875. ;
  31876. return 0;
  31877. }
  31878. _ACEOF
  31879. if ac_fn_c_try_link "$LINENO"; then :
  31880. ac_cv_lib_pthread_pthread_create=yes
  31881. else
  31882. ac_cv_lib_pthread_pthread_create=no
  31883. fi
  31884. rm -f core conftest.err conftest.$ac_objext \
  31885. conftest$ac_exeext conftest.$ac_ext
  31886. LIBS=$ac_check_lib_save_LIBS
  31887. fi
  31888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  31889. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  31890. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  31891. USE_THREADS_POSIX=1
  31892. else
  31893. CFLAGS="$save_CFLAGS"
  31894. fi
  31895. fi
  31896. if test "x$USE_THREADS_POSIX" = "x1"
  31897. then
  31898. $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
  31899. curl_res_msg="POSIX threaded"
  31900. fi
  31901. fi
  31902. fi
  31903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
  31904. $as_echo_n "checking whether to enable verbose strings... " >&6; }
  31905. # Check whether --enable-verbose was given.
  31906. if test "${enable_verbose+set}" = set; then :
  31907. enableval=$enable_verbose; case "$enableval" in
  31908. no)
  31909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31910. $as_echo "no" >&6; }
  31911. $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
  31912. curl_verbose_msg="no"
  31913. ;;
  31914. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31915. $as_echo "yes" >&6; }
  31916. ;;
  31917. esac
  31918. else
  31919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31920. $as_echo "yes" >&6; }
  31921. fi
  31922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
  31923. $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
  31924. # Check whether --enable-sspi was given.
  31925. if test "${enable_sspi+set}" = set; then :
  31926. enableval=$enable_sspi; case "$enableval" in
  31927. yes)
  31928. if test "$ac_cv_native_windows" = "yes"; then
  31929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31930. $as_echo "yes" >&6; }
  31931. $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
  31932. USE_WINDOWS_SSPI=1
  31933. curl_sspi_msg="enabled"
  31934. else
  31935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31936. $as_echo "no" >&6; }
  31937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
  31938. $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
  31939. fi
  31940. ;;
  31941. *)
  31942. if test "x$WINSSL_ENABLED" = "x1"; then
  31943. # --with-winssl implies --enable-sspi
  31944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31945. $as_echo "yes" >&6; }
  31946. else
  31947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31948. $as_echo "no" >&6; }
  31949. fi
  31950. ;;
  31951. esac
  31952. else
  31953. if test "x$WINSSL_ENABLED" = "x1"; then
  31954. # --with-winssl implies --enable-sspi
  31955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31956. $as_echo "yes" >&6; }
  31957. else
  31958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31959. $as_echo "no" >&6; }
  31960. fi
  31961. fi
  31962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
  31963. $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
  31964. # Check whether --enable-crypto-auth was given.
  31965. if test "${enable_crypto_auth+set}" = set; then :
  31966. enableval=$enable_crypto_auth; case "$enableval" in
  31967. no)
  31968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  31969. $as_echo "no" >&6; }
  31970. $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
  31971. CURL_DISABLE_CRYPTO_AUTH=1
  31972. ;;
  31973. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31974. $as_echo "yes" >&6; }
  31975. ;;
  31976. esac
  31977. else
  31978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  31979. $as_echo "yes" >&6; }
  31980. fi
  31981. OPT_NTLM_WB="default"
  31982. # Check whether --enable-ntlm-wb was given.
  31983. if test "${enable_ntlm_wb+set}" = set; then :
  31984. enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
  31985. fi
  31986. want_ntlm_wb_file="/usr/bin/ntlm_auth"
  31987. case "$OPT_NTLM_WB" in
  31988. no)
  31989. want_ntlm_wb="no"
  31990. ;;
  31991. default)
  31992. want_ntlm_wb="yes"
  31993. ;;
  31994. *)
  31995. want_ntlm_wb="yes"
  31996. if test -n "$enableval" && test "$enableval" != "yes"; then
  31997. want_ntlm_wb_file="$enableval"
  31998. fi
  31999. ;;
  32000. esac
  32001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
  32002. $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
  32003. if test "$ac_cv_native_windows" = "yes" ||
  32004. test "x$SSL_ENABLED" = "x"; then
  32005. want_ntlm_wb_file=""
  32006. want_ntlm_wb="no"
  32007. fi
  32008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
  32009. $as_echo "$want_ntlm_wb" >&6; }
  32010. if test "$want_ntlm_wb" = "yes"; then
  32011. $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
  32012. cat >>confdefs.h <<_ACEOF
  32013. #define NTLM_WB_FILE "$want_ntlm_wb_file"
  32014. _ACEOF
  32015. NTLM_WB_ENABLED=1
  32016. fi
  32017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
  32018. $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
  32019. # Check whether --enable-tls-srp was given.
  32020. if test "${enable_tls_srp+set}" = set; then :
  32021. enableval=$enable_tls_srp; case "$enableval" in
  32022. no)
  32023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32024. $as_echo "no" >&6; }
  32025. $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
  32026. want_tls_srp=no
  32027. ;;
  32028. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32029. $as_echo "yes" >&6; }
  32030. want_tls_srp=yes
  32031. ;;
  32032. esac
  32033. else
  32034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32035. $as_echo "yes" >&6; }
  32036. want_tls_srp=yes
  32037. fi
  32038. if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
  32039. $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
  32040. USE_TLS_SRP=1
  32041. curl_tls_srp_msg="enabled"
  32042. fi
  32043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
  32044. $as_echo_n "checking whether to enable support for cookies... " >&6; }
  32045. # Check whether --enable-cookies was given.
  32046. if test "${enable_cookies+set}" = set; then :
  32047. enableval=$enable_cookies; case "$enableval" in
  32048. no)
  32049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32050. $as_echo "no" >&6; }
  32051. $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
  32052. ;;
  32053. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32054. $as_echo "yes" >&6; }
  32055. ;;
  32056. esac
  32057. else
  32058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32059. $as_echo "yes" >&6; }
  32060. fi
  32061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
  32062. $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
  32063. CFLAG_CURL_SYMBOL_HIDING=""
  32064. doing_symbol_hiding="no"
  32065. if test x"$ac_cv_native_windows" != "xyes" &&
  32066. test "$want_symbol_hiding" = "yes" &&
  32067. test "$supports_symbol_hiding" = "yes"; then
  32068. doing_symbol_hiding="yes"
  32069. CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
  32070. cat >>confdefs.h <<_ACEOF
  32071. #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
  32072. _ACEOF
  32073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32074. $as_echo "yes" >&6; }
  32075. else
  32076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32077. $as_echo "no" >&6; }
  32078. fi
  32079. if test x$doing_symbol_hiding = xyes; then
  32080. DOING_CURL_SYMBOL_HIDING_TRUE=
  32081. DOING_CURL_SYMBOL_HIDING_FALSE='#'
  32082. else
  32083. DOING_CURL_SYMBOL_HIDING_TRUE='#'
  32084. DOING_CURL_SYMBOL_HIDING_FALSE=
  32085. fi
  32086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
  32087. $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
  32088. # Check whether --enable-soname-bump was given.
  32089. if test "${enable_soname_bump+set}" = set; then :
  32090. enableval=$enable_soname_bump; case "$enableval" in
  32091. yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  32092. $as_echo "yes" >&6; }
  32093. soname_bump=yes
  32094. ;;
  32095. *)
  32096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32097. $as_echo "no" >&6; }
  32098. ;;
  32099. esac
  32100. else
  32101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
  32102. $as_echo "$soname_bump" >&6; }
  32103. fi
  32104. if test x$soname_bump = xyes; then
  32105. SONAME_BUMP_TRUE=
  32106. SONAME_BUMP_FALSE='#'
  32107. else
  32108. SONAME_BUMP_TRUE='#'
  32109. SONAME_BUMP_FALSE=
  32110. fi
  32111. LIBCURL_LIBS=$LIBS
  32112. BLANK_AT_MAKETIME=
  32113. if test x$cross_compiling = xyes; then
  32114. CROSSCOMPILING_TRUE=
  32115. CROSSCOMPILING_FALSE='#'
  32116. else
  32117. CROSSCOMPILING_TRUE='#'
  32118. CROSSCOMPILING_FALSE=
  32119. fi
  32120. ENABLE_SHARED="$enable_shared"
  32121. ENABLE_STATIC="$enable_static"
  32122. if test "x$USE_SSLEAY" = "x1"; then
  32123. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  32124. elif test -n "$SSL_ENABLED"; then
  32125. SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
  32126. fi
  32127. if test "x$IPV6_ENABLED" = "x1"; then
  32128. SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
  32129. fi
  32130. if test "x$HAVE_LIBZ" = "x1"; then
  32131. SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
  32132. fi
  32133. if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
  32134. SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
  32135. fi
  32136. if test "x$IDN_ENABLED" = "x1"; then
  32137. SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
  32138. fi
  32139. if test "x$USE_WINDOWS_SSPI" = "x1"; then
  32140. SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
  32141. fi
  32142. if test "x$CURL_DISABLE_HTTP" != "x1" -a \
  32143. "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
  32144. if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
  32145. -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
  32146. -o "x$DARWINSSL_ENABLED" = "x1"; then
  32147. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
  32148. if test "x$NTLM_WB_ENABLED" = "x1"; then
  32149. SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
  32150. fi
  32151. fi
  32152. fi
  32153. if test "x$USE_TLS_SRP" = "x1"; then
  32154. SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
  32155. fi
  32156. if test "x$USE_NGHTTP2" = "x1"; then
  32157. SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
  32158. fi
  32159. if test "x$curl_spnego_msg" = "xenabled"; then
  32160. SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
  32161. fi
  32162. if test "x$want_gss" = "xyes"; then
  32163. SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
  32164. fi
  32165. if test "x$CURL_DISABLE_HTTP" != "x1"; then
  32166. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
  32167. if test "x$SSL_ENABLED" = "x1"; then
  32168. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
  32169. fi
  32170. fi
  32171. if test "x$CURL_DISABLE_FTP" != "x1"; then
  32172. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
  32173. if test "x$SSL_ENABLED" = "x1"; then
  32174. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
  32175. fi
  32176. fi
  32177. if test "x$CURL_DISABLE_FILE" != "x1"; then
  32178. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
  32179. fi
  32180. if test "x$CURL_DISABLE_TELNET" != "x1"; then
  32181. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
  32182. fi
  32183. if test "x$CURL_DISABLE_LDAP" != "x1"; then
  32184. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
  32185. if test "x$CURL_DISABLE_LDAPS" != "x1"; then
  32186. if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
  32187. (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
  32188. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
  32189. fi
  32190. fi
  32191. fi
  32192. if test "x$CURL_DISABLE_DICT" != "x1"; then
  32193. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
  32194. fi
  32195. if test "x$CURL_DISABLE_TFTP" != "x1"; then
  32196. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
  32197. fi
  32198. if test "x$CURL_DISABLE_GOPHER" != "x1"; then
  32199. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
  32200. fi
  32201. if test "x$CURL_DISABLE_POP3" != "x1"; then
  32202. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
  32203. if test "x$SSL_ENABLED" = "x1"; then
  32204. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
  32205. fi
  32206. fi
  32207. if test "x$CURL_DISABLE_IMAP" != "x1"; then
  32208. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
  32209. if test "x$SSL_ENABLED" = "x1"; then
  32210. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
  32211. fi
  32212. fi
  32213. if test "x$CURL_DISABLE_SMTP" != "x1"; then
  32214. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
  32215. if test "x$SSL_ENABLED" = "x1"; then
  32216. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
  32217. fi
  32218. fi
  32219. if test "x$USE_LIBSSH2" = "x1"; then
  32220. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
  32221. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
  32222. fi
  32223. if test "x$CURL_DISABLE_RTSP" != "x1"; then
  32224. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
  32225. fi
  32226. if test "x$USE_LIBRTMP" = "x1"; then
  32227. SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
  32228. fi
  32229. SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
  32230. squeeze CFLAGS
  32231. squeeze CPPFLAGS
  32232. squeeze DEFS
  32233. squeeze LDFLAGS
  32234. squeeze LIBS
  32235. squeeze LIBCURL_LIBS
  32236. squeeze CURL_NETWORK_LIBS
  32237. squeeze CURL_NETWORK_AND_TIME_LIBS
  32238. squeeze SUPPORT_FEATURES
  32239. squeeze SUPPORT_PROTOCOLS
  32240. xc_bad_var_libs=no
  32241. for xc_word in $LIBS; do
  32242. case "$xc_word" in
  32243. -l* | --library=*)
  32244. :
  32245. ;;
  32246. *)
  32247. xc_bad_var_libs=yes
  32248. ;;
  32249. esac
  32250. done
  32251. if test $xc_bad_var_libs = yes; then
  32252. { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
  32253. $as_echo "$as_me: using LIBS: $LIBS" >&6;}
  32254. { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
  32255. $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
  32256. fi
  32257. xc_bad_var_ldflags=no
  32258. for xc_word in $LDFLAGS; do
  32259. case "$xc_word" in
  32260. -D*)
  32261. xc_bad_var_ldflags=yes
  32262. ;;
  32263. -U*)
  32264. xc_bad_var_ldflags=yes
  32265. ;;
  32266. -I*)
  32267. xc_bad_var_ldflags=yes
  32268. ;;
  32269. -l* | --library=*)
  32270. xc_bad_var_ldflags=yes
  32271. ;;
  32272. esac
  32273. done
  32274. if test $xc_bad_var_ldflags = yes; then
  32275. { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
  32276. $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
  32277. xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
  32278. for xc_word in $LDFLAGS; do
  32279. case "$xc_word" in
  32280. -D*)
  32281. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  32282. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  32283. ;;
  32284. -U*)
  32285. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  32286. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  32287. ;;
  32288. -I*)
  32289. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  32290. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  32291. ;;
  32292. -l* | --library=*)
  32293. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32294. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32295. ;;
  32296. esac
  32297. done
  32298. fi
  32299. xc_bad_var_cppflags=no
  32300. for xc_word in $CPPFLAGS; do
  32301. case "$xc_word" in
  32302. -rpath*)
  32303. xc_bad_var_cppflags=yes
  32304. ;;
  32305. -L* | --library-path=*)
  32306. xc_bad_var_cppflags=yes
  32307. ;;
  32308. -l* | --library=*)
  32309. xc_bad_var_cppflags=yes
  32310. ;;
  32311. esac
  32312. done
  32313. if test $xc_bad_var_cppflags = yes; then
  32314. { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
  32315. $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
  32316. xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
  32317. for xc_word in $CPPFLAGS; do
  32318. case "$xc_word" in
  32319. -rpath*)
  32320. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  32321. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  32322. ;;
  32323. -L* | --library-path=*)
  32324. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  32325. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  32326. ;;
  32327. -l* | --library=*)
  32328. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32329. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32330. ;;
  32331. esac
  32332. done
  32333. fi
  32334. xc_bad_var_cflags=no
  32335. for xc_word in $CFLAGS; do
  32336. case "$xc_word" in
  32337. -D*)
  32338. xc_bad_var_cflags=yes
  32339. ;;
  32340. -U*)
  32341. xc_bad_var_cflags=yes
  32342. ;;
  32343. -I*)
  32344. xc_bad_var_cflags=yes
  32345. ;;
  32346. -rpath*)
  32347. xc_bad_var_cflags=yes
  32348. ;;
  32349. -L* | --library-path=*)
  32350. xc_bad_var_cflags=yes
  32351. ;;
  32352. -l* | --library=*)
  32353. xc_bad_var_cflags=yes
  32354. ;;
  32355. esac
  32356. done
  32357. if test $xc_bad_var_cflags = yes; then
  32358. { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
  32359. $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
  32360. xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
  32361. for xc_word in $CFLAGS; do
  32362. case "$xc_word" in
  32363. -D*)
  32364. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
  32365. $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
  32366. ;;
  32367. -U*)
  32368. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
  32369. $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
  32370. ;;
  32371. -I*)
  32372. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
  32373. $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
  32374. ;;
  32375. -rpath*)
  32376. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
  32377. $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
  32378. ;;
  32379. -L* | --library-path=*)
  32380. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
  32381. $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
  32382. ;;
  32383. -l* | --library=*)
  32384. { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
  32385. $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
  32386. ;;
  32387. esac
  32388. done
  32389. fi
  32390. if test $xc_bad_var_libs = yes ||
  32391. test $xc_bad_var_cflags = yes ||
  32392. test $xc_bad_var_ldflags = yes ||
  32393. test $xc_bad_var_cppflags = yes; then
  32394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
  32395. $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
  32396. fi
  32397. if test "x$want_curldebug_assumed" = "xyes" &&
  32398. test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
  32399. ac_configure_args="$ac_configure_args --enable-curldebug"
  32400. fi
  32401. ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/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"
  32402. cat >confcache <<\_ACEOF
  32403. # This file is a shell script that caches the results of configure
  32404. # tests run on this system so they can be shared between configure
  32405. # scripts and configure runs, see configure's option --config-cache.
  32406. # It is not useful on other systems. If it contains results you don't
  32407. # want to keep, you may remove or edit it.
  32408. #
  32409. # config.status only pays attention to the cache file if you give it
  32410. # the --recheck option to rerun configure.
  32411. #
  32412. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  32413. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  32414. # following values.
  32415. _ACEOF
  32416. # The following way of writing the cache mishandles newlines in values,
  32417. # but we know of no workaround that is simple, portable, and efficient.
  32418. # So, we kill variables containing newlines.
  32419. # Ultrix sh set writes to stderr and can't be redirected directly,
  32420. # and sets the high bit in the cache file unless we assign to the vars.
  32421. (
  32422. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  32423. eval ac_val=\$$ac_var
  32424. case $ac_val in #(
  32425. *${as_nl}*)
  32426. case $ac_var in #(
  32427. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  32428. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  32429. esac
  32430. case $ac_var in #(
  32431. _ | IFS | as_nl) ;; #(
  32432. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32433. *) { eval $ac_var=; unset $ac_var;} ;;
  32434. esac ;;
  32435. esac
  32436. done
  32437. (set) 2>&1 |
  32438. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  32439. *${as_nl}ac_space=\ *)
  32440. # `set' does not quote correctly, so add quotes: double-quote
  32441. # substitution turns \\\\ into \\, and sed turns \\ into \.
  32442. sed -n \
  32443. "s/'/'\\\\''/g;
  32444. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  32445. ;; #(
  32446. *)
  32447. # `set' quotes correctly as required by POSIX, so do not add quotes.
  32448. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32449. ;;
  32450. esac |
  32451. sort
  32452. ) |
  32453. sed '
  32454. /^ac_cv_env_/b end
  32455. t clear
  32456. :clear
  32457. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  32458. t end
  32459. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  32460. :end' >>confcache
  32461. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  32462. if test -w "$cache_file"; then
  32463. if test "x$cache_file" != "x/dev/null"; then
  32464. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  32465. $as_echo "$as_me: updating cache $cache_file" >&6;}
  32466. if test ! -f "$cache_file" || test -h "$cache_file"; then
  32467. cat confcache >"$cache_file"
  32468. else
  32469. case $cache_file in #(
  32470. */* | ?:*)
  32471. mv -f confcache "$cache_file"$$ &&
  32472. mv -f "$cache_file"$$ "$cache_file" ;; #(
  32473. *)
  32474. mv -f confcache "$cache_file" ;;
  32475. esac
  32476. fi
  32477. fi
  32478. else
  32479. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  32480. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  32481. fi
  32482. fi
  32483. rm -f confcache
  32484. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  32485. # Let make expand exec_prefix.
  32486. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  32487. DEFS=-DHAVE_CONFIG_H
  32488. ac_libobjs=
  32489. ac_ltlibobjs=
  32490. U=
  32491. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  32492. # 1. Remove the extension, and $U if already installed.
  32493. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  32494. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  32495. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  32496. # will be set to the directory where LIBOBJS objects are built.
  32497. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  32498. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  32499. done
  32500. LIBOBJS=$ac_libobjs
  32501. LTLIBOBJS=$ac_ltlibobjs
  32502. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  32503. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  32504. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32505. fi
  32506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  32507. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  32508. if test -n "$am_sleep_pid"; then
  32509. # Hide warnings about reused PIDs.
  32510. wait $am_sleep_pid 2>/dev/null
  32511. fi
  32512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  32513. $as_echo "done" >&6; }
  32514. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  32515. as_fn_error $? "conditional \"AMDEP\" was never defined.
  32516. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32517. fi
  32518. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  32519. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  32520. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32521. fi
  32522. if test -n "$EXEEXT"; then
  32523. am__EXEEXT_TRUE=
  32524. am__EXEEXT_FALSE='#'
  32525. else
  32526. am__EXEEXT_TRUE='#'
  32527. am__EXEEXT_FALSE=
  32528. fi
  32529. if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
  32530. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
  32531. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32532. fi
  32533. if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
  32534. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
  32535. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32536. fi
  32537. if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
  32538. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
  32539. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32540. fi
  32541. if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
  32542. as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
  32543. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32544. fi
  32545. if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
  32546. as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
  32547. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32548. fi
  32549. if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
  32550. as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
  32551. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32552. fi
  32553. if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
  32554. as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
  32555. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32556. fi
  32557. if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
  32558. as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
  32559. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32560. fi
  32561. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  32562. as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
  32563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32564. fi
  32565. if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
  32566. as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
  32567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32568. fi
  32569. if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
  32570. as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
  32571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32572. fi
  32573. if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
  32574. as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
  32575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32576. fi
  32577. if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
  32578. as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
  32579. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32580. fi
  32581. if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
  32582. as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
  32583. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32584. fi
  32585. if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
  32586. as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
  32587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32588. fi
  32589. if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
  32590. as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
  32591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  32592. fi
  32593. : "${CONFIG_STATUS=./config.status}"
  32594. ac_write_fail=0
  32595. ac_clean_files_save=$ac_clean_files
  32596. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  32597. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  32598. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  32599. as_write_fail=0
  32600. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  32601. #! $SHELL
  32602. # Generated by $as_me.
  32603. # Run this file to recreate the current configuration.
  32604. # Compiler output produced by configure, useful for debugging
  32605. # configure, is in config.log if it exists.
  32606. debug=false
  32607. ac_cs_recheck=false
  32608. ac_cs_silent=false
  32609. SHELL=\${CONFIG_SHELL-$SHELL}
  32610. export SHELL
  32611. _ASEOF
  32612. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  32613. ## -------------------- ##
  32614. ## M4sh Initialization. ##
  32615. ## -------------------- ##
  32616. # Be more Bourne compatible
  32617. DUALCASE=1; export DUALCASE # for MKS sh
  32618. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  32619. emulate sh
  32620. NULLCMD=:
  32621. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  32622. # is contrary to our usage. Disable this feature.
  32623. alias -g '${1+"$@"}'='"$@"'
  32624. setopt NO_GLOB_SUBST
  32625. else
  32626. case `(set -o) 2>/dev/null` in #(
  32627. *posix*) :
  32628. set -o posix ;; #(
  32629. *) :
  32630. ;;
  32631. esac
  32632. fi
  32633. as_nl='
  32634. '
  32635. export as_nl
  32636. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  32637. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  32638. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  32639. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  32640. # Prefer a ksh shell builtin over an external printf program on Solaris,
  32641. # but without wasting forks for bash or zsh.
  32642. if test -z "$BASH_VERSION$ZSH_VERSION" \
  32643. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  32644. as_echo='print -r --'
  32645. as_echo_n='print -rn --'
  32646. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  32647. as_echo='printf %s\n'
  32648. as_echo_n='printf %s'
  32649. else
  32650. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  32651. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  32652. as_echo_n='/usr/ucb/echo -n'
  32653. else
  32654. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  32655. as_echo_n_body='eval
  32656. arg=$1;
  32657. case $arg in #(
  32658. *"$as_nl"*)
  32659. expr "X$arg" : "X\\(.*\\)$as_nl";
  32660. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  32661. esac;
  32662. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  32663. '
  32664. export as_echo_n_body
  32665. as_echo_n='sh -c $as_echo_n_body as_echo'
  32666. fi
  32667. export as_echo_body
  32668. as_echo='sh -c $as_echo_body as_echo'
  32669. fi
  32670. # IFS
  32671. # We need space, tab and new line, in precisely that order. Quoting is
  32672. # there to prevent editors from complaining about space-tab.
  32673. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  32674. # splitting by setting IFS to empty value.)
  32675. IFS=" "" $as_nl"
  32676. # Find who we are. Look in the path if we contain no directory separator.
  32677. as_myself=
  32678. case $0 in #((
  32679. *[\\/]* ) as_myself=$0 ;;
  32680. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32681. for as_dir in $PATH
  32682. do
  32683. IFS=$as_save_IFS
  32684. test -z "$as_dir" && as_dir=.
  32685. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  32686. done
  32687. IFS=$as_save_IFS
  32688. ;;
  32689. esac
  32690. # We did not find ourselves, most probably we were run as `sh COMMAND'
  32691. # in which case we are not to be found in the path.
  32692. if test "x$as_myself" = x; then
  32693. as_myself=$0
  32694. fi
  32695. if test ! -f "$as_myself"; then
  32696. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  32697. exit 1
  32698. fi
  32699. # Unset variables that we do not need and which cause bugs (e.g. in
  32700. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  32701. # suppresses any "Segmentation fault" message there. '((' could
  32702. # trigger a bug in pdksh 5.2.14.
  32703. for as_var in BASH_ENV ENV MAIL MAILPATH
  32704. do eval test x\${$as_var+set} = xset \
  32705. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  32706. done
  32707. PS1='$ '
  32708. PS2='> '
  32709. PS4='+ '
  32710. # NLS nuisances.
  32711. LC_ALL=C
  32712. export LC_ALL
  32713. LANGUAGE=C
  32714. export LANGUAGE
  32715. # CDPATH.
  32716. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  32717. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  32718. # ----------------------------------------
  32719. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  32720. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  32721. # script with STATUS, using 1 if that was 0.
  32722. as_fn_error ()
  32723. {
  32724. as_status=$1; test $as_status -eq 0 && as_status=1
  32725. if test "$4"; then
  32726. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  32727. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  32728. fi
  32729. $as_echo "$as_me: error: $2" >&2
  32730. as_fn_exit $as_status
  32731. } # as_fn_error
  32732. # as_fn_set_status STATUS
  32733. # -----------------------
  32734. # Set $? to STATUS, without forking.
  32735. as_fn_set_status ()
  32736. {
  32737. return $1
  32738. } # as_fn_set_status
  32739. # as_fn_exit STATUS
  32740. # -----------------
  32741. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  32742. as_fn_exit ()
  32743. {
  32744. set +e
  32745. as_fn_set_status $1
  32746. exit $1
  32747. } # as_fn_exit
  32748. # as_fn_unset VAR
  32749. # ---------------
  32750. # Portably unset VAR.
  32751. as_fn_unset ()
  32752. {
  32753. { eval $1=; unset $1;}
  32754. }
  32755. as_unset=as_fn_unset
  32756. # as_fn_append VAR VALUE
  32757. # ----------------------
  32758. # Append the text in VALUE to the end of the definition contained in VAR. Take
  32759. # advantage of any shell optimizations that allow amortized linear growth over
  32760. # repeated appends, instead of the typical quadratic growth present in naive
  32761. # implementations.
  32762. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  32763. eval 'as_fn_append ()
  32764. {
  32765. eval $1+=\$2
  32766. }'
  32767. else
  32768. as_fn_append ()
  32769. {
  32770. eval $1=\$$1\$2
  32771. }
  32772. fi # as_fn_append
  32773. # as_fn_arith ARG...
  32774. # ------------------
  32775. # Perform arithmetic evaluation on the ARGs, and store the result in the
  32776. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  32777. # must be portable across $(()) and expr.
  32778. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  32779. eval 'as_fn_arith ()
  32780. {
  32781. as_val=$(( $* ))
  32782. }'
  32783. else
  32784. as_fn_arith ()
  32785. {
  32786. as_val=`expr "$@" || test $? -eq 1`
  32787. }
  32788. fi # as_fn_arith
  32789. if expr a : '\(a\)' >/dev/null 2>&1 &&
  32790. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  32791. as_expr=expr
  32792. else
  32793. as_expr=false
  32794. fi
  32795. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  32796. as_basename=basename
  32797. else
  32798. as_basename=false
  32799. fi
  32800. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  32801. as_dirname=dirname
  32802. else
  32803. as_dirname=false
  32804. fi
  32805. as_me=`$as_basename -- "$0" ||
  32806. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  32807. X"$0" : 'X\(//\)$' \| \
  32808. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  32809. $as_echo X/"$0" |
  32810. sed '/^.*\/\([^/][^/]*\)\/*$/{
  32811. s//\1/
  32812. q
  32813. }
  32814. /^X\/\(\/\/\)$/{
  32815. s//\1/
  32816. q
  32817. }
  32818. /^X\/\(\/\).*/{
  32819. s//\1/
  32820. q
  32821. }
  32822. s/.*/./; q'`
  32823. # Avoid depending upon Character Ranges.
  32824. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32825. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32826. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  32827. as_cr_digits='0123456789'
  32828. as_cr_alnum=$as_cr_Letters$as_cr_digits
  32829. ECHO_C= ECHO_N= ECHO_T=
  32830. case `echo -n x` in #(((((
  32831. -n*)
  32832. case `echo 'xy\c'` in
  32833. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  32834. xy) ECHO_C='\c';;
  32835. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  32836. ECHO_T=' ';;
  32837. esac;;
  32838. *)
  32839. ECHO_N='-n';;
  32840. esac
  32841. rm -f conf$$ conf$$.exe conf$$.file
  32842. if test -d conf$$.dir; then
  32843. rm -f conf$$.dir/conf$$.file
  32844. else
  32845. rm -f conf$$.dir
  32846. mkdir conf$$.dir 2>/dev/null
  32847. fi
  32848. if (echo >conf$$.file) 2>/dev/null; then
  32849. if ln -s conf$$.file conf$$ 2>/dev/null; then
  32850. as_ln_s='ln -s'
  32851. # ... but there are two gotchas:
  32852. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  32853. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  32854. # In both cases, we have to default to `cp -pR'.
  32855. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  32856. as_ln_s='cp -pR'
  32857. elif ln conf$$.file conf$$ 2>/dev/null; then
  32858. as_ln_s=ln
  32859. else
  32860. as_ln_s='cp -pR'
  32861. fi
  32862. else
  32863. as_ln_s='cp -pR'
  32864. fi
  32865. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  32866. rmdir conf$$.dir 2>/dev/null
  32867. # as_fn_mkdir_p
  32868. # -------------
  32869. # Create "$as_dir" as a directory, including parents if necessary.
  32870. as_fn_mkdir_p ()
  32871. {
  32872. case $as_dir in #(
  32873. -*) as_dir=./$as_dir;;
  32874. esac
  32875. test -d "$as_dir" || eval $as_mkdir_p || {
  32876. as_dirs=
  32877. while :; do
  32878. case $as_dir in #(
  32879. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  32880. *) as_qdir=$as_dir;;
  32881. esac
  32882. as_dirs="'$as_qdir' $as_dirs"
  32883. as_dir=`$as_dirname -- "$as_dir" ||
  32884. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  32885. X"$as_dir" : 'X\(//\)[^/]' \| \
  32886. X"$as_dir" : 'X\(//\)$' \| \
  32887. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  32888. $as_echo X"$as_dir" |
  32889. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  32890. s//\1/
  32891. q
  32892. }
  32893. /^X\(\/\/\)[^/].*/{
  32894. s//\1/
  32895. q
  32896. }
  32897. /^X\(\/\/\)$/{
  32898. s//\1/
  32899. q
  32900. }
  32901. /^X\(\/\).*/{
  32902. s//\1/
  32903. q
  32904. }
  32905. s/.*/./; q'`
  32906. test -d "$as_dir" && break
  32907. done
  32908. test -z "$as_dirs" || eval "mkdir $as_dirs"
  32909. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  32910. } # as_fn_mkdir_p
  32911. if mkdir -p . 2>/dev/null; then
  32912. as_mkdir_p='mkdir -p "$as_dir"'
  32913. else
  32914. test -d ./-p && rmdir ./-p
  32915. as_mkdir_p=false
  32916. fi
  32917. # as_fn_executable_p FILE
  32918. # -----------------------
  32919. # Test if FILE is an executable regular file.
  32920. as_fn_executable_p ()
  32921. {
  32922. test -f "$1" && test -x "$1"
  32923. } # as_fn_executable_p
  32924. as_test_x='test -x'
  32925. as_executable_p=as_fn_executable_p
  32926. # Sed expression to map a string onto a valid CPP name.
  32927. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  32928. # Sed expression to map a string onto a valid variable name.
  32929. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  32930. exec 6>&1
  32931. ## ----------------------------------- ##
  32932. ## Main body of $CONFIG_STATUS script. ##
  32933. ## ----------------------------------- ##
  32934. _ASEOF
  32935. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  32936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32937. # Save the log message, to keep $0 and so on meaningful, and to
  32938. # report actual input values of CONFIG_FILES etc. instead of their
  32939. # values after options handling.
  32940. ac_log="
  32941. This file was extended by curl $as_me -, which was
  32942. generated by GNU Autoconf 2.69. Invocation command line was
  32943. CONFIG_FILES = $CONFIG_FILES
  32944. CONFIG_HEADERS = $CONFIG_HEADERS
  32945. CONFIG_LINKS = $CONFIG_LINKS
  32946. CONFIG_COMMANDS = $CONFIG_COMMANDS
  32947. $ $0 $@
  32948. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  32949. "
  32950. _ACEOF
  32951. case $ac_config_files in *"
  32952. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  32953. esac
  32954. case $ac_config_headers in *"
  32955. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  32956. esac
  32957. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32958. # Files that config.status was made for.
  32959. config_files="$ac_config_files"
  32960. config_headers="$ac_config_headers"
  32961. config_commands="$ac_config_commands"
  32962. _ACEOF
  32963. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  32964. ac_cs_usage="\
  32965. \`$as_me' instantiates files and other configuration actions
  32966. from templates according to the current configuration. Unless the files
  32967. and actions are specified as TAGs, all are instantiated by default.
  32968. Usage: $0 [OPTION]... [TAG]...
  32969. -h, --help print this help, then exit
  32970. -V, --version print version number and configuration settings, then exit
  32971. --config print configuration, then exit
  32972. -q, --quiet, --silent
  32973. do not print progress messages
  32974. -d, --debug don't remove temporary files
  32975. --recheck update $as_me by reconfiguring in the same conditions
  32976. --file=FILE[:TEMPLATE]
  32977. instantiate the configuration file FILE
  32978. --header=FILE[:TEMPLATE]
  32979. instantiate the configuration header FILE
  32980. Configuration files:
  32981. $config_files
  32982. Configuration headers:
  32983. $config_headers
  32984. Configuration commands:
  32985. $config_commands
  32986. Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
  32987. _ACEOF
  32988. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  32989. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  32990. ac_cs_version="\\
  32991. curl config.status -
  32992. configured by $0, generated by GNU Autoconf 2.69,
  32993. with options \\"\$ac_cs_config\\"
  32994. Copyright (C) 2012 Free Software Foundation, Inc.
  32995. This config.status script is free software; the Free Software Foundation
  32996. gives unlimited permission to copy, distribute and modify it."
  32997. ac_pwd='$ac_pwd'
  32998. srcdir='$srcdir'
  32999. INSTALL='$INSTALL'
  33000. MKDIR_P='$MKDIR_P'
  33001. AWK='$AWK'
  33002. test -n "\$AWK" || AWK=awk
  33003. _ACEOF
  33004. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33005. # The default lists apply if the user does not specify any file.
  33006. ac_need_defaults=:
  33007. while test $# != 0
  33008. do
  33009. case $1 in
  33010. --*=?*)
  33011. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  33012. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  33013. ac_shift=:
  33014. ;;
  33015. --*=)
  33016. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  33017. ac_optarg=
  33018. ac_shift=:
  33019. ;;
  33020. *)
  33021. ac_option=$1
  33022. ac_optarg=$2
  33023. ac_shift=shift
  33024. ;;
  33025. esac
  33026. case $ac_option in
  33027. # Handling of the options.
  33028. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  33029. ac_cs_recheck=: ;;
  33030. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  33031. $as_echo "$ac_cs_version"; exit ;;
  33032. --config | --confi | --conf | --con | --co | --c )
  33033. $as_echo "$ac_cs_config"; exit ;;
  33034. --debug | --debu | --deb | --de | --d | -d )
  33035. debug=: ;;
  33036. --file | --fil | --fi | --f )
  33037. $ac_shift
  33038. case $ac_optarg in
  33039. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33040. '') as_fn_error $? "missing file argument" ;;
  33041. esac
  33042. as_fn_append CONFIG_FILES " '$ac_optarg'"
  33043. ac_need_defaults=false;;
  33044. --header | --heade | --head | --hea )
  33045. $ac_shift
  33046. case $ac_optarg in
  33047. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  33048. esac
  33049. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  33050. ac_need_defaults=false;;
  33051. --he | --h)
  33052. # Conflict between --help and --header
  33053. as_fn_error $? "ambiguous option: \`$1'
  33054. Try \`$0 --help' for more information.";;
  33055. --help | --hel | -h )
  33056. $as_echo "$ac_cs_usage"; exit ;;
  33057. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  33058. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  33059. ac_cs_silent=: ;;
  33060. # This is an error.
  33061. -*) as_fn_error $? "unrecognized option: \`$1'
  33062. Try \`$0 --help' for more information." ;;
  33063. *) as_fn_append ac_config_targets " $1"
  33064. ac_need_defaults=false ;;
  33065. esac
  33066. shift
  33067. done
  33068. ac_configure_extra_args=
  33069. if $ac_cs_silent; then
  33070. exec 6>/dev/null
  33071. ac_configure_extra_args="$ac_configure_extra_args --silent"
  33072. fi
  33073. _ACEOF
  33074. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33075. if \$ac_cs_recheck; then
  33076. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  33077. shift
  33078. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  33079. CONFIG_SHELL='$SHELL'
  33080. export CONFIG_SHELL
  33081. exec "\$@"
  33082. fi
  33083. _ACEOF
  33084. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33085. exec 5>>config.log
  33086. {
  33087. echo
  33088. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  33089. ## Running $as_me. ##
  33090. _ASBOX
  33091. $as_echo "$ac_log"
  33092. } >&5
  33093. _ACEOF
  33094. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33095. #
  33096. # INIT-COMMANDS
  33097. #
  33098. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  33099. # The HP-UX ksh and POSIX shell print the target directory to stdout
  33100. # if CDPATH is set.
  33101. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  33102. sed_quote_subst='$sed_quote_subst'
  33103. double_quote_subst='$double_quote_subst'
  33104. delay_variable_subst='$delay_variable_subst'
  33105. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  33106. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  33107. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  33108. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  33109. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  33110. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  33111. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  33112. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  33113. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  33114. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  33115. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  33116. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  33117. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  33118. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  33119. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  33120. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  33121. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  33122. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  33123. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  33124. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  33125. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  33126. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  33127. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  33128. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  33129. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  33130. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  33131. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  33132. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  33133. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  33134. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  33135. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  33136. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  33137. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  33138. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  33139. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  33140. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  33141. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  33142. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  33143. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  33144. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  33145. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  33146. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  33147. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  33148. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  33149. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  33150. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  33151. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  33152. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  33153. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  33154. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  33155. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  33156. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  33157. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  33158. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  33159. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  33160. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  33161. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  33162. 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"`'
  33163. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  33164. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  33165. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  33166. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  33167. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  33168. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  33169. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  33170. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  33171. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  33172. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  33173. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  33174. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  33175. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  33176. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  33177. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  33178. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  33179. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  33180. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  33181. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  33182. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  33183. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  33184. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  33185. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  33186. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  33187. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  33188. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  33189. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  33190. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  33191. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  33192. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  33193. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  33194. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  33195. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  33196. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  33197. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  33198. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  33199. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  33200. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  33201. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  33202. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  33203. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  33204. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  33205. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  33206. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  33207. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  33208. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  33209. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  33210. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  33211. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  33212. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  33213. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  33214. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  33215. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  33216. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  33217. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  33218. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  33219. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  33220. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  33221. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  33222. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  33223. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  33224. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  33225. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  33226. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  33227. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  33228. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  33229. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  33230. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  33231. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  33232. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  33233. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  33234. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  33235. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  33236. LTCC='$LTCC'
  33237. LTCFLAGS='$LTCFLAGS'
  33238. compiler='$compiler_DEFAULT'
  33239. # A function that is used when there is no print builtin or printf.
  33240. func_fallback_echo ()
  33241. {
  33242. eval 'cat <<_LTECHO_EOF
  33243. \$1
  33244. _LTECHO_EOF'
  33245. }
  33246. # Quote evaled strings.
  33247. for var in AS \
  33248. DLLTOOL \
  33249. OBJDUMP \
  33250. SHELL \
  33251. ECHO \
  33252. PATH_SEPARATOR \
  33253. SED \
  33254. GREP \
  33255. EGREP \
  33256. FGREP \
  33257. LD \
  33258. NM \
  33259. LN_S \
  33260. lt_SP2NL \
  33261. lt_NL2SP \
  33262. reload_flag \
  33263. deplibs_check_method \
  33264. file_magic_cmd \
  33265. file_magic_glob \
  33266. want_nocaseglob \
  33267. sharedlib_from_linklib_cmd \
  33268. AR \
  33269. AR_FLAGS \
  33270. archiver_list_spec \
  33271. STRIP \
  33272. RANLIB \
  33273. CC \
  33274. CFLAGS \
  33275. compiler \
  33276. lt_cv_sys_global_symbol_pipe \
  33277. lt_cv_sys_global_symbol_to_cdecl \
  33278. lt_cv_sys_global_symbol_to_c_name_address \
  33279. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  33280. nm_file_list_spec \
  33281. lt_prog_compiler_no_builtin_flag \
  33282. lt_prog_compiler_pic \
  33283. lt_prog_compiler_wl \
  33284. lt_prog_compiler_static \
  33285. lt_cv_prog_compiler_c_o \
  33286. need_locks \
  33287. MANIFEST_TOOL \
  33288. DSYMUTIL \
  33289. NMEDIT \
  33290. LIPO \
  33291. OTOOL \
  33292. OTOOL64 \
  33293. shrext_cmds \
  33294. export_dynamic_flag_spec \
  33295. whole_archive_flag_spec \
  33296. compiler_needs_object \
  33297. with_gnu_ld \
  33298. allow_undefined_flag \
  33299. no_undefined_flag \
  33300. hardcode_libdir_flag_spec \
  33301. hardcode_libdir_separator \
  33302. exclude_expsyms \
  33303. include_expsyms \
  33304. file_list_spec \
  33305. variables_saved_for_relink \
  33306. libname_spec \
  33307. library_names_spec \
  33308. soname_spec \
  33309. install_override_mode \
  33310. finish_eval \
  33311. old_striplib \
  33312. striplib; do
  33313. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  33314. *[\\\\\\\`\\"\\\$]*)
  33315. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  33316. ;;
  33317. *)
  33318. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33319. ;;
  33320. esac
  33321. done
  33322. # Double-quote double-evaled strings.
  33323. for var in reload_cmds \
  33324. old_postinstall_cmds \
  33325. old_postuninstall_cmds \
  33326. old_archive_cmds \
  33327. extract_expsyms_cmds \
  33328. old_archive_from_new_cmds \
  33329. old_archive_from_expsyms_cmds \
  33330. archive_cmds \
  33331. archive_expsym_cmds \
  33332. module_cmds \
  33333. module_expsym_cmds \
  33334. export_symbols_cmds \
  33335. prelink_cmds \
  33336. postlink_cmds \
  33337. postinstall_cmds \
  33338. postuninstall_cmds \
  33339. finish_cmds \
  33340. sys_lib_search_path_spec \
  33341. sys_lib_dlsearch_path_spec; do
  33342. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  33343. *[\\\\\\\`\\"\\\$]*)
  33344. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  33345. ;;
  33346. *)
  33347. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  33348. ;;
  33349. esac
  33350. done
  33351. ac_aux_dir='$ac_aux_dir'
  33352. xsi_shell='$xsi_shell'
  33353. lt_shell_append='$lt_shell_append'
  33354. # See if we are running on zsh, and set the options which allow our
  33355. # commands through without removal of \ escapes INIT.
  33356. if test -n "\${ZSH_VERSION+set}" ; then
  33357. setopt NO_GLOB_SUBST
  33358. fi
  33359. PACKAGE='$PACKAGE'
  33360. VERSION='$VERSION'
  33361. TIMESTAMP='$TIMESTAMP'
  33362. RM='$RM'
  33363. ofile='$ofile'
  33364. _ACEOF
  33365. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33366. # Handling of arguments.
  33367. for ac_config_target in $ac_config_targets
  33368. do
  33369. case $ac_config_target in
  33370. "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
  33371. "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
  33372. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  33373. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  33374. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  33375. "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
  33376. "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
  33377. "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
  33378. "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
  33379. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  33380. "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
  33381. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  33382. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  33383. "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
  33384. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  33385. "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
  33386. "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
  33387. "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
  33388. "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
  33389. "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
  33390. "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
  33391. "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
  33392. "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
  33393. "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
  33394. "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
  33395. "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
  33396. "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
  33397. "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
  33398. "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
  33399. "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
  33400. "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
  33401. "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
  33402. "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
  33403. "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
  33404. "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
  33405. "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
  33406. "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
  33407. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  33408. esac
  33409. done
  33410. # If the user did not use the arguments to specify the items to instantiate,
  33411. # then the envvar interface is used. Set only those that are not.
  33412. # We use the long form for the default assignment because of an extremely
  33413. # bizarre bug on SunOS 4.1.3.
  33414. if $ac_need_defaults; then
  33415. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  33416. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  33417. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  33418. fi
  33419. # Have a temporary directory for convenience. Make it in the build tree
  33420. # simply because there is no reason against having it here, and in addition,
  33421. # creating and moving files from /tmp can sometimes cause problems.
  33422. # Hook for its removal unless debugging.
  33423. # Note that there is a small window in which the directory will not be cleaned:
  33424. # after its creation but before its name has been assigned to `$tmp'.
  33425. $debug ||
  33426. {
  33427. tmp= ac_tmp=
  33428. trap 'exit_status=$?
  33429. : "${ac_tmp:=$tmp}"
  33430. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  33431. ' 0
  33432. trap 'as_fn_exit 1' 1 2 13 15
  33433. }
  33434. # Create a (secure) tmp directory for tmp files.
  33435. {
  33436. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  33437. test -d "$tmp"
  33438. } ||
  33439. {
  33440. tmp=./conf$$-$RANDOM
  33441. (umask 077 && mkdir "$tmp")
  33442. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  33443. ac_tmp=$tmp
  33444. # Set up the scripts for CONFIG_FILES section.
  33445. # No need to generate them if there are no CONFIG_FILES.
  33446. # This happens for instance with `./config.status config.h'.
  33447. if test -n "$CONFIG_FILES"; then
  33448. ac_cr=`echo X | tr X '\015'`
  33449. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  33450. # But we know of no other shell where ac_cr would be empty at this
  33451. # point, so we can use a bashism as a fallback.
  33452. if test "x$ac_cr" = x; then
  33453. eval ac_cr=\$\'\\r\'
  33454. fi
  33455. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  33456. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  33457. ac_cs_awk_cr='\\r'
  33458. else
  33459. ac_cs_awk_cr=$ac_cr
  33460. fi
  33461. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  33462. _ACEOF
  33463. {
  33464. echo "cat >conf$$subs.awk <<_ACEOF" &&
  33465. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  33466. echo "_ACEOF"
  33467. } >conf$$subs.sh ||
  33468. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33469. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  33470. ac_delim='%!_!# '
  33471. for ac_last_try in false false false false false :; do
  33472. . ./conf$$subs.sh ||
  33473. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33474. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  33475. if test $ac_delim_n = $ac_delim_num; then
  33476. break
  33477. elif $ac_last_try; then
  33478. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  33479. else
  33480. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33481. fi
  33482. done
  33483. rm -f conf$$subs.sh
  33484. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33485. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  33486. _ACEOF
  33487. sed -n '
  33488. h
  33489. s/^/S["/; s/!.*/"]=/
  33490. p
  33491. g
  33492. s/^[^!]*!//
  33493. :repl
  33494. t repl
  33495. s/'"$ac_delim"'$//
  33496. t delim
  33497. :nl
  33498. h
  33499. s/\(.\{148\}\)..*/\1/
  33500. t more1
  33501. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  33502. p
  33503. n
  33504. b repl
  33505. :more1
  33506. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33507. p
  33508. g
  33509. s/.\{148\}//
  33510. t nl
  33511. :delim
  33512. h
  33513. s/\(.\{148\}\)..*/\1/
  33514. t more2
  33515. s/["\\]/\\&/g; s/^/"/; s/$/"/
  33516. p
  33517. b
  33518. :more2
  33519. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  33520. p
  33521. g
  33522. s/.\{148\}//
  33523. t delim
  33524. ' <conf$$subs.awk | sed '
  33525. /^[^""]/{
  33526. N
  33527. s/\n//
  33528. }
  33529. ' >>$CONFIG_STATUS || ac_write_fail=1
  33530. rm -f conf$$subs.awk
  33531. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33532. _ACAWK
  33533. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  33534. for (key in S) S_is_set[key] = 1
  33535. FS = ""
  33536. }
  33537. {
  33538. line = $ 0
  33539. nfields = split(line, field, "@")
  33540. substed = 0
  33541. len = length(field[1])
  33542. for (i = 2; i < nfields; i++) {
  33543. key = field[i]
  33544. keylen = length(key)
  33545. if (S_is_set[key]) {
  33546. value = S[key]
  33547. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  33548. len += length(value) + length(field[++i])
  33549. substed = 1
  33550. } else
  33551. len += 1 + keylen
  33552. }
  33553. print line
  33554. }
  33555. _ACAWK
  33556. _ACEOF
  33557. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33558. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  33559. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  33560. else
  33561. cat
  33562. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  33563. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  33564. _ACEOF
  33565. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  33566. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  33567. # trailing colons and then remove the whole line if VPATH becomes empty
  33568. # (actually we leave an empty line to preserve line numbers).
  33569. if test "x$srcdir" = x.; then
  33570. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  33571. h
  33572. s///
  33573. s/^/:/
  33574. s/[ ]*$/:/
  33575. s/:\$(srcdir):/:/g
  33576. s/:\${srcdir}:/:/g
  33577. s/:@srcdir@:/:/g
  33578. s/^:*//
  33579. s/:*$//
  33580. x
  33581. s/\(=[ ]*\).*/\1/
  33582. G
  33583. s/\n//
  33584. s/^[^=]*=[ ]*$//
  33585. }'
  33586. fi
  33587. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33588. fi # test -n "$CONFIG_FILES"
  33589. # Set up the scripts for CONFIG_HEADERS section.
  33590. # No need to generate them if there are no CONFIG_HEADERS.
  33591. # This happens for instance with `./config.status Makefile'.
  33592. if test -n "$CONFIG_HEADERS"; then
  33593. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  33594. BEGIN {
  33595. _ACEOF
  33596. # Transform confdefs.h into an awk script `defines.awk', embedded as
  33597. # here-document in config.status, that substitutes the proper values into
  33598. # config.h.in to produce config.h.
  33599. # Create a delimiter string that does not exist in confdefs.h, to ease
  33600. # handling of long lines.
  33601. ac_delim='%!_!# '
  33602. for ac_last_try in false false :; do
  33603. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  33604. if test -z "$ac_tt"; then
  33605. break
  33606. elif $ac_last_try; then
  33607. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  33608. else
  33609. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  33610. fi
  33611. done
  33612. # For the awk script, D is an array of macro values keyed by name,
  33613. # likewise P contains macro parameters if any. Preserve backslash
  33614. # newline sequences.
  33615. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  33616. sed -n '
  33617. s/.\{148\}/&'"$ac_delim"'/g
  33618. t rset
  33619. :rset
  33620. s/^[ ]*#[ ]*define[ ][ ]*/ /
  33621. t def
  33622. d
  33623. :def
  33624. s/\\$//
  33625. t bsnl
  33626. s/["\\]/\\&/g
  33627. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33628. D["\1"]=" \3"/p
  33629. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  33630. d
  33631. :bsnl
  33632. s/["\\]/\\&/g
  33633. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  33634. D["\1"]=" \3\\\\\\n"\\/p
  33635. t cont
  33636. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  33637. t cont
  33638. d
  33639. :cont
  33640. n
  33641. s/.\{148\}/&'"$ac_delim"'/g
  33642. t clear
  33643. :clear
  33644. s/\\$//
  33645. t bsnlc
  33646. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  33647. d
  33648. :bsnlc
  33649. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  33650. b cont
  33651. ' <confdefs.h | sed '
  33652. s/'"$ac_delim"'/"\\\
  33653. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  33654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33655. for (key in D) D_is_set[key] = 1
  33656. FS = ""
  33657. }
  33658. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  33659. line = \$ 0
  33660. split(line, arg, " ")
  33661. if (arg[1] == "#") {
  33662. defundef = arg[2]
  33663. mac1 = arg[3]
  33664. } else {
  33665. defundef = substr(arg[1], 2)
  33666. mac1 = arg[2]
  33667. }
  33668. split(mac1, mac2, "(") #)
  33669. macro = mac2[1]
  33670. prefix = substr(line, 1, index(line, defundef) - 1)
  33671. if (D_is_set[macro]) {
  33672. # Preserve the white space surrounding the "#".
  33673. print prefix "define", macro P[macro] D[macro]
  33674. next
  33675. } else {
  33676. # Replace #undef with comments. This is necessary, for example,
  33677. # in the case of _POSIX_SOURCE, which is predefined and required
  33678. # on some systems where configure will not decide to define it.
  33679. if (defundef == "undef") {
  33680. print "/*", prefix defundef, macro, "*/"
  33681. next
  33682. }
  33683. }
  33684. }
  33685. { print }
  33686. _ACAWK
  33687. _ACEOF
  33688. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33689. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  33690. fi # test -n "$CONFIG_HEADERS"
  33691. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  33692. shift
  33693. for ac_tag
  33694. do
  33695. case $ac_tag in
  33696. :[FHLC]) ac_mode=$ac_tag; continue;;
  33697. esac
  33698. case $ac_mode$ac_tag in
  33699. :[FHL]*:*);;
  33700. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  33701. :[FH]-) ac_tag=-:-;;
  33702. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  33703. esac
  33704. ac_save_IFS=$IFS
  33705. IFS=:
  33706. set x $ac_tag
  33707. IFS=$ac_save_IFS
  33708. shift
  33709. ac_file=$1
  33710. shift
  33711. case $ac_mode in
  33712. :L) ac_source=$1;;
  33713. :[FH])
  33714. ac_file_inputs=
  33715. for ac_f
  33716. do
  33717. case $ac_f in
  33718. -) ac_f="$ac_tmp/stdin";;
  33719. *) # Look for the file first in the build tree, then in the source tree
  33720. # (if the path is not absolute). The absolute path cannot be DOS-style,
  33721. # because $ac_f cannot contain `:'.
  33722. test -f "$ac_f" ||
  33723. case $ac_f in
  33724. [\\/$]*) false;;
  33725. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  33726. esac ||
  33727. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  33728. esac
  33729. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  33730. as_fn_append ac_file_inputs " '$ac_f'"
  33731. done
  33732. # Let's still pretend it is `configure' which instantiates (i.e., don't
  33733. # use $as_me), people would be surprised to read:
  33734. # /* config.h. Generated by config.status. */
  33735. configure_input='Generated from '`
  33736. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  33737. `' by configure.'
  33738. if test x"$ac_file" != x-; then
  33739. configure_input="$ac_file. $configure_input"
  33740. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  33741. $as_echo "$as_me: creating $ac_file" >&6;}
  33742. fi
  33743. # Neutralize special characters interpreted by sed in replacement strings.
  33744. case $configure_input in #(
  33745. *\&* | *\|* | *\\* )
  33746. ac_sed_conf_input=`$as_echo "$configure_input" |
  33747. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  33748. *) ac_sed_conf_input=$configure_input;;
  33749. esac
  33750. case $ac_tag in
  33751. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  33752. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  33753. esac
  33754. ;;
  33755. esac
  33756. ac_dir=`$as_dirname -- "$ac_file" ||
  33757. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33758. X"$ac_file" : 'X\(//\)[^/]' \| \
  33759. X"$ac_file" : 'X\(//\)$' \| \
  33760. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  33761. $as_echo X"$ac_file" |
  33762. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33763. s//\1/
  33764. q
  33765. }
  33766. /^X\(\/\/\)[^/].*/{
  33767. s//\1/
  33768. q
  33769. }
  33770. /^X\(\/\/\)$/{
  33771. s//\1/
  33772. q
  33773. }
  33774. /^X\(\/\).*/{
  33775. s//\1/
  33776. q
  33777. }
  33778. s/.*/./; q'`
  33779. as_dir="$ac_dir"; as_fn_mkdir_p
  33780. ac_builddir=.
  33781. case "$ac_dir" in
  33782. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33783. *)
  33784. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  33785. # A ".." for each directory in $ac_dir_suffix.
  33786. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  33787. case $ac_top_builddir_sub in
  33788. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  33789. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  33790. esac ;;
  33791. esac
  33792. ac_abs_top_builddir=$ac_pwd
  33793. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  33794. # for backward compatibility:
  33795. ac_top_builddir=$ac_top_build_prefix
  33796. case $srcdir in
  33797. .) # We are building in place.
  33798. ac_srcdir=.
  33799. ac_top_srcdir=$ac_top_builddir_sub
  33800. ac_abs_top_srcdir=$ac_pwd ;;
  33801. [\\/]* | ?:[\\/]* ) # Absolute name.
  33802. ac_srcdir=$srcdir$ac_dir_suffix;
  33803. ac_top_srcdir=$srcdir
  33804. ac_abs_top_srcdir=$srcdir ;;
  33805. *) # Relative name.
  33806. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  33807. ac_top_srcdir=$ac_top_build_prefix$srcdir
  33808. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  33809. esac
  33810. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  33811. case $ac_mode in
  33812. :F)
  33813. #
  33814. # CONFIG_FILE
  33815. #
  33816. case $INSTALL in
  33817. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  33818. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  33819. esac
  33820. ac_MKDIR_P=$MKDIR_P
  33821. case $MKDIR_P in
  33822. [\\/$]* | ?:[\\/]* ) ;;
  33823. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  33824. esac
  33825. _ACEOF
  33826. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33827. # If the template does not know about datarootdir, expand it.
  33828. # FIXME: This hack should be removed a few years after 2.60.
  33829. ac_datarootdir_hack=; ac_datarootdir_seen=
  33830. ac_sed_dataroot='
  33831. /datarootdir/ {
  33832. p
  33833. q
  33834. }
  33835. /@datadir@/p
  33836. /@docdir@/p
  33837. /@infodir@/p
  33838. /@localedir@/p
  33839. /@mandir@/p'
  33840. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  33841. *datarootdir*) ac_datarootdir_seen=yes;;
  33842. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  33843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  33844. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  33845. _ACEOF
  33846. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33847. ac_datarootdir_hack='
  33848. s&@datadir@&$datadir&g
  33849. s&@docdir@&$docdir&g
  33850. s&@infodir@&$infodir&g
  33851. s&@localedir@&$localedir&g
  33852. s&@mandir@&$mandir&g
  33853. s&\\\${datarootdir}&$datarootdir&g' ;;
  33854. esac
  33855. _ACEOF
  33856. # Neutralize VPATH when `$srcdir' = `.'.
  33857. # Shell code in configure.ac might set extrasub.
  33858. # FIXME: do we really want to maintain this feature?
  33859. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  33860. ac_sed_extra="$ac_vpsub
  33861. $extrasub
  33862. _ACEOF
  33863. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  33864. :t
  33865. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  33866. s|@configure_input@|$ac_sed_conf_input|;t t
  33867. s&@top_builddir@&$ac_top_builddir_sub&;t t
  33868. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  33869. s&@srcdir@&$ac_srcdir&;t t
  33870. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  33871. s&@top_srcdir@&$ac_top_srcdir&;t t
  33872. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  33873. s&@builddir@&$ac_builddir&;t t
  33874. s&@abs_builddir@&$ac_abs_builddir&;t t
  33875. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  33876. s&@INSTALL@&$ac_INSTALL&;t t
  33877. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  33878. $ac_datarootdir_hack
  33879. "
  33880. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  33881. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33882. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  33883. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  33884. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  33885. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  33886. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33887. which seems to be undefined. Please make sure it is defined" >&5
  33888. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  33889. which seems to be undefined. Please make sure it is defined" >&2;}
  33890. rm -f "$ac_tmp/stdin"
  33891. case $ac_file in
  33892. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  33893. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  33894. esac \
  33895. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33896. ;;
  33897. :H)
  33898. #
  33899. # CONFIG_HEADER
  33900. #
  33901. if test x"$ac_file" != x-; then
  33902. {
  33903. $as_echo "/* $configure_input */" \
  33904. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  33905. } >"$ac_tmp/config.h" \
  33906. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33907. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  33908. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  33909. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  33910. else
  33911. rm -f "$ac_file"
  33912. mv "$ac_tmp/config.h" "$ac_file" \
  33913. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  33914. fi
  33915. else
  33916. $as_echo "/* $configure_input */" \
  33917. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  33918. || as_fn_error $? "could not create -" "$LINENO" 5
  33919. fi
  33920. # Compute "$ac_file"'s index in $config_headers.
  33921. _am_arg="$ac_file"
  33922. _am_stamp_count=1
  33923. for _am_header in $config_headers :; do
  33924. case $_am_header in
  33925. $_am_arg | $_am_arg:* )
  33926. break ;;
  33927. * )
  33928. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  33929. esac
  33930. done
  33931. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  33932. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33933. X"$_am_arg" : 'X\(//\)[^/]' \| \
  33934. X"$_am_arg" : 'X\(//\)$' \| \
  33935. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  33936. $as_echo X"$_am_arg" |
  33937. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33938. s//\1/
  33939. q
  33940. }
  33941. /^X\(\/\/\)[^/].*/{
  33942. s//\1/
  33943. q
  33944. }
  33945. /^X\(\/\/\)$/{
  33946. s//\1/
  33947. q
  33948. }
  33949. /^X\(\/\).*/{
  33950. s//\1/
  33951. q
  33952. }
  33953. s/.*/./; q'`/stamp-h$_am_stamp_count
  33954. ;;
  33955. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  33956. $as_echo "$as_me: executing $ac_file commands" >&6;}
  33957. ;;
  33958. esac
  33959. case $ac_file$ac_mode in
  33960. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  33961. # Older Autoconf quotes --file arguments for eval, but not when files
  33962. # are listed without --file. Let's play safe and only enable the eval
  33963. # if we detect the quoting.
  33964. case $CONFIG_FILES in
  33965. *\'*) eval set x "$CONFIG_FILES" ;;
  33966. *) set x $CONFIG_FILES ;;
  33967. esac
  33968. shift
  33969. for mf
  33970. do
  33971. # Strip MF so we end up with the name of the file.
  33972. mf=`echo "$mf" | sed -e 's/:.*$//'`
  33973. # Check whether this is an Automake generated Makefile or not.
  33974. # We used to match only the files named 'Makefile.in', but
  33975. # some people rename them; so instead we look at the file content.
  33976. # Grep'ing the first line is not enough: some people post-process
  33977. # each Makefile.in and add a new line on top of each file to say so.
  33978. # Grep'ing the whole file is not good either: AIX grep has a line
  33979. # limit of 2048, but all sed's we know have understand at least 4000.
  33980. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  33981. dirpart=`$as_dirname -- "$mf" ||
  33982. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  33983. X"$mf" : 'X\(//\)[^/]' \| \
  33984. X"$mf" : 'X\(//\)$' \| \
  33985. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  33986. $as_echo X"$mf" |
  33987. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  33988. s//\1/
  33989. q
  33990. }
  33991. /^X\(\/\/\)[^/].*/{
  33992. s//\1/
  33993. q
  33994. }
  33995. /^X\(\/\/\)$/{
  33996. s//\1/
  33997. q
  33998. }
  33999. /^X\(\/\).*/{
  34000. s//\1/
  34001. q
  34002. }
  34003. s/.*/./; q'`
  34004. else
  34005. continue
  34006. fi
  34007. # Extract the definition of DEPDIR, am__include, and am__quote
  34008. # from the Makefile without running 'make'.
  34009. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  34010. test -z "$DEPDIR" && continue
  34011. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  34012. test -z "$am__include" && continue
  34013. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  34014. # Find all dependency output files, they are included files with
  34015. # $(DEPDIR) in their names. We invoke sed twice because it is the
  34016. # simplest approach to changing $(DEPDIR) to its actual value in the
  34017. # expansion.
  34018. for file in `sed -n "
  34019. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  34020. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  34021. # Make sure the directory exists.
  34022. test -f "$dirpart/$file" && continue
  34023. fdir=`$as_dirname -- "$file" ||
  34024. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  34025. X"$file" : 'X\(//\)[^/]' \| \
  34026. X"$file" : 'X\(//\)$' \| \
  34027. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  34028. $as_echo X"$file" |
  34029. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  34030. s//\1/
  34031. q
  34032. }
  34033. /^X\(\/\/\)[^/].*/{
  34034. s//\1/
  34035. q
  34036. }
  34037. /^X\(\/\/\)$/{
  34038. s//\1/
  34039. q
  34040. }
  34041. /^X\(\/\).*/{
  34042. s//\1/
  34043. q
  34044. }
  34045. s/.*/./; q'`
  34046. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  34047. # echo "creating $dirpart/$file"
  34048. echo '# dummy' > "$dirpart/$file"
  34049. done
  34050. done
  34051. }
  34052. ;;
  34053. "libtool":C)
  34054. # See if we are running on zsh, and set the options which allow our
  34055. # commands through without removal of \ escapes.
  34056. if test -n "${ZSH_VERSION+set}" ; then
  34057. setopt NO_GLOB_SUBST
  34058. fi
  34059. cfgfile="${ofile}T"
  34060. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  34061. $RM "$cfgfile"
  34062. cat <<_LT_EOF >> "$cfgfile"
  34063. #! $SHELL
  34064. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  34065. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  34066. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34067. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  34068. #
  34069. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  34070. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  34071. # Foundation, Inc.
  34072. # Written by Gordon Matzigkeit, 1996
  34073. #
  34074. # This file is part of GNU Libtool.
  34075. #
  34076. # GNU Libtool is free software; you can redistribute it and/or
  34077. # modify it under the terms of the GNU General Public License as
  34078. # published by the Free Software Foundation; either version 2 of
  34079. # the License, or (at your option) any later version.
  34080. #
  34081. # As a special exception to the GNU General Public License,
  34082. # if you distribute this file as part of a program or library that
  34083. # is built using GNU Libtool, you may include this file under the
  34084. # same distribution terms that you use for the rest of that program.
  34085. #
  34086. # GNU Libtool is distributed in the hope that it will be useful,
  34087. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  34088. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  34089. # GNU General Public License for more details.
  34090. #
  34091. # You should have received a copy of the GNU General Public License
  34092. # along with GNU Libtool; see the file COPYING. If not, a copy
  34093. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  34094. # obtained by writing to the Free Software Foundation, Inc.,
  34095. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  34096. # The names of the tagged configurations supported by this script.
  34097. available_tags=""
  34098. # ### BEGIN LIBTOOL CONFIG
  34099. # Which release of libtool.m4 was used?
  34100. macro_version=$macro_version
  34101. macro_revision=$macro_revision
  34102. # Assembler program.
  34103. AS=$lt_AS
  34104. # DLL creation program.
  34105. DLLTOOL=$lt_DLLTOOL
  34106. # Object dumper program.
  34107. OBJDUMP=$lt_OBJDUMP
  34108. # Whether or not to build shared libraries.
  34109. build_libtool_libs=$enable_shared
  34110. # Whether or not to build static libraries.
  34111. build_old_libs=$enable_static
  34112. # What type of objects to build.
  34113. pic_mode=$pic_mode
  34114. # Whether or not to optimize for fast installation.
  34115. fast_install=$enable_fast_install
  34116. # Shell to use when invoking shell scripts.
  34117. SHELL=$lt_SHELL
  34118. # An echo program that protects backslashes.
  34119. ECHO=$lt_ECHO
  34120. # The PATH separator for the build system.
  34121. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  34122. # The host system.
  34123. host_alias=$host_alias
  34124. host=$host
  34125. host_os=$host_os
  34126. # The build system.
  34127. build_alias=$build_alias
  34128. build=$build
  34129. build_os=$build_os
  34130. # A sed program that does not truncate output.
  34131. SED=$lt_SED
  34132. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34133. Xsed="\$SED -e 1s/^X//"
  34134. # A grep program that handles long lines.
  34135. GREP=$lt_GREP
  34136. # An ERE matcher.
  34137. EGREP=$lt_EGREP
  34138. # A literal string matcher.
  34139. FGREP=$lt_FGREP
  34140. # A BSD- or MS-compatible name lister.
  34141. NM=$lt_NM
  34142. # Whether we need soft or hard links.
  34143. LN_S=$lt_LN_S
  34144. # What is the maximum length of a command?
  34145. max_cmd_len=$max_cmd_len
  34146. # Object file suffix (normally "o").
  34147. objext=$ac_objext
  34148. # Executable file suffix (normally "").
  34149. exeext=$exeext
  34150. # whether the shell understands "unset".
  34151. lt_unset=$lt_unset
  34152. # turn spaces into newlines.
  34153. SP2NL=$lt_lt_SP2NL
  34154. # turn newlines into spaces.
  34155. NL2SP=$lt_lt_NL2SP
  34156. # convert \$build file names to \$host format.
  34157. to_host_file_cmd=$lt_cv_to_host_file_cmd
  34158. # convert \$build files to toolchain format.
  34159. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  34160. # Method to check whether dependent libraries are shared objects.
  34161. deplibs_check_method=$lt_deplibs_check_method
  34162. # Command to use when deplibs_check_method = "file_magic".
  34163. file_magic_cmd=$lt_file_magic_cmd
  34164. # How to find potential files when deplibs_check_method = "file_magic".
  34165. file_magic_glob=$lt_file_magic_glob
  34166. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  34167. want_nocaseglob=$lt_want_nocaseglob
  34168. # Command to associate shared and link libraries.
  34169. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  34170. # The archiver.
  34171. AR=$lt_AR
  34172. # Flags to create an archive.
  34173. AR_FLAGS=$lt_AR_FLAGS
  34174. # How to feed a file listing to the archiver.
  34175. archiver_list_spec=$lt_archiver_list_spec
  34176. # A symbol stripping program.
  34177. STRIP=$lt_STRIP
  34178. # Commands used to install an old-style archive.
  34179. RANLIB=$lt_RANLIB
  34180. old_postinstall_cmds=$lt_old_postinstall_cmds
  34181. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34182. # Whether to use a lock for old archive extraction.
  34183. lock_old_archive_extraction=$lock_old_archive_extraction
  34184. # A C compiler.
  34185. LTCC=$lt_CC
  34186. # LTCC compiler flags.
  34187. LTCFLAGS=$lt_CFLAGS
  34188. # Take the output of nm and produce a listing of raw symbols and C names.
  34189. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  34190. # Transform the output of nm in a proper C declaration.
  34191. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  34192. # Transform the output of nm in a C name address pair.
  34193. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  34194. # Transform the output of nm in a C name address pair when lib prefix is needed.
  34195. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  34196. # Specify filename containing input files for \$NM.
  34197. nm_file_list_spec=$lt_nm_file_list_spec
  34198. # The root where to search for dependent libraries,and in which our libraries should be installed.
  34199. lt_sysroot=$lt_sysroot
  34200. # The name of the directory that contains temporary libtool files.
  34201. objdir=$objdir
  34202. # Used to examine libraries when file_magic_cmd begins with "file".
  34203. MAGIC_CMD=$MAGIC_CMD
  34204. # Must we lock files when doing compilation?
  34205. need_locks=$lt_need_locks
  34206. # Manifest tool.
  34207. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  34208. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  34209. DSYMUTIL=$lt_DSYMUTIL
  34210. # Tool to change global to local symbols on Mac OS X.
  34211. NMEDIT=$lt_NMEDIT
  34212. # Tool to manipulate fat objects and archives on Mac OS X.
  34213. LIPO=$lt_LIPO
  34214. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  34215. OTOOL=$lt_OTOOL
  34216. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  34217. OTOOL64=$lt_OTOOL64
  34218. # Old archive suffix (normally "a").
  34219. libext=$libext
  34220. # Shared library suffix (normally ".so").
  34221. shrext_cmds=$lt_shrext_cmds
  34222. # The commands to extract the exported symbol list from a shared archive.
  34223. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  34224. # Variables whose values should be saved in libtool wrapper scripts and
  34225. # restored at link time.
  34226. variables_saved_for_relink=$lt_variables_saved_for_relink
  34227. # Do we need the "lib" prefix for modules?
  34228. need_lib_prefix=$need_lib_prefix
  34229. # Do we need a version for libraries?
  34230. need_version=$need_version
  34231. # Library versioning type.
  34232. version_type=$version_type
  34233. # Shared library runtime path variable.
  34234. runpath_var=$runpath_var
  34235. # Shared library path variable.
  34236. shlibpath_var=$shlibpath_var
  34237. # Is shlibpath searched before the hard-coded library search path?
  34238. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  34239. # Format of library name prefix.
  34240. libname_spec=$lt_libname_spec
  34241. # List of archive names. First name is the real one, the rest are links.
  34242. # The last name is the one that the linker finds with -lNAME
  34243. library_names_spec=$lt_library_names_spec
  34244. # The coded name of the library, if different from the real name.
  34245. soname_spec=$lt_soname_spec
  34246. # Permission mode override for installation of shared libraries.
  34247. install_override_mode=$lt_install_override_mode
  34248. # Command to use after installation of a shared archive.
  34249. postinstall_cmds=$lt_postinstall_cmds
  34250. # Command to use after uninstallation of a shared archive.
  34251. postuninstall_cmds=$lt_postuninstall_cmds
  34252. # Commands used to finish a libtool library installation in a directory.
  34253. finish_cmds=$lt_finish_cmds
  34254. # As "finish_cmds", except a single script fragment to be evaled but
  34255. # not shown.
  34256. finish_eval=$lt_finish_eval
  34257. # Whether we should hardcode library paths into libraries.
  34258. hardcode_into_libs=$hardcode_into_libs
  34259. # Compile-time system search path for libraries.
  34260. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  34261. # Run-time system search path for libraries.
  34262. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  34263. # Whether dlopen is supported.
  34264. dlopen_support=$enable_dlopen
  34265. # Whether dlopen of programs is supported.
  34266. dlopen_self=$enable_dlopen_self
  34267. # Whether dlopen of statically linked programs is supported.
  34268. dlopen_self_static=$enable_dlopen_self_static
  34269. # Commands to strip libraries.
  34270. old_striplib=$lt_old_striplib
  34271. striplib=$lt_striplib
  34272. # The linker used to build libraries.
  34273. LD=$lt_LD
  34274. # How to create reloadable object files.
  34275. reload_flag=$lt_reload_flag
  34276. reload_cmds=$lt_reload_cmds
  34277. # Commands used to build an old-style archive.
  34278. old_archive_cmds=$lt_old_archive_cmds
  34279. # A language specific compiler.
  34280. CC=$lt_compiler
  34281. # Is the compiler the GNU compiler?
  34282. with_gcc=$GCC
  34283. # Compiler flag to turn off builtin functions.
  34284. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  34285. # Additional compiler flags for building library objects.
  34286. pic_flag=$lt_lt_prog_compiler_pic
  34287. # How to pass a linker flag through the compiler.
  34288. wl=$lt_lt_prog_compiler_wl
  34289. # Compiler flag to prevent dynamic linking.
  34290. link_static_flag=$lt_lt_prog_compiler_static
  34291. # Does compiler simultaneously support -c and -o options?
  34292. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  34293. # Whether or not to add -lc for building shared libraries.
  34294. build_libtool_need_lc=$archive_cmds_need_lc
  34295. # Whether or not to disallow shared libs when runtime libs are static.
  34296. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  34297. # Compiler flag to allow reflexive dlopens.
  34298. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  34299. # Compiler flag to generate shared objects directly from archives.
  34300. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  34301. # Whether the compiler copes with passing no objects directly.
  34302. compiler_needs_object=$lt_compiler_needs_object
  34303. # Create an old-style archive from a shared archive.
  34304. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  34305. # Create a temporary old-style archive to link instead of a shared archive.
  34306. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  34307. # Commands used to build a shared archive.
  34308. archive_cmds=$lt_archive_cmds
  34309. archive_expsym_cmds=$lt_archive_expsym_cmds
  34310. # Commands used to build a loadable module if different from building
  34311. # a shared archive.
  34312. module_cmds=$lt_module_cmds
  34313. module_expsym_cmds=$lt_module_expsym_cmds
  34314. # Whether we are building with GNU ld or not.
  34315. with_gnu_ld=$lt_with_gnu_ld
  34316. # Flag that allows shared libraries with undefined symbols to be built.
  34317. allow_undefined_flag=$lt_allow_undefined_flag
  34318. # Flag that enforces no undefined symbols.
  34319. no_undefined_flag=$lt_no_undefined_flag
  34320. # Flag to hardcode \$libdir into a binary during linking.
  34321. # This must work even if \$libdir does not exist
  34322. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  34323. # Whether we need a single "-rpath" flag with a separated argument.
  34324. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  34325. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  34326. # DIR into the resulting binary.
  34327. hardcode_direct=$hardcode_direct
  34328. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  34329. # DIR into the resulting binary and the resulting library dependency is
  34330. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  34331. # library is relocated.
  34332. hardcode_direct_absolute=$hardcode_direct_absolute
  34333. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  34334. # into the resulting binary.
  34335. hardcode_minus_L=$hardcode_minus_L
  34336. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  34337. # into the resulting binary.
  34338. hardcode_shlibpath_var=$hardcode_shlibpath_var
  34339. # Set to "yes" if building a shared library automatically hardcodes DIR
  34340. # into the library and all subsequent libraries and executables linked
  34341. # against it.
  34342. hardcode_automatic=$hardcode_automatic
  34343. # Set to yes if linker adds runtime paths of dependent libraries
  34344. # to runtime path list.
  34345. inherit_rpath=$inherit_rpath
  34346. # Whether libtool must link a program against all its dependency libraries.
  34347. link_all_deplibs=$link_all_deplibs
  34348. # Set to "yes" if exported symbols are required.
  34349. always_export_symbols=$always_export_symbols
  34350. # The commands to list exported symbols.
  34351. export_symbols_cmds=$lt_export_symbols_cmds
  34352. # Symbols that should not be listed in the preloaded symbols.
  34353. exclude_expsyms=$lt_exclude_expsyms
  34354. # Symbols that must always be exported.
  34355. include_expsyms=$lt_include_expsyms
  34356. # Commands necessary for linking programs (against libraries) with templates.
  34357. prelink_cmds=$lt_prelink_cmds
  34358. # Commands necessary for finishing linking programs.
  34359. postlink_cmds=$lt_postlink_cmds
  34360. # Specify filename containing input files.
  34361. file_list_spec=$lt_file_list_spec
  34362. # How to hardcode a shared library path into an executable.
  34363. hardcode_action=$hardcode_action
  34364. # ### END LIBTOOL CONFIG
  34365. _LT_EOF
  34366. case $host_os in
  34367. aix3*)
  34368. cat <<\_LT_EOF >> "$cfgfile"
  34369. # AIX sometimes has problems with the GCC collect2 program. For some
  34370. # reason, if we set the COLLECT_NAMES environment variable, the problems
  34371. # vanish in a puff of smoke.
  34372. if test "X${COLLECT_NAMES+set}" != Xset; then
  34373. COLLECT_NAMES=
  34374. export COLLECT_NAMES
  34375. fi
  34376. _LT_EOF
  34377. ;;
  34378. esac
  34379. ltmain="$ac_aux_dir/ltmain.sh"
  34380. # We use sed instead of cat because bash on DJGPP gets confused if
  34381. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  34382. # text mode, it properly converts lines to CR/LF. This bash problem
  34383. # is reportedly fixed, but why not run on old versions too?
  34384. sed '$q' "$ltmain" >> "$cfgfile" \
  34385. || (rm -f "$cfgfile"; exit 1)
  34386. if test x"$xsi_shell" = xyes; then
  34387. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  34388. func_dirname ()\
  34389. {\
  34390. \ case ${1} in\
  34391. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  34392. \ * ) func_dirname_result="${3}" ;;\
  34393. \ esac\
  34394. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  34395. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34396. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34397. test 0 -eq $? || _lt_function_replace_fail=:
  34398. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  34399. func_basename ()\
  34400. {\
  34401. \ func_basename_result="${1##*/}"\
  34402. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  34403. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34404. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34405. test 0 -eq $? || _lt_function_replace_fail=:
  34406. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  34407. func_dirname_and_basename ()\
  34408. {\
  34409. \ case ${1} in\
  34410. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  34411. \ * ) func_dirname_result="${3}" ;;\
  34412. \ esac\
  34413. \ func_basename_result="${1##*/}"\
  34414. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  34415. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34416. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34417. test 0 -eq $? || _lt_function_replace_fail=:
  34418. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  34419. func_stripname ()\
  34420. {\
  34421. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  34422. \ # positional parameters, so assign one to ordinary parameter first.\
  34423. \ func_stripname_result=${3}\
  34424. \ func_stripname_result=${func_stripname_result#"${1}"}\
  34425. \ func_stripname_result=${func_stripname_result%"${2}"}\
  34426. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  34427. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34428. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34429. test 0 -eq $? || _lt_function_replace_fail=:
  34430. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  34431. func_split_long_opt ()\
  34432. {\
  34433. \ func_split_long_opt_name=${1%%=*}\
  34434. \ func_split_long_opt_arg=${1#*=}\
  34435. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  34436. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34437. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34438. test 0 -eq $? || _lt_function_replace_fail=:
  34439. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  34440. func_split_short_opt ()\
  34441. {\
  34442. \ func_split_short_opt_arg=${1#??}\
  34443. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  34444. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  34445. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34446. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34447. test 0 -eq $? || _lt_function_replace_fail=:
  34448. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  34449. func_lo2o ()\
  34450. {\
  34451. \ case ${1} in\
  34452. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  34453. \ *) func_lo2o_result=${1} ;;\
  34454. \ esac\
  34455. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  34456. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34457. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34458. test 0 -eq $? || _lt_function_replace_fail=:
  34459. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  34460. func_xform ()\
  34461. {\
  34462. func_xform_result=${1%.*}.lo\
  34463. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  34464. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34465. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34466. test 0 -eq $? || _lt_function_replace_fail=:
  34467. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  34468. func_arith ()\
  34469. {\
  34470. func_arith_result=$(( $* ))\
  34471. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  34472. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34473. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34474. test 0 -eq $? || _lt_function_replace_fail=:
  34475. sed -e '/^func_len ()$/,/^} # func_len /c\
  34476. func_len ()\
  34477. {\
  34478. func_len_result=${#1}\
  34479. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  34480. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34481. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34482. test 0 -eq $? || _lt_function_replace_fail=:
  34483. fi
  34484. if test x"$lt_shell_append" = xyes; then
  34485. sed -e '/^func_append ()$/,/^} # func_append /c\
  34486. func_append ()\
  34487. {\
  34488. eval "${1}+=\\${2}"\
  34489. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  34490. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34491. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34492. test 0 -eq $? || _lt_function_replace_fail=:
  34493. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  34494. func_append_quoted ()\
  34495. {\
  34496. \ func_quote_for_eval "${2}"\
  34497. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  34498. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  34499. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34500. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34501. test 0 -eq $? || _lt_function_replace_fail=:
  34502. # Save a `func_append' function call where possible by direct use of '+='
  34503. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  34504. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34505. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34506. test 0 -eq $? || _lt_function_replace_fail=:
  34507. else
  34508. # Save a `func_append' function call even when '+=' is not available
  34509. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  34510. && mv -f "$cfgfile.tmp" "$cfgfile" \
  34511. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  34512. test 0 -eq $? || _lt_function_replace_fail=:
  34513. fi
  34514. if test x"$_lt_function_replace_fail" = x":"; then
  34515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  34516. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  34517. fi
  34518. mv -f "$cfgfile" "$ofile" ||
  34519. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  34520. chmod +x "$ofile"
  34521. ;;
  34522. esac
  34523. done # for ac_tag
  34524. as_fn_exit 0
  34525. _ACEOF
  34526. ac_clean_files=$ac_clean_files_save
  34527. test $ac_write_fail = 0 ||
  34528. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  34529. # configure is writing to config.log, and then calls config.status.
  34530. # config.status does its own redirection, appending to config.log.
  34531. # Unfortunately, on DOS this fails, as config.log is still kept open
  34532. # by configure, so config.status won't be able to write to it; its
  34533. # output is simply discarded. So we exec the FD to /dev/null,
  34534. # effectively closing config.log, so it can be properly (re)opened and
  34535. # appended to by config.status. When coming back to configure, we
  34536. # need to make the FD available again.
  34537. if test "$no_create" != yes; then
  34538. ac_cs_success=:
  34539. ac_config_status_args=
  34540. test "$silent" = yes &&
  34541. ac_config_status_args="$ac_config_status_args --quiet"
  34542. exec 5>/dev/null
  34543. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  34544. exec 5>>config.log
  34545. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  34546. # would make configure fail if this is the last instruction.
  34547. $ac_cs_success || as_fn_exit 1
  34548. fi
  34549. #
  34550. # CONFIG_SUBDIRS section.
  34551. #
  34552. if test "$no_recursion" != yes; then
  34553. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  34554. # so they do not pile up.
  34555. ac_sub_configure_args=
  34556. ac_prev=
  34557. eval "set x $ac_configure_args"
  34558. shift
  34559. for ac_arg
  34560. do
  34561. if test -n "$ac_prev"; then
  34562. ac_prev=
  34563. continue
  34564. fi
  34565. case $ac_arg in
  34566. -cache-file | --cache-file | --cache-fil | --cache-fi \
  34567. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  34568. ac_prev=cache_file ;;
  34569. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  34570. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  34571. | --c=*)
  34572. ;;
  34573. --config-cache | -C)
  34574. ;;
  34575. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  34576. ac_prev=srcdir ;;
  34577. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  34578. ;;
  34579. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  34580. ac_prev=prefix ;;
  34581. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  34582. ;;
  34583. --disable-option-checking)
  34584. ;;
  34585. *)
  34586. case $ac_arg in
  34587. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34588. esac
  34589. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  34590. esac
  34591. done
  34592. # Always prepend --prefix to ensure using the same prefix
  34593. # in subdir configurations.
  34594. ac_arg="--prefix=$prefix"
  34595. case $ac_arg in
  34596. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  34597. esac
  34598. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  34599. # Pass --silent
  34600. if test "$silent" = yes; then
  34601. ac_sub_configure_args="--silent $ac_sub_configure_args"
  34602. fi
  34603. # Always prepend --disable-option-checking to silence warnings, since
  34604. # different subdirs can have different --enable and --with options.
  34605. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  34606. ac_popdir=`pwd`
  34607. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  34608. # Do not complain, so a configure script can configure whichever
  34609. # parts of a large source tree are present.
  34610. test -d "$srcdir/$ac_dir" || continue
  34611. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  34612. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  34613. $as_echo "$ac_msg" >&6
  34614. as_dir="$ac_dir"; as_fn_mkdir_p
  34615. ac_builddir=.
  34616. case "$ac_dir" in
  34617. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34618. *)
  34619. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  34620. # A ".." for each directory in $ac_dir_suffix.
  34621. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  34622. case $ac_top_builddir_sub in
  34623. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  34624. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  34625. esac ;;
  34626. esac
  34627. ac_abs_top_builddir=$ac_pwd
  34628. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  34629. # for backward compatibility:
  34630. ac_top_builddir=$ac_top_build_prefix
  34631. case $srcdir in
  34632. .) # We are building in place.
  34633. ac_srcdir=.
  34634. ac_top_srcdir=$ac_top_builddir_sub
  34635. ac_abs_top_srcdir=$ac_pwd ;;
  34636. [\\/]* | ?:[\\/]* ) # Absolute name.
  34637. ac_srcdir=$srcdir$ac_dir_suffix;
  34638. ac_top_srcdir=$srcdir
  34639. ac_abs_top_srcdir=$srcdir ;;
  34640. *) # Relative name.
  34641. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  34642. ac_top_srcdir=$ac_top_build_prefix$srcdir
  34643. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  34644. esac
  34645. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  34646. cd "$ac_dir"
  34647. # Check for guested configure; otherwise get Cygnus style configure.
  34648. if test -f "$ac_srcdir/configure.gnu"; then
  34649. ac_sub_configure=$ac_srcdir/configure.gnu
  34650. elif test -f "$ac_srcdir/configure"; then
  34651. ac_sub_configure=$ac_srcdir/configure
  34652. elif test -f "$ac_srcdir/configure.in"; then
  34653. # This should be Cygnus configure.
  34654. ac_sub_configure=$ac_aux_dir/configure
  34655. else
  34656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  34657. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  34658. ac_sub_configure=
  34659. fi
  34660. # The recursion is here.
  34661. if test -n "$ac_sub_configure"; then
  34662. # Make the cache file name correct relative to the subdirectory.
  34663. case $cache_file in
  34664. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  34665. *) # Relative name.
  34666. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  34667. esac
  34668. { $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
  34669. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  34670. # The eval makes quoting arguments work.
  34671. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  34672. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  34673. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  34674. fi
  34675. cd "$ac_popdir"
  34676. done
  34677. fi
  34678. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  34679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  34680. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  34681. fi
  34682. tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
  34683. if test -z "$tmp_cpp"; then
  34684. tmp_cpp='cpp'
  34685. fi
  34686. cat >./tests/configurehelp.pm <<_EOF
  34687. # This is a generated file. Do not edit.
  34688. package configurehelp;
  34689. use strict;
  34690. use warnings;
  34691. use Exporter;
  34692. use vars qw(
  34693. @ISA
  34694. @EXPORT_OK
  34695. \$Cpreprocessor
  34696. );
  34697. @ISA = qw(Exporter);
  34698. @EXPORT_OK = qw(
  34699. \$Cpreprocessor
  34700. );
  34701. \$Cpreprocessor = '$tmp_cpp';
  34702. 1;
  34703. _EOF
  34704. ## ---------------------------------- ##
  34705. ## Start of distclean amending code ##
  34706. ## ---------------------------------- ##
  34707. for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
  34708. do
  34709. if test ! -f "$xc_subdir/Makefile"; then
  34710. echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
  34711. exit 1
  34712. fi
  34713. # Fetch dependency tracking file list from Makefile include lines.
  34714. xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
  34715. xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
  34716. # --disable-dependency-tracking might have been used, consequently
  34717. # there is nothing to amend without a dependency tracking file list.
  34718. if test $xc_cnt_words -gt 0; then
  34719. { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
  34720. $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
  34721. # Build Makefile specific patch hunk.
  34722. xc_p="$xc_subdir/xc_patch.tmp"
  34723. xc_rm_depfiles=`echo "$xc_inc_lines" \
  34724. | $SED 's%include% -rm -f%' 2>/dev/null`
  34725. xc_dep_subdirs=`echo "$xc_inc_lines" \
  34726. | $SED 's%include[ ][ ]*%%' 2>/dev/null \
  34727. | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
  34728. | sort | uniq`
  34729. echo "$xc_rm_depfiles" >$xc_p
  34730. for xc_dep_dir in $xc_dep_subdirs; do
  34731. echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
  34732. echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
  34733. echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
  34734. echo "${xc_tab}fi" >>$xc_p
  34735. done
  34736. # Build Makefile patching sed scripts.
  34737. xc_s1="$xc_subdir/xc_script_1.tmp"
  34738. xc_s2="$xc_subdir/xc_script_2.tmp"
  34739. xc_s3="$xc_subdir/xc_script_3.tmp"
  34740. cat >$xc_s1 <<\_EOT
  34741. /^distclean[ ]*:/,/^[^ ][^ ]*:/{
  34742. s/^.*(DEPDIR)/___xc_depdir_line___/
  34743. }
  34744. /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
  34745. s/^.*(DEPDIR)/___xc_depdir_line___/
  34746. }
  34747. _EOT
  34748. cat >$xc_s2 <<\_EOT
  34749. /___xc_depdir_line___$/{
  34750. N
  34751. /___xc_depdir_line___$/D
  34752. }
  34753. _EOT
  34754. cat >$xc_s3 <<_EOT
  34755. /^___xc_depdir_line___/{
  34756. r $xc_p
  34757. d
  34758. }
  34759. _EOT
  34760. # Apply patch to Makefile and cleanup.
  34761. $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
  34762. $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
  34763. $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
  34764. if test -f "$xc_subdir/Makefile.tmp3"; then
  34765. mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
  34766. fi
  34767. test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
  34768. test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
  34769. test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
  34770. test -f "$xc_p" && rm -f "$xc_p"
  34771. test -f "$xc_s1" && rm -f "$xc_s1"
  34772. test -f "$xc_s2" && rm -f "$xc_s2"
  34773. test -f "$xc_s3" && rm -f "$xc_s3"
  34774. fi
  34775. done
  34776. ## -------------------------------- ##
  34777. ## End of distclean amending code ##
  34778. ## -------------------------------- ##
  34779. { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
  34780. curl version: ${CURLVERSION}
  34781. Host setup: ${host}
  34782. Install prefix: ${prefix}
  34783. Compiler: ${CC}
  34784. SSL support: ${curl_ssl_msg}
  34785. SSH support: ${curl_ssh_msg}
  34786. zlib support: ${curl_zlib_msg}
  34787. GSS-API support: ${curl_gss_msg}
  34788. SPNEGO support: ${curl_spnego_msg}
  34789. TLS-SRP support: ${curl_tls_srp_msg}
  34790. resolver: ${curl_res_msg}
  34791. ipv6 support: ${curl_ipv6_msg}
  34792. IDN support: ${curl_idn_msg}
  34793. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  34794. Built-in manual: ${curl_manual_msg}
  34795. --libcurl option: ${curl_libcurl_msg}
  34796. Verbose errors: ${curl_verbose_msg}
  34797. SSPI support: ${curl_sspi_msg}
  34798. ca cert bundle: ${ca}
  34799. ca cert path: ${capath}
  34800. LDAP support: ${curl_ldap_msg}
  34801. LDAPS support: ${curl_ldaps_msg}
  34802. RTSP support: ${curl_rtsp_msg}
  34803. RTMP support: ${curl_rtmp_msg}
  34804. metalink support: ${curl_mtlnk_msg}
  34805. HTTP2 support: ${curl_h2_msg}
  34806. Protocols: ${SUPPORT_PROTOCOLS}
  34807. " >&5
  34808. $as_echo "$as_me: Configured to build curl/libcurl:
  34809. curl version: ${CURLVERSION}
  34810. Host setup: ${host}
  34811. Install prefix: ${prefix}
  34812. Compiler: ${CC}
  34813. SSL support: ${curl_ssl_msg}
  34814. SSH support: ${curl_ssh_msg}
  34815. zlib support: ${curl_zlib_msg}
  34816. GSS-API support: ${curl_gss_msg}
  34817. SPNEGO support: ${curl_spnego_msg}
  34818. TLS-SRP support: ${curl_tls_srp_msg}
  34819. resolver: ${curl_res_msg}
  34820. ipv6 support: ${curl_ipv6_msg}
  34821. IDN support: ${curl_idn_msg}
  34822. Build libcurl: Shared=${enable_shared}, Static=${enable_static}
  34823. Built-in manual: ${curl_manual_msg}
  34824. --libcurl option: ${curl_libcurl_msg}
  34825. Verbose errors: ${curl_verbose_msg}
  34826. SSPI support: ${curl_sspi_msg}
  34827. ca cert bundle: ${ca}
  34828. ca cert path: ${capath}
  34829. LDAP support: ${curl_ldap_msg}
  34830. LDAPS support: ${curl_ldaps_msg}
  34831. RTSP support: ${curl_rtsp_msg}
  34832. RTMP support: ${curl_rtmp_msg}
  34833. metalink support: ${curl_mtlnk_msg}
  34834. HTTP2 support: ${curl_h2_msg}
  34835. Protocols: ${SUPPORT_PROTOCOLS}
  34836. " >&6;}
  34837. if test "x$soname_bump" = "xyes"; then
  34838. cat <<EOM
  34839. SONAME bump: yes - WARNING: this library will be built with the SONAME
  34840. number bumped due to (a detected) ABI breakage.
  34841. See lib/README.curl_off_t for details on this.
  34842. EOM
  34843. fi