configure 481 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for aria2 1.9.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  216. $0: t-tujikawa@users.sourceforge.net about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. test -n "$DJDIR" || exec 7<&0 </dev/null
  489. exec 6>&1
  490. # Name of the host.
  491. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  492. # so uname gets run too.
  493. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  494. #
  495. # Initializations.
  496. #
  497. ac_default_prefix=/usr/local
  498. ac_clean_files=
  499. ac_config_libobj_dir=.
  500. LIBOBJS=
  501. cross_compiling=no
  502. subdirs=
  503. MFLAGS=
  504. MAKEFLAGS=
  505. # Identity of this package.
  506. PACKAGE_NAME='aria2'
  507. PACKAGE_TARNAME='aria2'
  508. PACKAGE_VERSION='1.9.2'
  509. PACKAGE_STRING='aria2 1.9.2'
  510. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  511. PACKAGE_URL='http://aria2.sourceforge.net/'
  512. ac_unique_file="src/a2io.h"
  513. # Factoring default headers for most tests.
  514. ac_includes_default="\
  515. #include <stdio.h>
  516. #ifdef HAVE_SYS_TYPES_H
  517. # include <sys/types.h>
  518. #endif
  519. #ifdef HAVE_SYS_STAT_H
  520. # include <sys/stat.h>
  521. #endif
  522. #ifdef STDC_HEADERS
  523. # include <stdlib.h>
  524. # include <stddef.h>
  525. #else
  526. # ifdef HAVE_STDLIB_H
  527. # include <stdlib.h>
  528. # endif
  529. #endif
  530. #ifdef HAVE_STRING_H
  531. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  532. # include <memory.h>
  533. # endif
  534. # include <string.h>
  535. #endif
  536. #ifdef HAVE_STRINGS_H
  537. # include <strings.h>
  538. #endif
  539. #ifdef HAVE_INTTYPES_H
  540. # include <inttypes.h>
  541. #endif
  542. #ifdef HAVE_STDINT_H
  543. # include <stdint.h>
  544. #endif
  545. #ifdef HAVE_UNISTD_H
  546. # include <unistd.h>
  547. #endif"
  548. gt_needs=
  549. ac_header_list=
  550. ac_func_list=
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. HAVE_KQUEUE_FALSE
  555. HAVE_KQUEUE_TRUE
  556. HAVE_PORT_ASSOCIATE_FALSE
  557. HAVE_PORT_ASSOCIATE_TRUE
  558. HAVE_TIMEGETTIME_FALSE
  559. HAVE_TIMEGETTIME_TRUE
  560. HAVE_POLL_FALSE
  561. HAVE_POLL_TRUE
  562. HAVE_MACH_ABSOLUTE_TIME_FALSE
  563. HAVE_MACH_ABSOLUTE_TIME_TRUE
  564. HAVE_DAEMON_FALSE
  565. HAVE_DAEMON_TRUE
  566. HAVE_TIMEGM_FALSE
  567. HAVE_TIMEGM_TRUE
  568. HAVE_STRPTIME_FALSE
  569. HAVE_STRPTIME_TRUE
  570. HAVE_LOCALTIME_R_FALSE
  571. HAVE_LOCALTIME_R_TRUE
  572. HAVE_INET_ATON_FALSE
  573. HAVE_INET_ATON_TRUE
  574. HAVE_GETTIMEOFDAY_FALSE
  575. HAVE_GETTIMEOFDAY_TRUE
  576. HAVE_GETADDRINFO_FALSE
  577. HAVE_GETADDRINFO_TRUE
  578. HAVE_GAI_STRERROR_FALSE
  579. HAVE_GAI_STRERROR_TRUE
  580. HAVE_BASENAME_FALSE
  581. HAVE_BASENAME_TRUE
  582. HAVE_ASCTIME_R_FALSE
  583. HAVE_ASCTIME_R_TRUE
  584. HAVE_POSIX_FALLOCATE_FALSE
  585. HAVE_POSIX_FALLOCATE_TRUE
  586. HAVE_EPOLL_FALSE
  587. HAVE_EPOLL_TRUE
  588. POW_LIB
  589. LIBOBJS
  590. POSUB
  591. LTLIBINTL
  592. LIBINTL
  593. INTLLIBS
  594. INTL_LIBTOOL_SUFFIX_PREFIX
  595. INTLOBJS
  596. GENCAT
  597. INSTOBJEXT
  598. DATADIRNAME
  599. CATOBJEXT
  600. USE_INCLUDED_LIBINTL
  601. BUILD_INCLUDED_LIBINTL
  602. LTLIBC
  603. WINDRES
  604. WOE32
  605. WOE32DLL
  606. HAVE_WPRINTF
  607. HAVE_SNPRINTF
  608. HAVE_ASPRINTF
  609. HAVE_POSIX_PRINTF
  610. INTL_MACOSX_LIBS
  611. GLIBC21
  612. INTLBISON
  613. LTLIBICONV
  614. LIBICONV
  615. LTLIBMULTITHREAD
  616. LIBMULTITHREAD
  617. LTLIBTHREAD
  618. LIBTHREAD
  619. LIBPTH_PREFIX
  620. LTLIBPTH
  621. LIBPTH
  622. PRI_MACROS_BROKEN
  623. HAVE_VISIBILITY
  624. CFLAG_VISIBILITY
  625. GLIBC2
  626. XGETTEXT_EXTRA_OPTIONS
  627. MSGMERGE
  628. XGETTEXT_015
  629. XGETTEXT
  630. GMSGFMT_015
  631. MSGFMT_015
  632. GMSGFMT
  633. MSGFMT
  634. GETTEXT_MACRO_VERSION
  635. USE_NLS
  636. ALLOCA
  637. HAVE_SQLITE3_FALSE
  638. HAVE_SQLITE3_TRUE
  639. HAVE_LIBZ_FALSE
  640. HAVE_LIBZ_TRUE
  641. ENABLE_ASYNC_DNS_FALSE
  642. ENABLE_ASYNC_DNS_TRUE
  643. HAVE_LIBEXPAT_FALSE
  644. HAVE_LIBEXPAT_TRUE
  645. HAVE_LIBXML2_FALSE
  646. HAVE_LIBXML2_TRUE
  647. ENABLE_XML_RPC_FALSE
  648. ENABLE_XML_RPC_TRUE
  649. ENABLE_METALINK_LIBEXPAT_FALSE
  650. ENABLE_METALINK_LIBEXPAT_TRUE
  651. ENABLE_METALINK_LIBXML2_FALSE
  652. ENABLE_METALINK_LIBXML2_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_METALINK_TRUE
  655. ENABLE_BITTORRENT_FALSE
  656. ENABLE_BITTORRENT_TRUE
  657. ENABLE_MESSAGE_DIGEST_FALSE
  658. ENABLE_MESSAGE_DIGEST_TRUE
  659. HAVE_LIBSSL_FALSE
  660. HAVE_LIBSSL_TRUE
  661. HAVE_LIBGNUTLS_FALSE
  662. HAVE_LIBGNUTLS_TRUE
  663. ca_bundle
  664. ENABLE_SSL_FALSE
  665. ENABLE_SSL_TRUE
  666. LIBZ_CPPFLAGS
  667. LIBZ_LIBS
  668. LIBCARES_CPPFLAGS
  669. LIBCARES_LIBS
  670. OPENSSL_CFLAGS
  671. OPENSSL_LIBS
  672. LIBGCRYPT_LIBS
  673. LIBGCRYPT_CFLAGS
  674. LIBGCRYPT_CONFIG
  675. LIBGNUTLS_CONFIG
  676. LIBGNUTLS_LIBS
  677. LIBGNUTLS_CFLAGS
  678. SQLITE3_LIBS
  679. SQLITE3_CFLAGS
  680. LIBEXPAT_CPPFLAGS
  681. LIBEXPAT_LIBS
  682. XML_LIBS
  683. XML_CPPFLAGS
  684. XML2_CONFIG
  685. PKG_CONFIG
  686. EGREP
  687. GREP
  688. CXXCPP
  689. YFLAGS
  690. YACC
  691. RANLIB
  692. am__fastdepCC_FALSE
  693. am__fastdepCC_TRUE
  694. CCDEPMODE
  695. ac_ct_CC
  696. CFLAGS
  697. CC
  698. am__fastdepCXX_FALSE
  699. am__fastdepCXX_TRUE
  700. CXXDEPMODE
  701. AMDEPBACKSLASH
  702. AMDEP_FALSE
  703. AMDEP_TRUE
  704. am__quote
  705. am__include
  706. DEPDIR
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CXX
  710. CPPFLAGS
  711. LDFLAGS
  712. CXXFLAGS
  713. CXX
  714. WINSOCK_LIBS
  715. CPPUNIT_LIBS
  716. CPPUNIT_CFLAGS
  717. CPPUNIT_CONFIG
  718. am__untar
  719. am__tar
  720. AMTAR
  721. am__leading_dot
  722. SET_MAKE
  723. AWK
  724. mkdir_p
  725. MKDIR_P
  726. INSTALL_STRIP_PROGRAM
  727. STRIP
  728. install_sh
  729. MAKEINFO
  730. AUTOHEADER
  731. AUTOMAKE
  732. AUTOCONF
  733. ACLOCAL
  734. VERSION
  735. PACKAGE
  736. CYGPATH_W
  737. am__isrc
  738. INSTALL_DATA
  739. INSTALL_SCRIPT
  740. INSTALL_PROGRAM
  741. target_os
  742. target_vendor
  743. target_cpu
  744. target
  745. host_os
  746. host_vendor
  747. host_cpu
  748. host
  749. build_os
  750. build_vendor
  751. build_cpu
  752. build
  753. target_alias
  754. host_alias
  755. build_alias
  756. LIBS
  757. ECHO_T
  758. ECHO_N
  759. ECHO_C
  760. DEFS
  761. mandir
  762. localedir
  763. libdir
  764. psdir
  765. pdfdir
  766. dvidir
  767. htmldir
  768. infodir
  769. docdir
  770. oldincludedir
  771. includedir
  772. localstatedir
  773. sharedstatedir
  774. sysconfdir
  775. datadir
  776. datarootdir
  777. libexecdir
  778. sbindir
  779. bindir
  780. program_transform_name
  781. prefix
  782. exec_prefix
  783. PACKAGE_URL
  784. PACKAGE_BUGREPORT
  785. PACKAGE_STRING
  786. PACKAGE_VERSION
  787. PACKAGE_TARNAME
  788. PACKAGE_NAME
  789. PATH_SEPARATOR
  790. SHELL'
  791. ac_subst_files=''
  792. ac_user_opts='
  793. enable_option_checking
  794. with_cppunit_prefix
  795. with_cppunit_exec_prefix
  796. with_gnutls
  797. with_openssl
  798. with_sqlite3
  799. with_libxml2
  800. with_libexpat
  801. with_libcares
  802. with_libz
  803. enable_bittorrent
  804. enable_metalink
  805. enable_epoll
  806. with_ca_bundle
  807. enable_dependency_tracking
  808. with_xml_prefix
  809. with_xml_exec_prefix
  810. enable_xmltest
  811. with_libexpat_prefix
  812. with_sqlite3_prefix
  813. with_libgnutls_prefix
  814. with_libgcrypt_prefix
  815. with_openssl_prefix
  816. with_libcares_prefix
  817. with_libz_prefix
  818. enable_largefile
  819. enable_nls
  820. enable_threads
  821. with_gnu_ld
  822. enable_rpath
  823. with_libpth_prefix
  824. with_libiconv_prefix
  825. with_included_gettext
  826. with_libintl_prefix
  827. '
  828. ac_precious_vars='build_alias
  829. host_alias
  830. target_alias
  831. CXX
  832. CXXFLAGS
  833. LDFLAGS
  834. LIBS
  835. CPPFLAGS
  836. CCC
  837. CC
  838. CFLAGS
  839. YACC
  840. YFLAGS
  841. CXXCPP
  842. PKG_CONFIG
  843. SQLITE3_CFLAGS
  844. SQLITE3_LIBS
  845. LIBGNUTLS_CFLAGS
  846. LIBGNUTLS_LIBS'
  847. # Initialize some variables set by options.
  848. ac_init_help=
  849. ac_init_version=false
  850. ac_unrecognized_opts=
  851. ac_unrecognized_sep=
  852. # The variables have the same names as the options, with
  853. # dashes changed to underlines.
  854. cache_file=/dev/null
  855. exec_prefix=NONE
  856. no_create=
  857. no_recursion=
  858. prefix=NONE
  859. program_prefix=NONE
  860. program_suffix=NONE
  861. program_transform_name=s,x,x,
  862. silent=
  863. site=
  864. srcdir=
  865. verbose=
  866. x_includes=NONE
  867. x_libraries=NONE
  868. # Installation directory options.
  869. # These are left unexpanded so users can "make install exec_prefix=/foo"
  870. # and all the variables that are supposed to be based on exec_prefix
  871. # by default will actually change.
  872. # Use braces instead of parens because sh, perl, etc. also accept them.
  873. # (The list follows the same order as the GNU Coding Standards.)
  874. bindir='${exec_prefix}/bin'
  875. sbindir='${exec_prefix}/sbin'
  876. libexecdir='${exec_prefix}/libexec'
  877. datarootdir='${prefix}/share'
  878. datadir='${datarootdir}'
  879. sysconfdir='${prefix}/etc'
  880. sharedstatedir='${prefix}/com'
  881. localstatedir='${prefix}/var'
  882. includedir='${prefix}/include'
  883. oldincludedir='/usr/include'
  884. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  885. infodir='${datarootdir}/info'
  886. htmldir='${docdir}'
  887. dvidir='${docdir}'
  888. pdfdir='${docdir}'
  889. psdir='${docdir}'
  890. libdir='${exec_prefix}/lib'
  891. localedir='${datarootdir}/locale'
  892. mandir='${datarootdir}/man'
  893. ac_prev=
  894. ac_dashdash=
  895. for ac_option
  896. do
  897. # If the previous option needs an argument, assign it.
  898. if test -n "$ac_prev"; then
  899. eval $ac_prev=\$ac_option
  900. ac_prev=
  901. continue
  902. fi
  903. case $ac_option in
  904. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  905. *) ac_optarg=yes ;;
  906. esac
  907. # Accept the important Cygnus configure options, so we can diagnose typos.
  908. case $ac_dashdash$ac_option in
  909. --)
  910. ac_dashdash=yes ;;
  911. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  912. ac_prev=bindir ;;
  913. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  914. bindir=$ac_optarg ;;
  915. -build | --build | --buil | --bui | --bu)
  916. ac_prev=build_alias ;;
  917. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  918. build_alias=$ac_optarg ;;
  919. -cache-file | --cache-file | --cache-fil | --cache-fi \
  920. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  921. ac_prev=cache_file ;;
  922. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  923. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  924. cache_file=$ac_optarg ;;
  925. --config-cache | -C)
  926. cache_file=config.cache ;;
  927. -datadir | --datadir | --datadi | --datad)
  928. ac_prev=datadir ;;
  929. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  930. datadir=$ac_optarg ;;
  931. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  932. | --dataroo | --dataro | --datar)
  933. ac_prev=datarootdir ;;
  934. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  935. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  936. datarootdir=$ac_optarg ;;
  937. -disable-* | --disable-*)
  938. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  939. # Reject names that are not valid shell variable names.
  940. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  941. as_fn_error "invalid feature name: $ac_useropt"
  942. ac_useropt_orig=$ac_useropt
  943. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  944. case $ac_user_opts in
  945. *"
  946. "enable_$ac_useropt"
  947. "*) ;;
  948. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  949. ac_unrecognized_sep=', ';;
  950. esac
  951. eval enable_$ac_useropt=no ;;
  952. -docdir | --docdir | --docdi | --doc | --do)
  953. ac_prev=docdir ;;
  954. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  955. docdir=$ac_optarg ;;
  956. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  957. ac_prev=dvidir ;;
  958. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  959. dvidir=$ac_optarg ;;
  960. -enable-* | --enable-*)
  961. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  964. as_fn_error "invalid feature name: $ac_useropt"
  965. ac_useropt_orig=$ac_useropt
  966. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  967. case $ac_user_opts in
  968. *"
  969. "enable_$ac_useropt"
  970. "*) ;;
  971. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  972. ac_unrecognized_sep=', ';;
  973. esac
  974. eval enable_$ac_useropt=\$ac_optarg ;;
  975. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  976. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  977. | --exec | --exe | --ex)
  978. ac_prev=exec_prefix ;;
  979. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  980. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  981. | --exec=* | --exe=* | --ex=*)
  982. exec_prefix=$ac_optarg ;;
  983. -gas | --gas | --ga | --g)
  984. # Obsolete; use --with-gas.
  985. with_gas=yes ;;
  986. -help | --help | --hel | --he | -h)
  987. ac_init_help=long ;;
  988. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  989. ac_init_help=recursive ;;
  990. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  991. ac_init_help=short ;;
  992. -host | --host | --hos | --ho)
  993. ac_prev=host_alias ;;
  994. -host=* | --host=* | --hos=* | --ho=*)
  995. host_alias=$ac_optarg ;;
  996. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  997. ac_prev=htmldir ;;
  998. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  999. | --ht=*)
  1000. htmldir=$ac_optarg ;;
  1001. -includedir | --includedir | --includedi | --included | --include \
  1002. | --includ | --inclu | --incl | --inc)
  1003. ac_prev=includedir ;;
  1004. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1005. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1006. includedir=$ac_optarg ;;
  1007. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1008. ac_prev=infodir ;;
  1009. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1010. infodir=$ac_optarg ;;
  1011. -libdir | --libdir | --libdi | --libd)
  1012. ac_prev=libdir ;;
  1013. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1014. libdir=$ac_optarg ;;
  1015. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1016. | --libexe | --libex | --libe)
  1017. ac_prev=libexecdir ;;
  1018. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1019. | --libexe=* | --libex=* | --libe=*)
  1020. libexecdir=$ac_optarg ;;
  1021. -localedir | --localedir | --localedi | --localed | --locale)
  1022. ac_prev=localedir ;;
  1023. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1024. localedir=$ac_optarg ;;
  1025. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1026. | --localstate | --localstat | --localsta | --localst | --locals)
  1027. ac_prev=localstatedir ;;
  1028. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1029. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1030. localstatedir=$ac_optarg ;;
  1031. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1032. ac_prev=mandir ;;
  1033. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1034. mandir=$ac_optarg ;;
  1035. -nfp | --nfp | --nf)
  1036. # Obsolete; use --without-fp.
  1037. with_fp=no ;;
  1038. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1039. | --no-cr | --no-c | -n)
  1040. no_create=yes ;;
  1041. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1042. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1043. no_recursion=yes ;;
  1044. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1045. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1046. | --oldin | --oldi | --old | --ol | --o)
  1047. ac_prev=oldincludedir ;;
  1048. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1049. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1050. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1051. oldincludedir=$ac_optarg ;;
  1052. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1053. ac_prev=prefix ;;
  1054. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1055. prefix=$ac_optarg ;;
  1056. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1057. | --program-pre | --program-pr | --program-p)
  1058. ac_prev=program_prefix ;;
  1059. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1060. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1061. program_prefix=$ac_optarg ;;
  1062. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1063. | --program-suf | --program-su | --program-s)
  1064. ac_prev=program_suffix ;;
  1065. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1066. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1067. program_suffix=$ac_optarg ;;
  1068. -program-transform-name | --program-transform-name \
  1069. | --program-transform-nam | --program-transform-na \
  1070. | --program-transform-n | --program-transform- \
  1071. | --program-transform | --program-transfor \
  1072. | --program-transfo | --program-transf \
  1073. | --program-trans | --program-tran \
  1074. | --progr-tra | --program-tr | --program-t)
  1075. ac_prev=program_transform_name ;;
  1076. -program-transform-name=* | --program-transform-name=* \
  1077. | --program-transform-nam=* | --program-transform-na=* \
  1078. | --program-transform-n=* | --program-transform-=* \
  1079. | --program-transform=* | --program-transfor=* \
  1080. | --program-transfo=* | --program-transf=* \
  1081. | --program-trans=* | --program-tran=* \
  1082. | --progr-tra=* | --program-tr=* | --program-t=*)
  1083. program_transform_name=$ac_optarg ;;
  1084. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1085. ac_prev=pdfdir ;;
  1086. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1087. pdfdir=$ac_optarg ;;
  1088. -psdir | --psdir | --psdi | --psd | --ps)
  1089. ac_prev=psdir ;;
  1090. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1091. psdir=$ac_optarg ;;
  1092. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1093. | -silent | --silent | --silen | --sile | --sil)
  1094. silent=yes ;;
  1095. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1096. ac_prev=sbindir ;;
  1097. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1098. | --sbi=* | --sb=*)
  1099. sbindir=$ac_optarg ;;
  1100. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1101. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1102. | --sharedst | --shareds | --shared | --share | --shar \
  1103. | --sha | --sh)
  1104. ac_prev=sharedstatedir ;;
  1105. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1106. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1107. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1108. | --sha=* | --sh=*)
  1109. sharedstatedir=$ac_optarg ;;
  1110. -site | --site | --sit)
  1111. ac_prev=site ;;
  1112. -site=* | --site=* | --sit=*)
  1113. site=$ac_optarg ;;
  1114. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1115. ac_prev=srcdir ;;
  1116. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1117. srcdir=$ac_optarg ;;
  1118. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1119. | --syscon | --sysco | --sysc | --sys | --sy)
  1120. ac_prev=sysconfdir ;;
  1121. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1122. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1123. sysconfdir=$ac_optarg ;;
  1124. -target | --target | --targe | --targ | --tar | --ta | --t)
  1125. ac_prev=target_alias ;;
  1126. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1127. target_alias=$ac_optarg ;;
  1128. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1129. verbose=yes ;;
  1130. -version | --version | --versio | --versi | --vers | -V)
  1131. ac_init_version=: ;;
  1132. -with-* | --with-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. as_fn_error "invalid package name: $ac_useropt"
  1137. ac_useropt_orig=$ac_useropt
  1138. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1139. case $ac_user_opts in
  1140. *"
  1141. "with_$ac_useropt"
  1142. "*) ;;
  1143. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1144. ac_unrecognized_sep=', ';;
  1145. esac
  1146. eval with_$ac_useropt=\$ac_optarg ;;
  1147. -without-* | --without-*)
  1148. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1149. # Reject names that are not valid shell variable names.
  1150. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1151. as_fn_error "invalid package name: $ac_useropt"
  1152. ac_useropt_orig=$ac_useropt
  1153. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1154. case $ac_user_opts in
  1155. *"
  1156. "with_$ac_useropt"
  1157. "*) ;;
  1158. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1159. ac_unrecognized_sep=', ';;
  1160. esac
  1161. eval with_$ac_useropt=no ;;
  1162. --x)
  1163. # Obsolete; use --with-x.
  1164. with_x=yes ;;
  1165. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1166. | --x-incl | --x-inc | --x-in | --x-i)
  1167. ac_prev=x_includes ;;
  1168. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1169. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1170. x_includes=$ac_optarg ;;
  1171. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1172. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1173. ac_prev=x_libraries ;;
  1174. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1175. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1176. x_libraries=$ac_optarg ;;
  1177. -*) as_fn_error "unrecognized option: \`$ac_option'
  1178. Try \`$0 --help' for more information."
  1179. ;;
  1180. *=*)
  1181. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1182. # Reject names that are not valid shell variable names.
  1183. case $ac_envvar in #(
  1184. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1185. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1186. esac
  1187. eval $ac_envvar=\$ac_optarg
  1188. export $ac_envvar ;;
  1189. *)
  1190. # FIXME: should be removed in autoconf 3.0.
  1191. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1192. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1193. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1194. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1195. ;;
  1196. esac
  1197. done
  1198. if test -n "$ac_prev"; then
  1199. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1200. as_fn_error "missing argument to $ac_option"
  1201. fi
  1202. if test -n "$ac_unrecognized_opts"; then
  1203. case $enable_option_checking in
  1204. no) ;;
  1205. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1206. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1207. esac
  1208. fi
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211. datadir sysconfdir sharedstatedir localstatedir includedir \
  1212. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213. libdir localedir mandir
  1214. do
  1215. eval ac_val=\$$ac_var
  1216. # Remove trailing slashes.
  1217. case $ac_val in
  1218. */ )
  1219. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220. eval $ac_var=\$ac_val;;
  1221. esac
  1222. # Be sure to have absolute directory names.
  1223. case $ac_val in
  1224. [\\/$]* | ?:[\\/]* ) continue;;
  1225. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226. esac
  1227. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1228. done
  1229. # There might be people who depend on the old broken behavior: `$host'
  1230. # used to hold the argument of --host etc.
  1231. # FIXME: To remove some day.
  1232. build=$build_alias
  1233. host=$host_alias
  1234. target=$target_alias
  1235. # FIXME: To remove some day.
  1236. if test "x$host_alias" != x; then
  1237. if test "x$build_alias" = x; then
  1238. cross_compiling=maybe
  1239. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1240. If a cross compiler is detected then cross compile mode will be used." >&2
  1241. elif test "x$build_alias" != "x$host_alias"; then
  1242. cross_compiling=yes
  1243. fi
  1244. fi
  1245. ac_tool_prefix=
  1246. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1247. test "$silent" = yes && exec 6>/dev/null
  1248. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1249. ac_ls_di=`ls -di .` &&
  1250. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1251. as_fn_error "working directory cannot be determined"
  1252. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1253. as_fn_error "pwd does not report name of working directory"
  1254. # Find the source files, if location was not specified.
  1255. if test -z "$srcdir"; then
  1256. ac_srcdir_defaulted=yes
  1257. # Try the directory containing this script, then the parent directory.
  1258. ac_confdir=`$as_dirname -- "$as_myself" ||
  1259. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1260. X"$as_myself" : 'X\(//\)[^/]' \| \
  1261. X"$as_myself" : 'X\(//\)$' \| \
  1262. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1263. $as_echo X"$as_myself" |
  1264. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\/\)[^/].*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. /^X\(\/\/\)$/{
  1273. s//\1/
  1274. q
  1275. }
  1276. /^X\(\/\).*/{
  1277. s//\1/
  1278. q
  1279. }
  1280. s/.*/./; q'`
  1281. srcdir=$ac_confdir
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. srcdir=..
  1284. fi
  1285. else
  1286. ac_srcdir_defaulted=no
  1287. fi
  1288. if test ! -r "$srcdir/$ac_unique_file"; then
  1289. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1290. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1291. fi
  1292. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1293. ac_abs_confdir=`(
  1294. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1295. pwd)`
  1296. # When building in place, set srcdir=.
  1297. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1298. srcdir=.
  1299. fi
  1300. # Remove unnecessary trailing slashes from srcdir.
  1301. # Double slashes in file names in object file debugging info
  1302. # mess up M-x gdb in Emacs.
  1303. case $srcdir in
  1304. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1305. esac
  1306. for ac_var in $ac_precious_vars; do
  1307. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1308. eval ac_env_${ac_var}_value=\$${ac_var}
  1309. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1310. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1311. done
  1312. #
  1313. # Report the --help message.
  1314. #
  1315. if test "$ac_init_help" = "long"; then
  1316. # Omit some internal or obsolete options to make the list less imposing.
  1317. # This message is too long to be a string in the A/UX 3.1 sh.
  1318. cat <<_ACEOF
  1319. \`configure' configures aria2 1.9.2 to adapt to many kinds of systems.
  1320. Usage: $0 [OPTION]... [VAR=VALUE]...
  1321. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1322. VAR=VALUE. See below for descriptions of some of the useful variables.
  1323. Defaults for the options are specified in brackets.
  1324. Configuration:
  1325. -h, --help display this help and exit
  1326. --help=short display options specific to this package
  1327. --help=recursive display the short help of all the included packages
  1328. -V, --version display version information and exit
  1329. -q, --quiet, --silent do not print \`checking...' messages
  1330. --cache-file=FILE cache test results in FILE [disabled]
  1331. -C, --config-cache alias for \`--cache-file=config.cache'
  1332. -n, --no-create do not create output files
  1333. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1334. Installation directories:
  1335. --prefix=PREFIX install architecture-independent files in PREFIX
  1336. [$ac_default_prefix]
  1337. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1338. [PREFIX]
  1339. By default, \`make install' will install all the files in
  1340. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1341. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1342. for instance \`--prefix=\$HOME'.
  1343. For better control, use the options below.
  1344. Fine tuning of the installation directories:
  1345. --bindir=DIR user executables [EPREFIX/bin]
  1346. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1347. --libexecdir=DIR program executables [EPREFIX/libexec]
  1348. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1349. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1350. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1351. --libdir=DIR object code libraries [EPREFIX/lib]
  1352. --includedir=DIR C header files [PREFIX/include]
  1353. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1354. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1355. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1356. --infodir=DIR info documentation [DATAROOTDIR/info]
  1357. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1358. --mandir=DIR man documentation [DATAROOTDIR/man]
  1359. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1360. --htmldir=DIR html documentation [DOCDIR]
  1361. --dvidir=DIR dvi documentation [DOCDIR]
  1362. --pdfdir=DIR pdf documentation [DOCDIR]
  1363. --psdir=DIR ps documentation [DOCDIR]
  1364. _ACEOF
  1365. cat <<\_ACEOF
  1366. Program names:
  1367. --program-prefix=PREFIX prepend PREFIX to installed program names
  1368. --program-suffix=SUFFIX append SUFFIX to installed program names
  1369. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1370. System types:
  1371. --build=BUILD configure for building on BUILD [guessed]
  1372. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1373. --target=TARGET configure for building compilers for TARGET [HOST]
  1374. _ACEOF
  1375. fi
  1376. if test -n "$ac_init_help"; then
  1377. case $ac_init_help in
  1378. short | recursive ) echo "Configuration of aria2 1.9.2:";;
  1379. esac
  1380. cat <<\_ACEOF
  1381. Optional Features:
  1382. --disable-option-checking ignore unrecognized --enable/--with options
  1383. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1384. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1385. --enable-bittorrent Enable bittorrent support.
  1386. --enable-metalink Enable metalink support.
  1387. --enable-epoll Enable epoll support.
  1388. --disable-dependency-tracking speeds up one-time build
  1389. --enable-dependency-tracking do not reject slow dependency extractors
  1390. --disable-xmltest Do not try to compile and run a test LIBXML program
  1391. --disable-largefile omit support for large files
  1392. --disable-nls do not use Native Language Support
  1393. --enable-threads={posix|solaris|pth|win32}
  1394. specify multithreading API
  1395. --disable-threads build without multithread safety
  1396. --disable-rpath do not hardcode runtime library paths
  1397. Optional Packages:
  1398. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1399. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1400. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1401. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1402. --with-gnutls Use gnutls if it is installed.
  1403. --with-openssl Use openssl if it is installed.
  1404. --with-sqlite3 Use sqlite3 if it is installed.
  1405. --with-libxml2 Use libxml2 if it is installed.
  1406. --with-libexpat Use libexpat if it is installed.
  1407. --with-libcares Use libcares if it is installed.
  1408. --with-libz Use libz if it is installed.
  1409. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1410. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1411. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1412. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1413. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1414. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1415. --with-libgcrypt-prefix=PFX
  1416. prefix where LIBGCRYPT is installed (optional)
  1417. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1418. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1419. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1420. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1421. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1422. --without-libpth-prefix don't search for libpth in includedir and libdir
  1423. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1424. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1425. --with-included-gettext use the GNU gettext library included here
  1426. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1427. --without-libintl-prefix don't search for libintl in includedir and libdir
  1428. Some influential environment variables:
  1429. CXX C++ compiler command
  1430. CXXFLAGS C++ compiler flags
  1431. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1432. nonstandard directory <lib dir>
  1433. LIBS libraries to pass to the linker, e.g. -l<library>
  1434. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1435. you have headers in a nonstandard directory <include dir>
  1436. CC C compiler command
  1437. CFLAGS C compiler flags
  1438. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1439. the first program found out of: `bison -y', `byacc', `yacc'.
  1440. YFLAGS The list of arguments that will be passed by default to $YACC.
  1441. This script will default YFLAGS to the empty string to avoid a
  1442. default value of `-d' given by some make applications.
  1443. CXXCPP C++ preprocessor
  1444. PKG_CONFIG path to pkg-config utility
  1445. SQLITE3_CFLAGS
  1446. C compiler flags for SQLITE3, overriding pkg-config
  1447. SQLITE3_LIBS
  1448. linker flags for SQLITE3, overriding pkg-config
  1449. LIBGNUTLS_CFLAGS
  1450. C compiler flags for LIBGNUTLS, overriding pkg-config
  1451. LIBGNUTLS_LIBS
  1452. linker flags for LIBGNUTLS, overriding pkg-config
  1453. Use these variables to override the choices made by `configure' or to help
  1454. it to find libraries and programs with nonstandard names/locations.
  1455. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1456. aria2 home page: <http://aria2.sourceforge.net/>.
  1457. _ACEOF
  1458. ac_status=$?
  1459. fi
  1460. if test "$ac_init_help" = "recursive"; then
  1461. # If there are subdirs, report their specific --help.
  1462. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1463. test -d "$ac_dir" ||
  1464. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1465. continue
  1466. ac_builddir=.
  1467. case "$ac_dir" in
  1468. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1469. *)
  1470. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1471. # A ".." for each directory in $ac_dir_suffix.
  1472. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1473. case $ac_top_builddir_sub in
  1474. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1475. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1476. esac ;;
  1477. esac
  1478. ac_abs_top_builddir=$ac_pwd
  1479. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1480. # for backward compatibility:
  1481. ac_top_builddir=$ac_top_build_prefix
  1482. case $srcdir in
  1483. .) # We are building in place.
  1484. ac_srcdir=.
  1485. ac_top_srcdir=$ac_top_builddir_sub
  1486. ac_abs_top_srcdir=$ac_pwd ;;
  1487. [\\/]* | ?:[\\/]* ) # Absolute name.
  1488. ac_srcdir=$srcdir$ac_dir_suffix;
  1489. ac_top_srcdir=$srcdir
  1490. ac_abs_top_srcdir=$srcdir ;;
  1491. *) # Relative name.
  1492. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1493. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1494. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1495. esac
  1496. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1497. cd "$ac_dir" || { ac_status=$?; continue; }
  1498. # Check for guested configure.
  1499. if test -f "$ac_srcdir/configure.gnu"; then
  1500. echo &&
  1501. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1502. elif test -f "$ac_srcdir/configure"; then
  1503. echo &&
  1504. $SHELL "$ac_srcdir/configure" --help=recursive
  1505. else
  1506. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1507. fi || ac_status=$?
  1508. cd "$ac_pwd" || { ac_status=$?; break; }
  1509. done
  1510. fi
  1511. test -n "$ac_init_help" && exit $ac_status
  1512. if $ac_init_version; then
  1513. cat <<\_ACEOF
  1514. aria2 configure 1.9.2
  1515. generated by GNU Autoconf 2.65
  1516. Copyright (C) 2009 Free Software Foundation, Inc.
  1517. This configure script is free software; the Free Software Foundation
  1518. gives unlimited permission to copy, distribute and modify it.
  1519. _ACEOF
  1520. exit
  1521. fi
  1522. ## ------------------------ ##
  1523. ## Autoconf initialization. ##
  1524. ## ------------------------ ##
  1525. # ac_fn_cxx_try_compile LINENO
  1526. # ----------------------------
  1527. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1528. ac_fn_cxx_try_compile ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. rm -f conftest.$ac_objext
  1532. if { { ac_try="$ac_compile"
  1533. case "(($ac_try" in
  1534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1535. *) ac_try_echo=$ac_try;;
  1536. esac
  1537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1538. $as_echo "$ac_try_echo"; } >&5
  1539. (eval "$ac_compile") 2>conftest.err
  1540. ac_status=$?
  1541. if test -s conftest.err; then
  1542. grep -v '^ *+' conftest.err >conftest.er1
  1543. cat conftest.er1 >&5
  1544. mv -f conftest.er1 conftest.err
  1545. fi
  1546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1547. test $ac_status = 0; } && {
  1548. test -z "$ac_cxx_werror_flag" ||
  1549. test ! -s conftest.err
  1550. } && test -s conftest.$ac_objext; then :
  1551. ac_retval=0
  1552. else
  1553. $as_echo "$as_me: failed program was:" >&5
  1554. sed 's/^/| /' conftest.$ac_ext >&5
  1555. ac_retval=1
  1556. fi
  1557. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_cxx_try_compile
  1560. # ac_fn_c_try_compile LINENO
  1561. # --------------------------
  1562. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1563. ac_fn_c_try_compile ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. rm -f conftest.$ac_objext
  1567. if { { ac_try="$ac_compile"
  1568. case "(($ac_try" in
  1569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1570. *) ac_try_echo=$ac_try;;
  1571. esac
  1572. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1573. $as_echo "$ac_try_echo"; } >&5
  1574. (eval "$ac_compile") 2>conftest.err
  1575. ac_status=$?
  1576. if test -s conftest.err; then
  1577. grep -v '^ *+' conftest.err >conftest.er1
  1578. cat conftest.er1 >&5
  1579. mv -f conftest.er1 conftest.err
  1580. fi
  1581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1582. test $ac_status = 0; } && {
  1583. test -z "$ac_c_werror_flag" ||
  1584. test ! -s conftest.err
  1585. } && test -s conftest.$ac_objext; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1593. as_fn_set_status $ac_retval
  1594. } # ac_fn_c_try_compile
  1595. # ac_fn_cxx_try_cpp LINENO
  1596. # ------------------------
  1597. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1598. ac_fn_cxx_try_cpp ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1609. ac_status=$?
  1610. if test -s conftest.err; then
  1611. grep -v '^ *+' conftest.err >conftest.er1
  1612. cat conftest.er1 >&5
  1613. mv -f conftest.er1 conftest.err
  1614. fi
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } >/dev/null && {
  1617. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1618. test ! -s conftest.err
  1619. }; then :
  1620. ac_retval=0
  1621. else
  1622. $as_echo "$as_me: failed program was:" >&5
  1623. sed 's/^/| /' conftest.$ac_ext >&5
  1624. ac_retval=1
  1625. fi
  1626. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1627. as_fn_set_status $ac_retval
  1628. } # ac_fn_cxx_try_cpp
  1629. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1630. # ---------------------------------------------------------
  1631. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1632. # the include files in INCLUDES and setting the cache variable VAR
  1633. # accordingly.
  1634. ac_fn_cxx_check_header_mongrel ()
  1635. {
  1636. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1637. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1639. $as_echo_n "checking for $2... " >&6; }
  1640. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1641. $as_echo_n "(cached) " >&6
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. else
  1647. # Is the header compilable?
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1649. $as_echo_n "checking $2 usability... " >&6; }
  1650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1651. /* end confdefs.h. */
  1652. $4
  1653. #include <$2>
  1654. _ACEOF
  1655. if ac_fn_cxx_try_compile "$LINENO"; then :
  1656. ac_header_compiler=yes
  1657. else
  1658. ac_header_compiler=no
  1659. fi
  1660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1662. $as_echo "$ac_header_compiler" >&6; }
  1663. # Is the header present?
  1664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1665. $as_echo_n "checking $2 presence... " >&6; }
  1666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1667. /* end confdefs.h. */
  1668. #include <$2>
  1669. _ACEOF
  1670. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1671. ac_header_preproc=yes
  1672. else
  1673. ac_header_preproc=no
  1674. fi
  1675. rm -f conftest.err conftest.$ac_ext
  1676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1677. $as_echo "$ac_header_preproc" >&6; }
  1678. # So? What about this header?
  1679. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1680. yes:no: )
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1682. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1684. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1685. ;;
  1686. no:yes:* )
  1687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1688. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1690. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1692. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1694. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1696. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1697. ( cat <<\_ASBOX
  1698. ## ----------------------------------------------- ##
  1699. ## Report this to t-tujikawa@users.sourceforge.net ##
  1700. ## ----------------------------------------------- ##
  1701. _ASBOX
  1702. ) | sed "s/^/$as_me: WARNING: /" >&2
  1703. ;;
  1704. esac
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1706. $as_echo_n "checking for $2... " >&6; }
  1707. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1708. $as_echo_n "(cached) " >&6
  1709. else
  1710. eval "$3=\$ac_header_compiler"
  1711. fi
  1712. eval ac_res=\$$3
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1714. $as_echo "$ac_res" >&6; }
  1715. fi
  1716. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1717. } # ac_fn_cxx_check_header_mongrel
  1718. # ac_fn_cxx_try_run LINENO
  1719. # ------------------------
  1720. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1721. # that executables *can* be run.
  1722. ac_fn_cxx_try_run ()
  1723. {
  1724. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1725. if { { ac_try="$ac_link"
  1726. case "(($ac_try" in
  1727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1728. *) ac_try_echo=$ac_try;;
  1729. esac
  1730. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1731. $as_echo "$ac_try_echo"; } >&5
  1732. (eval "$ac_link") 2>&5
  1733. ac_status=$?
  1734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1735. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1736. { { case "(($ac_try" in
  1737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1738. *) ac_try_echo=$ac_try;;
  1739. esac
  1740. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1741. $as_echo "$ac_try_echo"; } >&5
  1742. (eval "$ac_try") 2>&5
  1743. ac_status=$?
  1744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1745. test $ac_status = 0; }; }; then :
  1746. ac_retval=0
  1747. else
  1748. $as_echo "$as_me: program exited with status $ac_status" >&5
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=$ac_status
  1752. fi
  1753. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1754. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1755. as_fn_set_status $ac_retval
  1756. } # ac_fn_cxx_try_run
  1757. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1758. # ---------------------------------------------------------
  1759. # Tests whether HEADER exists and can be compiled using the include files in
  1760. # INCLUDES, setting the cache variable VAR accordingly.
  1761. ac_fn_cxx_check_header_compile ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1765. $as_echo_n "checking for $2... " >&6; }
  1766. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1767. $as_echo_n "(cached) " >&6
  1768. else
  1769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1770. /* end confdefs.h. */
  1771. $4
  1772. #include <$2>
  1773. _ACEOF
  1774. if ac_fn_cxx_try_compile "$LINENO"; then :
  1775. eval "$3=yes"
  1776. else
  1777. eval "$3=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. eval ac_res=\$$3
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1783. $as_echo "$ac_res" >&6; }
  1784. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1785. } # ac_fn_cxx_check_header_compile
  1786. # ac_fn_cxx_try_link LINENO
  1787. # -------------------------
  1788. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1789. ac_fn_cxx_try_link ()
  1790. {
  1791. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1792. rm -f conftest.$ac_objext conftest$ac_exeext
  1793. if { { ac_try="$ac_link"
  1794. case "(($ac_try" in
  1795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1796. *) ac_try_echo=$ac_try;;
  1797. esac
  1798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1799. $as_echo "$ac_try_echo"; } >&5
  1800. (eval "$ac_link") 2>conftest.err
  1801. ac_status=$?
  1802. if test -s conftest.err; then
  1803. grep -v '^ *+' conftest.err >conftest.er1
  1804. cat conftest.er1 >&5
  1805. mv -f conftest.er1 conftest.err
  1806. fi
  1807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1808. test $ac_status = 0; } && {
  1809. test -z "$ac_cxx_werror_flag" ||
  1810. test ! -s conftest.err
  1811. } && test -s conftest$ac_exeext && {
  1812. test "$cross_compiling" = yes ||
  1813. $as_test_x conftest$ac_exeext
  1814. }; then :
  1815. ac_retval=0
  1816. else
  1817. $as_echo "$as_me: failed program was:" >&5
  1818. sed 's/^/| /' conftest.$ac_ext >&5
  1819. ac_retval=1
  1820. fi
  1821. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1822. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1823. # interfere with the next link command; also delete a directory that is
  1824. # left behind by Apple's compiler. We do this before executing the actions.
  1825. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1826. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1827. as_fn_set_status $ac_retval
  1828. } # ac_fn_cxx_try_link
  1829. # ac_fn_cxx_check_func LINENO FUNC VAR
  1830. # ------------------------------------
  1831. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1832. ac_fn_cxx_check_func ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1836. $as_echo_n "checking for $2... " >&6; }
  1837. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1838. $as_echo_n "(cached) " >&6
  1839. else
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1843. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1844. #define $2 innocuous_$2
  1845. /* System header to define __stub macros and hopefully few prototypes,
  1846. which can conflict with char $2 (); below.
  1847. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1848. <limits.h> exists even on freestanding compilers. */
  1849. #ifdef __STDC__
  1850. # include <limits.h>
  1851. #else
  1852. # include <assert.h>
  1853. #endif
  1854. #undef $2
  1855. /* Override any GCC internal prototype to avoid an error.
  1856. Use char because int might match the return type of a GCC
  1857. builtin and then its argument prototype would still apply. */
  1858. #ifdef __cplusplus
  1859. extern "C"
  1860. #endif
  1861. char $2 ();
  1862. /* The GNU C library defines this for functions which it implements
  1863. to always fail with ENOSYS. Some functions are actually named
  1864. something starting with __ and the normal name is an alias. */
  1865. #if defined __stub_$2 || defined __stub___$2
  1866. choke me
  1867. #endif
  1868. int
  1869. main ()
  1870. {
  1871. return $2 ();
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. if ac_fn_cxx_try_link "$LINENO"; then :
  1877. eval "$3=yes"
  1878. else
  1879. eval "$3=no"
  1880. fi
  1881. rm -f core conftest.err conftest.$ac_objext \
  1882. conftest$ac_exeext conftest.$ac_ext
  1883. fi
  1884. eval ac_res=\$$3
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1886. $as_echo "$ac_res" >&6; }
  1887. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1888. } # ac_fn_cxx_check_func
  1889. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1890. # ---------------------------------------------
  1891. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1892. # variable VAR accordingly.
  1893. ac_fn_cxx_check_type ()
  1894. {
  1895. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1899. $as_echo_n "(cached) " >&6
  1900. else
  1901. eval "$3=no"
  1902. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h. */
  1904. $4
  1905. int
  1906. main ()
  1907. {
  1908. if (sizeof ($2))
  1909. return 0;
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. if ac_fn_cxx_try_compile "$LINENO"; then :
  1915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1916. /* end confdefs.h. */
  1917. $4
  1918. int
  1919. main ()
  1920. {
  1921. if (sizeof (($2)))
  1922. return 0;
  1923. ;
  1924. return 0;
  1925. }
  1926. _ACEOF
  1927. if ac_fn_cxx_try_compile "$LINENO"; then :
  1928. else
  1929. eval "$3=yes"
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1932. fi
  1933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1934. fi
  1935. eval ac_res=\$$3
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1937. $as_echo "$ac_res" >&6; }
  1938. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1939. } # ac_fn_cxx_check_type
  1940. # ac_fn_c_find_intX_t LINENO BITS VAR
  1941. # -----------------------------------
  1942. # Finds a signed integer type with width BITS, setting cache variable VAR
  1943. # accordingly.
  1944. ac_fn_c_find_intX_t ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1948. $as_echo_n "checking for int$2_t... " >&6; }
  1949. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1950. $as_echo_n "(cached) " >&6
  1951. else
  1952. eval "$3=no"
  1953. # Order is important - never check a type that is potentially smaller
  1954. # than half of the expected target width.
  1955. for ac_type in int$2_t 'int' 'long int' \
  1956. 'long long int' 'short int' 'signed char'; do
  1957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1958. /* end confdefs.h. */
  1959. $ac_includes_default
  1960. enum { N = $2 / 2 - 1 };
  1961. int
  1962. main ()
  1963. {
  1964. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1965. test_array [0] = 0
  1966. ;
  1967. return 0;
  1968. }
  1969. _ACEOF
  1970. if ac_fn_cxx_try_compile "$LINENO"; then :
  1971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1972. /* end confdefs.h. */
  1973. $ac_includes_default
  1974. enum { N = $2 / 2 - 1 };
  1975. int
  1976. main ()
  1977. {
  1978. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1979. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1980. test_array [0] = 0
  1981. ;
  1982. return 0;
  1983. }
  1984. _ACEOF
  1985. if ac_fn_cxx_try_compile "$LINENO"; then :
  1986. else
  1987. case $ac_type in #(
  1988. int$2_t) :
  1989. eval "$3=yes" ;; #(
  1990. *) :
  1991. eval "$3=\$ac_type" ;;
  1992. esac
  1993. fi
  1994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1995. fi
  1996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1997. eval as_val=\$$3
  1998. if test "x$as_val" = x""no; then :
  1999. else
  2000. break
  2001. fi
  2002. done
  2003. fi
  2004. eval ac_res=\$$3
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2006. $as_echo "$ac_res" >&6; }
  2007. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2008. } # ac_fn_c_find_intX_t
  2009. # ac_fn_c_find_uintX_t LINENO BITS VAR
  2010. # ------------------------------------
  2011. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  2012. # accordingly.
  2013. ac_fn_c_find_uintX_t ()
  2014. {
  2015. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  2017. $as_echo_n "checking for uint$2_t... " >&6; }
  2018. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2019. $as_echo_n "(cached) " >&6
  2020. else
  2021. eval "$3=no"
  2022. # Order is important - never check a type that is potentially smaller
  2023. # than half of the expected target width.
  2024. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  2025. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  2026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2027. /* end confdefs.h. */
  2028. $ac_includes_default
  2029. int
  2030. main ()
  2031. {
  2032. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  2033. test_array [0] = 0
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_cxx_try_compile "$LINENO"; then :
  2039. case $ac_type in #(
  2040. uint$2_t) :
  2041. eval "$3=yes" ;; #(
  2042. *) :
  2043. eval "$3=\$ac_type" ;;
  2044. esac
  2045. fi
  2046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2047. eval as_val=\$$3
  2048. if test "x$as_val" = x""no; then :
  2049. else
  2050. break
  2051. fi
  2052. done
  2053. fi
  2054. eval ac_res=\$$3
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2056. $as_echo "$ac_res" >&6; }
  2057. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2058. } # ac_fn_c_find_uintX_t
  2059. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  2060. # ----------------------------------------------
  2061. # Tries to find the compile-time value of EXPR in a program that includes
  2062. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2063. # computed
  2064. ac_fn_cxx_compute_int ()
  2065. {
  2066. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2067. if test "$cross_compiling" = yes; then
  2068. # Depending upon the size, compute the lo and hi bounds.
  2069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2070. /* end confdefs.h. */
  2071. $4
  2072. int
  2073. main ()
  2074. {
  2075. static int test_array [1 - 2 * !(($2) >= 0)];
  2076. test_array [0] = 0
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. if ac_fn_cxx_try_compile "$LINENO"; then :
  2082. ac_lo=0 ac_mid=0
  2083. while :; do
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. $4
  2087. int
  2088. main ()
  2089. {
  2090. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2091. test_array [0] = 0
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_cxx_try_compile "$LINENO"; then :
  2097. ac_hi=$ac_mid; break
  2098. else
  2099. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2100. if test $ac_lo -le $ac_mid; then
  2101. ac_lo= ac_hi=
  2102. break
  2103. fi
  2104. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2105. fi
  2106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2107. done
  2108. else
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $4
  2112. int
  2113. main ()
  2114. {
  2115. static int test_array [1 - 2 * !(($2) < 0)];
  2116. test_array [0] = 0
  2117. ;
  2118. return 0;
  2119. }
  2120. _ACEOF
  2121. if ac_fn_cxx_try_compile "$LINENO"; then :
  2122. ac_hi=-1 ac_mid=-1
  2123. while :; do
  2124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2125. /* end confdefs.h. */
  2126. $4
  2127. int
  2128. main ()
  2129. {
  2130. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2131. test_array [0] = 0
  2132. ;
  2133. return 0;
  2134. }
  2135. _ACEOF
  2136. if ac_fn_cxx_try_compile "$LINENO"; then :
  2137. ac_lo=$ac_mid; break
  2138. else
  2139. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2140. if test $ac_mid -le $ac_hi; then
  2141. ac_lo= ac_hi=
  2142. break
  2143. fi
  2144. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2145. fi
  2146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2147. done
  2148. else
  2149. ac_lo= ac_hi=
  2150. fi
  2151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2152. fi
  2153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2154. # Binary search between lo and hi bounds.
  2155. while test "x$ac_lo" != "x$ac_hi"; do
  2156. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2158. /* end confdefs.h. */
  2159. $4
  2160. int
  2161. main ()
  2162. {
  2163. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2164. test_array [0] = 0
  2165. ;
  2166. return 0;
  2167. }
  2168. _ACEOF
  2169. if ac_fn_cxx_try_compile "$LINENO"; then :
  2170. ac_hi=$ac_mid
  2171. else
  2172. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2173. fi
  2174. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2175. done
  2176. case $ac_lo in #((
  2177. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2178. '') ac_retval=1 ;;
  2179. esac
  2180. else
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $4
  2184. static long int longval () { return $2; }
  2185. static unsigned long int ulongval () { return $2; }
  2186. #include <stdio.h>
  2187. #include <stdlib.h>
  2188. int
  2189. main ()
  2190. {
  2191. FILE *f = fopen ("conftest.val", "w");
  2192. if (! f)
  2193. return 1;
  2194. if (($2) < 0)
  2195. {
  2196. long int i = longval ();
  2197. if (i != ($2))
  2198. return 1;
  2199. fprintf (f, "%ld", i);
  2200. }
  2201. else
  2202. {
  2203. unsigned long int i = ulongval ();
  2204. if (i != ($2))
  2205. return 1;
  2206. fprintf (f, "%lu", i);
  2207. }
  2208. /* Do not output a trailing newline, as this causes \r\n confusion
  2209. on some platforms. */
  2210. return ferror (f) || fclose (f) != 0;
  2211. ;
  2212. return 0;
  2213. }
  2214. _ACEOF
  2215. if ac_fn_cxx_try_run "$LINENO"; then :
  2216. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2217. else
  2218. ac_retval=1
  2219. fi
  2220. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2221. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2222. rm -f conftest.val
  2223. fi
  2224. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2225. as_fn_set_status $ac_retval
  2226. } # ac_fn_cxx_compute_int
  2227. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  2228. # ------------------------------------------------------
  2229. # Tries to find if the field MEMBER exists in type AGGR, after including
  2230. # INCLUDES, setting cache variable VAR accordingly.
  2231. ac_fn_cxx_check_member ()
  2232. {
  2233. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2235. $as_echo_n "checking for $2.$3... " >&6; }
  2236. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2237. $as_echo_n "(cached) " >&6
  2238. else
  2239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2240. /* end confdefs.h. */
  2241. $5
  2242. int
  2243. main ()
  2244. {
  2245. static $2 ac_aggr;
  2246. if (ac_aggr.$3)
  2247. return 0;
  2248. ;
  2249. return 0;
  2250. }
  2251. _ACEOF
  2252. if ac_fn_cxx_try_compile "$LINENO"; then :
  2253. eval "$4=yes"
  2254. else
  2255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2256. /* end confdefs.h. */
  2257. $5
  2258. int
  2259. main ()
  2260. {
  2261. static $2 ac_aggr;
  2262. if (sizeof ac_aggr.$3)
  2263. return 0;
  2264. ;
  2265. return 0;
  2266. }
  2267. _ACEOF
  2268. if ac_fn_cxx_try_compile "$LINENO"; then :
  2269. eval "$4=yes"
  2270. else
  2271. eval "$4=no"
  2272. fi
  2273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2274. fi
  2275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2276. fi
  2277. eval ac_res=\$$4
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2279. $as_echo "$ac_res" >&6; }
  2280. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2281. } # ac_fn_cxx_check_member
  2282. cat >config.log <<_ACEOF
  2283. This file contains any messages produced by compilers while
  2284. running configure, to aid debugging if configure makes a mistake.
  2285. It was created by aria2 $as_me 1.9.2, which was
  2286. generated by GNU Autoconf 2.65. Invocation command line was
  2287. $ $0 $@
  2288. _ACEOF
  2289. exec 5>>config.log
  2290. {
  2291. cat <<_ASUNAME
  2292. ## --------- ##
  2293. ## Platform. ##
  2294. ## --------- ##
  2295. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2296. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2297. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2298. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2299. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2300. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2301. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2302. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2303. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2304. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2305. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2306. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2307. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2308. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2309. _ASUNAME
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH
  2312. do
  2313. IFS=$as_save_IFS
  2314. test -z "$as_dir" && as_dir=.
  2315. $as_echo "PATH: $as_dir"
  2316. done
  2317. IFS=$as_save_IFS
  2318. } >&5
  2319. cat >&5 <<_ACEOF
  2320. ## ----------- ##
  2321. ## Core tests. ##
  2322. ## ----------- ##
  2323. _ACEOF
  2324. # Keep a trace of the command line.
  2325. # Strip out --no-create and --no-recursion so they do not pile up.
  2326. # Strip out --silent because we don't want to record it for future runs.
  2327. # Also quote any args containing shell meta-characters.
  2328. # Make two passes to allow for proper duplicate-argument suppression.
  2329. ac_configure_args=
  2330. ac_configure_args0=
  2331. ac_configure_args1=
  2332. ac_must_keep_next=false
  2333. for ac_pass in 1 2
  2334. do
  2335. for ac_arg
  2336. do
  2337. case $ac_arg in
  2338. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2339. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2340. | -silent | --silent | --silen | --sile | --sil)
  2341. continue ;;
  2342. *\'*)
  2343. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2344. esac
  2345. case $ac_pass in
  2346. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2347. 2)
  2348. as_fn_append ac_configure_args1 " '$ac_arg'"
  2349. if test $ac_must_keep_next = true; then
  2350. ac_must_keep_next=false # Got value, back to normal.
  2351. else
  2352. case $ac_arg in
  2353. *=* | --config-cache | -C | -disable-* | --disable-* \
  2354. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2355. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2356. | -with-* | --with-* | -without-* | --without-* | --x)
  2357. case "$ac_configure_args0 " in
  2358. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2359. esac
  2360. ;;
  2361. -* ) ac_must_keep_next=true ;;
  2362. esac
  2363. fi
  2364. as_fn_append ac_configure_args " '$ac_arg'"
  2365. ;;
  2366. esac
  2367. done
  2368. done
  2369. { ac_configure_args0=; unset ac_configure_args0;}
  2370. { ac_configure_args1=; unset ac_configure_args1;}
  2371. # When interrupted or exit'd, cleanup temporary files, and complete
  2372. # config.log. We remove comments because anyway the quotes in there
  2373. # would cause problems or look ugly.
  2374. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2375. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2376. trap 'exit_status=$?
  2377. # Save into config.log some information that might help in debugging.
  2378. {
  2379. echo
  2380. cat <<\_ASBOX
  2381. ## ---------------- ##
  2382. ## Cache variables. ##
  2383. ## ---------------- ##
  2384. _ASBOX
  2385. echo
  2386. # The following way of writing the cache mishandles newlines in values,
  2387. (
  2388. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2389. eval ac_val=\$$ac_var
  2390. case $ac_val in #(
  2391. *${as_nl}*)
  2392. case $ac_var in #(
  2393. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2394. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2395. esac
  2396. case $ac_var in #(
  2397. _ | IFS | as_nl) ;; #(
  2398. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2399. *) { eval $ac_var=; unset $ac_var;} ;;
  2400. esac ;;
  2401. esac
  2402. done
  2403. (set) 2>&1 |
  2404. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2405. *${as_nl}ac_space=\ *)
  2406. sed -n \
  2407. "s/'\''/'\''\\\\'\'''\''/g;
  2408. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2409. ;; #(
  2410. *)
  2411. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2412. ;;
  2413. esac |
  2414. sort
  2415. )
  2416. echo
  2417. cat <<\_ASBOX
  2418. ## ----------------- ##
  2419. ## Output variables. ##
  2420. ## ----------------- ##
  2421. _ASBOX
  2422. echo
  2423. for ac_var in $ac_subst_vars
  2424. do
  2425. eval ac_val=\$$ac_var
  2426. case $ac_val in
  2427. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2428. esac
  2429. $as_echo "$ac_var='\''$ac_val'\''"
  2430. done | sort
  2431. echo
  2432. if test -n "$ac_subst_files"; then
  2433. cat <<\_ASBOX
  2434. ## ------------------- ##
  2435. ## File substitutions. ##
  2436. ## ------------------- ##
  2437. _ASBOX
  2438. echo
  2439. for ac_var in $ac_subst_files
  2440. do
  2441. eval ac_val=\$$ac_var
  2442. case $ac_val in
  2443. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2444. esac
  2445. $as_echo "$ac_var='\''$ac_val'\''"
  2446. done | sort
  2447. echo
  2448. fi
  2449. if test -s confdefs.h; then
  2450. cat <<\_ASBOX
  2451. ## ----------- ##
  2452. ## confdefs.h. ##
  2453. ## ----------- ##
  2454. _ASBOX
  2455. echo
  2456. cat confdefs.h
  2457. echo
  2458. fi
  2459. test "$ac_signal" != 0 &&
  2460. $as_echo "$as_me: caught signal $ac_signal"
  2461. $as_echo "$as_me: exit $exit_status"
  2462. } >&5
  2463. rm -f core *.core core.conftest.* &&
  2464. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2465. exit $exit_status
  2466. ' 0
  2467. for ac_signal in 1 2 13 15; do
  2468. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2469. done
  2470. ac_signal=0
  2471. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2472. rm -f -r conftest* confdefs.h
  2473. $as_echo "/* confdefs.h */" > confdefs.h
  2474. # Predefined preprocessor variables.
  2475. cat >>confdefs.h <<_ACEOF
  2476. #define PACKAGE_NAME "$PACKAGE_NAME"
  2477. _ACEOF
  2478. cat >>confdefs.h <<_ACEOF
  2479. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2480. _ACEOF
  2481. cat >>confdefs.h <<_ACEOF
  2482. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2483. _ACEOF
  2484. cat >>confdefs.h <<_ACEOF
  2485. #define PACKAGE_STRING "$PACKAGE_STRING"
  2486. _ACEOF
  2487. cat >>confdefs.h <<_ACEOF
  2488. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2489. _ACEOF
  2490. cat >>confdefs.h <<_ACEOF
  2491. #define PACKAGE_URL "$PACKAGE_URL"
  2492. _ACEOF
  2493. # Let the site file select an alternate cache file if it wants to.
  2494. # Prefer an explicitly selected file to automatically selected ones.
  2495. ac_site_file1=NONE
  2496. ac_site_file2=NONE
  2497. if test -n "$CONFIG_SITE"; then
  2498. ac_site_file1=$CONFIG_SITE
  2499. elif test "x$prefix" != xNONE; then
  2500. ac_site_file1=$prefix/share/config.site
  2501. ac_site_file2=$prefix/etc/config.site
  2502. else
  2503. ac_site_file1=$ac_default_prefix/share/config.site
  2504. ac_site_file2=$ac_default_prefix/etc/config.site
  2505. fi
  2506. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2507. do
  2508. test "x$ac_site_file" = xNONE && continue
  2509. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2511. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2512. sed 's/^/| /' "$ac_site_file" >&5
  2513. . "$ac_site_file"
  2514. fi
  2515. done
  2516. if test -r "$cache_file"; then
  2517. # Some versions of bash will fail to source /dev/null (special files
  2518. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2519. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2521. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2522. case $cache_file in
  2523. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2524. *) . "./$cache_file";;
  2525. esac
  2526. fi
  2527. else
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2529. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2530. >$cache_file
  2531. fi
  2532. gt_needs="$gt_needs "
  2533. as_fn_append ac_header_list " stdlib.h"
  2534. as_fn_append ac_header_list " unistd.h"
  2535. as_fn_append ac_header_list " sys/param.h"
  2536. as_fn_append ac_header_list " sys/time.h"
  2537. as_fn_append ac_func_list " alarm"
  2538. # Check that the precious variables saved in the cache have kept the same
  2539. # value.
  2540. ac_cache_corrupted=false
  2541. for ac_var in $ac_precious_vars; do
  2542. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2543. eval ac_new_set=\$ac_env_${ac_var}_set
  2544. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2545. eval ac_new_val=\$ac_env_${ac_var}_value
  2546. case $ac_old_set,$ac_new_set in
  2547. set,)
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2549. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2550. ac_cache_corrupted=: ;;
  2551. ,set)
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2553. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2554. ac_cache_corrupted=: ;;
  2555. ,);;
  2556. *)
  2557. if test "x$ac_old_val" != "x$ac_new_val"; then
  2558. # differences in whitespace do not lead to failure.
  2559. ac_old_val_w=`echo x $ac_old_val`
  2560. ac_new_val_w=`echo x $ac_new_val`
  2561. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2563. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2564. ac_cache_corrupted=:
  2565. else
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2567. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2568. eval $ac_var=\$ac_old_val
  2569. fi
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2571. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2573. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2574. fi;;
  2575. esac
  2576. # Pass precious variables to config.status.
  2577. if test "$ac_new_set" = set; then
  2578. case $ac_new_val in
  2579. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2580. *) ac_arg=$ac_var=$ac_new_val ;;
  2581. esac
  2582. case " $ac_configure_args " in
  2583. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2584. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2585. esac
  2586. fi
  2587. done
  2588. if $ac_cache_corrupted; then
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2591. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2592. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2593. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2594. fi
  2595. ## -------------------- ##
  2596. ## Main body of script. ##
  2597. ## -------------------- ##
  2598. ac_ext=c
  2599. ac_cpp='$CPP $CPPFLAGS'
  2600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2603. ac_aux_dir=
  2604. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2605. for ac_t in install-sh install.sh shtool; do
  2606. if test -f "$ac_dir/$ac_t"; then
  2607. ac_aux_dir=$ac_dir
  2608. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2609. break 2
  2610. fi
  2611. done
  2612. done
  2613. if test -z "$ac_aux_dir"; then
  2614. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2615. fi
  2616. # These three variables are undocumented and unsupported,
  2617. # and are intended to be withdrawn in a future Autoconf release.
  2618. # They can cause serious problems if a builder's source tree is in a directory
  2619. # whose full name contains unusual characters.
  2620. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2621. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2622. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2623. # Make sure we can run config.sub.
  2624. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2625. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2627. $as_echo_n "checking build system type... " >&6; }
  2628. if test "${ac_cv_build+set}" = set; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. ac_build_alias=$build_alias
  2632. test "x$ac_build_alias" = x &&
  2633. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2634. test "x$ac_build_alias" = x &&
  2635. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2636. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2637. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2638. fi
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2640. $as_echo "$ac_cv_build" >&6; }
  2641. case $ac_cv_build in
  2642. *-*-*) ;;
  2643. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2644. esac
  2645. build=$ac_cv_build
  2646. ac_save_IFS=$IFS; IFS='-'
  2647. set x $ac_cv_build
  2648. shift
  2649. build_cpu=$1
  2650. build_vendor=$2
  2651. shift; shift
  2652. # Remember, the first character of IFS is used to create $*,
  2653. # except with old shells:
  2654. build_os=$*
  2655. IFS=$ac_save_IFS
  2656. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2658. $as_echo_n "checking host system type... " >&6; }
  2659. if test "${ac_cv_host+set}" = set; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. if test "x$host_alias" = x; then
  2663. ac_cv_host=$ac_cv_build
  2664. else
  2665. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2666. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2667. fi
  2668. fi
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2670. $as_echo "$ac_cv_host" >&6; }
  2671. case $ac_cv_host in
  2672. *-*-*) ;;
  2673. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2674. esac
  2675. host=$ac_cv_host
  2676. ac_save_IFS=$IFS; IFS='-'
  2677. set x $ac_cv_host
  2678. shift
  2679. host_cpu=$1
  2680. host_vendor=$2
  2681. shift; shift
  2682. # Remember, the first character of IFS is used to create $*,
  2683. # except with old shells:
  2684. host_os=$*
  2685. IFS=$ac_save_IFS
  2686. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2688. $as_echo_n "checking target system type... " >&6; }
  2689. if test "${ac_cv_target+set}" = set; then :
  2690. $as_echo_n "(cached) " >&6
  2691. else
  2692. if test "x$target_alias" = x; then
  2693. ac_cv_target=$ac_cv_host
  2694. else
  2695. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2696. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2697. fi
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2700. $as_echo "$ac_cv_target" >&6; }
  2701. case $ac_cv_target in
  2702. *-*-*) ;;
  2703. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2704. esac
  2705. target=$ac_cv_target
  2706. ac_save_IFS=$IFS; IFS='-'
  2707. set x $ac_cv_target
  2708. shift
  2709. target_cpu=$1
  2710. target_vendor=$2
  2711. shift; shift
  2712. # Remember, the first character of IFS is used to create $*,
  2713. # except with old shells:
  2714. target_os=$*
  2715. IFS=$ac_save_IFS
  2716. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2717. # The aliases save the names the user supplied, while $host etc.
  2718. # will get canonicalized.
  2719. test -n "$target_alias" &&
  2720. test "$program_prefix$program_suffix$program_transform_name" = \
  2721. NONENONEs,x,x, &&
  2722. program_prefix=${target_alias}-
  2723. am__api_version='1.11'
  2724. # Find a good install program. We prefer a C program (faster),
  2725. # so one script is as good as another. But avoid the broken or
  2726. # incompatible versions:
  2727. # SysV /etc/install, /usr/sbin/install
  2728. # SunOS /usr/etc/install
  2729. # IRIX /sbin/install
  2730. # AIX /bin/install
  2731. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2732. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2733. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2734. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2735. # OS/2's system install, which has a completely different semantic
  2736. # ./install, which can be erroneously created by make from ./install.sh.
  2737. # Reject install programs that cannot install multiple files.
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2739. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2740. if test -z "$INSTALL"; then
  2741. if test "${ac_cv_path_install+set}" = set; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. # Account for people who put trailing slashes in PATH elements.
  2750. case $as_dir/ in #((
  2751. ./ | .// | /[cC]/* | \
  2752. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2753. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2754. /usr/ucb/* ) ;;
  2755. *)
  2756. # OSF1 and SCO ODT 3.0 have their own names for install.
  2757. # Don't use installbsd from OSF since it installs stuff as root
  2758. # by default.
  2759. for ac_prog in ginstall scoinst install; do
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2762. if test $ac_prog = install &&
  2763. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2764. # AIX install. It has an incompatible calling convention.
  2765. :
  2766. elif test $ac_prog = install &&
  2767. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2768. # program-specific install script used by HP pwplus--don't use.
  2769. :
  2770. else
  2771. rm -rf conftest.one conftest.two conftest.dir
  2772. echo one > conftest.one
  2773. echo two > conftest.two
  2774. mkdir conftest.dir
  2775. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2776. test -s conftest.one && test -s conftest.two &&
  2777. test -s conftest.dir/conftest.one &&
  2778. test -s conftest.dir/conftest.two
  2779. then
  2780. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2781. break 3
  2782. fi
  2783. fi
  2784. fi
  2785. done
  2786. done
  2787. ;;
  2788. esac
  2789. done
  2790. IFS=$as_save_IFS
  2791. rm -rf conftest.one conftest.two conftest.dir
  2792. fi
  2793. if test "${ac_cv_path_install+set}" = set; then
  2794. INSTALL=$ac_cv_path_install
  2795. else
  2796. # As a last resort, use the slow shell script. Don't cache a
  2797. # value for INSTALL within a source directory, because that will
  2798. # break other packages using the cache if that directory is
  2799. # removed, or if the value is a relative name.
  2800. INSTALL=$ac_install_sh
  2801. fi
  2802. fi
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2804. $as_echo "$INSTALL" >&6; }
  2805. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2806. # It thinks the first close brace ends the variable substitution.
  2807. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2808. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2809. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2811. $as_echo_n "checking whether build environment is sane... " >&6; }
  2812. # Just in case
  2813. sleep 1
  2814. echo timestamp > conftest.file
  2815. # Reject unsafe characters in $srcdir or the absolute working directory
  2816. # name. Accept space and tab only in the latter.
  2817. am_lf='
  2818. '
  2819. case `pwd` in
  2820. *[\\\"\#\$\&\'\`$am_lf]*)
  2821. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2822. esac
  2823. case $srcdir in
  2824. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2825. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2826. esac
  2827. # Do `set' in a subshell so we don't clobber the current shell's
  2828. # arguments. Must try -L first in case configure is actually a
  2829. # symlink; some systems play weird games with the mod time of symlinks
  2830. # (eg FreeBSD returns the mod time of the symlink's containing
  2831. # directory).
  2832. if (
  2833. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2834. if test "$*" = "X"; then
  2835. # -L didn't work.
  2836. set X `ls -t "$srcdir/configure" conftest.file`
  2837. fi
  2838. rm -f conftest.file
  2839. if test "$*" != "X $srcdir/configure conftest.file" \
  2840. && test "$*" != "X conftest.file $srcdir/configure"; then
  2841. # If neither matched, then we have a broken ls. This can happen
  2842. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2843. # broken ls alias from the environment. This has actually
  2844. # happened. Such a system could not be considered "sane".
  2845. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2846. alias in your environment" "$LINENO" 5
  2847. fi
  2848. test "$2" = conftest.file
  2849. )
  2850. then
  2851. # Ok.
  2852. :
  2853. else
  2854. as_fn_error "newly created file is older than distributed files!
  2855. Check your system clock" "$LINENO" 5
  2856. fi
  2857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2858. $as_echo "yes" >&6; }
  2859. test "$program_prefix" != NONE &&
  2860. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2861. # Use a double $ so make ignores it.
  2862. test "$program_suffix" != NONE &&
  2863. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2864. # Double any \ or $.
  2865. # By default was `s,x,x', remove it if useless.
  2866. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2867. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2868. # expand $ac_aux_dir to an absolute path
  2869. am_aux_dir=`cd $ac_aux_dir && pwd`
  2870. if test x"${MISSING+set}" != xset; then
  2871. case $am_aux_dir in
  2872. *\ * | *\ *)
  2873. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2874. *)
  2875. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2876. esac
  2877. fi
  2878. # Use eval to expand $SHELL
  2879. if eval "$MISSING --run true"; then
  2880. am_missing_run="$MISSING --run "
  2881. else
  2882. am_missing_run=
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2884. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2885. fi
  2886. if test x"${install_sh}" != xset; then
  2887. case $am_aux_dir in
  2888. *\ * | *\ *)
  2889. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2890. *)
  2891. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2892. esac
  2893. fi
  2894. # Installed binaries are usually stripped using `strip' when the user
  2895. # run `make install-strip'. However `strip' might not be the right
  2896. # tool to use in cross-compilation environments, therefore Automake
  2897. # will honor the `STRIP' environment variable to overrule this program.
  2898. if test "$cross_compiling" != no; then
  2899. if test -n "$ac_tool_prefix"; then
  2900. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2901. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2903. $as_echo_n "checking for $ac_word... " >&6; }
  2904. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. if test -n "$STRIP"; then
  2908. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2909. else
  2910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2911. for as_dir in $PATH
  2912. do
  2913. IFS=$as_save_IFS
  2914. test -z "$as_dir" && as_dir=.
  2915. for ac_exec_ext in '' $ac_executable_extensions; do
  2916. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2917. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2919. break 2
  2920. fi
  2921. done
  2922. done
  2923. IFS=$as_save_IFS
  2924. fi
  2925. fi
  2926. STRIP=$ac_cv_prog_STRIP
  2927. if test -n "$STRIP"; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2929. $as_echo "$STRIP" >&6; }
  2930. else
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2932. $as_echo "no" >&6; }
  2933. fi
  2934. fi
  2935. if test -z "$ac_cv_prog_STRIP"; then
  2936. ac_ct_STRIP=$STRIP
  2937. # Extract the first word of "strip", so it can be a program name with args.
  2938. set dummy strip; ac_word=$2
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2940. $as_echo_n "checking for $ac_word... " >&6; }
  2941. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2942. $as_echo_n "(cached) " >&6
  2943. else
  2944. if test -n "$ac_ct_STRIP"; then
  2945. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2946. else
  2947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2948. for as_dir in $PATH
  2949. do
  2950. IFS=$as_save_IFS
  2951. test -z "$as_dir" && as_dir=.
  2952. for ac_exec_ext in '' $ac_executable_extensions; do
  2953. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2954. ac_cv_prog_ac_ct_STRIP="strip"
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2956. break 2
  2957. fi
  2958. done
  2959. done
  2960. IFS=$as_save_IFS
  2961. fi
  2962. fi
  2963. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2964. if test -n "$ac_ct_STRIP"; then
  2965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2966. $as_echo "$ac_ct_STRIP" >&6; }
  2967. else
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2969. $as_echo "no" >&6; }
  2970. fi
  2971. if test "x$ac_ct_STRIP" = x; then
  2972. STRIP=":"
  2973. else
  2974. case $cross_compiling:$ac_tool_warned in
  2975. yes:)
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2978. ac_tool_warned=yes ;;
  2979. esac
  2980. STRIP=$ac_ct_STRIP
  2981. fi
  2982. else
  2983. STRIP="$ac_cv_prog_STRIP"
  2984. fi
  2985. fi
  2986. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2988. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2989. if test -z "$MKDIR_P"; then
  2990. if test "${ac_cv_path_mkdir+set}" = set; then :
  2991. $as_echo_n "(cached) " >&6
  2992. else
  2993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2994. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2995. do
  2996. IFS=$as_save_IFS
  2997. test -z "$as_dir" && as_dir=.
  2998. for ac_prog in mkdir gmkdir; do
  2999. for ac_exec_ext in '' $ac_executable_extensions; do
  3000. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3001. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3002. 'mkdir (GNU coreutils) '* | \
  3003. 'mkdir (coreutils) '* | \
  3004. 'mkdir (fileutils) '4.1*)
  3005. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3006. break 3;;
  3007. esac
  3008. done
  3009. done
  3010. done
  3011. IFS=$as_save_IFS
  3012. fi
  3013. test -d ./--version && rmdir ./--version
  3014. if test "${ac_cv_path_mkdir+set}" = set; then
  3015. MKDIR_P="$ac_cv_path_mkdir -p"
  3016. else
  3017. # As a last resort, use the slow shell script. Don't cache a
  3018. # value for MKDIR_P within a source directory, because that will
  3019. # break other packages using the cache if that directory is
  3020. # removed, or if the value is a relative name.
  3021. MKDIR_P="$ac_install_sh -d"
  3022. fi
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3025. $as_echo "$MKDIR_P" >&6; }
  3026. mkdir_p="$MKDIR_P"
  3027. case $mkdir_p in
  3028. [\\/$]* | ?:[\\/]*) ;;
  3029. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3030. esac
  3031. for ac_prog in gawk mawk nawk awk
  3032. do
  3033. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3034. set dummy $ac_prog; ac_word=$2
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3036. $as_echo_n "checking for $ac_word... " >&6; }
  3037. if test "${ac_cv_prog_AWK+set}" = set; then :
  3038. $as_echo_n "(cached) " >&6
  3039. else
  3040. if test -n "$AWK"; then
  3041. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3042. else
  3043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3044. for as_dir in $PATH
  3045. do
  3046. IFS=$as_save_IFS
  3047. test -z "$as_dir" && as_dir=.
  3048. for ac_exec_ext in '' $ac_executable_extensions; do
  3049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3050. ac_cv_prog_AWK="$ac_prog"
  3051. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3052. break 2
  3053. fi
  3054. done
  3055. done
  3056. IFS=$as_save_IFS
  3057. fi
  3058. fi
  3059. AWK=$ac_cv_prog_AWK
  3060. if test -n "$AWK"; then
  3061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3062. $as_echo "$AWK" >&6; }
  3063. else
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3065. $as_echo "no" >&6; }
  3066. fi
  3067. test -n "$AWK" && break
  3068. done
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3070. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3071. set x ${MAKE-make}
  3072. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3073. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. cat >conftest.make <<\_ACEOF
  3077. SHELL = /bin/sh
  3078. all:
  3079. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3080. _ACEOF
  3081. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3082. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3083. *@@@%%%=?*=@@@%%%*)
  3084. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3085. *)
  3086. eval ac_cv_prog_make_${ac_make}_set=no;;
  3087. esac
  3088. rm -f conftest.make
  3089. fi
  3090. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3092. $as_echo "yes" >&6; }
  3093. SET_MAKE=
  3094. else
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3096. $as_echo "no" >&6; }
  3097. SET_MAKE="MAKE=${MAKE-make}"
  3098. fi
  3099. rm -rf .tst 2>/dev/null
  3100. mkdir .tst 2>/dev/null
  3101. if test -d .tst; then
  3102. am__leading_dot=.
  3103. else
  3104. am__leading_dot=_
  3105. fi
  3106. rmdir .tst 2>/dev/null
  3107. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3108. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3109. # is not polluted with repeated "-I."
  3110. am__isrc=' -I$(srcdir)'
  3111. # test to see if srcdir already configured
  3112. if test -f $srcdir/config.status; then
  3113. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3114. fi
  3115. fi
  3116. # test whether we have cygpath
  3117. if test -z "$CYGPATH_W"; then
  3118. if (cygpath --version) >/dev/null 2>/dev/null; then
  3119. CYGPATH_W='cygpath -w'
  3120. else
  3121. CYGPATH_W=echo
  3122. fi
  3123. fi
  3124. # Define the identity of the package.
  3125. PACKAGE='aria2'
  3126. VERSION='1.9.2'
  3127. cat >>confdefs.h <<_ACEOF
  3128. #define PACKAGE "$PACKAGE"
  3129. _ACEOF
  3130. cat >>confdefs.h <<_ACEOF
  3131. #define VERSION "$VERSION"
  3132. _ACEOF
  3133. # Some tools Automake needs.
  3134. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3135. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3136. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3137. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3138. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3139. # We need awk for the "check" target. The system "awk" is bad on
  3140. # some platforms.
  3141. # Always define AMTAR for backward compatibility.
  3142. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3143. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3144. # Check whether --with-cppunit-prefix was given.
  3145. if test "${with_cppunit_prefix+set}" = set; then :
  3146. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  3147. else
  3148. cppunit_config_prefix=""
  3149. fi
  3150. # Check whether --with-cppunit-exec-prefix was given.
  3151. if test "${with_cppunit_exec_prefix+set}" = set; then :
  3152. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  3153. else
  3154. cppunit_config_exec_prefix=""
  3155. fi
  3156. if test x$cppunit_config_exec_prefix != x ; then
  3157. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  3158. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3159. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  3160. fi
  3161. fi
  3162. if test x$cppunit_config_prefix != x ; then
  3163. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  3164. if test x${CPPUNIT_CONFIG+set} != xset ; then
  3165. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  3166. fi
  3167. fi
  3168. # Extract the first word of "cppunit-config", so it can be a program name with args.
  3169. set dummy cppunit-config; ac_word=$2
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3171. $as_echo_n "checking for $ac_word... " >&6; }
  3172. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then :
  3173. $as_echo_n "(cached) " >&6
  3174. else
  3175. case $CPPUNIT_CONFIG in
  3176. [\\/]* | ?:[\\/]*)
  3177. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  3178. ;;
  3179. *)
  3180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3181. for as_dir in $PATH
  3182. do
  3183. IFS=$as_save_IFS
  3184. test -z "$as_dir" && as_dir=.
  3185. for ac_exec_ext in '' $ac_executable_extensions; do
  3186. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3187. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3189. break 2
  3190. fi
  3191. done
  3192. done
  3193. IFS=$as_save_IFS
  3194. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  3195. ;;
  3196. esac
  3197. fi
  3198. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  3199. if test -n "$CPPUNIT_CONFIG"; then
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
  3201. $as_echo "$CPPUNIT_CONFIG" >&6; }
  3202. else
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3204. $as_echo "no" >&6; }
  3205. fi
  3206. cppunit_version_min=1.10.2
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5
  3208. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  3209. no_cppunit=""
  3210. if test "$CPPUNIT_CONFIG" = "no" ; then
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3212. $as_echo "no" >&6; }
  3213. no_cppunit=yes
  3214. else
  3215. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  3216. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  3217. cppunit_version=`$CPPUNIT_CONFIG --version`
  3218. cppunit_major_version=`echo $cppunit_version | \
  3219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3220. cppunit_minor_version=`echo $cppunit_version | \
  3221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3222. cppunit_micro_version=`echo $cppunit_version | \
  3223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3224. cppunit_major_min=`echo $cppunit_version_min | \
  3225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3226. if test "x${cppunit_major_min}" = "x" ; then
  3227. cppunit_major_min=0
  3228. fi
  3229. cppunit_minor_min=`echo $cppunit_version_min | \
  3230. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3231. if test "x${cppunit_minor_min}" = "x" ; then
  3232. cppunit_minor_min=0
  3233. fi
  3234. cppunit_micro_min=`echo $cppunit_version_min | \
  3235. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3236. if test "x${cppunit_micro_min}" = "x" ; then
  3237. cppunit_micro_min=0
  3238. fi
  3239. cppunit_version_proper=`expr \
  3240. $cppunit_major_version \> $cppunit_major_min \| \
  3241. $cppunit_major_version \= $cppunit_major_min \& \
  3242. $cppunit_minor_version \> $cppunit_minor_min \| \
  3243. $cppunit_major_version \= $cppunit_major_min \& \
  3244. $cppunit_minor_version \= $cppunit_minor_min \& \
  3245. $cppunit_micro_version \>= $cppunit_micro_min `
  3246. if test "$cppunit_version_proper" = "1" ; then
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  3248. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  3249. else
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3251. $as_echo "no" >&6; }
  3252. no_cppunit=yes
  3253. fi
  3254. fi
  3255. if test "x$no_cppunit" = x ; then
  3256. :
  3257. else
  3258. CPPUNIT_CFLAGS=""
  3259. CPPUNIT_LIBS=""
  3260. :
  3261. fi
  3262. ac_config_headers="$ac_config_headers config.h"
  3263. case "$target" in
  3264. *mingw*|*cygwin*)
  3265. WINSOCK_LIBS="-lws2_32"
  3266. LIBS="-lws2_32 -lcrypto -lwsock32 -lgdi32 -lwinmm $LIBS"
  3267. ;;
  3268. esac
  3269. cat >>confdefs.h <<_ACEOF
  3270. #define TARGET "$target"
  3271. _ACEOF
  3272. # Checks for arguments.
  3273. # Check whether --with-gnutls was given.
  3274. if test "${with_gnutls+set}" = set; then :
  3275. withval=$with_gnutls; with_gnutls_requested=$withval with_gnutls=$withval
  3276. else
  3277. with_gnutls=yes
  3278. fi
  3279. # Check whether --with-openssl was given.
  3280. if test "${with_openssl+set}" = set; then :
  3281. withval=$with_openssl; with_openssl_requested=$withval with_openssl=$withval
  3282. else
  3283. with_openssl=yes
  3284. fi
  3285. # Check whether --with-sqlite3 was given.
  3286. if test "${with_sqlite3+set}" = set; then :
  3287. withval=$with_sqlite3; with_sqlite3_requested=$withval with_sqlite3=$withval
  3288. else
  3289. with_sqlite3=yes
  3290. fi
  3291. # Check whether --with-libxml2 was given.
  3292. if test "${with_libxml2+set}" = set; then :
  3293. withval=$with_libxml2; with_libxml2_requested=$withval with_libxml2=$withval
  3294. else
  3295. with_libxml2=yes
  3296. fi
  3297. # Check whether --with-libexpat was given.
  3298. if test "${with_libexpat+set}" = set; then :
  3299. withval=$with_libexpat; with_libexpat_requested=$withval with_libexpat=$withval
  3300. else
  3301. with_libexpat=yes
  3302. fi
  3303. # Check whether --with-libcares was given.
  3304. if test "${with_libcares+set}" = set; then :
  3305. withval=$with_libcares; with_libcares_requested=$withval with_libcares=$withval
  3306. else
  3307. with_libcares=yes
  3308. fi
  3309. # Check whether --with-libz was given.
  3310. if test "${with_libz+set}" = set; then :
  3311. withval=$with_libz; with_libz_requested=$withval with_libz=$withval
  3312. else
  3313. with_libz=yes
  3314. fi
  3315. # Check whether --enable-bittorrent was given.
  3316. if test "${enable_bittorrent+set}" = set; then :
  3317. enableval=$enable_bittorrent; enable_bittorrent_requested=$enableval enable_bittorrent=$enableval
  3318. else
  3319. enable_bittorrent=yes
  3320. fi
  3321. # Check whether --enable-metalink was given.
  3322. if test "${enable_metalink+set}" = set; then :
  3323. enableval=$enable_metalink; enable_metalink_requested=$enableval enable_metalink=$enableval
  3324. else
  3325. enable_metalink=yes
  3326. fi
  3327. # Check whether --enable-epoll was given.
  3328. if test "${enable_epoll+set}" = set; then :
  3329. enableval=$enable_epoll; enable_epoll_requested=$enableval enable_epoll=$enableval
  3330. else
  3331. enable_epoll=yes
  3332. fi
  3333. # Check whether --with-ca-bundle was given.
  3334. if test "${with_ca_bundle+set}" = set; then :
  3335. withval=$with_ca_bundle; ca_bundle=$withval
  3336. else
  3337. ca_bundle=""
  3338. fi
  3339. # Checks for programs.
  3340. ac_ext=cpp
  3341. ac_cpp='$CXXCPP $CPPFLAGS'
  3342. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3343. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3344. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3345. if test -z "$CXX"; then
  3346. if test -n "$CCC"; then
  3347. CXX=$CCC
  3348. else
  3349. if test -n "$ac_tool_prefix"; then
  3350. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3351. do
  3352. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3353. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3355. $as_echo_n "checking for $ac_word... " >&6; }
  3356. if test "${ac_cv_prog_CXX+set}" = set; then :
  3357. $as_echo_n "(cached) " >&6
  3358. else
  3359. if test -n "$CXX"; then
  3360. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3361. else
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365. IFS=$as_save_IFS
  3366. test -z "$as_dir" && as_dir=.
  3367. for ac_exec_ext in '' $ac_executable_extensions; do
  3368. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3369. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3371. break 2
  3372. fi
  3373. done
  3374. done
  3375. IFS=$as_save_IFS
  3376. fi
  3377. fi
  3378. CXX=$ac_cv_prog_CXX
  3379. if test -n "$CXX"; then
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3381. $as_echo "$CXX" >&6; }
  3382. else
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3384. $as_echo "no" >&6; }
  3385. fi
  3386. test -n "$CXX" && break
  3387. done
  3388. fi
  3389. if test -z "$CXX"; then
  3390. ac_ct_CXX=$CXX
  3391. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3392. do
  3393. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3394. set dummy $ac_prog; ac_word=$2
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3396. $as_echo_n "checking for $ac_word... " >&6; }
  3397. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. if test -n "$ac_ct_CXX"; then
  3401. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3402. else
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_exec_ext in '' $ac_executable_extensions; do
  3409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3410. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3412. break 2
  3413. fi
  3414. done
  3415. done
  3416. IFS=$as_save_IFS
  3417. fi
  3418. fi
  3419. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3420. if test -n "$ac_ct_CXX"; then
  3421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3422. $as_echo "$ac_ct_CXX" >&6; }
  3423. else
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. fi
  3427. test -n "$ac_ct_CXX" && break
  3428. done
  3429. if test "x$ac_ct_CXX" = x; then
  3430. CXX="g++"
  3431. else
  3432. case $cross_compiling:$ac_tool_warned in
  3433. yes:)
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3436. ac_tool_warned=yes ;;
  3437. esac
  3438. CXX=$ac_ct_CXX
  3439. fi
  3440. fi
  3441. fi
  3442. fi
  3443. # Provide some information about the compiler.
  3444. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3445. set X $ac_compile
  3446. ac_compiler=$2
  3447. for ac_option in --version -v -V -qversion; do
  3448. { { ac_try="$ac_compiler $ac_option >&5"
  3449. case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3454. $as_echo "$ac_try_echo"; } >&5
  3455. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3456. ac_status=$?
  3457. if test -s conftest.err; then
  3458. sed '10a\
  3459. ... rest of stderr output deleted ...
  3460. 10q' conftest.err >conftest.er1
  3461. cat conftest.er1 >&5
  3462. fi
  3463. rm -f conftest.er1 conftest.err
  3464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3465. test $ac_status = 0; }
  3466. done
  3467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3468. /* end confdefs.h. */
  3469. int
  3470. main ()
  3471. {
  3472. ;
  3473. return 0;
  3474. }
  3475. _ACEOF
  3476. ac_clean_files_save=$ac_clean_files
  3477. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3478. # Try to create an executable without -o first, disregard a.out.
  3479. # It will help us diagnose broken compilers, and finding out an intuition
  3480. # of exeext.
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3482. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3483. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3484. # The possible output files:
  3485. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3486. ac_rmfiles=
  3487. for ac_file in $ac_files
  3488. do
  3489. case $ac_file in
  3490. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3491. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3492. esac
  3493. done
  3494. rm -f $ac_rmfiles
  3495. if { { ac_try="$ac_link_default"
  3496. case "(($ac_try" in
  3497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3498. *) ac_try_echo=$ac_try;;
  3499. esac
  3500. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3501. $as_echo "$ac_try_echo"; } >&5
  3502. (eval "$ac_link_default") 2>&5
  3503. ac_status=$?
  3504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3505. test $ac_status = 0; }; then :
  3506. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3507. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3508. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3509. # so that the user can short-circuit this test for compilers unknown to
  3510. # Autoconf.
  3511. for ac_file in $ac_files ''
  3512. do
  3513. test -f "$ac_file" || continue
  3514. case $ac_file in
  3515. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3516. ;;
  3517. [ab].out )
  3518. # We found the default executable, but exeext='' is most
  3519. # certainly right.
  3520. break;;
  3521. *.* )
  3522. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3523. then :; else
  3524. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3525. fi
  3526. # We set ac_cv_exeext here because the later test for it is not
  3527. # safe: cross compilers may not add the suffix if given an `-o'
  3528. # argument, so we may need to know it at that point already.
  3529. # Even if this section looks crufty: it has the advantage of
  3530. # actually working.
  3531. break;;
  3532. * )
  3533. break;;
  3534. esac
  3535. done
  3536. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3537. else
  3538. ac_file=''
  3539. fi
  3540. if test -z "$ac_file"; then :
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3542. $as_echo "no" >&6; }
  3543. $as_echo "$as_me: failed program was:" >&5
  3544. sed 's/^/| /' conftest.$ac_ext >&5
  3545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3547. { as_fn_set_status 77
  3548. as_fn_error "C++ compiler cannot create executables
  3549. See \`config.log' for more details." "$LINENO" 5; }; }
  3550. else
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3552. $as_echo "yes" >&6; }
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3555. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3557. $as_echo "$ac_file" >&6; }
  3558. ac_exeext=$ac_cv_exeext
  3559. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3560. ac_clean_files=$ac_clean_files_save
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3562. $as_echo_n "checking for suffix of executables... " >&6; }
  3563. if { { ac_try="$ac_link"
  3564. case "(($ac_try" in
  3565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3566. *) ac_try_echo=$ac_try;;
  3567. esac
  3568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3569. $as_echo "$ac_try_echo"; } >&5
  3570. (eval "$ac_link") 2>&5
  3571. ac_status=$?
  3572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3573. test $ac_status = 0; }; then :
  3574. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3575. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3576. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3577. # `rm'.
  3578. for ac_file in conftest.exe conftest conftest.*; do
  3579. test -f "$ac_file" || continue
  3580. case $ac_file in
  3581. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3582. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3583. break;;
  3584. * ) break;;
  3585. esac
  3586. done
  3587. else
  3588. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3589. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3590. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3591. See \`config.log' for more details." "$LINENO" 5; }
  3592. fi
  3593. rm -f conftest conftest$ac_cv_exeext
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3595. $as_echo "$ac_cv_exeext" >&6; }
  3596. rm -f conftest.$ac_ext
  3597. EXEEXT=$ac_cv_exeext
  3598. ac_exeext=$EXEEXT
  3599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3600. /* end confdefs.h. */
  3601. #include <stdio.h>
  3602. int
  3603. main ()
  3604. {
  3605. FILE *f = fopen ("conftest.out", "w");
  3606. return ferror (f) || fclose (f) != 0;
  3607. ;
  3608. return 0;
  3609. }
  3610. _ACEOF
  3611. ac_clean_files="$ac_clean_files conftest.out"
  3612. # Check that the compiler produces executables we can run. If not, either
  3613. # the compiler is broken, or we cross compile.
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3615. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3616. if test "$cross_compiling" != yes; then
  3617. { { ac_try="$ac_link"
  3618. case "(($ac_try" in
  3619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3620. *) ac_try_echo=$ac_try;;
  3621. esac
  3622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3623. $as_echo "$ac_try_echo"; } >&5
  3624. (eval "$ac_link") 2>&5
  3625. ac_status=$?
  3626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3627. test $ac_status = 0; }
  3628. if { ac_try='./conftest$ac_cv_exeext'
  3629. { { case "(($ac_try" in
  3630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3631. *) ac_try_echo=$ac_try;;
  3632. esac
  3633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3634. $as_echo "$ac_try_echo"; } >&5
  3635. (eval "$ac_try") 2>&5
  3636. ac_status=$?
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3638. test $ac_status = 0; }; }; then
  3639. cross_compiling=no
  3640. else
  3641. if test "$cross_compiling" = maybe; then
  3642. cross_compiling=yes
  3643. else
  3644. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3646. as_fn_error "cannot run C++ compiled programs.
  3647. If you meant to cross compile, use \`--host'.
  3648. See \`config.log' for more details." "$LINENO" 5; }
  3649. fi
  3650. fi
  3651. fi
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3653. $as_echo "$cross_compiling" >&6; }
  3654. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3655. ac_clean_files=$ac_clean_files_save
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3657. $as_echo_n "checking for suffix of object files... " >&6; }
  3658. if test "${ac_cv_objext+set}" = set; then :
  3659. $as_echo_n "(cached) " >&6
  3660. else
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. int
  3664. main ()
  3665. {
  3666. ;
  3667. return 0;
  3668. }
  3669. _ACEOF
  3670. rm -f conftest.o conftest.obj
  3671. if { { ac_try="$ac_compile"
  3672. case "(($ac_try" in
  3673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3674. *) ac_try_echo=$ac_try;;
  3675. esac
  3676. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3677. $as_echo "$ac_try_echo"; } >&5
  3678. (eval "$ac_compile") 2>&5
  3679. ac_status=$?
  3680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3681. test $ac_status = 0; }; then :
  3682. for ac_file in conftest.o conftest.obj conftest.*; do
  3683. test -f "$ac_file" || continue;
  3684. case $ac_file in
  3685. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3686. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3687. break;;
  3688. esac
  3689. done
  3690. else
  3691. $as_echo "$as_me: failed program was:" >&5
  3692. sed 's/^/| /' conftest.$ac_ext >&5
  3693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3695. as_fn_error "cannot compute suffix of object files: cannot compile
  3696. See \`config.log' for more details." "$LINENO" 5; }
  3697. fi
  3698. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3699. fi
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3701. $as_echo "$ac_cv_objext" >&6; }
  3702. OBJEXT=$ac_cv_objext
  3703. ac_objext=$OBJEXT
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3705. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3706. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3710. /* end confdefs.h. */
  3711. int
  3712. main ()
  3713. {
  3714. #ifndef __GNUC__
  3715. choke me
  3716. #endif
  3717. ;
  3718. return 0;
  3719. }
  3720. _ACEOF
  3721. if ac_fn_cxx_try_compile "$LINENO"; then :
  3722. ac_compiler_gnu=yes
  3723. else
  3724. ac_compiler_gnu=no
  3725. fi
  3726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3727. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3728. fi
  3729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3730. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3731. if test $ac_compiler_gnu = yes; then
  3732. GXX=yes
  3733. else
  3734. GXX=
  3735. fi
  3736. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3737. ac_save_CXXFLAGS=$CXXFLAGS
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3739. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3740. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3744. ac_cxx_werror_flag=yes
  3745. ac_cv_prog_cxx_g=no
  3746. CXXFLAGS="-g"
  3747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3748. /* end confdefs.h. */
  3749. int
  3750. main ()
  3751. {
  3752. ;
  3753. return 0;
  3754. }
  3755. _ACEOF
  3756. if ac_fn_cxx_try_compile "$LINENO"; then :
  3757. ac_cv_prog_cxx_g=yes
  3758. else
  3759. CXXFLAGS=""
  3760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3761. /* end confdefs.h. */
  3762. int
  3763. main ()
  3764. {
  3765. ;
  3766. return 0;
  3767. }
  3768. _ACEOF
  3769. if ac_fn_cxx_try_compile "$LINENO"; then :
  3770. else
  3771. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3772. CXXFLAGS="-g"
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_cxx_try_compile "$LINENO"; then :
  3783. ac_cv_prog_cxx_g=yes
  3784. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. fi
  3789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3790. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3791. fi
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3793. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3794. if test "$ac_test_CXXFLAGS" = set; then
  3795. CXXFLAGS=$ac_save_CXXFLAGS
  3796. elif test $ac_cv_prog_cxx_g = yes; then
  3797. if test "$GXX" = yes; then
  3798. CXXFLAGS="-g -O2"
  3799. else
  3800. CXXFLAGS="-g"
  3801. fi
  3802. else
  3803. if test "$GXX" = yes; then
  3804. CXXFLAGS="-O2"
  3805. else
  3806. CXXFLAGS=
  3807. fi
  3808. fi
  3809. ac_ext=c
  3810. ac_cpp='$CPP $CPPFLAGS'
  3811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3814. DEPDIR="${am__leading_dot}deps"
  3815. ac_config_commands="$ac_config_commands depfiles"
  3816. am_make=${MAKE-make}
  3817. cat > confinc << 'END'
  3818. am__doit:
  3819. @echo this is the am__doit target
  3820. .PHONY: am__doit
  3821. END
  3822. # If we don't find an include directive, just comment out the code.
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3824. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3825. am__include="#"
  3826. am__quote=
  3827. _am_result=none
  3828. # First try GNU make style include.
  3829. echo "include confinc" > confmf
  3830. # Ignore all kinds of additional output from `make'.
  3831. case `$am_make -s -f confmf 2> /dev/null` in #(
  3832. *the\ am__doit\ target*)
  3833. am__include=include
  3834. am__quote=
  3835. _am_result=GNU
  3836. ;;
  3837. esac
  3838. # Now try BSD make style include.
  3839. if test "$am__include" = "#"; then
  3840. echo '.include "confinc"' > confmf
  3841. case `$am_make -s -f confmf 2> /dev/null` in #(
  3842. *the\ am__doit\ target*)
  3843. am__include=.include
  3844. am__quote="\""
  3845. _am_result=BSD
  3846. ;;
  3847. esac
  3848. fi
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3850. $as_echo "$_am_result" >&6; }
  3851. rm -f confinc confmf
  3852. # Check whether --enable-dependency-tracking was given.
  3853. if test "${enable_dependency_tracking+set}" = set; then :
  3854. enableval=$enable_dependency_tracking;
  3855. fi
  3856. if test "x$enable_dependency_tracking" != xno; then
  3857. am_depcomp="$ac_aux_dir/depcomp"
  3858. AMDEPBACKSLASH='\'
  3859. fi
  3860. if test "x$enable_dependency_tracking" != xno; then
  3861. AMDEP_TRUE=
  3862. AMDEP_FALSE='#'
  3863. else
  3864. AMDEP_TRUE='#'
  3865. AMDEP_FALSE=
  3866. fi
  3867. depcc="$CXX" am_compiler_list=
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3869. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3870. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3874. # We make a subdir and do the tests there. Otherwise we can end up
  3875. # making bogus files that we don't know about and never remove. For
  3876. # instance it was reported that on HP-UX the gcc test will end up
  3877. # making a dummy file named `D' -- because `-MD' means `put the output
  3878. # in D'.
  3879. mkdir conftest.dir
  3880. # Copy depcomp to subdir because otherwise we won't find it if we're
  3881. # using a relative directory.
  3882. cp "$am_depcomp" conftest.dir
  3883. cd conftest.dir
  3884. # We will build objects and dependencies in a subdirectory because
  3885. # it helps to detect inapplicable dependency modes. For instance
  3886. # both Tru64's cc and ICC support -MD to output dependencies as a
  3887. # side effect of compilation, but ICC will put the dependencies in
  3888. # the current directory while Tru64 will put them in the object
  3889. # directory.
  3890. mkdir sub
  3891. am_cv_CXX_dependencies_compiler_type=none
  3892. if test "$am_compiler_list" = ""; then
  3893. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3894. fi
  3895. am__universal=false
  3896. case " $depcc " in #(
  3897. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3898. esac
  3899. for depmode in $am_compiler_list; do
  3900. # Setup a source with many dependencies, because some compilers
  3901. # like to wrap large dependency lists on column 80 (with \), and
  3902. # we should not choose a depcomp mode which is confused by this.
  3903. #
  3904. # We need to recreate these files for each test, as the compiler may
  3905. # overwrite some of them when testing with obscure command lines.
  3906. # This happens at least with the AIX C compiler.
  3907. : > sub/conftest.c
  3908. for i in 1 2 3 4 5 6; do
  3909. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3910. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3911. # Solaris 8's {/usr,}/bin/sh.
  3912. touch sub/conftst$i.h
  3913. done
  3914. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3915. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3916. # mode. It turns out that the SunPro C++ compiler does not properly
  3917. # handle `-M -o', and we need to detect this. Also, some Intel
  3918. # versions had trouble with output in subdirs
  3919. am__obj=sub/conftest.${OBJEXT-o}
  3920. am__minus_obj="-o $am__obj"
  3921. case $depmode in
  3922. gcc)
  3923. # This depmode causes a compiler race in universal mode.
  3924. test "$am__universal" = false || continue
  3925. ;;
  3926. nosideeffect)
  3927. # after this tag, mechanisms are not by side-effect, so they'll
  3928. # only be used when explicitly requested
  3929. if test "x$enable_dependency_tracking" = xyes; then
  3930. continue
  3931. else
  3932. break
  3933. fi
  3934. ;;
  3935. msvisualcpp | msvcmsys)
  3936. # This compiler won't grok `-c -o', but also, the minuso test has
  3937. # not run yet. These depmodes are late enough in the game, and
  3938. # so weak that their functioning should not be impacted.
  3939. am__obj=conftest.${OBJEXT-o}
  3940. am__minus_obj=
  3941. ;;
  3942. none) break ;;
  3943. esac
  3944. if depmode=$depmode \
  3945. source=sub/conftest.c object=$am__obj \
  3946. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3947. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3948. >/dev/null 2>conftest.err &&
  3949. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3950. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3951. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3952. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3953. # icc doesn't choke on unknown options, it will just issue warnings
  3954. # or remarks (even with -Werror). So we grep stderr for any message
  3955. # that says an option was ignored or not supported.
  3956. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3957. # icc: Command line warning: ignoring option '-M'; no argument required
  3958. # The diagnosis changed in icc 8.0:
  3959. # icc: Command line remark: option '-MP' not supported
  3960. if (grep 'ignoring option' conftest.err ||
  3961. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3962. am_cv_CXX_dependencies_compiler_type=$depmode
  3963. break
  3964. fi
  3965. fi
  3966. done
  3967. cd ..
  3968. rm -rf conftest.dir
  3969. else
  3970. am_cv_CXX_dependencies_compiler_type=none
  3971. fi
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3974. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3975. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3976. if
  3977. test "x$enable_dependency_tracking" != xno \
  3978. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3979. am__fastdepCXX_TRUE=
  3980. am__fastdepCXX_FALSE='#'
  3981. else
  3982. am__fastdepCXX_TRUE='#'
  3983. am__fastdepCXX_FALSE=
  3984. fi
  3985. ac_ext=c
  3986. ac_cpp='$CPP $CPPFLAGS'
  3987. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3988. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3989. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3990. if test -n "$ac_tool_prefix"; then
  3991. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3992. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3994. $as_echo_n "checking for $ac_word... " >&6; }
  3995. if test "${ac_cv_prog_CC+set}" = set; then :
  3996. $as_echo_n "(cached) " >&6
  3997. else
  3998. if test -n "$CC"; then
  3999. ac_cv_prog_CC="$CC" # Let the user override the test.
  4000. else
  4001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4002. for as_dir in $PATH
  4003. do
  4004. IFS=$as_save_IFS
  4005. test -z "$as_dir" && as_dir=.
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4008. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4009. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4010. break 2
  4011. fi
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. fi
  4016. fi
  4017. CC=$ac_cv_prog_CC
  4018. if test -n "$CC"; then
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4020. $as_echo "$CC" >&6; }
  4021. else
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4023. $as_echo "no" >&6; }
  4024. fi
  4025. fi
  4026. if test -z "$ac_cv_prog_CC"; then
  4027. ac_ct_CC=$CC
  4028. # Extract the first word of "gcc", so it can be a program name with args.
  4029. set dummy gcc; ac_word=$2
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4031. $as_echo_n "checking for $ac_word... " >&6; }
  4032. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4033. $as_echo_n "(cached) " >&6
  4034. else
  4035. if test -n "$ac_ct_CC"; then
  4036. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4037. else
  4038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4039. for as_dir in $PATH
  4040. do
  4041. IFS=$as_save_IFS
  4042. test -z "$as_dir" && as_dir=.
  4043. for ac_exec_ext in '' $ac_executable_extensions; do
  4044. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4045. ac_cv_prog_ac_ct_CC="gcc"
  4046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4047. break 2
  4048. fi
  4049. done
  4050. done
  4051. IFS=$as_save_IFS
  4052. fi
  4053. fi
  4054. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4055. if test -n "$ac_ct_CC"; then
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4057. $as_echo "$ac_ct_CC" >&6; }
  4058. else
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4060. $as_echo "no" >&6; }
  4061. fi
  4062. if test "x$ac_ct_CC" = x; then
  4063. CC=""
  4064. else
  4065. case $cross_compiling:$ac_tool_warned in
  4066. yes:)
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4068. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4069. ac_tool_warned=yes ;;
  4070. esac
  4071. CC=$ac_ct_CC
  4072. fi
  4073. else
  4074. CC="$ac_cv_prog_CC"
  4075. fi
  4076. if test -z "$CC"; then
  4077. if test -n "$ac_tool_prefix"; then
  4078. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4079. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4081. $as_echo_n "checking for $ac_word... " >&6; }
  4082. if test "${ac_cv_prog_CC+set}" = set; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. if test -n "$CC"; then
  4086. ac_cv_prog_CC="$CC" # Let the user override the test.
  4087. else
  4088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4089. for as_dir in $PATH
  4090. do
  4091. IFS=$as_save_IFS
  4092. test -z "$as_dir" && as_dir=.
  4093. for ac_exec_ext in '' $ac_executable_extensions; do
  4094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4095. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4097. break 2
  4098. fi
  4099. done
  4100. done
  4101. IFS=$as_save_IFS
  4102. fi
  4103. fi
  4104. CC=$ac_cv_prog_CC
  4105. if test -n "$CC"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4107. $as_echo "$CC" >&6; }
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4110. $as_echo "no" >&6; }
  4111. fi
  4112. fi
  4113. fi
  4114. if test -z "$CC"; then
  4115. # Extract the first word of "cc", so it can be a program name with args.
  4116. set dummy cc; ac_word=$2
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4118. $as_echo_n "checking for $ac_word... " >&6; }
  4119. if test "${ac_cv_prog_CC+set}" = set; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. if test -n "$CC"; then
  4123. ac_cv_prog_CC="$CC" # Let the user override the test.
  4124. else
  4125. ac_prog_rejected=no
  4126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4127. for as_dir in $PATH
  4128. do
  4129. IFS=$as_save_IFS
  4130. test -z "$as_dir" && as_dir=.
  4131. for ac_exec_ext in '' $ac_executable_extensions; do
  4132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4133. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4134. ac_prog_rejected=yes
  4135. continue
  4136. fi
  4137. ac_cv_prog_CC="cc"
  4138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4139. break 2
  4140. fi
  4141. done
  4142. done
  4143. IFS=$as_save_IFS
  4144. if test $ac_prog_rejected = yes; then
  4145. # We found a bogon in the path, so make sure we never use it.
  4146. set dummy $ac_cv_prog_CC
  4147. shift
  4148. if test $# != 0; then
  4149. # We chose a different compiler from the bogus one.
  4150. # However, it has the same basename, so the bogon will be chosen
  4151. # first if we set CC to just the basename; use the full file name.
  4152. shift
  4153. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4154. fi
  4155. fi
  4156. fi
  4157. fi
  4158. CC=$ac_cv_prog_CC
  4159. if test -n "$CC"; then
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4161. $as_echo "$CC" >&6; }
  4162. else
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4164. $as_echo "no" >&6; }
  4165. fi
  4166. fi
  4167. if test -z "$CC"; then
  4168. if test -n "$ac_tool_prefix"; then
  4169. for ac_prog in cl.exe
  4170. do
  4171. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4172. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4174. $as_echo_n "checking for $ac_word... " >&6; }
  4175. if test "${ac_cv_prog_CC+set}" = set; then :
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. if test -n "$CC"; then
  4179. ac_cv_prog_CC="$CC" # Let the user override the test.
  4180. else
  4181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4182. for as_dir in $PATH
  4183. do
  4184. IFS=$as_save_IFS
  4185. test -z "$as_dir" && as_dir=.
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4188. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4190. break 2
  4191. fi
  4192. done
  4193. done
  4194. IFS=$as_save_IFS
  4195. fi
  4196. fi
  4197. CC=$ac_cv_prog_CC
  4198. if test -n "$CC"; then
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4200. $as_echo "$CC" >&6; }
  4201. else
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4203. $as_echo "no" >&6; }
  4204. fi
  4205. test -n "$CC" && break
  4206. done
  4207. fi
  4208. if test -z "$CC"; then
  4209. ac_ct_CC=$CC
  4210. for ac_prog in cl.exe
  4211. do
  4212. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4213. set dummy $ac_prog; ac_word=$2
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4215. $as_echo_n "checking for $ac_word... " >&6; }
  4216. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. if test -n "$ac_ct_CC"; then
  4220. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4221. else
  4222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4223. for as_dir in $PATH
  4224. do
  4225. IFS=$as_save_IFS
  4226. test -z "$as_dir" && as_dir=.
  4227. for ac_exec_ext in '' $ac_executable_extensions; do
  4228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4229. ac_cv_prog_ac_ct_CC="$ac_prog"
  4230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4231. break 2
  4232. fi
  4233. done
  4234. done
  4235. IFS=$as_save_IFS
  4236. fi
  4237. fi
  4238. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4239. if test -n "$ac_ct_CC"; then
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4241. $as_echo "$ac_ct_CC" >&6; }
  4242. else
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4244. $as_echo "no" >&6; }
  4245. fi
  4246. test -n "$ac_ct_CC" && break
  4247. done
  4248. if test "x$ac_ct_CC" = x; then
  4249. CC=""
  4250. else
  4251. case $cross_compiling:$ac_tool_warned in
  4252. yes:)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4255. ac_tool_warned=yes ;;
  4256. esac
  4257. CC=$ac_ct_CC
  4258. fi
  4259. fi
  4260. fi
  4261. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4262. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4263. as_fn_error "no acceptable C compiler found in \$PATH
  4264. See \`config.log' for more details." "$LINENO" 5; }
  4265. # Provide some information about the compiler.
  4266. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4267. set X $ac_compile
  4268. ac_compiler=$2
  4269. for ac_option in --version -v -V -qversion; do
  4270. { { ac_try="$ac_compiler $ac_option >&5"
  4271. case "(($ac_try" in
  4272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4273. *) ac_try_echo=$ac_try;;
  4274. esac
  4275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4276. $as_echo "$ac_try_echo"; } >&5
  4277. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4278. ac_status=$?
  4279. if test -s conftest.err; then
  4280. sed '10a\
  4281. ... rest of stderr output deleted ...
  4282. 10q' conftest.err >conftest.er1
  4283. cat conftest.er1 >&5
  4284. fi
  4285. rm -f conftest.er1 conftest.err
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4287. test $ac_status = 0; }
  4288. done
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4290. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4291. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. /* end confdefs.h. */
  4296. int
  4297. main ()
  4298. {
  4299. #ifndef __GNUC__
  4300. choke me
  4301. #endif
  4302. ;
  4303. return 0;
  4304. }
  4305. _ACEOF
  4306. if ac_fn_c_try_compile "$LINENO"; then :
  4307. ac_compiler_gnu=yes
  4308. else
  4309. ac_compiler_gnu=no
  4310. fi
  4311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4312. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4313. fi
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4315. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4316. if test $ac_compiler_gnu = yes; then
  4317. GCC=yes
  4318. else
  4319. GCC=
  4320. fi
  4321. ac_test_CFLAGS=${CFLAGS+set}
  4322. ac_save_CFLAGS=$CFLAGS
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4324. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4325. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4326. $as_echo_n "(cached) " >&6
  4327. else
  4328. ac_save_c_werror_flag=$ac_c_werror_flag
  4329. ac_c_werror_flag=yes
  4330. ac_cv_prog_cc_g=no
  4331. CFLAGS="-g"
  4332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4333. /* end confdefs.h. */
  4334. int
  4335. main ()
  4336. {
  4337. ;
  4338. return 0;
  4339. }
  4340. _ACEOF
  4341. if ac_fn_c_try_compile "$LINENO"; then :
  4342. ac_cv_prog_cc_g=yes
  4343. else
  4344. CFLAGS=""
  4345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4346. /* end confdefs.h. */
  4347. int
  4348. main ()
  4349. {
  4350. ;
  4351. return 0;
  4352. }
  4353. _ACEOF
  4354. if ac_fn_c_try_compile "$LINENO"; then :
  4355. else
  4356. ac_c_werror_flag=$ac_save_c_werror_flag
  4357. CFLAGS="-g"
  4358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4359. /* end confdefs.h. */
  4360. int
  4361. main ()
  4362. {
  4363. ;
  4364. return 0;
  4365. }
  4366. _ACEOF
  4367. if ac_fn_c_try_compile "$LINENO"; then :
  4368. ac_cv_prog_cc_g=yes
  4369. fi
  4370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4371. fi
  4372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4373. fi
  4374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4375. ac_c_werror_flag=$ac_save_c_werror_flag
  4376. fi
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4378. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4379. if test "$ac_test_CFLAGS" = set; then
  4380. CFLAGS=$ac_save_CFLAGS
  4381. elif test $ac_cv_prog_cc_g = yes; then
  4382. if test "$GCC" = yes; then
  4383. CFLAGS="-g -O2"
  4384. else
  4385. CFLAGS="-g"
  4386. fi
  4387. else
  4388. if test "$GCC" = yes; then
  4389. CFLAGS="-O2"
  4390. else
  4391. CFLAGS=
  4392. fi
  4393. fi
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4395. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4396. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. ac_cv_prog_cc_c89=no
  4400. ac_save_CC=$CC
  4401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4402. /* end confdefs.h. */
  4403. #include <stdarg.h>
  4404. #include <stdio.h>
  4405. #include <sys/types.h>
  4406. #include <sys/stat.h>
  4407. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4408. struct buf { int x; };
  4409. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4410. static char *e (p, i)
  4411. char **p;
  4412. int i;
  4413. {
  4414. return p[i];
  4415. }
  4416. static char *f (char * (*g) (char **, int), char **p, ...)
  4417. {
  4418. char *s;
  4419. va_list v;
  4420. va_start (v,p);
  4421. s = g (p, va_arg (v,int));
  4422. va_end (v);
  4423. return s;
  4424. }
  4425. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4426. function prototypes and stuff, but not '\xHH' hex character constants.
  4427. These don't provoke an error unfortunately, instead are silently treated
  4428. as 'x'. The following induces an error, until -std is added to get
  4429. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4430. array size at least. It's necessary to write '\x00'==0 to get something
  4431. that's true only with -std. */
  4432. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4433. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4434. inside strings and character constants. */
  4435. #define FOO(x) 'x'
  4436. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4437. int test (int i, double x);
  4438. struct s1 {int (*f) (int a);};
  4439. struct s2 {int (*f) (double a);};
  4440. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4441. int argc;
  4442. char **argv;
  4443. int
  4444. main ()
  4445. {
  4446. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4447. ;
  4448. return 0;
  4449. }
  4450. _ACEOF
  4451. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4452. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4453. do
  4454. CC="$ac_save_CC $ac_arg"
  4455. if ac_fn_c_try_compile "$LINENO"; then :
  4456. ac_cv_prog_cc_c89=$ac_arg
  4457. fi
  4458. rm -f core conftest.err conftest.$ac_objext
  4459. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4460. done
  4461. rm -f conftest.$ac_ext
  4462. CC=$ac_save_CC
  4463. fi
  4464. # AC_CACHE_VAL
  4465. case "x$ac_cv_prog_cc_c89" in
  4466. x)
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4468. $as_echo "none needed" >&6; } ;;
  4469. xno)
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4471. $as_echo "unsupported" >&6; } ;;
  4472. *)
  4473. CC="$CC $ac_cv_prog_cc_c89"
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4475. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4476. esac
  4477. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4478. fi
  4479. ac_ext=c
  4480. ac_cpp='$CPP $CPPFLAGS'
  4481. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4482. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4483. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4484. depcc="$CC" am_compiler_list=
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4486. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4487. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4488. $as_echo_n "(cached) " >&6
  4489. else
  4490. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4491. # We make a subdir and do the tests there. Otherwise we can end up
  4492. # making bogus files that we don't know about and never remove. For
  4493. # instance it was reported that on HP-UX the gcc test will end up
  4494. # making a dummy file named `D' -- because `-MD' means `put the output
  4495. # in D'.
  4496. mkdir conftest.dir
  4497. # Copy depcomp to subdir because otherwise we won't find it if we're
  4498. # using a relative directory.
  4499. cp "$am_depcomp" conftest.dir
  4500. cd conftest.dir
  4501. # We will build objects and dependencies in a subdirectory because
  4502. # it helps to detect inapplicable dependency modes. For instance
  4503. # both Tru64's cc and ICC support -MD to output dependencies as a
  4504. # side effect of compilation, but ICC will put the dependencies in
  4505. # the current directory while Tru64 will put them in the object
  4506. # directory.
  4507. mkdir sub
  4508. am_cv_CC_dependencies_compiler_type=none
  4509. if test "$am_compiler_list" = ""; then
  4510. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4511. fi
  4512. am__universal=false
  4513. case " $depcc " in #(
  4514. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4515. esac
  4516. for depmode in $am_compiler_list; do
  4517. # Setup a source with many dependencies, because some compilers
  4518. # like to wrap large dependency lists on column 80 (with \), and
  4519. # we should not choose a depcomp mode which is confused by this.
  4520. #
  4521. # We need to recreate these files for each test, as the compiler may
  4522. # overwrite some of them when testing with obscure command lines.
  4523. # This happens at least with the AIX C compiler.
  4524. : > sub/conftest.c
  4525. for i in 1 2 3 4 5 6; do
  4526. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4527. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4528. # Solaris 8's {/usr,}/bin/sh.
  4529. touch sub/conftst$i.h
  4530. done
  4531. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4532. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4533. # mode. It turns out that the SunPro C++ compiler does not properly
  4534. # handle `-M -o', and we need to detect this. Also, some Intel
  4535. # versions had trouble with output in subdirs
  4536. am__obj=sub/conftest.${OBJEXT-o}
  4537. am__minus_obj="-o $am__obj"
  4538. case $depmode in
  4539. gcc)
  4540. # This depmode causes a compiler race in universal mode.
  4541. test "$am__universal" = false || continue
  4542. ;;
  4543. nosideeffect)
  4544. # after this tag, mechanisms are not by side-effect, so they'll
  4545. # only be used when explicitly requested
  4546. if test "x$enable_dependency_tracking" = xyes; then
  4547. continue
  4548. else
  4549. break
  4550. fi
  4551. ;;
  4552. msvisualcpp | msvcmsys)
  4553. # This compiler won't grok `-c -o', but also, the minuso test has
  4554. # not run yet. These depmodes are late enough in the game, and
  4555. # so weak that their functioning should not be impacted.
  4556. am__obj=conftest.${OBJEXT-o}
  4557. am__minus_obj=
  4558. ;;
  4559. none) break ;;
  4560. esac
  4561. if depmode=$depmode \
  4562. source=sub/conftest.c object=$am__obj \
  4563. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4564. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4565. >/dev/null 2>conftest.err &&
  4566. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4567. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4568. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4569. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4570. # icc doesn't choke on unknown options, it will just issue warnings
  4571. # or remarks (even with -Werror). So we grep stderr for any message
  4572. # that says an option was ignored or not supported.
  4573. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4574. # icc: Command line warning: ignoring option '-M'; no argument required
  4575. # The diagnosis changed in icc 8.0:
  4576. # icc: Command line remark: option '-MP' not supported
  4577. if (grep 'ignoring option' conftest.err ||
  4578. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4579. am_cv_CC_dependencies_compiler_type=$depmode
  4580. break
  4581. fi
  4582. fi
  4583. done
  4584. cd ..
  4585. rm -rf conftest.dir
  4586. else
  4587. am_cv_CC_dependencies_compiler_type=none
  4588. fi
  4589. fi
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4591. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4592. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4593. if
  4594. test "x$enable_dependency_tracking" != xno \
  4595. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4596. am__fastdepCC_TRUE=
  4597. am__fastdepCC_FALSE='#'
  4598. else
  4599. am__fastdepCC_TRUE='#'
  4600. am__fastdepCC_FALSE=
  4601. fi
  4602. if test -n "$ac_tool_prefix"; then
  4603. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4604. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4606. $as_echo_n "checking for $ac_word... " >&6; }
  4607. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. if test -n "$RANLIB"; then
  4611. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4612. else
  4613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4614. for as_dir in $PATH
  4615. do
  4616. IFS=$as_save_IFS
  4617. test -z "$as_dir" && as_dir=.
  4618. for ac_exec_ext in '' $ac_executable_extensions; do
  4619. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4620. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4622. break 2
  4623. fi
  4624. done
  4625. done
  4626. IFS=$as_save_IFS
  4627. fi
  4628. fi
  4629. RANLIB=$ac_cv_prog_RANLIB
  4630. if test -n "$RANLIB"; then
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4632. $as_echo "$RANLIB" >&6; }
  4633. else
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4635. $as_echo "no" >&6; }
  4636. fi
  4637. fi
  4638. if test -z "$ac_cv_prog_RANLIB"; then
  4639. ac_ct_RANLIB=$RANLIB
  4640. # Extract the first word of "ranlib", so it can be a program name with args.
  4641. set dummy ranlib; ac_word=$2
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4643. $as_echo_n "checking for $ac_word... " >&6; }
  4644. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. if test -n "$ac_ct_RANLIB"; then
  4648. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. test -z "$as_dir" && as_dir=.
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4657. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4659. break 2
  4660. fi
  4661. done
  4662. done
  4663. IFS=$as_save_IFS
  4664. fi
  4665. fi
  4666. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4667. if test -n "$ac_ct_RANLIB"; then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4669. $as_echo "$ac_ct_RANLIB" >&6; }
  4670. else
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4672. $as_echo "no" >&6; }
  4673. fi
  4674. if test "x$ac_ct_RANLIB" = x; then
  4675. RANLIB=":"
  4676. else
  4677. case $cross_compiling:$ac_tool_warned in
  4678. yes:)
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4681. ac_tool_warned=yes ;;
  4682. esac
  4683. RANLIB=$ac_ct_RANLIB
  4684. fi
  4685. else
  4686. RANLIB="$ac_cv_prog_RANLIB"
  4687. fi
  4688. for ac_prog in 'bison -y' byacc
  4689. do
  4690. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4691. set dummy $ac_prog; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if test "${ac_cv_prog_YACC+set}" = set; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$YACC"; then
  4698. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4707. ac_cv_prog_YACC="$ac_prog"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. YACC=$ac_cv_prog_YACC
  4717. if test -n "$YACC"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  4719. $as_echo "$YACC" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. test -n "$YACC" && break
  4725. done
  4726. test -n "$YACC" || YACC="yacc"
  4727. # Setting language choice
  4728. ac_ext=cpp
  4729. ac_cpp='$CXXCPP $CPPFLAGS'
  4730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4733. # Enable system extensions
  4734. ac_ext=cpp
  4735. ac_cpp='$CXXCPP $CPPFLAGS'
  4736. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4737. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4738. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4740. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4741. if test -z "$CXXCPP"; then
  4742. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. # Double quotes because CXXCPP needs to be expanded
  4746. for CXXCPP in "$CXX -E" "/lib/cpp"
  4747. do
  4748. ac_preproc_ok=false
  4749. for ac_cxx_preproc_warn_flag in '' yes
  4750. do
  4751. # Use a header file that comes with gcc, so configuring glibc
  4752. # with a fresh cross-compiler works.
  4753. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4754. # <limits.h> exists even on freestanding compilers.
  4755. # On the NeXT, cc -E runs the code through the compiler's parser,
  4756. # not just through cpp. "Syntax error" is here to catch this case.
  4757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4758. /* end confdefs.h. */
  4759. #ifdef __STDC__
  4760. # include <limits.h>
  4761. #else
  4762. # include <assert.h>
  4763. #endif
  4764. Syntax error
  4765. _ACEOF
  4766. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4767. else
  4768. # Broken: fails on valid input.
  4769. continue
  4770. fi
  4771. rm -f conftest.err conftest.$ac_ext
  4772. # OK, works on sane cases. Now check whether nonexistent headers
  4773. # can be detected and how.
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. #include <ac_nonexistent.h>
  4777. _ACEOF
  4778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4779. # Broken: success on invalid input.
  4780. continue
  4781. else
  4782. # Passes both tests.
  4783. ac_preproc_ok=:
  4784. break
  4785. fi
  4786. rm -f conftest.err conftest.$ac_ext
  4787. done
  4788. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4789. rm -f conftest.err conftest.$ac_ext
  4790. if $ac_preproc_ok; then :
  4791. break
  4792. fi
  4793. done
  4794. ac_cv_prog_CXXCPP=$CXXCPP
  4795. fi
  4796. CXXCPP=$ac_cv_prog_CXXCPP
  4797. else
  4798. ac_cv_prog_CXXCPP=$CXXCPP
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4801. $as_echo "$CXXCPP" >&6; }
  4802. ac_preproc_ok=false
  4803. for ac_cxx_preproc_warn_flag in '' yes
  4804. do
  4805. # Use a header file that comes with gcc, so configuring glibc
  4806. # with a fresh cross-compiler works.
  4807. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4808. # <limits.h> exists even on freestanding compilers.
  4809. # On the NeXT, cc -E runs the code through the compiler's parser,
  4810. # not just through cpp. "Syntax error" is here to catch this case.
  4811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4812. /* end confdefs.h. */
  4813. #ifdef __STDC__
  4814. # include <limits.h>
  4815. #else
  4816. # include <assert.h>
  4817. #endif
  4818. Syntax error
  4819. _ACEOF
  4820. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4821. else
  4822. # Broken: fails on valid input.
  4823. continue
  4824. fi
  4825. rm -f conftest.err conftest.$ac_ext
  4826. # OK, works on sane cases. Now check whether nonexistent headers
  4827. # can be detected and how.
  4828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4829. /* end confdefs.h. */
  4830. #include <ac_nonexistent.h>
  4831. _ACEOF
  4832. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4833. # Broken: success on invalid input.
  4834. continue
  4835. else
  4836. # Passes both tests.
  4837. ac_preproc_ok=:
  4838. break
  4839. fi
  4840. rm -f conftest.err conftest.$ac_ext
  4841. done
  4842. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4843. rm -f conftest.err conftest.$ac_ext
  4844. if $ac_preproc_ok; then :
  4845. else
  4846. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4847. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4848. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  4849. See \`config.log' for more details." "$LINENO" 5; }
  4850. fi
  4851. ac_ext=cpp
  4852. ac_cpp='$CXXCPP $CPPFLAGS'
  4853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4857. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4858. if test "${ac_cv_path_GREP+set}" = set; then :
  4859. $as_echo_n "(cached) " >&6
  4860. else
  4861. if test -z "$GREP"; then
  4862. ac_path_GREP_found=false
  4863. # Loop through the user's path and test for each of PROGNAME-LIST
  4864. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4865. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4866. do
  4867. IFS=$as_save_IFS
  4868. test -z "$as_dir" && as_dir=.
  4869. for ac_prog in grep ggrep; do
  4870. for ac_exec_ext in '' $ac_executable_extensions; do
  4871. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4872. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4873. # Check for GNU ac_path_GREP and select it if it is found.
  4874. # Check for GNU $ac_path_GREP
  4875. case `"$ac_path_GREP" --version 2>&1` in
  4876. *GNU*)
  4877. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4878. *)
  4879. ac_count=0
  4880. $as_echo_n 0123456789 >"conftest.in"
  4881. while :
  4882. do
  4883. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4884. mv "conftest.tmp" "conftest.in"
  4885. cp "conftest.in" "conftest.nl"
  4886. $as_echo 'GREP' >> "conftest.nl"
  4887. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4888. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4889. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4890. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4891. # Best one so far, save it but keep looking for a better one
  4892. ac_cv_path_GREP="$ac_path_GREP"
  4893. ac_path_GREP_max=$ac_count
  4894. fi
  4895. # 10*(2^10) chars as input seems more than enough
  4896. test $ac_count -gt 10 && break
  4897. done
  4898. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4899. esac
  4900. $ac_path_GREP_found && break 3
  4901. done
  4902. done
  4903. done
  4904. IFS=$as_save_IFS
  4905. if test -z "$ac_cv_path_GREP"; then
  4906. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4907. fi
  4908. else
  4909. ac_cv_path_GREP=$GREP
  4910. fi
  4911. fi
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4913. $as_echo "$ac_cv_path_GREP" >&6; }
  4914. GREP="$ac_cv_path_GREP"
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4916. $as_echo_n "checking for egrep... " >&6; }
  4917. if test "${ac_cv_path_EGREP+set}" = set; then :
  4918. $as_echo_n "(cached) " >&6
  4919. else
  4920. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4921. then ac_cv_path_EGREP="$GREP -E"
  4922. else
  4923. if test -z "$EGREP"; then
  4924. ac_path_EGREP_found=false
  4925. # Loop through the user's path and test for each of PROGNAME-LIST
  4926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4927. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4928. do
  4929. IFS=$as_save_IFS
  4930. test -z "$as_dir" && as_dir=.
  4931. for ac_prog in egrep; do
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4934. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4935. # Check for GNU ac_path_EGREP and select it if it is found.
  4936. # Check for GNU $ac_path_EGREP
  4937. case `"$ac_path_EGREP" --version 2>&1` in
  4938. *GNU*)
  4939. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4940. *)
  4941. ac_count=0
  4942. $as_echo_n 0123456789 >"conftest.in"
  4943. while :
  4944. do
  4945. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4946. mv "conftest.tmp" "conftest.in"
  4947. cp "conftest.in" "conftest.nl"
  4948. $as_echo 'EGREP' >> "conftest.nl"
  4949. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4950. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4951. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4952. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4953. # Best one so far, save it but keep looking for a better one
  4954. ac_cv_path_EGREP="$ac_path_EGREP"
  4955. ac_path_EGREP_max=$ac_count
  4956. fi
  4957. # 10*(2^10) chars as input seems more than enough
  4958. test $ac_count -gt 10 && break
  4959. done
  4960. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4961. esac
  4962. $ac_path_EGREP_found && break 3
  4963. done
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. if test -z "$ac_cv_path_EGREP"; then
  4968. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4969. fi
  4970. else
  4971. ac_cv_path_EGREP=$EGREP
  4972. fi
  4973. fi
  4974. fi
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4976. $as_echo "$ac_cv_path_EGREP" >&6; }
  4977. EGREP="$ac_cv_path_EGREP"
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4979. $as_echo_n "checking for ANSI C header files... " >&6; }
  4980. if test "${ac_cv_header_stdc+set}" = set; then :
  4981. $as_echo_n "(cached) " >&6
  4982. else
  4983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4984. /* end confdefs.h. */
  4985. #include <stdlib.h>
  4986. #include <stdarg.h>
  4987. #include <string.h>
  4988. #include <float.h>
  4989. int
  4990. main ()
  4991. {
  4992. ;
  4993. return 0;
  4994. }
  4995. _ACEOF
  4996. if ac_fn_cxx_try_compile "$LINENO"; then :
  4997. ac_cv_header_stdc=yes
  4998. else
  4999. ac_cv_header_stdc=no
  5000. fi
  5001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5002. if test $ac_cv_header_stdc = yes; then
  5003. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5005. /* end confdefs.h. */
  5006. #include <string.h>
  5007. _ACEOF
  5008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5009. $EGREP "memchr" >/dev/null 2>&1; then :
  5010. else
  5011. ac_cv_header_stdc=no
  5012. fi
  5013. rm -f conftest*
  5014. fi
  5015. if test $ac_cv_header_stdc = yes; then
  5016. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5018. /* end confdefs.h. */
  5019. #include <stdlib.h>
  5020. _ACEOF
  5021. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5022. $EGREP "free" >/dev/null 2>&1; then :
  5023. else
  5024. ac_cv_header_stdc=no
  5025. fi
  5026. rm -f conftest*
  5027. fi
  5028. if test $ac_cv_header_stdc = yes; then
  5029. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5030. if test "$cross_compiling" = yes; then :
  5031. :
  5032. else
  5033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5034. /* end confdefs.h. */
  5035. #include <ctype.h>
  5036. #include <stdlib.h>
  5037. #if ((' ' & 0x0FF) == 0x020)
  5038. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5039. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5040. #else
  5041. # define ISLOWER(c) \
  5042. (('a' <= (c) && (c) <= 'i') \
  5043. || ('j' <= (c) && (c) <= 'r') \
  5044. || ('s' <= (c) && (c) <= 'z'))
  5045. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5046. #endif
  5047. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5048. int
  5049. main ()
  5050. {
  5051. int i;
  5052. for (i = 0; i < 256; i++)
  5053. if (XOR (islower (i), ISLOWER (i))
  5054. || toupper (i) != TOUPPER (i))
  5055. return 2;
  5056. return 0;
  5057. }
  5058. _ACEOF
  5059. if ac_fn_cxx_try_run "$LINENO"; then :
  5060. else
  5061. ac_cv_header_stdc=no
  5062. fi
  5063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5065. fi
  5066. fi
  5067. fi
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5069. $as_echo "$ac_cv_header_stdc" >&6; }
  5070. if test $ac_cv_header_stdc = yes; then
  5071. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5072. fi
  5073. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5074. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5075. inttypes.h stdint.h unistd.h
  5076. do :
  5077. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5078. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5079. "
  5080. eval as_val=\$$as_ac_Header
  5081. if test "x$as_val" = x""yes; then :
  5082. cat >>confdefs.h <<_ACEOF
  5083. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5084. _ACEOF
  5085. fi
  5086. done
  5087. ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  5088. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  5089. MINIX=yes
  5090. else
  5091. MINIX=
  5092. fi
  5093. if test "$MINIX" = yes; then
  5094. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  5095. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  5096. $as_echo "#define _MINIX 1" >>confdefs.h
  5097. fi
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  5099. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5100. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h. */
  5105. # define __EXTENSIONS__ 1
  5106. $ac_includes_default
  5107. int
  5108. main ()
  5109. {
  5110. ;
  5111. return 0;
  5112. }
  5113. _ACEOF
  5114. if ac_fn_cxx_try_compile "$LINENO"; then :
  5115. ac_cv_safe_to_define___extensions__=yes
  5116. else
  5117. ac_cv_safe_to_define___extensions__=no
  5118. fi
  5119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5120. fi
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  5122. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5123. test $ac_cv_safe_to_define___extensions__ = yes &&
  5124. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  5125. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  5126. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  5127. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  5128. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  5129. # Check pkg-config is available
  5130. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5131. if test -n "$ac_tool_prefix"; then
  5132. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5133. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5135. $as_echo_n "checking for $ac_word... " >&6; }
  5136. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  5137. $as_echo_n "(cached) " >&6
  5138. else
  5139. case $PKG_CONFIG in
  5140. [\\/]* | ?:[\\/]*)
  5141. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5142. ;;
  5143. *)
  5144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. for as_dir in $PATH
  5146. do
  5147. IFS=$as_save_IFS
  5148. test -z "$as_dir" && as_dir=.
  5149. for ac_exec_ext in '' $ac_executable_extensions; do
  5150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5151. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. break 2
  5154. fi
  5155. done
  5156. done
  5157. IFS=$as_save_IFS
  5158. ;;
  5159. esac
  5160. fi
  5161. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5162. if test -n "$PKG_CONFIG"; then
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  5164. $as_echo "$PKG_CONFIG" >&6; }
  5165. else
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5167. $as_echo "no" >&6; }
  5168. fi
  5169. fi
  5170. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5171. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5172. # Extract the first word of "pkg-config", so it can be a program name with args.
  5173. set dummy pkg-config; ac_word=$2
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5175. $as_echo_n "checking for $ac_word... " >&6; }
  5176. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
  5177. $as_echo_n "(cached) " >&6
  5178. else
  5179. case $ac_pt_PKG_CONFIG in
  5180. [\\/]* | ?:[\\/]*)
  5181. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5182. ;;
  5183. *)
  5184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5185. for as_dir in $PATH
  5186. do
  5187. IFS=$as_save_IFS
  5188. test -z "$as_dir" && as_dir=.
  5189. for ac_exec_ext in '' $ac_executable_extensions; do
  5190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5191. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5193. break 2
  5194. fi
  5195. done
  5196. done
  5197. IFS=$as_save_IFS
  5198. ;;
  5199. esac
  5200. fi
  5201. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5202. if test -n "$ac_pt_PKG_CONFIG"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  5204. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. if test "x$ac_pt_PKG_CONFIG" = x; then
  5210. PKG_CONFIG=""
  5211. else
  5212. case $cross_compiling:$ac_tool_warned in
  5213. yes:)
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5216. ac_tool_warned=yes ;;
  5217. esac
  5218. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5219. fi
  5220. else
  5221. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5222. fi
  5223. fi
  5224. if test -n "$PKG_CONFIG"; then
  5225. _pkg_min_version=0.20
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  5227. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5228. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5230. $as_echo "yes" >&6; }
  5231. else
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5233. $as_echo "no" >&6; }
  5234. PKG_CONFIG=""
  5235. fi
  5236. fi
  5237. # Checks for libraries.
  5238. if test "x$with_libxml2" = "xyes"; then
  5239. # Check whether --with-xml-prefix was given.
  5240. if test "${with_xml_prefix+set}" = set; then :
  5241. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5242. else
  5243. xml_config_prefix=""
  5244. fi
  5245. # Check whether --with-xml-exec-prefix was given.
  5246. if test "${with_xml_exec_prefix+set}" = set; then :
  5247. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5248. else
  5249. xml_config_exec_prefix=""
  5250. fi
  5251. # Check whether --enable-xmltest was given.
  5252. if test "${enable_xmltest+set}" = set; then :
  5253. enableval=$enable_xmltest;
  5254. else
  5255. enable_xmltest=yes
  5256. fi
  5257. if test x$xml_config_exec_prefix != x ; then
  5258. xml_config_args="$xml_config_args"
  5259. if test x${XML2_CONFIG+set} != xset ; then
  5260. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5261. fi
  5262. fi
  5263. if test x$xml_config_prefix != x ; then
  5264. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5265. if test x${XML2_CONFIG+set} != xset ; then
  5266. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5267. fi
  5268. fi
  5269. # Extract the first word of "xml2-config", so it can be a program name with args.
  5270. set dummy xml2-config; ac_word=$2
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5272. $as_echo_n "checking for $ac_word... " >&6; }
  5273. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. case $XML2_CONFIG in
  5277. [\\/]* | ?:[\\/]*)
  5278. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5279. ;;
  5280. *)
  5281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5282. for as_dir in $PATH
  5283. do
  5284. IFS=$as_save_IFS
  5285. test -z "$as_dir" && as_dir=.
  5286. for ac_exec_ext in '' $ac_executable_extensions; do
  5287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5288. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5290. break 2
  5291. fi
  5292. done
  5293. done
  5294. IFS=$as_save_IFS
  5295. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5296. ;;
  5297. esac
  5298. fi
  5299. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5300. if test -n "$XML2_CONFIG"; then
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  5302. $as_echo "$XML2_CONFIG" >&6; }
  5303. else
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5305. $as_echo "no" >&6; }
  5306. fi
  5307. min_xml_version=2.6.24
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml - version >= $min_xml_version" >&5
  5309. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5310. no_xml=""
  5311. if test "$XML2_CONFIG" = "no" ; then
  5312. no_xml=yes
  5313. else
  5314. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5315. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5316. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5317. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5318. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5319. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5320. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5321. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5322. if test "x$enable_xmltest" = "xyes" ; then
  5323. ac_save_CPPFLAGS="$CPPFLAGS"
  5324. ac_save_LIBS="$LIBS"
  5325. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5326. LIBS="$XML_LIBS $LIBS"
  5327. rm -f conf.xmltest
  5328. if test "$cross_compiling" = yes; then :
  5329. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5330. else
  5331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5332. /* end confdefs.h. */
  5333. #include <stdlib.h>
  5334. #include <stdio.h>
  5335. #include <string.h>
  5336. #include <libxml/xmlversion.h>
  5337. int
  5338. main()
  5339. {
  5340. int xml_major_version, xml_minor_version, xml_micro_version;
  5341. int major, minor, micro;
  5342. char *tmp_version;
  5343. system("touch conf.xmltest");
  5344. /* Capture xml2-config output via autoconf/configure variables */
  5345. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5346. tmp_version = (char *)strdup("$min_xml_version");
  5347. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5348. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5349. exit(1);
  5350. }
  5351. free(tmp_version);
  5352. /* Capture the version information from the header files */
  5353. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5354. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5355. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5356. exit(1);
  5357. }
  5358. free(tmp_version);
  5359. /* Compare xml2-config output to the libxml headers */
  5360. if ((xml_major_version != $xml_config_major_version) ||
  5361. (xml_minor_version != $xml_config_minor_version) ||
  5362. (xml_micro_version != $xml_config_micro_version))
  5363. {
  5364. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5365. xml_major_version, xml_minor_version, xml_micro_version);
  5366. printf("*** xml2-config (version %d.%d.%d)\n",
  5367. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5368. return 1;
  5369. }
  5370. /* Compare the headers to the library to make sure we match */
  5371. /* Less than ideal -- doesn't provide us with return value feedback,
  5372. * only exits if there's a serious mismatch between header and library.
  5373. */
  5374. LIBXML_TEST_VERSION;
  5375. /* Test that the library is greater than our minimum version */
  5376. if ((xml_major_version > major) ||
  5377. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5378. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5379. (xml_micro_version >= micro)))
  5380. {
  5381. return 0;
  5382. }
  5383. else
  5384. {
  5385. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5386. xml_major_version, xml_minor_version, xml_micro_version);
  5387. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5388. major, minor, micro);
  5389. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5390. printf("***\n");
  5391. printf("*** If you have already installed a sufficiently new version, this error\n");
  5392. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5393. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5394. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5395. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5396. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5397. printf("*** so that the correct libraries are found at run-time))\n");
  5398. }
  5399. return 1;
  5400. }
  5401. _ACEOF
  5402. if ac_fn_cxx_try_run "$LINENO"; then :
  5403. else
  5404. no_xml=yes
  5405. fi
  5406. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5407. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5408. fi
  5409. CPPFLAGS="$ac_save_CPPFLAGS"
  5410. LIBS="$ac_save_LIBS"
  5411. fi
  5412. fi
  5413. if test "x$no_xml" = x ; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5415. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5416. have_libxml2=yes
  5417. else
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. if test "$XML2_CONFIG" = "no" ; then
  5421. echo "*** The xml2-config script installed by LIBXML could not be found"
  5422. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5423. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5424. echo "*** full path to xml2-config."
  5425. else
  5426. if test -f conf.xmltest ; then
  5427. :
  5428. else
  5429. echo "*** Could not run libxml test program, checking why..."
  5430. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5431. LIBS="$LIBS $XML_LIBS"
  5432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5433. /* end confdefs.h. */
  5434. #include <libxml/xmlversion.h>
  5435. #include <stdio.h>
  5436. int
  5437. main ()
  5438. {
  5439. LIBXML_TEST_VERSION; return 0;
  5440. ;
  5441. return 0;
  5442. }
  5443. _ACEOF
  5444. if ac_fn_cxx_try_link "$LINENO"; then :
  5445. echo "*** The test program compiled, but did not run. This usually means"
  5446. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5447. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5448. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5449. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5450. echo "*** is required on your system"
  5451. echo "***"
  5452. echo "*** If you have an old version installed, it is best to remove it, although"
  5453. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5454. else
  5455. echo "*** The test program failed to compile or link. See the file config.log for the"
  5456. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5457. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5458. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5459. fi
  5460. rm -f core conftest.err conftest.$ac_objext \
  5461. conftest$ac_exeext conftest.$ac_ext
  5462. CPPFLAGS="$ac_save_CPPFLAGS"
  5463. LIBS="$ac_save_LIBS"
  5464. fi
  5465. fi
  5466. XML_CPPFLAGS=""
  5467. XML_LIBS=""
  5468. :
  5469. fi
  5470. rm -f conf.xmltest
  5471. if test "x$have_libxml2" = "xyes"; then
  5472. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  5473. elif test "x$with_libxml2_requested" = "xyes"; then
  5474. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5475. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5476. as_fn_error "libxml2 is requested but not found in the system.
  5477. See \`config.log' for more details." "$LINENO" 5; }
  5478. fi
  5479. fi
  5480. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5481. # Check whether --with-libexpat-prefix was given.
  5482. if test "${with_libexpat_prefix+set}" = set; then :
  5483. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5484. else
  5485. libexpat_prefix=""
  5486. fi
  5487. if test "x$libexpat_prefix" = "x"; then
  5488. libexpat_prefix="/usr"
  5489. fi
  5490. libexpat_prefix_lib=$libexpat_prefix/lib
  5491. libexpat_prefix_include=$libexpat_prefix/include
  5492. LIBS_save=$LIBS
  5493. CPPFLAGS_save=$CPPFLAGS
  5494. LIBS="-L$libexpat_prefix_lib $LIBS"
  5495. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  5497. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5498. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. ac_check_lib_save_LIBS=$LIBS
  5502. LIBS="-lexpat $LIBS"
  5503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5504. /* end confdefs.h. */
  5505. /* Override any GCC internal prototype to avoid an error.
  5506. Use char because int might match the return type of a GCC
  5507. builtin and then its argument prototype would still apply. */
  5508. #ifdef __cplusplus
  5509. extern "C"
  5510. #endif
  5511. char XML_ParserCreate ();
  5512. int
  5513. main ()
  5514. {
  5515. return XML_ParserCreate ();
  5516. ;
  5517. return 0;
  5518. }
  5519. _ACEOF
  5520. if ac_fn_cxx_try_link "$LINENO"; then :
  5521. ac_cv_lib_expat_XML_ParserCreate=yes
  5522. else
  5523. ac_cv_lib_expat_XML_ParserCreate=no
  5524. fi
  5525. rm -f core conftest.err conftest.$ac_objext \
  5526. conftest$ac_exeext conftest.$ac_ext
  5527. LIBS=$ac_check_lib_save_LIBS
  5528. fi
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5530. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5531. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  5532. have_libexpat=yes
  5533. fi
  5534. if test "x$have_libexpat" = "xyes"; then
  5535. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
  5536. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5537. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5538. fi
  5539. LIBS=$LIBS_save
  5540. CPPFLAGS=$CPPFLAGS_save
  5541. if test "x$have_libexpat" != "xyes" &&
  5542. test "x$with_libexpat_requested" = "xyes"; then
  5543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5545. as_fn_error "libexpat is requested but not found in the system.
  5546. See \`config.log' for more details." "$LINENO" 5; }
  5547. fi
  5548. fi
  5549. if test "x$with_sqlite3" = "xyes"; then
  5550. # Check whether --with-sqlite3-prefix was given.
  5551. if test "${with_sqlite3_prefix+set}" = set; then :
  5552. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5553. else
  5554. sqlite3_prefix=""
  5555. fi
  5556. if test "x$sqlite3_prefix" = "x"; then
  5557. sqlite3_prefix="/usr"
  5558. fi
  5559. LIBS_save=$LIBS
  5560. CPPFLAGS_save=$CPPFLAGS
  5561. pkg_failed=no
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
  5563. $as_echo_n "checking for SQLITE3... " >&6; }
  5564. if test -n "$PKG_CONFIG"; then
  5565. if test -n "$SQLITE3_CFLAGS"; then
  5566. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5567. else
  5568. if test -n "$PKG_CONFIG" && \
  5569. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5570. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5571. ac_status=$?
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5573. test $ac_status = 0; }; then
  5574. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5575. else
  5576. pkg_failed=yes
  5577. fi
  5578. fi
  5579. else
  5580. pkg_failed=untried
  5581. fi
  5582. if test -n "$PKG_CONFIG"; then
  5583. if test -n "$SQLITE3_LIBS"; then
  5584. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5585. else
  5586. if test -n "$PKG_CONFIG" && \
  5587. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
  5588. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5589. ac_status=$?
  5590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5591. test $ac_status = 0; }; then
  5592. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5593. else
  5594. pkg_failed=yes
  5595. fi
  5596. fi
  5597. else
  5598. pkg_failed=untried
  5599. fi
  5600. if test $pkg_failed = yes; then
  5601. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5602. _pkg_short_errors_supported=yes
  5603. else
  5604. _pkg_short_errors_supported=no
  5605. fi
  5606. if test $_pkg_short_errors_supported = yes; then
  5607. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5608. else
  5609. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5610. fi
  5611. # Put the nasty error message in config.log where it belongs
  5612. echo "$SQLITE3_PKG_ERRORS" >&5
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5614. $as_echo "no" >&6; }
  5615. have_sqlite3=no
  5616. elif test $pkg_failed = untried; then
  5617. have_sqlite3=no
  5618. else
  5619. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5620. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5622. $as_echo "yes" >&6; }
  5623. have_sqlite3=yes
  5624. fi
  5625. if test "x$have_sqlite3" != "xyes"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5627. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5628. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5629. sqlite3_prefix_include=$sqlite3_prefix/include
  5630. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5631. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  5633. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5634. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then :
  5635. $as_echo_n "(cached) " >&6
  5636. else
  5637. ac_check_lib_save_LIBS=$LIBS
  5638. LIBS="-lsqlite3 $LIBS"
  5639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5640. /* end confdefs.h. */
  5641. /* Override any GCC internal prototype to avoid an error.
  5642. Use char because int might match the return type of a GCC
  5643. builtin and then its argument prototype would still apply. */
  5644. #ifdef __cplusplus
  5645. extern "C"
  5646. #endif
  5647. char sqlite3_open ();
  5648. int
  5649. main ()
  5650. {
  5651. return sqlite3_open ();
  5652. ;
  5653. return 0;
  5654. }
  5655. _ACEOF
  5656. if ac_fn_cxx_try_link "$LINENO"; then :
  5657. ac_cv_lib_sqlite3_sqlite3_open=yes
  5658. else
  5659. ac_cv_lib_sqlite3_sqlite3_open=no
  5660. fi
  5661. rm -f core conftest.err conftest.$ac_objext \
  5662. conftest$ac_exeext conftest.$ac_ext
  5663. LIBS=$ac_check_lib_save_LIBS
  5664. fi
  5665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5666. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5667. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then :
  5668. have_sqlite3=yes
  5669. fi
  5670. if test "x$have_sqlite3" = "xyes"; then
  5671. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5672. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5673. fi
  5674. fi
  5675. if test "x$have_sqlite3" = "xyes"; then
  5676. LIBS="$SQLITE3_LIBS $LIBS"
  5677. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5678. for ac_func in sqlite3_open_v2
  5679. do :
  5680. ac_fn_cxx_check_func "$LINENO" "sqlite3_open_v2" "ac_cv_func_sqlite3_open_v2"
  5681. if test "x$ac_cv_func_sqlite3_open_v2" = x""yes; then :
  5682. cat >>confdefs.h <<_ACEOF
  5683. #define HAVE_SQLITE3_OPEN_V2 1
  5684. _ACEOF
  5685. fi
  5686. done
  5687. $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
  5688. fi
  5689. LIBS=$LIBS_save
  5690. CPPFLAGS=$CPPFLAGS_save
  5691. if test "x$have_sqlite3" != "xyes" &&
  5692. test "x$with_sqlite3_requested" = "xyes"; then
  5693. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5694. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5695. as_fn_error "sqlite3 is requested but not found in the system.
  5696. See \`config.log' for more details." "$LINENO" 5; }
  5697. fi
  5698. fi
  5699. if test "x$with_gnutls" = "xyes"; then
  5700. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5701. # First check the presence of libgnutls using pkg-config.
  5702. pkg_failed=no
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
  5704. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5705. if test -n "$PKG_CONFIG"; then
  5706. if test -n "$LIBGNUTLS_CFLAGS"; then
  5707. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5708. else
  5709. if test -n "$PKG_CONFIG" && \
  5710. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5711. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5712. ac_status=$?
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5714. test $ac_status = 0; }; then
  5715. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5716. else
  5717. pkg_failed=yes
  5718. fi
  5719. fi
  5720. else
  5721. pkg_failed=untried
  5722. fi
  5723. if test -n "$PKG_CONFIG"; then
  5724. if test -n "$LIBGNUTLS_LIBS"; then
  5725. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5726. else
  5727. if test -n "$PKG_CONFIG" && \
  5728. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\""; } >&5
  5729. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5730. ac_status=$?
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5732. test $ac_status = 0; }; then
  5733. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5734. else
  5735. pkg_failed=yes
  5736. fi
  5737. fi
  5738. else
  5739. pkg_failed=untried
  5740. fi
  5741. if test $pkg_failed = yes; then
  5742. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5743. _pkg_short_errors_supported=yes
  5744. else
  5745. _pkg_short_errors_supported=no
  5746. fi
  5747. if test $_pkg_short_errors_supported = yes; then
  5748. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5749. else
  5750. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5751. fi
  5752. # Put the nasty error message in config.log where it belongs
  5753. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5755. $as_echo "no" >&6; }
  5756. have_libgnutls=no
  5757. elif test $pkg_failed = untried; then
  5758. have_libgnutls=no
  5759. else
  5760. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5761. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5763. $as_echo "yes" >&6; }
  5764. have_libgnutls=yes
  5765. fi
  5766. # If no libgnutls found by pkg-config, fall back to old macro
  5767. if test "x$have_libgnutls" = "xno"; then
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5769. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5770. # Check whether --with-libgnutls-prefix was given.
  5771. if test "${with_libgnutls_prefix+set}" = set; then :
  5772. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5773. else
  5774. libgnutls_config_prefix=""
  5775. fi
  5776. if test x$libgnutls_config_prefix != x ; then
  5777. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5778. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5779. fi
  5780. fi
  5781. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5782. set dummy libgnutls-config; ac_word=$2
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5784. $as_echo_n "checking for $ac_word... " >&6; }
  5785. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then :
  5786. $as_echo_n "(cached) " >&6
  5787. else
  5788. case $LIBGNUTLS_CONFIG in
  5789. [\\/]* | ?:[\\/]*)
  5790. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5791. ;;
  5792. *)
  5793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5794. for as_dir in $PATH
  5795. do
  5796. IFS=$as_save_IFS
  5797. test -z "$as_dir" && as_dir=.
  5798. for ac_exec_ext in '' $ac_executable_extensions; do
  5799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5800. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5802. break 2
  5803. fi
  5804. done
  5805. done
  5806. IFS=$as_save_IFS
  5807. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5808. ;;
  5809. esac
  5810. fi
  5811. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5812. if test -n "$LIBGNUTLS_CONFIG"; then
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CONFIG" >&5
  5814. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5815. else
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. $as_echo "no" >&6; }
  5818. fi
  5819. min_libgnutls_version=1.2.9
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5821. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5822. no_libgnutls=""
  5823. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5824. no_libgnutls=yes
  5825. else
  5826. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5827. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5828. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5829. ac_save_CFLAGS="$CFLAGS"
  5830. ac_save_LIBS="$LIBS"
  5831. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5832. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5833. rm -f conf.libgnutlstest
  5834. if test "$cross_compiling" = yes; then :
  5835. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5836. else
  5837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5838. /* end confdefs.h. */
  5839. #include <stdio.h>
  5840. #include <stdlib.h>
  5841. #include <string.h>
  5842. #include <gnutls/gnutls.h>
  5843. int
  5844. main ()
  5845. {
  5846. system ("touch conf.libgnutlstest");
  5847. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5848. {
  5849. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5850. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5851. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5852. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5853. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5854. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5855. printf("*** required on your system.\n");
  5856. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5857. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5858. printf("*** before re-running configure\n");
  5859. }
  5860. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5861. {
  5862. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5863. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5864. }
  5865. else
  5866. {
  5867. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5868. {
  5869. return 0;
  5870. }
  5871. else
  5872. {
  5873. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5874. gnutls_check_version(NULL) );
  5875. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5876. "$min_libgnutls_version" );
  5877. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5878. printf("*** \n");
  5879. printf("*** If you have already installed a sufficiently new version, this error\n");
  5880. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5881. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5882. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5883. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5884. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5885. printf("*** so that the correct libraries are found at run-time))\n");
  5886. }
  5887. }
  5888. return 1;
  5889. }
  5890. _ACEOF
  5891. if ac_fn_cxx_try_run "$LINENO"; then :
  5892. else
  5893. no_libgnutls=yes
  5894. fi
  5895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5896. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5897. fi
  5898. CFLAGS="$ac_save_CFLAGS"
  5899. LIBS="$ac_save_LIBS"
  5900. fi
  5901. if test "x$no_libgnutls" = x ; then
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5903. $as_echo "yes" >&6; }
  5904. have_libgnutls=yes
  5905. else
  5906. if test -f conf.libgnutlstest ; then
  5907. :
  5908. else
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5910. $as_echo "no" >&6; }
  5911. fi
  5912. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5913. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5914. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5915. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5916. echo "*** full path to libgnutls-config."
  5917. else
  5918. if test -f conf.libgnutlstest ; then
  5919. :
  5920. else
  5921. echo "*** Could not run libgnutls test program, checking why..."
  5922. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5923. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5925. /* end confdefs.h. */
  5926. #include <stdio.h>
  5927. #include <stdlib.h>
  5928. #include <string.h>
  5929. #include <gnutls/gnutls.h>
  5930. int
  5931. main ()
  5932. {
  5933. return !!gnutls_check_version(NULL);
  5934. ;
  5935. return 0;
  5936. }
  5937. _ACEOF
  5938. if ac_fn_cxx_try_link "$LINENO"; then :
  5939. echo "*** The test program compiled, but did not run. This usually means"
  5940. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5941. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5942. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5943. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5944. echo "*** is required on your system"
  5945. echo "***"
  5946. echo "*** If you have an old version installed, it is best to remove it, although"
  5947. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5948. echo "***"
  5949. else
  5950. echo "*** The test program failed to compile or link. See the file config.log for the"
  5951. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5952. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5953. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5954. fi
  5955. rm -f core conftest.err conftest.$ac_objext \
  5956. conftest$ac_exeext conftest.$ac_ext
  5957. CFLAGS="$ac_save_CFLAGS"
  5958. LIBS="$ac_save_LIBS"
  5959. fi
  5960. fi
  5961. LIBGNUTLS_CFLAGS=""
  5962. LIBGNUTLS_LIBS=""
  5963. :
  5964. fi
  5965. rm -f conf.libgnutlstest
  5966. fi
  5967. if test "x$have_libgnutls" = "xyes"; then
  5968. $as_echo "#define HAVE_LIBGNUTLS 1" >>confdefs.h
  5969. elif test "x$with_gnutls_requested" = "xyes"; then
  5970. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5971. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5972. as_fn_error "gnutls is requested but not found in the system.
  5973. See \`config.log' for more details." "$LINENO" 5; }
  5974. fi
  5975. fi
  5976. if test "x$have_libgnutls" = "xyes"; then
  5977. # Check whether --with-libgcrypt-prefix was given.
  5978. if test "${with_libgcrypt_prefix+set}" = set; then :
  5979. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5980. else
  5981. libgcrypt_config_prefix=""
  5982. fi
  5983. if test x$libgcrypt_config_prefix != x ; then
  5984. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5985. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5986. fi
  5987. fi
  5988. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5989. set dummy libgcrypt-config; ac_word=$2
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5991. $as_echo_n "checking for $ac_word... " >&6; }
  5992. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. case $LIBGCRYPT_CONFIG in
  5996. [\\/]* | ?:[\\/]*)
  5997. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5998. ;;
  5999. *)
  6000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6001. for as_dir in $PATH
  6002. do
  6003. IFS=$as_save_IFS
  6004. test -z "$as_dir" && as_dir=.
  6005. for ac_exec_ext in '' $ac_executable_extensions; do
  6006. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6007. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6009. break 2
  6010. fi
  6011. done
  6012. done
  6013. IFS=$as_save_IFS
  6014. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6015. ;;
  6016. esac
  6017. fi
  6018. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6019. if test -n "$LIBGCRYPT_CONFIG"; then
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  6021. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6022. else
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6024. $as_echo "no" >&6; }
  6025. fi
  6026. tmp=1.2.2
  6027. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6028. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6029. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6030. else
  6031. req_libgcrypt_api=0
  6032. min_libgcrypt_version="$tmp"
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6035. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6036. ok=no
  6037. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6038. req_major=`echo $min_libgcrypt_version | \
  6039. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6040. req_minor=`echo $min_libgcrypt_version | \
  6041. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6042. req_micro=`echo $min_libgcrypt_version | \
  6043. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6044. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6045. major=`echo $libgcrypt_config_version | \
  6046. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6047. minor=`echo $libgcrypt_config_version | \
  6048. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6049. micro=`echo $libgcrypt_config_version | \
  6050. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6051. if test "$major" -gt "$req_major"; then
  6052. ok=yes
  6053. else
  6054. if test "$major" -eq "$req_major"; then
  6055. if test "$minor" -gt "$req_minor"; then
  6056. ok=yes
  6057. else
  6058. if test "$minor" -eq "$req_minor"; then
  6059. if test "$micro" -ge "$req_micro"; then
  6060. ok=yes
  6061. fi
  6062. fi
  6063. fi
  6064. fi
  6065. fi
  6066. fi
  6067. if test $ok = yes; then
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  6069. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6070. else
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6072. $as_echo "no" >&6; }
  6073. fi
  6074. if test $ok = yes; then
  6075. # If we have a recent libgcrypt, we should also check that the
  6076. # API is compatible
  6077. if test "$req_libgcrypt_api" -gt 0 ; then
  6078. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6079. if test "$tmp" -gt 0 ; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  6081. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6082. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  6084. $as_echo "okay" >&6; }
  6085. else
  6086. ok=no
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6088. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6089. fi
  6090. fi
  6091. fi
  6092. fi
  6093. if test $ok = yes; then
  6094. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6095. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6096. have_libgcrypt=yes
  6097. else
  6098. LIBGCRYPT_CFLAGS=""
  6099. LIBGCRYPT_LIBS=""
  6100. :
  6101. fi
  6102. if test "x$have_libgcrypt" = "xyes"; then
  6103. $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
  6104. fi
  6105. fi
  6106. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6107. # Check whether --with-openssl-prefix was given.
  6108. if test "${with_openssl_prefix+set}" = set; then :
  6109. withval=$with_openssl_prefix; openssl_prefix=$withval
  6110. else
  6111. openssl_prefix=""
  6112. fi
  6113. if test "x$openssl_prefix" = "x"; then
  6114. openssl_prefix="/usr/local"
  6115. fi
  6116. LIBS_save=$LIBS
  6117. CPPFLAGS_save=$CPPFLAGS
  6118. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6119. if test -x $PKG_CONFIG; then
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking availability of openssl using pkg-config" >&5
  6121. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6122. $PKG_CONFIG --exists openssl
  6123. if test "$?" = "0"; then
  6124. # Use pkg-config to detect LIBS and CFLAGS
  6125. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6126. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6127. LIBS="$OPENSSL_LIBS $LIBS"
  6128. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6129. have_openssl=yes
  6130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6131. $as_echo "yes" >&6; }
  6132. else
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6134. $as_echo "no" >&6; }
  6135. fi
  6136. fi
  6137. if test "x$have_openssl" != "xyes"; then
  6138. openssl_prefix_lib=$openssl_prefix/lib
  6139. openssl_prefix_include=$openssl_prefix/include
  6140. LIBS="-L$openssl_prefix_lib $LIBS"
  6141. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  6143. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6144. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  6145. $as_echo_n "(cached) " >&6
  6146. else
  6147. ac_check_lib_save_LIBS=$LIBS
  6148. LIBS="-lssl $LIBS"
  6149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6150. /* end confdefs.h. */
  6151. /* Override any GCC internal prototype to avoid an error.
  6152. Use char because int might match the return type of a GCC
  6153. builtin and then its argument prototype would still apply. */
  6154. #ifdef __cplusplus
  6155. extern "C"
  6156. #endif
  6157. char SSL_library_init ();
  6158. int
  6159. main ()
  6160. {
  6161. return SSL_library_init ();
  6162. ;
  6163. return 0;
  6164. }
  6165. _ACEOF
  6166. if ac_fn_cxx_try_link "$LINENO"; then :
  6167. ac_cv_lib_ssl_SSL_library_init=yes
  6168. else
  6169. ac_cv_lib_ssl_SSL_library_init=no
  6170. fi
  6171. rm -f core conftest.err conftest.$ac_objext \
  6172. conftest$ac_exeext conftest.$ac_ext
  6173. LIBS=$ac_check_lib_save_LIBS
  6174. fi
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6176. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6177. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  6178. have_openssl=yes LIBS="-lssl $LIBS"
  6179. fi
  6180. if test "x$have_openssl" = "xyes"; then
  6181. have_openssl=no
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
  6183. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6184. if test "${ac_cv_lib_crypto_main+set}" = set; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. ac_check_lib_save_LIBS=$LIBS
  6188. LIBS="-lcrypto $LIBS"
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. int
  6192. main ()
  6193. {
  6194. return main ();
  6195. ;
  6196. return 0;
  6197. }
  6198. _ACEOF
  6199. if ac_fn_cxx_try_link "$LINENO"; then :
  6200. ac_cv_lib_crypto_main=yes
  6201. else
  6202. ac_cv_lib_crypto_main=no
  6203. fi
  6204. rm -f core conftest.err conftest.$ac_objext \
  6205. conftest$ac_exeext conftest.$ac_ext
  6206. LIBS=$ac_check_lib_save_LIBS
  6207. fi
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
  6209. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6210. if test "x$ac_cv_lib_crypto_main" = x""yes; then :
  6211. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6212. fi
  6213. if test "x$have_openssl" = "xyes"; then
  6214. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6215. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6216. fi
  6217. fi
  6218. fi
  6219. if test "x$have_openssl" = "xyes"; then
  6220. $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
  6221. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6222. for ac_func in EVP_DigestInit_ex
  6223. do :
  6224. ac_fn_cxx_check_func "$LINENO" "EVP_DigestInit_ex" "ac_cv_func_EVP_DigestInit_ex"
  6225. if test "x$ac_cv_func_EVP_DigestInit_ex" = x""yes; then :
  6226. cat >>confdefs.h <<_ACEOF
  6227. #define HAVE_EVP_DIGESTINIT_EX 1
  6228. _ACEOF
  6229. have_digestinit_ex=yes
  6230. fi
  6231. done
  6232. if test "x$have_digestinit_ex" = "x"; then
  6233. $as_echo "#define HAVE_OLD_LIBSSL 1" >>confdefs.h
  6234. fi
  6235. # search for sha256 support
  6236. for ac_func in EVP_sha256
  6237. do :
  6238. ac_fn_cxx_check_func "$LINENO" "EVP_sha256" "ac_cv_func_EVP_sha256"
  6239. if test "x$ac_cv_func_EVP_sha256" = x""yes; then :
  6240. cat >>confdefs.h <<_ACEOF
  6241. #define HAVE_EVP_SHA256 1
  6242. _ACEOF
  6243. fi
  6244. done
  6245. fi
  6246. LIBS=$LIBS_save
  6247. CPPFLAGS=$CPPFLAGS_save
  6248. if test "x$have_openssl" != "xyes" &&
  6249. test "x$with_openssl_requested" = "xyes"; then
  6250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6252. as_fn_error "openssl is requested but not found in the system.
  6253. See \`config.log' for more details." "$LINENO" 5; }
  6254. fi
  6255. fi
  6256. if test "x$with_libcares" = "xyes"; then
  6257. # Check whether --with-libcares-prefix was given.
  6258. if test "${with_libcares_prefix+set}" = set; then :
  6259. withval=$with_libcares_prefix; libcares_prefix=$withval
  6260. else
  6261. libcares_prefix=""
  6262. fi
  6263. if test "x$libcares_prefix" = "x"; then
  6264. libcares_prefix="/usr"
  6265. fi
  6266. libcares_prefix_lib=$libcares_prefix/lib
  6267. libcares_prefix_include=$libcares_prefix/include
  6268. LIBS_save=$LIBS
  6269. CPPFLAGS_save=$CPPFLAGS
  6270. LIBS="-L$libcares_prefix_lib $LIBS"
  6271. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6273. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6274. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. ac_check_lib_save_LIBS=$LIBS
  6278. LIBS="-lcares $LIBS"
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. /* Override any GCC internal prototype to avoid an error.
  6282. Use char because int might match the return type of a GCC
  6283. builtin and then its argument prototype would still apply. */
  6284. #ifdef __cplusplus
  6285. extern "C"
  6286. #endif
  6287. char ares_init ();
  6288. int
  6289. main ()
  6290. {
  6291. return ares_init ();
  6292. ;
  6293. return 0;
  6294. }
  6295. _ACEOF
  6296. if ac_fn_cxx_try_link "$LINENO"; then :
  6297. ac_cv_lib_cares_ares_init=yes
  6298. else
  6299. ac_cv_lib_cares_ares_init=no
  6300. fi
  6301. rm -f core conftest.err conftest.$ac_objext \
  6302. conftest$ac_exeext conftest.$ac_ext
  6303. LIBS=$ac_check_lib_save_LIBS
  6304. fi
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6306. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6307. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6308. have_libcares=yes
  6309. fi
  6310. if test "x$have_libcares" != "xyes"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ares_init in -lcares" >&5
  6312. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6313. if test "${ac_cv_lib_cares_ares_init+set}" = set; then :
  6314. $as_echo_n "(cached) " >&6
  6315. else
  6316. ac_check_lib_save_LIBS=$LIBS
  6317. LIBS="-lcares -lrt $LIBS"
  6318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6319. /* end confdefs.h. */
  6320. /* Override any GCC internal prototype to avoid an error.
  6321. Use char because int might match the return type of a GCC
  6322. builtin and then its argument prototype would still apply. */
  6323. #ifdef __cplusplus
  6324. extern "C"
  6325. #endif
  6326. char ares_init ();
  6327. int
  6328. main ()
  6329. {
  6330. return ares_init ();
  6331. ;
  6332. return 0;
  6333. }
  6334. _ACEOF
  6335. if ac_fn_cxx_try_link "$LINENO"; then :
  6336. ac_cv_lib_cares_ares_init=yes
  6337. else
  6338. ac_cv_lib_cares_ares_init=no
  6339. fi
  6340. rm -f core conftest.err conftest.$ac_objext \
  6341. conftest$ac_exeext conftest.$ac_ext
  6342. LIBS=$ac_check_lib_save_LIBS
  6343. fi
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cares_ares_init" >&5
  6345. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6346. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then :
  6347. have_libcares=yes need_librt=yes
  6348. fi
  6349. fi
  6350. if test "x$have_libcares" = "xyes"; then
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6352. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. #include <ares.h>
  6356. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6357. int
  6358. main ()
  6359. {
  6360. ares_channel channel;
  6361. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6362. ;
  6363. return 0;
  6364. }
  6365. _ACEOF
  6366. if ac_fn_cxx_try_compile "$LINENO"; then :
  6367. have_libcares1_5=yes
  6368. else
  6369. have_libcares1_5=no
  6370. fi
  6371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_libcares1_5" >&5
  6373. $as_echo "$have_libcares1_5" >&6; }
  6374. if test "x$have_libcares1_5" = "xyes"; then
  6375. $as_echo "#define HAVE_LIBCARES1_5 1" >>confdefs.h
  6376. fi
  6377. $as_echo "#define HAVE_LIBCARES 1" >>confdefs.h
  6378. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6379. if test "x$need_librt" = "xyes"; then
  6380. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6381. fi
  6382. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6383. fi
  6384. LIBS=$LIBS_save
  6385. CPPFLAGS=$CPPFLAGS_save
  6386. if test "x$have_libcares" != "xyes" &&
  6387. test "x$with_libcares_requested" = "xyes"; then
  6388. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6389. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6390. as_fn_error "libcares is requested but not found in the system.
  6391. See \`config.log' for more details." "$LINENO" 5; }
  6392. fi
  6393. fi
  6394. # Check availability of libz
  6395. if test "x$with_libz" = "xyes"; then
  6396. # Check whether --with-libz-prefix was given.
  6397. if test "${with_libz_prefix+set}" = set; then :
  6398. withval=$with_libz_prefix; libz_prefix=$withval
  6399. else
  6400. libz_prefix=""
  6401. fi
  6402. if test "x$libz_prefix" = "x"; then
  6403. libz_prefix="/usr"
  6404. fi
  6405. libz_prefix_lib=$libz_prefix/lib
  6406. libz_prefix_include=$libz_prefix/include
  6407. LIBS_save=$LIBS
  6408. CPPFLAGS_save=$CPPFLAGS
  6409. LIBS="-L$libz_prefix_lib $LIBS"
  6410. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
  6412. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6413. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. ac_check_lib_save_LIBS=$LIBS
  6417. LIBS="-lz $LIBS"
  6418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6419. /* end confdefs.h. */
  6420. /* Override any GCC internal prototype to avoid an error.
  6421. Use char because int might match the return type of a GCC
  6422. builtin and then its argument prototype would still apply. */
  6423. #ifdef __cplusplus
  6424. extern "C"
  6425. #endif
  6426. char zlibVersion ();
  6427. int
  6428. main ()
  6429. {
  6430. return zlibVersion ();
  6431. ;
  6432. return 0;
  6433. }
  6434. _ACEOF
  6435. if ac_fn_cxx_try_link "$LINENO"; then :
  6436. ac_cv_lib_z_zlibVersion=yes
  6437. else
  6438. ac_cv_lib_z_zlibVersion=no
  6439. fi
  6440. rm -f core conftest.err conftest.$ac_objext \
  6441. conftest$ac_exeext conftest.$ac_ext
  6442. LIBS=$ac_check_lib_save_LIBS
  6443. fi
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
  6445. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6446. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
  6447. have_libz=yes
  6448. fi
  6449. if test "x$have_libz" = "xyes"; then
  6450. $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
  6451. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6452. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6453. fi
  6454. LIBS=$LIBS_save
  6455. CPPFLAGS=$CPPFLAGS_save
  6456. if test "x$have_libz" != "xyes" && test "x$with_libz_requested" = "xyes"; then
  6457. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6458. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6459. as_fn_error "libz is requested but not found in the system.
  6460. See \`config.log' for more details." "$LINENO" 5; }
  6461. fi
  6462. fi
  6463. # Define variables based on the result of the checks for libraries.
  6464. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6465. $as_echo "#define ENABLE_SSL 1" >>confdefs.h
  6466. if true; then
  6467. ENABLE_SSL_TRUE=
  6468. ENABLE_SSL_FALSE='#'
  6469. else
  6470. ENABLE_SSL_TRUE='#'
  6471. ENABLE_SSL_FALSE=
  6472. fi
  6473. else
  6474. if false; then
  6475. ENABLE_SSL_TRUE=
  6476. ENABLE_SSL_FALSE='#'
  6477. else
  6478. ENABLE_SSL_TRUE='#'
  6479. ENABLE_SSL_FALSE=
  6480. fi
  6481. fi
  6482. if test "x$have_libgnutls" = "xyes" ; then
  6483. HAVE_LIBGNUTLS_TRUE=
  6484. HAVE_LIBGNUTLS_FALSE='#'
  6485. else
  6486. HAVE_LIBGNUTLS_TRUE='#'
  6487. HAVE_LIBGNUTLS_FALSE=
  6488. fi
  6489. if test "x$have_openssl" = "xyes" ; then
  6490. HAVE_LIBSSL_TRUE=
  6491. HAVE_LIBSSL_FALSE='#'
  6492. else
  6493. HAVE_LIBSSL_TRUE='#'
  6494. HAVE_LIBSSL_FALSE=
  6495. fi
  6496. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6497. $as_echo "#define ENABLE_MESSAGE_DIGEST 1" >>confdefs.h
  6498. if true; then
  6499. ENABLE_MESSAGE_DIGEST_TRUE=
  6500. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6501. else
  6502. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6503. ENABLE_MESSAGE_DIGEST_FALSE=
  6504. fi
  6505. enable_message_digest=yes
  6506. else
  6507. if false; then
  6508. ENABLE_MESSAGE_DIGEST_TRUE=
  6509. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6510. else
  6511. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6512. ENABLE_MESSAGE_DIGEST_FALSE=
  6513. fi
  6514. fi
  6515. if test "x$enable_bittorrent" = "xyes" &&
  6516. test "x$enable_message_digest" = "xyes"; then
  6517. $as_echo "#define ENABLE_BITTORRENT 1" >>confdefs.h
  6518. if true; then
  6519. ENABLE_BITTORRENT_TRUE=
  6520. ENABLE_BITTORRENT_FALSE='#'
  6521. else
  6522. ENABLE_BITTORRENT_TRUE='#'
  6523. ENABLE_BITTORRENT_FALSE=
  6524. fi
  6525. else
  6526. if test "x$enable_bittorrent_requested" = "xyes"; then
  6527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6529. as_fn_error "bittorrent is requested but cannot be enabled with current\
  6530. configuration.\
  6531. Make sure that dependent libraries are installed and configure script options\
  6532. are correct.
  6533. See \`config.log' for more details." "$LINENO" 5; }
  6534. fi
  6535. enable_bittorrent=no
  6536. if false; then
  6537. ENABLE_BITTORRENT_TRUE=
  6538. ENABLE_BITTORRENT_FALSE='#'
  6539. else
  6540. ENABLE_BITTORRENT_TRUE='#'
  6541. ENABLE_BITTORRENT_FALSE=
  6542. fi
  6543. fi
  6544. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6545. test "x$enable_metalink" = "xyes"; then
  6546. $as_echo "#define ENABLE_METALINK 1" >>confdefs.h
  6547. if true; then
  6548. ENABLE_METALINK_TRUE=
  6549. ENABLE_METALINK_FALSE='#'
  6550. else
  6551. ENABLE_METALINK_TRUE='#'
  6552. ENABLE_METALINK_FALSE=
  6553. fi
  6554. else
  6555. if test "x$enable_metalink_requested" = "xyes"; then
  6556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6558. as_fn_error "metalink is requested but cannot be enabled with current\
  6559. configuration.\
  6560. Make sure that dependent libraries are installed and configure script options\
  6561. are correct.
  6562. See \`config.log' for more details." "$LINENO" 5; }
  6563. fi
  6564. enable_metalink=no
  6565. if false; then
  6566. ENABLE_METALINK_TRUE=
  6567. ENABLE_METALINK_FALSE='#'
  6568. else
  6569. ENABLE_METALINK_TRUE='#'
  6570. ENABLE_METALINK_FALSE=
  6571. fi
  6572. fi
  6573. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6574. ENABLE_METALINK_LIBXML2_TRUE=
  6575. ENABLE_METALINK_LIBXML2_FALSE='#'
  6576. else
  6577. ENABLE_METALINK_LIBXML2_TRUE='#'
  6578. ENABLE_METALINK_LIBXML2_FALSE=
  6579. fi
  6580. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6581. ENABLE_METALINK_LIBEXPAT_TRUE=
  6582. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  6583. else
  6584. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  6585. ENABLE_METALINK_LIBEXPAT_FALSE=
  6586. fi
  6587. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  6588. enable_xml_rpc=yes
  6589. fi
  6590. if test "x$enable_xml_rpc" = "xyes"; then
  6591. $as_echo "#define ENABLE_XML_RPC 1" >>confdefs.h
  6592. fi
  6593. if test "x$enable_xml_rpc" = "xyes"; then
  6594. ENABLE_XML_RPC_TRUE=
  6595. ENABLE_XML_RPC_FALSE='#'
  6596. else
  6597. ENABLE_XML_RPC_TRUE='#'
  6598. ENABLE_XML_RPC_FALSE=
  6599. fi
  6600. if test "x$have_libxml2" = "xyes"; then
  6601. HAVE_LIBXML2_TRUE=
  6602. HAVE_LIBXML2_FALSE='#'
  6603. else
  6604. HAVE_LIBXML2_TRUE='#'
  6605. HAVE_LIBXML2_FALSE=
  6606. fi
  6607. if test "x$have_libexpat" = "xyes"; then
  6608. HAVE_LIBEXPAT_TRUE=
  6609. HAVE_LIBEXPAT_FALSE='#'
  6610. else
  6611. HAVE_LIBEXPAT_TRUE='#'
  6612. HAVE_LIBEXPAT_FALSE=
  6613. fi
  6614. if test "x$have_libcares" = "xyes"; then
  6615. $as_echo "#define ENABLE_ASYNC_DNS 1" >>confdefs.h
  6616. if true; then
  6617. ENABLE_ASYNC_DNS_TRUE=
  6618. ENABLE_ASYNC_DNS_FALSE='#'
  6619. else
  6620. ENABLE_ASYNC_DNS_TRUE='#'
  6621. ENABLE_ASYNC_DNS_FALSE=
  6622. fi
  6623. else
  6624. if false; then
  6625. ENABLE_ASYNC_DNS_TRUE=
  6626. ENABLE_ASYNC_DNS_FALSE='#'
  6627. else
  6628. ENABLE_ASYNC_DNS_TRUE='#'
  6629. ENABLE_ASYNC_DNS_FALSE=
  6630. fi
  6631. fi
  6632. # Set conditional for libz
  6633. if test "x$have_libz" = "xyes"; then
  6634. HAVE_LIBZ_TRUE=
  6635. HAVE_LIBZ_FALSE='#'
  6636. else
  6637. HAVE_LIBZ_TRUE='#'
  6638. HAVE_LIBZ_FALSE=
  6639. fi
  6640. # Set conditional for sqlite3
  6641. if test "x$have_sqlite3" = "xyes"; then
  6642. HAVE_SQLITE3_TRUE=
  6643. HAVE_SQLITE3_FALSE='#'
  6644. else
  6645. HAVE_SQLITE3_TRUE='#'
  6646. HAVE_SQLITE3_FALSE=
  6647. fi
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  6649. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  6650. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. ac_func_search_save_LIBS=$LIBS
  6654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6655. /* end confdefs.h. */
  6656. /* Override any GCC internal prototype to avoid an error.
  6657. Use char because int might match the return type of a GCC
  6658. builtin and then its argument prototype would still apply. */
  6659. #ifdef __cplusplus
  6660. extern "C"
  6661. #endif
  6662. char clock_gettime ();
  6663. int
  6664. main ()
  6665. {
  6666. return clock_gettime ();
  6667. ;
  6668. return 0;
  6669. }
  6670. _ACEOF
  6671. for ac_lib in '' rt; do
  6672. if test -z "$ac_lib"; then
  6673. ac_res="none required"
  6674. else
  6675. ac_res=-l$ac_lib
  6676. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6677. fi
  6678. if ac_fn_cxx_try_link "$LINENO"; then :
  6679. ac_cv_search_clock_gettime=$ac_res
  6680. fi
  6681. rm -f core conftest.err conftest.$ac_objext \
  6682. conftest$ac_exeext
  6683. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6684. break
  6685. fi
  6686. done
  6687. if test "${ac_cv_search_clock_gettime+set}" = set; then :
  6688. else
  6689. ac_cv_search_clock_gettime=no
  6690. fi
  6691. rm conftest.$ac_ext
  6692. LIBS=$ac_func_search_save_LIBS
  6693. fi
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  6695. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  6696. ac_res=$ac_cv_search_clock_gettime
  6697. if test "$ac_res" != no; then :
  6698. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6699. fi
  6700. case "$target" in
  6701. *solaris*)
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
  6703. $as_echo_n "checking for library containing getaddrinfo... " >&6; }
  6704. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. ac_func_search_save_LIBS=$LIBS
  6708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6709. /* end confdefs.h. */
  6710. /* Override any GCC internal prototype to avoid an error.
  6711. Use char because int might match the return type of a GCC
  6712. builtin and then its argument prototype would still apply. */
  6713. #ifdef __cplusplus
  6714. extern "C"
  6715. #endif
  6716. char getaddrinfo ();
  6717. int
  6718. main ()
  6719. {
  6720. return getaddrinfo ();
  6721. ;
  6722. return 0;
  6723. }
  6724. _ACEOF
  6725. for ac_lib in '' nsl socket; do
  6726. if test -z "$ac_lib"; then
  6727. ac_res="none required"
  6728. else
  6729. ac_res=-l$ac_lib
  6730. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6731. fi
  6732. if ac_fn_cxx_try_link "$LINENO"; then :
  6733. ac_cv_search_getaddrinfo=$ac_res
  6734. fi
  6735. rm -f core conftest.err conftest.$ac_objext \
  6736. conftest$ac_exeext
  6737. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6738. break
  6739. fi
  6740. done
  6741. if test "${ac_cv_search_getaddrinfo+set}" = set; then :
  6742. else
  6743. ac_cv_search_getaddrinfo=no
  6744. fi
  6745. rm conftest.$ac_ext
  6746. LIBS=$ac_func_search_save_LIBS
  6747. fi
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
  6749. $as_echo "$ac_cv_search_getaddrinfo" >&6; }
  6750. ac_res=$ac_cv_search_getaddrinfo
  6751. if test "$ac_res" != no; then :
  6752. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6753. fi
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
  6755. $as_echo_n "checking for library containing inet_aton... " >&6; }
  6756. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. ac_func_search_save_LIBS=$LIBS
  6760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6761. /* end confdefs.h. */
  6762. /* Override any GCC internal prototype to avoid an error.
  6763. Use char because int might match the return type of a GCC
  6764. builtin and then its argument prototype would still apply. */
  6765. #ifdef __cplusplus
  6766. extern "C"
  6767. #endif
  6768. char inet_aton ();
  6769. int
  6770. main ()
  6771. {
  6772. return inet_aton ();
  6773. ;
  6774. return 0;
  6775. }
  6776. _ACEOF
  6777. for ac_lib in '' nsl socket; do
  6778. if test -z "$ac_lib"; then
  6779. ac_res="none required"
  6780. else
  6781. ac_res=-l$ac_lib
  6782. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6783. fi
  6784. if ac_fn_cxx_try_link "$LINENO"; then :
  6785. ac_cv_search_inet_aton=$ac_res
  6786. fi
  6787. rm -f core conftest.err conftest.$ac_objext \
  6788. conftest$ac_exeext
  6789. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6790. break
  6791. fi
  6792. done
  6793. if test "${ac_cv_search_inet_aton+set}" = set; then :
  6794. else
  6795. ac_cv_search_inet_aton=no
  6796. fi
  6797. rm conftest.$ac_ext
  6798. LIBS=$ac_func_search_save_LIBS
  6799. fi
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
  6801. $as_echo "$ac_cv_search_inet_aton" >&6; }
  6802. ac_res=$ac_cv_search_inet_aton
  6803. if test "$ac_res" != no; then :
  6804. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6805. fi
  6806. ;;
  6807. esac
  6808. # Checks for header files.
  6809. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6810. # for constant arguments. Useless!
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  6812. $as_echo_n "checking for working alloca.h... " >&6; }
  6813. if test "${ac_cv_working_alloca_h+set}" = set; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6817. /* end confdefs.h. */
  6818. #include <alloca.h>
  6819. int
  6820. main ()
  6821. {
  6822. char *p = (char *) alloca (2 * sizeof (int));
  6823. if (p) return 0;
  6824. ;
  6825. return 0;
  6826. }
  6827. _ACEOF
  6828. if ac_fn_cxx_try_link "$LINENO"; then :
  6829. ac_cv_working_alloca_h=yes
  6830. else
  6831. ac_cv_working_alloca_h=no
  6832. fi
  6833. rm -f core conftest.err conftest.$ac_objext \
  6834. conftest$ac_exeext conftest.$ac_ext
  6835. fi
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  6837. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6838. if test $ac_cv_working_alloca_h = yes; then
  6839. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  6840. fi
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  6842. $as_echo_n "checking for alloca... " >&6; }
  6843. if test "${ac_cv_func_alloca_works+set}" = set; then :
  6844. $as_echo_n "(cached) " >&6
  6845. else
  6846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6847. /* end confdefs.h. */
  6848. #ifdef __GNUC__
  6849. # define alloca __builtin_alloca
  6850. #else
  6851. # ifdef _MSC_VER
  6852. # include <malloc.h>
  6853. # define alloca _alloca
  6854. # else
  6855. # ifdef HAVE_ALLOCA_H
  6856. # include <alloca.h>
  6857. # else
  6858. # ifdef _AIX
  6859. #pragma alloca
  6860. # else
  6861. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6862. char *alloca ();
  6863. # endif
  6864. # endif
  6865. # endif
  6866. # endif
  6867. #endif
  6868. int
  6869. main ()
  6870. {
  6871. char *p = (char *) alloca (1);
  6872. if (p) return 0;
  6873. ;
  6874. return 0;
  6875. }
  6876. _ACEOF
  6877. if ac_fn_cxx_try_link "$LINENO"; then :
  6878. ac_cv_func_alloca_works=yes
  6879. else
  6880. ac_cv_func_alloca_works=no
  6881. fi
  6882. rm -f core conftest.err conftest.$ac_objext \
  6883. conftest$ac_exeext conftest.$ac_ext
  6884. fi
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  6886. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6887. if test $ac_cv_func_alloca_works = yes; then
  6888. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  6889. else
  6890. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6891. # that cause trouble. Some versions do not even contain alloca or
  6892. # contain a buggy version. If you still want to use their alloca,
  6893. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6894. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6895. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  6896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  6897. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6898. if test "${ac_cv_os_cray+set}" = set; then :
  6899. $as_echo_n "(cached) " >&6
  6900. else
  6901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6902. /* end confdefs.h. */
  6903. #if defined CRAY && ! defined CRAY2
  6904. webecray
  6905. #else
  6906. wenotbecray
  6907. #endif
  6908. _ACEOF
  6909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6910. $EGREP "webecray" >/dev/null 2>&1; then :
  6911. ac_cv_os_cray=yes
  6912. else
  6913. ac_cv_os_cray=no
  6914. fi
  6915. rm -f conftest*
  6916. fi
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  6918. $as_echo "$ac_cv_os_cray" >&6; }
  6919. if test $ac_cv_os_cray = yes; then
  6920. for ac_func in _getb67 GETB67 getb67; do
  6921. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6922. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6923. eval as_val=\$$as_ac_var
  6924. if test "x$as_val" = x""yes; then :
  6925. cat >>confdefs.h <<_ACEOF
  6926. #define CRAY_STACKSEG_END $ac_func
  6927. _ACEOF
  6928. break
  6929. fi
  6930. done
  6931. fi
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  6933. $as_echo_n "checking stack direction for C alloca... " >&6; }
  6934. if test "${ac_cv_c_stack_direction+set}" = set; then :
  6935. $as_echo_n "(cached) " >&6
  6936. else
  6937. if test "$cross_compiling" = yes; then :
  6938. ac_cv_c_stack_direction=0
  6939. else
  6940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6941. /* end confdefs.h. */
  6942. $ac_includes_default
  6943. int
  6944. find_stack_direction ()
  6945. {
  6946. static char *addr = 0;
  6947. auto char dummy;
  6948. if (addr == 0)
  6949. {
  6950. addr = &dummy;
  6951. return find_stack_direction ();
  6952. }
  6953. else
  6954. return (&dummy > addr) ? 1 : -1;
  6955. }
  6956. int
  6957. main ()
  6958. {
  6959. return find_stack_direction () < 0;
  6960. }
  6961. _ACEOF
  6962. if ac_fn_cxx_try_run "$LINENO"; then :
  6963. ac_cv_c_stack_direction=1
  6964. else
  6965. ac_cv_c_stack_direction=-1
  6966. fi
  6967. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6968. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6969. fi
  6970. fi
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  6972. $as_echo "$ac_cv_c_stack_direction" >&6; }
  6973. cat >>confdefs.h <<_ACEOF
  6974. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6975. _ACEOF
  6976. fi
  6977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6978. $as_echo_n "checking for ANSI C header files... " >&6; }
  6979. if test "${ac_cv_header_stdc+set}" = set; then :
  6980. $as_echo_n "(cached) " >&6
  6981. else
  6982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6983. /* end confdefs.h. */
  6984. #include <stdlib.h>
  6985. #include <stdarg.h>
  6986. #include <string.h>
  6987. #include <float.h>
  6988. int
  6989. main ()
  6990. {
  6991. ;
  6992. return 0;
  6993. }
  6994. _ACEOF
  6995. if ac_fn_cxx_try_compile "$LINENO"; then :
  6996. ac_cv_header_stdc=yes
  6997. else
  6998. ac_cv_header_stdc=no
  6999. fi
  7000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7001. if test $ac_cv_header_stdc = yes; then
  7002. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7004. /* end confdefs.h. */
  7005. #include <string.h>
  7006. _ACEOF
  7007. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7008. $EGREP "memchr" >/dev/null 2>&1; then :
  7009. else
  7010. ac_cv_header_stdc=no
  7011. fi
  7012. rm -f conftest*
  7013. fi
  7014. if test $ac_cv_header_stdc = yes; then
  7015. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7017. /* end confdefs.h. */
  7018. #include <stdlib.h>
  7019. _ACEOF
  7020. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7021. $EGREP "free" >/dev/null 2>&1; then :
  7022. else
  7023. ac_cv_header_stdc=no
  7024. fi
  7025. rm -f conftest*
  7026. fi
  7027. if test $ac_cv_header_stdc = yes; then
  7028. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7029. if test "$cross_compiling" = yes; then :
  7030. :
  7031. else
  7032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7033. /* end confdefs.h. */
  7034. #include <ctype.h>
  7035. #include <stdlib.h>
  7036. #if ((' ' & 0x0FF) == 0x020)
  7037. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7038. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7039. #else
  7040. # define ISLOWER(c) \
  7041. (('a' <= (c) && (c) <= 'i') \
  7042. || ('j' <= (c) && (c) <= 'r') \
  7043. || ('s' <= (c) && (c) <= 'z'))
  7044. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7045. #endif
  7046. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7047. int
  7048. main ()
  7049. {
  7050. int i;
  7051. for (i = 0; i < 256; i++)
  7052. if (XOR (islower (i), ISLOWER (i))
  7053. || toupper (i) != TOUPPER (i))
  7054. return 2;
  7055. return 0;
  7056. }
  7057. _ACEOF
  7058. if ac_fn_cxx_try_run "$LINENO"; then :
  7059. else
  7060. ac_cv_header_stdc=no
  7061. fi
  7062. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7063. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7064. fi
  7065. fi
  7066. fi
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7068. $as_echo "$ac_cv_header_stdc" >&6; }
  7069. if test $ac_cv_header_stdc = yes; then
  7070. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7071. fi
  7072. case "$target" in
  7073. *mingw*)
  7074. for ac_header in windows.h \
  7075. winsock2.h \
  7076. ws2tcpip.h \
  7077. mmsystem.h
  7078. do :
  7079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7080. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
  7081. # include <windows.h>
  7082. #endif
  7083. "
  7084. eval as_val=\$$as_ac_Header
  7085. if test "x$as_val" = x""yes; then :
  7086. cat >>confdefs.h <<_ACEOF
  7087. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7088. _ACEOF
  7089. fi
  7090. done
  7091. ;;
  7092. esac
  7093. for ac_header in argz.h \
  7094. arpa/inet.h \
  7095. fcntl.h \
  7096. float.h \
  7097. inttypes.h \
  7098. io.h \
  7099. langinfo.h \
  7100. libintl.h \
  7101. limits.h \
  7102. locale.h \
  7103. malloc.h \
  7104. netdb.h \
  7105. netinet/in.h \
  7106. poll.h \
  7107. port.h \
  7108. stddef.h \
  7109. stdint.h \
  7110. stdio_ext.h \
  7111. stdlib.h \
  7112. string.h \
  7113. strings.h \
  7114. sys/ioctl.h \
  7115. sys/param.h \
  7116. sys/socket.h \
  7117. sys/time.h \
  7118. termios.h \
  7119. unistd.h \
  7120. utime.h \
  7121. wchar.h \
  7122. ifaddrs.h
  7123. do :
  7124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7125. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7126. eval as_val=\$$as_ac_Header
  7127. if test "x$as_val" = x""yes; then :
  7128. cat >>confdefs.h <<_ACEOF
  7129. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7130. _ACEOF
  7131. fi
  7132. done
  7133. # Checks for typedefs, structures, and compiler characteristics.
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  7135. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7136. if test "${ac_cv_header_stdbool_h+set}" = set; then :
  7137. $as_echo_n "(cached) " >&6
  7138. else
  7139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7140. /* end confdefs.h. */
  7141. #include <stdbool.h>
  7142. #ifndef bool
  7143. "error: bool is not defined"
  7144. #endif
  7145. #ifndef false
  7146. "error: false is not defined"
  7147. #endif
  7148. #if false
  7149. "error: false is not 0"
  7150. #endif
  7151. #ifndef true
  7152. "error: true is not defined"
  7153. #endif
  7154. #if true != 1
  7155. "error: true is not 1"
  7156. #endif
  7157. #ifndef __bool_true_false_are_defined
  7158. "error: __bool_true_false_are_defined is not defined"
  7159. #endif
  7160. struct s { _Bool s: 1; _Bool t; } s;
  7161. char a[true == 1 ? 1 : -1];
  7162. char b[false == 0 ? 1 : -1];
  7163. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7164. char d[(bool) 0.5 == true ? 1 : -1];
  7165. bool e = &s;
  7166. char f[(_Bool) 0.0 == false ? 1 : -1];
  7167. char g[true];
  7168. char h[sizeof (_Bool)];
  7169. char i[sizeof s.t];
  7170. enum { j = false, k = true, l = false * true, m = true * 256 };
  7171. /* The following fails for
  7172. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7173. _Bool n[m];
  7174. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7175. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7176. # if defined __xlc__ || defined __GNUC__
  7177. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7178. reported by James Lemley on 2005-10-05; see
  7179. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7180. This test is not quite right, since xlc is allowed to
  7181. reject this program, as the initializer for xlcbug is
  7182. not one of the forms that C requires support for.
  7183. However, doing the test right would require a runtime
  7184. test, and that would make cross-compilation harder.
  7185. Let us hope that IBM fixes the xlc bug, and also adds
  7186. support for this kind of constant expression. In the
  7187. meantime, this test will reject xlc, which is OK, since
  7188. our stdbool.h substitute should suffice. We also test
  7189. this with GCC, where it should work, to detect more
  7190. quickly whether someone messes up the test in the
  7191. future. */
  7192. char digs[] = "0123456789";
  7193. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7194. # endif
  7195. /* Catch a bug in an HP-UX C compiler. See
  7196. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7197. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7198. */
  7199. _Bool q = true;
  7200. _Bool *pq = &q;
  7201. int
  7202. main ()
  7203. {
  7204. *pq |= q;
  7205. *pq |= ! q;
  7206. /* Refer to every declared value, to avoid compiler optimizations. */
  7207. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7208. + !m + !n + !o + !p + !q + !pq);
  7209. ;
  7210. return 0;
  7211. }
  7212. _ACEOF
  7213. if ac_fn_cxx_try_compile "$LINENO"; then :
  7214. ac_cv_header_stdbool_h=yes
  7215. else
  7216. ac_cv_header_stdbool_h=no
  7217. fi
  7218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7219. fi
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  7221. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7222. ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  7223. if test "x$ac_cv_type__Bool" = x""yes; then :
  7224. cat >>confdefs.h <<_ACEOF
  7225. #define HAVE__BOOL 1
  7226. _ACEOF
  7227. fi
  7228. if test $ac_cv_header_stdbool_h = yes; then
  7229. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  7230. fi
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  7232. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7233. if test "${ac_cv_c_const+set}" = set; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7237. /* end confdefs.h. */
  7238. int
  7239. main ()
  7240. {
  7241. /* FIXME: Include the comments suggested by Paul. */
  7242. #ifndef __cplusplus
  7243. /* Ultrix mips cc rejects this. */
  7244. typedef int charset[2];
  7245. const charset cs;
  7246. /* SunOS 4.1.1 cc rejects this. */
  7247. char const *const *pcpcc;
  7248. char **ppc;
  7249. /* NEC SVR4.0.2 mips cc rejects this. */
  7250. struct point {int x, y;};
  7251. static struct point const zero = {0,0};
  7252. /* AIX XL C 1.02.0.0 rejects this.
  7253. It does not let you subtract one const X* pointer from another in
  7254. an arm of an if-expression whose if-part is not a constant
  7255. expression */
  7256. const char *g = "string";
  7257. pcpcc = &g + (g ? g-g : 0);
  7258. /* HPUX 7.0 cc rejects these. */
  7259. ++pcpcc;
  7260. ppc = (char**) pcpcc;
  7261. pcpcc = (char const *const *) ppc;
  7262. { /* SCO 3.2v4 cc rejects this. */
  7263. char *t;
  7264. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7265. *t++ = 0;
  7266. if (s) return 0;
  7267. }
  7268. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7269. int x[] = {25, 17};
  7270. const int *foo = &x[0];
  7271. ++foo;
  7272. }
  7273. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7274. typedef const int *iptr;
  7275. iptr p = 0;
  7276. ++p;
  7277. }
  7278. { /* AIX XL C 1.02.0.0 rejects this saying
  7279. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7280. struct s { int j; const int *ap[3]; };
  7281. struct s *b; b->j = 5;
  7282. }
  7283. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7284. const int foo = 10;
  7285. if (!foo) return 0;
  7286. }
  7287. return !cs[0] && !zero.x;
  7288. #endif
  7289. ;
  7290. return 0;
  7291. }
  7292. _ACEOF
  7293. if ac_fn_cxx_try_compile "$LINENO"; then :
  7294. ac_cv_c_const=yes
  7295. else
  7296. ac_cv_c_const=no
  7297. fi
  7298. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7299. fi
  7300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  7301. $as_echo "$ac_cv_c_const" >&6; }
  7302. if test $ac_cv_c_const = no; then
  7303. $as_echo "#define const /**/" >>confdefs.h
  7304. fi
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  7306. $as_echo_n "checking for inline... " >&6; }
  7307. if test "${ac_cv_c_inline+set}" = set; then :
  7308. $as_echo_n "(cached) " >&6
  7309. else
  7310. ac_cv_c_inline=no
  7311. for ac_kw in inline __inline__ __inline; do
  7312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7313. /* end confdefs.h. */
  7314. #ifndef __cplusplus
  7315. typedef int foo_t;
  7316. static $ac_kw foo_t static_foo () {return 0; }
  7317. $ac_kw foo_t foo () {return 0; }
  7318. #endif
  7319. _ACEOF
  7320. if ac_fn_cxx_try_compile "$LINENO"; then :
  7321. ac_cv_c_inline=$ac_kw
  7322. fi
  7323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7324. test "$ac_cv_c_inline" != no && break
  7325. done
  7326. fi
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  7328. $as_echo "$ac_cv_c_inline" >&6; }
  7329. case $ac_cv_c_inline in
  7330. inline | yes) ;;
  7331. *)
  7332. case $ac_cv_c_inline in
  7333. no) ac_val=;;
  7334. *) ac_val=$ac_cv_c_inline;;
  7335. esac
  7336. cat >>confdefs.h <<_ACEOF
  7337. #ifndef __cplusplus
  7338. #define inline $ac_val
  7339. #endif
  7340. _ACEOF
  7341. ;;
  7342. esac
  7343. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7344. case $ac_cv_c_int16_t in #(
  7345. no|yes) ;; #(
  7346. *)
  7347. cat >>confdefs.h <<_ACEOF
  7348. #define int16_t $ac_cv_c_int16_t
  7349. _ACEOF
  7350. ;;
  7351. esac
  7352. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7353. case $ac_cv_c_int32_t in #(
  7354. no|yes) ;; #(
  7355. *)
  7356. cat >>confdefs.h <<_ACEOF
  7357. #define int32_t $ac_cv_c_int32_t
  7358. _ACEOF
  7359. ;;
  7360. esac
  7361. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7362. case $ac_cv_c_int64_t in #(
  7363. no|yes) ;; #(
  7364. *)
  7365. cat >>confdefs.h <<_ACEOF
  7366. #define int64_t $ac_cv_c_int64_t
  7367. _ACEOF
  7368. ;;
  7369. esac
  7370. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7371. case $ac_cv_c_int8_t in #(
  7372. no|yes) ;; #(
  7373. *)
  7374. cat >>confdefs.h <<_ACEOF
  7375. #define int8_t $ac_cv_c_int8_t
  7376. _ACEOF
  7377. ;;
  7378. esac
  7379. ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  7380. if test "x$ac_cv_type_mode_t" = x""yes; then :
  7381. else
  7382. cat >>confdefs.h <<_ACEOF
  7383. #define mode_t int
  7384. _ACEOF
  7385. fi
  7386. ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  7387. if test "x$ac_cv_type_off_t" = x""yes; then :
  7388. else
  7389. cat >>confdefs.h <<_ACEOF
  7390. #define off_t long int
  7391. _ACEOF
  7392. fi
  7393. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7394. if test "x$ac_cv_type_size_t" = x""yes; then :
  7395. else
  7396. cat >>confdefs.h <<_ACEOF
  7397. #define size_t unsigned int
  7398. _ACEOF
  7399. fi
  7400. ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
  7401. if test "x$ac_cv_type_ssize_t" = x""yes; then :
  7402. else
  7403. cat >>confdefs.h <<_ACEOF
  7404. #define ssize_t int
  7405. _ACEOF
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  7408. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  7409. if test "${ac_cv_header_time+set}" = set; then :
  7410. $as_echo_n "(cached) " >&6
  7411. else
  7412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7413. /* end confdefs.h. */
  7414. #include <sys/types.h>
  7415. #include <sys/time.h>
  7416. #include <time.h>
  7417. int
  7418. main ()
  7419. {
  7420. if ((struct tm *) 0)
  7421. return 0;
  7422. ;
  7423. return 0;
  7424. }
  7425. _ACEOF
  7426. if ac_fn_cxx_try_compile "$LINENO"; then :
  7427. ac_cv_header_time=yes
  7428. else
  7429. ac_cv_header_time=no
  7430. fi
  7431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7432. fi
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  7434. $as_echo "$ac_cv_header_time" >&6; }
  7435. if test $ac_cv_header_time = yes; then
  7436. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  7437. fi
  7438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7439. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7440. if test "${ac_cv_struct_tm+set}" = set; then :
  7441. $as_echo_n "(cached) " >&6
  7442. else
  7443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7444. /* end confdefs.h. */
  7445. #include <sys/types.h>
  7446. #include <time.h>
  7447. int
  7448. main ()
  7449. {
  7450. struct tm tm;
  7451. int *p = &tm.tm_sec;
  7452. return !p;
  7453. ;
  7454. return 0;
  7455. }
  7456. _ACEOF
  7457. if ac_fn_cxx_try_compile "$LINENO"; then :
  7458. ac_cv_struct_tm=time.h
  7459. else
  7460. ac_cv_struct_tm=sys/time.h
  7461. fi
  7462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7463. fi
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7465. $as_echo "$ac_cv_struct_tm" >&6; }
  7466. if test $ac_cv_struct_tm = sys/time.h; then
  7467. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  7468. fi
  7469. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7470. case $ac_cv_c_uint16_t in #(
  7471. no|yes) ;; #(
  7472. *)
  7473. cat >>confdefs.h <<_ACEOF
  7474. #define uint16_t $ac_cv_c_uint16_t
  7475. _ACEOF
  7476. ;;
  7477. esac
  7478. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7479. case $ac_cv_c_uint32_t in #(
  7480. no|yes) ;; #(
  7481. *)
  7482. $as_echo "#define _UINT32_T 1" >>confdefs.h
  7483. cat >>confdefs.h <<_ACEOF
  7484. #define uint32_t $ac_cv_c_uint32_t
  7485. _ACEOF
  7486. ;;
  7487. esac
  7488. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7489. case $ac_cv_c_uint64_t in #(
  7490. no|yes) ;; #(
  7491. *)
  7492. $as_echo "#define _UINT64_T 1" >>confdefs.h
  7493. cat >>confdefs.h <<_ACEOF
  7494. #define uint64_t $ac_cv_c_uint64_t
  7495. _ACEOF
  7496. ;;
  7497. esac
  7498. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7499. case $ac_cv_c_uint8_t in #(
  7500. no|yes) ;; #(
  7501. *)
  7502. $as_echo "#define _UINT8_T 1" >>confdefs.h
  7503. cat >>confdefs.h <<_ACEOF
  7504. #define uint8_t $ac_cv_c_uint8_t
  7505. _ACEOF
  7506. ;;
  7507. esac
  7508. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7509. if test "x$ac_cv_type_pid_t" = x""yes; then :
  7510. else
  7511. cat >>confdefs.h <<_ACEOF
  7512. #define pid_t int
  7513. _ACEOF
  7514. fi
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  7516. $as_echo_n "checking for working volatile... " >&6; }
  7517. if test "${ac_cv_c_volatile+set}" = set; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. int
  7523. main ()
  7524. {
  7525. volatile int x;
  7526. int * volatile y = (int *) 0;
  7527. return !x && !y;
  7528. ;
  7529. return 0;
  7530. }
  7531. _ACEOF
  7532. if ac_fn_cxx_try_compile "$LINENO"; then :
  7533. ac_cv_c_volatile=yes
  7534. else
  7535. ac_cv_c_volatile=no
  7536. fi
  7537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7538. fi
  7539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  7540. $as_echo "$ac_cv_c_volatile" >&6; }
  7541. if test $ac_cv_c_volatile = no; then
  7542. $as_echo "#define volatile /**/" >>confdefs.h
  7543. fi
  7544. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  7545. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  7546. cat >>confdefs.h <<_ACEOF
  7547. #define HAVE_PTRDIFF_T 1
  7548. _ACEOF
  7549. fi
  7550. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
  7551. if test "x$ac_cv_type_struct_timespec" = x""yes; then :
  7552. cat >>confdefs.h <<_ACEOF
  7553. #define HAVE_STRUCT_TIMESPEC 1
  7554. _ACEOF
  7555. fi
  7556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7557. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7558. if test "${ac_cv_c_bigendian+set}" = set; then :
  7559. $as_echo_n "(cached) " >&6
  7560. else
  7561. ac_cv_c_bigendian=unknown
  7562. # See if we're dealing with a universal compiler.
  7563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7564. /* end confdefs.h. */
  7565. #ifndef __APPLE_CC__
  7566. not a universal capable compiler
  7567. #endif
  7568. typedef int dummy;
  7569. _ACEOF
  7570. if ac_fn_cxx_try_compile "$LINENO"; then :
  7571. # Check for potential -arch flags. It is not universal unless
  7572. # there are at least two -arch flags with different values.
  7573. ac_arch=
  7574. ac_prev=
  7575. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7576. if test -n "$ac_prev"; then
  7577. case $ac_word in
  7578. i?86 | x86_64 | ppc | ppc64)
  7579. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7580. ac_arch=$ac_word
  7581. else
  7582. ac_cv_c_bigendian=universal
  7583. break
  7584. fi
  7585. ;;
  7586. esac
  7587. ac_prev=
  7588. elif test "x$ac_word" = "x-arch"; then
  7589. ac_prev=arch
  7590. fi
  7591. done
  7592. fi
  7593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7594. if test $ac_cv_c_bigendian = unknown; then
  7595. # See if sys/param.h defines the BYTE_ORDER macro.
  7596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7597. /* end confdefs.h. */
  7598. #include <sys/types.h>
  7599. #include <sys/param.h>
  7600. int
  7601. main ()
  7602. {
  7603. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7604. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7605. && LITTLE_ENDIAN)
  7606. bogus endian macros
  7607. #endif
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. if ac_fn_cxx_try_compile "$LINENO"; then :
  7613. # It does; now see whether it defined to BIG_ENDIAN or not.
  7614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7615. /* end confdefs.h. */
  7616. #include <sys/types.h>
  7617. #include <sys/param.h>
  7618. int
  7619. main ()
  7620. {
  7621. #if BYTE_ORDER != BIG_ENDIAN
  7622. not big endian
  7623. #endif
  7624. ;
  7625. return 0;
  7626. }
  7627. _ACEOF
  7628. if ac_fn_cxx_try_compile "$LINENO"; then :
  7629. ac_cv_c_bigendian=yes
  7630. else
  7631. ac_cv_c_bigendian=no
  7632. fi
  7633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7634. fi
  7635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7636. fi
  7637. if test $ac_cv_c_bigendian = unknown; then
  7638. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7640. /* end confdefs.h. */
  7641. #include <limits.h>
  7642. int
  7643. main ()
  7644. {
  7645. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7646. bogus endian macros
  7647. #endif
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. if ac_fn_cxx_try_compile "$LINENO"; then :
  7653. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7655. /* end confdefs.h. */
  7656. #include <limits.h>
  7657. int
  7658. main ()
  7659. {
  7660. #ifndef _BIG_ENDIAN
  7661. not big endian
  7662. #endif
  7663. ;
  7664. return 0;
  7665. }
  7666. _ACEOF
  7667. if ac_fn_cxx_try_compile "$LINENO"; then :
  7668. ac_cv_c_bigendian=yes
  7669. else
  7670. ac_cv_c_bigendian=no
  7671. fi
  7672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7673. fi
  7674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7675. fi
  7676. if test $ac_cv_c_bigendian = unknown; then
  7677. # Compile a test program.
  7678. if test "$cross_compiling" = yes; then :
  7679. # Try to guess by grepping values from an object file.
  7680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7681. /* end confdefs.h. */
  7682. short int ascii_mm[] =
  7683. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7684. short int ascii_ii[] =
  7685. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7686. int use_ascii (int i) {
  7687. return ascii_mm[i] + ascii_ii[i];
  7688. }
  7689. short int ebcdic_ii[] =
  7690. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7691. short int ebcdic_mm[] =
  7692. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7693. int use_ebcdic (int i) {
  7694. return ebcdic_mm[i] + ebcdic_ii[i];
  7695. }
  7696. extern int foo;
  7697. int
  7698. main ()
  7699. {
  7700. return use_ascii (foo) == use_ebcdic (foo);
  7701. ;
  7702. return 0;
  7703. }
  7704. _ACEOF
  7705. if ac_fn_cxx_try_compile "$LINENO"; then :
  7706. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7707. ac_cv_c_bigendian=yes
  7708. fi
  7709. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7710. if test "$ac_cv_c_bigendian" = unknown; then
  7711. ac_cv_c_bigendian=no
  7712. else
  7713. # finding both strings is unlikely to happen, but who knows?
  7714. ac_cv_c_bigendian=unknown
  7715. fi
  7716. fi
  7717. fi
  7718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7719. else
  7720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7721. /* end confdefs.h. */
  7722. $ac_includes_default
  7723. int
  7724. main ()
  7725. {
  7726. /* Are we little or big endian? From Harbison&Steele. */
  7727. union
  7728. {
  7729. long int l;
  7730. char c[sizeof (long int)];
  7731. } u;
  7732. u.l = 1;
  7733. return u.c[sizeof (long int) - 1] == 1;
  7734. ;
  7735. return 0;
  7736. }
  7737. _ACEOF
  7738. if ac_fn_cxx_try_run "$LINENO"; then :
  7739. ac_cv_c_bigendian=no
  7740. else
  7741. ac_cv_c_bigendian=yes
  7742. fi
  7743. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7744. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7745. fi
  7746. fi
  7747. fi
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7749. $as_echo "$ac_cv_c_bigendian" >&6; }
  7750. case $ac_cv_c_bigendian in #(
  7751. yes)
  7752. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7753. ;; #(
  7754. no)
  7755. ;; #(
  7756. universal)
  7757. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7758. ;; #(
  7759. *)
  7760. as_fn_error "unknown endianness
  7761. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7762. esac
  7763. # Check whether --enable-largefile was given.
  7764. if test "${enable_largefile+set}" = set; then :
  7765. enableval=$enable_largefile;
  7766. fi
  7767. if test "$enable_largefile" != no; then
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7769. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7770. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7771. $as_echo_n "(cached) " >&6
  7772. else
  7773. ac_cv_sys_largefile_CC=no
  7774. if test "$GCC" != yes; then
  7775. ac_save_CC=$CC
  7776. while :; do
  7777. # IRIX 6.2 and later do not support large files by default,
  7778. # so use the C compiler's -n32 option if that helps.
  7779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7780. /* end confdefs.h. */
  7781. #include <sys/types.h>
  7782. /* Check that off_t can represent 2**63 - 1 correctly.
  7783. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7784. since some C++ compilers masquerading as C compilers
  7785. incorrectly reject 9223372036854775807. */
  7786. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7787. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7788. && LARGE_OFF_T % 2147483647 == 1)
  7789. ? 1 : -1];
  7790. int
  7791. main ()
  7792. {
  7793. ;
  7794. return 0;
  7795. }
  7796. _ACEOF
  7797. if ac_fn_cxx_try_compile "$LINENO"; then :
  7798. break
  7799. fi
  7800. rm -f core conftest.err conftest.$ac_objext
  7801. CC="$CC -n32"
  7802. if ac_fn_cxx_try_compile "$LINENO"; then :
  7803. ac_cv_sys_largefile_CC=' -n32'; break
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext
  7806. break
  7807. done
  7808. CC=$ac_save_CC
  7809. rm -f conftest.$ac_ext
  7810. fi
  7811. fi
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7813. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7814. if test "$ac_cv_sys_largefile_CC" != no; then
  7815. CC=$CC$ac_cv_sys_largefile_CC
  7816. fi
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7818. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7819. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7820. $as_echo_n "(cached) " >&6
  7821. else
  7822. while :; do
  7823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7824. /* end confdefs.h. */
  7825. #include <sys/types.h>
  7826. /* Check that off_t can represent 2**63 - 1 correctly.
  7827. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7828. since some C++ compilers masquerading as C compilers
  7829. incorrectly reject 9223372036854775807. */
  7830. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7831. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7832. && LARGE_OFF_T % 2147483647 == 1)
  7833. ? 1 : -1];
  7834. int
  7835. main ()
  7836. {
  7837. ;
  7838. return 0;
  7839. }
  7840. _ACEOF
  7841. if ac_fn_cxx_try_compile "$LINENO"; then :
  7842. ac_cv_sys_file_offset_bits=no; break
  7843. fi
  7844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7846. /* end confdefs.h. */
  7847. #define _FILE_OFFSET_BITS 64
  7848. #include <sys/types.h>
  7849. /* Check that off_t can represent 2**63 - 1 correctly.
  7850. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7851. since some C++ compilers masquerading as C compilers
  7852. incorrectly reject 9223372036854775807. */
  7853. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7854. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7855. && LARGE_OFF_T % 2147483647 == 1)
  7856. ? 1 : -1];
  7857. int
  7858. main ()
  7859. {
  7860. ;
  7861. return 0;
  7862. }
  7863. _ACEOF
  7864. if ac_fn_cxx_try_compile "$LINENO"; then :
  7865. ac_cv_sys_file_offset_bits=64; break
  7866. fi
  7867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7868. ac_cv_sys_file_offset_bits=unknown
  7869. break
  7870. done
  7871. fi
  7872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7873. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7874. case $ac_cv_sys_file_offset_bits in #(
  7875. no | unknown) ;;
  7876. *)
  7877. cat >>confdefs.h <<_ACEOF
  7878. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7879. _ACEOF
  7880. ;;
  7881. esac
  7882. rm -rf conftest*
  7883. if test $ac_cv_sys_file_offset_bits = unknown; then
  7884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7885. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7886. if test "${ac_cv_sys_large_files+set}" = set; then :
  7887. $as_echo_n "(cached) " >&6
  7888. else
  7889. while :; do
  7890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7891. /* end confdefs.h. */
  7892. #include <sys/types.h>
  7893. /* Check that off_t can represent 2**63 - 1 correctly.
  7894. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7895. since some C++ compilers masquerading as C compilers
  7896. incorrectly reject 9223372036854775807. */
  7897. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7898. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7899. && LARGE_OFF_T % 2147483647 == 1)
  7900. ? 1 : -1];
  7901. int
  7902. main ()
  7903. {
  7904. ;
  7905. return 0;
  7906. }
  7907. _ACEOF
  7908. if ac_fn_cxx_try_compile "$LINENO"; then :
  7909. ac_cv_sys_large_files=no; break
  7910. fi
  7911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7913. /* end confdefs.h. */
  7914. #define _LARGE_FILES 1
  7915. #include <sys/types.h>
  7916. /* Check that off_t can represent 2**63 - 1 correctly.
  7917. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7918. since some C++ compilers masquerading as C compilers
  7919. incorrectly reject 9223372036854775807. */
  7920. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7921. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7922. && LARGE_OFF_T % 2147483647 == 1)
  7923. ? 1 : -1];
  7924. int
  7925. main ()
  7926. {
  7927. ;
  7928. return 0;
  7929. }
  7930. _ACEOF
  7931. if ac_fn_cxx_try_compile "$LINENO"; then :
  7932. ac_cv_sys_large_files=1; break
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7935. ac_cv_sys_large_files=unknown
  7936. break
  7937. done
  7938. fi
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7940. $as_echo "$ac_cv_sys_large_files" >&6; }
  7941. case $ac_cv_sys_large_files in #(
  7942. no | unknown) ;;
  7943. *)
  7944. cat >>confdefs.h <<_ACEOF
  7945. #define _LARGE_FILES $ac_cv_sys_large_files
  7946. _ACEOF
  7947. ;;
  7948. esac
  7949. rm -rf conftest*
  7950. fi
  7951. fi
  7952. # Checks for library functions.
  7953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  7954. $as_echo_n "checking whether NLS is requested... " >&6; }
  7955. # Check whether --enable-nls was given.
  7956. if test "${enable_nls+set}" = set; then :
  7957. enableval=$enable_nls; USE_NLS=$enableval
  7958. else
  7959. USE_NLS=yes
  7960. fi
  7961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  7962. $as_echo "$USE_NLS" >&6; }
  7963. GETTEXT_MACRO_VERSION=0.17
  7964. # Prepare PATH_SEPARATOR.
  7965. # The user is always right.
  7966. if test "${PATH_SEPARATOR+set}" != set; then
  7967. echo "#! /bin/sh" >conf$$.sh
  7968. echo "exit 0" >>conf$$.sh
  7969. chmod +x conf$$.sh
  7970. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7971. PATH_SEPARATOR=';'
  7972. else
  7973. PATH_SEPARATOR=:
  7974. fi
  7975. rm -f conf$$.sh
  7976. fi
  7977. # Find out how to test for executable files. Don't use a zero-byte file,
  7978. # as systems may use methods other than mode bits to determine executability.
  7979. cat >conf$$.file <<_ASEOF
  7980. #! /bin/sh
  7981. exit 0
  7982. _ASEOF
  7983. chmod +x conf$$.file
  7984. if test -x conf$$.file >/dev/null 2>&1; then
  7985. ac_executable_p="test -x"
  7986. else
  7987. ac_executable_p="test -f"
  7988. fi
  7989. rm -f conf$$.file
  7990. # Extract the first word of "msgfmt", so it can be a program name with args.
  7991. set dummy msgfmt; ac_word=$2
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7993. $as_echo_n "checking for $ac_word... " >&6; }
  7994. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  7995. $as_echo_n "(cached) " >&6
  7996. else
  7997. case "$MSGFMT" in
  7998. [\\/]* | ?:[\\/]*)
  7999. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8000. ;;
  8001. *)
  8002. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8003. for ac_dir in $PATH; do
  8004. IFS="$ac_save_IFS"
  8005. test -z "$ac_dir" && ac_dir=.
  8006. for ac_exec_ext in '' $ac_executable_extensions; do
  8007. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8008. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8009. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8010. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8011. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8012. break 2
  8013. fi
  8014. fi
  8015. done
  8016. done
  8017. IFS="$ac_save_IFS"
  8018. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8019. ;;
  8020. esac
  8021. fi
  8022. MSGFMT="$ac_cv_path_MSGFMT"
  8023. if test "$MSGFMT" != ":"; then
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  8025. $as_echo "$MSGFMT" >&6; }
  8026. else
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8028. $as_echo "no" >&6; }
  8029. fi
  8030. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8031. set dummy gmsgfmt; ac_word=$2
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8033. $as_echo_n "checking for $ac_word... " >&6; }
  8034. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  8035. $as_echo_n "(cached) " >&6
  8036. else
  8037. case $GMSGFMT in
  8038. [\\/]* | ?:[\\/]*)
  8039. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8040. ;;
  8041. *)
  8042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8043. for as_dir in $PATH
  8044. do
  8045. IFS=$as_save_IFS
  8046. test -z "$as_dir" && as_dir=.
  8047. for ac_exec_ext in '' $ac_executable_extensions; do
  8048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8049. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8051. break 2
  8052. fi
  8053. done
  8054. done
  8055. IFS=$as_save_IFS
  8056. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8057. ;;
  8058. esac
  8059. fi
  8060. GMSGFMT=$ac_cv_path_GMSGFMT
  8061. if test -n "$GMSGFMT"; then
  8062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  8063. $as_echo "$GMSGFMT" >&6; }
  8064. else
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8066. $as_echo "no" >&6; }
  8067. fi
  8068. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8069. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8070. *) MSGFMT_015=$MSGFMT ;;
  8071. esac
  8072. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8073. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8074. *) GMSGFMT_015=$GMSGFMT ;;
  8075. esac
  8076. # Prepare PATH_SEPARATOR.
  8077. # The user is always right.
  8078. if test "${PATH_SEPARATOR+set}" != set; then
  8079. echo "#! /bin/sh" >conf$$.sh
  8080. echo "exit 0" >>conf$$.sh
  8081. chmod +x conf$$.sh
  8082. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8083. PATH_SEPARATOR=';'
  8084. else
  8085. PATH_SEPARATOR=:
  8086. fi
  8087. rm -f conf$$.sh
  8088. fi
  8089. # Find out how to test for executable files. Don't use a zero-byte file,
  8090. # as systems may use methods other than mode bits to determine executability.
  8091. cat >conf$$.file <<_ASEOF
  8092. #! /bin/sh
  8093. exit 0
  8094. _ASEOF
  8095. chmod +x conf$$.file
  8096. if test -x conf$$.file >/dev/null 2>&1; then
  8097. ac_executable_p="test -x"
  8098. else
  8099. ac_executable_p="test -f"
  8100. fi
  8101. rm -f conf$$.file
  8102. # Extract the first word of "xgettext", so it can be a program name with args.
  8103. set dummy xgettext; ac_word=$2
  8104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8105. $as_echo_n "checking for $ac_word... " >&6; }
  8106. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  8107. $as_echo_n "(cached) " >&6
  8108. else
  8109. case "$XGETTEXT" in
  8110. [\\/]* | ?:[\\/]*)
  8111. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8112. ;;
  8113. *)
  8114. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8115. for ac_dir in $PATH; do
  8116. IFS="$ac_save_IFS"
  8117. test -z "$ac_dir" && ac_dir=.
  8118. for ac_exec_ext in '' $ac_executable_extensions; do
  8119. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8120. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8121. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8122. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8123. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8124. break 2
  8125. fi
  8126. fi
  8127. done
  8128. done
  8129. IFS="$ac_save_IFS"
  8130. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8131. ;;
  8132. esac
  8133. fi
  8134. XGETTEXT="$ac_cv_path_XGETTEXT"
  8135. if test "$XGETTEXT" != ":"; then
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  8137. $as_echo "$XGETTEXT" >&6; }
  8138. else
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8140. $as_echo "no" >&6; }
  8141. fi
  8142. rm -f messages.po
  8143. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8144. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8145. *) XGETTEXT_015=$XGETTEXT ;;
  8146. esac
  8147. # Prepare PATH_SEPARATOR.
  8148. # The user is always right.
  8149. if test "${PATH_SEPARATOR+set}" != set; then
  8150. echo "#! /bin/sh" >conf$$.sh
  8151. echo "exit 0" >>conf$$.sh
  8152. chmod +x conf$$.sh
  8153. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8154. PATH_SEPARATOR=';'
  8155. else
  8156. PATH_SEPARATOR=:
  8157. fi
  8158. rm -f conf$$.sh
  8159. fi
  8160. # Find out how to test for executable files. Don't use a zero-byte file,
  8161. # as systems may use methods other than mode bits to determine executability.
  8162. cat >conf$$.file <<_ASEOF
  8163. #! /bin/sh
  8164. exit 0
  8165. _ASEOF
  8166. chmod +x conf$$.file
  8167. if test -x conf$$.file >/dev/null 2>&1; then
  8168. ac_executable_p="test -x"
  8169. else
  8170. ac_executable_p="test -f"
  8171. fi
  8172. rm -f conf$$.file
  8173. # Extract the first word of "msgmerge", so it can be a program name with args.
  8174. set dummy msgmerge; ac_word=$2
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8176. $as_echo_n "checking for $ac_word... " >&6; }
  8177. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  8178. $as_echo_n "(cached) " >&6
  8179. else
  8180. case "$MSGMERGE" in
  8181. [\\/]* | ?:[\\/]*)
  8182. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8183. ;;
  8184. *)
  8185. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8186. for ac_dir in $PATH; do
  8187. IFS="$ac_save_IFS"
  8188. test -z "$ac_dir" && ac_dir=.
  8189. for ac_exec_ext in '' $ac_executable_extensions; do
  8190. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8191. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8192. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8193. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8194. break 2
  8195. fi
  8196. fi
  8197. done
  8198. done
  8199. IFS="$ac_save_IFS"
  8200. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8201. ;;
  8202. esac
  8203. fi
  8204. MSGMERGE="$ac_cv_path_MSGMERGE"
  8205. if test "$MSGMERGE" != ":"; then
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  8207. $as_echo "$MSGMERGE" >&6; }
  8208. else
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8210. $as_echo "no" >&6; }
  8211. fi
  8212. test -n "$localedir" || localedir='${datadir}/locale'
  8213. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8214. ac_config_commands="$ac_config_commands po-directories"
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
  8216. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  8217. if test "${ac_cv_gnu_library_2+set}" = set; then :
  8218. $as_echo_n "(cached) " >&6
  8219. else
  8220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8221. /* end confdefs.h. */
  8222. #include <features.h>
  8223. #ifdef __GNU_LIBRARY__
  8224. #if (__GLIBC__ >= 2)
  8225. Lucky GNU user
  8226. #endif
  8227. #endif
  8228. _ACEOF
  8229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8230. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  8231. ac_cv_gnu_library_2=yes
  8232. else
  8233. ac_cv_gnu_library_2=no
  8234. fi
  8235. rm -f conftest*
  8236. fi
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
  8238. $as_echo "$ac_cv_gnu_library_2" >&6; }
  8239. GLIBC2="$ac_cv_gnu_library_2"
  8240. CFLAG_VISIBILITY=
  8241. HAVE_VISIBILITY=0
  8242. if test -n "$GCC"; then
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  8244. $as_echo_n "checking for simple visibility declarations... " >&6; }
  8245. if test "${gl_cv_cc_visibility+set}" = set; then :
  8246. $as_echo_n "(cached) " >&6
  8247. else
  8248. gl_save_CFLAGS="$CFLAGS"
  8249. CFLAGS="$CFLAGS -fvisibility=hidden"
  8250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8251. /* end confdefs.h. */
  8252. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8253. extern __attribute__((__visibility__("default"))) int exportedvar;
  8254. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8255. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8256. int
  8257. main ()
  8258. {
  8259. ;
  8260. return 0;
  8261. }
  8262. _ACEOF
  8263. if ac_fn_cxx_try_compile "$LINENO"; then :
  8264. gl_cv_cc_visibility=yes
  8265. else
  8266. gl_cv_cc_visibility=no
  8267. fi
  8268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8269. CFLAGS="$gl_save_CFLAGS"
  8270. fi
  8271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  8272. $as_echo "$gl_cv_cc_visibility" >&6; }
  8273. if test $gl_cv_cc_visibility = yes; then
  8274. CFLAG_VISIBILITY="-fvisibility=hidden"
  8275. HAVE_VISIBILITY=1
  8276. fi
  8277. fi
  8278. cat >>confdefs.h <<_ACEOF
  8279. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  8280. _ACEOF
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
  8282. $as_echo_n "checking for stdint.h... " >&6; }
  8283. if test "${gl_cv_header_stdint_h+set}" = set; then :
  8284. $as_echo_n "(cached) " >&6
  8285. else
  8286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8287. /* end confdefs.h. */
  8288. #include <sys/types.h>
  8289. #include <stdint.h>
  8290. int
  8291. main ()
  8292. {
  8293. uintmax_t i = (uintmax_t) -1; return !i;
  8294. ;
  8295. return 0;
  8296. }
  8297. _ACEOF
  8298. if ac_fn_cxx_try_compile "$LINENO"; then :
  8299. gl_cv_header_stdint_h=yes
  8300. else
  8301. gl_cv_header_stdint_h=no
  8302. fi
  8303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8304. fi
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
  8306. $as_echo "$gl_cv_header_stdint_h" >&6; }
  8307. if test $gl_cv_header_stdint_h = yes; then
  8308. cat >>confdefs.h <<_ACEOF
  8309. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8310. _ACEOF
  8311. fi
  8312. for ac_header in $ac_header_list
  8313. do :
  8314. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8315. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  8316. "
  8317. eval as_val=\$$as_ac_Header
  8318. if test "x$as_val" = x""yes; then :
  8319. cat >>confdefs.h <<_ACEOF
  8320. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8321. _ACEOF
  8322. fi
  8323. done
  8324. for ac_func in getpagesize
  8325. do :
  8326. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8327. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8328. cat >>confdefs.h <<_ACEOF
  8329. #define HAVE_GETPAGESIZE 1
  8330. _ACEOF
  8331. fi
  8332. done
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8334. $as_echo_n "checking for working mmap... " >&6; }
  8335. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. if test "$cross_compiling" = yes; then :
  8339. ac_cv_func_mmap_fixed_mapped=no
  8340. else
  8341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8342. /* end confdefs.h. */
  8343. $ac_includes_default
  8344. /* malloc might have been renamed as rpl_malloc. */
  8345. #undef malloc
  8346. /* Thanks to Mike Haertel and Jim Avera for this test.
  8347. Here is a matrix of mmap possibilities:
  8348. mmap private not fixed
  8349. mmap private fixed at somewhere currently unmapped
  8350. mmap private fixed at somewhere already mapped
  8351. mmap shared not fixed
  8352. mmap shared fixed at somewhere currently unmapped
  8353. mmap shared fixed at somewhere already mapped
  8354. For private mappings, we should verify that changes cannot be read()
  8355. back from the file, nor mmap's back from the file at a different
  8356. address. (There have been systems where private was not correctly
  8357. implemented like the infamous i386 svr4.0, and systems where the
  8358. VM page cache was not coherent with the file system buffer cache
  8359. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8360. For shared mappings, we should conversely verify that changes get
  8361. propagated back to all the places they're supposed to be.
  8362. Grep wants private fixed already mapped.
  8363. The main things grep needs to know about mmap are:
  8364. * does it exist and is it safe to write into the mmap'd area
  8365. * how to use it (BSD variants) */
  8366. #include <fcntl.h>
  8367. #include <sys/mman.h>
  8368. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8369. char *malloc ();
  8370. #endif
  8371. /* This mess was copied from the GNU getpagesize.h. */
  8372. #ifndef HAVE_GETPAGESIZE
  8373. # ifdef _SC_PAGESIZE
  8374. # define getpagesize() sysconf(_SC_PAGESIZE)
  8375. # else /* no _SC_PAGESIZE */
  8376. # ifdef HAVE_SYS_PARAM_H
  8377. # include <sys/param.h>
  8378. # ifdef EXEC_PAGESIZE
  8379. # define getpagesize() EXEC_PAGESIZE
  8380. # else /* no EXEC_PAGESIZE */
  8381. # ifdef NBPG
  8382. # define getpagesize() NBPG * CLSIZE
  8383. # ifndef CLSIZE
  8384. # define CLSIZE 1
  8385. # endif /* no CLSIZE */
  8386. # else /* no NBPG */
  8387. # ifdef NBPC
  8388. # define getpagesize() NBPC
  8389. # else /* no NBPC */
  8390. # ifdef PAGESIZE
  8391. # define getpagesize() PAGESIZE
  8392. # endif /* PAGESIZE */
  8393. # endif /* no NBPC */
  8394. # endif /* no NBPG */
  8395. # endif /* no EXEC_PAGESIZE */
  8396. # else /* no HAVE_SYS_PARAM_H */
  8397. # define getpagesize() 8192 /* punt totally */
  8398. # endif /* no HAVE_SYS_PARAM_H */
  8399. # endif /* no _SC_PAGESIZE */
  8400. #endif /* no HAVE_GETPAGESIZE */
  8401. int
  8402. main ()
  8403. {
  8404. char *data, *data2, *data3;
  8405. const char *cdata2;
  8406. int i, pagesize;
  8407. int fd, fd2;
  8408. pagesize = getpagesize ();
  8409. /* First, make a file with some known garbage in it. */
  8410. data = (char *) malloc (pagesize);
  8411. if (!data)
  8412. return 1;
  8413. for (i = 0; i < pagesize; ++i)
  8414. *(data + i) = rand ();
  8415. umask (0);
  8416. fd = creat ("conftest.mmap", 0600);
  8417. if (fd < 0)
  8418. return 2;
  8419. if (write (fd, data, pagesize) != pagesize)
  8420. return 3;
  8421. close (fd);
  8422. /* Next, check that the tail of a page is zero-filled. File must have
  8423. non-zero length, otherwise we risk SIGBUS for entire page. */
  8424. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  8425. if (fd2 < 0)
  8426. return 4;
  8427. cdata2 = "";
  8428. if (write (fd2, cdata2, 1) != 1)
  8429. return 5;
  8430. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  8431. if (data2 == MAP_FAILED)
  8432. return 6;
  8433. for (i = 0; i < pagesize; ++i)
  8434. if (*(data2 + i))
  8435. return 7;
  8436. close (fd2);
  8437. if (munmap (data2, pagesize))
  8438. return 8;
  8439. /* Next, try to mmap the file at a fixed address which already has
  8440. something else allocated at it. If we can, also make sure that
  8441. we see the same garbage. */
  8442. fd = open ("conftest.mmap", O_RDWR);
  8443. if (fd < 0)
  8444. return 9;
  8445. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8446. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8447. return 10;
  8448. for (i = 0; i < pagesize; ++i)
  8449. if (*(data + i) != *(data2 + i))
  8450. return 11;
  8451. /* Finally, make sure that changes to the mapped area do not
  8452. percolate back to the file as seen by read(). (This is a bug on
  8453. some variants of i386 svr4.0.) */
  8454. for (i = 0; i < pagesize; ++i)
  8455. *(data2 + i) = *(data2 + i) + 1;
  8456. data3 = (char *) malloc (pagesize);
  8457. if (!data3)
  8458. return 12;
  8459. if (read (fd, data3, pagesize) != pagesize)
  8460. return 13;
  8461. for (i = 0; i < pagesize; ++i)
  8462. if (*(data + i) != *(data3 + i))
  8463. return 14;
  8464. close (fd);
  8465. return 0;
  8466. }
  8467. _ACEOF
  8468. if ac_fn_cxx_try_run "$LINENO"; then :
  8469. ac_cv_func_mmap_fixed_mapped=yes
  8470. else
  8471. ac_cv_func_mmap_fixed_mapped=no
  8472. fi
  8473. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8474. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8475. fi
  8476. fi
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8478. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  8479. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8480. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  8481. fi
  8482. rm -f conftest.mmap conftest.txt
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
  8484. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  8485. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
  8486. $as_echo_n "(cached) " >&6
  8487. else
  8488. gt_cv_int_divbyzero_sigfpe=
  8489. case "$host_os" in
  8490. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8491. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8492. # compiling. If we were to perform the real test, 1 Crash Report
  8493. # dialog window would pop up.
  8494. case "$host_cpu" in
  8495. i[34567]86 | x86_64)
  8496. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8497. esac
  8498. ;;
  8499. esac
  8500. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8501. if test "$cross_compiling" = yes; then :
  8502. # Guess based on the CPU.
  8503. case "$host_cpu" in
  8504. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8505. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8506. *)
  8507. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8508. esac
  8509. else
  8510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8511. /* end confdefs.h. */
  8512. #include <stdlib.h>
  8513. #include <signal.h>
  8514. static void
  8515. sigfpe_handler (int sig)
  8516. {
  8517. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8518. exit (sig != SIGFPE);
  8519. }
  8520. int x = 1;
  8521. int y = 0;
  8522. int z;
  8523. int nan;
  8524. int main ()
  8525. {
  8526. signal (SIGFPE, sigfpe_handler);
  8527. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8528. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8529. signal (SIGTRAP, sigfpe_handler);
  8530. #endif
  8531. /* Linux/SPARC yields signal SIGILL. */
  8532. #if defined (__sparc__) && defined (__linux__)
  8533. signal (SIGILL, sigfpe_handler);
  8534. #endif
  8535. z = x / y;
  8536. nan = y / y;
  8537. exit (1);
  8538. }
  8539. _ACEOF
  8540. if ac_fn_cxx_try_run "$LINENO"; then :
  8541. gt_cv_int_divbyzero_sigfpe=yes
  8542. else
  8543. gt_cv_int_divbyzero_sigfpe=no
  8544. fi
  8545. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8546. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8547. fi
  8548. fi
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8551. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  8552. case "$gt_cv_int_divbyzero_sigfpe" in
  8553. *yes) value=1;;
  8554. *) value=0;;
  8555. esac
  8556. cat >>confdefs.h <<_ACEOF
  8557. #define INTDIV0_RAISES_SIGFPE $value
  8558. _ACEOF
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
  8560. $as_echo_n "checking for inttypes.h... " >&6; }
  8561. if test "${gl_cv_header_inttypes_h+set}" = set; then :
  8562. $as_echo_n "(cached) " >&6
  8563. else
  8564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8565. /* end confdefs.h. */
  8566. #include <sys/types.h>
  8567. #include <inttypes.h>
  8568. int
  8569. main ()
  8570. {
  8571. uintmax_t i = (uintmax_t) -1; return !i;
  8572. ;
  8573. return 0;
  8574. }
  8575. _ACEOF
  8576. if ac_fn_cxx_try_compile "$LINENO"; then :
  8577. gl_cv_header_inttypes_h=yes
  8578. else
  8579. gl_cv_header_inttypes_h=no
  8580. fi
  8581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8582. fi
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
  8584. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  8585. if test $gl_cv_header_inttypes_h = yes; then
  8586. cat >>confdefs.h <<_ACEOF
  8587. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8588. _ACEOF
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  8591. $as_echo_n "checking for unsigned long long int... " >&6; }
  8592. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
  8593. $as_echo_n "(cached) " >&6
  8594. else
  8595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8596. /* end confdefs.h. */
  8597. /* Test preprocessor. */
  8598. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8599. error in preprocessor;
  8600. #endif
  8601. #if ! (18446744073709551615ULL <= -1ull)
  8602. error in preprocessor;
  8603. #endif
  8604. /* Test literals. */
  8605. long long int ll = 9223372036854775807ll;
  8606. long long int nll = -9223372036854775807LL;
  8607. unsigned long long int ull = 18446744073709551615ULL;
  8608. /* Test constant expressions. */
  8609. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8610. ? 1 : -1)];
  8611. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8612. ? 1 : -1)];
  8613. int i = 63;
  8614. int
  8615. main ()
  8616. {
  8617. /* Test availability of runtime routines for shift and division. */
  8618. long long int llmax = 9223372036854775807ll;
  8619. unsigned long long int ullmax = 18446744073709551615ull;
  8620. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8621. | (llmax / ll) | (llmax % ll)
  8622. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8623. | (ullmax / ull) | (ullmax % ull));
  8624. ;
  8625. return 0;
  8626. }
  8627. _ACEOF
  8628. if ac_fn_cxx_try_link "$LINENO"; then :
  8629. ac_cv_type_unsigned_long_long_int=yes
  8630. else
  8631. ac_cv_type_unsigned_long_long_int=no
  8632. fi
  8633. rm -f core conftest.err conftest.$ac_objext \
  8634. conftest$ac_exeext conftest.$ac_ext
  8635. fi
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  8637. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  8638. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8639. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  8640. fi
  8641. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8642. test $ac_cv_type_unsigned_long_long_int = yes \
  8643. && ac_type='unsigned long long' \
  8644. || ac_type='unsigned long'
  8645. cat >>confdefs.h <<_ACEOF
  8646. #define uintmax_t $ac_type
  8647. _ACEOF
  8648. else
  8649. $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
  8650. fi
  8651. for ac_header in inttypes.h
  8652. do :
  8653. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  8654. if test "x$ac_cv_header_inttypes_h" = x""yes; then :
  8655. cat >>confdefs.h <<_ACEOF
  8656. #define HAVE_INTTYPES_H 1
  8657. _ACEOF
  8658. fi
  8659. done
  8660. if test $ac_cv_header_inttypes_h = yes; then
  8661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8662. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  8663. if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
  8664. $as_echo_n "(cached) " >&6
  8665. else
  8666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8667. /* end confdefs.h. */
  8668. #include <inttypes.h>
  8669. #ifdef PRId32
  8670. char *p = PRId32;
  8671. #endif
  8672. int
  8673. main ()
  8674. {
  8675. ;
  8676. return 0;
  8677. }
  8678. _ACEOF
  8679. if ac_fn_cxx_try_compile "$LINENO"; then :
  8680. gt_cv_inttypes_pri_broken=no
  8681. else
  8682. gt_cv_inttypes_pri_broken=yes
  8683. fi
  8684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8685. fi
  8686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
  8687. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  8688. fi
  8689. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8690. cat >>confdefs.h <<_ACEOF
  8691. #define PRI_MACROS_BROKEN 1
  8692. _ACEOF
  8693. PRI_MACROS_BROKEN=1
  8694. else
  8695. PRI_MACROS_BROKEN=0
  8696. fi
  8697. # Check whether --enable-threads was given.
  8698. if test "${enable_threads+set}" = set; then :
  8699. enableval=$enable_threads; gl_use_threads=$enableval
  8700. else
  8701. case "$host_os" in
  8702. osf*) gl_use_threads=no ;;
  8703. *) gl_use_threads=yes ;;
  8704. esac
  8705. fi
  8706. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8707. # For using <pthread.h>:
  8708. case "$host_os" in
  8709. osf*)
  8710. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8711. # groks <pthread.h>. cc also understands the flag -pthread, but
  8712. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8713. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8714. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8715. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8716. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8717. ;;
  8718. esac
  8719. # Some systems optimize for single-threaded programs by default, and
  8720. # need special flags to disable these optimizations. For example, the
  8721. # definition of 'errno' in <errno.h>.
  8722. case "$host_os" in
  8723. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8724. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8725. esac
  8726. fi
  8727. if test "X$prefix" = "XNONE"; then
  8728. acl_final_prefix="$ac_default_prefix"
  8729. else
  8730. acl_final_prefix="$prefix"
  8731. fi
  8732. if test "X$exec_prefix" = "XNONE"; then
  8733. acl_final_exec_prefix='${prefix}'
  8734. else
  8735. acl_final_exec_prefix="$exec_prefix"
  8736. fi
  8737. acl_save_prefix="$prefix"
  8738. prefix="$acl_final_prefix"
  8739. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8740. prefix="$acl_save_prefix"
  8741. # Check whether --with-gnu-ld was given.
  8742. if test "${with_gnu_ld+set}" = set; then :
  8743. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8744. else
  8745. with_gnu_ld=no
  8746. fi
  8747. # Prepare PATH_SEPARATOR.
  8748. # The user is always right.
  8749. if test "${PATH_SEPARATOR+set}" != set; then
  8750. echo "#! /bin/sh" >conf$$.sh
  8751. echo "exit 0" >>conf$$.sh
  8752. chmod +x conf$$.sh
  8753. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8754. PATH_SEPARATOR=';'
  8755. else
  8756. PATH_SEPARATOR=:
  8757. fi
  8758. rm -f conf$$.sh
  8759. fi
  8760. ac_prog=ld
  8761. if test "$GCC" = yes; then
  8762. # Check if gcc -print-prog-name=ld gives a path.
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  8764. $as_echo_n "checking for ld used by GCC... " >&6; }
  8765. case $host in
  8766. *-*-mingw*)
  8767. # gcc leaves a trailing carriage return which upsets mingw
  8768. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8769. *)
  8770. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8771. esac
  8772. case $ac_prog in
  8773. # Accept absolute paths.
  8774. [\\/]* | [A-Za-z]:[\\/]*)
  8775. re_direlt='/[^/][^/]*/\.\./'
  8776. # Canonicalize the path of ld
  8777. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8778. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8779. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8780. done
  8781. test -z "$LD" && LD="$ac_prog"
  8782. ;;
  8783. "")
  8784. # If it fails, then pretend we aren't using GCC.
  8785. ac_prog=ld
  8786. ;;
  8787. *)
  8788. # If it is relative, then search for the first ld in PATH.
  8789. with_gnu_ld=unknown
  8790. ;;
  8791. esac
  8792. elif test "$with_gnu_ld" = yes; then
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8794. $as_echo_n "checking for GNU ld... " >&6; }
  8795. else
  8796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8797. $as_echo_n "checking for non-GNU ld... " >&6; }
  8798. fi
  8799. if test "${acl_cv_path_LD+set}" = set; then :
  8800. $as_echo_n "(cached) " >&6
  8801. else
  8802. if test -z "$LD"; then
  8803. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8804. for ac_dir in $PATH; do
  8805. test -z "$ac_dir" && ac_dir=.
  8806. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8807. acl_cv_path_LD="$ac_dir/$ac_prog"
  8808. # Check to see if the program is GNU ld. I'd rather use --version,
  8809. # but apparently some GNU ld's only accept -v.
  8810. # Break only if it was the GNU/non-GNU ld that we prefer.
  8811. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8812. *GNU* | *'with BFD'*)
  8813. test "$with_gnu_ld" != no && break ;;
  8814. *)
  8815. test "$with_gnu_ld" != yes && break ;;
  8816. esac
  8817. fi
  8818. done
  8819. IFS="$ac_save_ifs"
  8820. else
  8821. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8822. fi
  8823. fi
  8824. LD="$acl_cv_path_LD"
  8825. if test -n "$LD"; then
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8827. $as_echo "$LD" >&6; }
  8828. else
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8830. $as_echo "no" >&6; }
  8831. fi
  8832. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  8833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8834. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8835. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  8836. $as_echo_n "(cached) " >&6
  8837. else
  8838. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8839. case `$LD -v 2>&1 </dev/null` in
  8840. *GNU* | *'with BFD'*)
  8841. acl_cv_prog_gnu_ld=yes ;;
  8842. *)
  8843. acl_cv_prog_gnu_ld=no ;;
  8844. esac
  8845. fi
  8846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  8847. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  8848. with_gnu_ld=$acl_cv_prog_gnu_ld
  8849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  8850. $as_echo_n "checking for shared library run path origin... " >&6; }
  8851. if test "${acl_cv_rpath+set}" = set; then :
  8852. $as_echo_n "(cached) " >&6
  8853. else
  8854. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8855. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8856. . ./conftest.sh
  8857. rm -f ./conftest.sh
  8858. acl_cv_rpath=done
  8859. fi
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  8861. $as_echo "$acl_cv_rpath" >&6; }
  8862. wl="$acl_cv_wl"
  8863. acl_libext="$acl_cv_libext"
  8864. acl_shlibext="$acl_cv_shlibext"
  8865. acl_libname_spec="$acl_cv_libname_spec"
  8866. acl_library_names_spec="$acl_cv_library_names_spec"
  8867. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8868. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8869. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8870. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8871. # Check whether --enable-rpath was given.
  8872. if test "${enable_rpath+set}" = set; then :
  8873. enableval=$enable_rpath; :
  8874. else
  8875. enable_rpath=yes
  8876. fi
  8877. acl_libdirstem=lib
  8878. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8879. if test -n "$searchpath"; then
  8880. acl_save_IFS="${IFS= }"; IFS=":"
  8881. for searchdir in $searchpath; do
  8882. if test -d "$searchdir"; then
  8883. case "$searchdir" in
  8884. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8885. *) searchdir=`cd "$searchdir" && pwd`
  8886. case "$searchdir" in
  8887. */lib64 ) acl_libdirstem=lib64 ;;
  8888. esac ;;
  8889. esac
  8890. fi
  8891. done
  8892. IFS="$acl_save_IFS"
  8893. fi
  8894. gl_threads_api=none
  8895. LIBTHREAD=
  8896. LTLIBTHREAD=
  8897. LIBMULTITHREAD=
  8898. LTLIBMULTITHREAD=
  8899. if test "$gl_use_threads" != no; then
  8900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
  8901. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  8902. gl_have_weak=no
  8903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8904. /* end confdefs.h. */
  8905. extern void xyzzy ();
  8906. #pragma weak xyzzy
  8907. int
  8908. main ()
  8909. {
  8910. xyzzy();
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. if ac_fn_cxx_try_link "$LINENO"; then :
  8916. gl_have_weak=yes
  8917. fi
  8918. rm -f core conftest.err conftest.$ac_objext \
  8919. conftest$ac_exeext conftest.$ac_ext
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_weak" >&5
  8921. $as_echo "$gl_have_weak" >&6; }
  8922. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8923. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8924. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8925. ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
  8926. if test "x$ac_cv_header_pthread_h" = x""yes; then :
  8927. gl_have_pthread_h=yes
  8928. else
  8929. gl_have_pthread_h=no
  8930. fi
  8931. if test "$gl_have_pthread_h" = yes; then
  8932. # Other possible tests:
  8933. # -lpthreads (FSU threads, PCthreads)
  8934. # -lgthreads
  8935. gl_have_pthread=
  8936. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8937. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8938. # the second one only in libpthread, and lock.c needs it.
  8939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8940. /* end confdefs.h. */
  8941. #include <pthread.h>
  8942. int
  8943. main ()
  8944. {
  8945. pthread_mutex_lock((pthread_mutex_t*)0);
  8946. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8947. ;
  8948. return 0;
  8949. }
  8950. _ACEOF
  8951. if ac_fn_cxx_try_link "$LINENO"; then :
  8952. gl_have_pthread=yes
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext \
  8955. conftest$ac_exeext conftest.$ac_ext
  8956. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8957. # since it is defined as a macro on OSF/1.)
  8958. if test -n "$gl_have_pthread"; then
  8959. # The program links fine without libpthread. But it may actually
  8960. # need to link with libpthread in order to create multiple threads.
  8961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  8962. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  8963. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  8964. $as_echo_n "(cached) " >&6
  8965. else
  8966. ac_check_lib_save_LIBS=$LIBS
  8967. LIBS="-lpthread $LIBS"
  8968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8969. /* end confdefs.h. */
  8970. /* Override any GCC internal prototype to avoid an error.
  8971. Use char because int might match the return type of a GCC
  8972. builtin and then its argument prototype would still apply. */
  8973. #ifdef __cplusplus
  8974. extern "C"
  8975. #endif
  8976. char pthread_kill ();
  8977. int
  8978. main ()
  8979. {
  8980. return pthread_kill ();
  8981. ;
  8982. return 0;
  8983. }
  8984. _ACEOF
  8985. if ac_fn_cxx_try_link "$LINENO"; then :
  8986. ac_cv_lib_pthread_pthread_kill=yes
  8987. else
  8988. ac_cv_lib_pthread_pthread_kill=no
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. LIBS=$ac_check_lib_save_LIBS
  8993. fi
  8994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8995. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  8996. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  8997. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8998. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8999. # Therefore pthread_in_use() needs to actually try to create a
  9000. # thread: pthread_create from libc will fail, whereas
  9001. # pthread_create will actually create a thread.
  9002. case "$host_os" in
  9003. solaris* | hpux*)
  9004. $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
  9005. esac
  9006. fi
  9007. else
  9008. # Some library is needed. Try libpthread and libc_r.
  9009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
  9010. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  9011. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then :
  9012. $as_echo_n "(cached) " >&6
  9013. else
  9014. ac_check_lib_save_LIBS=$LIBS
  9015. LIBS="-lpthread $LIBS"
  9016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9017. /* end confdefs.h. */
  9018. /* Override any GCC internal prototype to avoid an error.
  9019. Use char because int might match the return type of a GCC
  9020. builtin and then its argument prototype would still apply. */
  9021. #ifdef __cplusplus
  9022. extern "C"
  9023. #endif
  9024. char pthread_kill ();
  9025. int
  9026. main ()
  9027. {
  9028. return pthread_kill ();
  9029. ;
  9030. return 0;
  9031. }
  9032. _ACEOF
  9033. if ac_fn_cxx_try_link "$LINENO"; then :
  9034. ac_cv_lib_pthread_pthread_kill=yes
  9035. else
  9036. ac_cv_lib_pthread_pthread_kill=no
  9037. fi
  9038. rm -f core conftest.err conftest.$ac_objext \
  9039. conftest$ac_exeext conftest.$ac_ext
  9040. LIBS=$ac_check_lib_save_LIBS
  9041. fi
  9042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9043. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  9044. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then :
  9045. gl_have_pthread=yes
  9046. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9047. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9048. fi
  9049. if test -z "$gl_have_pthread"; then
  9050. # For FreeBSD 4.
  9051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
  9052. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  9053. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then :
  9054. $as_echo_n "(cached) " >&6
  9055. else
  9056. ac_check_lib_save_LIBS=$LIBS
  9057. LIBS="-lc_r $LIBS"
  9058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9059. /* end confdefs.h. */
  9060. /* Override any GCC internal prototype to avoid an error.
  9061. Use char because int might match the return type of a GCC
  9062. builtin and then its argument prototype would still apply. */
  9063. #ifdef __cplusplus
  9064. extern "C"
  9065. #endif
  9066. char pthread_kill ();
  9067. int
  9068. main ()
  9069. {
  9070. return pthread_kill ();
  9071. ;
  9072. return 0;
  9073. }
  9074. _ACEOF
  9075. if ac_fn_cxx_try_link "$LINENO"; then :
  9076. ac_cv_lib_c_r_pthread_kill=yes
  9077. else
  9078. ac_cv_lib_c_r_pthread_kill=no
  9079. fi
  9080. rm -f core conftest.err conftest.$ac_objext \
  9081. conftest$ac_exeext conftest.$ac_ext
  9082. LIBS=$ac_check_lib_save_LIBS
  9083. fi
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9085. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  9086. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then :
  9087. gl_have_pthread=yes
  9088. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9089. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9090. fi
  9091. fi
  9092. fi
  9093. if test -n "$gl_have_pthread"; then
  9094. gl_threads_api=posix
  9095. $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
  9096. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9097. if test $gl_have_weak = yes; then
  9098. $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
  9099. LIBTHREAD=
  9100. LTLIBTHREAD=
  9101. fi
  9102. fi
  9103. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9104. # pthread_rwlock_* functions.
  9105. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
  9106. "
  9107. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then :
  9108. $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
  9109. fi
  9110. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9112. /* end confdefs.h. */
  9113. #include <pthread.h>
  9114. int
  9115. main ()
  9116. {
  9117. #if __FreeBSD__ == 4
  9118. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9119. #else
  9120. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9121. return !x;
  9122. #endif
  9123. ;
  9124. return 0;
  9125. }
  9126. _ACEOF
  9127. if ac_fn_cxx_try_compile "$LINENO"; then :
  9128. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
  9129. fi
  9130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9131. fi
  9132. fi
  9133. fi
  9134. if test -z "$gl_have_pthread"; then
  9135. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9136. gl_have_solaristhread=
  9137. gl_save_LIBS="$LIBS"
  9138. LIBS="$LIBS -lthread"
  9139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9140. /* end confdefs.h. */
  9141. #include <thread.h>
  9142. #include <synch.h>
  9143. int
  9144. main ()
  9145. {
  9146. thr_self();
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. if ac_fn_cxx_try_link "$LINENO"; then :
  9152. gl_have_solaristhread=yes
  9153. fi
  9154. rm -f core conftest.err conftest.$ac_objext \
  9155. conftest$ac_exeext conftest.$ac_ext
  9156. LIBS="$gl_save_LIBS"
  9157. if test -n "$gl_have_solaristhread"; then
  9158. gl_threads_api=solaris
  9159. LIBTHREAD=-lthread
  9160. LTLIBTHREAD=-lthread
  9161. LIBMULTITHREAD="$LIBTHREAD"
  9162. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9163. $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
  9164. if test $gl_have_weak = yes; then
  9165. $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
  9166. LIBTHREAD=
  9167. LTLIBTHREAD=
  9168. fi
  9169. fi
  9170. fi
  9171. fi
  9172. if test "$gl_use_threads" = pth; then
  9173. gl_save_CPPFLAGS="$CPPFLAGS"
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
  9175. $as_echo_n "checking how to link with libpth... " >&6; }
  9176. if test "${ac_cv_libpth_libs+set}" = set; then :
  9177. $as_echo_n "(cached) " >&6
  9178. else
  9179. use_additional=yes
  9180. acl_save_prefix="$prefix"
  9181. prefix="$acl_final_prefix"
  9182. acl_save_exec_prefix="$exec_prefix"
  9183. exec_prefix="$acl_final_exec_prefix"
  9184. eval additional_includedir=\"$includedir\"
  9185. eval additional_libdir=\"$libdir\"
  9186. exec_prefix="$acl_save_exec_prefix"
  9187. prefix="$acl_save_prefix"
  9188. # Check whether --with-libpth-prefix was given.
  9189. if test "${with_libpth_prefix+set}" = set; then :
  9190. withval=$with_libpth_prefix;
  9191. if test "X$withval" = "Xno"; then
  9192. use_additional=no
  9193. else
  9194. if test "X$withval" = "X"; then
  9195. acl_save_prefix="$prefix"
  9196. prefix="$acl_final_prefix"
  9197. acl_save_exec_prefix="$exec_prefix"
  9198. exec_prefix="$acl_final_exec_prefix"
  9199. eval additional_includedir=\"$includedir\"
  9200. eval additional_libdir=\"$libdir\"
  9201. exec_prefix="$acl_save_exec_prefix"
  9202. prefix="$acl_save_prefix"
  9203. else
  9204. additional_includedir="$withval/include"
  9205. additional_libdir="$withval/$acl_libdirstem"
  9206. fi
  9207. fi
  9208. fi
  9209. LIBPTH=
  9210. LTLIBPTH=
  9211. INCPTH=
  9212. LIBPTH_PREFIX=
  9213. rpathdirs=
  9214. ltrpathdirs=
  9215. names_already_handled=
  9216. names_next_round='pth '
  9217. while test -n "$names_next_round"; do
  9218. names_this_round="$names_next_round"
  9219. names_next_round=
  9220. for name in $names_this_round; do
  9221. already_handled=
  9222. for n in $names_already_handled; do
  9223. if test "$n" = "$name"; then
  9224. already_handled=yes
  9225. break
  9226. fi
  9227. done
  9228. if test -z "$already_handled"; then
  9229. names_already_handled="$names_already_handled $name"
  9230. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9231. eval value=\"\$HAVE_LIB$uppername\"
  9232. if test -n "$value"; then
  9233. if test "$value" = yes; then
  9234. eval value=\"\$LIB$uppername\"
  9235. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9236. eval value=\"\$LTLIB$uppername\"
  9237. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9238. else
  9239. :
  9240. fi
  9241. else
  9242. found_dir=
  9243. found_la=
  9244. found_so=
  9245. found_a=
  9246. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9247. if test -n "$acl_shlibext"; then
  9248. shrext=".$acl_shlibext" # typically: shrext=.so
  9249. else
  9250. shrext=
  9251. fi
  9252. if test $use_additional = yes; then
  9253. dir="$additional_libdir"
  9254. if test -n "$acl_shlibext"; then
  9255. if test -f "$dir/$libname$shrext"; then
  9256. found_dir="$dir"
  9257. found_so="$dir/$libname$shrext"
  9258. else
  9259. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9260. ver=`(cd "$dir" && \
  9261. for f in "$libname$shrext".*; do echo "$f"; done \
  9262. | sed -e "s,^$libname$shrext\\\\.,," \
  9263. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9264. | sed 1q ) 2>/dev/null`
  9265. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9266. found_dir="$dir"
  9267. found_so="$dir/$libname$shrext.$ver"
  9268. fi
  9269. else
  9270. eval library_names=\"$acl_library_names_spec\"
  9271. for f in $library_names; do
  9272. if test -f "$dir/$f"; then
  9273. found_dir="$dir"
  9274. found_so="$dir/$f"
  9275. break
  9276. fi
  9277. done
  9278. fi
  9279. fi
  9280. fi
  9281. if test "X$found_dir" = "X"; then
  9282. if test -f "$dir/$libname.$acl_libext"; then
  9283. found_dir="$dir"
  9284. found_a="$dir/$libname.$acl_libext"
  9285. fi
  9286. fi
  9287. if test "X$found_dir" != "X"; then
  9288. if test -f "$dir/$libname.la"; then
  9289. found_la="$dir/$libname.la"
  9290. fi
  9291. fi
  9292. fi
  9293. if test "X$found_dir" = "X"; then
  9294. for x in $LDFLAGS $LTLIBPTH; do
  9295. acl_save_prefix="$prefix"
  9296. prefix="$acl_final_prefix"
  9297. acl_save_exec_prefix="$exec_prefix"
  9298. exec_prefix="$acl_final_exec_prefix"
  9299. eval x=\"$x\"
  9300. exec_prefix="$acl_save_exec_prefix"
  9301. prefix="$acl_save_prefix"
  9302. case "$x" in
  9303. -L*)
  9304. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9305. if test -n "$acl_shlibext"; then
  9306. if test -f "$dir/$libname$shrext"; then
  9307. found_dir="$dir"
  9308. found_so="$dir/$libname$shrext"
  9309. else
  9310. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9311. ver=`(cd "$dir" && \
  9312. for f in "$libname$shrext".*; do echo "$f"; done \
  9313. | sed -e "s,^$libname$shrext\\\\.,," \
  9314. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9315. | sed 1q ) 2>/dev/null`
  9316. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9317. found_dir="$dir"
  9318. found_so="$dir/$libname$shrext.$ver"
  9319. fi
  9320. else
  9321. eval library_names=\"$acl_library_names_spec\"
  9322. for f in $library_names; do
  9323. if test -f "$dir/$f"; then
  9324. found_dir="$dir"
  9325. found_so="$dir/$f"
  9326. break
  9327. fi
  9328. done
  9329. fi
  9330. fi
  9331. fi
  9332. if test "X$found_dir" = "X"; then
  9333. if test -f "$dir/$libname.$acl_libext"; then
  9334. found_dir="$dir"
  9335. found_a="$dir/$libname.$acl_libext"
  9336. fi
  9337. fi
  9338. if test "X$found_dir" != "X"; then
  9339. if test -f "$dir/$libname.la"; then
  9340. found_la="$dir/$libname.la"
  9341. fi
  9342. fi
  9343. ;;
  9344. esac
  9345. if test "X$found_dir" != "X"; then
  9346. break
  9347. fi
  9348. done
  9349. fi
  9350. if test "X$found_dir" != "X"; then
  9351. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9352. if test "X$found_so" != "X"; then
  9353. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9354. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9355. else
  9356. haveit=
  9357. for x in $ltrpathdirs; do
  9358. if test "X$x" = "X$found_dir"; then
  9359. haveit=yes
  9360. break
  9361. fi
  9362. done
  9363. if test -z "$haveit"; then
  9364. ltrpathdirs="$ltrpathdirs $found_dir"
  9365. fi
  9366. if test "$acl_hardcode_direct" = yes; then
  9367. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9368. else
  9369. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9370. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9371. haveit=
  9372. for x in $rpathdirs; do
  9373. if test "X$x" = "X$found_dir"; then
  9374. haveit=yes
  9375. break
  9376. fi
  9377. done
  9378. if test -z "$haveit"; then
  9379. rpathdirs="$rpathdirs $found_dir"
  9380. fi
  9381. else
  9382. haveit=
  9383. for x in $LDFLAGS $LIBPTH; do
  9384. acl_save_prefix="$prefix"
  9385. prefix="$acl_final_prefix"
  9386. acl_save_exec_prefix="$exec_prefix"
  9387. exec_prefix="$acl_final_exec_prefix"
  9388. eval x=\"$x\"
  9389. exec_prefix="$acl_save_exec_prefix"
  9390. prefix="$acl_save_prefix"
  9391. if test "X$x" = "X-L$found_dir"; then
  9392. haveit=yes
  9393. break
  9394. fi
  9395. done
  9396. if test -z "$haveit"; then
  9397. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9398. fi
  9399. if test "$acl_hardcode_minus_L" != no; then
  9400. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9401. else
  9402. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9403. fi
  9404. fi
  9405. fi
  9406. fi
  9407. else
  9408. if test "X$found_a" != "X"; then
  9409. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9410. else
  9411. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9412. fi
  9413. fi
  9414. additional_includedir=
  9415. case "$found_dir" in
  9416. */$acl_libdirstem | */$acl_libdirstem/)
  9417. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9418. LIBPTH_PREFIX="$basedir"
  9419. additional_includedir="$basedir/include"
  9420. ;;
  9421. esac
  9422. if test "X$additional_includedir" != "X"; then
  9423. if test "X$additional_includedir" != "X/usr/include"; then
  9424. haveit=
  9425. if test "X$additional_includedir" = "X/usr/local/include"; then
  9426. if test -n "$GCC"; then
  9427. case $host_os in
  9428. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9429. esac
  9430. fi
  9431. fi
  9432. if test -z "$haveit"; then
  9433. for x in $CPPFLAGS $INCPTH; do
  9434. acl_save_prefix="$prefix"
  9435. prefix="$acl_final_prefix"
  9436. acl_save_exec_prefix="$exec_prefix"
  9437. exec_prefix="$acl_final_exec_prefix"
  9438. eval x=\"$x\"
  9439. exec_prefix="$acl_save_exec_prefix"
  9440. prefix="$acl_save_prefix"
  9441. if test "X$x" = "X-I$additional_includedir"; then
  9442. haveit=yes
  9443. break
  9444. fi
  9445. done
  9446. if test -z "$haveit"; then
  9447. if test -d "$additional_includedir"; then
  9448. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9449. fi
  9450. fi
  9451. fi
  9452. fi
  9453. fi
  9454. if test -n "$found_la"; then
  9455. save_libdir="$libdir"
  9456. case "$found_la" in
  9457. */* | *\\*) . "$found_la" ;;
  9458. *) . "./$found_la" ;;
  9459. esac
  9460. libdir="$save_libdir"
  9461. for dep in $dependency_libs; do
  9462. case "$dep" in
  9463. -L*)
  9464. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9465. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9466. haveit=
  9467. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9468. if test -n "$GCC"; then
  9469. case $host_os in
  9470. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9471. esac
  9472. fi
  9473. fi
  9474. if test -z "$haveit"; then
  9475. haveit=
  9476. for x in $LDFLAGS $LIBPTH; do
  9477. acl_save_prefix="$prefix"
  9478. prefix="$acl_final_prefix"
  9479. acl_save_exec_prefix="$exec_prefix"
  9480. exec_prefix="$acl_final_exec_prefix"
  9481. eval x=\"$x\"
  9482. exec_prefix="$acl_save_exec_prefix"
  9483. prefix="$acl_save_prefix"
  9484. if test "X$x" = "X-L$additional_libdir"; then
  9485. haveit=yes
  9486. break
  9487. fi
  9488. done
  9489. if test -z "$haveit"; then
  9490. if test -d "$additional_libdir"; then
  9491. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9492. fi
  9493. fi
  9494. haveit=
  9495. for x in $LDFLAGS $LTLIBPTH; do
  9496. acl_save_prefix="$prefix"
  9497. prefix="$acl_final_prefix"
  9498. acl_save_exec_prefix="$exec_prefix"
  9499. exec_prefix="$acl_final_exec_prefix"
  9500. eval x=\"$x\"
  9501. exec_prefix="$acl_save_exec_prefix"
  9502. prefix="$acl_save_prefix"
  9503. if test "X$x" = "X-L$additional_libdir"; then
  9504. haveit=yes
  9505. break
  9506. fi
  9507. done
  9508. if test -z "$haveit"; then
  9509. if test -d "$additional_libdir"; then
  9510. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9511. fi
  9512. fi
  9513. fi
  9514. fi
  9515. ;;
  9516. -R*)
  9517. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9518. if test "$enable_rpath" != no; then
  9519. haveit=
  9520. for x in $rpathdirs; do
  9521. if test "X$x" = "X$dir"; then
  9522. haveit=yes
  9523. break
  9524. fi
  9525. done
  9526. if test -z "$haveit"; then
  9527. rpathdirs="$rpathdirs $dir"
  9528. fi
  9529. haveit=
  9530. for x in $ltrpathdirs; do
  9531. if test "X$x" = "X$dir"; then
  9532. haveit=yes
  9533. break
  9534. fi
  9535. done
  9536. if test -z "$haveit"; then
  9537. ltrpathdirs="$ltrpathdirs $dir"
  9538. fi
  9539. fi
  9540. ;;
  9541. -l*)
  9542. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9543. ;;
  9544. *.la)
  9545. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9546. ;;
  9547. *)
  9548. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9549. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9550. ;;
  9551. esac
  9552. done
  9553. fi
  9554. else
  9555. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9556. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9557. fi
  9558. fi
  9559. fi
  9560. done
  9561. done
  9562. if test "X$rpathdirs" != "X"; then
  9563. if test -n "$acl_hardcode_libdir_separator"; then
  9564. alldirs=
  9565. for found_dir in $rpathdirs; do
  9566. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9567. done
  9568. acl_save_libdir="$libdir"
  9569. libdir="$alldirs"
  9570. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9571. libdir="$acl_save_libdir"
  9572. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9573. else
  9574. for found_dir in $rpathdirs; do
  9575. acl_save_libdir="$libdir"
  9576. libdir="$found_dir"
  9577. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9578. libdir="$acl_save_libdir"
  9579. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9580. done
  9581. fi
  9582. fi
  9583. if test "X$ltrpathdirs" != "X"; then
  9584. for found_dir in $ltrpathdirs; do
  9585. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9586. done
  9587. fi
  9588. ac_cv_libpth_libs="$LIBPTH"
  9589. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9590. ac_cv_libpth_cppflags="$INCPTH"
  9591. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9592. fi
  9593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
  9594. $as_echo "$ac_cv_libpth_libs" >&6; }
  9595. LIBPTH="$ac_cv_libpth_libs"
  9596. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9597. INCPTH="$ac_cv_libpth_cppflags"
  9598. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9599. for element in $INCPTH; do
  9600. haveit=
  9601. for x in $CPPFLAGS; do
  9602. acl_save_prefix="$prefix"
  9603. prefix="$acl_final_prefix"
  9604. acl_save_exec_prefix="$exec_prefix"
  9605. exec_prefix="$acl_final_exec_prefix"
  9606. eval x=\"$x\"
  9607. exec_prefix="$acl_save_exec_prefix"
  9608. prefix="$acl_save_prefix"
  9609. if test "X$x" = "X$element"; then
  9610. haveit=yes
  9611. break
  9612. fi
  9613. done
  9614. if test -z "$haveit"; then
  9615. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9616. fi
  9617. done
  9618. HAVE_LIBPTH=yes
  9619. gl_have_pth=
  9620. gl_save_LIBS="$LIBS"
  9621. LIBS="$LIBS -lpth"
  9622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9623. /* end confdefs.h. */
  9624. #include <pth.h>
  9625. int
  9626. main ()
  9627. {
  9628. pth_self();
  9629. ;
  9630. return 0;
  9631. }
  9632. _ACEOF
  9633. if ac_fn_cxx_try_link "$LINENO"; then :
  9634. gl_have_pth=yes
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637. conftest$ac_exeext conftest.$ac_ext
  9638. LIBS="$gl_save_LIBS"
  9639. if test -n "$gl_have_pth"; then
  9640. gl_threads_api=pth
  9641. LIBTHREAD="$LIBPTH"
  9642. LTLIBTHREAD="$LTLIBPTH"
  9643. LIBMULTITHREAD="$LIBTHREAD"
  9644. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9645. $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
  9646. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9647. if test $gl_have_weak = yes; then
  9648. $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
  9649. LIBTHREAD=
  9650. LTLIBTHREAD=
  9651. fi
  9652. fi
  9653. else
  9654. CPPFLAGS="$gl_save_CPPFLAGS"
  9655. fi
  9656. fi
  9657. if test -z "$gl_have_pthread"; then
  9658. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9659. if { case "$host_os" in
  9660. mingw*) true;;
  9661. *) false;;
  9662. esac
  9663. }; then
  9664. gl_threads_api=win32
  9665. $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
  9666. fi
  9667. fi
  9668. fi
  9669. fi
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
  9671. $as_echo_n "checking for multithread API to use... " >&6; }
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
  9673. $as_echo "$gl_threads_api" >&6; }
  9674. use_additional=yes
  9675. acl_save_prefix="$prefix"
  9676. prefix="$acl_final_prefix"
  9677. acl_save_exec_prefix="$exec_prefix"
  9678. exec_prefix="$acl_final_exec_prefix"
  9679. eval additional_includedir=\"$includedir\"
  9680. eval additional_libdir=\"$libdir\"
  9681. exec_prefix="$acl_save_exec_prefix"
  9682. prefix="$acl_save_prefix"
  9683. # Check whether --with-libiconv-prefix was given.
  9684. if test "${with_libiconv_prefix+set}" = set; then :
  9685. withval=$with_libiconv_prefix;
  9686. if test "X$withval" = "Xno"; then
  9687. use_additional=no
  9688. else
  9689. if test "X$withval" = "X"; then
  9690. acl_save_prefix="$prefix"
  9691. prefix="$acl_final_prefix"
  9692. acl_save_exec_prefix="$exec_prefix"
  9693. exec_prefix="$acl_final_exec_prefix"
  9694. eval additional_includedir=\"$includedir\"
  9695. eval additional_libdir=\"$libdir\"
  9696. exec_prefix="$acl_save_exec_prefix"
  9697. prefix="$acl_save_prefix"
  9698. else
  9699. additional_includedir="$withval/include"
  9700. additional_libdir="$withval/$acl_libdirstem"
  9701. fi
  9702. fi
  9703. fi
  9704. LIBICONV=
  9705. LTLIBICONV=
  9706. INCICONV=
  9707. LIBICONV_PREFIX=
  9708. rpathdirs=
  9709. ltrpathdirs=
  9710. names_already_handled=
  9711. names_next_round='iconv '
  9712. while test -n "$names_next_round"; do
  9713. names_this_round="$names_next_round"
  9714. names_next_round=
  9715. for name in $names_this_round; do
  9716. already_handled=
  9717. for n in $names_already_handled; do
  9718. if test "$n" = "$name"; then
  9719. already_handled=yes
  9720. break
  9721. fi
  9722. done
  9723. if test -z "$already_handled"; then
  9724. names_already_handled="$names_already_handled $name"
  9725. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9726. eval value=\"\$HAVE_LIB$uppername\"
  9727. if test -n "$value"; then
  9728. if test "$value" = yes; then
  9729. eval value=\"\$LIB$uppername\"
  9730. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9731. eval value=\"\$LTLIB$uppername\"
  9732. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9733. else
  9734. :
  9735. fi
  9736. else
  9737. found_dir=
  9738. found_la=
  9739. found_so=
  9740. found_a=
  9741. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9742. if test -n "$acl_shlibext"; then
  9743. shrext=".$acl_shlibext" # typically: shrext=.so
  9744. else
  9745. shrext=
  9746. fi
  9747. if test $use_additional = yes; then
  9748. dir="$additional_libdir"
  9749. if test -n "$acl_shlibext"; then
  9750. if test -f "$dir/$libname$shrext"; then
  9751. found_dir="$dir"
  9752. found_so="$dir/$libname$shrext"
  9753. else
  9754. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9755. ver=`(cd "$dir" && \
  9756. for f in "$libname$shrext".*; do echo "$f"; done \
  9757. | sed -e "s,^$libname$shrext\\\\.,," \
  9758. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9759. | sed 1q ) 2>/dev/null`
  9760. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9761. found_dir="$dir"
  9762. found_so="$dir/$libname$shrext.$ver"
  9763. fi
  9764. else
  9765. eval library_names=\"$acl_library_names_spec\"
  9766. for f in $library_names; do
  9767. if test -f "$dir/$f"; then
  9768. found_dir="$dir"
  9769. found_so="$dir/$f"
  9770. break
  9771. fi
  9772. done
  9773. fi
  9774. fi
  9775. fi
  9776. if test "X$found_dir" = "X"; then
  9777. if test -f "$dir/$libname.$acl_libext"; then
  9778. found_dir="$dir"
  9779. found_a="$dir/$libname.$acl_libext"
  9780. fi
  9781. fi
  9782. if test "X$found_dir" != "X"; then
  9783. if test -f "$dir/$libname.la"; then
  9784. found_la="$dir/$libname.la"
  9785. fi
  9786. fi
  9787. fi
  9788. if test "X$found_dir" = "X"; then
  9789. for x in $LDFLAGS $LTLIBICONV; do
  9790. acl_save_prefix="$prefix"
  9791. prefix="$acl_final_prefix"
  9792. acl_save_exec_prefix="$exec_prefix"
  9793. exec_prefix="$acl_final_exec_prefix"
  9794. eval x=\"$x\"
  9795. exec_prefix="$acl_save_exec_prefix"
  9796. prefix="$acl_save_prefix"
  9797. case "$x" in
  9798. -L*)
  9799. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9800. if test -n "$acl_shlibext"; then
  9801. if test -f "$dir/$libname$shrext"; then
  9802. found_dir="$dir"
  9803. found_so="$dir/$libname$shrext"
  9804. else
  9805. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9806. ver=`(cd "$dir" && \
  9807. for f in "$libname$shrext".*; do echo "$f"; done \
  9808. | sed -e "s,^$libname$shrext\\\\.,," \
  9809. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9810. | sed 1q ) 2>/dev/null`
  9811. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9812. found_dir="$dir"
  9813. found_so="$dir/$libname$shrext.$ver"
  9814. fi
  9815. else
  9816. eval library_names=\"$acl_library_names_spec\"
  9817. for f in $library_names; do
  9818. if test -f "$dir/$f"; then
  9819. found_dir="$dir"
  9820. found_so="$dir/$f"
  9821. break
  9822. fi
  9823. done
  9824. fi
  9825. fi
  9826. fi
  9827. if test "X$found_dir" = "X"; then
  9828. if test -f "$dir/$libname.$acl_libext"; then
  9829. found_dir="$dir"
  9830. found_a="$dir/$libname.$acl_libext"
  9831. fi
  9832. fi
  9833. if test "X$found_dir" != "X"; then
  9834. if test -f "$dir/$libname.la"; then
  9835. found_la="$dir/$libname.la"
  9836. fi
  9837. fi
  9838. ;;
  9839. esac
  9840. if test "X$found_dir" != "X"; then
  9841. break
  9842. fi
  9843. done
  9844. fi
  9845. if test "X$found_dir" != "X"; then
  9846. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9847. if test "X$found_so" != "X"; then
  9848. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9849. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9850. else
  9851. haveit=
  9852. for x in $ltrpathdirs; do
  9853. if test "X$x" = "X$found_dir"; then
  9854. haveit=yes
  9855. break
  9856. fi
  9857. done
  9858. if test -z "$haveit"; then
  9859. ltrpathdirs="$ltrpathdirs $found_dir"
  9860. fi
  9861. if test "$acl_hardcode_direct" = yes; then
  9862. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9863. else
  9864. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9865. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9866. haveit=
  9867. for x in $rpathdirs; do
  9868. if test "X$x" = "X$found_dir"; then
  9869. haveit=yes
  9870. break
  9871. fi
  9872. done
  9873. if test -z "$haveit"; then
  9874. rpathdirs="$rpathdirs $found_dir"
  9875. fi
  9876. else
  9877. haveit=
  9878. for x in $LDFLAGS $LIBICONV; do
  9879. acl_save_prefix="$prefix"
  9880. prefix="$acl_final_prefix"
  9881. acl_save_exec_prefix="$exec_prefix"
  9882. exec_prefix="$acl_final_exec_prefix"
  9883. eval x=\"$x\"
  9884. exec_prefix="$acl_save_exec_prefix"
  9885. prefix="$acl_save_prefix"
  9886. if test "X$x" = "X-L$found_dir"; then
  9887. haveit=yes
  9888. break
  9889. fi
  9890. done
  9891. if test -z "$haveit"; then
  9892. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9893. fi
  9894. if test "$acl_hardcode_minus_L" != no; then
  9895. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9896. else
  9897. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9898. fi
  9899. fi
  9900. fi
  9901. fi
  9902. else
  9903. if test "X$found_a" != "X"; then
  9904. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9905. else
  9906. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9907. fi
  9908. fi
  9909. additional_includedir=
  9910. case "$found_dir" in
  9911. */$acl_libdirstem | */$acl_libdirstem/)
  9912. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9913. LIBICONV_PREFIX="$basedir"
  9914. additional_includedir="$basedir/include"
  9915. ;;
  9916. esac
  9917. if test "X$additional_includedir" != "X"; then
  9918. if test "X$additional_includedir" != "X/usr/include"; then
  9919. haveit=
  9920. if test "X$additional_includedir" = "X/usr/local/include"; then
  9921. if test -n "$GCC"; then
  9922. case $host_os in
  9923. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9924. esac
  9925. fi
  9926. fi
  9927. if test -z "$haveit"; then
  9928. for x in $CPPFLAGS $INCICONV; do
  9929. acl_save_prefix="$prefix"
  9930. prefix="$acl_final_prefix"
  9931. acl_save_exec_prefix="$exec_prefix"
  9932. exec_prefix="$acl_final_exec_prefix"
  9933. eval x=\"$x\"
  9934. exec_prefix="$acl_save_exec_prefix"
  9935. prefix="$acl_save_prefix"
  9936. if test "X$x" = "X-I$additional_includedir"; then
  9937. haveit=yes
  9938. break
  9939. fi
  9940. done
  9941. if test -z "$haveit"; then
  9942. if test -d "$additional_includedir"; then
  9943. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9944. fi
  9945. fi
  9946. fi
  9947. fi
  9948. fi
  9949. if test -n "$found_la"; then
  9950. save_libdir="$libdir"
  9951. case "$found_la" in
  9952. */* | *\\*) . "$found_la" ;;
  9953. *) . "./$found_la" ;;
  9954. esac
  9955. libdir="$save_libdir"
  9956. for dep in $dependency_libs; do
  9957. case "$dep" in
  9958. -L*)
  9959. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9960. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9961. haveit=
  9962. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9963. if test -n "$GCC"; then
  9964. case $host_os in
  9965. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9966. esac
  9967. fi
  9968. fi
  9969. if test -z "$haveit"; then
  9970. haveit=
  9971. for x in $LDFLAGS $LIBICONV; do
  9972. acl_save_prefix="$prefix"
  9973. prefix="$acl_final_prefix"
  9974. acl_save_exec_prefix="$exec_prefix"
  9975. exec_prefix="$acl_final_exec_prefix"
  9976. eval x=\"$x\"
  9977. exec_prefix="$acl_save_exec_prefix"
  9978. prefix="$acl_save_prefix"
  9979. if test "X$x" = "X-L$additional_libdir"; then
  9980. haveit=yes
  9981. break
  9982. fi
  9983. done
  9984. if test -z "$haveit"; then
  9985. if test -d "$additional_libdir"; then
  9986. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  9987. fi
  9988. fi
  9989. haveit=
  9990. for x in $LDFLAGS $LTLIBICONV; do
  9991. acl_save_prefix="$prefix"
  9992. prefix="$acl_final_prefix"
  9993. acl_save_exec_prefix="$exec_prefix"
  9994. exec_prefix="$acl_final_exec_prefix"
  9995. eval x=\"$x\"
  9996. exec_prefix="$acl_save_exec_prefix"
  9997. prefix="$acl_save_prefix"
  9998. if test "X$x" = "X-L$additional_libdir"; then
  9999. haveit=yes
  10000. break
  10001. fi
  10002. done
  10003. if test -z "$haveit"; then
  10004. if test -d "$additional_libdir"; then
  10005. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10006. fi
  10007. fi
  10008. fi
  10009. fi
  10010. ;;
  10011. -R*)
  10012. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10013. if test "$enable_rpath" != no; then
  10014. haveit=
  10015. for x in $rpathdirs; do
  10016. if test "X$x" = "X$dir"; then
  10017. haveit=yes
  10018. break
  10019. fi
  10020. done
  10021. if test -z "$haveit"; then
  10022. rpathdirs="$rpathdirs $dir"
  10023. fi
  10024. haveit=
  10025. for x in $ltrpathdirs; do
  10026. if test "X$x" = "X$dir"; then
  10027. haveit=yes
  10028. break
  10029. fi
  10030. done
  10031. if test -z "$haveit"; then
  10032. ltrpathdirs="$ltrpathdirs $dir"
  10033. fi
  10034. fi
  10035. ;;
  10036. -l*)
  10037. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10038. ;;
  10039. *.la)
  10040. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10041. ;;
  10042. *)
  10043. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10044. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10045. ;;
  10046. esac
  10047. done
  10048. fi
  10049. else
  10050. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10051. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10052. fi
  10053. fi
  10054. fi
  10055. done
  10056. done
  10057. if test "X$rpathdirs" != "X"; then
  10058. if test -n "$acl_hardcode_libdir_separator"; then
  10059. alldirs=
  10060. for found_dir in $rpathdirs; do
  10061. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10062. done
  10063. acl_save_libdir="$libdir"
  10064. libdir="$alldirs"
  10065. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10066. libdir="$acl_save_libdir"
  10067. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10068. else
  10069. for found_dir in $rpathdirs; do
  10070. acl_save_libdir="$libdir"
  10071. libdir="$found_dir"
  10072. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10073. libdir="$acl_save_libdir"
  10074. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10075. done
  10076. fi
  10077. fi
  10078. if test "X$ltrpathdirs" != "X"; then
  10079. for found_dir in $ltrpathdirs; do
  10080. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10081. done
  10082. fi
  10083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10084. /* end confdefs.h. */
  10085. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10086. int
  10087. main ()
  10088. {
  10089. ;
  10090. return 0;
  10091. }
  10092. _ACEOF
  10093. if ac_fn_cxx_try_link "$LINENO"; then :
  10094. $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
  10095. fi
  10096. rm -f core conftest.err conftest.$ac_objext \
  10097. conftest$ac_exeext conftest.$ac_ext
  10098. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10099. do :
  10100. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10101. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10102. eval as_val=\$$as_ac_Header
  10103. if test "x$as_val" = x""yes; then :
  10104. cat >>confdefs.h <<_ACEOF
  10105. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10106. _ACEOF
  10107. fi
  10108. done
  10109. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10110. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10111. argz_next __fsetlocking
  10112. do :
  10113. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10114. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10115. eval as_val=\$$as_ac_var
  10116. if test "x$as_val" = x""yes; then :
  10117. cat >>confdefs.h <<_ACEOF
  10118. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10119. _ACEOF
  10120. fi
  10121. done
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
  10123. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  10124. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. #include <stdio.h>
  10130. int
  10131. main ()
  10132. {
  10133. #ifndef feof_unlocked
  10134. char *p = (char *) feof_unlocked;
  10135. #endif
  10136. ;
  10137. return 0;
  10138. }
  10139. _ACEOF
  10140. if ac_fn_cxx_try_compile "$LINENO"; then :
  10141. ac_cv_have_decl_feof_unlocked=yes
  10142. else
  10143. ac_cv_have_decl_feof_unlocked=no
  10144. fi
  10145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10146. fi
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
  10148. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  10149. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10150. gt_value=1
  10151. else
  10152. gt_value=0
  10153. fi
  10154. cat >>confdefs.h <<_ACEOF
  10155. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10156. _ACEOF
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
  10158. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  10159. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
  10160. $as_echo_n "(cached) " >&6
  10161. else
  10162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10163. /* end confdefs.h. */
  10164. #include <stdio.h>
  10165. int
  10166. main ()
  10167. {
  10168. #ifndef fgets_unlocked
  10169. char *p = (char *) fgets_unlocked;
  10170. #endif
  10171. ;
  10172. return 0;
  10173. }
  10174. _ACEOF
  10175. if ac_fn_cxx_try_compile "$LINENO"; then :
  10176. ac_cv_have_decl_fgets_unlocked=yes
  10177. else
  10178. ac_cv_have_decl_fgets_unlocked=no
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10181. fi
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10183. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  10184. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10185. gt_value=1
  10186. else
  10187. gt_value=0
  10188. fi
  10189. cat >>confdefs.h <<_ACEOF
  10190. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10191. _ACEOF
  10192. am_save_CPPFLAGS="$CPPFLAGS"
  10193. for element in $INCICONV; do
  10194. haveit=
  10195. for x in $CPPFLAGS; do
  10196. acl_save_prefix="$prefix"
  10197. prefix="$acl_final_prefix"
  10198. acl_save_exec_prefix="$exec_prefix"
  10199. exec_prefix="$acl_final_exec_prefix"
  10200. eval x=\"$x\"
  10201. exec_prefix="$acl_save_exec_prefix"
  10202. prefix="$acl_save_prefix"
  10203. if test "X$x" = "X$element"; then
  10204. haveit=yes
  10205. break
  10206. fi
  10207. done
  10208. if test -z "$haveit"; then
  10209. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10210. fi
  10211. done
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  10213. $as_echo_n "checking for iconv... " >&6; }
  10214. if test "${am_cv_func_iconv+set}" = set; then :
  10215. $as_echo_n "(cached) " >&6
  10216. else
  10217. am_cv_func_iconv="no, consider installing GNU libiconv"
  10218. am_cv_lib_iconv=no
  10219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10220. /* end confdefs.h. */
  10221. #include <stdlib.h>
  10222. #include <iconv.h>
  10223. int
  10224. main ()
  10225. {
  10226. iconv_t cd = iconv_open("","");
  10227. iconv(cd,NULL,NULL,NULL,NULL);
  10228. iconv_close(cd);
  10229. ;
  10230. return 0;
  10231. }
  10232. _ACEOF
  10233. if ac_fn_cxx_try_link "$LINENO"; then :
  10234. am_cv_func_iconv=yes
  10235. fi
  10236. rm -f core conftest.err conftest.$ac_objext \
  10237. conftest$ac_exeext conftest.$ac_ext
  10238. if test "$am_cv_func_iconv" != yes; then
  10239. am_save_LIBS="$LIBS"
  10240. LIBS="$LIBS $LIBICONV"
  10241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10242. /* end confdefs.h. */
  10243. #include <stdlib.h>
  10244. #include <iconv.h>
  10245. int
  10246. main ()
  10247. {
  10248. iconv_t cd = iconv_open("","");
  10249. iconv(cd,NULL,NULL,NULL,NULL);
  10250. iconv_close(cd);
  10251. ;
  10252. return 0;
  10253. }
  10254. _ACEOF
  10255. if ac_fn_cxx_try_link "$LINENO"; then :
  10256. am_cv_lib_iconv=yes
  10257. am_cv_func_iconv=yes
  10258. fi
  10259. rm -f core conftest.err conftest.$ac_objext \
  10260. conftest$ac_exeext conftest.$ac_ext
  10261. LIBS="$am_save_LIBS"
  10262. fi
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  10265. $as_echo "$am_cv_func_iconv" >&6; }
  10266. if test "$am_cv_func_iconv" = yes; then
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
  10268. $as_echo_n "checking for working iconv... " >&6; }
  10269. if test "${am_cv_func_iconv_works+set}" = set; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. am_save_LIBS="$LIBS"
  10273. if test $am_cv_lib_iconv = yes; then
  10274. LIBS="$LIBS $LIBICONV"
  10275. fi
  10276. if test "$cross_compiling" = yes; then :
  10277. case "$host_os" in
  10278. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10279. *) am_cv_func_iconv_works="guessing yes" ;;
  10280. esac
  10281. else
  10282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10283. /* end confdefs.h. */
  10284. #include <iconv.h>
  10285. #include <string.h>
  10286. int main ()
  10287. {
  10288. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10289. returns. */
  10290. {
  10291. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10292. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10293. {
  10294. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10295. char buf[10];
  10296. const char *inptr = input;
  10297. size_t inbytesleft = strlen (input);
  10298. char *outptr = buf;
  10299. size_t outbytesleft = sizeof (buf);
  10300. size_t res = iconv (cd_utf8_to_88591,
  10301. (char **) &inptr, &inbytesleft,
  10302. &outptr, &outbytesleft);
  10303. if (res == 0)
  10304. return 1;
  10305. }
  10306. }
  10307. #if 0 /* This bug could be worked around by the caller. */
  10308. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10309. {
  10310. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10311. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10312. {
  10313. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10314. char buf[50];
  10315. const char *inptr = input;
  10316. size_t inbytesleft = strlen (input);
  10317. char *outptr = buf;
  10318. size_t outbytesleft = sizeof (buf);
  10319. size_t res = iconv (cd_88591_to_utf8,
  10320. (char **) &inptr, &inbytesleft,
  10321. &outptr, &outbytesleft);
  10322. if ((int)res > 0)
  10323. return 1;
  10324. }
  10325. }
  10326. #endif
  10327. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10328. provided. */
  10329. if (/* Try standardized names. */
  10330. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10331. /* Try IRIX, OSF/1 names. */
  10332. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10333. /* Try AIX names. */
  10334. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10335. /* Try HP-UX names. */
  10336. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10337. return 1;
  10338. return 0;
  10339. }
  10340. _ACEOF
  10341. if ac_fn_cxx_try_run "$LINENO"; then :
  10342. am_cv_func_iconv_works=yes
  10343. else
  10344. am_cv_func_iconv_works=no
  10345. fi
  10346. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10347. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10348. fi
  10349. LIBS="$am_save_LIBS"
  10350. fi
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
  10352. $as_echo "$am_cv_func_iconv_works" >&6; }
  10353. case "$am_cv_func_iconv_works" in
  10354. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10355. *) am_func_iconv=yes ;;
  10356. esac
  10357. else
  10358. am_func_iconv=no am_cv_lib_iconv=no
  10359. fi
  10360. if test "$am_func_iconv" = yes; then
  10361. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  10362. fi
  10363. if test "$am_cv_lib_iconv" = yes; then
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  10365. $as_echo_n "checking how to link with libiconv... " >&6; }
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  10367. $as_echo "$LIBICONV" >&6; }
  10368. else
  10369. CPPFLAGS="$am_save_CPPFLAGS"
  10370. LIBICONV=
  10371. LTLIBICONV=
  10372. fi
  10373. if test "$am_cv_func_iconv" = yes; then
  10374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  10375. $as_echo_n "checking for iconv declaration... " >&6; }
  10376. if test "${am_cv_proto_iconv+set}" = set; then :
  10377. $as_echo_n "(cached) " >&6
  10378. else
  10379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10380. /* end confdefs.h. */
  10381. #include <stdlib.h>
  10382. #include <iconv.h>
  10383. extern
  10384. #ifdef __cplusplus
  10385. "C"
  10386. #endif
  10387. #if defined(__STDC__) || defined(__cplusplus)
  10388. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10389. #else
  10390. size_t iconv();
  10391. #endif
  10392. int
  10393. main ()
  10394. {
  10395. ;
  10396. return 0;
  10397. }
  10398. _ACEOF
  10399. if ac_fn_cxx_try_compile "$LINENO"; then :
  10400. am_cv_proto_iconv_arg1=""
  10401. else
  10402. am_cv_proto_iconv_arg1="const"
  10403. fi
  10404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10405. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  10406. fi
  10407. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  10409. }$am_cv_proto_iconv" >&5
  10410. $as_echo "${ac_t:-
  10411. }$am_cv_proto_iconv" >&6; }
  10412. cat >>confdefs.h <<_ACEOF
  10413. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10414. _ACEOF
  10415. fi
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NL_LOCALE_NAME macro" >&5
  10417. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  10418. if test "${gt_cv_nl_locale_name+set}" = set; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10422. /* end confdefs.h. */
  10423. #include <langinfo.h>
  10424. #include <locale.h>
  10425. int
  10426. main ()
  10427. {
  10428. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10429. return !cs;
  10430. ;
  10431. return 0;
  10432. }
  10433. _ACEOF
  10434. if ac_fn_cxx_try_link "$LINENO"; then :
  10435. gt_cv_nl_locale_name=yes
  10436. else
  10437. gt_cv_nl_locale_name=no
  10438. fi
  10439. rm -f core conftest.err conftest.$ac_objext \
  10440. conftest$ac_exeext conftest.$ac_ext
  10441. fi
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_nl_locale_name" >&5
  10443. $as_echo "$gt_cv_nl_locale_name" >&6; }
  10444. if test $gt_cv_nl_locale_name = yes; then
  10445. $as_echo "#define HAVE_NL_LOCALE_NAME 1" >>confdefs.h
  10446. fi
  10447. for ac_prog in bison
  10448. do
  10449. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10450. set dummy $ac_prog; ac_word=$2
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10452. $as_echo_n "checking for $ac_word... " >&6; }
  10453. if test "${ac_cv_prog_INTLBISON+set}" = set; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. if test -n "$INTLBISON"; then
  10457. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10458. else
  10459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10460. for as_dir in $PATH
  10461. do
  10462. IFS=$as_save_IFS
  10463. test -z "$as_dir" && as_dir=.
  10464. for ac_exec_ext in '' $ac_executable_extensions; do
  10465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10466. ac_cv_prog_INTLBISON="$ac_prog"
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10468. break 2
  10469. fi
  10470. done
  10471. done
  10472. IFS=$as_save_IFS
  10473. fi
  10474. fi
  10475. INTLBISON=$ac_cv_prog_INTLBISON
  10476. if test -n "$INTLBISON"; then
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
  10478. $as_echo "$INTLBISON" >&6; }
  10479. else
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10481. $as_echo "no" >&6; }
  10482. fi
  10483. test -n "$INTLBISON" && break
  10484. done
  10485. if test -z "$INTLBISON"; then
  10486. ac_verc_fail=yes
  10487. else
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
  10489. $as_echo_n "checking version of bison... " >&6; }
  10490. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10491. case $ac_prog_version in
  10492. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10493. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10494. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10495. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10496. esac
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
  10498. $as_echo "$ac_prog_version" >&6; }
  10499. fi
  10500. if test $ac_verc_fail = yes; then
  10501. INTLBISON=:
  10502. fi
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10504. $as_echo_n "checking for long long int... " >&6; }
  10505. if test "${ac_cv_type_long_long_int+set}" = set; then :
  10506. $as_echo_n "(cached) " >&6
  10507. else
  10508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10509. /* end confdefs.h. */
  10510. /* Test preprocessor. */
  10511. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10512. error in preprocessor;
  10513. #endif
  10514. #if ! (18446744073709551615ULL <= -1ull)
  10515. error in preprocessor;
  10516. #endif
  10517. /* Test literals. */
  10518. long long int ll = 9223372036854775807ll;
  10519. long long int nll = -9223372036854775807LL;
  10520. unsigned long long int ull = 18446744073709551615ULL;
  10521. /* Test constant expressions. */
  10522. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10523. ? 1 : -1)];
  10524. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10525. ? 1 : -1)];
  10526. int i = 63;
  10527. int
  10528. main ()
  10529. {
  10530. /* Test availability of runtime routines for shift and division. */
  10531. long long int llmax = 9223372036854775807ll;
  10532. unsigned long long int ullmax = 18446744073709551615ull;
  10533. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10534. | (llmax / ll) | (llmax % ll)
  10535. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10536. | (ullmax / ull) | (ullmax % ull));
  10537. ;
  10538. return 0;
  10539. }
  10540. _ACEOF
  10541. if ac_fn_cxx_try_link "$LINENO"; then :
  10542. if test "$cross_compiling" = yes; then :
  10543. ac_cv_type_long_long_int=yes
  10544. else
  10545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10546. /* end confdefs.h. */
  10547. #include <limits.h>
  10548. #ifndef LLONG_MAX
  10549. # define HALF \
  10550. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10551. # define LLONG_MAX (HALF - 1 + HALF)
  10552. #endif
  10553. int
  10554. main ()
  10555. {
  10556. long long int n = 1;
  10557. int i;
  10558. for (i = 0; ; i++)
  10559. {
  10560. long long int m = n << i;
  10561. if (m >> i != n)
  10562. return 1;
  10563. if (LLONG_MAX / 2 < m)
  10564. break;
  10565. }
  10566. return 0;
  10567. ;
  10568. return 0;
  10569. }
  10570. _ACEOF
  10571. if ac_fn_cxx_try_run "$LINENO"; then :
  10572. ac_cv_type_long_long_int=yes
  10573. else
  10574. ac_cv_type_long_long_int=no
  10575. fi
  10576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10577. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10578. fi
  10579. else
  10580. ac_cv_type_long_long_int=no
  10581. fi
  10582. rm -f core conftest.err conftest.$ac_objext \
  10583. conftest$ac_exeext conftest.$ac_ext
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10586. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10587. if test $ac_cv_type_long_long_int = yes; then
  10588. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10589. fi
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
  10591. $as_echo_n "checking for wchar_t... " >&6; }
  10592. if test "${gt_cv_c_wchar_t+set}" = set; then :
  10593. $as_echo_n "(cached) " >&6
  10594. else
  10595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10596. /* end confdefs.h. */
  10597. #include <stddef.h>
  10598. wchar_t foo = (wchar_t)'\0';
  10599. int
  10600. main ()
  10601. {
  10602. ;
  10603. return 0;
  10604. }
  10605. _ACEOF
  10606. if ac_fn_cxx_try_compile "$LINENO"; then :
  10607. gt_cv_c_wchar_t=yes
  10608. else
  10609. gt_cv_c_wchar_t=no
  10610. fi
  10611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10612. fi
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
  10614. $as_echo "$gt_cv_c_wchar_t" >&6; }
  10615. if test $gt_cv_c_wchar_t = yes; then
  10616. $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
  10619. $as_echo_n "checking for wint_t... " >&6; }
  10620. if test "${gt_cv_c_wint_t+set}" = set; then :
  10621. $as_echo_n "(cached) " >&6
  10622. else
  10623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10624. /* end confdefs.h. */
  10625. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  10626. <wchar.h>.
  10627. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  10628. before <wchar.h>. */
  10629. #include <stddef.h>
  10630. #include <stdio.h>
  10631. #include <time.h>
  10632. #include <wchar.h>
  10633. wint_t foo = (wchar_t)'\0';
  10634. int
  10635. main ()
  10636. {
  10637. ;
  10638. return 0;
  10639. }
  10640. _ACEOF
  10641. if ac_fn_cxx_try_compile "$LINENO"; then :
  10642. gt_cv_c_wint_t=yes
  10643. else
  10644. gt_cv_c_wint_t=no
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10647. fi
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
  10649. $as_echo "$gt_cv_c_wint_t" >&6; }
  10650. if test $gt_cv_c_wint_t = yes; then
  10651. $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
  10652. fi
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
  10654. $as_echo_n "checking for intmax_t... " >&6; }
  10655. if test "${gt_cv_c_intmax_t+set}" = set; then :
  10656. $as_echo_n "(cached) " >&6
  10657. else
  10658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10659. /* end confdefs.h. */
  10660. #include <stddef.h>
  10661. #include <stdlib.h>
  10662. #if HAVE_STDINT_H_WITH_UINTMAX
  10663. #include <stdint.h>
  10664. #endif
  10665. #if HAVE_INTTYPES_H_WITH_UINTMAX
  10666. #include <inttypes.h>
  10667. #endif
  10668. int
  10669. main ()
  10670. {
  10671. intmax_t x = -1;
  10672. return !x;
  10673. ;
  10674. return 0;
  10675. }
  10676. _ACEOF
  10677. if ac_fn_cxx_try_compile "$LINENO"; then :
  10678. gt_cv_c_intmax_t=yes
  10679. else
  10680. gt_cv_c_intmax_t=no
  10681. fi
  10682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10683. fi
  10684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
  10685. $as_echo "$gt_cv_c_intmax_t" >&6; }
  10686. if test $gt_cv_c_intmax_t = yes; then
  10687. $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
  10688. fi
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
  10690. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  10691. if test "${gt_cv_func_printf_posix+set}" = set; then :
  10692. $as_echo_n "(cached) " >&6
  10693. else
  10694. if test "$cross_compiling" = yes; then :
  10695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10696. /* end confdefs.h. */
  10697. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  10698. notposix
  10699. #endif
  10700. _ACEOF
  10701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10702. $EGREP "notposix" >/dev/null 2>&1; then :
  10703. gt_cv_func_printf_posix="guessing no"
  10704. else
  10705. gt_cv_func_printf_posix="guessing yes"
  10706. fi
  10707. rm -f conftest*
  10708. else
  10709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10710. /* end confdefs.h. */
  10711. #include <stdio.h>
  10712. #include <string.h>
  10713. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  10714. dollar expansion (possibly an autoconf bug). */
  10715. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  10716. static char buf[100];
  10717. int main ()
  10718. {
  10719. sprintf (buf, format, 33, 55);
  10720. return (strcmp (buf, "55 33") != 0);
  10721. }
  10722. _ACEOF
  10723. if ac_fn_cxx_try_run "$LINENO"; then :
  10724. gt_cv_func_printf_posix=yes
  10725. else
  10726. gt_cv_func_printf_posix=no
  10727. fi
  10728. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10729. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10730. fi
  10731. fi
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
  10733. $as_echo "$gt_cv_func_printf_posix" >&6; }
  10734. case $gt_cv_func_printf_posix in
  10735. *yes)
  10736. $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
  10737. ;;
  10738. esac
  10739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
  10740. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  10741. if test "${ac_cv_gnu_library_2_1+set}" = set; then :
  10742. $as_echo_n "(cached) " >&6
  10743. else
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. #include <features.h>
  10747. #ifdef __GNU_LIBRARY__
  10748. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  10749. Lucky GNU user
  10750. #endif
  10751. #endif
  10752. _ACEOF
  10753. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10754. $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
  10755. ac_cv_gnu_library_2_1=yes
  10756. else
  10757. ac_cv_gnu_library_2_1=no
  10758. fi
  10759. rm -f conftest*
  10760. fi
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
  10762. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  10763. GLIBC21="$ac_cv_gnu_library_2_1"
  10764. for ac_header in stdint.h
  10765. do :
  10766. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10767. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10768. cat >>confdefs.h <<_ACEOF
  10769. #define HAVE_STDINT_H 1
  10770. _ACEOF
  10771. fi
  10772. done
  10773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
  10774. $as_echo_n "checking for SIZE_MAX... " >&6; }
  10775. if test "${gl_cv_size_max+set}" = set; then :
  10776. $as_echo_n "(cached) " >&6
  10777. else
  10778. gl_cv_size_max=
  10779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h. */
  10781. #include <limits.h>
  10782. #if HAVE_STDINT_H
  10783. #include <stdint.h>
  10784. #endif
  10785. #ifdef SIZE_MAX
  10786. Found it
  10787. #endif
  10788. _ACEOF
  10789. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10790. $EGREP "Found it" >/dev/null 2>&1; then :
  10791. gl_cv_size_max=yes
  10792. fi
  10793. rm -f conftest*
  10794. if test -z "$gl_cv_size_max"; then
  10795. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
  10796. #include <limits.h>"; then :
  10797. else
  10798. size_t_bits_minus_1=
  10799. fi
  10800. if ac_fn_cxx_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
  10801. else
  10802. fits_in_uint=
  10803. fi
  10804. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  10805. if test $fits_in_uint = 1; then
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. #include <stddef.h>
  10809. extern size_t foo;
  10810. extern unsigned long foo;
  10811. int
  10812. main ()
  10813. {
  10814. ;
  10815. return 0;
  10816. }
  10817. _ACEOF
  10818. if ac_fn_cxx_try_compile "$LINENO"; then :
  10819. fits_in_uint=0
  10820. fi
  10821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10822. fi
  10823. if test $fits_in_uint = 1; then
  10824. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10825. else
  10826. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  10827. fi
  10828. else
  10829. gl_cv_size_max='((size_t)~(size_t)0)'
  10830. fi
  10831. fi
  10832. fi
  10833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
  10834. $as_echo "$gl_cv_size_max" >&6; }
  10835. if test "$gl_cv_size_max" != yes; then
  10836. cat >>confdefs.h <<_ACEOF
  10837. #define SIZE_MAX $gl_cv_size_max
  10838. _ACEOF
  10839. fi
  10840. for ac_header in stdint.h
  10841. do :
  10842. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  10843. if test "x$ac_cv_header_stdint_h" = x""yes; then :
  10844. cat >>confdefs.h <<_ACEOF
  10845. #define HAVE_STDINT_H 1
  10846. _ACEOF
  10847. fi
  10848. done
  10849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  10850. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  10851. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  10852. $as_echo_n "(cached) " >&6
  10853. else
  10854. gt_save_LIBS="$LIBS"
  10855. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10857. /* end confdefs.h. */
  10858. #include <CoreFoundation/CFPreferences.h>
  10859. int
  10860. main ()
  10861. {
  10862. CFPreferencesCopyAppValue(NULL, NULL)
  10863. ;
  10864. return 0;
  10865. }
  10866. _ACEOF
  10867. if ac_fn_cxx_try_link "$LINENO"; then :
  10868. gt_cv_func_CFPreferencesCopyAppValue=yes
  10869. else
  10870. gt_cv_func_CFPreferencesCopyAppValue=no
  10871. fi
  10872. rm -f core conftest.err conftest.$ac_objext \
  10873. conftest$ac_exeext conftest.$ac_ext
  10874. LIBS="$gt_save_LIBS"
  10875. fi
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  10877. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  10878. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  10879. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  10880. fi
  10881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  10882. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  10883. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  10884. $as_echo_n "(cached) " >&6
  10885. else
  10886. gt_save_LIBS="$LIBS"
  10887. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  10888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10889. /* end confdefs.h. */
  10890. #include <CoreFoundation/CFLocale.h>
  10891. int
  10892. main ()
  10893. {
  10894. CFLocaleCopyCurrent();
  10895. ;
  10896. return 0;
  10897. }
  10898. _ACEOF
  10899. if ac_fn_cxx_try_link "$LINENO"; then :
  10900. gt_cv_func_CFLocaleCopyCurrent=yes
  10901. else
  10902. gt_cv_func_CFLocaleCopyCurrent=no
  10903. fi
  10904. rm -f core conftest.err conftest.$ac_objext \
  10905. conftest$ac_exeext conftest.$ac_ext
  10906. LIBS="$gt_save_LIBS"
  10907. fi
  10908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  10909. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  10910. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10911. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  10912. fi
  10913. INTL_MACOSX_LIBS=
  10914. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  10915. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  10916. fi
  10917. ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  10918. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
  10919. else
  10920. $as_echo "#define ptrdiff_t long" >>confdefs.h
  10921. fi
  10922. for ac_header in stddef.h stdlib.h string.h
  10923. do :
  10924. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10925. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10926. eval as_val=\$$as_ac_Header
  10927. if test "x$as_val" = x""yes; then :
  10928. cat >>confdefs.h <<_ACEOF
  10929. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10930. _ACEOF
  10931. fi
  10932. done
  10933. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  10934. do :
  10935. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10936. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10937. eval as_val=\$$as_ac_var
  10938. if test "x$as_val" = x""yes; then :
  10939. cat >>confdefs.h <<_ACEOF
  10940. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10941. _ACEOF
  10942. fi
  10943. done
  10944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
  10945. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  10946. if test "${ac_cv_have_decl__snprintf+set}" = set; then :
  10947. $as_echo_n "(cached) " >&6
  10948. else
  10949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10950. /* end confdefs.h. */
  10951. #include <stdio.h>
  10952. int
  10953. main ()
  10954. {
  10955. #ifndef _snprintf
  10956. char *p = (char *) _snprintf;
  10957. #endif
  10958. ;
  10959. return 0;
  10960. }
  10961. _ACEOF
  10962. if ac_fn_cxx_try_compile "$LINENO"; then :
  10963. ac_cv_have_decl__snprintf=yes
  10964. else
  10965. ac_cv_have_decl__snprintf=no
  10966. fi
  10967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10968. fi
  10969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
  10970. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  10971. if test $ac_cv_have_decl__snprintf = yes; then
  10972. gt_value=1
  10973. else
  10974. gt_value=0
  10975. fi
  10976. cat >>confdefs.h <<_ACEOF
  10977. #define HAVE_DECL__SNPRINTF $gt_value
  10978. _ACEOF
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
  10980. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  10981. if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
  10982. $as_echo_n "(cached) " >&6
  10983. else
  10984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10985. /* end confdefs.h. */
  10986. #include <stdio.h>
  10987. int
  10988. main ()
  10989. {
  10990. #ifndef _snwprintf
  10991. char *p = (char *) _snwprintf;
  10992. #endif
  10993. ;
  10994. return 0;
  10995. }
  10996. _ACEOF
  10997. if ac_fn_cxx_try_compile "$LINENO"; then :
  10998. ac_cv_have_decl__snwprintf=yes
  10999. else
  11000. ac_cv_have_decl__snwprintf=no
  11001. fi
  11002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11003. fi
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
  11005. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  11006. if test $ac_cv_have_decl__snwprintf = yes; then
  11007. gt_value=1
  11008. else
  11009. gt_value=0
  11010. fi
  11011. cat >>confdefs.h <<_ACEOF
  11012. #define HAVE_DECL__SNWPRINTF $gt_value
  11013. _ACEOF
  11014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
  11015. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  11016. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
  11017. $as_echo_n "(cached) " >&6
  11018. else
  11019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11020. /* end confdefs.h. */
  11021. #include <stdio.h>
  11022. int
  11023. main ()
  11024. {
  11025. #ifndef getc_unlocked
  11026. char *p = (char *) getc_unlocked;
  11027. #endif
  11028. ;
  11029. return 0;
  11030. }
  11031. _ACEOF
  11032. if ac_fn_cxx_try_compile "$LINENO"; then :
  11033. ac_cv_have_decl_getc_unlocked=yes
  11034. else
  11035. ac_cv_have_decl_getc_unlocked=no
  11036. fi
  11037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11038. fi
  11039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
  11040. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  11041. if test $ac_cv_have_decl_getc_unlocked = yes; then
  11042. gt_value=1
  11043. else
  11044. gt_value=0
  11045. fi
  11046. cat >>confdefs.h <<_ACEOF
  11047. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  11048. _ACEOF
  11049. case $gt_cv_func_printf_posix in
  11050. *yes) HAVE_POSIX_PRINTF=1 ;;
  11051. *) HAVE_POSIX_PRINTF=0 ;;
  11052. esac
  11053. if test "$ac_cv_func_asprintf" = yes; then
  11054. HAVE_ASPRINTF=1
  11055. else
  11056. HAVE_ASPRINTF=0
  11057. fi
  11058. if test "$ac_cv_func_snprintf" = yes; then
  11059. HAVE_SNPRINTF=1
  11060. else
  11061. HAVE_SNPRINTF=0
  11062. fi
  11063. if test "$ac_cv_func_wprintf" = yes; then
  11064. HAVE_WPRINTF=1
  11065. else
  11066. HAVE_WPRINTF=0
  11067. fi
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  11069. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  11070. if test "${am_cv_langinfo_codeset+set}" = set; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11074. /* end confdefs.h. */
  11075. #include <langinfo.h>
  11076. int
  11077. main ()
  11078. {
  11079. char* cs = nl_langinfo(CODESET); return !cs;
  11080. ;
  11081. return 0;
  11082. }
  11083. _ACEOF
  11084. if ac_fn_cxx_try_link "$LINENO"; then :
  11085. am_cv_langinfo_codeset=yes
  11086. else
  11087. am_cv_langinfo_codeset=no
  11088. fi
  11089. rm -f core conftest.err conftest.$ac_objext \
  11090. conftest$ac_exeext conftest.$ac_ext
  11091. fi
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  11093. $as_echo "$am_cv_langinfo_codeset" >&6; }
  11094. if test $am_cv_langinfo_codeset = yes; then
  11095. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  11096. fi
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11098. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11099. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
  11100. $as_echo_n "(cached) " >&6
  11101. else
  11102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11103. /* end confdefs.h. */
  11104. #include <locale.h>
  11105. int
  11106. main ()
  11107. {
  11108. return LC_MESSAGES
  11109. ;
  11110. return 0;
  11111. }
  11112. _ACEOF
  11113. if ac_fn_cxx_try_link "$LINENO"; then :
  11114. gt_cv_val_LC_MESSAGES=yes
  11115. else
  11116. gt_cv_val_LC_MESSAGES=no
  11117. fi
  11118. rm -f core conftest.err conftest.$ac_objext \
  11119. conftest$ac_exeext conftest.$ac_ext
  11120. fi
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
  11122. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  11123. if test $gt_cv_val_LC_MESSAGES = yes; then
  11124. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11125. fi
  11126. if test "$enable_shared" = yes; then
  11127. case "$host_os" in
  11128. mingw* | cygwin*) is_woe32dll=yes ;;
  11129. *) is_woe32dll=no ;;
  11130. esac
  11131. else
  11132. is_woe32dll=no
  11133. fi
  11134. WOE32DLL=$is_woe32dll
  11135. case "$host_os" in
  11136. mingw* | cygwin*) is_woe32=yes ;;
  11137. *) is_woe32=no ;;
  11138. esac
  11139. WOE32=$is_woe32
  11140. if test $WOE32 = yes; then
  11141. if test -n "$ac_tool_prefix"; then
  11142. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11143. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11145. $as_echo_n "checking for $ac_word... " >&6; }
  11146. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  11147. $as_echo_n "(cached) " >&6
  11148. else
  11149. if test -n "$WINDRES"; then
  11150. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  11151. else
  11152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11153. for as_dir in $PATH
  11154. do
  11155. IFS=$as_save_IFS
  11156. test -z "$as_dir" && as_dir=.
  11157. for ac_exec_ext in '' $ac_executable_extensions; do
  11158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11159. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  11160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11161. break 2
  11162. fi
  11163. done
  11164. done
  11165. IFS=$as_save_IFS
  11166. fi
  11167. fi
  11168. WINDRES=$ac_cv_prog_WINDRES
  11169. if test -n "$WINDRES"; then
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  11171. $as_echo "$WINDRES" >&6; }
  11172. else
  11173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11174. $as_echo "no" >&6; }
  11175. fi
  11176. fi
  11177. if test -z "$ac_cv_prog_WINDRES"; then
  11178. ac_ct_WINDRES=$WINDRES
  11179. # Extract the first word of "windres", so it can be a program name with args.
  11180. set dummy windres; ac_word=$2
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11182. $as_echo_n "checking for $ac_word... " >&6; }
  11183. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  11184. $as_echo_n "(cached) " >&6
  11185. else
  11186. if test -n "$ac_ct_WINDRES"; then
  11187. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  11188. else
  11189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11190. for as_dir in $PATH
  11191. do
  11192. IFS=$as_save_IFS
  11193. test -z "$as_dir" && as_dir=.
  11194. for ac_exec_ext in '' $ac_executable_extensions; do
  11195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11196. ac_cv_prog_ac_ct_WINDRES="windres"
  11197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11198. break 2
  11199. fi
  11200. done
  11201. done
  11202. IFS=$as_save_IFS
  11203. fi
  11204. fi
  11205. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  11206. if test -n "$ac_ct_WINDRES"; then
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  11208. $as_echo "$ac_ct_WINDRES" >&6; }
  11209. else
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11211. $as_echo "no" >&6; }
  11212. fi
  11213. if test "x$ac_ct_WINDRES" = x; then
  11214. WINDRES=""
  11215. else
  11216. case $cross_compiling:$ac_tool_warned in
  11217. yes:)
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11220. ac_tool_warned=yes ;;
  11221. esac
  11222. WINDRES=$ac_ct_WINDRES
  11223. fi
  11224. else
  11225. WINDRES="$ac_cv_prog_WINDRES"
  11226. fi
  11227. fi
  11228. case "$host_os" in
  11229. hpux*) LTLIBC="" ;;
  11230. *) LTLIBC="-lc" ;;
  11231. esac
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
  11233. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  11234. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
  11235. $as_echo_n "(cached) " >&6
  11236. else
  11237. gt_save_LIBS="$LIBS"
  11238. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11240. /* end confdefs.h. */
  11241. #include <CoreFoundation/CFPreferences.h>
  11242. int
  11243. main ()
  11244. {
  11245. CFPreferencesCopyAppValue(NULL, NULL)
  11246. ;
  11247. return 0;
  11248. }
  11249. _ACEOF
  11250. if ac_fn_cxx_try_link "$LINENO"; then :
  11251. gt_cv_func_CFPreferencesCopyAppValue=yes
  11252. else
  11253. gt_cv_func_CFPreferencesCopyAppValue=no
  11254. fi
  11255. rm -f core conftest.err conftest.$ac_objext \
  11256. conftest$ac_exeext conftest.$ac_ext
  11257. LIBS="$gt_save_LIBS"
  11258. fi
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  11260. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  11261. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  11262. $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
  11263. fi
  11264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
  11265. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  11266. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
  11267. $as_echo_n "(cached) " >&6
  11268. else
  11269. gt_save_LIBS="$LIBS"
  11270. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  11271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11272. /* end confdefs.h. */
  11273. #include <CoreFoundation/CFLocale.h>
  11274. int
  11275. main ()
  11276. {
  11277. CFLocaleCopyCurrent();
  11278. ;
  11279. return 0;
  11280. }
  11281. _ACEOF
  11282. if ac_fn_cxx_try_link "$LINENO"; then :
  11283. gt_cv_func_CFLocaleCopyCurrent=yes
  11284. else
  11285. gt_cv_func_CFLocaleCopyCurrent=no
  11286. fi
  11287. rm -f core conftest.err conftest.$ac_objext \
  11288. conftest$ac_exeext conftest.$ac_ext
  11289. LIBS="$gt_save_LIBS"
  11290. fi
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  11292. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  11293. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11294. $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
  11295. fi
  11296. INTL_MACOSX_LIBS=
  11297. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  11298. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  11299. fi
  11300. BUILD_INCLUDED_LIBINTL=no
  11301. USE_INCLUDED_LIBINTL=no
  11302. LIBINTL=
  11303. LTLIBINTL=
  11304. POSUB=
  11305. case " $gt_needs " in
  11306. *" need-formatstring-macros "*) gt_api_version=3 ;;
  11307. *" need-ngettext "*) gt_api_version=2 ;;
  11308. *) gt_api_version=1 ;;
  11309. esac
  11310. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  11311. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  11312. if test "$USE_NLS" = "yes"; then
  11313. gt_use_preinstalled_gnugettext=no
  11314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
  11315. $as_echo_n "checking whether included gettext is requested... " >&6; }
  11316. # Check whether --with-included-gettext was given.
  11317. if test "${with_included_gettext+set}" = set; then :
  11318. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  11319. else
  11320. nls_cv_force_use_gnu_gettext=no
  11321. fi
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
  11323. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  11324. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  11325. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  11326. if test $gt_api_version -ge 3; then
  11327. gt_revision_test_code='
  11328. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  11329. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  11330. #endif
  11331. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  11332. '
  11333. else
  11334. gt_revision_test_code=
  11335. fi
  11336. if test $gt_api_version -ge 2; then
  11337. gt_expression_test_code=' + * ngettext ("", "", 0)'
  11338. else
  11339. gt_expression_test_code=
  11340. fi
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
  11342. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  11343. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
  11344. $as_echo_n "(cached) " >&6
  11345. else
  11346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11347. /* end confdefs.h. */
  11348. #include <libintl.h>
  11349. $gt_revision_test_code
  11350. extern int _nl_msg_cat_cntr;
  11351. extern int *_nl_domain_bindings;
  11352. int
  11353. main ()
  11354. {
  11355. bindtextdomain ("", "");
  11356. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  11357. ;
  11358. return 0;
  11359. }
  11360. _ACEOF
  11361. if ac_fn_cxx_try_link "$LINENO"; then :
  11362. eval "$gt_func_gnugettext_libc=yes"
  11363. else
  11364. eval "$gt_func_gnugettext_libc=no"
  11365. fi
  11366. rm -f core conftest.err conftest.$ac_objext \
  11367. conftest$ac_exeext conftest.$ac_ext
  11368. fi
  11369. eval ac_res=\$$gt_func_gnugettext_libc
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11371. $as_echo "$ac_res" >&6; }
  11372. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  11373. use_additional=yes
  11374. acl_save_prefix="$prefix"
  11375. prefix="$acl_final_prefix"
  11376. acl_save_exec_prefix="$exec_prefix"
  11377. exec_prefix="$acl_final_exec_prefix"
  11378. eval additional_includedir=\"$includedir\"
  11379. eval additional_libdir=\"$libdir\"
  11380. exec_prefix="$acl_save_exec_prefix"
  11381. prefix="$acl_save_prefix"
  11382. # Check whether --with-libintl-prefix was given.
  11383. if test "${with_libintl_prefix+set}" = set; then :
  11384. withval=$with_libintl_prefix;
  11385. if test "X$withval" = "Xno"; then
  11386. use_additional=no
  11387. else
  11388. if test "X$withval" = "X"; then
  11389. acl_save_prefix="$prefix"
  11390. prefix="$acl_final_prefix"
  11391. acl_save_exec_prefix="$exec_prefix"
  11392. exec_prefix="$acl_final_exec_prefix"
  11393. eval additional_includedir=\"$includedir\"
  11394. eval additional_libdir=\"$libdir\"
  11395. exec_prefix="$acl_save_exec_prefix"
  11396. prefix="$acl_save_prefix"
  11397. else
  11398. additional_includedir="$withval/include"
  11399. additional_libdir="$withval/$acl_libdirstem"
  11400. fi
  11401. fi
  11402. fi
  11403. LIBINTL=
  11404. LTLIBINTL=
  11405. INCINTL=
  11406. LIBINTL_PREFIX=
  11407. rpathdirs=
  11408. ltrpathdirs=
  11409. names_already_handled=
  11410. names_next_round='intl '
  11411. while test -n "$names_next_round"; do
  11412. names_this_round="$names_next_round"
  11413. names_next_round=
  11414. for name in $names_this_round; do
  11415. already_handled=
  11416. for n in $names_already_handled; do
  11417. if test "$n" = "$name"; then
  11418. already_handled=yes
  11419. break
  11420. fi
  11421. done
  11422. if test -z "$already_handled"; then
  11423. names_already_handled="$names_already_handled $name"
  11424. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11425. eval value=\"\$HAVE_LIB$uppername\"
  11426. if test -n "$value"; then
  11427. if test "$value" = yes; then
  11428. eval value=\"\$LIB$uppername\"
  11429. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  11430. eval value=\"\$LTLIB$uppername\"
  11431. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  11432. else
  11433. :
  11434. fi
  11435. else
  11436. found_dir=
  11437. found_la=
  11438. found_so=
  11439. found_a=
  11440. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11441. if test -n "$acl_shlibext"; then
  11442. shrext=".$acl_shlibext" # typically: shrext=.so
  11443. else
  11444. shrext=
  11445. fi
  11446. if test $use_additional = yes; then
  11447. dir="$additional_libdir"
  11448. if test -n "$acl_shlibext"; then
  11449. if test -f "$dir/$libname$shrext"; then
  11450. found_dir="$dir"
  11451. found_so="$dir/$libname$shrext"
  11452. else
  11453. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11454. ver=`(cd "$dir" && \
  11455. for f in "$libname$shrext".*; do echo "$f"; done \
  11456. | sed -e "s,^$libname$shrext\\\\.,," \
  11457. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11458. | sed 1q ) 2>/dev/null`
  11459. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11460. found_dir="$dir"
  11461. found_so="$dir/$libname$shrext.$ver"
  11462. fi
  11463. else
  11464. eval library_names=\"$acl_library_names_spec\"
  11465. for f in $library_names; do
  11466. if test -f "$dir/$f"; then
  11467. found_dir="$dir"
  11468. found_so="$dir/$f"
  11469. break
  11470. fi
  11471. done
  11472. fi
  11473. fi
  11474. fi
  11475. if test "X$found_dir" = "X"; then
  11476. if test -f "$dir/$libname.$acl_libext"; then
  11477. found_dir="$dir"
  11478. found_a="$dir/$libname.$acl_libext"
  11479. fi
  11480. fi
  11481. if test "X$found_dir" != "X"; then
  11482. if test -f "$dir/$libname.la"; then
  11483. found_la="$dir/$libname.la"
  11484. fi
  11485. fi
  11486. fi
  11487. if test "X$found_dir" = "X"; then
  11488. for x in $LDFLAGS $LTLIBINTL; do
  11489. acl_save_prefix="$prefix"
  11490. prefix="$acl_final_prefix"
  11491. acl_save_exec_prefix="$exec_prefix"
  11492. exec_prefix="$acl_final_exec_prefix"
  11493. eval x=\"$x\"
  11494. exec_prefix="$acl_save_exec_prefix"
  11495. prefix="$acl_save_prefix"
  11496. case "$x" in
  11497. -L*)
  11498. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11499. if test -n "$acl_shlibext"; then
  11500. if test -f "$dir/$libname$shrext"; then
  11501. found_dir="$dir"
  11502. found_so="$dir/$libname$shrext"
  11503. else
  11504. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11505. ver=`(cd "$dir" && \
  11506. for f in "$libname$shrext".*; do echo "$f"; done \
  11507. | sed -e "s,^$libname$shrext\\\\.,," \
  11508. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11509. | sed 1q ) 2>/dev/null`
  11510. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11511. found_dir="$dir"
  11512. found_so="$dir/$libname$shrext.$ver"
  11513. fi
  11514. else
  11515. eval library_names=\"$acl_library_names_spec\"
  11516. for f in $library_names; do
  11517. if test -f "$dir/$f"; then
  11518. found_dir="$dir"
  11519. found_so="$dir/$f"
  11520. break
  11521. fi
  11522. done
  11523. fi
  11524. fi
  11525. fi
  11526. if test "X$found_dir" = "X"; then
  11527. if test -f "$dir/$libname.$acl_libext"; then
  11528. found_dir="$dir"
  11529. found_a="$dir/$libname.$acl_libext"
  11530. fi
  11531. fi
  11532. if test "X$found_dir" != "X"; then
  11533. if test -f "$dir/$libname.la"; then
  11534. found_la="$dir/$libname.la"
  11535. fi
  11536. fi
  11537. ;;
  11538. esac
  11539. if test "X$found_dir" != "X"; then
  11540. break
  11541. fi
  11542. done
  11543. fi
  11544. if test "X$found_dir" != "X"; then
  11545. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  11546. if test "X$found_so" != "X"; then
  11547. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11548. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11549. else
  11550. haveit=
  11551. for x in $ltrpathdirs; do
  11552. if test "X$x" = "X$found_dir"; then
  11553. haveit=yes
  11554. break
  11555. fi
  11556. done
  11557. if test -z "$haveit"; then
  11558. ltrpathdirs="$ltrpathdirs $found_dir"
  11559. fi
  11560. if test "$acl_hardcode_direct" = yes; then
  11561. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11562. else
  11563. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11564. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11565. haveit=
  11566. for x in $rpathdirs; do
  11567. if test "X$x" = "X$found_dir"; then
  11568. haveit=yes
  11569. break
  11570. fi
  11571. done
  11572. if test -z "$haveit"; then
  11573. rpathdirs="$rpathdirs $found_dir"
  11574. fi
  11575. else
  11576. haveit=
  11577. for x in $LDFLAGS $LIBINTL; do
  11578. acl_save_prefix="$prefix"
  11579. prefix="$acl_final_prefix"
  11580. acl_save_exec_prefix="$exec_prefix"
  11581. exec_prefix="$acl_final_exec_prefix"
  11582. eval x=\"$x\"
  11583. exec_prefix="$acl_save_exec_prefix"
  11584. prefix="$acl_save_prefix"
  11585. if test "X$x" = "X-L$found_dir"; then
  11586. haveit=yes
  11587. break
  11588. fi
  11589. done
  11590. if test -z "$haveit"; then
  11591. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  11592. fi
  11593. if test "$acl_hardcode_minus_L" != no; then
  11594. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  11595. else
  11596. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11597. fi
  11598. fi
  11599. fi
  11600. fi
  11601. else
  11602. if test "X$found_a" != "X"; then
  11603. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  11604. else
  11605. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  11606. fi
  11607. fi
  11608. additional_includedir=
  11609. case "$found_dir" in
  11610. */$acl_libdirstem | */$acl_libdirstem/)
  11611. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11612. LIBINTL_PREFIX="$basedir"
  11613. additional_includedir="$basedir/include"
  11614. ;;
  11615. esac
  11616. if test "X$additional_includedir" != "X"; then
  11617. if test "X$additional_includedir" != "X/usr/include"; then
  11618. haveit=
  11619. if test "X$additional_includedir" = "X/usr/local/include"; then
  11620. if test -n "$GCC"; then
  11621. case $host_os in
  11622. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11623. esac
  11624. fi
  11625. fi
  11626. if test -z "$haveit"; then
  11627. for x in $CPPFLAGS $INCINTL; do
  11628. acl_save_prefix="$prefix"
  11629. prefix="$acl_final_prefix"
  11630. acl_save_exec_prefix="$exec_prefix"
  11631. exec_prefix="$acl_final_exec_prefix"
  11632. eval x=\"$x\"
  11633. exec_prefix="$acl_save_exec_prefix"
  11634. prefix="$acl_save_prefix"
  11635. if test "X$x" = "X-I$additional_includedir"; then
  11636. haveit=yes
  11637. break
  11638. fi
  11639. done
  11640. if test -z "$haveit"; then
  11641. if test -d "$additional_includedir"; then
  11642. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  11643. fi
  11644. fi
  11645. fi
  11646. fi
  11647. fi
  11648. if test -n "$found_la"; then
  11649. save_libdir="$libdir"
  11650. case "$found_la" in
  11651. */* | *\\*) . "$found_la" ;;
  11652. *) . "./$found_la" ;;
  11653. esac
  11654. libdir="$save_libdir"
  11655. for dep in $dependency_libs; do
  11656. case "$dep" in
  11657. -L*)
  11658. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11659. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11660. haveit=
  11661. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11662. if test -n "$GCC"; then
  11663. case $host_os in
  11664. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11665. esac
  11666. fi
  11667. fi
  11668. if test -z "$haveit"; then
  11669. haveit=
  11670. for x in $LDFLAGS $LIBINTL; do
  11671. acl_save_prefix="$prefix"
  11672. prefix="$acl_final_prefix"
  11673. acl_save_exec_prefix="$exec_prefix"
  11674. exec_prefix="$acl_final_exec_prefix"
  11675. eval x=\"$x\"
  11676. exec_prefix="$acl_save_exec_prefix"
  11677. prefix="$acl_save_prefix"
  11678. if test "X$x" = "X-L$additional_libdir"; then
  11679. haveit=yes
  11680. break
  11681. fi
  11682. done
  11683. if test -z "$haveit"; then
  11684. if test -d "$additional_libdir"; then
  11685. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  11686. fi
  11687. fi
  11688. haveit=
  11689. for x in $LDFLAGS $LTLIBINTL; do
  11690. acl_save_prefix="$prefix"
  11691. prefix="$acl_final_prefix"
  11692. acl_save_exec_prefix="$exec_prefix"
  11693. exec_prefix="$acl_final_exec_prefix"
  11694. eval x=\"$x\"
  11695. exec_prefix="$acl_save_exec_prefix"
  11696. prefix="$acl_save_prefix"
  11697. if test "X$x" = "X-L$additional_libdir"; then
  11698. haveit=yes
  11699. break
  11700. fi
  11701. done
  11702. if test -z "$haveit"; then
  11703. if test -d "$additional_libdir"; then
  11704. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  11705. fi
  11706. fi
  11707. fi
  11708. fi
  11709. ;;
  11710. -R*)
  11711. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11712. if test "$enable_rpath" != no; then
  11713. haveit=
  11714. for x in $rpathdirs; do
  11715. if test "X$x" = "X$dir"; then
  11716. haveit=yes
  11717. break
  11718. fi
  11719. done
  11720. if test -z "$haveit"; then
  11721. rpathdirs="$rpathdirs $dir"
  11722. fi
  11723. haveit=
  11724. for x in $ltrpathdirs; do
  11725. if test "X$x" = "X$dir"; then
  11726. haveit=yes
  11727. break
  11728. fi
  11729. done
  11730. if test -z "$haveit"; then
  11731. ltrpathdirs="$ltrpathdirs $dir"
  11732. fi
  11733. fi
  11734. ;;
  11735. -l*)
  11736. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11737. ;;
  11738. *.la)
  11739. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11740. ;;
  11741. *)
  11742. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  11743. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  11744. ;;
  11745. esac
  11746. done
  11747. fi
  11748. else
  11749. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  11750. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  11751. fi
  11752. fi
  11753. fi
  11754. done
  11755. done
  11756. if test "X$rpathdirs" != "X"; then
  11757. if test -n "$acl_hardcode_libdir_separator"; then
  11758. alldirs=
  11759. for found_dir in $rpathdirs; do
  11760. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11761. done
  11762. acl_save_libdir="$libdir"
  11763. libdir="$alldirs"
  11764. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11765. libdir="$acl_save_libdir"
  11766. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11767. else
  11768. for found_dir in $rpathdirs; do
  11769. acl_save_libdir="$libdir"
  11770. libdir="$found_dir"
  11771. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11772. libdir="$acl_save_libdir"
  11773. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  11774. done
  11775. fi
  11776. fi
  11777. if test "X$ltrpathdirs" != "X"; then
  11778. for found_dir in $ltrpathdirs; do
  11779. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  11780. done
  11781. fi
  11782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
  11783. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  11784. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
  11785. $as_echo_n "(cached) " >&6
  11786. else
  11787. gt_save_CPPFLAGS="$CPPFLAGS"
  11788. CPPFLAGS="$CPPFLAGS $INCINTL"
  11789. gt_save_LIBS="$LIBS"
  11790. LIBS="$LIBS $LIBINTL"
  11791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11792. /* end confdefs.h. */
  11793. #include <libintl.h>
  11794. $gt_revision_test_code
  11795. extern int _nl_msg_cat_cntr;
  11796. extern
  11797. #ifdef __cplusplus
  11798. "C"
  11799. #endif
  11800. const char *_nl_expand_alias (const char *);
  11801. int
  11802. main ()
  11803. {
  11804. bindtextdomain ("", "");
  11805. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11806. ;
  11807. return 0;
  11808. }
  11809. _ACEOF
  11810. if ac_fn_cxx_try_link "$LINENO"; then :
  11811. eval "$gt_func_gnugettext_libintl=yes"
  11812. else
  11813. eval "$gt_func_gnugettext_libintl=no"
  11814. fi
  11815. rm -f core conftest.err conftest.$ac_objext \
  11816. conftest$ac_exeext conftest.$ac_ext
  11817. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  11818. LIBS="$LIBS $LIBICONV"
  11819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11820. /* end confdefs.h. */
  11821. #include <libintl.h>
  11822. $gt_revision_test_code
  11823. extern int _nl_msg_cat_cntr;
  11824. extern
  11825. #ifdef __cplusplus
  11826. "C"
  11827. #endif
  11828. const char *_nl_expand_alias (const char *);
  11829. int
  11830. main ()
  11831. {
  11832. bindtextdomain ("", "");
  11833. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  11834. ;
  11835. return 0;
  11836. }
  11837. _ACEOF
  11838. if ac_fn_cxx_try_link "$LINENO"; then :
  11839. LIBINTL="$LIBINTL $LIBICONV"
  11840. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  11841. eval "$gt_func_gnugettext_libintl=yes"
  11842. fi
  11843. rm -f core conftest.err conftest.$ac_objext \
  11844. conftest$ac_exeext conftest.$ac_ext
  11845. fi
  11846. CPPFLAGS="$gt_save_CPPFLAGS"
  11847. LIBS="$gt_save_LIBS"
  11848. fi
  11849. eval ac_res=\$$gt_func_gnugettext_libintl
  11850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11851. $as_echo "$ac_res" >&6; }
  11852. fi
  11853. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  11854. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  11855. && test "$PACKAGE" != gettext-runtime \
  11856. && test "$PACKAGE" != gettext-tools; }; then
  11857. gt_use_preinstalled_gnugettext=yes
  11858. else
  11859. LIBINTL=
  11860. LTLIBINTL=
  11861. INCINTL=
  11862. fi
  11863. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  11864. nls_cv_use_gnu_gettext=yes
  11865. fi
  11866. fi
  11867. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  11868. BUILD_INCLUDED_LIBINTL=yes
  11869. USE_INCLUDED_LIBINTL=yes
  11870. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  11871. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  11872. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  11873. fi
  11874. CATOBJEXT=
  11875. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11876. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11877. CATOBJEXT=.gmo
  11878. fi
  11879. if test -n "$INTL_MACOSX_LIBS"; then
  11880. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11881. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11882. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  11883. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  11884. fi
  11885. fi
  11886. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  11887. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  11888. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11889. else
  11890. USE_NLS=no
  11891. fi
  11892. fi
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
  11894. $as_echo_n "checking whether to use NLS... " >&6; }
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11896. $as_echo "$USE_NLS" >&6; }
  11897. if test "$USE_NLS" = "yes"; then
  11898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
  11899. $as_echo_n "checking where the gettext function comes from... " >&6; }
  11900. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11901. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11902. gt_source="external libintl"
  11903. else
  11904. gt_source="libc"
  11905. fi
  11906. else
  11907. gt_source="included intl directory"
  11908. fi
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
  11910. $as_echo "$gt_source" >&6; }
  11911. fi
  11912. if test "$USE_NLS" = "yes"; then
  11913. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  11914. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  11915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
  11916. $as_echo_n "checking how to link with libintl... " >&6; }
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
  11918. $as_echo "$LIBINTL" >&6; }
  11919. for element in $INCINTL; do
  11920. haveit=
  11921. for x in $CPPFLAGS; do
  11922. acl_save_prefix="$prefix"
  11923. prefix="$acl_final_prefix"
  11924. acl_save_exec_prefix="$exec_prefix"
  11925. exec_prefix="$acl_final_exec_prefix"
  11926. eval x=\"$x\"
  11927. exec_prefix="$acl_save_exec_prefix"
  11928. prefix="$acl_save_prefix"
  11929. if test "X$x" = "X$element"; then
  11930. haveit=yes
  11931. break
  11932. fi
  11933. done
  11934. if test -z "$haveit"; then
  11935. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11936. fi
  11937. done
  11938. fi
  11939. $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
  11940. $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
  11941. fi
  11942. POSUB=po
  11943. fi
  11944. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  11945. BUILD_INCLUDED_LIBINTL=yes
  11946. fi
  11947. nls_cv_header_intl=
  11948. nls_cv_header_libgt=
  11949. DATADIRNAME=share
  11950. INSTOBJEXT=.mo
  11951. GENCAT=gencat
  11952. INTLOBJS=
  11953. if test "$USE_INCLUDED_LIBINTL" = yes; then
  11954. INTLOBJS="\$(GETTOBJS)"
  11955. fi
  11956. INTL_LIBTOOL_SUFFIX_PREFIX=
  11957. INTLLIBS="$LIBINTL"
  11958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11959. $as_echo_n "checking for error_at_line... " >&6; }
  11960. if test "${ac_cv_lib_error_at_line+set}" = set; then :
  11961. $as_echo_n "(cached) " >&6
  11962. else
  11963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11964. /* end confdefs.h. */
  11965. #include <error.h>
  11966. int
  11967. main ()
  11968. {
  11969. error_at_line (0, 0, "", 0, "an error occurred");
  11970. ;
  11971. return 0;
  11972. }
  11973. _ACEOF
  11974. if ac_fn_cxx_try_link "$LINENO"; then :
  11975. ac_cv_lib_error_at_line=yes
  11976. else
  11977. ac_cv_lib_error_at_line=no
  11978. fi
  11979. rm -f core conftest.err conftest.$ac_objext \
  11980. conftest$ac_exeext conftest.$ac_ext
  11981. fi
  11982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  11983. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  11984. if test $ac_cv_lib_error_at_line = no; then
  11985. case " $LIBOBJS " in
  11986. *" error.$ac_objext "* ) ;;
  11987. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  11988. ;;
  11989. esac
  11990. fi
  11991. if test $ac_cv_c_compiler_gnu = yes; then
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  11993. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  11994. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  11995. $as_echo_n "(cached) " >&6
  11996. else
  11997. ac_pattern="Autoconf.*'x'"
  11998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11999. /* end confdefs.h. */
  12000. #include <sgtty.h>
  12001. Autoconf TIOCGETP
  12002. _ACEOF
  12003. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12004. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12005. ac_cv_prog_gcc_traditional=yes
  12006. else
  12007. ac_cv_prog_gcc_traditional=no
  12008. fi
  12009. rm -f conftest*
  12010. if test $ac_cv_prog_gcc_traditional = no; then
  12011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12012. /* end confdefs.h. */
  12013. #include <termio.h>
  12014. Autoconf TCGETA
  12015. _ACEOF
  12016. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12017. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12018. ac_cv_prog_gcc_traditional=yes
  12019. fi
  12020. rm -f conftest*
  12021. fi
  12022. fi
  12023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12024. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12025. if test $ac_cv_prog_gcc_traditional = yes; then
  12026. CC="$CC -traditional"
  12027. fi
  12028. fi
  12029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12030. $as_echo_n "checking for working memcmp... " >&6; }
  12031. if test "${ac_cv_func_memcmp_working+set}" = set; then :
  12032. $as_echo_n "(cached) " >&6
  12033. else
  12034. if test "$cross_compiling" = yes; then :
  12035. ac_cv_func_memcmp_working=no
  12036. else
  12037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12038. /* end confdefs.h. */
  12039. $ac_includes_default
  12040. int
  12041. main ()
  12042. {
  12043. /* Some versions of memcmp are not 8-bit clean. */
  12044. char c0 = '\100', c1 = '\200', c2 = '\201';
  12045. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12046. return 1;
  12047. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12048. or more and with at least one buffer not starting on a 4-byte boundary.
  12049. William Lewis provided this test program. */
  12050. {
  12051. char foo[21];
  12052. char bar[21];
  12053. int i;
  12054. for (i = 0; i < 4; i++)
  12055. {
  12056. char *a = foo + i;
  12057. char *b = bar + i;
  12058. strcpy (a, "--------01111111");
  12059. strcpy (b, "--------10000000");
  12060. if (memcmp (a, b, 16) >= 0)
  12061. return 1;
  12062. }
  12063. return 0;
  12064. }
  12065. ;
  12066. return 0;
  12067. }
  12068. _ACEOF
  12069. if ac_fn_cxx_try_run "$LINENO"; then :
  12070. ac_cv_func_memcmp_working=yes
  12071. else
  12072. ac_cv_func_memcmp_working=no
  12073. fi
  12074. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12075. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12076. fi
  12077. fi
  12078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12079. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12080. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12081. *" memcmp.$ac_objext "* ) ;;
  12082. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12083. ;;
  12084. esac
  12085. for ac_func in $ac_func_list
  12086. do :
  12087. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12088. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12089. eval as_val=\$$as_ac_var
  12090. if test "x$as_val" = x""yes; then :
  12091. cat >>confdefs.h <<_ACEOF
  12092. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12093. _ACEOF
  12094. fi
  12095. done
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
  12097. $as_echo_n "checking for working mktime... " >&6; }
  12098. if test "${ac_cv_func_working_mktime+set}" = set; then :
  12099. $as_echo_n "(cached) " >&6
  12100. else
  12101. if test "$cross_compiling" = yes; then :
  12102. ac_cv_func_working_mktime=no
  12103. else
  12104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12105. /* end confdefs.h. */
  12106. /* Test program from Paul Eggert and Tony Leneis. */
  12107. #ifdef TIME_WITH_SYS_TIME
  12108. # include <sys/time.h>
  12109. # include <time.h>
  12110. #else
  12111. # ifdef HAVE_SYS_TIME_H
  12112. # include <sys/time.h>
  12113. # else
  12114. # include <time.h>
  12115. # endif
  12116. #endif
  12117. #include <limits.h>
  12118. #include <stdlib.h>
  12119. #ifdef HAVE_UNISTD_H
  12120. # include <unistd.h>
  12121. #endif
  12122. #ifndef HAVE_ALARM
  12123. # define alarm(X) /* empty */
  12124. #endif
  12125. /* Work around redefinition to rpl_putenv by other config tests. */
  12126. #undef putenv
  12127. static time_t time_t_max;
  12128. static time_t time_t_min;
  12129. /* Values we'll use to set the TZ environment variable. */
  12130. static char *tz_strings[] = {
  12131. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  12132. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  12133. };
  12134. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  12135. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  12136. Based on a problem report from Andreas Jaeger. */
  12137. static int
  12138. spring_forward_gap ()
  12139. {
  12140. /* glibc (up to about 1998-10-07) failed this test. */
  12141. struct tm tm;
  12142. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12143. instead of "TZ=America/Vancouver" in order to detect the bug even
  12144. on systems that don't support the Olson extension, or don't have the
  12145. full zoneinfo tables installed. */
  12146. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12147. tm.tm_year = 98;
  12148. tm.tm_mon = 3;
  12149. tm.tm_mday = 5;
  12150. tm.tm_hour = 2;
  12151. tm.tm_min = 0;
  12152. tm.tm_sec = 0;
  12153. tm.tm_isdst = -1;
  12154. return mktime (&tm) != (time_t) -1;
  12155. }
  12156. static int
  12157. mktime_test1 (now)
  12158. time_t now;
  12159. {
  12160. struct tm *lt;
  12161. return ! (lt = localtime (&now)) || mktime (lt) == now;
  12162. }
  12163. static int
  12164. mktime_test (now)
  12165. time_t now;
  12166. {
  12167. return (mktime_test1 (now)
  12168. && mktime_test1 ((time_t) (time_t_max - now))
  12169. && mktime_test1 ((time_t) (time_t_min + now)));
  12170. }
  12171. static int
  12172. irix_6_4_bug ()
  12173. {
  12174. /* Based on code from Ariel Faigon. */
  12175. struct tm tm;
  12176. tm.tm_year = 96;
  12177. tm.tm_mon = 3;
  12178. tm.tm_mday = 0;
  12179. tm.tm_hour = 0;
  12180. tm.tm_min = 0;
  12181. tm.tm_sec = 0;
  12182. tm.tm_isdst = -1;
  12183. mktime (&tm);
  12184. return tm.tm_mon == 2 && tm.tm_mday == 31;
  12185. }
  12186. static int
  12187. bigtime_test (j)
  12188. int j;
  12189. {
  12190. struct tm tm;
  12191. time_t now;
  12192. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  12193. now = mktime (&tm);
  12194. if (now != (time_t) -1)
  12195. {
  12196. struct tm *lt = localtime (&now);
  12197. if (! (lt
  12198. && lt->tm_year == tm.tm_year
  12199. && lt->tm_mon == tm.tm_mon
  12200. && lt->tm_mday == tm.tm_mday
  12201. && lt->tm_hour == tm.tm_hour
  12202. && lt->tm_min == tm.tm_min
  12203. && lt->tm_sec == tm.tm_sec
  12204. && lt->tm_yday == tm.tm_yday
  12205. && lt->tm_wday == tm.tm_wday
  12206. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  12207. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  12208. return 0;
  12209. }
  12210. return 1;
  12211. }
  12212. static int
  12213. year_2050_test ()
  12214. {
  12215. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  12216. ignoring leap seconds. */
  12217. unsigned long int answer = 2527315200UL;
  12218. struct tm tm;
  12219. time_t t;
  12220. tm.tm_year = 2050 - 1900;
  12221. tm.tm_mon = 2 - 1;
  12222. tm.tm_mday = 1;
  12223. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  12224. tm.tm_isdst = -1;
  12225. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  12226. instead of "TZ=America/Vancouver" in order to detect the bug even
  12227. on systems that don't support the Olson extension, or don't have the
  12228. full zoneinfo tables installed. */
  12229. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  12230. t = mktime (&tm);
  12231. /* Check that the result is either a failure, or close enough
  12232. to the correct answer that we can assume the discrepancy is
  12233. due to leap seconds. */
  12234. return (t == (time_t) -1
  12235. || (0 < t && answer - 120 <= t && t <= answer + 120));
  12236. }
  12237. int
  12238. main ()
  12239. {
  12240. time_t t, delta;
  12241. int i, j;
  12242. /* This test makes some buggy mktime implementations loop.
  12243. Give up after 60 seconds; a mktime slower than that
  12244. isn't worth using anyway. */
  12245. alarm (60);
  12246. for (;;)
  12247. {
  12248. t = (time_t_max << 1) + 1;
  12249. if (t <= time_t_max)
  12250. break;
  12251. time_t_max = t;
  12252. }
  12253. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  12254. delta = time_t_max / 997; /* a suitable prime number */
  12255. for (i = 0; i < N_STRINGS; i++)
  12256. {
  12257. if (tz_strings[i])
  12258. putenv (tz_strings[i]);
  12259. for (t = 0; t <= time_t_max - delta; t += delta)
  12260. if (! mktime_test (t))
  12261. return 1;
  12262. if (! (mktime_test ((time_t) 1)
  12263. && mktime_test ((time_t) (60 * 60))
  12264. && mktime_test ((time_t) (60 * 60 * 24))))
  12265. return 1;
  12266. for (j = 1; ; j <<= 1)
  12267. if (! bigtime_test (j))
  12268. return 1;
  12269. else if (INT_MAX / 2 < j)
  12270. break;
  12271. if (! bigtime_test (INT_MAX))
  12272. return 1;
  12273. }
  12274. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  12275. }
  12276. _ACEOF
  12277. if ac_fn_cxx_try_run "$LINENO"; then :
  12278. ac_cv_func_working_mktime=yes
  12279. else
  12280. ac_cv_func_working_mktime=no
  12281. fi
  12282. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12283. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12284. fi
  12285. fi
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
  12287. $as_echo "$ac_cv_func_working_mktime" >&6; }
  12288. if test $ac_cv_func_working_mktime = no; then
  12289. case " $LIBOBJS " in
  12290. *" mktime.$ac_objext "* ) ;;
  12291. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  12292. ;;
  12293. esac
  12294. fi
  12295. for ac_func in getpagesize
  12296. do :
  12297. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12298. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  12299. cat >>confdefs.h <<_ACEOF
  12300. #define HAVE_GETPAGESIZE 1
  12301. _ACEOF
  12302. fi
  12303. done
  12304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12305. $as_echo_n "checking for working mmap... " >&6; }
  12306. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  12307. $as_echo_n "(cached) " >&6
  12308. else
  12309. if test "$cross_compiling" = yes; then :
  12310. ac_cv_func_mmap_fixed_mapped=no
  12311. else
  12312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12313. /* end confdefs.h. */
  12314. $ac_includes_default
  12315. /* malloc might have been renamed as rpl_malloc. */
  12316. #undef malloc
  12317. /* Thanks to Mike Haertel and Jim Avera for this test.
  12318. Here is a matrix of mmap possibilities:
  12319. mmap private not fixed
  12320. mmap private fixed at somewhere currently unmapped
  12321. mmap private fixed at somewhere already mapped
  12322. mmap shared not fixed
  12323. mmap shared fixed at somewhere currently unmapped
  12324. mmap shared fixed at somewhere already mapped
  12325. For private mappings, we should verify that changes cannot be read()
  12326. back from the file, nor mmap's back from the file at a different
  12327. address. (There have been systems where private was not correctly
  12328. implemented like the infamous i386 svr4.0, and systems where the
  12329. VM page cache was not coherent with the file system buffer cache
  12330. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12331. For shared mappings, we should conversely verify that changes get
  12332. propagated back to all the places they're supposed to be.
  12333. Grep wants private fixed already mapped.
  12334. The main things grep needs to know about mmap are:
  12335. * does it exist and is it safe to write into the mmap'd area
  12336. * how to use it (BSD variants) */
  12337. #include <fcntl.h>
  12338. #include <sys/mman.h>
  12339. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12340. char *malloc ();
  12341. #endif
  12342. /* This mess was copied from the GNU getpagesize.h. */
  12343. #ifndef HAVE_GETPAGESIZE
  12344. # ifdef _SC_PAGESIZE
  12345. # define getpagesize() sysconf(_SC_PAGESIZE)
  12346. # else /* no _SC_PAGESIZE */
  12347. # ifdef HAVE_SYS_PARAM_H
  12348. # include <sys/param.h>
  12349. # ifdef EXEC_PAGESIZE
  12350. # define getpagesize() EXEC_PAGESIZE
  12351. # else /* no EXEC_PAGESIZE */
  12352. # ifdef NBPG
  12353. # define getpagesize() NBPG * CLSIZE
  12354. # ifndef CLSIZE
  12355. # define CLSIZE 1
  12356. # endif /* no CLSIZE */
  12357. # else /* no NBPG */
  12358. # ifdef NBPC
  12359. # define getpagesize() NBPC
  12360. # else /* no NBPC */
  12361. # ifdef PAGESIZE
  12362. # define getpagesize() PAGESIZE
  12363. # endif /* PAGESIZE */
  12364. # endif /* no NBPC */
  12365. # endif /* no NBPG */
  12366. # endif /* no EXEC_PAGESIZE */
  12367. # else /* no HAVE_SYS_PARAM_H */
  12368. # define getpagesize() 8192 /* punt totally */
  12369. # endif /* no HAVE_SYS_PARAM_H */
  12370. # endif /* no _SC_PAGESIZE */
  12371. #endif /* no HAVE_GETPAGESIZE */
  12372. int
  12373. main ()
  12374. {
  12375. char *data, *data2, *data3;
  12376. const char *cdata2;
  12377. int i, pagesize;
  12378. int fd, fd2;
  12379. pagesize = getpagesize ();
  12380. /* First, make a file with some known garbage in it. */
  12381. data = (char *) malloc (pagesize);
  12382. if (!data)
  12383. return 1;
  12384. for (i = 0; i < pagesize; ++i)
  12385. *(data + i) = rand ();
  12386. umask (0);
  12387. fd = creat ("conftest.mmap", 0600);
  12388. if (fd < 0)
  12389. return 2;
  12390. if (write (fd, data, pagesize) != pagesize)
  12391. return 3;
  12392. close (fd);
  12393. /* Next, check that the tail of a page is zero-filled. File must have
  12394. non-zero length, otherwise we risk SIGBUS for entire page. */
  12395. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12396. if (fd2 < 0)
  12397. return 4;
  12398. cdata2 = "";
  12399. if (write (fd2, cdata2, 1) != 1)
  12400. return 5;
  12401. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12402. if (data2 == MAP_FAILED)
  12403. return 6;
  12404. for (i = 0; i < pagesize; ++i)
  12405. if (*(data2 + i))
  12406. return 7;
  12407. close (fd2);
  12408. if (munmap (data2, pagesize))
  12409. return 8;
  12410. /* Next, try to mmap the file at a fixed address which already has
  12411. something else allocated at it. If we can, also make sure that
  12412. we see the same garbage. */
  12413. fd = open ("conftest.mmap", O_RDWR);
  12414. if (fd < 0)
  12415. return 9;
  12416. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12417. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12418. return 10;
  12419. for (i = 0; i < pagesize; ++i)
  12420. if (*(data + i) != *(data2 + i))
  12421. return 11;
  12422. /* Finally, make sure that changes to the mapped area do not
  12423. percolate back to the file as seen by read(). (This is a bug on
  12424. some variants of i386 svr4.0.) */
  12425. for (i = 0; i < pagesize; ++i)
  12426. *(data2 + i) = *(data2 + i) + 1;
  12427. data3 = (char *) malloc (pagesize);
  12428. if (!data3)
  12429. return 12;
  12430. if (read (fd, data3, pagesize) != pagesize)
  12431. return 13;
  12432. for (i = 0; i < pagesize; ++i)
  12433. if (*(data + i) != *(data3 + i))
  12434. return 14;
  12435. close (fd);
  12436. return 0;
  12437. }
  12438. _ACEOF
  12439. if ac_fn_cxx_try_run "$LINENO"; then :
  12440. ac_cv_func_mmap_fixed_mapped=yes
  12441. else
  12442. ac_cv_func_mmap_fixed_mapped=no
  12443. fi
  12444. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12445. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12446. fi
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12449. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12450. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12451. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12452. fi
  12453. rm -f conftest.mmap conftest.txt
  12454. for ac_header in sys/select.h sys/socket.h
  12455. do :
  12456. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12457. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12458. eval as_val=\$$as_ac_Header
  12459. if test "x$as_val" = x""yes; then :
  12460. cat >>confdefs.h <<_ACEOF
  12461. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12462. _ACEOF
  12463. fi
  12464. done
  12465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12466. $as_echo_n "checking types of arguments for select... " >&6; }
  12467. if test "${ac_cv_func_select_args+set}" = set; then :
  12468. $as_echo_n "(cached) " >&6
  12469. else
  12470. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12471. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12472. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12474. /* end confdefs.h. */
  12475. $ac_includes_default
  12476. #ifdef HAVE_SYS_SELECT_H
  12477. # include <sys/select.h>
  12478. #endif
  12479. #ifdef HAVE_SYS_SOCKET_H
  12480. # include <sys/socket.h>
  12481. #endif
  12482. int
  12483. main ()
  12484. {
  12485. extern int select ($ac_arg1,
  12486. $ac_arg234, $ac_arg234, $ac_arg234,
  12487. $ac_arg5);
  12488. ;
  12489. return 0;
  12490. }
  12491. _ACEOF
  12492. if ac_fn_cxx_try_compile "$LINENO"; then :
  12493. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12494. fi
  12495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12496. done
  12497. done
  12498. done
  12499. # Provide a safe default value.
  12500. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  12501. fi
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12503. $as_echo "$ac_cv_func_select_args" >&6; }
  12504. ac_save_IFS=$IFS; IFS=','
  12505. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12506. IFS=$ac_save_IFS
  12507. shift
  12508. cat >>confdefs.h <<_ACEOF
  12509. #define SELECT_TYPE_ARG1 $1
  12510. _ACEOF
  12511. cat >>confdefs.h <<_ACEOF
  12512. #define SELECT_TYPE_ARG234 ($2)
  12513. _ACEOF
  12514. cat >>confdefs.h <<_ACEOF
  12515. #define SELECT_TYPE_ARG5 ($3)
  12516. _ACEOF
  12517. rm -f conftest*
  12518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12519. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12520. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
  12521. $as_echo_n "(cached) " >&6
  12522. else
  12523. rm -f conftest.sym conftest.file
  12524. echo >conftest.file
  12525. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12526. if test "$cross_compiling" = yes; then :
  12527. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12528. else
  12529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12530. /* end confdefs.h. */
  12531. $ac_includes_default
  12532. int
  12533. main ()
  12534. {
  12535. struct stat sbuf;
  12536. /* Linux will dereference the symlink and fail, as required by POSIX.
  12537. That is better in the sense that it means we will not
  12538. have to compile and use the lstat wrapper. */
  12539. return lstat ("conftest.sym/", &sbuf) == 0;
  12540. ;
  12541. return 0;
  12542. }
  12543. _ACEOF
  12544. if ac_fn_cxx_try_run "$LINENO"; then :
  12545. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12546. else
  12547. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12548. fi
  12549. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12550. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12551. fi
  12552. else
  12553. # If the `ln -s' command failed, then we probably don't even
  12554. # have an lstat function.
  12555. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12556. fi
  12557. rm -f conftest.sym conftest.file
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12560. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12561. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12562. cat >>confdefs.h <<_ACEOF
  12563. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12564. _ACEOF
  12565. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12566. case " $LIBOBJS " in
  12567. *" lstat.$ac_objext "* ) ;;
  12568. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12569. ;;
  12570. esac
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12573. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12574. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
  12575. $as_echo_n "(cached) " >&6
  12576. else
  12577. if test "$cross_compiling" = yes; then :
  12578. ac_cv_func_stat_empty_string_bug=yes
  12579. else
  12580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12581. /* end confdefs.h. */
  12582. $ac_includes_default
  12583. int
  12584. main ()
  12585. {
  12586. struct stat sbuf;
  12587. return stat ("", &sbuf) == 0;
  12588. ;
  12589. return 0;
  12590. }
  12591. _ACEOF
  12592. if ac_fn_cxx_try_run "$LINENO"; then :
  12593. ac_cv_func_stat_empty_string_bug=no
  12594. else
  12595. ac_cv_func_stat_empty_string_bug=yes
  12596. fi
  12597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12599. fi
  12600. fi
  12601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12602. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12603. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12604. case " $LIBOBJS " in
  12605. *" stat.$ac_objext "* ) ;;
  12606. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12607. ;;
  12608. esac
  12609. cat >>confdefs.h <<_ACEOF
  12610. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12611. _ACEOF
  12612. fi
  12613. for ac_func in strftime
  12614. do :
  12615. ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12616. if test "x$ac_cv_func_strftime" = x""yes; then :
  12617. cat >>confdefs.h <<_ACEOF
  12618. #define HAVE_STRFTIME 1
  12619. _ACEOF
  12620. else
  12621. # strftime is in -lintl on SCO UNIX.
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12623. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12624. if test "${ac_cv_lib_intl_strftime+set}" = set; then :
  12625. $as_echo_n "(cached) " >&6
  12626. else
  12627. ac_check_lib_save_LIBS=$LIBS
  12628. LIBS="-lintl $LIBS"
  12629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12630. /* end confdefs.h. */
  12631. /* Override any GCC internal prototype to avoid an error.
  12632. Use char because int might match the return type of a GCC
  12633. builtin and then its argument prototype would still apply. */
  12634. #ifdef __cplusplus
  12635. extern "C"
  12636. #endif
  12637. char strftime ();
  12638. int
  12639. main ()
  12640. {
  12641. return strftime ();
  12642. ;
  12643. return 0;
  12644. }
  12645. _ACEOF
  12646. if ac_fn_cxx_try_link "$LINENO"; then :
  12647. ac_cv_lib_intl_strftime=yes
  12648. else
  12649. ac_cv_lib_intl_strftime=no
  12650. fi
  12651. rm -f core conftest.err conftest.$ac_objext \
  12652. conftest$ac_exeext conftest.$ac_ext
  12653. LIBS=$ac_check_lib_save_LIBS
  12654. fi
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12656. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12657. if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
  12658. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12659. LIBS="-lintl $LIBS"
  12660. fi
  12661. fi
  12662. done
  12663. for ac_func in vprintf
  12664. do :
  12665. ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12666. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12667. cat >>confdefs.h <<_ACEOF
  12668. #define HAVE_VPRINTF 1
  12669. _ACEOF
  12670. ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12671. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12672. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12673. fi
  12674. fi
  12675. done
  12676. for ac_header in vfork.h
  12677. do :
  12678. ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12679. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  12680. cat >>confdefs.h <<_ACEOF
  12681. #define HAVE_VFORK_H 1
  12682. _ACEOF
  12683. fi
  12684. done
  12685. for ac_func in fork vfork
  12686. do :
  12687. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12688. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12689. eval as_val=\$$as_ac_var
  12690. if test "x$as_val" = x""yes; then :
  12691. cat >>confdefs.h <<_ACEOF
  12692. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12693. _ACEOF
  12694. fi
  12695. done
  12696. if test "x$ac_cv_func_fork" = xyes; then
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12698. $as_echo_n "checking for working fork... " >&6; }
  12699. if test "${ac_cv_func_fork_works+set}" = set; then :
  12700. $as_echo_n "(cached) " >&6
  12701. else
  12702. if test "$cross_compiling" = yes; then :
  12703. ac_cv_func_fork_works=cross
  12704. else
  12705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12706. /* end confdefs.h. */
  12707. $ac_includes_default
  12708. int
  12709. main ()
  12710. {
  12711. /* By Ruediger Kuhlmann. */
  12712. return fork () < 0;
  12713. ;
  12714. return 0;
  12715. }
  12716. _ACEOF
  12717. if ac_fn_cxx_try_run "$LINENO"; then :
  12718. ac_cv_func_fork_works=yes
  12719. else
  12720. ac_cv_func_fork_works=no
  12721. fi
  12722. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12723. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12724. fi
  12725. fi
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12727. $as_echo "$ac_cv_func_fork_works" >&6; }
  12728. else
  12729. ac_cv_func_fork_works=$ac_cv_func_fork
  12730. fi
  12731. if test "x$ac_cv_func_fork_works" = xcross; then
  12732. case $host in
  12733. *-*-amigaos* | *-*-msdosdjgpp*)
  12734. # Override, as these systems have only a dummy fork() stub
  12735. ac_cv_func_fork_works=no
  12736. ;;
  12737. *)
  12738. ac_cv_func_fork_works=yes
  12739. ;;
  12740. esac
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12742. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12743. fi
  12744. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12745. if test "x$ac_cv_func_vfork" = xyes; then
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12747. $as_echo_n "checking for working vfork... " >&6; }
  12748. if test "${ac_cv_func_vfork_works+set}" = set; then :
  12749. $as_echo_n "(cached) " >&6
  12750. else
  12751. if test "$cross_compiling" = yes; then :
  12752. ac_cv_func_vfork_works=cross
  12753. else
  12754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12755. /* end confdefs.h. */
  12756. /* Thanks to Paul Eggert for this test. */
  12757. $ac_includes_default
  12758. #include <sys/wait.h>
  12759. #ifdef HAVE_VFORK_H
  12760. # include <vfork.h>
  12761. #endif
  12762. /* On some sparc systems, changes by the child to local and incoming
  12763. argument registers are propagated back to the parent. The compiler
  12764. is told about this with #include <vfork.h>, but some compilers
  12765. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12766. static variable whose address is put into a register that is
  12767. clobbered by the vfork. */
  12768. static void
  12769. #ifdef __cplusplus
  12770. sparc_address_test (int arg)
  12771. # else
  12772. sparc_address_test (arg) int arg;
  12773. #endif
  12774. {
  12775. static pid_t child;
  12776. if (!child) {
  12777. child = vfork ();
  12778. if (child < 0) {
  12779. perror ("vfork");
  12780. _exit(2);
  12781. }
  12782. if (!child) {
  12783. arg = getpid();
  12784. write(-1, "", 0);
  12785. _exit (arg);
  12786. }
  12787. }
  12788. }
  12789. int
  12790. main ()
  12791. {
  12792. pid_t parent = getpid ();
  12793. pid_t child;
  12794. sparc_address_test (0);
  12795. child = vfork ();
  12796. if (child == 0) {
  12797. /* Here is another test for sparc vfork register problems. This
  12798. test uses lots of local variables, at least as many local
  12799. variables as main has allocated so far including compiler
  12800. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12801. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12802. reuse the register of parent for one of the local variables,
  12803. since it will think that parent can't possibly be used any more
  12804. in this routine. Assigning to the local variable will thus
  12805. munge parent in the parent process. */
  12806. pid_t
  12807. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12808. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12809. /* Convince the compiler that p..p7 are live; otherwise, it might
  12810. use the same hardware register for all 8 local variables. */
  12811. if (p != p1 || p != p2 || p != p3 || p != p4
  12812. || p != p5 || p != p6 || p != p7)
  12813. _exit(1);
  12814. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12815. from child file descriptors. If the child closes a descriptor
  12816. before it execs or exits, this munges the parent's descriptor
  12817. as well. Test for this by closing stdout in the child. */
  12818. _exit(close(fileno(stdout)) != 0);
  12819. } else {
  12820. int status;
  12821. struct stat st;
  12822. while (wait(&status) != child)
  12823. ;
  12824. return (
  12825. /* Was there some problem with vforking? */
  12826. child < 0
  12827. /* Did the child fail? (This shouldn't happen.) */
  12828. || status
  12829. /* Did the vfork/compiler bug occur? */
  12830. || parent != getpid()
  12831. /* Did the file descriptor bug occur? */
  12832. || fstat(fileno(stdout), &st) != 0
  12833. );
  12834. }
  12835. }
  12836. _ACEOF
  12837. if ac_fn_cxx_try_run "$LINENO"; then :
  12838. ac_cv_func_vfork_works=yes
  12839. else
  12840. ac_cv_func_vfork_works=no
  12841. fi
  12842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12843. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12844. fi
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12847. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12848. fi;
  12849. if test "x$ac_cv_func_fork_works" = xcross; then
  12850. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12852. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12853. fi
  12854. if test "x$ac_cv_func_vfork_works" = xyes; then
  12855. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12856. else
  12857. $as_echo "#define vfork fork" >>confdefs.h
  12858. fi
  12859. if test "x$ac_cv_func_fork_works" = xyes; then
  12860. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12861. fi
  12862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12863. $as_echo_n "checking for working strtod... " >&6; }
  12864. if test "${ac_cv_func_strtod+set}" = set; then :
  12865. $as_echo_n "(cached) " >&6
  12866. else
  12867. if test "$cross_compiling" = yes; then :
  12868. ac_cv_func_strtod=no
  12869. else
  12870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12871. /* end confdefs.h. */
  12872. $ac_includes_default
  12873. #ifndef strtod
  12874. double strtod ();
  12875. #endif
  12876. int
  12877. main()
  12878. {
  12879. {
  12880. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12881. char *string = " +69";
  12882. char *term;
  12883. double value;
  12884. value = strtod (string, &term);
  12885. if (value != 69 || term != (string + 4))
  12886. return 1;
  12887. }
  12888. {
  12889. /* Under Solaris 2.4, strtod returns the wrong value for the
  12890. terminating character under some conditions. */
  12891. char *string = "NaN";
  12892. char *term;
  12893. strtod (string, &term);
  12894. if (term != string && *(term - 1) == 0)
  12895. return 1;
  12896. }
  12897. return 0;
  12898. }
  12899. _ACEOF
  12900. if ac_fn_cxx_try_run "$LINENO"; then :
  12901. ac_cv_func_strtod=yes
  12902. else
  12903. ac_cv_func_strtod=no
  12904. fi
  12905. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12906. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12907. fi
  12908. fi
  12909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12910. $as_echo "$ac_cv_func_strtod" >&6; }
  12911. if test $ac_cv_func_strtod = no; then
  12912. case " $LIBOBJS " in
  12913. *" strtod.$ac_objext "* ) ;;
  12914. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12915. ;;
  12916. esac
  12917. ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12918. if test "x$ac_cv_func_pow" = x""yes; then :
  12919. fi
  12920. if test $ac_cv_func_pow = no; then
  12921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12922. $as_echo_n "checking for pow in -lm... " >&6; }
  12923. if test "${ac_cv_lib_m_pow+set}" = set; then :
  12924. $as_echo_n "(cached) " >&6
  12925. else
  12926. ac_check_lib_save_LIBS=$LIBS
  12927. LIBS="-lm $LIBS"
  12928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12929. /* end confdefs.h. */
  12930. /* Override any GCC internal prototype to avoid an error.
  12931. Use char because int might match the return type of a GCC
  12932. builtin and then its argument prototype would still apply. */
  12933. #ifdef __cplusplus
  12934. extern "C"
  12935. #endif
  12936. char pow ();
  12937. int
  12938. main ()
  12939. {
  12940. return pow ();
  12941. ;
  12942. return 0;
  12943. }
  12944. _ACEOF
  12945. if ac_fn_cxx_try_link "$LINENO"; then :
  12946. ac_cv_lib_m_pow=yes
  12947. else
  12948. ac_cv_lib_m_pow=no
  12949. fi
  12950. rm -f core conftest.err conftest.$ac_objext \
  12951. conftest$ac_exeext conftest.$ac_ext
  12952. LIBS=$ac_check_lib_save_LIBS
  12953. fi
  12954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12955. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12956. if test "x$ac_cv_lib_m_pow" = x""yes; then :
  12957. POW_LIB=-lm
  12958. else
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12960. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12961. fi
  12962. fi
  12963. fi
  12964. for ac_func in __argz_count \
  12965. __argz_next \
  12966. __argz_stringify \
  12967. atexit \
  12968. ftruncate \
  12969. getcwd \
  12970. gethostbyaddr \
  12971. gethostbyname \
  12972. getifaddrs \
  12973. getpagesize \
  12974. inet_ntoa \
  12975. memchr \
  12976. memmove \
  12977. mempcpy \
  12978. memset \
  12979. mkdir \
  12980. munmap \
  12981. nl_langinfo \
  12982. posix_memalign \
  12983. pow \
  12984. putenv \
  12985. rmdir \
  12986. select \
  12987. setlocale \
  12988. sleep \
  12989. socket \
  12990. stpcpy \
  12991. strcasecmp \
  12992. strchr \
  12993. strcspn \
  12994. strdup \
  12995. strerror \
  12996. strncasecmp \
  12997. strstr \
  12998. strtol \
  12999. strtoul \
  13000. strtoull \
  13001. tzset \
  13002. unsetenv \
  13003. usleep \
  13004. utime
  13005. do :
  13006. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13007. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13008. eval as_val=\$$as_ac_var
  13009. if test "x$as_val" = x""yes; then :
  13010. cat >>confdefs.h <<_ACEOF
  13011. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13012. _ACEOF
  13013. fi
  13014. done
  13015. if test "x$enable_epoll" = "xyes"; then
  13016. for ac_func in epoll_create
  13017. do :
  13018. ac_fn_cxx_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
  13019. if test "x$ac_cv_func_epoll_create" = x""yes; then :
  13020. cat >>confdefs.h <<_ACEOF
  13021. #define HAVE_EPOLL_CREATE 1
  13022. _ACEOF
  13023. have_epoll=yes
  13024. fi
  13025. done
  13026. if test "x$have_epoll" = "xyes"; then
  13027. $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
  13028. fi
  13029. fi
  13030. if test "x$have_epoll" = "xyes"; then
  13031. HAVE_EPOLL_TRUE=
  13032. HAVE_EPOLL_FALSE='#'
  13033. else
  13034. HAVE_EPOLL_TRUE='#'
  13035. HAVE_EPOLL_FALSE=
  13036. fi
  13037. for ac_func in posix_fallocate
  13038. do :
  13039. ac_fn_cxx_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
  13040. if test "x$ac_cv_func_posix_fallocate" = x""yes; then :
  13041. cat >>confdefs.h <<_ACEOF
  13042. #define HAVE_POSIX_FALLOCATE 1
  13043. _ACEOF
  13044. have_posix_fallocate=yes
  13045. fi
  13046. done
  13047. if test "x$have_posix_fallocate" = "xyes"; then
  13048. HAVE_POSIX_FALLOCATE_TRUE=
  13049. HAVE_POSIX_FALLOCATE_FALSE='#'
  13050. else
  13051. HAVE_POSIX_FALLOCATE_TRUE='#'
  13052. HAVE_POSIX_FALLOCATE_FALSE=
  13053. fi
  13054. for ac_func in asctime_r
  13055. do :
  13056. ac_fn_cxx_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  13057. if test "x$ac_cv_func_asctime_r" = x""yes; then :
  13058. cat >>confdefs.h <<_ACEOF
  13059. #define HAVE_ASCTIME_R 1
  13060. _ACEOF
  13061. if true; then
  13062. HAVE_ASCTIME_R_TRUE=
  13063. HAVE_ASCTIME_R_FALSE='#'
  13064. else
  13065. HAVE_ASCTIME_R_TRUE='#'
  13066. HAVE_ASCTIME_R_FALSE=
  13067. fi
  13068. else
  13069. if false; then
  13070. HAVE_ASCTIME_R_TRUE=
  13071. HAVE_ASCTIME_R_FALSE='#'
  13072. else
  13073. HAVE_ASCTIME_R_TRUE='#'
  13074. HAVE_ASCTIME_R_FALSE=
  13075. fi
  13076. fi
  13077. done
  13078. for ac_func in basename
  13079. do :
  13080. ac_fn_cxx_check_func "$LINENO" "basename" "ac_cv_func_basename"
  13081. if test "x$ac_cv_func_basename" = x""yes; then :
  13082. cat >>confdefs.h <<_ACEOF
  13083. #define HAVE_BASENAME 1
  13084. _ACEOF
  13085. if true; then
  13086. HAVE_BASENAME_TRUE=
  13087. HAVE_BASENAME_FALSE='#'
  13088. else
  13089. HAVE_BASENAME_TRUE='#'
  13090. HAVE_BASENAME_FALSE=
  13091. fi
  13092. else
  13093. if false; then
  13094. HAVE_BASENAME_TRUE=
  13095. HAVE_BASENAME_FALSE='#'
  13096. else
  13097. HAVE_BASENAME_TRUE='#'
  13098. HAVE_BASENAME_FALSE=
  13099. fi
  13100. fi
  13101. done
  13102. for ac_func in gai_strerror
  13103. do :
  13104. ac_fn_cxx_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
  13105. if test "x$ac_cv_func_gai_strerror" = x""yes; then :
  13106. cat >>confdefs.h <<_ACEOF
  13107. #define HAVE_GAI_STRERROR 1
  13108. _ACEOF
  13109. if true; then
  13110. HAVE_GAI_STRERROR_TRUE=
  13111. HAVE_GAI_STRERROR_FALSE='#'
  13112. else
  13113. HAVE_GAI_STRERROR_TRUE='#'
  13114. HAVE_GAI_STRERROR_FALSE=
  13115. fi
  13116. else
  13117. if false; then
  13118. HAVE_GAI_STRERROR_TRUE=
  13119. HAVE_GAI_STRERROR_FALSE='#'
  13120. else
  13121. HAVE_GAI_STRERROR_TRUE='#'
  13122. HAVE_GAI_STRERROR_FALSE=
  13123. fi
  13124. fi
  13125. done
  13126. for ac_func in getaddrinfo
  13127. do :
  13128. ac_fn_cxx_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
  13129. if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
  13130. cat >>confdefs.h <<_ACEOF
  13131. #define HAVE_GETADDRINFO 1
  13132. _ACEOF
  13133. if true; then
  13134. HAVE_GETADDRINFO_TRUE=
  13135. HAVE_GETADDRINFO_FALSE='#'
  13136. else
  13137. HAVE_GETADDRINFO_TRUE='#'
  13138. HAVE_GETADDRINFO_FALSE=
  13139. fi
  13140. else
  13141. if false; then
  13142. HAVE_GETADDRINFO_TRUE=
  13143. HAVE_GETADDRINFO_FALSE='#'
  13144. else
  13145. HAVE_GETADDRINFO_TRUE='#'
  13146. HAVE_GETADDRINFO_FALSE=
  13147. fi
  13148. fi
  13149. done
  13150. for ac_func in gettimeofday
  13151. do :
  13152. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  13153. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  13154. cat >>confdefs.h <<_ACEOF
  13155. #define HAVE_GETTIMEOFDAY 1
  13156. _ACEOF
  13157. if true; then
  13158. HAVE_GETTIMEOFDAY_TRUE=
  13159. HAVE_GETTIMEOFDAY_FALSE='#'
  13160. else
  13161. HAVE_GETTIMEOFDAY_TRUE='#'
  13162. HAVE_GETTIMEOFDAY_FALSE=
  13163. fi
  13164. else
  13165. if false; then
  13166. HAVE_GETTIMEOFDAY_TRUE=
  13167. HAVE_GETTIMEOFDAY_FALSE='#'
  13168. else
  13169. HAVE_GETTIMEOFDAY_TRUE='#'
  13170. HAVE_GETTIMEOFDAY_FALSE=
  13171. fi
  13172. fi
  13173. done
  13174. for ac_func in inet_aton
  13175. do :
  13176. ac_fn_cxx_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13177. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  13178. cat >>confdefs.h <<_ACEOF
  13179. #define HAVE_INET_ATON 1
  13180. _ACEOF
  13181. if true; then
  13182. HAVE_INET_ATON_TRUE=
  13183. HAVE_INET_ATON_FALSE='#'
  13184. else
  13185. HAVE_INET_ATON_TRUE='#'
  13186. HAVE_INET_ATON_FALSE=
  13187. fi
  13188. else
  13189. if false; then
  13190. HAVE_INET_ATON_TRUE=
  13191. HAVE_INET_ATON_FALSE='#'
  13192. else
  13193. HAVE_INET_ATON_TRUE='#'
  13194. HAVE_INET_ATON_FALSE=
  13195. fi
  13196. fi
  13197. done
  13198. for ac_func in localtime_r
  13199. do :
  13200. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  13201. if test "x$ac_cv_func_localtime_r" = x""yes; then :
  13202. cat >>confdefs.h <<_ACEOF
  13203. #define HAVE_LOCALTIME_R 1
  13204. _ACEOF
  13205. if true; then
  13206. HAVE_LOCALTIME_R_TRUE=
  13207. HAVE_LOCALTIME_R_FALSE='#'
  13208. else
  13209. HAVE_LOCALTIME_R_TRUE='#'
  13210. HAVE_LOCALTIME_R_FALSE=
  13211. fi
  13212. else
  13213. if false; then
  13214. HAVE_LOCALTIME_R_TRUE=
  13215. HAVE_LOCALTIME_R_FALSE='#'
  13216. else
  13217. HAVE_LOCALTIME_R_TRUE='#'
  13218. HAVE_LOCALTIME_R_FALSE=
  13219. fi
  13220. fi
  13221. done
  13222. for ac_func in strptime
  13223. do :
  13224. ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
  13225. if test "x$ac_cv_func_strptime" = x""yes; then :
  13226. cat >>confdefs.h <<_ACEOF
  13227. #define HAVE_STRPTIME 1
  13228. _ACEOF
  13229. if true; then
  13230. HAVE_STRPTIME_TRUE=
  13231. HAVE_STRPTIME_FALSE='#'
  13232. else
  13233. HAVE_STRPTIME_TRUE='#'
  13234. HAVE_STRPTIME_FALSE=
  13235. fi
  13236. else
  13237. if false; then
  13238. HAVE_STRPTIME_TRUE=
  13239. HAVE_STRPTIME_FALSE='#'
  13240. else
  13241. HAVE_STRPTIME_TRUE='#'
  13242. HAVE_STRPTIME_FALSE=
  13243. fi
  13244. fi
  13245. done
  13246. for ac_func in timegm
  13247. do :
  13248. ac_fn_cxx_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  13249. if test "x$ac_cv_func_timegm" = x""yes; then :
  13250. cat >>confdefs.h <<_ACEOF
  13251. #define HAVE_TIMEGM 1
  13252. _ACEOF
  13253. if true; then
  13254. HAVE_TIMEGM_TRUE=
  13255. HAVE_TIMEGM_FALSE='#'
  13256. else
  13257. HAVE_TIMEGM_TRUE='#'
  13258. HAVE_TIMEGM_FALSE=
  13259. fi
  13260. else
  13261. if false; then
  13262. HAVE_TIMEGM_TRUE=
  13263. HAVE_TIMEGM_FALSE='#'
  13264. else
  13265. HAVE_TIMEGM_TRUE='#'
  13266. HAVE_TIMEGM_FALSE=
  13267. fi
  13268. fi
  13269. done
  13270. for ac_func in daemon
  13271. do :
  13272. ac_fn_cxx_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  13273. if test "x$ac_cv_func_daemon" = x""yes; then :
  13274. cat >>confdefs.h <<_ACEOF
  13275. #define HAVE_DAEMON 1
  13276. _ACEOF
  13277. have_daemon=yes
  13278. fi
  13279. done
  13280. if test "x$have_daemon" = "xyes"; then
  13281. HAVE_DAEMON_TRUE=
  13282. HAVE_DAEMON_FALSE='#'
  13283. else
  13284. HAVE_DAEMON_TRUE='#'
  13285. HAVE_DAEMON_FALSE=
  13286. fi
  13287. for ac_func in clock_gettime
  13288. do :
  13289. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  13290. if test "x$ac_cv_func_clock_gettime" = x""yes; then :
  13291. cat >>confdefs.h <<_ACEOF
  13292. #define HAVE_CLOCK_GETTIME 1
  13293. _ACEOF
  13294. have_clock_gettime=yes
  13295. fi
  13296. done
  13297. if test "x$have_clock_gettime" != "xyes"; then
  13298. for ac_func in mach_absolute_time
  13299. do :
  13300. ac_fn_cxx_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
  13301. if test "x$ac_cv_func_mach_absolute_time" = x""yes; then :
  13302. cat >>confdefs.h <<_ACEOF
  13303. #define HAVE_MACH_ABSOLUTE_TIME 1
  13304. _ACEOF
  13305. have_mach_absolute_time=yes
  13306. fi
  13307. done
  13308. fi
  13309. if test "x$have_mach_absolute_time" = "xyes"; then
  13310. HAVE_MACH_ABSOLUTE_TIME_TRUE=
  13311. HAVE_MACH_ABSOLUTE_TIME_FALSE='#'
  13312. else
  13313. HAVE_MACH_ABSOLUTE_TIME_TRUE='#'
  13314. HAVE_MACH_ABSOLUTE_TIME_FALSE=
  13315. fi
  13316. for ac_func in poll
  13317. do :
  13318. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  13319. if test "x$ac_cv_func_poll" = x""yes; then :
  13320. cat >>confdefs.h <<_ACEOF
  13321. #define HAVE_POLL 1
  13322. _ACEOF
  13323. have_poll=yes
  13324. fi
  13325. done
  13326. if test "x$have_poll" = "xyes"; then
  13327. HAVE_POLL_TRUE=
  13328. HAVE_POLL_FALSE='#'
  13329. else
  13330. HAVE_POLL_TRUE='#'
  13331. HAVE_POLL_FALSE=
  13332. fi
  13333. case "$target" in
  13334. *mingw*)
  13335. if true; then
  13336. HAVE_GETADDRINFO_TRUE=
  13337. HAVE_GETADDRINFO_FALSE='#'
  13338. else
  13339. HAVE_GETADDRINFO_TRUE='#'
  13340. HAVE_GETADDRINFO_FALSE=
  13341. fi
  13342. if false; then
  13343. HAVE_GAI_STRERROR_TRUE=
  13344. HAVE_GAI_STRERROR_FALSE='#'
  13345. else
  13346. HAVE_GAI_STRERROR_TRUE='#'
  13347. HAVE_GAI_STRERROR_FALSE=
  13348. fi
  13349. if test "x$have_clock_gettime" != "xyes"; then
  13350. if true; then
  13351. HAVE_TIMEGETTIME_TRUE=
  13352. HAVE_TIMEGETTIME_FALSE='#'
  13353. else
  13354. HAVE_TIMEGETTIME_TRUE='#'
  13355. HAVE_TIMEGETTIME_FALSE=
  13356. fi
  13357. fi
  13358. ;;
  13359. *)
  13360. if false; then
  13361. HAVE_TIMEGETTIME_TRUE=
  13362. HAVE_TIMEGETTIME_FALSE='#'
  13363. else
  13364. HAVE_TIMEGETTIME_TRUE='#'
  13365. HAVE_TIMEGETTIME_FALSE=
  13366. fi
  13367. ;;
  13368. esac
  13369. for ac_func in port_associate
  13370. do :
  13371. ac_fn_cxx_check_func "$LINENO" "port_associate" "ac_cv_func_port_associate"
  13372. if test "x$ac_cv_func_port_associate" = x""yes; then :
  13373. cat >>confdefs.h <<_ACEOF
  13374. #define HAVE_PORT_ASSOCIATE 1
  13375. _ACEOF
  13376. have_port_associate=yes
  13377. fi
  13378. done
  13379. if test "x$have_port_associate" = "xyes"; then
  13380. HAVE_PORT_ASSOCIATE_TRUE=
  13381. HAVE_PORT_ASSOCIATE_FALSE='#'
  13382. else
  13383. HAVE_PORT_ASSOCIATE_TRUE='#'
  13384. HAVE_PORT_ASSOCIATE_FALSE=
  13385. fi
  13386. for ac_func in kqueue
  13387. do :
  13388. ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
  13389. if test "x$ac_cv_func_kqueue" = x""yes; then :
  13390. cat >>confdefs.h <<_ACEOF
  13391. #define HAVE_KQUEUE 1
  13392. _ACEOF
  13393. have_kqueue=yes
  13394. fi
  13395. done
  13396. if test "x$have_kqueue" = "xyes"; then
  13397. HAVE_KQUEUE_TRUE=
  13398. HAVE_KQUEUE_FALSE='#'
  13399. else
  13400. HAVE_KQUEUE_TRUE='#'
  13401. HAVE_KQUEUE_FALSE=
  13402. fi
  13403. if test "x$have_kqueue" = "xyes"; then
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kevent.udata is intptr_t" >&5
  13405. $as_echo_n "checking whether struct kevent.udata is intptr_t... " >&6; }
  13406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13407. /* end confdefs.h. */
  13408. #include <sys/types.h>
  13409. #include <sys/event.h>
  13410. #include <sys/time.h>
  13411. int
  13412. main ()
  13413. {
  13414. struct kevent event;
  13415. event.udata = reinterpret_cast<intptr_t>(&event);
  13416. ;
  13417. return 0;
  13418. }
  13419. _ACEOF
  13420. if ac_fn_cxx_try_compile "$LINENO"; then :
  13421. kevent_udata_intptr_t=yes
  13422. else
  13423. kevent_udata_intptr_t=no
  13424. fi
  13425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kevent_udata_intptr_t" >&5
  13427. $as_echo "$kevent_udata_intptr_t" >&6; }
  13428. if test "x$kevent_udata_intptr_t" = "xyes"; then
  13429. $as_echo "#define KEVENT_UDATA_INTPTR_T 1" >>confdefs.h
  13430. fi
  13431. fi
  13432. ac_fn_cxx_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <netinet/in.h>
  13433. "
  13434. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
  13435. $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
  13436. fi
  13437. # Check struct option.name is assignable from const char*. struct
  13438. # option.name in opensolaris is of type char*. In Linux, it is const
  13439. # char*
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct option.name is assignable from const char*" >&5
  13441. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  13442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13443. /* end confdefs.h. */
  13444. #include <unistd.h>
  13445. #include <getopt.h>
  13446. int
  13447. main ()
  13448. {
  13449. const char* s = "const char";
  13450. option op;
  13451. op.name = s;
  13452. ;
  13453. return 0;
  13454. }
  13455. _ACEOF
  13456. if ac_fn_cxx_try_compile "$LINENO"; then :
  13457. have_option_const_name=yes
  13458. else
  13459. have_option_const_name=no
  13460. fi
  13461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_option_const_name" >&5
  13463. $as_echo "$have_option_const_name" >&6; }
  13464. if test "x$have_option_const_name" = "xyes"; then
  13465. $as_echo "#define HAVE_OPTION_CONST_NAME 1" >>confdefs.h
  13466. fi
  13467. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in intl/Makefile lib/Makefile doc/Makefile"
  13468. cat >confcache <<\_ACEOF
  13469. # This file is a shell script that caches the results of configure
  13470. # tests run on this system so they can be shared between configure
  13471. # scripts and configure runs, see configure's option --config-cache.
  13472. # It is not useful on other systems. If it contains results you don't
  13473. # want to keep, you may remove or edit it.
  13474. #
  13475. # config.status only pays attention to the cache file if you give it
  13476. # the --recheck option to rerun configure.
  13477. #
  13478. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13479. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13480. # following values.
  13481. _ACEOF
  13482. # The following way of writing the cache mishandles newlines in values,
  13483. # but we know of no workaround that is simple, portable, and efficient.
  13484. # So, we kill variables containing newlines.
  13485. # Ultrix sh set writes to stderr and can't be redirected directly,
  13486. # and sets the high bit in the cache file unless we assign to the vars.
  13487. (
  13488. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13489. eval ac_val=\$$ac_var
  13490. case $ac_val in #(
  13491. *${as_nl}*)
  13492. case $ac_var in #(
  13493. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13494. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13495. esac
  13496. case $ac_var in #(
  13497. _ | IFS | as_nl) ;; #(
  13498. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13499. *) { eval $ac_var=; unset $ac_var;} ;;
  13500. esac ;;
  13501. esac
  13502. done
  13503. (set) 2>&1 |
  13504. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13505. *${as_nl}ac_space=\ *)
  13506. # `set' does not quote correctly, so add quotes: double-quote
  13507. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13508. sed -n \
  13509. "s/'/'\\\\''/g;
  13510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13511. ;; #(
  13512. *)
  13513. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13514. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13515. ;;
  13516. esac |
  13517. sort
  13518. ) |
  13519. sed '
  13520. /^ac_cv_env_/b end
  13521. t clear
  13522. :clear
  13523. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13524. t end
  13525. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13526. :end' >>confcache
  13527. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13528. if test -w "$cache_file"; then
  13529. test "x$cache_file" != "x/dev/null" &&
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13531. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13532. cat confcache >$cache_file
  13533. else
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13535. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13536. fi
  13537. fi
  13538. rm -f confcache
  13539. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13540. # Let make expand exec_prefix.
  13541. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13542. DEFS=-DHAVE_CONFIG_H
  13543. ac_libobjs=
  13544. ac_ltlibobjs=
  13545. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13546. # 1. Remove the extension, and $U if already installed.
  13547. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13548. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13549. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13550. # will be set to the directory where LIBOBJS objects are built.
  13551. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13552. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13553. done
  13554. LIBOBJS=$ac_libobjs
  13555. LTLIBOBJS=$ac_ltlibobjs
  13556. if test -n "$EXEEXT"; then
  13557. am__EXEEXT_TRUE=
  13558. am__EXEEXT_FALSE='#'
  13559. else
  13560. am__EXEEXT_TRUE='#'
  13561. am__EXEEXT_FALSE=
  13562. fi
  13563. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13564. as_fn_error "conditional \"AMDEP\" was never defined.
  13565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13566. fi
  13567. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13568. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13570. fi
  13571. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13572. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13574. fi
  13575. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13576. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13578. fi
  13579. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  13580. as_fn_error "conditional \"ENABLE_SSL\" was never defined.
  13581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13582. fi
  13583. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  13584. as_fn_error "conditional \"HAVE_LIBGNUTLS\" was never defined.
  13585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13586. fi
  13587. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  13588. as_fn_error "conditional \"HAVE_LIBSSL\" was never defined.
  13589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13590. fi
  13591. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13592. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13593. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13594. fi
  13595. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  13596. as_fn_error "conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  13597. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13598. fi
  13599. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13600. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  13604. as_fn_error "conditional \"ENABLE_BITTORRENT\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13608. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  13612. as_fn_error "conditional \"ENABLE_METALINK\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  13616. as_fn_error "conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  13617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13618. fi
  13619. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  13620. as_fn_error "conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  13621. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13622. fi
  13623. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  13624. as_fn_error "conditional \"ENABLE_XML_RPC\" was never defined.
  13625. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13626. fi
  13627. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  13628. as_fn_error "conditional \"HAVE_LIBXML2\" was never defined.
  13629. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13630. fi
  13631. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  13632. as_fn_error "conditional \"HAVE_LIBEXPAT\" was never defined.
  13633. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13634. fi
  13635. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13636. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13637. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13638. fi
  13639. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  13640. as_fn_error "conditional \"ENABLE_ASYNC_DNS\" was never defined.
  13641. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13642. fi
  13643. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  13644. as_fn_error "conditional \"HAVE_LIBZ\" was never defined.
  13645. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13646. fi
  13647. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  13648. as_fn_error "conditional \"HAVE_SQLITE3\" was never defined.
  13649. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13650. fi
  13651. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  13652. as_fn_error "conditional \"HAVE_EPOLL\" was never defined.
  13653. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13654. fi
  13655. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  13656. as_fn_error "conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  13657. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13658. fi
  13659. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13660. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13661. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13662. fi
  13663. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  13664. as_fn_error "conditional \"HAVE_ASCTIME_R\" was never defined.
  13665. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13666. fi
  13667. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13668. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13669. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13670. fi
  13671. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  13672. as_fn_error "conditional \"HAVE_BASENAME\" was never defined.
  13673. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13674. fi
  13675. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13676. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13677. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13678. fi
  13679. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13680. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13681. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13682. fi
  13683. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13684. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13685. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13686. fi
  13687. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13688. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13689. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13690. fi
  13691. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13692. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13693. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13694. fi
  13695. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  13696. as_fn_error "conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  13697. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13698. fi
  13699. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13700. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13701. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13702. fi
  13703. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  13704. as_fn_error "conditional \"HAVE_INET_ATON\" was never defined.
  13705. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13706. fi
  13707. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13708. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13709. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13710. fi
  13711. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  13712. as_fn_error "conditional \"HAVE_LOCALTIME_R\" was never defined.
  13713. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13714. fi
  13715. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13716. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13717. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13718. fi
  13719. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  13720. as_fn_error "conditional \"HAVE_STRPTIME\" was never defined.
  13721. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13722. fi
  13723. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13724. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13725. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13726. fi
  13727. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  13728. as_fn_error "conditional \"HAVE_TIMEGM\" was never defined.
  13729. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13730. fi
  13731. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  13732. as_fn_error "conditional \"HAVE_DAEMON\" was never defined.
  13733. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13734. fi
  13735. if test -z "${HAVE_MACH_ABSOLUTE_TIME_TRUE}" && test -z "${HAVE_MACH_ABSOLUTE_TIME_FALSE}"; then
  13736. as_fn_error "conditional \"HAVE_MACH_ABSOLUTE_TIME\" was never defined.
  13737. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13738. fi
  13739. if test -z "${HAVE_POLL_TRUE}" && test -z "${HAVE_POLL_FALSE}"; then
  13740. as_fn_error "conditional \"HAVE_POLL\" was never defined.
  13741. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13742. fi
  13743. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  13744. as_fn_error "conditional \"HAVE_GETADDRINFO\" was never defined.
  13745. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13746. fi
  13747. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  13748. as_fn_error "conditional \"HAVE_GAI_STRERROR\" was never defined.
  13749. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13750. fi
  13751. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13752. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13753. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13754. fi
  13755. if test -z "${HAVE_TIMEGETTIME_TRUE}" && test -z "${HAVE_TIMEGETTIME_FALSE}"; then
  13756. as_fn_error "conditional \"HAVE_TIMEGETTIME\" was never defined.
  13757. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13758. fi
  13759. if test -z "${HAVE_PORT_ASSOCIATE_TRUE}" && test -z "${HAVE_PORT_ASSOCIATE_FALSE}"; then
  13760. as_fn_error "conditional \"HAVE_PORT_ASSOCIATE\" was never defined.
  13761. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13762. fi
  13763. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  13764. as_fn_error "conditional \"HAVE_KQUEUE\" was never defined.
  13765. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13766. fi
  13767. : ${CONFIG_STATUS=./config.status}
  13768. ac_write_fail=0
  13769. ac_clean_files_save=$ac_clean_files
  13770. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13772. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13773. as_write_fail=0
  13774. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13775. #! $SHELL
  13776. # Generated by $as_me.
  13777. # Run this file to recreate the current configuration.
  13778. # Compiler output produced by configure, useful for debugging
  13779. # configure, is in config.log if it exists.
  13780. debug=false
  13781. ac_cs_recheck=false
  13782. ac_cs_silent=false
  13783. SHELL=\${CONFIG_SHELL-$SHELL}
  13784. export SHELL
  13785. _ASEOF
  13786. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13787. ## -------------------- ##
  13788. ## M4sh Initialization. ##
  13789. ## -------------------- ##
  13790. # Be more Bourne compatible
  13791. DUALCASE=1; export DUALCASE # for MKS sh
  13792. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13793. emulate sh
  13794. NULLCMD=:
  13795. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13796. # is contrary to our usage. Disable this feature.
  13797. alias -g '${1+"$@"}'='"$@"'
  13798. setopt NO_GLOB_SUBST
  13799. else
  13800. case `(set -o) 2>/dev/null` in #(
  13801. *posix*) :
  13802. set -o posix ;; #(
  13803. *) :
  13804. ;;
  13805. esac
  13806. fi
  13807. as_nl='
  13808. '
  13809. export as_nl
  13810. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13811. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13812. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13813. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13814. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13815. # but without wasting forks for bash or zsh.
  13816. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13817. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13818. as_echo='print -r --'
  13819. as_echo_n='print -rn --'
  13820. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13821. as_echo='printf %s\n'
  13822. as_echo_n='printf %s'
  13823. else
  13824. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13825. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13826. as_echo_n='/usr/ucb/echo -n'
  13827. else
  13828. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13829. as_echo_n_body='eval
  13830. arg=$1;
  13831. case $arg in #(
  13832. *"$as_nl"*)
  13833. expr "X$arg" : "X\\(.*\\)$as_nl";
  13834. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13835. esac;
  13836. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13837. '
  13838. export as_echo_n_body
  13839. as_echo_n='sh -c $as_echo_n_body as_echo'
  13840. fi
  13841. export as_echo_body
  13842. as_echo='sh -c $as_echo_body as_echo'
  13843. fi
  13844. # The user is always right.
  13845. if test "${PATH_SEPARATOR+set}" != set; then
  13846. PATH_SEPARATOR=:
  13847. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13848. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13849. PATH_SEPARATOR=';'
  13850. }
  13851. fi
  13852. # IFS
  13853. # We need space, tab and new line, in precisely that order. Quoting is
  13854. # there to prevent editors from complaining about space-tab.
  13855. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13856. # splitting by setting IFS to empty value.)
  13857. IFS=" "" $as_nl"
  13858. # Find who we are. Look in the path if we contain no directory separator.
  13859. case $0 in #((
  13860. *[\\/]* ) as_myself=$0 ;;
  13861. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13862. for as_dir in $PATH
  13863. do
  13864. IFS=$as_save_IFS
  13865. test -z "$as_dir" && as_dir=.
  13866. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13867. done
  13868. IFS=$as_save_IFS
  13869. ;;
  13870. esac
  13871. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13872. # in which case we are not to be found in the path.
  13873. if test "x$as_myself" = x; then
  13874. as_myself=$0
  13875. fi
  13876. if test ! -f "$as_myself"; then
  13877. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13878. exit 1
  13879. fi
  13880. # Unset variables that we do not need and which cause bugs (e.g. in
  13881. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13882. # suppresses any "Segmentation fault" message there. '((' could
  13883. # trigger a bug in pdksh 5.2.14.
  13884. for as_var in BASH_ENV ENV MAIL MAILPATH
  13885. do eval test x\${$as_var+set} = xset \
  13886. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13887. done
  13888. PS1='$ '
  13889. PS2='> '
  13890. PS4='+ '
  13891. # NLS nuisances.
  13892. LC_ALL=C
  13893. export LC_ALL
  13894. LANGUAGE=C
  13895. export LANGUAGE
  13896. # CDPATH.
  13897. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13898. # as_fn_error ERROR [LINENO LOG_FD]
  13899. # ---------------------------------
  13900. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13901. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13902. # script with status $?, using 1 if that was 0.
  13903. as_fn_error ()
  13904. {
  13905. as_status=$?; test $as_status -eq 0 && as_status=1
  13906. if test "$3"; then
  13907. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13908. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13909. fi
  13910. $as_echo "$as_me: error: $1" >&2
  13911. as_fn_exit $as_status
  13912. } # as_fn_error
  13913. # as_fn_set_status STATUS
  13914. # -----------------------
  13915. # Set $? to STATUS, without forking.
  13916. as_fn_set_status ()
  13917. {
  13918. return $1
  13919. } # as_fn_set_status
  13920. # as_fn_exit STATUS
  13921. # -----------------
  13922. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13923. as_fn_exit ()
  13924. {
  13925. set +e
  13926. as_fn_set_status $1
  13927. exit $1
  13928. } # as_fn_exit
  13929. # as_fn_unset VAR
  13930. # ---------------
  13931. # Portably unset VAR.
  13932. as_fn_unset ()
  13933. {
  13934. { eval $1=; unset $1;}
  13935. }
  13936. as_unset=as_fn_unset
  13937. # as_fn_append VAR VALUE
  13938. # ----------------------
  13939. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13940. # advantage of any shell optimizations that allow amortized linear growth over
  13941. # repeated appends, instead of the typical quadratic growth present in naive
  13942. # implementations.
  13943. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13944. eval 'as_fn_append ()
  13945. {
  13946. eval $1+=\$2
  13947. }'
  13948. else
  13949. as_fn_append ()
  13950. {
  13951. eval $1=\$$1\$2
  13952. }
  13953. fi # as_fn_append
  13954. # as_fn_arith ARG...
  13955. # ------------------
  13956. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13957. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13958. # must be portable across $(()) and expr.
  13959. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13960. eval 'as_fn_arith ()
  13961. {
  13962. as_val=$(( $* ))
  13963. }'
  13964. else
  13965. as_fn_arith ()
  13966. {
  13967. as_val=`expr "$@" || test $? -eq 1`
  13968. }
  13969. fi # as_fn_arith
  13970. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13971. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13972. as_expr=expr
  13973. else
  13974. as_expr=false
  13975. fi
  13976. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13977. as_basename=basename
  13978. else
  13979. as_basename=false
  13980. fi
  13981. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13982. as_dirname=dirname
  13983. else
  13984. as_dirname=false
  13985. fi
  13986. as_me=`$as_basename -- "$0" ||
  13987. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13988. X"$0" : 'X\(//\)$' \| \
  13989. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13990. $as_echo X/"$0" |
  13991. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13992. s//\1/
  13993. q
  13994. }
  13995. /^X\/\(\/\/\)$/{
  13996. s//\1/
  13997. q
  13998. }
  13999. /^X\/\(\/\).*/{
  14000. s//\1/
  14001. q
  14002. }
  14003. s/.*/./; q'`
  14004. # Avoid depending upon Character Ranges.
  14005. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14006. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14007. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14008. as_cr_digits='0123456789'
  14009. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14010. ECHO_C= ECHO_N= ECHO_T=
  14011. case `echo -n x` in #(((((
  14012. -n*)
  14013. case `echo 'xy\c'` in
  14014. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14015. xy) ECHO_C='\c';;
  14016. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14017. ECHO_T=' ';;
  14018. esac;;
  14019. *)
  14020. ECHO_N='-n';;
  14021. esac
  14022. rm -f conf$$ conf$$.exe conf$$.file
  14023. if test -d conf$$.dir; then
  14024. rm -f conf$$.dir/conf$$.file
  14025. else
  14026. rm -f conf$$.dir
  14027. mkdir conf$$.dir 2>/dev/null
  14028. fi
  14029. if (echo >conf$$.file) 2>/dev/null; then
  14030. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14031. as_ln_s='ln -s'
  14032. # ... but there are two gotchas:
  14033. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14034. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14035. # In both cases, we have to default to `cp -p'.
  14036. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14037. as_ln_s='cp -p'
  14038. elif ln conf$$.file conf$$ 2>/dev/null; then
  14039. as_ln_s=ln
  14040. else
  14041. as_ln_s='cp -p'
  14042. fi
  14043. else
  14044. as_ln_s='cp -p'
  14045. fi
  14046. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14047. rmdir conf$$.dir 2>/dev/null
  14048. # as_fn_mkdir_p
  14049. # -------------
  14050. # Create "$as_dir" as a directory, including parents if necessary.
  14051. as_fn_mkdir_p ()
  14052. {
  14053. case $as_dir in #(
  14054. -*) as_dir=./$as_dir;;
  14055. esac
  14056. test -d "$as_dir" || eval $as_mkdir_p || {
  14057. as_dirs=
  14058. while :; do
  14059. case $as_dir in #(
  14060. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14061. *) as_qdir=$as_dir;;
  14062. esac
  14063. as_dirs="'$as_qdir' $as_dirs"
  14064. as_dir=`$as_dirname -- "$as_dir" ||
  14065. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14066. X"$as_dir" : 'X\(//\)[^/]' \| \
  14067. X"$as_dir" : 'X\(//\)$' \| \
  14068. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14069. $as_echo X"$as_dir" |
  14070. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14071. s//\1/
  14072. q
  14073. }
  14074. /^X\(\/\/\)[^/].*/{
  14075. s//\1/
  14076. q
  14077. }
  14078. /^X\(\/\/\)$/{
  14079. s//\1/
  14080. q
  14081. }
  14082. /^X\(\/\).*/{
  14083. s//\1/
  14084. q
  14085. }
  14086. s/.*/./; q'`
  14087. test -d "$as_dir" && break
  14088. done
  14089. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14090. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14091. } # as_fn_mkdir_p
  14092. if mkdir -p . 2>/dev/null; then
  14093. as_mkdir_p='mkdir -p "$as_dir"'
  14094. else
  14095. test -d ./-p && rmdir ./-p
  14096. as_mkdir_p=false
  14097. fi
  14098. if test -x / >/dev/null 2>&1; then
  14099. as_test_x='test -x'
  14100. else
  14101. if ls -dL / >/dev/null 2>&1; then
  14102. as_ls_L_option=L
  14103. else
  14104. as_ls_L_option=
  14105. fi
  14106. as_test_x='
  14107. eval sh -c '\''
  14108. if test -d "$1"; then
  14109. test -d "$1/.";
  14110. else
  14111. case $1 in #(
  14112. -*)set "./$1";;
  14113. esac;
  14114. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14115. ???[sx]*):;;*)false;;esac;fi
  14116. '\'' sh
  14117. '
  14118. fi
  14119. as_executable_p=$as_test_x
  14120. # Sed expression to map a string onto a valid CPP name.
  14121. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14122. # Sed expression to map a string onto a valid variable name.
  14123. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14124. exec 6>&1
  14125. ## ----------------------------------- ##
  14126. ## Main body of $CONFIG_STATUS script. ##
  14127. ## ----------------------------------- ##
  14128. _ASEOF
  14129. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14131. # Save the log message, to keep $0 and so on meaningful, and to
  14132. # report actual input values of CONFIG_FILES etc. instead of their
  14133. # values after options handling.
  14134. ac_log="
  14135. This file was extended by aria2 $as_me 1.9.2, which was
  14136. generated by GNU Autoconf 2.65. Invocation command line was
  14137. CONFIG_FILES = $CONFIG_FILES
  14138. CONFIG_HEADERS = $CONFIG_HEADERS
  14139. CONFIG_LINKS = $CONFIG_LINKS
  14140. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14141. $ $0 $@
  14142. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14143. "
  14144. _ACEOF
  14145. case $ac_config_files in *"
  14146. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14147. esac
  14148. case $ac_config_headers in *"
  14149. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14150. esac
  14151. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14152. # Files that config.status was made for.
  14153. config_files="$ac_config_files"
  14154. config_headers="$ac_config_headers"
  14155. config_commands="$ac_config_commands"
  14156. _ACEOF
  14157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14158. ac_cs_usage="\
  14159. \`$as_me' instantiates files and other configuration actions
  14160. from templates according to the current configuration. Unless the files
  14161. and actions are specified as TAGs, all are instantiated by default.
  14162. Usage: $0 [OPTION]... [TAG]...
  14163. -h, --help print this help, then exit
  14164. -V, --version print version number and configuration settings, then exit
  14165. --config print configuration, then exit
  14166. -q, --quiet, --silent
  14167. do not print progress messages
  14168. -d, --debug don't remove temporary files
  14169. --recheck update $as_me by reconfiguring in the same conditions
  14170. --file=FILE[:TEMPLATE]
  14171. instantiate the configuration file FILE
  14172. --header=FILE[:TEMPLATE]
  14173. instantiate the configuration header FILE
  14174. Configuration files:
  14175. $config_files
  14176. Configuration headers:
  14177. $config_headers
  14178. Configuration commands:
  14179. $config_commands
  14180. Report bugs to <t-tujikawa@users.sourceforge.net>.
  14181. aria2 home page: <http://aria2.sourceforge.net/>."
  14182. _ACEOF
  14183. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14184. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14185. ac_cs_version="\\
  14186. aria2 config.status 1.9.2
  14187. configured by $0, generated by GNU Autoconf 2.65,
  14188. with options \\"\$ac_cs_config\\"
  14189. Copyright (C) 2009 Free Software Foundation, Inc.
  14190. This config.status script is free software; the Free Software Foundation
  14191. gives unlimited permission to copy, distribute and modify it."
  14192. ac_pwd='$ac_pwd'
  14193. srcdir='$srcdir'
  14194. INSTALL='$INSTALL'
  14195. MKDIR_P='$MKDIR_P'
  14196. AWK='$AWK'
  14197. test -n "\$AWK" || AWK=awk
  14198. _ACEOF
  14199. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14200. # The default lists apply if the user does not specify any file.
  14201. ac_need_defaults=:
  14202. while test $# != 0
  14203. do
  14204. case $1 in
  14205. --*=*)
  14206. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14207. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14208. ac_shift=:
  14209. ;;
  14210. *)
  14211. ac_option=$1
  14212. ac_optarg=$2
  14213. ac_shift=shift
  14214. ;;
  14215. esac
  14216. case $ac_option in
  14217. # Handling of the options.
  14218. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14219. ac_cs_recheck=: ;;
  14220. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14221. $as_echo "$ac_cs_version"; exit ;;
  14222. --config | --confi | --conf | --con | --co | --c )
  14223. $as_echo "$ac_cs_config"; exit ;;
  14224. --debug | --debu | --deb | --de | --d | -d )
  14225. debug=: ;;
  14226. --file | --fil | --fi | --f )
  14227. $ac_shift
  14228. case $ac_optarg in
  14229. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14230. esac
  14231. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14232. ac_need_defaults=false;;
  14233. --header | --heade | --head | --hea )
  14234. $ac_shift
  14235. case $ac_optarg in
  14236. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14237. esac
  14238. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14239. ac_need_defaults=false;;
  14240. --he | --h)
  14241. # Conflict between --help and --header
  14242. as_fn_error "ambiguous option: \`$1'
  14243. Try \`$0 --help' for more information.";;
  14244. --help | --hel | -h )
  14245. $as_echo "$ac_cs_usage"; exit ;;
  14246. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14247. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14248. ac_cs_silent=: ;;
  14249. # This is an error.
  14250. -*) as_fn_error "unrecognized option: \`$1'
  14251. Try \`$0 --help' for more information." ;;
  14252. *) as_fn_append ac_config_targets " $1"
  14253. ac_need_defaults=false ;;
  14254. esac
  14255. shift
  14256. done
  14257. ac_configure_extra_args=
  14258. if $ac_cs_silent; then
  14259. exec 6>/dev/null
  14260. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14261. fi
  14262. _ACEOF
  14263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14264. if \$ac_cs_recheck; then
  14265. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14266. shift
  14267. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14268. CONFIG_SHELL='$SHELL'
  14269. export CONFIG_SHELL
  14270. exec "\$@"
  14271. fi
  14272. _ACEOF
  14273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14274. exec 5>>config.log
  14275. {
  14276. echo
  14277. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14278. ## Running $as_me. ##
  14279. _ASBOX
  14280. $as_echo "$ac_log"
  14281. } >&5
  14282. _ACEOF
  14283. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14284. #
  14285. # INIT-COMMANDS
  14286. #
  14287. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14288. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  14289. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  14290. # from automake < 1.5.
  14291. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  14292. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  14293. LINGUAS="${LINGUAS-%UNSET%}"
  14294. _ACEOF
  14295. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14296. # Handling of arguments.
  14297. for ac_config_target in $ac_config_targets
  14298. do
  14299. case $ac_config_target in
  14300. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14301. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14302. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  14303. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14304. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  14305. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  14306. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  14307. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  14308. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14309. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  14310. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14311. esac
  14312. done
  14313. # If the user did not use the arguments to specify the items to instantiate,
  14314. # then the envvar interface is used. Set only those that are not.
  14315. # We use the long form for the default assignment because of an extremely
  14316. # bizarre bug on SunOS 4.1.3.
  14317. if $ac_need_defaults; then
  14318. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14319. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14320. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14321. fi
  14322. # Have a temporary directory for convenience. Make it in the build tree
  14323. # simply because there is no reason against having it here, and in addition,
  14324. # creating and moving files from /tmp can sometimes cause problems.
  14325. # Hook for its removal unless debugging.
  14326. # Note that there is a small window in which the directory will not be cleaned:
  14327. # after its creation but before its name has been assigned to `$tmp'.
  14328. $debug ||
  14329. {
  14330. tmp=
  14331. trap 'exit_status=$?
  14332. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14333. ' 0
  14334. trap 'as_fn_exit 1' 1 2 13 15
  14335. }
  14336. # Create a (secure) tmp directory for tmp files.
  14337. {
  14338. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14339. test -n "$tmp" && test -d "$tmp"
  14340. } ||
  14341. {
  14342. tmp=./conf$$-$RANDOM
  14343. (umask 077 && mkdir "$tmp")
  14344. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14345. # Set up the scripts for CONFIG_FILES section.
  14346. # No need to generate them if there are no CONFIG_FILES.
  14347. # This happens for instance with `./config.status config.h'.
  14348. if test -n "$CONFIG_FILES"; then
  14349. ac_cr=`echo X | tr X '\015'`
  14350. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14351. # But we know of no other shell where ac_cr would be empty at this
  14352. # point, so we can use a bashism as a fallback.
  14353. if test "x$ac_cr" = x; then
  14354. eval ac_cr=\$\'\\r\'
  14355. fi
  14356. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14357. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14358. ac_cs_awk_cr='\r'
  14359. else
  14360. ac_cs_awk_cr=$ac_cr
  14361. fi
  14362. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14363. _ACEOF
  14364. {
  14365. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14366. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14367. echo "_ACEOF"
  14368. } >conf$$subs.sh ||
  14369. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14370. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14371. ac_delim='%!_!# '
  14372. for ac_last_try in false false false false false :; do
  14373. . ./conf$$subs.sh ||
  14374. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14375. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14376. if test $ac_delim_n = $ac_delim_num; then
  14377. break
  14378. elif $ac_last_try; then
  14379. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14380. else
  14381. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14382. fi
  14383. done
  14384. rm -f conf$$subs.sh
  14385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14386. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14387. _ACEOF
  14388. sed -n '
  14389. h
  14390. s/^/S["/; s/!.*/"]=/
  14391. p
  14392. g
  14393. s/^[^!]*!//
  14394. :repl
  14395. t repl
  14396. s/'"$ac_delim"'$//
  14397. t delim
  14398. :nl
  14399. h
  14400. s/\(.\{148\}\)..*/\1/
  14401. t more1
  14402. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14403. p
  14404. n
  14405. b repl
  14406. :more1
  14407. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14408. p
  14409. g
  14410. s/.\{148\}//
  14411. t nl
  14412. :delim
  14413. h
  14414. s/\(.\{148\}\)..*/\1/
  14415. t more2
  14416. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14417. p
  14418. b
  14419. :more2
  14420. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14421. p
  14422. g
  14423. s/.\{148\}//
  14424. t delim
  14425. ' <conf$$subs.awk | sed '
  14426. /^[^""]/{
  14427. N
  14428. s/\n//
  14429. }
  14430. ' >>$CONFIG_STATUS || ac_write_fail=1
  14431. rm -f conf$$subs.awk
  14432. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14433. _ACAWK
  14434. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14435. for (key in S) S_is_set[key] = 1
  14436. FS = ""
  14437. }
  14438. {
  14439. line = $ 0
  14440. nfields = split(line, field, "@")
  14441. substed = 0
  14442. len = length(field[1])
  14443. for (i = 2; i < nfields; i++) {
  14444. key = field[i]
  14445. keylen = length(key)
  14446. if (S_is_set[key]) {
  14447. value = S[key]
  14448. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14449. len += length(value) + length(field[++i])
  14450. substed = 1
  14451. } else
  14452. len += 1 + keylen
  14453. }
  14454. print line
  14455. }
  14456. _ACAWK
  14457. _ACEOF
  14458. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14459. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14460. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14461. else
  14462. cat
  14463. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14464. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14465. _ACEOF
  14466. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14467. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14468. # trailing colons and then remove the whole line if VPATH becomes empty
  14469. # (actually we leave an empty line to preserve line numbers).
  14470. if test "x$srcdir" = x.; then
  14471. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14472. s/:*\$(srcdir):*/:/
  14473. s/:*\${srcdir}:*/:/
  14474. s/:*@srcdir@:*/:/
  14475. s/^\([^=]*=[ ]*\):*/\1/
  14476. s/:*$//
  14477. s/^[^=]*=[ ]*$//
  14478. }'
  14479. fi
  14480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14481. fi # test -n "$CONFIG_FILES"
  14482. # Set up the scripts for CONFIG_HEADERS section.
  14483. # No need to generate them if there are no CONFIG_HEADERS.
  14484. # This happens for instance with `./config.status Makefile'.
  14485. if test -n "$CONFIG_HEADERS"; then
  14486. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14487. BEGIN {
  14488. _ACEOF
  14489. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14490. # here-document in config.status, that substitutes the proper values into
  14491. # config.h.in to produce config.h.
  14492. # Create a delimiter string that does not exist in confdefs.h, to ease
  14493. # handling of long lines.
  14494. ac_delim='%!_!# '
  14495. for ac_last_try in false false :; do
  14496. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14497. if test -z "$ac_t"; then
  14498. break
  14499. elif $ac_last_try; then
  14500. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14501. else
  14502. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14503. fi
  14504. done
  14505. # For the awk script, D is an array of macro values keyed by name,
  14506. # likewise P contains macro parameters if any. Preserve backslash
  14507. # newline sequences.
  14508. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14509. sed -n '
  14510. s/.\{148\}/&'"$ac_delim"'/g
  14511. t rset
  14512. :rset
  14513. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14514. t def
  14515. d
  14516. :def
  14517. s/\\$//
  14518. t bsnl
  14519. s/["\\]/\\&/g
  14520. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14521. D["\1"]=" \3"/p
  14522. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14523. d
  14524. :bsnl
  14525. s/["\\]/\\&/g
  14526. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14527. D["\1"]=" \3\\\\\\n"\\/p
  14528. t cont
  14529. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14530. t cont
  14531. d
  14532. :cont
  14533. n
  14534. s/.\{148\}/&'"$ac_delim"'/g
  14535. t clear
  14536. :clear
  14537. s/\\$//
  14538. t bsnlc
  14539. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14540. d
  14541. :bsnlc
  14542. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14543. b cont
  14544. ' <confdefs.h | sed '
  14545. s/'"$ac_delim"'/"\\\
  14546. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14547. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14548. for (key in D) D_is_set[key] = 1
  14549. FS = ""
  14550. }
  14551. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14552. line = \$ 0
  14553. split(line, arg, " ")
  14554. if (arg[1] == "#") {
  14555. defundef = arg[2]
  14556. mac1 = arg[3]
  14557. } else {
  14558. defundef = substr(arg[1], 2)
  14559. mac1 = arg[2]
  14560. }
  14561. split(mac1, mac2, "(") #)
  14562. macro = mac2[1]
  14563. prefix = substr(line, 1, index(line, defundef) - 1)
  14564. if (D_is_set[macro]) {
  14565. # Preserve the white space surrounding the "#".
  14566. print prefix "define", macro P[macro] D[macro]
  14567. next
  14568. } else {
  14569. # Replace #undef with comments. This is necessary, for example,
  14570. # in the case of _POSIX_SOURCE, which is predefined and required
  14571. # on some systems where configure will not decide to define it.
  14572. if (defundef == "undef") {
  14573. print "/*", prefix defundef, macro, "*/"
  14574. next
  14575. }
  14576. }
  14577. }
  14578. { print }
  14579. _ACAWK
  14580. _ACEOF
  14581. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14582. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14583. fi # test -n "$CONFIG_HEADERS"
  14584. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14585. shift
  14586. for ac_tag
  14587. do
  14588. case $ac_tag in
  14589. :[FHLC]) ac_mode=$ac_tag; continue;;
  14590. esac
  14591. case $ac_mode$ac_tag in
  14592. :[FHL]*:*);;
  14593. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14594. :[FH]-) ac_tag=-:-;;
  14595. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14596. esac
  14597. ac_save_IFS=$IFS
  14598. IFS=:
  14599. set x $ac_tag
  14600. IFS=$ac_save_IFS
  14601. shift
  14602. ac_file=$1
  14603. shift
  14604. case $ac_mode in
  14605. :L) ac_source=$1;;
  14606. :[FH])
  14607. ac_file_inputs=
  14608. for ac_f
  14609. do
  14610. case $ac_f in
  14611. -) ac_f="$tmp/stdin";;
  14612. *) # Look for the file first in the build tree, then in the source tree
  14613. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14614. # because $ac_f cannot contain `:'.
  14615. test -f "$ac_f" ||
  14616. case $ac_f in
  14617. [\\/$]*) false;;
  14618. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14619. esac ||
  14620. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14621. esac
  14622. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14623. as_fn_append ac_file_inputs " '$ac_f'"
  14624. done
  14625. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14626. # use $as_me), people would be surprised to read:
  14627. # /* config.h. Generated by config.status. */
  14628. configure_input='Generated from '`
  14629. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14630. `' by configure.'
  14631. if test x"$ac_file" != x-; then
  14632. configure_input="$ac_file. $configure_input"
  14633. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14634. $as_echo "$as_me: creating $ac_file" >&6;}
  14635. fi
  14636. # Neutralize special characters interpreted by sed in replacement strings.
  14637. case $configure_input in #(
  14638. *\&* | *\|* | *\\* )
  14639. ac_sed_conf_input=`$as_echo "$configure_input" |
  14640. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14641. *) ac_sed_conf_input=$configure_input;;
  14642. esac
  14643. case $ac_tag in
  14644. *:-:* | *:-) cat >"$tmp/stdin" \
  14645. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14646. esac
  14647. ;;
  14648. esac
  14649. ac_dir=`$as_dirname -- "$ac_file" ||
  14650. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14651. X"$ac_file" : 'X\(//\)[^/]' \| \
  14652. X"$ac_file" : 'X\(//\)$' \| \
  14653. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14654. $as_echo X"$ac_file" |
  14655. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14656. s//\1/
  14657. q
  14658. }
  14659. /^X\(\/\/\)[^/].*/{
  14660. s//\1/
  14661. q
  14662. }
  14663. /^X\(\/\/\)$/{
  14664. s//\1/
  14665. q
  14666. }
  14667. /^X\(\/\).*/{
  14668. s//\1/
  14669. q
  14670. }
  14671. s/.*/./; q'`
  14672. as_dir="$ac_dir"; as_fn_mkdir_p
  14673. ac_builddir=.
  14674. case "$ac_dir" in
  14675. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14676. *)
  14677. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14678. # A ".." for each directory in $ac_dir_suffix.
  14679. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14680. case $ac_top_builddir_sub in
  14681. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14682. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14683. esac ;;
  14684. esac
  14685. ac_abs_top_builddir=$ac_pwd
  14686. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14687. # for backward compatibility:
  14688. ac_top_builddir=$ac_top_build_prefix
  14689. case $srcdir in
  14690. .) # We are building in place.
  14691. ac_srcdir=.
  14692. ac_top_srcdir=$ac_top_builddir_sub
  14693. ac_abs_top_srcdir=$ac_pwd ;;
  14694. [\\/]* | ?:[\\/]* ) # Absolute name.
  14695. ac_srcdir=$srcdir$ac_dir_suffix;
  14696. ac_top_srcdir=$srcdir
  14697. ac_abs_top_srcdir=$srcdir ;;
  14698. *) # Relative name.
  14699. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14700. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14701. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14702. esac
  14703. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14704. case $ac_mode in
  14705. :F)
  14706. #
  14707. # CONFIG_FILE
  14708. #
  14709. case $INSTALL in
  14710. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14711. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14712. esac
  14713. ac_MKDIR_P=$MKDIR_P
  14714. case $MKDIR_P in
  14715. [\\/$]* | ?:[\\/]* ) ;;
  14716. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14717. esac
  14718. _ACEOF
  14719. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14720. # If the template does not know about datarootdir, expand it.
  14721. # FIXME: This hack should be removed a few years after 2.60.
  14722. ac_datarootdir_hack=; ac_datarootdir_seen=
  14723. ac_sed_dataroot='
  14724. /datarootdir/ {
  14725. p
  14726. q
  14727. }
  14728. /@datadir@/p
  14729. /@docdir@/p
  14730. /@infodir@/p
  14731. /@localedir@/p
  14732. /@mandir@/p'
  14733. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14734. *datarootdir*) ac_datarootdir_seen=yes;;
  14735. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14737. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14738. _ACEOF
  14739. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14740. ac_datarootdir_hack='
  14741. s&@datadir@&$datadir&g
  14742. s&@docdir@&$docdir&g
  14743. s&@infodir@&$infodir&g
  14744. s&@localedir@&$localedir&g
  14745. s&@mandir@&$mandir&g
  14746. s&\\\${datarootdir}&$datarootdir&g' ;;
  14747. esac
  14748. _ACEOF
  14749. # Neutralize VPATH when `$srcdir' = `.'.
  14750. # Shell code in configure.ac might set extrasub.
  14751. # FIXME: do we really want to maintain this feature?
  14752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14753. ac_sed_extra="$ac_vpsub
  14754. $extrasub
  14755. _ACEOF
  14756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14757. :t
  14758. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14759. s|@configure_input@|$ac_sed_conf_input|;t t
  14760. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14761. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14762. s&@srcdir@&$ac_srcdir&;t t
  14763. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14764. s&@top_srcdir@&$ac_top_srcdir&;t t
  14765. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14766. s&@builddir@&$ac_builddir&;t t
  14767. s&@abs_builddir@&$ac_abs_builddir&;t t
  14768. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14769. s&@INSTALL@&$ac_INSTALL&;t t
  14770. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14771. $ac_datarootdir_hack
  14772. "
  14773. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14774. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14775. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14776. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14777. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14779. which seems to be undefined. Please make sure it is defined." >&5
  14780. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14781. which seems to be undefined. Please make sure it is defined." >&2;}
  14782. rm -f "$tmp/stdin"
  14783. case $ac_file in
  14784. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14785. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14786. esac \
  14787. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14788. ;;
  14789. :H)
  14790. #
  14791. # CONFIG_HEADER
  14792. #
  14793. if test x"$ac_file" != x-; then
  14794. {
  14795. $as_echo "/* $configure_input */" \
  14796. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14797. } >"$tmp/config.h" \
  14798. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14799. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14800. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14801. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14802. else
  14803. rm -f "$ac_file"
  14804. mv "$tmp/config.h" "$ac_file" \
  14805. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14806. fi
  14807. else
  14808. $as_echo "/* $configure_input */" \
  14809. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14810. || as_fn_error "could not create -" "$LINENO" 5
  14811. fi
  14812. # Compute "$ac_file"'s index in $config_headers.
  14813. _am_arg="$ac_file"
  14814. _am_stamp_count=1
  14815. for _am_header in $config_headers :; do
  14816. case $_am_header in
  14817. $_am_arg | $_am_arg:* )
  14818. break ;;
  14819. * )
  14820. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14821. esac
  14822. done
  14823. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14824. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14825. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14826. X"$_am_arg" : 'X\(//\)$' \| \
  14827. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14828. $as_echo X"$_am_arg" |
  14829. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14830. s//\1/
  14831. q
  14832. }
  14833. /^X\(\/\/\)[^/].*/{
  14834. s//\1/
  14835. q
  14836. }
  14837. /^X\(\/\/\)$/{
  14838. s//\1/
  14839. q
  14840. }
  14841. /^X\(\/\).*/{
  14842. s//\1/
  14843. q
  14844. }
  14845. s/.*/./; q'`/stamp-h$_am_stamp_count
  14846. ;;
  14847. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14848. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14849. ;;
  14850. esac
  14851. case $ac_file$ac_mode in
  14852. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14853. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14854. # are listed without --file. Let's play safe and only enable the eval
  14855. # if we detect the quoting.
  14856. case $CONFIG_FILES in
  14857. *\'*) eval set x "$CONFIG_FILES" ;;
  14858. *) set x $CONFIG_FILES ;;
  14859. esac
  14860. shift
  14861. for mf
  14862. do
  14863. # Strip MF so we end up with the name of the file.
  14864. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14865. # Check whether this is an Automake generated Makefile or not.
  14866. # We used to match only the files named `Makefile.in', but
  14867. # some people rename them; so instead we look at the file content.
  14868. # Grep'ing the first line is not enough: some people post-process
  14869. # each Makefile.in and add a new line on top of each file to say so.
  14870. # Grep'ing the whole file is not good either: AIX grep has a line
  14871. # limit of 2048, but all sed's we know have understand at least 4000.
  14872. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14873. dirpart=`$as_dirname -- "$mf" ||
  14874. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14875. X"$mf" : 'X\(//\)[^/]' \| \
  14876. X"$mf" : 'X\(//\)$' \| \
  14877. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14878. $as_echo X"$mf" |
  14879. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14880. s//\1/
  14881. q
  14882. }
  14883. /^X\(\/\/\)[^/].*/{
  14884. s//\1/
  14885. q
  14886. }
  14887. /^X\(\/\/\)$/{
  14888. s//\1/
  14889. q
  14890. }
  14891. /^X\(\/\).*/{
  14892. s//\1/
  14893. q
  14894. }
  14895. s/.*/./; q'`
  14896. else
  14897. continue
  14898. fi
  14899. # Extract the definition of DEPDIR, am__include, and am__quote
  14900. # from the Makefile without running `make'.
  14901. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14902. test -z "$DEPDIR" && continue
  14903. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14904. test -z "am__include" && continue
  14905. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14906. # When using ansi2knr, U may be empty or an underscore; expand it
  14907. U=`sed -n 's/^U = //p' < "$mf"`
  14908. # Find all dependency output files, they are included files with
  14909. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14910. # simplest approach to changing $(DEPDIR) to its actual value in the
  14911. # expansion.
  14912. for file in `sed -n "
  14913. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14914. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14915. # Make sure the directory exists.
  14916. test -f "$dirpart/$file" && continue
  14917. fdir=`$as_dirname -- "$file" ||
  14918. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14919. X"$file" : 'X\(//\)[^/]' \| \
  14920. X"$file" : 'X\(//\)$' \| \
  14921. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14922. $as_echo X"$file" |
  14923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14924. s//\1/
  14925. q
  14926. }
  14927. /^X\(\/\/\)[^/].*/{
  14928. s//\1/
  14929. q
  14930. }
  14931. /^X\(\/\/\)$/{
  14932. s//\1/
  14933. q
  14934. }
  14935. /^X\(\/\).*/{
  14936. s//\1/
  14937. q
  14938. }
  14939. s/.*/./; q'`
  14940. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14941. # echo "creating $dirpart/$file"
  14942. echo '# dummy' > "$dirpart/$file"
  14943. done
  14944. done
  14945. }
  14946. ;;
  14947. "po-directories":C)
  14948. for ac_file in $CONFIG_FILES; do
  14949. # Support "outfile[:infile[:infile...]]"
  14950. case "$ac_file" in
  14951. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14952. esac
  14953. # PO directories have a Makefile.in generated from Makefile.in.in.
  14954. case "$ac_file" in */Makefile.in)
  14955. # Adjust a relative srcdir.
  14956. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14957. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  14958. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14959. # In autoconf-2.13 it is called $ac_given_srcdir.
  14960. # In autoconf-2.50 it is called $srcdir.
  14961. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14962. case "$ac_given_srcdir" in
  14963. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14964. /*) top_srcdir="$ac_given_srcdir" ;;
  14965. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14966. esac
  14967. # Treat a directory as a PO directory if and only if it has a
  14968. # POTFILES.in file. This allows packages to have multiple PO
  14969. # directories under different names or in different locations.
  14970. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14971. rm -f "$ac_dir/POTFILES"
  14972. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14973. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14974. POMAKEFILEDEPS="POTFILES.in"
  14975. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  14976. # on $ac_dir but don't depend on user-specified configuration
  14977. # parameters.
  14978. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14979. # The LINGUAS file contains the set of available languages.
  14980. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14981. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  14982. fi
  14983. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14984. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14985. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14986. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14987. else
  14988. # The set of available languages was given in configure.in.
  14989. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  14990. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14991. fi
  14992. # Compute POFILES
  14993. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  14994. # Compute UPDATEPOFILES
  14995. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  14996. # Compute DUMMYPOFILES
  14997. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  14998. # Compute GMOFILES
  14999. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  15000. case "$ac_given_srcdir" in
  15001. .) srcdirpre= ;;
  15002. *) srcdirpre='$(srcdir)/' ;;
  15003. esac
  15004. POFILES=
  15005. UPDATEPOFILES=
  15006. DUMMYPOFILES=
  15007. GMOFILES=
  15008. for lang in $ALL_LINGUAS; do
  15009. POFILES="$POFILES $srcdirpre$lang.po"
  15010. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  15011. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  15012. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  15013. done
  15014. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  15015. # environment variable.
  15016. INST_LINGUAS=
  15017. if test -n "$ALL_LINGUAS"; then
  15018. for presentlang in $ALL_LINGUAS; do
  15019. useit=no
  15020. if test "%UNSET%" != "$LINGUAS"; then
  15021. desiredlanguages="$LINGUAS"
  15022. else
  15023. desiredlanguages="$ALL_LINGUAS"
  15024. fi
  15025. for desiredlang in $desiredlanguages; do
  15026. # Use the presentlang catalog if desiredlang is
  15027. # a. equal to presentlang, or
  15028. # b. a variant of presentlang (because in this case,
  15029. # presentlang can be used as a fallback for messages
  15030. # which are not translated in the desiredlang catalog).
  15031. case "$desiredlang" in
  15032. "$presentlang"*) useit=yes;;
  15033. esac
  15034. done
  15035. if test $useit = yes; then
  15036. INST_LINGUAS="$INST_LINGUAS $presentlang"
  15037. fi
  15038. done
  15039. fi
  15040. CATALOGS=
  15041. if test -n "$INST_LINGUAS"; then
  15042. for lang in $INST_LINGUAS; do
  15043. CATALOGS="$CATALOGS $lang.gmo"
  15044. done
  15045. fi
  15046. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  15047. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  15048. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  15049. if test -f "$f"; then
  15050. case "$f" in
  15051. *.orig | *.bak | *~) ;;
  15052. *) cat "$f" >> "$ac_dir/Makefile" ;;
  15053. esac
  15054. fi
  15055. done
  15056. fi
  15057. ;;
  15058. esac
  15059. done ;;
  15060. esac
  15061. done # for ac_tag
  15062. as_fn_exit 0
  15063. _ACEOF
  15064. ac_clean_files=$ac_clean_files_save
  15065. test $ac_write_fail = 0 ||
  15066. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15067. # configure is writing to config.log, and then calls config.status.
  15068. # config.status does its own redirection, appending to config.log.
  15069. # Unfortunately, on DOS this fails, as config.log is still kept open
  15070. # by configure, so config.status won't be able to write to it; its
  15071. # output is simply discarded. So we exec the FD to /dev/null,
  15072. # effectively closing config.log, so it can be properly (re)opened and
  15073. # appended to by config.status. When coming back to configure, we
  15074. # need to make the FD available again.
  15075. if test "$no_create" != yes; then
  15076. ac_cs_success=:
  15077. ac_config_status_args=
  15078. test "$silent" = yes &&
  15079. ac_config_status_args="$ac_config_status_args --quiet"
  15080. exec 5>/dev/null
  15081. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15082. exec 5>>config.log
  15083. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15084. # would make configure fail if this is the last instruction.
  15085. $ac_cs_success || as_fn_exit $?
  15086. fi
  15087. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15089. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15090. fi
  15091. echo " "
  15092. echo "Build: $build"
  15093. echo "Target: $target"
  15094. echo "Install prefix: $prefix"
  15095. echo "CXXFLAGS: $CXXFLAGS"
  15096. echo "CFLAGS: $CFLAGS"
  15097. echo "CPPFLAGS: $CPPFLAGS"
  15098. echo "LDFLAGS: $LDFLAGS"
  15099. echo "LIBS: $LIBS"
  15100. echo "SQLite3: $have_sqlite3"
  15101. echo "GnuTLS: $have_libgnutls"
  15102. echo "OpenSSL: $have_openssl"
  15103. echo "CA Bundle: $ca_bundle"
  15104. echo "LibXML2: $have_libxml2"
  15105. echo "LibExpat: $have_libexpat"
  15106. echo "LibCares: $have_libcares"
  15107. echo "Libz: $have_libz"
  15108. echo "Epoll: $have_epoll"
  15109. echo "Bittorrent: $enable_bittorrent"
  15110. echo "Metalink: $enable_metalink"
  15111. echo "XML-RPC: $enable_xml_rpc"