configure 372 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.20 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1860. (eval $ac_try) 2>&5
  1861. ac_status=$?
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. fi
  2838. # Create static binaries
  2839. if test -z "$no_static"
  2840. then
  2841. if test -n "$GCC"
  2842. then
  2843. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2844. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2845. if test "${egg_cv_var_ccstatic+set}" = set; then
  2846. echo $ECHO_N "(cached) $ECHO_C" >&6
  2847. else
  2848. ac_old_CC="$CC"
  2849. CC="$CC -static"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2865. (eval $ac_compile) 2>conftest.er1
  2866. ac_status=$?
  2867. grep -v '^ *+' conftest.er1 >conftest.err
  2868. rm -f conftest.er1
  2869. cat conftest.err >&5
  2870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. (exit $ac_status); } &&
  2872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2874. (eval $ac_try) 2>&5
  2875. ac_status=$?
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); }; } &&
  2878. { ac_try='test -s conftest.$ac_objext'
  2879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2880. (eval $ac_try) 2>&5
  2881. ac_status=$?
  2882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2883. (exit $ac_status); }; }; then
  2884. egg_cv_var_ccstatic="yes"
  2885. else
  2886. echo "$as_me: failed program was:" >&5
  2887. sed 's/^/| /' conftest.$ac_ext >&5
  2888. egg_cv_var_ccstatic="no"
  2889. fi
  2890. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2891. CC="$ac_old_CC"
  2892. fi
  2893. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2894. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2895. if test "$egg_cv_var_ccstatic" = "yes"
  2896. then
  2897. CCDEBUG="$CC"
  2898. CC="$CC -static"
  2899. else
  2900. cat << 'EOF' >&2
  2901. configure: error:
  2902. Your C compiler does not support -static.
  2903. This compile flag is required for the botpack.
  2904. EOF
  2905. exit 1
  2906. fi
  2907. fi
  2908. fi
  2909. # Checks for programs
  2910. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2911. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2912. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2913. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2914. echo $ECHO_N "(cached) $ECHO_C" >&6
  2915. else
  2916. cat >conftest.make <<\_ACEOF
  2917. all:
  2918. @echo 'ac_maketemp="$(MAKE)"'
  2919. _ACEOF
  2920. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2921. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2922. if test -n "$ac_maketemp"; then
  2923. eval ac_cv_prog_make_${ac_make}_set=yes
  2924. else
  2925. eval ac_cv_prog_make_${ac_make}_set=no
  2926. fi
  2927. rm -f conftest.make
  2928. fi
  2929. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2930. echo "$as_me:$LINENO: result: yes" >&5
  2931. echo "${ECHO_T}yes" >&6
  2932. SET_MAKE=
  2933. else
  2934. echo "$as_me:$LINENO: result: no" >&5
  2935. echo "${ECHO_T}no" >&6
  2936. SET_MAKE="MAKE=${MAKE-make}"
  2937. fi
  2938. cat << 'EOF' > conftest.head
  2939. a
  2940. b
  2941. c
  2942. EOF
  2943. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2944. do
  2945. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2946. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2947. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2948. echo $ECHO_N "(cached) $ECHO_C" >&6
  2949. else
  2950. if test -n "$HEAD_1"
  2951. then
  2952. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2953. else
  2954. if test "`cat conftest.head | $ac_prog`" = "a";
  2955. then
  2956. echo "$as_me:$LINENO: result: yes" >&5
  2957. echo "${ECHO_T}yes" >&6
  2958. ac_cv_prog_HEAD_1=$ac_prog
  2959. else
  2960. echo "$as_me:$LINENO: result: no" >&5
  2961. echo "${ECHO_T}no" >&6
  2962. fi
  2963. fi
  2964. fi
  2965. test -n "$ac_cv_prog_HEAD_1" && break
  2966. done
  2967. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2968. then
  2969. cat << 'EOF' >&2
  2970. configure: error:
  2971. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2972. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2973. EOF
  2974. exit 1
  2975. fi
  2976. rm -f conftest.head
  2977. HEAD_1=$ac_cv_prog_HEAD_1
  2978. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2979. for ac_prog in gawk mawk nawk awk
  2980. do
  2981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2982. set dummy $ac_prog; ac_word=$2
  2983. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2985. if test "${ac_cv_prog_AWK+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. if test -n "$AWK"; then
  2989. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_prog_AWK="$ac_prog"
  2999. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. fi
  3005. fi
  3006. AWK=$ac_cv_prog_AWK
  3007. if test -n "$AWK"; then
  3008. echo "$as_me:$LINENO: result: $AWK" >&5
  3009. echo "${ECHO_T}$AWK" >&6
  3010. else
  3011. echo "$as_me:$LINENO: result: no" >&5
  3012. echo "${ECHO_T}no" >&6
  3013. fi
  3014. test -n "$AWK" && break
  3015. done
  3016. if test "${AWK-x}" = "x"
  3017. then
  3018. cat << 'EOF' >&2
  3019. configure: error:
  3020. This system seems to lack a working 'awk' command.
  3021. A working 'awk' command is required to compile Eggdrop.
  3022. EOF
  3023. exit 1
  3024. fi
  3025. # basename is needed for Tcl library and header checks
  3026. # Extract the first word of "basename", so it can be a program name with args.
  3027. set dummy basename; ac_word=$2
  3028. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3029. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3030. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3031. echo $ECHO_N "(cached) $ECHO_C" >&6
  3032. else
  3033. if test -n "$BASENAME"; then
  3034. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3035. else
  3036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3037. for as_dir in $PATH
  3038. do
  3039. IFS=$as_save_IFS
  3040. test -z "$as_dir" && as_dir=.
  3041. for ac_exec_ext in '' $ac_executable_extensions; do
  3042. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3043. ac_cv_prog_BASENAME="basename"
  3044. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3045. break 2
  3046. fi
  3047. done
  3048. done
  3049. fi
  3050. fi
  3051. BASENAME=$ac_cv_prog_BASENAME
  3052. if test -n "$BASENAME"; then
  3053. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3054. echo "${ECHO_T}$BASENAME" >&6
  3055. else
  3056. echo "$as_me:$LINENO: result: no" >&5
  3057. echo "${ECHO_T}no" >&6
  3058. fi
  3059. if test "${BASENAME-x}" = "x"
  3060. then
  3061. cat << 'EOF' >&2
  3062. configure: error:
  3063. This system seems to lack a working 'basename' command.
  3064. A working 'basename' command is required to compile Eggdrop.
  3065. EOF
  3066. exit 1
  3067. fi
  3068. # Extract the first word of "objcopy", so it can be a program name with args.
  3069. set dummy objcopy; ac_word=$2
  3070. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3071. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3072. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if test -n "$OBJCOPY"; then
  3076. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3077. else
  3078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3079. for as_dir in $PATH
  3080. do
  3081. IFS=$as_save_IFS
  3082. test -z "$as_dir" && as_dir=.
  3083. for ac_exec_ext in '' $ac_executable_extensions; do
  3084. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3085. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3086. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3087. break 2
  3088. fi
  3089. done
  3090. done
  3091. fi
  3092. fi
  3093. OBJCOPY=$ac_cv_prog_OBJCOPY
  3094. if test -n "$OBJCOPY"; then
  3095. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3096. echo "${ECHO_T}$OBJCOPY" >&6
  3097. else
  3098. echo "$as_me:$LINENO: result: no" >&5
  3099. echo "${ECHO_T}no" >&6
  3100. fi
  3101. # Extract the first word of "strip", so it can be a program name with args.
  3102. set dummy strip; ac_word=$2
  3103. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3104. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3105. if test "${ac_cv_prog_STRIP+set}" = set; then
  3106. echo $ECHO_N "(cached) $ECHO_C" >&6
  3107. else
  3108. if test -n "$STRIP"; then
  3109. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3110. else
  3111. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3112. for as_dir in $PATH
  3113. do
  3114. IFS=$as_save_IFS
  3115. test -z "$as_dir" && as_dir=.
  3116. for ac_exec_ext in '' $ac_executable_extensions; do
  3117. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3118. ac_cv_prog_STRIP="strip"
  3119. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3120. break 2
  3121. fi
  3122. done
  3123. done
  3124. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3125. fi
  3126. fi
  3127. STRIP=$ac_cv_prog_STRIP
  3128. if test -n "$STRIP"; then
  3129. echo "$as_me:$LINENO: result: $STRIP" >&5
  3130. echo "${ECHO_T}$STRIP" >&6
  3131. else
  3132. echo "$as_me:$LINENO: result: no" >&5
  3133. echo "${ECHO_T}no" >&6
  3134. fi
  3135. # Extract the first word of "uname", so it can be a program name with args.
  3136. set dummy uname; ac_word=$2
  3137. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3138. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3139. if test "${ac_cv_prog_UNAME+set}" = set; then
  3140. echo $ECHO_N "(cached) $ECHO_C" >&6
  3141. else
  3142. if test -n "$UNAME"; then
  3143. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3144. else
  3145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3146. for as_dir in $PATH
  3147. do
  3148. IFS=$as_save_IFS
  3149. test -z "$as_dir" && as_dir=.
  3150. for ac_exec_ext in '' $ac_executable_extensions; do
  3151. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3152. ac_cv_prog_UNAME="uname"
  3153. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3154. break 2
  3155. fi
  3156. done
  3157. done
  3158. fi
  3159. fi
  3160. UNAME=$ac_cv_prog_UNAME
  3161. if test -n "$UNAME"; then
  3162. echo "$as_me:$LINENO: result: $UNAME" >&5
  3163. echo "${ECHO_T}$UNAME" >&6
  3164. else
  3165. echo "$as_me:$LINENO: result: no" >&5
  3166. echo "${ECHO_T}no" >&6
  3167. fi
  3168. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3169. # Extract the first word of "distcc", so it can be a program name with args.
  3170. set dummy distcc; ac_word=$2
  3171. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3173. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. if test -n "$DISTCC"; then
  3177. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3186. ac_cv_prog_DISTCC="distcc"
  3187. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. fi
  3193. fi
  3194. DISTCC=$ac_cv_prog_DISTCC
  3195. if test -n "$DISTCC"; then
  3196. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3197. echo "${ECHO_T}$DISTCC" >&6
  3198. else
  3199. echo "$as_me:$LINENO: result: no" >&5
  3200. echo "${ECHO_T}no" >&6
  3201. fi
  3202. # Test the os and set the module linking settings
  3203. LINUX=no
  3204. IRIX=no
  3205. SUNOS=no
  3206. EGG_CYGWIN=no
  3207. echo "$as_me:$LINENO: checking system type" >&5
  3208. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3209. if test "${egg_cv_var_system_type+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. egg_cv_var_system_type=`$UNAME -s`
  3213. fi
  3214. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3215. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3216. echo "$as_me:$LINENO: checking system release" >&5
  3217. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3218. if test "${egg_cv_var_system_release+set}" = set; then
  3219. echo $ECHO_N "(cached) $ECHO_C" >&6
  3220. else
  3221. egg_cv_var_system_release=`$UNAME -r`
  3222. fi
  3223. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3224. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3225. case "$egg_cv_var_system_type" in
  3226. BSD/OS)
  3227. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3228. 2)
  3229. ;;
  3230. *)
  3231. CFLAGS="$CFLAGS -Wall"
  3232. ;;
  3233. esac
  3234. ;;
  3235. CYGWI*)
  3236. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3237. 1.*)
  3238. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3239. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3240. WIN32FLAGS=
  3241. cat >conftest.$ac_ext <<_ACEOF
  3242. /* confdefs.h. */
  3243. _ACEOF
  3244. cat confdefs.h >>conftest.$ac_ext
  3245. cat >>conftest.$ac_ext <<_ACEOF
  3246. /* end confdefs.h. */
  3247. int
  3248. main ()
  3249. {
  3250. #ifndef WIN32
  3251. # ifndef _WIN32
  3252. # error WIN32 or _WIN32 not defined
  3253. # endif
  3254. #endif
  3255. ;
  3256. return 0;
  3257. }
  3258. _ACEOF
  3259. rm -f conftest.$ac_objext
  3260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3261. (eval $ac_compile) 2>conftest.er1
  3262. ac_status=$?
  3263. grep -v '^ *+' conftest.er1 >conftest.err
  3264. rm -f conftest.er1
  3265. cat conftest.err >&5
  3266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3267. (exit $ac_status); } &&
  3268. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3270. (eval $ac_try) 2>&5
  3271. ac_status=$?
  3272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3273. (exit $ac_status); }; } &&
  3274. { ac_try='test -s conftest.$ac_objext'
  3275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3276. (eval $ac_try) 2>&5
  3277. ac_status=$?
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); }; }; then
  3280. echo "$as_me:$LINENO: result: present by default" >&5
  3281. echo "${ECHO_T}present by default" >&6
  3282. else
  3283. echo "$as_me: failed program was:" >&5
  3284. sed 's/^/| /' conftest.$ac_ext >&5
  3285. ac_compile_save="$ac_compile"
  3286. save_CC="$CC"
  3287. ac_compile="$ac_compile -mwin32"
  3288. CC="$CC -mwin32"
  3289. cat >conftest.$ac_ext <<_ACEOF
  3290. /* confdefs.h. */
  3291. _ACEOF
  3292. cat confdefs.h >>conftest.$ac_ext
  3293. cat >>conftest.$ac_ext <<_ACEOF
  3294. /* end confdefs.h. */
  3295. int
  3296. main ()
  3297. {
  3298. #ifndef WIN32
  3299. # ifndef _WIN32
  3300. # error WIN32 or _WIN32 not defined
  3301. # endif
  3302. #endif
  3303. ;
  3304. return 0;
  3305. }
  3306. _ACEOF
  3307. rm -f conftest.$ac_objext
  3308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3309. (eval $ac_compile) 2>conftest.er1
  3310. ac_status=$?
  3311. grep -v '^ *+' conftest.er1 >conftest.err
  3312. rm -f conftest.er1
  3313. cat conftest.err >&5
  3314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3315. (exit $ac_status); } &&
  3316. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3318. (eval $ac_try) 2>&5
  3319. ac_status=$?
  3320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3321. (exit $ac_status); }; } &&
  3322. { ac_try='test -s conftest.$ac_objext'
  3323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3324. (eval $ac_try) 2>&5
  3325. ac_status=$?
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); }; }; then
  3328. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3329. echo "${ECHO_T}found via -mwin32" >&6
  3330. ac_compile="$ac_compile_save"
  3331. CC="$save_CC"
  3332. WIN32FLAGS="-mwin32"
  3333. else
  3334. echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. ac_compile="$ac_compile_save"
  3337. CC="$save_CC"
  3338. echo "$as_me:$LINENO: result: not found" >&5
  3339. echo "${ECHO_T}not found" >&6
  3340. fi
  3341. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. CC="$CC $WIN32FLAGS"
  3345. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3346. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3347. if test -r /usr/lib/binmode.o
  3348. then
  3349. echo "$as_me:$LINENO: result: yes" >&5
  3350. echo "${ECHO_T}yes" >&6
  3351. LIBS="$LIBS /usr/lib/binmode.o"
  3352. else
  3353. echo "$as_me:$LINENO: result: no" >&5
  3354. echo "${ECHO_T}no" >&6
  3355. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3356. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3357. fi
  3358. ;;
  3359. *)
  3360. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3361. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3362. ;;
  3363. esac
  3364. EGG_CYGWIN=yes
  3365. cat >>confdefs.h <<\_ACEOF
  3366. #define CYGWIN_HACKS 1
  3367. _ACEOF
  3368. ;;
  3369. IRIX)
  3370. IRIX=yes
  3371. ;;
  3372. Ultrix)
  3373. SHELL=/bin/sh5
  3374. ;;
  3375. SINIX*)
  3376. ;;
  3377. BeOS)
  3378. ;;
  3379. Linux)
  3380. LINUX=yes
  3381. CFLAGS="$CFLAGS -Wall"
  3382. ;;
  3383. Lynx)
  3384. ;;
  3385. QNX)
  3386. ;;
  3387. OSF1)
  3388. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3389. V*)
  3390. # FIXME: we should check this in a separate test
  3391. # Digital OSF uses an ancient version of gawk
  3392. if test "$AWK" = "gawk"
  3393. then
  3394. AWK=awk
  3395. fi
  3396. ;;
  3397. 1.0|1.1|1.2)
  3398. cat >>confdefs.h <<\_ACEOF
  3399. #define OSF1_HACKS 1
  3400. _ACEOF
  3401. ;;
  3402. 1.*)
  3403. cat >>confdefs.h <<\_ACEOF
  3404. #define OSF1_HACKS 1
  3405. _ACEOF
  3406. ;;
  3407. *)
  3408. ;;
  3409. esac
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define STOP_UAC 1
  3412. _ACEOF
  3413. cat >>confdefs.h <<\_ACEOF
  3414. #define BROKEN_SNPRINTF 1
  3415. _ACEOF
  3416. ;;
  3417. SunOS)
  3418. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3419. then
  3420. # SunOS 4
  3421. SUNOS=yes
  3422. fi
  3423. ;;
  3424. *BSD)
  3425. # FreeBSD/OpenBSD/NetBSD
  3426. ;;
  3427. *)
  3428. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3429. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3430. if test -r /mach
  3431. then
  3432. echo "$as_me:$LINENO: result: yes" >&5
  3433. echo "${ECHO_T}yes" >&6
  3434. cat >>confdefs.h <<\_ACEOF
  3435. #define BORGCUBES 1
  3436. _ACEOF
  3437. else
  3438. echo "$as_me:$LINENO: result: no" >&5
  3439. echo "${ECHO_T}no" >&6
  3440. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3441. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3442. if test -r /cmds
  3443. then
  3444. echo "$as_me:$LINENO: result: yes" >&5
  3445. echo "${ECHO_T}yes" >&6
  3446. else
  3447. echo "$as_me:$LINENO: result: no" >&5
  3448. echo "${ECHO_T}no" >&6
  3449. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3450. echo "${ECHO_T}Something unknown!" >&6
  3451. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3452. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3453. fi
  3454. fi
  3455. ;;
  3456. esac
  3457. dns_reslib_avail="true"
  3458. echo "$as_me:$LINENO: checking for res_init" >&5
  3459. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3460. if test "${ac_cv_func_res_init+set}" = set; then
  3461. echo $ECHO_N "(cached) $ECHO_C" >&6
  3462. else
  3463. cat >conftest.$ac_ext <<_ACEOF
  3464. /* confdefs.h. */
  3465. _ACEOF
  3466. cat confdefs.h >>conftest.$ac_ext
  3467. cat >>conftest.$ac_ext <<_ACEOF
  3468. /* end confdefs.h. */
  3469. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3470. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3471. #define res_init innocuous_res_init
  3472. /* System header to define __stub macros and hopefully few prototypes,
  3473. which can conflict with char res_init (); below.
  3474. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3475. <limits.h> exists even on freestanding compilers. */
  3476. #ifdef __STDC__
  3477. # include <limits.h>
  3478. #else
  3479. # include <assert.h>
  3480. #endif
  3481. #undef res_init
  3482. /* Override any gcc2 internal prototype to avoid an error. */
  3483. #ifdef __cplusplus
  3484. extern "C"
  3485. {
  3486. #endif
  3487. /* We use char because int might match the return type of a gcc2
  3488. builtin and then its argument prototype would still apply. */
  3489. char res_init ();
  3490. /* The GNU C library defines this for functions which it implements
  3491. to always fail with ENOSYS. Some functions are actually named
  3492. something starting with __ and the normal name is an alias. */
  3493. #if defined (__stub_res_init) || defined (__stub___res_init)
  3494. choke me
  3495. #else
  3496. char (*f) () = res_init;
  3497. #endif
  3498. #ifdef __cplusplus
  3499. }
  3500. #endif
  3501. int
  3502. main ()
  3503. {
  3504. return f != res_init;
  3505. ;
  3506. return 0;
  3507. }
  3508. _ACEOF
  3509. rm -f conftest.$ac_objext conftest$ac_exeext
  3510. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3511. (eval $ac_link) 2>conftest.er1
  3512. ac_status=$?
  3513. grep -v '^ *+' conftest.er1 >conftest.err
  3514. rm -f conftest.er1
  3515. cat conftest.err >&5
  3516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3517. (exit $ac_status); } &&
  3518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3520. (eval $ac_try) 2>&5
  3521. ac_status=$?
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); }; } &&
  3524. { ac_try='test -s conftest$ac_exeext'
  3525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3526. (eval $ac_try) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); }; }; then
  3530. ac_cv_func_res_init=yes
  3531. else
  3532. echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. ac_cv_func_res_init=no
  3535. fi
  3536. rm -f conftest.err conftest.$ac_objext \
  3537. conftest$ac_exeext conftest.$ac_ext
  3538. fi
  3539. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3540. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3541. if test $ac_cv_func_res_init = yes; then
  3542. :
  3543. else
  3544. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3545. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3546. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3547. echo $ECHO_N "(cached) $ECHO_C" >&6
  3548. else
  3549. ac_check_lib_save_LIBS=$LIBS
  3550. LIBS="-lresolv $LIBS"
  3551. cat >conftest.$ac_ext <<_ACEOF
  3552. /* confdefs.h. */
  3553. _ACEOF
  3554. cat confdefs.h >>conftest.$ac_ext
  3555. cat >>conftest.$ac_ext <<_ACEOF
  3556. /* end confdefs.h. */
  3557. /* Override any gcc2 internal prototype to avoid an error. */
  3558. #ifdef __cplusplus
  3559. extern "C"
  3560. #endif
  3561. /* We use char because int might match the return type of a gcc2
  3562. builtin and then its argument prototype would still apply. */
  3563. char res_init ();
  3564. int
  3565. main ()
  3566. {
  3567. res_init ();
  3568. ;
  3569. return 0;
  3570. }
  3571. _ACEOF
  3572. rm -f conftest.$ac_objext conftest$ac_exeext
  3573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3574. (eval $ac_link) 2>conftest.er1
  3575. ac_status=$?
  3576. grep -v '^ *+' conftest.er1 >conftest.err
  3577. rm -f conftest.er1
  3578. cat conftest.err >&5
  3579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3580. (exit $ac_status); } &&
  3581. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3582. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3583. (eval $ac_try) 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }; } &&
  3587. { ac_try='test -s conftest$ac_exeext'
  3588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3589. (eval $ac_try) 2>&5
  3590. ac_status=$?
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); }; }; then
  3593. ac_cv_lib_resolv_res_init=yes
  3594. else
  3595. echo "$as_me: failed program was:" >&5
  3596. sed 's/^/| /' conftest.$ac_ext >&5
  3597. ac_cv_lib_resolv_res_init=no
  3598. fi
  3599. rm -f conftest.err conftest.$ac_objext \
  3600. conftest$ac_exeext conftest.$ac_ext
  3601. LIBS=$ac_check_lib_save_LIBS
  3602. fi
  3603. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3604. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3605. if test $ac_cv_lib_resolv_res_init = yes; then
  3606. RESLIB="-lresolv"
  3607. else
  3608. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3609. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3610. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3611. echo $ECHO_N "(cached) $ECHO_C" >&6
  3612. else
  3613. ac_check_lib_save_LIBS=$LIBS
  3614. LIBS="-lbind $LIBS"
  3615. cat >conftest.$ac_ext <<_ACEOF
  3616. /* confdefs.h. */
  3617. _ACEOF
  3618. cat confdefs.h >>conftest.$ac_ext
  3619. cat >>conftest.$ac_ext <<_ACEOF
  3620. /* end confdefs.h. */
  3621. /* Override any gcc2 internal prototype to avoid an error. */
  3622. #ifdef __cplusplus
  3623. extern "C"
  3624. #endif
  3625. /* We use char because int might match the return type of a gcc2
  3626. builtin and then its argument prototype would still apply. */
  3627. char res_init ();
  3628. int
  3629. main ()
  3630. {
  3631. res_init ();
  3632. ;
  3633. return 0;
  3634. }
  3635. _ACEOF
  3636. rm -f conftest.$ac_objext conftest$ac_exeext
  3637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3638. (eval $ac_link) 2>conftest.er1
  3639. ac_status=$?
  3640. grep -v '^ *+' conftest.er1 >conftest.err
  3641. rm -f conftest.er1
  3642. cat conftest.err >&5
  3643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3644. (exit $ac_status); } &&
  3645. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3647. (eval $ac_try) 2>&5
  3648. ac_status=$?
  3649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3650. (exit $ac_status); }; } &&
  3651. { ac_try='test -s conftest$ac_exeext'
  3652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3653. (eval $ac_try) 2>&5
  3654. ac_status=$?
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); }; }; then
  3657. ac_cv_lib_bind_res_init=yes
  3658. else
  3659. echo "$as_me: failed program was:" >&5
  3660. sed 's/^/| /' conftest.$ac_ext >&5
  3661. ac_cv_lib_bind_res_init=no
  3662. fi
  3663. rm -f conftest.err conftest.$ac_objext \
  3664. conftest$ac_exeext conftest.$ac_ext
  3665. LIBS=$ac_check_lib_save_LIBS
  3666. fi
  3667. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3668. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3669. if test $ac_cv_lib_bind_res_init = yes; then
  3670. RESLIB="-lbind"
  3671. else
  3672. dns_reslib_avail="false";
  3673. fi
  3674. fi
  3675. fi
  3676. if test "${dns_reslib_avail}" = false; then
  3677. dns_reslib_avail="true"
  3678. echo "$as_me:$LINENO: checking for __res_init" >&5
  3679. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3680. if test "${ac_cv_func___res_init+set}" = set; then
  3681. echo $ECHO_N "(cached) $ECHO_C" >&6
  3682. else
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. /* confdefs.h. */
  3685. _ACEOF
  3686. cat confdefs.h >>conftest.$ac_ext
  3687. cat >>conftest.$ac_ext <<_ACEOF
  3688. /* end confdefs.h. */
  3689. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3691. #define __res_init innocuous___res_init
  3692. /* System header to define __stub macros and hopefully few prototypes,
  3693. which can conflict with char __res_init (); below.
  3694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3695. <limits.h> exists even on freestanding compilers. */
  3696. #ifdef __STDC__
  3697. # include <limits.h>
  3698. #else
  3699. # include <assert.h>
  3700. #endif
  3701. #undef __res_init
  3702. /* Override any gcc2 internal prototype to avoid an error. */
  3703. #ifdef __cplusplus
  3704. extern "C"
  3705. {
  3706. #endif
  3707. /* We use char because int might match the return type of a gcc2
  3708. builtin and then its argument prototype would still apply. */
  3709. char __res_init ();
  3710. /* The GNU C library defines this for functions which it implements
  3711. to always fail with ENOSYS. Some functions are actually named
  3712. something starting with __ and the normal name is an alias. */
  3713. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3714. choke me
  3715. #else
  3716. char (*f) () = __res_init;
  3717. #endif
  3718. #ifdef __cplusplus
  3719. }
  3720. #endif
  3721. int
  3722. main ()
  3723. {
  3724. return f != __res_init;
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. rm -f conftest.$ac_objext conftest$ac_exeext
  3730. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3731. (eval $ac_link) 2>conftest.er1
  3732. ac_status=$?
  3733. grep -v '^ *+' conftest.er1 >conftest.err
  3734. rm -f conftest.er1
  3735. cat conftest.err >&5
  3736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3737. (exit $ac_status); } &&
  3738. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3740. (eval $ac_try) 2>&5
  3741. ac_status=$?
  3742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3743. (exit $ac_status); }; } &&
  3744. { ac_try='test -s conftest$ac_exeext'
  3745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3746. (eval $ac_try) 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); }; }; then
  3750. ac_cv_func___res_init=yes
  3751. else
  3752. echo "$as_me: failed program was:" >&5
  3753. sed 's/^/| /' conftest.$ac_ext >&5
  3754. ac_cv_func___res_init=no
  3755. fi
  3756. rm -f conftest.err conftest.$ac_objext \
  3757. conftest$ac_exeext conftest.$ac_ext
  3758. fi
  3759. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3760. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3761. if test $ac_cv_func___res_init = yes; then
  3762. :
  3763. else
  3764. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3765. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3766. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3767. echo $ECHO_N "(cached) $ECHO_C" >&6
  3768. else
  3769. ac_check_lib_save_LIBS=$LIBS
  3770. LIBS="-lresolv $LIBS"
  3771. cat >conftest.$ac_ext <<_ACEOF
  3772. /* confdefs.h. */
  3773. _ACEOF
  3774. cat confdefs.h >>conftest.$ac_ext
  3775. cat >>conftest.$ac_ext <<_ACEOF
  3776. /* end confdefs.h. */
  3777. /* Override any gcc2 internal prototype to avoid an error. */
  3778. #ifdef __cplusplus
  3779. extern "C"
  3780. #endif
  3781. /* We use char because int might match the return type of a gcc2
  3782. builtin and then its argument prototype would still apply. */
  3783. char __res_init ();
  3784. int
  3785. main ()
  3786. {
  3787. __res_init ();
  3788. ;
  3789. return 0;
  3790. }
  3791. _ACEOF
  3792. rm -f conftest.$ac_objext conftest$ac_exeext
  3793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3794. (eval $ac_link) 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } &&
  3801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3802. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3803. (eval $ac_try) 2>&5
  3804. ac_status=$?
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); }; } &&
  3807. { ac_try='test -s conftest$ac_exeext'
  3808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3809. (eval $ac_try) 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); }; }; then
  3813. ac_cv_lib_resolv___res_init=yes
  3814. else
  3815. echo "$as_me: failed program was:" >&5
  3816. sed 's/^/| /' conftest.$ac_ext >&5
  3817. ac_cv_lib_resolv___res_init=no
  3818. fi
  3819. rm -f conftest.err conftest.$ac_objext \
  3820. conftest$ac_exeext conftest.$ac_ext
  3821. LIBS=$ac_check_lib_save_LIBS
  3822. fi
  3823. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3824. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3825. if test $ac_cv_lib_resolv___res_init = yes; then
  3826. RESLIB="-lresolv"
  3827. else
  3828. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3829. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3830. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3831. echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. else
  3833. ac_check_lib_save_LIBS=$LIBS
  3834. LIBS="-lbind $LIBS"
  3835. cat >conftest.$ac_ext <<_ACEOF
  3836. /* confdefs.h. */
  3837. _ACEOF
  3838. cat confdefs.h >>conftest.$ac_ext
  3839. cat >>conftest.$ac_ext <<_ACEOF
  3840. /* end confdefs.h. */
  3841. /* Override any gcc2 internal prototype to avoid an error. */
  3842. #ifdef __cplusplus
  3843. extern "C"
  3844. #endif
  3845. /* We use char because int might match the return type of a gcc2
  3846. builtin and then its argument prototype would still apply. */
  3847. char __res_init ();
  3848. int
  3849. main ()
  3850. {
  3851. __res_init ();
  3852. ;
  3853. return 0;
  3854. }
  3855. _ACEOF
  3856. rm -f conftest.$ac_objext conftest$ac_exeext
  3857. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3858. (eval $ac_link) 2>conftest.er1
  3859. ac_status=$?
  3860. grep -v '^ *+' conftest.er1 >conftest.err
  3861. rm -f conftest.er1
  3862. cat conftest.err >&5
  3863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3864. (exit $ac_status); } &&
  3865. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3867. (eval $ac_try) 2>&5
  3868. ac_status=$?
  3869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. (exit $ac_status); }; } &&
  3871. { ac_try='test -s conftest$ac_exeext'
  3872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3873. (eval $ac_try) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; }; then
  3877. ac_cv_lib_bind___res_init=yes
  3878. else
  3879. echo "$as_me: failed program was:" >&5
  3880. sed 's/^/| /' conftest.$ac_ext >&5
  3881. ac_cv_lib_bind___res_init=no
  3882. fi
  3883. rm -f conftest.err conftest.$ac_objext \
  3884. conftest$ac_exeext conftest.$ac_ext
  3885. LIBS=$ac_check_lib_save_LIBS
  3886. fi
  3887. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3888. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3889. if test $ac_cv_lib_bind___res_init = yes; then
  3890. RESLIB="-lbind"
  3891. else
  3892. dns_reslib_avail="false";
  3893. fi
  3894. fi
  3895. fi
  3896. fi
  3897. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3898. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3899. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3900. echo $ECHO_N "(cached) $ECHO_C" >&6
  3901. else
  3902. cat >conftest.$ac_ext <<_ACEOF
  3903. /* confdefs.h. */
  3904. _ACEOF
  3905. cat confdefs.h >>conftest.$ac_ext
  3906. cat >>conftest.$ac_ext <<_ACEOF
  3907. /* end confdefs.h. */
  3908. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3909. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3910. #define res_mkquery innocuous_res_mkquery
  3911. /* System header to define __stub macros and hopefully few prototypes,
  3912. which can conflict with char res_mkquery (); below.
  3913. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3914. <limits.h> exists even on freestanding compilers. */
  3915. #ifdef __STDC__
  3916. # include <limits.h>
  3917. #else
  3918. # include <assert.h>
  3919. #endif
  3920. #undef res_mkquery
  3921. /* Override any gcc2 internal prototype to avoid an error. */
  3922. #ifdef __cplusplus
  3923. extern "C"
  3924. {
  3925. #endif
  3926. /* We use char because int might match the return type of a gcc2
  3927. builtin and then its argument prototype would still apply. */
  3928. char res_mkquery ();
  3929. /* The GNU C library defines this for functions which it implements
  3930. to always fail with ENOSYS. Some functions are actually named
  3931. something starting with __ and the normal name is an alias. */
  3932. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3933. choke me
  3934. #else
  3935. char (*f) () = res_mkquery;
  3936. #endif
  3937. #ifdef __cplusplus
  3938. }
  3939. #endif
  3940. int
  3941. main ()
  3942. {
  3943. return f != res_mkquery;
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. rm -f conftest.$ac_objext conftest$ac_exeext
  3949. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3950. (eval $ac_link) 2>conftest.er1
  3951. ac_status=$?
  3952. grep -v '^ *+' conftest.er1 >conftest.err
  3953. rm -f conftest.er1
  3954. cat conftest.err >&5
  3955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956. (exit $ac_status); } &&
  3957. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3959. (eval $ac_try) 2>&5
  3960. ac_status=$?
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); }; } &&
  3963. { ac_try='test -s conftest$ac_exeext'
  3964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3965. (eval $ac_try) 2>&5
  3966. ac_status=$?
  3967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); }; }; then
  3969. ac_cv_func_res_mkquery=yes
  3970. else
  3971. echo "$as_me: failed program was:" >&5
  3972. sed 's/^/| /' conftest.$ac_ext >&5
  3973. ac_cv_func_res_mkquery=no
  3974. fi
  3975. rm -f conftest.err conftest.$ac_objext \
  3976. conftest$ac_exeext conftest.$ac_ext
  3977. fi
  3978. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3979. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3980. if test $ac_cv_func_res_mkquery = yes; then
  3981. :
  3982. else
  3983. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3984. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3985. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3986. echo $ECHO_N "(cached) $ECHO_C" >&6
  3987. else
  3988. ac_check_lib_save_LIBS=$LIBS
  3989. LIBS="-lresolv $LIBS"
  3990. cat >conftest.$ac_ext <<_ACEOF
  3991. /* confdefs.h. */
  3992. _ACEOF
  3993. cat confdefs.h >>conftest.$ac_ext
  3994. cat >>conftest.$ac_ext <<_ACEOF
  3995. /* end confdefs.h. */
  3996. /* Override any gcc2 internal prototype to avoid an error. */
  3997. #ifdef __cplusplus
  3998. extern "C"
  3999. #endif
  4000. /* We use char because int might match the return type of a gcc2
  4001. builtin and then its argument prototype would still apply. */
  4002. char res_mkquery ();
  4003. int
  4004. main ()
  4005. {
  4006. res_mkquery ();
  4007. ;
  4008. return 0;
  4009. }
  4010. _ACEOF
  4011. rm -f conftest.$ac_objext conftest$ac_exeext
  4012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4013. (eval $ac_link) 2>conftest.er1
  4014. ac_status=$?
  4015. grep -v '^ *+' conftest.er1 >conftest.err
  4016. rm -f conftest.er1
  4017. cat conftest.err >&5
  4018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4019. (exit $ac_status); } &&
  4020. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4022. (eval $ac_try) 2>&5
  4023. ac_status=$?
  4024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. (exit $ac_status); }; } &&
  4026. { ac_try='test -s conftest$ac_exeext'
  4027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4028. (eval $ac_try) 2>&5
  4029. ac_status=$?
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); }; }; then
  4032. ac_cv_lib_resolv_res_mkquery=yes
  4033. else
  4034. echo "$as_me: failed program was:" >&5
  4035. sed 's/^/| /' conftest.$ac_ext >&5
  4036. ac_cv_lib_resolv_res_mkquery=no
  4037. fi
  4038. rm -f conftest.err conftest.$ac_objext \
  4039. conftest$ac_exeext conftest.$ac_ext
  4040. LIBS=$ac_check_lib_save_LIBS
  4041. fi
  4042. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4043. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4044. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4045. if test "x${RESLIB}" != "x-lresolv"; then
  4046. RESLIB="${RESLIB} -lresolv"
  4047. fi
  4048. else
  4049. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4050. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4051. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4052. echo $ECHO_N "(cached) $ECHO_C" >&6
  4053. else
  4054. ac_check_lib_save_LIBS=$LIBS
  4055. LIBS="-lbind $LIBS"
  4056. cat >conftest.$ac_ext <<_ACEOF
  4057. /* confdefs.h. */
  4058. _ACEOF
  4059. cat confdefs.h >>conftest.$ac_ext
  4060. cat >>conftest.$ac_ext <<_ACEOF
  4061. /* end confdefs.h. */
  4062. /* Override any gcc2 internal prototype to avoid an error. */
  4063. #ifdef __cplusplus
  4064. extern "C"
  4065. #endif
  4066. /* We use char because int might match the return type of a gcc2
  4067. builtin and then its argument prototype would still apply. */
  4068. char res_mkquery ();
  4069. int
  4070. main ()
  4071. {
  4072. res_mkquery ();
  4073. ;
  4074. return 0;
  4075. }
  4076. _ACEOF
  4077. rm -f conftest.$ac_objext conftest$ac_exeext
  4078. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4079. (eval $ac_link) 2>conftest.er1
  4080. ac_status=$?
  4081. grep -v '^ *+' conftest.er1 >conftest.err
  4082. rm -f conftest.er1
  4083. cat conftest.err >&5
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); } &&
  4086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4088. (eval $ac_try) 2>&5
  4089. ac_status=$?
  4090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4091. (exit $ac_status); }; } &&
  4092. { ac_try='test -s conftest$ac_exeext'
  4093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4094. (eval $ac_try) 2>&5
  4095. ac_status=$?
  4096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. (exit $ac_status); }; }; then
  4098. ac_cv_lib_bind_res_mkquery=yes
  4099. else
  4100. echo "$as_me: failed program was:" >&5
  4101. sed 's/^/| /' conftest.$ac_ext >&5
  4102. ac_cv_lib_bind_res_mkquery=no
  4103. fi
  4104. rm -f conftest.err conftest.$ac_objext \
  4105. conftest$ac_exeext conftest.$ac_ext
  4106. LIBS=$ac_check_lib_save_LIBS
  4107. fi
  4108. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4109. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4110. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4111. if test "x${RESLIB}" != "x-lbind"; then
  4112. RESLIB="${RESLIB} -lbind"
  4113. fi
  4114. else
  4115. dns_reslib_avail="false";
  4116. fi
  4117. fi
  4118. fi
  4119. if test "${dns_reslib_avail}" = false; then
  4120. dns_reslib_avail="true"
  4121. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4122. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4123. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. cat >conftest.$ac_ext <<_ACEOF
  4127. /* confdefs.h. */
  4128. _ACEOF
  4129. cat confdefs.h >>conftest.$ac_ext
  4130. cat >>conftest.$ac_ext <<_ACEOF
  4131. /* end confdefs.h. */
  4132. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4133. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4134. #define __res_mkquery innocuous___res_mkquery
  4135. /* System header to define __stub macros and hopefully few prototypes,
  4136. which can conflict with char __res_mkquery (); below.
  4137. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4138. <limits.h> exists even on freestanding compilers. */
  4139. #ifdef __STDC__
  4140. # include <limits.h>
  4141. #else
  4142. # include <assert.h>
  4143. #endif
  4144. #undef __res_mkquery
  4145. /* Override any gcc2 internal prototype to avoid an error. */
  4146. #ifdef __cplusplus
  4147. extern "C"
  4148. {
  4149. #endif
  4150. /* We use char because int might match the return type of a gcc2
  4151. builtin and then its argument prototype would still apply. */
  4152. char __res_mkquery ();
  4153. /* The GNU C library defines this for functions which it implements
  4154. to always fail with ENOSYS. Some functions are actually named
  4155. something starting with __ and the normal name is an alias. */
  4156. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4157. choke me
  4158. #else
  4159. char (*f) () = __res_mkquery;
  4160. #endif
  4161. #ifdef __cplusplus
  4162. }
  4163. #endif
  4164. int
  4165. main ()
  4166. {
  4167. return f != __res_mkquery;
  4168. ;
  4169. return 0;
  4170. }
  4171. _ACEOF
  4172. rm -f conftest.$ac_objext conftest$ac_exeext
  4173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4174. (eval $ac_link) 2>conftest.er1
  4175. ac_status=$?
  4176. grep -v '^ *+' conftest.er1 >conftest.err
  4177. rm -f conftest.er1
  4178. cat conftest.err >&5
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); } &&
  4181. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4183. (eval $ac_try) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; } &&
  4187. { ac_try='test -s conftest$ac_exeext'
  4188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4189. (eval $ac_try) 2>&5
  4190. ac_status=$?
  4191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4192. (exit $ac_status); }; }; then
  4193. ac_cv_func___res_mkquery=yes
  4194. else
  4195. echo "$as_me: failed program was:" >&5
  4196. sed 's/^/| /' conftest.$ac_ext >&5
  4197. ac_cv_func___res_mkquery=no
  4198. fi
  4199. rm -f conftest.err conftest.$ac_objext \
  4200. conftest$ac_exeext conftest.$ac_ext
  4201. fi
  4202. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4203. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4204. if test $ac_cv_func___res_mkquery = yes; then
  4205. :
  4206. else
  4207. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4208. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4209. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4210. echo $ECHO_N "(cached) $ECHO_C" >&6
  4211. else
  4212. ac_check_lib_save_LIBS=$LIBS
  4213. LIBS="-lresolv $LIBS"
  4214. cat >conftest.$ac_ext <<_ACEOF
  4215. /* confdefs.h. */
  4216. _ACEOF
  4217. cat confdefs.h >>conftest.$ac_ext
  4218. cat >>conftest.$ac_ext <<_ACEOF
  4219. /* end confdefs.h. */
  4220. /* Override any gcc2 internal prototype to avoid an error. */
  4221. #ifdef __cplusplus
  4222. extern "C"
  4223. #endif
  4224. /* We use char because int might match the return type of a gcc2
  4225. builtin and then its argument prototype would still apply. */
  4226. char __res_mkquery ();
  4227. int
  4228. main ()
  4229. {
  4230. __res_mkquery ();
  4231. ;
  4232. return 0;
  4233. }
  4234. _ACEOF
  4235. rm -f conftest.$ac_objext conftest$ac_exeext
  4236. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4237. (eval $ac_link) 2>conftest.er1
  4238. ac_status=$?
  4239. grep -v '^ *+' conftest.er1 >conftest.err
  4240. rm -f conftest.er1
  4241. cat conftest.err >&5
  4242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4243. (exit $ac_status); } &&
  4244. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4245. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4246. (eval $ac_try) 2>&5
  4247. ac_status=$?
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); }; } &&
  4250. { ac_try='test -s conftest$ac_exeext'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; }; then
  4256. ac_cv_lib_resolv___res_mkquery=yes
  4257. else
  4258. echo "$as_me: failed program was:" >&5
  4259. sed 's/^/| /' conftest.$ac_ext >&5
  4260. ac_cv_lib_resolv___res_mkquery=no
  4261. fi
  4262. rm -f conftest.err conftest.$ac_objext \
  4263. conftest$ac_exeext conftest.$ac_ext
  4264. LIBS=$ac_check_lib_save_LIBS
  4265. fi
  4266. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4267. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4268. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4269. if test "x${RESLIB}" != "x-lresolv"; then
  4270. RESLIB="${RESLIB} -lresolv"
  4271. fi
  4272. else
  4273. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4274. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4275. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4276. echo $ECHO_N "(cached) $ECHO_C" >&6
  4277. else
  4278. ac_check_lib_save_LIBS=$LIBS
  4279. LIBS="-lbind $LIBS"
  4280. cat >conftest.$ac_ext <<_ACEOF
  4281. /* confdefs.h. */
  4282. _ACEOF
  4283. cat confdefs.h >>conftest.$ac_ext
  4284. cat >>conftest.$ac_ext <<_ACEOF
  4285. /* end confdefs.h. */
  4286. /* Override any gcc2 internal prototype to avoid an error. */
  4287. #ifdef __cplusplus
  4288. extern "C"
  4289. #endif
  4290. /* We use char because int might match the return type of a gcc2
  4291. builtin and then its argument prototype would still apply. */
  4292. char __res_mkquery ();
  4293. int
  4294. main ()
  4295. {
  4296. __res_mkquery ();
  4297. ;
  4298. return 0;
  4299. }
  4300. _ACEOF
  4301. rm -f conftest.$ac_objext conftest$ac_exeext
  4302. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4303. (eval $ac_link) 2>conftest.er1
  4304. ac_status=$?
  4305. grep -v '^ *+' conftest.er1 >conftest.err
  4306. rm -f conftest.er1
  4307. cat conftest.err >&5
  4308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4309. (exit $ac_status); } &&
  4310. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4312. (eval $ac_try) 2>&5
  4313. ac_status=$?
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); }; } &&
  4316. { ac_try='test -s conftest$ac_exeext'
  4317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4318. (eval $ac_try) 2>&5
  4319. ac_status=$?
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); }; }; then
  4322. ac_cv_lib_bind___res_mkquery=yes
  4323. else
  4324. echo "$as_me: failed program was:" >&5
  4325. sed 's/^/| /' conftest.$ac_ext >&5
  4326. ac_cv_lib_bind___res_mkquery=no
  4327. fi
  4328. rm -f conftest.err conftest.$ac_objext \
  4329. conftest$ac_exeext conftest.$ac_ext
  4330. LIBS=$ac_check_lib_save_LIBS
  4331. fi
  4332. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4333. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4334. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4335. if test "x${RESLIB}" != "x-lbind"; then
  4336. RESLIB="${RESLIB} -lbind"
  4337. fi
  4338. else
  4339. dns_reslib_avail="false";
  4340. fi
  4341. fi
  4342. fi
  4343. fi
  4344. if test "${dns_reslib_avail}" = false; then
  4345. if test "$ac_cv_cygwin" = "yes"; then
  4346. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4347. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4348. if test -r /usr/local/bind/lib/libbind.a; then
  4349. echo "$as_me:$LINENO: result: yes" >&5
  4350. echo "${ECHO_T}yes" >&6
  4351. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4352. RESINCLUDE="-I/usr/local/bind/include"
  4353. dns_reslib_avail="true"
  4354. else
  4355. echo "$as_me:$LINENO: result: no" >&5
  4356. echo "${ECHO_T}no" >&6
  4357. fi
  4358. fi
  4359. fi
  4360. if test "${dns_reslib_avail}" = false; then
  4361. cat >&2 <<EOF
  4362. configure: warning:
  4363. Your system provides no functional resolver library.
  4364. One is required for buld.
  4365. EOF
  4366. exit 1
  4367. fi
  4368. #checkpoint
  4369. cat >confcache <<\_ACEOF
  4370. # This file is a shell script that caches the results of configure
  4371. # tests run on this system so they can be shared between configure
  4372. # scripts and configure runs, see configure's option --config-cache.
  4373. # It is not useful on other systems. If it contains results you don't
  4374. # want to keep, you may remove or edit it.
  4375. #
  4376. # config.status only pays attention to the cache file if you give it
  4377. # the --recheck option to rerun configure.
  4378. #
  4379. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4380. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4381. # following values.
  4382. _ACEOF
  4383. # The following way of writing the cache mishandles newlines in values,
  4384. # but we know of no workaround that is simple, portable, and efficient.
  4385. # So, don't put newlines in cache variables' values.
  4386. # Ultrix sh set writes to stderr and can't be redirected directly,
  4387. # and sets the high bit in the cache file unless we assign to the vars.
  4388. {
  4389. (set) 2>&1 |
  4390. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4391. *ac_space=\ *)
  4392. # `set' does not quote correctly, so add quotes (double-quote
  4393. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4394. sed -n \
  4395. "s/'/'\\\\''/g;
  4396. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4397. ;;
  4398. *)
  4399. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4400. sed -n \
  4401. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4402. ;;
  4403. esac;
  4404. } |
  4405. sed '
  4406. t clear
  4407. : clear
  4408. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4409. t end
  4410. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4411. : end' >>confcache
  4412. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4413. if test -w $cache_file; then
  4414. test "x$cache_file" != "x/dev/null"
  4415. cat confcache >$cache_file
  4416. else
  4417. echo "not updating unwritable cache $cache_file"
  4418. fi
  4419. fi
  4420. rm -f confcache
  4421. # Checks for system libraries
  4422. # FIXME: this needs to be fixed so that it works on IRIX
  4423. if test "$IRIX" = "yes"
  4424. then
  4425. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4426. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4427. else
  4428. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4429. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4430. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4431. echo $ECHO_N "(cached) $ECHO_C" >&6
  4432. else
  4433. ac_check_lib_save_LIBS=$LIBS
  4434. LIBS="-lsocket $LIBS"
  4435. cat >conftest.$ac_ext <<_ACEOF
  4436. /* confdefs.h. */
  4437. _ACEOF
  4438. cat confdefs.h >>conftest.$ac_ext
  4439. cat >>conftest.$ac_ext <<_ACEOF
  4440. /* end confdefs.h. */
  4441. /* Override any gcc2 internal prototype to avoid an error. */
  4442. #ifdef __cplusplus
  4443. extern "C"
  4444. #endif
  4445. /* We use char because int might match the return type of a gcc2
  4446. builtin and then its argument prototype would still apply. */
  4447. char socket ();
  4448. int
  4449. main ()
  4450. {
  4451. socket ();
  4452. ;
  4453. return 0;
  4454. }
  4455. _ACEOF
  4456. rm -f conftest.$ac_objext conftest$ac_exeext
  4457. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4458. (eval $ac_link) 2>conftest.er1
  4459. ac_status=$?
  4460. grep -v '^ *+' conftest.er1 >conftest.err
  4461. rm -f conftest.er1
  4462. cat conftest.err >&5
  4463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4464. (exit $ac_status); } &&
  4465. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4467. (eval $ac_try) 2>&5
  4468. ac_status=$?
  4469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4470. (exit $ac_status); }; } &&
  4471. { ac_try='test -s conftest$ac_exeext'
  4472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4473. (eval $ac_try) 2>&5
  4474. ac_status=$?
  4475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4476. (exit $ac_status); }; }; then
  4477. ac_cv_lib_socket_socket=yes
  4478. else
  4479. echo "$as_me: failed program was:" >&5
  4480. sed 's/^/| /' conftest.$ac_ext >&5
  4481. ac_cv_lib_socket_socket=no
  4482. fi
  4483. rm -f conftest.err conftest.$ac_objext \
  4484. conftest$ac_exeext conftest.$ac_ext
  4485. LIBS=$ac_check_lib_save_LIBS
  4486. fi
  4487. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4488. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4489. if test $ac_cv_lib_socket_socket = yes; then
  4490. cat >>confdefs.h <<_ACEOF
  4491. #define HAVE_LIBSOCKET 1
  4492. _ACEOF
  4493. LIBS="-lsocket $LIBS"
  4494. fi
  4495. # AC_CHECK_LIB(nsl, connect)
  4496. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4497. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4498. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4499. echo $ECHO_N "(cached) $ECHO_C" >&6
  4500. else
  4501. ac_check_lib_save_LIBS=$LIBS
  4502. LIBS="-ldns $LIBS"
  4503. cat >conftest.$ac_ext <<_ACEOF
  4504. /* confdefs.h. */
  4505. _ACEOF
  4506. cat confdefs.h >>conftest.$ac_ext
  4507. cat >>conftest.$ac_ext <<_ACEOF
  4508. /* end confdefs.h. */
  4509. /* Override any gcc2 internal prototype to avoid an error. */
  4510. #ifdef __cplusplus
  4511. extern "C"
  4512. #endif
  4513. /* We use char because int might match the return type of a gcc2
  4514. builtin and then its argument prototype would still apply. */
  4515. char gethostbyname ();
  4516. int
  4517. main ()
  4518. {
  4519. gethostbyname ();
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. rm -f conftest.$ac_objext conftest$ac_exeext
  4525. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4526. (eval $ac_link) 2>conftest.er1
  4527. ac_status=$?
  4528. grep -v '^ *+' conftest.er1 >conftest.err
  4529. rm -f conftest.er1
  4530. cat conftest.err >&5
  4531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4532. (exit $ac_status); } &&
  4533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4535. (eval $ac_try) 2>&5
  4536. ac_status=$?
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); }; } &&
  4539. { ac_try='test -s conftest$ac_exeext'
  4540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4541. (eval $ac_try) 2>&5
  4542. ac_status=$?
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); }; }; then
  4545. ac_cv_lib_dns_gethostbyname=yes
  4546. else
  4547. echo "$as_me: failed program was:" >&5
  4548. sed 's/^/| /' conftest.$ac_ext >&5
  4549. ac_cv_lib_dns_gethostbyname=no
  4550. fi
  4551. rm -f conftest.err conftest.$ac_objext \
  4552. conftest$ac_exeext conftest.$ac_ext
  4553. LIBS=$ac_check_lib_save_LIBS
  4554. fi
  4555. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4556. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4557. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4558. cat >>confdefs.h <<_ACEOF
  4559. #define HAVE_LIBDNS 1
  4560. _ACEOF
  4561. LIBS="-ldns $LIBS"
  4562. fi
  4563. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4564. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4565. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4566. echo $ECHO_N "(cached) $ECHO_C" >&6
  4567. else
  4568. ac_check_lib_save_LIBS=$LIBS
  4569. LIBS="-lz $LIBS"
  4570. cat >conftest.$ac_ext <<_ACEOF
  4571. /* confdefs.h. */
  4572. _ACEOF
  4573. cat confdefs.h >>conftest.$ac_ext
  4574. cat >>conftest.$ac_ext <<_ACEOF
  4575. /* end confdefs.h. */
  4576. /* Override any gcc2 internal prototype to avoid an error. */
  4577. #ifdef __cplusplus
  4578. extern "C"
  4579. #endif
  4580. /* We use char because int might match the return type of a gcc2
  4581. builtin and then its argument prototype would still apply. */
  4582. char gzopen ();
  4583. int
  4584. main ()
  4585. {
  4586. gzopen ();
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. rm -f conftest.$ac_objext conftest$ac_exeext
  4592. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4593. (eval $ac_link) 2>conftest.er1
  4594. ac_status=$?
  4595. grep -v '^ *+' conftest.er1 >conftest.err
  4596. rm -f conftest.er1
  4597. cat conftest.err >&5
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); } &&
  4600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4602. (eval $ac_try) 2>&5
  4603. ac_status=$?
  4604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4605. (exit $ac_status); }; } &&
  4606. { ac_try='test -s conftest$ac_exeext'
  4607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4608. (eval $ac_try) 2>&5
  4609. ac_status=$?
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); }; }; then
  4612. ac_cv_lib_z_gzopen=yes
  4613. else
  4614. echo "$as_me: failed program was:" >&5
  4615. sed 's/^/| /' conftest.$ac_ext >&5
  4616. ac_cv_lib_z_gzopen=no
  4617. fi
  4618. rm -f conftest.err conftest.$ac_objext \
  4619. conftest$ac_exeext conftest.$ac_ext
  4620. LIBS=$ac_check_lib_save_LIBS
  4621. fi
  4622. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4623. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4624. if test $ac_cv_lib_z_gzopen = yes; then
  4625. ZLIB="-lz"
  4626. fi
  4627. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4628. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4629. # This is needed for Tcl libraries compiled with thread support
  4630. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4631. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4632. # ac_cv_lib_pthread="-lpthread"], [dnl
  4633. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4634. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4635. # ac_cv_lib_pthread="-lpthread"], [dnl
  4636. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4637. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4638. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4639. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4640. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4641. # ac_cv_lib_pthread=""],
  4642. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4643. fi
  4644. # Checks for header files
  4645. ac_header_dirent=no
  4646. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4647. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4648. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4649. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4650. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. cat >conftest.$ac_ext <<_ACEOF
  4654. /* confdefs.h. */
  4655. _ACEOF
  4656. cat confdefs.h >>conftest.$ac_ext
  4657. cat >>conftest.$ac_ext <<_ACEOF
  4658. /* end confdefs.h. */
  4659. #include <sys/types.h>
  4660. #include <$ac_hdr>
  4661. int
  4662. main ()
  4663. {
  4664. if ((DIR *) 0)
  4665. return 0;
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext
  4671. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4672. (eval $ac_compile) 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } &&
  4679. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; } &&
  4685. { ac_try='test -s conftest.$ac_objext'
  4686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4687. (eval $ac_try) 2>&5
  4688. ac_status=$?
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); }; }; then
  4691. eval "$as_ac_Header=yes"
  4692. else
  4693. echo "$as_me: failed program was:" >&5
  4694. sed 's/^/| /' conftest.$ac_ext >&5
  4695. eval "$as_ac_Header=no"
  4696. fi
  4697. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4698. fi
  4699. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4700. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4701. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4702. cat >>confdefs.h <<_ACEOF
  4703. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4704. _ACEOF
  4705. ac_header_dirent=$ac_hdr; break
  4706. fi
  4707. done
  4708. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4709. if test $ac_header_dirent = dirent.h; then
  4710. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4711. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4712. if test "${ac_cv_search_opendir+set}" = set; then
  4713. echo $ECHO_N "(cached) $ECHO_C" >&6
  4714. else
  4715. ac_func_search_save_LIBS=$LIBS
  4716. ac_cv_search_opendir=no
  4717. cat >conftest.$ac_ext <<_ACEOF
  4718. /* confdefs.h. */
  4719. _ACEOF
  4720. cat confdefs.h >>conftest.$ac_ext
  4721. cat >>conftest.$ac_ext <<_ACEOF
  4722. /* end confdefs.h. */
  4723. /* Override any gcc2 internal prototype to avoid an error. */
  4724. #ifdef __cplusplus
  4725. extern "C"
  4726. #endif
  4727. /* We use char because int might match the return type of a gcc2
  4728. builtin and then its argument prototype would still apply. */
  4729. char opendir ();
  4730. int
  4731. main ()
  4732. {
  4733. opendir ();
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. rm -f conftest.$ac_objext conftest$ac_exeext
  4739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4740. (eval $ac_link) 2>conftest.er1
  4741. ac_status=$?
  4742. grep -v '^ *+' conftest.er1 >conftest.err
  4743. rm -f conftest.er1
  4744. cat conftest.err >&5
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); } &&
  4747. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4749. (eval $ac_try) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); }; } &&
  4753. { ac_try='test -s conftest$ac_exeext'
  4754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4755. (eval $ac_try) 2>&5
  4756. ac_status=$?
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); }; }; then
  4759. ac_cv_search_opendir="none required"
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. fi
  4764. rm -f conftest.err conftest.$ac_objext \
  4765. conftest$ac_exeext conftest.$ac_ext
  4766. if test "$ac_cv_search_opendir" = no; then
  4767. for ac_lib in dir; do
  4768. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4769. cat >conftest.$ac_ext <<_ACEOF
  4770. /* confdefs.h. */
  4771. _ACEOF
  4772. cat confdefs.h >>conftest.$ac_ext
  4773. cat >>conftest.$ac_ext <<_ACEOF
  4774. /* end confdefs.h. */
  4775. /* Override any gcc2 internal prototype to avoid an error. */
  4776. #ifdef __cplusplus
  4777. extern "C"
  4778. #endif
  4779. /* We use char because int might match the return type of a gcc2
  4780. builtin and then its argument prototype would still apply. */
  4781. char opendir ();
  4782. int
  4783. main ()
  4784. {
  4785. opendir ();
  4786. ;
  4787. return 0;
  4788. }
  4789. _ACEOF
  4790. rm -f conftest.$ac_objext conftest$ac_exeext
  4791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4792. (eval $ac_link) 2>conftest.er1
  4793. ac_status=$?
  4794. grep -v '^ *+' conftest.er1 >conftest.err
  4795. rm -f conftest.er1
  4796. cat conftest.err >&5
  4797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4798. (exit $ac_status); } &&
  4799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4801. (eval $ac_try) 2>&5
  4802. ac_status=$?
  4803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4804. (exit $ac_status); }; } &&
  4805. { ac_try='test -s conftest$ac_exeext'
  4806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4807. (eval $ac_try) 2>&5
  4808. ac_status=$?
  4809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4810. (exit $ac_status); }; }; then
  4811. ac_cv_search_opendir="-l$ac_lib"
  4812. break
  4813. else
  4814. echo "$as_me: failed program was:" >&5
  4815. sed 's/^/| /' conftest.$ac_ext >&5
  4816. fi
  4817. rm -f conftest.err conftest.$ac_objext \
  4818. conftest$ac_exeext conftest.$ac_ext
  4819. done
  4820. fi
  4821. LIBS=$ac_func_search_save_LIBS
  4822. fi
  4823. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4824. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4825. if test "$ac_cv_search_opendir" != no; then
  4826. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4827. fi
  4828. else
  4829. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4830. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4831. if test "${ac_cv_search_opendir+set}" = set; then
  4832. echo $ECHO_N "(cached) $ECHO_C" >&6
  4833. else
  4834. ac_func_search_save_LIBS=$LIBS
  4835. ac_cv_search_opendir=no
  4836. cat >conftest.$ac_ext <<_ACEOF
  4837. /* confdefs.h. */
  4838. _ACEOF
  4839. cat confdefs.h >>conftest.$ac_ext
  4840. cat >>conftest.$ac_ext <<_ACEOF
  4841. /* end confdefs.h. */
  4842. /* Override any gcc2 internal prototype to avoid an error. */
  4843. #ifdef __cplusplus
  4844. extern "C"
  4845. #endif
  4846. /* We use char because int might match the return type of a gcc2
  4847. builtin and then its argument prototype would still apply. */
  4848. char opendir ();
  4849. int
  4850. main ()
  4851. {
  4852. opendir ();
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext conftest$ac_exeext
  4858. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4859. (eval $ac_link) 2>conftest.er1
  4860. ac_status=$?
  4861. grep -v '^ *+' conftest.er1 >conftest.err
  4862. rm -f conftest.er1
  4863. cat conftest.err >&5
  4864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4865. (exit $ac_status); } &&
  4866. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4868. (eval $ac_try) 2>&5
  4869. ac_status=$?
  4870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4871. (exit $ac_status); }; } &&
  4872. { ac_try='test -s conftest$ac_exeext'
  4873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4874. (eval $ac_try) 2>&5
  4875. ac_status=$?
  4876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4877. (exit $ac_status); }; }; then
  4878. ac_cv_search_opendir="none required"
  4879. else
  4880. echo "$as_me: failed program was:" >&5
  4881. sed 's/^/| /' conftest.$ac_ext >&5
  4882. fi
  4883. rm -f conftest.err conftest.$ac_objext \
  4884. conftest$ac_exeext conftest.$ac_ext
  4885. if test "$ac_cv_search_opendir" = no; then
  4886. for ac_lib in x; do
  4887. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4888. cat >conftest.$ac_ext <<_ACEOF
  4889. /* confdefs.h. */
  4890. _ACEOF
  4891. cat confdefs.h >>conftest.$ac_ext
  4892. cat >>conftest.$ac_ext <<_ACEOF
  4893. /* end confdefs.h. */
  4894. /* Override any gcc2 internal prototype to avoid an error. */
  4895. #ifdef __cplusplus
  4896. extern "C"
  4897. #endif
  4898. /* We use char because int might match the return type of a gcc2
  4899. builtin and then its argument prototype would still apply. */
  4900. char opendir ();
  4901. int
  4902. main ()
  4903. {
  4904. opendir ();
  4905. ;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. rm -f conftest.$ac_objext conftest$ac_exeext
  4910. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4911. (eval $ac_link) 2>conftest.er1
  4912. ac_status=$?
  4913. grep -v '^ *+' conftest.er1 >conftest.err
  4914. rm -f conftest.er1
  4915. cat conftest.err >&5
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); } &&
  4918. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4920. (eval $ac_try) 2>&5
  4921. ac_status=$?
  4922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4923. (exit $ac_status); }; } &&
  4924. { ac_try='test -s conftest$ac_exeext'
  4925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4926. (eval $ac_try) 2>&5
  4927. ac_status=$?
  4928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4929. (exit $ac_status); }; }; then
  4930. ac_cv_search_opendir="-l$ac_lib"
  4931. break
  4932. else
  4933. echo "$as_me: failed program was:" >&5
  4934. sed 's/^/| /' conftest.$ac_ext >&5
  4935. fi
  4936. rm -f conftest.err conftest.$ac_objext \
  4937. conftest$ac_exeext conftest.$ac_ext
  4938. done
  4939. fi
  4940. LIBS=$ac_func_search_save_LIBS
  4941. fi
  4942. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4943. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4944. if test "$ac_cv_search_opendir" != no; then
  4945. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4946. fi
  4947. fi
  4948. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4949. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4950. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4951. echo $ECHO_N "(cached) $ECHO_C" >&6
  4952. else
  4953. cat >conftest.$ac_ext <<_ACEOF
  4954. /* confdefs.h. */
  4955. _ACEOF
  4956. cat confdefs.h >>conftest.$ac_ext
  4957. cat >>conftest.$ac_ext <<_ACEOF
  4958. /* end confdefs.h. */
  4959. #include <sys/types.h>
  4960. #include <sys/wait.h>
  4961. #ifndef WEXITSTATUS
  4962. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4963. #endif
  4964. #ifndef WIFEXITED
  4965. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4966. #endif
  4967. int
  4968. main ()
  4969. {
  4970. int s;
  4971. wait (&s);
  4972. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4973. ;
  4974. return 0;
  4975. }
  4976. _ACEOF
  4977. rm -f conftest.$ac_objext
  4978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4979. (eval $ac_compile) 2>conftest.er1
  4980. ac_status=$?
  4981. grep -v '^ *+' conftest.er1 >conftest.err
  4982. rm -f conftest.er1
  4983. cat conftest.err >&5
  4984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. (exit $ac_status); } &&
  4986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4988. (eval $ac_try) 2>&5
  4989. ac_status=$?
  4990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4991. (exit $ac_status); }; } &&
  4992. { ac_try='test -s conftest.$ac_objext'
  4993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4994. (eval $ac_try) 2>&5
  4995. ac_status=$?
  4996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4997. (exit $ac_status); }; }; then
  4998. ac_cv_header_sys_wait_h=yes
  4999. else
  5000. echo "$as_me: failed program was:" >&5
  5001. sed 's/^/| /' conftest.$ac_ext >&5
  5002. ac_cv_header_sys_wait_h=no
  5003. fi
  5004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5005. fi
  5006. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5007. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5008. if test $ac_cv_header_sys_wait_h = yes; then
  5009. cat >>confdefs.h <<\_ACEOF
  5010. #define HAVE_SYS_WAIT_H 1
  5011. _ACEOF
  5012. fi
  5013. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5014. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5015. if test "${ac_cv_header_time+set}" = set; then
  5016. echo $ECHO_N "(cached) $ECHO_C" >&6
  5017. else
  5018. cat >conftest.$ac_ext <<_ACEOF
  5019. /* confdefs.h. */
  5020. _ACEOF
  5021. cat confdefs.h >>conftest.$ac_ext
  5022. cat >>conftest.$ac_ext <<_ACEOF
  5023. /* end confdefs.h. */
  5024. #include <sys/types.h>
  5025. #include <sys/time.h>
  5026. #include <time.h>
  5027. int
  5028. main ()
  5029. {
  5030. if ((struct tm *) 0)
  5031. return 0;
  5032. ;
  5033. return 0;
  5034. }
  5035. _ACEOF
  5036. rm -f conftest.$ac_objext
  5037. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5038. (eval $ac_compile) 2>conftest.er1
  5039. ac_status=$?
  5040. grep -v '^ *+' conftest.er1 >conftest.err
  5041. rm -f conftest.er1
  5042. cat conftest.err >&5
  5043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5044. (exit $ac_status); } &&
  5045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5047. (eval $ac_try) 2>&5
  5048. ac_status=$?
  5049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5050. (exit $ac_status); }; } &&
  5051. { ac_try='test -s conftest.$ac_objext'
  5052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5053. (eval $ac_try) 2>&5
  5054. ac_status=$?
  5055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5056. (exit $ac_status); }; }; then
  5057. ac_cv_header_time=yes
  5058. else
  5059. echo "$as_me: failed program was:" >&5
  5060. sed 's/^/| /' conftest.$ac_ext >&5
  5061. ac_cv_header_time=no
  5062. fi
  5063. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5064. fi
  5065. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5066. echo "${ECHO_T}$ac_cv_header_time" >&6
  5067. if test $ac_cv_header_time = yes; then
  5068. cat >>confdefs.h <<\_ACEOF
  5069. #define TIME_WITH_SYS_TIME 1
  5070. _ACEOF
  5071. fi
  5072. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5073. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5074. if test "${ac_cv_header_stat_broken+set}" = set; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. cat >conftest.$ac_ext <<_ACEOF
  5078. /* confdefs.h. */
  5079. _ACEOF
  5080. cat confdefs.h >>conftest.$ac_ext
  5081. cat >>conftest.$ac_ext <<_ACEOF
  5082. /* end confdefs.h. */
  5083. #include <sys/types.h>
  5084. #include <sys/stat.h>
  5085. #if defined(S_ISBLK) && defined(S_IFDIR)
  5086. # if S_ISBLK (S_IFDIR)
  5087. You lose.
  5088. # endif
  5089. #endif
  5090. #if defined(S_ISBLK) && defined(S_IFCHR)
  5091. # if S_ISBLK (S_IFCHR)
  5092. You lose.
  5093. # endif
  5094. #endif
  5095. #if defined(S_ISLNK) && defined(S_IFREG)
  5096. # if S_ISLNK (S_IFREG)
  5097. You lose.
  5098. # endif
  5099. #endif
  5100. #if defined(S_ISSOCK) && defined(S_IFREG)
  5101. # if S_ISSOCK (S_IFREG)
  5102. You lose.
  5103. # endif
  5104. #endif
  5105. _ACEOF
  5106. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5107. $EGREP "You lose" >/dev/null 2>&1; then
  5108. ac_cv_header_stat_broken=yes
  5109. else
  5110. ac_cv_header_stat_broken=no
  5111. fi
  5112. rm -f conftest*
  5113. fi
  5114. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5115. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5116. if test $ac_cv_header_stat_broken = yes; then
  5117. cat >>confdefs.h <<\_ACEOF
  5118. #define STAT_MACROS_BROKEN 1
  5119. _ACEOF
  5120. fi
  5121. #checkpoint
  5122. cat >confcache <<\_ACEOF
  5123. # This file is a shell script that caches the results of configure
  5124. # tests run on this system so they can be shared between configure
  5125. # scripts and configure runs, see configure's option --config-cache.
  5126. # It is not useful on other systems. If it contains results you don't
  5127. # want to keep, you may remove or edit it.
  5128. #
  5129. # config.status only pays attention to the cache file if you give it
  5130. # the --recheck option to rerun configure.
  5131. #
  5132. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5133. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5134. # following values.
  5135. _ACEOF
  5136. # The following way of writing the cache mishandles newlines in values,
  5137. # but we know of no workaround that is simple, portable, and efficient.
  5138. # So, don't put newlines in cache variables' values.
  5139. # Ultrix sh set writes to stderr and can't be redirected directly,
  5140. # and sets the high bit in the cache file unless we assign to the vars.
  5141. {
  5142. (set) 2>&1 |
  5143. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5144. *ac_space=\ *)
  5145. # `set' does not quote correctly, so add quotes (double-quote
  5146. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5147. sed -n \
  5148. "s/'/'\\\\''/g;
  5149. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5150. ;;
  5151. *)
  5152. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5153. sed -n \
  5154. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5155. ;;
  5156. esac;
  5157. } |
  5158. sed '
  5159. t clear
  5160. : clear
  5161. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5162. t end
  5163. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5164. : end' >>confcache
  5165. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5166. if test -w $cache_file; then
  5167. test "x$cache_file" != "x/dev/null"
  5168. cat confcache >$cache_file
  5169. else
  5170. echo "not updating unwritable cache $cache_file"
  5171. fi
  5172. fi
  5173. rm -f confcache
  5174. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5175. do
  5176. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5177. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5178. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5179. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5180. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5181. echo $ECHO_N "(cached) $ECHO_C" >&6
  5182. fi
  5183. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5184. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5185. else
  5186. # Is the header compilable?
  5187. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5188. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5189. cat >conftest.$ac_ext <<_ACEOF
  5190. /* confdefs.h. */
  5191. _ACEOF
  5192. cat confdefs.h >>conftest.$ac_ext
  5193. cat >>conftest.$ac_ext <<_ACEOF
  5194. /* end confdefs.h. */
  5195. $ac_includes_default
  5196. #include <$ac_header>
  5197. _ACEOF
  5198. rm -f conftest.$ac_objext
  5199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5200. (eval $ac_compile) 2>conftest.er1
  5201. ac_status=$?
  5202. grep -v '^ *+' conftest.er1 >conftest.err
  5203. rm -f conftest.er1
  5204. cat conftest.err >&5
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); } &&
  5207. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5209. (eval $ac_try) 2>&5
  5210. ac_status=$?
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); }; } &&
  5213. { ac_try='test -s conftest.$ac_objext'
  5214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5215. (eval $ac_try) 2>&5
  5216. ac_status=$?
  5217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5218. (exit $ac_status); }; }; then
  5219. ac_header_compiler=yes
  5220. else
  5221. echo "$as_me: failed program was:" >&5
  5222. sed 's/^/| /' conftest.$ac_ext >&5
  5223. ac_header_compiler=no
  5224. fi
  5225. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5226. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5227. echo "${ECHO_T}$ac_header_compiler" >&6
  5228. # Is the header present?
  5229. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5230. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5231. cat >conftest.$ac_ext <<_ACEOF
  5232. /* confdefs.h. */
  5233. _ACEOF
  5234. cat confdefs.h >>conftest.$ac_ext
  5235. cat >>conftest.$ac_ext <<_ACEOF
  5236. /* end confdefs.h. */
  5237. #include <$ac_header>
  5238. _ACEOF
  5239. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5240. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5241. ac_status=$?
  5242. grep -v '^ *+' conftest.er1 >conftest.err
  5243. rm -f conftest.er1
  5244. cat conftest.err >&5
  5245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246. (exit $ac_status); } >/dev/null; then
  5247. if test -s conftest.err; then
  5248. ac_cpp_err=$ac_c_preproc_warn_flag
  5249. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5250. else
  5251. ac_cpp_err=
  5252. fi
  5253. else
  5254. ac_cpp_err=yes
  5255. fi
  5256. if test -z "$ac_cpp_err"; then
  5257. ac_header_preproc=yes
  5258. else
  5259. echo "$as_me: failed program was:" >&5
  5260. sed 's/^/| /' conftest.$ac_ext >&5
  5261. ac_header_preproc=no
  5262. fi
  5263. rm -f conftest.err conftest.$ac_ext
  5264. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5265. echo "${ECHO_T}$ac_header_preproc" >&6
  5266. # So? What about this header?
  5267. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5268. yes:no: )
  5269. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5270. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5271. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5272. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5273. ac_header_preproc=yes
  5274. ;;
  5275. no:yes:* )
  5276. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5277. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5278. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5279. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5280. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5281. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5282. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5283. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5284. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5285. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5286. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5287. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5288. (
  5289. cat <<\_ASBOX
  5290. ## ------------------------------------------ ##
  5291. ## Report this to the AC_PACKAGE_NAME lists. ##
  5292. ## ------------------------------------------ ##
  5293. _ASBOX
  5294. ) |
  5295. sed "s/^/$as_me: WARNING: /" >&2
  5296. ;;
  5297. esac
  5298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5301. echo $ECHO_N "(cached) $ECHO_C" >&6
  5302. else
  5303. eval "$as_ac_Header=\$ac_header_preproc"
  5304. fi
  5305. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5306. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5307. fi
  5308. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5309. cat >>confdefs.h <<_ACEOF
  5310. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5311. _ACEOF
  5312. fi
  5313. done
  5314. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5315. do
  5316. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5317. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5318. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5319. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5320. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5321. echo $ECHO_N "(cached) $ECHO_C" >&6
  5322. fi
  5323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5325. else
  5326. # Is the header compilable?
  5327. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5328. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5329. cat >conftest.$ac_ext <<_ACEOF
  5330. /* confdefs.h. */
  5331. _ACEOF
  5332. cat confdefs.h >>conftest.$ac_ext
  5333. cat >>conftest.$ac_ext <<_ACEOF
  5334. /* end confdefs.h. */
  5335. $ac_includes_default
  5336. #include <$ac_header>
  5337. _ACEOF
  5338. rm -f conftest.$ac_objext
  5339. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5340. (eval $ac_compile) 2>conftest.er1
  5341. ac_status=$?
  5342. grep -v '^ *+' conftest.er1 >conftest.err
  5343. rm -f conftest.er1
  5344. cat conftest.err >&5
  5345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5346. (exit $ac_status); } &&
  5347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5349. (eval $ac_try) 2>&5
  5350. ac_status=$?
  5351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5352. (exit $ac_status); }; } &&
  5353. { ac_try='test -s conftest.$ac_objext'
  5354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5355. (eval $ac_try) 2>&5
  5356. ac_status=$?
  5357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5358. (exit $ac_status); }; }; then
  5359. ac_header_compiler=yes
  5360. else
  5361. echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. ac_header_compiler=no
  5364. fi
  5365. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5366. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5367. echo "${ECHO_T}$ac_header_compiler" >&6
  5368. # Is the header present?
  5369. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5370. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5371. cat >conftest.$ac_ext <<_ACEOF
  5372. /* confdefs.h. */
  5373. _ACEOF
  5374. cat confdefs.h >>conftest.$ac_ext
  5375. cat >>conftest.$ac_ext <<_ACEOF
  5376. /* end confdefs.h. */
  5377. #include <$ac_header>
  5378. _ACEOF
  5379. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5380. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5381. ac_status=$?
  5382. grep -v '^ *+' conftest.er1 >conftest.err
  5383. rm -f conftest.er1
  5384. cat conftest.err >&5
  5385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5386. (exit $ac_status); } >/dev/null; then
  5387. if test -s conftest.err; then
  5388. ac_cpp_err=$ac_c_preproc_warn_flag
  5389. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5390. else
  5391. ac_cpp_err=
  5392. fi
  5393. else
  5394. ac_cpp_err=yes
  5395. fi
  5396. if test -z "$ac_cpp_err"; then
  5397. ac_header_preproc=yes
  5398. else
  5399. echo "$as_me: failed program was:" >&5
  5400. sed 's/^/| /' conftest.$ac_ext >&5
  5401. ac_header_preproc=no
  5402. fi
  5403. rm -f conftest.err conftest.$ac_ext
  5404. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5405. echo "${ECHO_T}$ac_header_preproc" >&6
  5406. # So? What about this header?
  5407. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5408. yes:no: )
  5409. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5410. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5412. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5413. ac_header_preproc=yes
  5414. ;;
  5415. no:yes:* )
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5417. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5418. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5419. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5420. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5421. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5422. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5423. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5424. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5425. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5426. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5427. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5428. (
  5429. cat <<\_ASBOX
  5430. ## ------------------------------------------ ##
  5431. ## Report this to the AC_PACKAGE_NAME lists. ##
  5432. ## ------------------------------------------ ##
  5433. _ASBOX
  5434. ) |
  5435. sed "s/^/$as_me: WARNING: /" >&2
  5436. ;;
  5437. esac
  5438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5441. echo $ECHO_N "(cached) $ECHO_C" >&6
  5442. else
  5443. eval "$as_ac_Header=\$ac_header_preproc"
  5444. fi
  5445. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5446. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5447. fi
  5448. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5449. cat >>confdefs.h <<_ACEOF
  5450. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5451. _ACEOF
  5452. fi
  5453. done
  5454. #checkpoint
  5455. cat >confcache <<\_ACEOF
  5456. # This file is a shell script that caches the results of configure
  5457. # tests run on this system so they can be shared between configure
  5458. # scripts and configure runs, see configure's option --config-cache.
  5459. # It is not useful on other systems. If it contains results you don't
  5460. # want to keep, you may remove or edit it.
  5461. #
  5462. # config.status only pays attention to the cache file if you give it
  5463. # the --recheck option to rerun configure.
  5464. #
  5465. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5466. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5467. # following values.
  5468. _ACEOF
  5469. # The following way of writing the cache mishandles newlines in values,
  5470. # but we know of no workaround that is simple, portable, and efficient.
  5471. # So, don't put newlines in cache variables' values.
  5472. # Ultrix sh set writes to stderr and can't be redirected directly,
  5473. # and sets the high bit in the cache file unless we assign to the vars.
  5474. {
  5475. (set) 2>&1 |
  5476. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5477. *ac_space=\ *)
  5478. # `set' does not quote correctly, so add quotes (double-quote
  5479. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5480. sed -n \
  5481. "s/'/'\\\\''/g;
  5482. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5483. ;;
  5484. *)
  5485. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5486. sed -n \
  5487. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5488. ;;
  5489. esac;
  5490. } |
  5491. sed '
  5492. t clear
  5493. : clear
  5494. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5495. t end
  5496. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5497. : end' >>confcache
  5498. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5499. if test -w $cache_file; then
  5500. test "x$cache_file" != "x/dev/null"
  5501. cat confcache >$cache_file
  5502. else
  5503. echo "not updating unwritable cache $cache_file"
  5504. fi
  5505. fi
  5506. rm -f confcache
  5507. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5508. for ac_header in zlib.h
  5509. do
  5510. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5512. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5513. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5514. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5515. echo $ECHO_N "(cached) $ECHO_C" >&6
  5516. fi
  5517. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5518. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5519. else
  5520. # Is the header compilable?
  5521. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5522. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5523. cat >conftest.$ac_ext <<_ACEOF
  5524. /* confdefs.h. */
  5525. _ACEOF
  5526. cat confdefs.h >>conftest.$ac_ext
  5527. cat >>conftest.$ac_ext <<_ACEOF
  5528. /* end confdefs.h. */
  5529. $ac_includes_default
  5530. #include <$ac_header>
  5531. _ACEOF
  5532. rm -f conftest.$ac_objext
  5533. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5534. (eval $ac_compile) 2>conftest.er1
  5535. ac_status=$?
  5536. grep -v '^ *+' conftest.er1 >conftest.err
  5537. rm -f conftest.er1
  5538. cat conftest.err >&5
  5539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5540. (exit $ac_status); } &&
  5541. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5543. (eval $ac_try) 2>&5
  5544. ac_status=$?
  5545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5546. (exit $ac_status); }; } &&
  5547. { ac_try='test -s conftest.$ac_objext'
  5548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5549. (eval $ac_try) 2>&5
  5550. ac_status=$?
  5551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5552. (exit $ac_status); }; }; then
  5553. ac_header_compiler=yes
  5554. else
  5555. echo "$as_me: failed program was:" >&5
  5556. sed 's/^/| /' conftest.$ac_ext >&5
  5557. ac_header_compiler=no
  5558. fi
  5559. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5560. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5561. echo "${ECHO_T}$ac_header_compiler" >&6
  5562. # Is the header present?
  5563. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5564. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5565. cat >conftest.$ac_ext <<_ACEOF
  5566. /* confdefs.h. */
  5567. _ACEOF
  5568. cat confdefs.h >>conftest.$ac_ext
  5569. cat >>conftest.$ac_ext <<_ACEOF
  5570. /* end confdefs.h. */
  5571. #include <$ac_header>
  5572. _ACEOF
  5573. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5574. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5575. ac_status=$?
  5576. grep -v '^ *+' conftest.er1 >conftest.err
  5577. rm -f conftest.er1
  5578. cat conftest.err >&5
  5579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5580. (exit $ac_status); } >/dev/null; then
  5581. if test -s conftest.err; then
  5582. ac_cpp_err=$ac_c_preproc_warn_flag
  5583. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5584. else
  5585. ac_cpp_err=
  5586. fi
  5587. else
  5588. ac_cpp_err=yes
  5589. fi
  5590. if test -z "$ac_cpp_err"; then
  5591. ac_header_preproc=yes
  5592. else
  5593. echo "$as_me: failed program was:" >&5
  5594. sed 's/^/| /' conftest.$ac_ext >&5
  5595. ac_header_preproc=no
  5596. fi
  5597. rm -f conftest.err conftest.$ac_ext
  5598. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5599. echo "${ECHO_T}$ac_header_preproc" >&6
  5600. # So? What about this header?
  5601. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5602. yes:no: )
  5603. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5604. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5605. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5606. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5607. ac_header_preproc=yes
  5608. ;;
  5609. no:yes:* )
  5610. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5611. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5612. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5613. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5614. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5615. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5616. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5617. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5618. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5619. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5620. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5621. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5622. (
  5623. cat <<\_ASBOX
  5624. ## ------------------------------------------ ##
  5625. ## Report this to the AC_PACKAGE_NAME lists. ##
  5626. ## ------------------------------------------ ##
  5627. _ASBOX
  5628. ) |
  5629. sed "s/^/$as_me: WARNING: /" >&2
  5630. ;;
  5631. esac
  5632. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5633. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5634. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5635. echo $ECHO_N "(cached) $ECHO_C" >&6
  5636. else
  5637. eval "$as_ac_Header=\$ac_header_preproc"
  5638. fi
  5639. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5640. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5641. fi
  5642. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5643. cat >>confdefs.h <<_ACEOF
  5644. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5645. _ACEOF
  5646. fi
  5647. done
  5648. if test "x${ZLIB}" = x; then
  5649. cat >&2 <<EOF
  5650. configure: error:
  5651. Your system does not provide a working zlib compression library.
  5652. It is required.
  5653. EOF
  5654. exit 1
  5655. else
  5656. if test "${ac_cv_header_zlib_h}" != yes; then
  5657. cat >&2 <<EOF
  5658. configure: error:
  5659. Your system does not provide the necessary zlib header file.
  5660. It is required.
  5661. EOF
  5662. exit 1
  5663. fi
  5664. fi
  5665. #EGG_CHECK_SSL
  5666. #AC_SUBST(SSL)dnl
  5667. # Checks for typedefs, structures, and compiler characteristics
  5668. echo "$as_me:$LINENO: checking for pid_t" >&5
  5669. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5670. if test "${ac_cv_type_pid_t+set}" = set; then
  5671. echo $ECHO_N "(cached) $ECHO_C" >&6
  5672. else
  5673. cat >conftest.$ac_ext <<_ACEOF
  5674. /* confdefs.h. */
  5675. _ACEOF
  5676. cat confdefs.h >>conftest.$ac_ext
  5677. cat >>conftest.$ac_ext <<_ACEOF
  5678. /* end confdefs.h. */
  5679. $ac_includes_default
  5680. int
  5681. main ()
  5682. {
  5683. if ((pid_t *) 0)
  5684. return 0;
  5685. if (sizeof (pid_t))
  5686. return 0;
  5687. ;
  5688. return 0;
  5689. }
  5690. _ACEOF
  5691. rm -f conftest.$ac_objext
  5692. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5693. (eval $ac_compile) 2>conftest.er1
  5694. ac_status=$?
  5695. grep -v '^ *+' conftest.er1 >conftest.err
  5696. rm -f conftest.er1
  5697. cat conftest.err >&5
  5698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5699. (exit $ac_status); } &&
  5700. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5702. (eval $ac_try) 2>&5
  5703. ac_status=$?
  5704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5705. (exit $ac_status); }; } &&
  5706. { ac_try='test -s conftest.$ac_objext'
  5707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5708. (eval $ac_try) 2>&5
  5709. ac_status=$?
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); }; }; then
  5712. ac_cv_type_pid_t=yes
  5713. else
  5714. echo "$as_me: failed program was:" >&5
  5715. sed 's/^/| /' conftest.$ac_ext >&5
  5716. ac_cv_type_pid_t=no
  5717. fi
  5718. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5719. fi
  5720. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5721. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5722. if test $ac_cv_type_pid_t = yes; then
  5723. :
  5724. else
  5725. cat >>confdefs.h <<_ACEOF
  5726. #define pid_t int
  5727. _ACEOF
  5728. fi
  5729. echo "$as_me:$LINENO: checking for size_t" >&5
  5730. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5731. if test "${ac_cv_type_size_t+set}" = set; then
  5732. echo $ECHO_N "(cached) $ECHO_C" >&6
  5733. else
  5734. cat >conftest.$ac_ext <<_ACEOF
  5735. /* confdefs.h. */
  5736. _ACEOF
  5737. cat confdefs.h >>conftest.$ac_ext
  5738. cat >>conftest.$ac_ext <<_ACEOF
  5739. /* end confdefs.h. */
  5740. $ac_includes_default
  5741. int
  5742. main ()
  5743. {
  5744. if ((size_t *) 0)
  5745. return 0;
  5746. if (sizeof (size_t))
  5747. return 0;
  5748. ;
  5749. return 0;
  5750. }
  5751. _ACEOF
  5752. rm -f conftest.$ac_objext
  5753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5754. (eval $ac_compile) 2>conftest.er1
  5755. ac_status=$?
  5756. grep -v '^ *+' conftest.er1 >conftest.err
  5757. rm -f conftest.er1
  5758. cat conftest.err >&5
  5759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5760. (exit $ac_status); } &&
  5761. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5763. (eval $ac_try) 2>&5
  5764. ac_status=$?
  5765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5766. (exit $ac_status); }; } &&
  5767. { ac_try='test -s conftest.$ac_objext'
  5768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5769. (eval $ac_try) 2>&5
  5770. ac_status=$?
  5771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5772. (exit $ac_status); }; }; then
  5773. ac_cv_type_size_t=yes
  5774. else
  5775. echo "$as_me: failed program was:" >&5
  5776. sed 's/^/| /' conftest.$ac_ext >&5
  5777. ac_cv_type_size_t=no
  5778. fi
  5779. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5780. fi
  5781. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5782. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5783. if test $ac_cv_type_size_t = yes; then
  5784. :
  5785. else
  5786. cat >>confdefs.h <<_ACEOF
  5787. #define size_t unsigned
  5788. _ACEOF
  5789. fi
  5790. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5791. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5792. if test "${ac_cv_type_uid_t+set}" = set; then
  5793. echo $ECHO_N "(cached) $ECHO_C" >&6
  5794. else
  5795. cat >conftest.$ac_ext <<_ACEOF
  5796. /* confdefs.h. */
  5797. _ACEOF
  5798. cat confdefs.h >>conftest.$ac_ext
  5799. cat >>conftest.$ac_ext <<_ACEOF
  5800. /* end confdefs.h. */
  5801. #include <sys/types.h>
  5802. _ACEOF
  5803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5804. $EGREP "uid_t" >/dev/null 2>&1; then
  5805. ac_cv_type_uid_t=yes
  5806. else
  5807. ac_cv_type_uid_t=no
  5808. fi
  5809. rm -f conftest*
  5810. fi
  5811. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5812. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5813. if test $ac_cv_type_uid_t = no; then
  5814. cat >>confdefs.h <<\_ACEOF
  5815. #define uid_t int
  5816. _ACEOF
  5817. cat >>confdefs.h <<\_ACEOF
  5818. #define gid_t int
  5819. _ACEOF
  5820. fi
  5821. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5822. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5823. if test "${ac_cv_c_const+set}" = set; then
  5824. echo $ECHO_N "(cached) $ECHO_C" >&6
  5825. else
  5826. cat >conftest.$ac_ext <<_ACEOF
  5827. /* confdefs.h. */
  5828. _ACEOF
  5829. cat confdefs.h >>conftest.$ac_ext
  5830. cat >>conftest.$ac_ext <<_ACEOF
  5831. /* end confdefs.h. */
  5832. int
  5833. main ()
  5834. {
  5835. /* FIXME: Include the comments suggested by Paul. */
  5836. #ifndef __cplusplus
  5837. /* Ultrix mips cc rejects this. */
  5838. typedef int charset[2];
  5839. const charset x;
  5840. /* SunOS 4.1.1 cc rejects this. */
  5841. char const *const *ccp;
  5842. char **p;
  5843. /* NEC SVR4.0.2 mips cc rejects this. */
  5844. struct point {int x, y;};
  5845. static struct point const zero = {0,0};
  5846. /* AIX XL C 1.02.0.0 rejects this.
  5847. It does not let you subtract one const X* pointer from another in
  5848. an arm of an if-expression whose if-part is not a constant
  5849. expression */
  5850. const char *g = "string";
  5851. ccp = &g + (g ? g-g : 0);
  5852. /* HPUX 7.0 cc rejects these. */
  5853. ++ccp;
  5854. p = (char**) ccp;
  5855. ccp = (char const *const *) p;
  5856. { /* SCO 3.2v4 cc rejects this. */
  5857. char *t;
  5858. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5859. *t++ = 0;
  5860. }
  5861. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5862. int x[] = {25, 17};
  5863. const int *foo = &x[0];
  5864. ++foo;
  5865. }
  5866. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5867. typedef const int *iptr;
  5868. iptr p = 0;
  5869. ++p;
  5870. }
  5871. { /* AIX XL C 1.02.0.0 rejects this saying
  5872. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5873. struct s { int j; const int *ap[3]; };
  5874. struct s *b; b->j = 5;
  5875. }
  5876. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5877. const int foo = 10;
  5878. }
  5879. #endif
  5880. ;
  5881. return 0;
  5882. }
  5883. _ACEOF
  5884. rm -f conftest.$ac_objext
  5885. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5886. (eval $ac_compile) 2>conftest.er1
  5887. ac_status=$?
  5888. grep -v '^ *+' conftest.er1 >conftest.err
  5889. rm -f conftest.er1
  5890. cat conftest.err >&5
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); } &&
  5893. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5895. (eval $ac_try) 2>&5
  5896. ac_status=$?
  5897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5898. (exit $ac_status); }; } &&
  5899. { ac_try='test -s conftest.$ac_objext'
  5900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5901. (eval $ac_try) 2>&5
  5902. ac_status=$?
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); }; }; then
  5905. ac_cv_c_const=yes
  5906. else
  5907. echo "$as_me: failed program was:" >&5
  5908. sed 's/^/| /' conftest.$ac_ext >&5
  5909. ac_cv_c_const=no
  5910. fi
  5911. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5912. fi
  5913. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5914. echo "${ECHO_T}$ac_cv_c_const" >&6
  5915. if test $ac_cv_c_const = no; then
  5916. cat >>confdefs.h <<\_ACEOF
  5917. #define const
  5918. _ACEOF
  5919. fi
  5920. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5921. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5922. if test "${ac_cv_c_bigendian+set}" = set; then
  5923. echo $ECHO_N "(cached) $ECHO_C" >&6
  5924. else
  5925. # See if sys/param.h defines the BYTE_ORDER macro.
  5926. cat >conftest.$ac_ext <<_ACEOF
  5927. /* confdefs.h. */
  5928. _ACEOF
  5929. cat confdefs.h >>conftest.$ac_ext
  5930. cat >>conftest.$ac_ext <<_ACEOF
  5931. /* end confdefs.h. */
  5932. #include <sys/types.h>
  5933. #include <sys/param.h>
  5934. int
  5935. main ()
  5936. {
  5937. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5938. bogus endian macros
  5939. #endif
  5940. ;
  5941. return 0;
  5942. }
  5943. _ACEOF
  5944. rm -f conftest.$ac_objext
  5945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5946. (eval $ac_compile) 2>conftest.er1
  5947. ac_status=$?
  5948. grep -v '^ *+' conftest.er1 >conftest.err
  5949. rm -f conftest.er1
  5950. cat conftest.err >&5
  5951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5952. (exit $ac_status); } &&
  5953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5955. (eval $ac_try) 2>&5
  5956. ac_status=$?
  5957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5958. (exit $ac_status); }; } &&
  5959. { ac_try='test -s conftest.$ac_objext'
  5960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5961. (eval $ac_try) 2>&5
  5962. ac_status=$?
  5963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5964. (exit $ac_status); }; }; then
  5965. # It does; now see whether it defined to BIG_ENDIAN or not.
  5966. cat >conftest.$ac_ext <<_ACEOF
  5967. /* confdefs.h. */
  5968. _ACEOF
  5969. cat confdefs.h >>conftest.$ac_ext
  5970. cat >>conftest.$ac_ext <<_ACEOF
  5971. /* end confdefs.h. */
  5972. #include <sys/types.h>
  5973. #include <sys/param.h>
  5974. int
  5975. main ()
  5976. {
  5977. #if BYTE_ORDER != BIG_ENDIAN
  5978. not big endian
  5979. #endif
  5980. ;
  5981. return 0;
  5982. }
  5983. _ACEOF
  5984. rm -f conftest.$ac_objext
  5985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5986. (eval $ac_compile) 2>conftest.er1
  5987. ac_status=$?
  5988. grep -v '^ *+' conftest.er1 >conftest.err
  5989. rm -f conftest.er1
  5990. cat conftest.err >&5
  5991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5992. (exit $ac_status); } &&
  5993. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5995. (eval $ac_try) 2>&5
  5996. ac_status=$?
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); }; } &&
  5999. { ac_try='test -s conftest.$ac_objext'
  6000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6001. (eval $ac_try) 2>&5
  6002. ac_status=$?
  6003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6004. (exit $ac_status); }; }; then
  6005. ac_cv_c_bigendian=yes
  6006. else
  6007. echo "$as_me: failed program was:" >&5
  6008. sed 's/^/| /' conftest.$ac_ext >&5
  6009. ac_cv_c_bigendian=no
  6010. fi
  6011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6012. else
  6013. echo "$as_me: failed program was:" >&5
  6014. sed 's/^/| /' conftest.$ac_ext >&5
  6015. # It does not; compile a test program.
  6016. if test "$cross_compiling" = yes; then
  6017. # try to guess the endianness by grepping values into an object file
  6018. ac_cv_c_bigendian=unknown
  6019. cat >conftest.$ac_ext <<_ACEOF
  6020. /* confdefs.h. */
  6021. _ACEOF
  6022. cat confdefs.h >>conftest.$ac_ext
  6023. cat >>conftest.$ac_ext <<_ACEOF
  6024. /* end confdefs.h. */
  6025. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6026. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6027. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6028. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6029. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6030. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6031. int
  6032. main ()
  6033. {
  6034. _ascii (); _ebcdic ();
  6035. ;
  6036. return 0;
  6037. }
  6038. _ACEOF
  6039. rm -f conftest.$ac_objext
  6040. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6041. (eval $ac_compile) 2>conftest.er1
  6042. ac_status=$?
  6043. grep -v '^ *+' conftest.er1 >conftest.err
  6044. rm -f conftest.er1
  6045. cat conftest.err >&5
  6046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); } &&
  6048. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6050. (eval $ac_try) 2>&5
  6051. ac_status=$?
  6052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6053. (exit $ac_status); }; } &&
  6054. { ac_try='test -s conftest.$ac_objext'
  6055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6056. (eval $ac_try) 2>&5
  6057. ac_status=$?
  6058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6059. (exit $ac_status); }; }; then
  6060. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6061. ac_cv_c_bigendian=yes
  6062. fi
  6063. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6064. if test "$ac_cv_c_bigendian" = unknown; then
  6065. ac_cv_c_bigendian=no
  6066. else
  6067. # finding both strings is unlikely to happen, but who knows?
  6068. ac_cv_c_bigendian=unknown
  6069. fi
  6070. fi
  6071. else
  6072. echo "$as_me: failed program was:" >&5
  6073. sed 's/^/| /' conftest.$ac_ext >&5
  6074. fi
  6075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6076. else
  6077. cat >conftest.$ac_ext <<_ACEOF
  6078. /* confdefs.h. */
  6079. _ACEOF
  6080. cat confdefs.h >>conftest.$ac_ext
  6081. cat >>conftest.$ac_ext <<_ACEOF
  6082. /* end confdefs.h. */
  6083. int
  6084. main ()
  6085. {
  6086. /* Are we little or big endian? From Harbison&Steele. */
  6087. union
  6088. {
  6089. long l;
  6090. char c[sizeof (long)];
  6091. } u;
  6092. u.l = 1;
  6093. exit (u.c[sizeof (long) - 1] == 1);
  6094. }
  6095. _ACEOF
  6096. rm -f conftest$ac_exeext
  6097. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6098. (eval $ac_link) 2>&5
  6099. ac_status=$?
  6100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6103. (eval $ac_try) 2>&5
  6104. ac_status=$?
  6105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6106. (exit $ac_status); }; }; then
  6107. ac_cv_c_bigendian=no
  6108. else
  6109. echo "$as_me: program exited with status $ac_status" >&5
  6110. echo "$as_me: failed program was:" >&5
  6111. sed 's/^/| /' conftest.$ac_ext >&5
  6112. ( exit $ac_status )
  6113. ac_cv_c_bigendian=yes
  6114. fi
  6115. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6116. fi
  6117. fi
  6118. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. fi
  6120. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6121. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6122. case $ac_cv_c_bigendian in
  6123. yes)
  6124. cat >>confdefs.h <<\_ACEOF
  6125. #define WORDS_BIGENDIAN 1
  6126. _ACEOF
  6127. ;;
  6128. no)
  6129. ;;
  6130. *)
  6131. { { echo "$as_me:$LINENO: error: unknown endianness
  6132. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6133. echo "$as_me: error: unknown endianness
  6134. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6135. { (exit 1); exit 1; }; } ;;
  6136. esac
  6137. echo "$as_me:$LINENO: checking for inline" >&5
  6138. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6139. if test "${ac_cv_c_inline+set}" = set; then
  6140. echo $ECHO_N "(cached) $ECHO_C" >&6
  6141. else
  6142. ac_cv_c_inline=no
  6143. for ac_kw in inline __inline__ __inline; do
  6144. cat >conftest.$ac_ext <<_ACEOF
  6145. /* confdefs.h. */
  6146. _ACEOF
  6147. cat confdefs.h >>conftest.$ac_ext
  6148. cat >>conftest.$ac_ext <<_ACEOF
  6149. /* end confdefs.h. */
  6150. #ifndef __cplusplus
  6151. typedef int foo_t;
  6152. static $ac_kw foo_t static_foo () {return 0; }
  6153. $ac_kw foo_t foo () {return 0; }
  6154. #endif
  6155. _ACEOF
  6156. rm -f conftest.$ac_objext
  6157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6158. (eval $ac_compile) 2>conftest.er1
  6159. ac_status=$?
  6160. grep -v '^ *+' conftest.er1 >conftest.err
  6161. rm -f conftest.er1
  6162. cat conftest.err >&5
  6163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6164. (exit $ac_status); } &&
  6165. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6167. (eval $ac_try) 2>&5
  6168. ac_status=$?
  6169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6170. (exit $ac_status); }; } &&
  6171. { ac_try='test -s conftest.$ac_objext'
  6172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6173. (eval $ac_try) 2>&5
  6174. ac_status=$?
  6175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6176. (exit $ac_status); }; }; then
  6177. ac_cv_c_inline=$ac_kw; break
  6178. else
  6179. echo "$as_me: failed program was:" >&5
  6180. sed 's/^/| /' conftest.$ac_ext >&5
  6181. fi
  6182. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6183. done
  6184. fi
  6185. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6186. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6187. case $ac_cv_c_inline in
  6188. inline | yes) ;;
  6189. *)
  6190. case $ac_cv_c_inline in
  6191. no) ac_val=;;
  6192. *) ac_val=$ac_cv_c_inline;;
  6193. esac
  6194. cat >>confdefs.h <<_ACEOF
  6195. #ifndef __cplusplus
  6196. #define inline $ac_val
  6197. #endif
  6198. _ACEOF
  6199. ;;
  6200. esac
  6201. echo "$as_me:$LINENO: checking for long" >&5
  6202. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6203. if test "${ac_cv_type_long+set}" = set; then
  6204. echo $ECHO_N "(cached) $ECHO_C" >&6
  6205. else
  6206. cat >conftest.$ac_ext <<_ACEOF
  6207. /* confdefs.h. */
  6208. _ACEOF
  6209. cat confdefs.h >>conftest.$ac_ext
  6210. cat >>conftest.$ac_ext <<_ACEOF
  6211. /* end confdefs.h. */
  6212. $ac_includes_default
  6213. int
  6214. main ()
  6215. {
  6216. if ((long *) 0)
  6217. return 0;
  6218. if (sizeof (long))
  6219. return 0;
  6220. ;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. rm -f conftest.$ac_objext
  6225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6226. (eval $ac_compile) 2>conftest.er1
  6227. ac_status=$?
  6228. grep -v '^ *+' conftest.er1 >conftest.err
  6229. rm -f conftest.er1
  6230. cat conftest.err >&5
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); } &&
  6233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; } &&
  6239. { ac_try='test -s conftest.$ac_objext'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; }; then
  6245. ac_cv_type_long=yes
  6246. else
  6247. echo "$as_me: failed program was:" >&5
  6248. sed 's/^/| /' conftest.$ac_ext >&5
  6249. ac_cv_type_long=no
  6250. fi
  6251. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6252. fi
  6253. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6254. echo "${ECHO_T}$ac_cv_type_long" >&6
  6255. echo "$as_me:$LINENO: checking size of long" >&5
  6256. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6257. if test "${ac_cv_sizeof_long+set}" = set; then
  6258. echo $ECHO_N "(cached) $ECHO_C" >&6
  6259. else
  6260. if test "$ac_cv_type_long" = yes; then
  6261. # The cast to unsigned long works around a bug in the HP C Compiler
  6262. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6263. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6264. # This bug is HP SR number 8606223364.
  6265. if test "$cross_compiling" = yes; then
  6266. # Depending upon the size, compute the lo and hi bounds.
  6267. cat >conftest.$ac_ext <<_ACEOF
  6268. /* confdefs.h. */
  6269. _ACEOF
  6270. cat confdefs.h >>conftest.$ac_ext
  6271. cat >>conftest.$ac_ext <<_ACEOF
  6272. /* end confdefs.h. */
  6273. $ac_includes_default
  6274. int
  6275. main ()
  6276. {
  6277. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6278. test_array [0] = 0
  6279. ;
  6280. return 0;
  6281. }
  6282. _ACEOF
  6283. rm -f conftest.$ac_objext
  6284. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6285. (eval $ac_compile) 2>conftest.er1
  6286. ac_status=$?
  6287. grep -v '^ *+' conftest.er1 >conftest.err
  6288. rm -f conftest.er1
  6289. cat conftest.err >&5
  6290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6291. (exit $ac_status); } &&
  6292. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6294. (eval $ac_try) 2>&5
  6295. ac_status=$?
  6296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6297. (exit $ac_status); }; } &&
  6298. { ac_try='test -s conftest.$ac_objext'
  6299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6300. (eval $ac_try) 2>&5
  6301. ac_status=$?
  6302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6303. (exit $ac_status); }; }; then
  6304. ac_lo=0 ac_mid=0
  6305. while :; do
  6306. cat >conftest.$ac_ext <<_ACEOF
  6307. /* confdefs.h. */
  6308. _ACEOF
  6309. cat confdefs.h >>conftest.$ac_ext
  6310. cat >>conftest.$ac_ext <<_ACEOF
  6311. /* end confdefs.h. */
  6312. $ac_includes_default
  6313. int
  6314. main ()
  6315. {
  6316. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6317. test_array [0] = 0
  6318. ;
  6319. return 0;
  6320. }
  6321. _ACEOF
  6322. rm -f conftest.$ac_objext
  6323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6324. (eval $ac_compile) 2>conftest.er1
  6325. ac_status=$?
  6326. grep -v '^ *+' conftest.er1 >conftest.err
  6327. rm -f conftest.er1
  6328. cat conftest.err >&5
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); } &&
  6331. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6333. (eval $ac_try) 2>&5
  6334. ac_status=$?
  6335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6336. (exit $ac_status); }; } &&
  6337. { ac_try='test -s conftest.$ac_objext'
  6338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6339. (eval $ac_try) 2>&5
  6340. ac_status=$?
  6341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6342. (exit $ac_status); }; }; then
  6343. ac_hi=$ac_mid; break
  6344. else
  6345. echo "$as_me: failed program was:" >&5
  6346. sed 's/^/| /' conftest.$ac_ext >&5
  6347. ac_lo=`expr $ac_mid + 1`
  6348. if test $ac_lo -le $ac_mid; then
  6349. ac_lo= ac_hi=
  6350. break
  6351. fi
  6352. ac_mid=`expr 2 '*' $ac_mid + 1`
  6353. fi
  6354. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6355. done
  6356. else
  6357. echo "$as_me: failed program was:" >&5
  6358. sed 's/^/| /' conftest.$ac_ext >&5
  6359. cat >conftest.$ac_ext <<_ACEOF
  6360. /* confdefs.h. */
  6361. _ACEOF
  6362. cat confdefs.h >>conftest.$ac_ext
  6363. cat >>conftest.$ac_ext <<_ACEOF
  6364. /* end confdefs.h. */
  6365. $ac_includes_default
  6366. int
  6367. main ()
  6368. {
  6369. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6370. test_array [0] = 0
  6371. ;
  6372. return 0;
  6373. }
  6374. _ACEOF
  6375. rm -f conftest.$ac_objext
  6376. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6377. (eval $ac_compile) 2>conftest.er1
  6378. ac_status=$?
  6379. grep -v '^ *+' conftest.er1 >conftest.err
  6380. rm -f conftest.er1
  6381. cat conftest.err >&5
  6382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. (exit $ac_status); } &&
  6384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6386. (eval $ac_try) 2>&5
  6387. ac_status=$?
  6388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6389. (exit $ac_status); }; } &&
  6390. { ac_try='test -s conftest.$ac_objext'
  6391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6392. (eval $ac_try) 2>&5
  6393. ac_status=$?
  6394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6395. (exit $ac_status); }; }; then
  6396. ac_hi=-1 ac_mid=-1
  6397. while :; do
  6398. cat >conftest.$ac_ext <<_ACEOF
  6399. /* confdefs.h. */
  6400. _ACEOF
  6401. cat confdefs.h >>conftest.$ac_ext
  6402. cat >>conftest.$ac_ext <<_ACEOF
  6403. /* end confdefs.h. */
  6404. $ac_includes_default
  6405. int
  6406. main ()
  6407. {
  6408. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6409. test_array [0] = 0
  6410. ;
  6411. return 0;
  6412. }
  6413. _ACEOF
  6414. rm -f conftest.$ac_objext
  6415. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6416. (eval $ac_compile) 2>conftest.er1
  6417. ac_status=$?
  6418. grep -v '^ *+' conftest.er1 >conftest.err
  6419. rm -f conftest.er1
  6420. cat conftest.err >&5
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); } &&
  6423. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6425. (eval $ac_try) 2>&5
  6426. ac_status=$?
  6427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6428. (exit $ac_status); }; } &&
  6429. { ac_try='test -s conftest.$ac_objext'
  6430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6431. (eval $ac_try) 2>&5
  6432. ac_status=$?
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); }; }; then
  6435. ac_lo=$ac_mid; break
  6436. else
  6437. echo "$as_me: failed program was:" >&5
  6438. sed 's/^/| /' conftest.$ac_ext >&5
  6439. ac_hi=`expr '(' $ac_mid ')' - 1`
  6440. if test $ac_mid -le $ac_hi; then
  6441. ac_lo= ac_hi=
  6442. break
  6443. fi
  6444. ac_mid=`expr 2 '*' $ac_mid`
  6445. fi
  6446. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. done
  6448. else
  6449. echo "$as_me: failed program was:" >&5
  6450. sed 's/^/| /' conftest.$ac_ext >&5
  6451. ac_lo= ac_hi=
  6452. fi
  6453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. fi
  6455. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6456. # Binary search between lo and hi bounds.
  6457. while test "x$ac_lo" != "x$ac_hi"; do
  6458. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6459. cat >conftest.$ac_ext <<_ACEOF
  6460. /* confdefs.h. */
  6461. _ACEOF
  6462. cat confdefs.h >>conftest.$ac_ext
  6463. cat >>conftest.$ac_ext <<_ACEOF
  6464. /* end confdefs.h. */
  6465. $ac_includes_default
  6466. int
  6467. main ()
  6468. {
  6469. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6470. test_array [0] = 0
  6471. ;
  6472. return 0;
  6473. }
  6474. _ACEOF
  6475. rm -f conftest.$ac_objext
  6476. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6477. (eval $ac_compile) 2>conftest.er1
  6478. ac_status=$?
  6479. grep -v '^ *+' conftest.er1 >conftest.err
  6480. rm -f conftest.er1
  6481. cat conftest.err >&5
  6482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6483. (exit $ac_status); } &&
  6484. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6486. (eval $ac_try) 2>&5
  6487. ac_status=$?
  6488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6489. (exit $ac_status); }; } &&
  6490. { ac_try='test -s conftest.$ac_objext'
  6491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6492. (eval $ac_try) 2>&5
  6493. ac_status=$?
  6494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6495. (exit $ac_status); }; }; then
  6496. ac_hi=$ac_mid
  6497. else
  6498. echo "$as_me: failed program was:" >&5
  6499. sed 's/^/| /' conftest.$ac_ext >&5
  6500. ac_lo=`expr '(' $ac_mid ')' + 1`
  6501. fi
  6502. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6503. done
  6504. case $ac_lo in
  6505. ?*) ac_cv_sizeof_long=$ac_lo;;
  6506. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6507. See \`config.log' for more details." >&5
  6508. echo "$as_me: error: cannot compute sizeof (long), 77
  6509. See \`config.log' for more details." >&2;}
  6510. { (exit 1); exit 1; }; } ;;
  6511. esac
  6512. else
  6513. if test "$cross_compiling" = yes; then
  6514. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6515. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6516. { (exit 1); exit 1; }; }
  6517. else
  6518. cat >conftest.$ac_ext <<_ACEOF
  6519. /* confdefs.h. */
  6520. _ACEOF
  6521. cat confdefs.h >>conftest.$ac_ext
  6522. cat >>conftest.$ac_ext <<_ACEOF
  6523. /* end confdefs.h. */
  6524. $ac_includes_default
  6525. long longval () { return (long) (sizeof (long)); }
  6526. unsigned long ulongval () { return (long) (sizeof (long)); }
  6527. #include <stdio.h>
  6528. #include <stdlib.h>
  6529. int
  6530. main ()
  6531. {
  6532. FILE *f = fopen ("conftest.val", "w");
  6533. if (! f)
  6534. exit (1);
  6535. if (((long) (sizeof (long))) < 0)
  6536. {
  6537. long i = longval ();
  6538. if (i != ((long) (sizeof (long))))
  6539. exit (1);
  6540. fprintf (f, "%ld\n", i);
  6541. }
  6542. else
  6543. {
  6544. unsigned long i = ulongval ();
  6545. if (i != ((long) (sizeof (long))))
  6546. exit (1);
  6547. fprintf (f, "%lu\n", i);
  6548. }
  6549. exit (ferror (f) || fclose (f) != 0);
  6550. ;
  6551. return 0;
  6552. }
  6553. _ACEOF
  6554. rm -f conftest$ac_exeext
  6555. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6556. (eval $ac_link) 2>&5
  6557. ac_status=$?
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6561. (eval $ac_try) 2>&5
  6562. ac_status=$?
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); }; }; then
  6565. ac_cv_sizeof_long=`cat conftest.val`
  6566. else
  6567. echo "$as_me: program exited with status $ac_status" >&5
  6568. echo "$as_me: failed program was:" >&5
  6569. sed 's/^/| /' conftest.$ac_ext >&5
  6570. ( exit $ac_status )
  6571. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6572. See \`config.log' for more details." >&5
  6573. echo "$as_me: error: cannot compute sizeof (long), 77
  6574. See \`config.log' for more details." >&2;}
  6575. { (exit 1); exit 1; }; }
  6576. fi
  6577. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6578. fi
  6579. fi
  6580. rm -f conftest.val
  6581. else
  6582. ac_cv_sizeof_long=0
  6583. fi
  6584. fi
  6585. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6586. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6587. cat >>confdefs.h <<_ACEOF
  6588. #define SIZEOF_LONG $ac_cv_sizeof_long
  6589. _ACEOF
  6590. echo "$as_me:$LINENO: checking for int" >&5
  6591. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6592. if test "${ac_cv_type_int+set}" = set; then
  6593. echo $ECHO_N "(cached) $ECHO_C" >&6
  6594. else
  6595. cat >conftest.$ac_ext <<_ACEOF
  6596. /* confdefs.h. */
  6597. _ACEOF
  6598. cat confdefs.h >>conftest.$ac_ext
  6599. cat >>conftest.$ac_ext <<_ACEOF
  6600. /* end confdefs.h. */
  6601. $ac_includes_default
  6602. int
  6603. main ()
  6604. {
  6605. if ((int *) 0)
  6606. return 0;
  6607. if (sizeof (int))
  6608. return 0;
  6609. ;
  6610. return 0;
  6611. }
  6612. _ACEOF
  6613. rm -f conftest.$ac_objext
  6614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6615. (eval $ac_compile) 2>conftest.er1
  6616. ac_status=$?
  6617. grep -v '^ *+' conftest.er1 >conftest.err
  6618. rm -f conftest.er1
  6619. cat conftest.err >&5
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); } &&
  6622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6624. (eval $ac_try) 2>&5
  6625. ac_status=$?
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); }; } &&
  6628. { ac_try='test -s conftest.$ac_objext'
  6629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6630. (eval $ac_try) 2>&5
  6631. ac_status=$?
  6632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6633. (exit $ac_status); }; }; then
  6634. ac_cv_type_int=yes
  6635. else
  6636. echo "$as_me: failed program was:" >&5
  6637. sed 's/^/| /' conftest.$ac_ext >&5
  6638. ac_cv_type_int=no
  6639. fi
  6640. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6641. fi
  6642. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6643. echo "${ECHO_T}$ac_cv_type_int" >&6
  6644. echo "$as_me:$LINENO: checking size of int" >&5
  6645. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6646. if test "${ac_cv_sizeof_int+set}" = set; then
  6647. echo $ECHO_N "(cached) $ECHO_C" >&6
  6648. else
  6649. if test "$ac_cv_type_int" = yes; then
  6650. # The cast to unsigned long works around a bug in the HP C Compiler
  6651. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6652. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6653. # This bug is HP SR number 8606223364.
  6654. if test "$cross_compiling" = yes; then
  6655. # Depending upon the size, compute the lo and hi bounds.
  6656. cat >conftest.$ac_ext <<_ACEOF
  6657. /* confdefs.h. */
  6658. _ACEOF
  6659. cat confdefs.h >>conftest.$ac_ext
  6660. cat >>conftest.$ac_ext <<_ACEOF
  6661. /* end confdefs.h. */
  6662. $ac_includes_default
  6663. int
  6664. main ()
  6665. {
  6666. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6667. test_array [0] = 0
  6668. ;
  6669. return 0;
  6670. }
  6671. _ACEOF
  6672. rm -f conftest.$ac_objext
  6673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6674. (eval $ac_compile) 2>conftest.er1
  6675. ac_status=$?
  6676. grep -v '^ *+' conftest.er1 >conftest.err
  6677. rm -f conftest.er1
  6678. cat conftest.err >&5
  6679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6680. (exit $ac_status); } &&
  6681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6683. (eval $ac_try) 2>&5
  6684. ac_status=$?
  6685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6686. (exit $ac_status); }; } &&
  6687. { ac_try='test -s conftest.$ac_objext'
  6688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6689. (eval $ac_try) 2>&5
  6690. ac_status=$?
  6691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6692. (exit $ac_status); }; }; then
  6693. ac_lo=0 ac_mid=0
  6694. while :; do
  6695. cat >conftest.$ac_ext <<_ACEOF
  6696. /* confdefs.h. */
  6697. _ACEOF
  6698. cat confdefs.h >>conftest.$ac_ext
  6699. cat >>conftest.$ac_ext <<_ACEOF
  6700. /* end confdefs.h. */
  6701. $ac_includes_default
  6702. int
  6703. main ()
  6704. {
  6705. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6706. test_array [0] = 0
  6707. ;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. rm -f conftest.$ac_objext
  6712. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6713. (eval $ac_compile) 2>conftest.er1
  6714. ac_status=$?
  6715. grep -v '^ *+' conftest.er1 >conftest.err
  6716. rm -f conftest.er1
  6717. cat conftest.err >&5
  6718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719. (exit $ac_status); } &&
  6720. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6722. (eval $ac_try) 2>&5
  6723. ac_status=$?
  6724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6725. (exit $ac_status); }; } &&
  6726. { ac_try='test -s conftest.$ac_objext'
  6727. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6728. (eval $ac_try) 2>&5
  6729. ac_status=$?
  6730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731. (exit $ac_status); }; }; then
  6732. ac_hi=$ac_mid; break
  6733. else
  6734. echo "$as_me: failed program was:" >&5
  6735. sed 's/^/| /' conftest.$ac_ext >&5
  6736. ac_lo=`expr $ac_mid + 1`
  6737. if test $ac_lo -le $ac_mid; then
  6738. ac_lo= ac_hi=
  6739. break
  6740. fi
  6741. ac_mid=`expr 2 '*' $ac_mid + 1`
  6742. fi
  6743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6744. done
  6745. else
  6746. echo "$as_me: failed program was:" >&5
  6747. sed 's/^/| /' conftest.$ac_ext >&5
  6748. cat >conftest.$ac_ext <<_ACEOF
  6749. /* confdefs.h. */
  6750. _ACEOF
  6751. cat confdefs.h >>conftest.$ac_ext
  6752. cat >>conftest.$ac_ext <<_ACEOF
  6753. /* end confdefs.h. */
  6754. $ac_includes_default
  6755. int
  6756. main ()
  6757. {
  6758. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6759. test_array [0] = 0
  6760. ;
  6761. return 0;
  6762. }
  6763. _ACEOF
  6764. rm -f conftest.$ac_objext
  6765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6766. (eval $ac_compile) 2>conftest.er1
  6767. ac_status=$?
  6768. grep -v '^ *+' conftest.er1 >conftest.err
  6769. rm -f conftest.er1
  6770. cat conftest.err >&5
  6771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); } &&
  6773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6775. (eval $ac_try) 2>&5
  6776. ac_status=$?
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); }; } &&
  6779. { ac_try='test -s conftest.$ac_objext'
  6780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6781. (eval $ac_try) 2>&5
  6782. ac_status=$?
  6783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6784. (exit $ac_status); }; }; then
  6785. ac_hi=-1 ac_mid=-1
  6786. while :; do
  6787. cat >conftest.$ac_ext <<_ACEOF
  6788. /* confdefs.h. */
  6789. _ACEOF
  6790. cat confdefs.h >>conftest.$ac_ext
  6791. cat >>conftest.$ac_ext <<_ACEOF
  6792. /* end confdefs.h. */
  6793. $ac_includes_default
  6794. int
  6795. main ()
  6796. {
  6797. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6798. test_array [0] = 0
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. rm -f conftest.$ac_objext
  6804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6805. (eval $ac_compile) 2>conftest.er1
  6806. ac_status=$?
  6807. grep -v '^ *+' conftest.er1 >conftest.err
  6808. rm -f conftest.er1
  6809. cat conftest.err >&5
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); } &&
  6812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6814. (eval $ac_try) 2>&5
  6815. ac_status=$?
  6816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6817. (exit $ac_status); }; } &&
  6818. { ac_try='test -s conftest.$ac_objext'
  6819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6820. (eval $ac_try) 2>&5
  6821. ac_status=$?
  6822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. (exit $ac_status); }; }; then
  6824. ac_lo=$ac_mid; break
  6825. else
  6826. echo "$as_me: failed program was:" >&5
  6827. sed 's/^/| /' conftest.$ac_ext >&5
  6828. ac_hi=`expr '(' $ac_mid ')' - 1`
  6829. if test $ac_mid -le $ac_hi; then
  6830. ac_lo= ac_hi=
  6831. break
  6832. fi
  6833. ac_mid=`expr 2 '*' $ac_mid`
  6834. fi
  6835. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6836. done
  6837. else
  6838. echo "$as_me: failed program was:" >&5
  6839. sed 's/^/| /' conftest.$ac_ext >&5
  6840. ac_lo= ac_hi=
  6841. fi
  6842. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6843. fi
  6844. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6845. # Binary search between lo and hi bounds.
  6846. while test "x$ac_lo" != "x$ac_hi"; do
  6847. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6848. cat >conftest.$ac_ext <<_ACEOF
  6849. /* confdefs.h. */
  6850. _ACEOF
  6851. cat confdefs.h >>conftest.$ac_ext
  6852. cat >>conftest.$ac_ext <<_ACEOF
  6853. /* end confdefs.h. */
  6854. $ac_includes_default
  6855. int
  6856. main ()
  6857. {
  6858. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6859. test_array [0] = 0
  6860. ;
  6861. return 0;
  6862. }
  6863. _ACEOF
  6864. rm -f conftest.$ac_objext
  6865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6866. (eval $ac_compile) 2>conftest.er1
  6867. ac_status=$?
  6868. grep -v '^ *+' conftest.er1 >conftest.err
  6869. rm -f conftest.er1
  6870. cat conftest.err >&5
  6871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6872. (exit $ac_status); } &&
  6873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6875. (eval $ac_try) 2>&5
  6876. ac_status=$?
  6877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6878. (exit $ac_status); }; } &&
  6879. { ac_try='test -s conftest.$ac_objext'
  6880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6881. (eval $ac_try) 2>&5
  6882. ac_status=$?
  6883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6884. (exit $ac_status); }; }; then
  6885. ac_hi=$ac_mid
  6886. else
  6887. echo "$as_me: failed program was:" >&5
  6888. sed 's/^/| /' conftest.$ac_ext >&5
  6889. ac_lo=`expr '(' $ac_mid ')' + 1`
  6890. fi
  6891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6892. done
  6893. case $ac_lo in
  6894. ?*) ac_cv_sizeof_int=$ac_lo;;
  6895. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6896. See \`config.log' for more details." >&5
  6897. echo "$as_me: error: cannot compute sizeof (int), 77
  6898. See \`config.log' for more details." >&2;}
  6899. { (exit 1); exit 1; }; } ;;
  6900. esac
  6901. else
  6902. if test "$cross_compiling" = yes; then
  6903. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6904. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6905. { (exit 1); exit 1; }; }
  6906. else
  6907. cat >conftest.$ac_ext <<_ACEOF
  6908. /* confdefs.h. */
  6909. _ACEOF
  6910. cat confdefs.h >>conftest.$ac_ext
  6911. cat >>conftest.$ac_ext <<_ACEOF
  6912. /* end confdefs.h. */
  6913. $ac_includes_default
  6914. long longval () { return (long) (sizeof (int)); }
  6915. unsigned long ulongval () { return (long) (sizeof (int)); }
  6916. #include <stdio.h>
  6917. #include <stdlib.h>
  6918. int
  6919. main ()
  6920. {
  6921. FILE *f = fopen ("conftest.val", "w");
  6922. if (! f)
  6923. exit (1);
  6924. if (((long) (sizeof (int))) < 0)
  6925. {
  6926. long i = longval ();
  6927. if (i != ((long) (sizeof (int))))
  6928. exit (1);
  6929. fprintf (f, "%ld\n", i);
  6930. }
  6931. else
  6932. {
  6933. unsigned long i = ulongval ();
  6934. if (i != ((long) (sizeof (int))))
  6935. exit (1);
  6936. fprintf (f, "%lu\n", i);
  6937. }
  6938. exit (ferror (f) || fclose (f) != 0);
  6939. ;
  6940. return 0;
  6941. }
  6942. _ACEOF
  6943. rm -f conftest$ac_exeext
  6944. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6945. (eval $ac_link) 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6950. (eval $ac_try) 2>&5
  6951. ac_status=$?
  6952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); }; }; then
  6954. ac_cv_sizeof_int=`cat conftest.val`
  6955. else
  6956. echo "$as_me: program exited with status $ac_status" >&5
  6957. echo "$as_me: failed program was:" >&5
  6958. sed 's/^/| /' conftest.$ac_ext >&5
  6959. ( exit $ac_status )
  6960. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6961. See \`config.log' for more details." >&5
  6962. echo "$as_me: error: cannot compute sizeof (int), 77
  6963. See \`config.log' for more details." >&2;}
  6964. { (exit 1); exit 1; }; }
  6965. fi
  6966. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6967. fi
  6968. fi
  6969. rm -f conftest.val
  6970. else
  6971. ac_cv_sizeof_int=0
  6972. fi
  6973. fi
  6974. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6975. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6976. cat >>confdefs.h <<_ACEOF
  6977. #define SIZEOF_INT $ac_cv_sizeof_int
  6978. _ACEOF
  6979. echo "$as_me:$LINENO: checking for short" >&5
  6980. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6981. if test "${ac_cv_type_short+set}" = set; then
  6982. echo $ECHO_N "(cached) $ECHO_C" >&6
  6983. else
  6984. cat >conftest.$ac_ext <<_ACEOF
  6985. /* confdefs.h. */
  6986. _ACEOF
  6987. cat confdefs.h >>conftest.$ac_ext
  6988. cat >>conftest.$ac_ext <<_ACEOF
  6989. /* end confdefs.h. */
  6990. $ac_includes_default
  6991. int
  6992. main ()
  6993. {
  6994. if ((short *) 0)
  6995. return 0;
  6996. if (sizeof (short))
  6997. return 0;
  6998. ;
  6999. return 0;
  7000. }
  7001. _ACEOF
  7002. rm -f conftest.$ac_objext
  7003. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7004. (eval $ac_compile) 2>conftest.er1
  7005. ac_status=$?
  7006. grep -v '^ *+' conftest.er1 >conftest.err
  7007. rm -f conftest.er1
  7008. cat conftest.err >&5
  7009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7010. (exit $ac_status); } &&
  7011. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7012. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7013. (eval $ac_try) 2>&5
  7014. ac_status=$?
  7015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7016. (exit $ac_status); }; } &&
  7017. { ac_try='test -s conftest.$ac_objext'
  7018. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7019. (eval $ac_try) 2>&5
  7020. ac_status=$?
  7021. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7022. (exit $ac_status); }; }; then
  7023. ac_cv_type_short=yes
  7024. else
  7025. echo "$as_me: failed program was:" >&5
  7026. sed 's/^/| /' conftest.$ac_ext >&5
  7027. ac_cv_type_short=no
  7028. fi
  7029. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7030. fi
  7031. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  7032. echo "${ECHO_T}$ac_cv_type_short" >&6
  7033. echo "$as_me:$LINENO: checking size of short" >&5
  7034. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  7035. if test "${ac_cv_sizeof_short+set}" = set; then
  7036. echo $ECHO_N "(cached) $ECHO_C" >&6
  7037. else
  7038. if test "$ac_cv_type_short" = yes; then
  7039. # The cast to unsigned long works around a bug in the HP C Compiler
  7040. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7041. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7042. # This bug is HP SR number 8606223364.
  7043. if test "$cross_compiling" = yes; then
  7044. # Depending upon the size, compute the lo and hi bounds.
  7045. cat >conftest.$ac_ext <<_ACEOF
  7046. /* confdefs.h. */
  7047. _ACEOF
  7048. cat confdefs.h >>conftest.$ac_ext
  7049. cat >>conftest.$ac_ext <<_ACEOF
  7050. /* end confdefs.h. */
  7051. $ac_includes_default
  7052. int
  7053. main ()
  7054. {
  7055. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  7056. test_array [0] = 0
  7057. ;
  7058. return 0;
  7059. }
  7060. _ACEOF
  7061. rm -f conftest.$ac_objext
  7062. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7063. (eval $ac_compile) 2>conftest.er1
  7064. ac_status=$?
  7065. grep -v '^ *+' conftest.er1 >conftest.err
  7066. rm -f conftest.er1
  7067. cat conftest.err >&5
  7068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7069. (exit $ac_status); } &&
  7070. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7072. (eval $ac_try) 2>&5
  7073. ac_status=$?
  7074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7075. (exit $ac_status); }; } &&
  7076. { ac_try='test -s conftest.$ac_objext'
  7077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7078. (eval $ac_try) 2>&5
  7079. ac_status=$?
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); }; }; then
  7082. ac_lo=0 ac_mid=0
  7083. while :; do
  7084. cat >conftest.$ac_ext <<_ACEOF
  7085. /* confdefs.h. */
  7086. _ACEOF
  7087. cat confdefs.h >>conftest.$ac_ext
  7088. cat >>conftest.$ac_ext <<_ACEOF
  7089. /* end confdefs.h. */
  7090. $ac_includes_default
  7091. int
  7092. main ()
  7093. {
  7094. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7095. test_array [0] = 0
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. rm -f conftest.$ac_objext
  7101. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7102. (eval $ac_compile) 2>conftest.er1
  7103. ac_status=$?
  7104. grep -v '^ *+' conftest.er1 >conftest.err
  7105. rm -f conftest.er1
  7106. cat conftest.err >&5
  7107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7108. (exit $ac_status); } &&
  7109. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7111. (eval $ac_try) 2>&5
  7112. ac_status=$?
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); }; } &&
  7115. { ac_try='test -s conftest.$ac_objext'
  7116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7117. (eval $ac_try) 2>&5
  7118. ac_status=$?
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); }; }; then
  7121. ac_hi=$ac_mid; break
  7122. else
  7123. echo "$as_me: failed program was:" >&5
  7124. sed 's/^/| /' conftest.$ac_ext >&5
  7125. ac_lo=`expr $ac_mid + 1`
  7126. if test $ac_lo -le $ac_mid; then
  7127. ac_lo= ac_hi=
  7128. break
  7129. fi
  7130. ac_mid=`expr 2 '*' $ac_mid + 1`
  7131. fi
  7132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7133. done
  7134. else
  7135. echo "$as_me: failed program was:" >&5
  7136. sed 's/^/| /' conftest.$ac_ext >&5
  7137. cat >conftest.$ac_ext <<_ACEOF
  7138. /* confdefs.h. */
  7139. _ACEOF
  7140. cat confdefs.h >>conftest.$ac_ext
  7141. cat >>conftest.$ac_ext <<_ACEOF
  7142. /* end confdefs.h. */
  7143. $ac_includes_default
  7144. int
  7145. main ()
  7146. {
  7147. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  7148. test_array [0] = 0
  7149. ;
  7150. return 0;
  7151. }
  7152. _ACEOF
  7153. rm -f conftest.$ac_objext
  7154. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7155. (eval $ac_compile) 2>conftest.er1
  7156. ac_status=$?
  7157. grep -v '^ *+' conftest.er1 >conftest.err
  7158. rm -f conftest.er1
  7159. cat conftest.err >&5
  7160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7161. (exit $ac_status); } &&
  7162. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7163. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7164. (eval $ac_try) 2>&5
  7165. ac_status=$?
  7166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7167. (exit $ac_status); }; } &&
  7168. { ac_try='test -s conftest.$ac_objext'
  7169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7170. (eval $ac_try) 2>&5
  7171. ac_status=$?
  7172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. (exit $ac_status); }; }; then
  7174. ac_hi=-1 ac_mid=-1
  7175. while :; do
  7176. cat >conftest.$ac_ext <<_ACEOF
  7177. /* confdefs.h. */
  7178. _ACEOF
  7179. cat confdefs.h >>conftest.$ac_ext
  7180. cat >>conftest.$ac_ext <<_ACEOF
  7181. /* end confdefs.h. */
  7182. $ac_includes_default
  7183. int
  7184. main ()
  7185. {
  7186. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  7187. test_array [0] = 0
  7188. ;
  7189. return 0;
  7190. }
  7191. _ACEOF
  7192. rm -f conftest.$ac_objext
  7193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7194. (eval $ac_compile) 2>conftest.er1
  7195. ac_status=$?
  7196. grep -v '^ *+' conftest.er1 >conftest.err
  7197. rm -f conftest.er1
  7198. cat conftest.err >&5
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. (exit $ac_status); } &&
  7201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7203. (eval $ac_try) 2>&5
  7204. ac_status=$?
  7205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); }; } &&
  7207. { ac_try='test -s conftest.$ac_objext'
  7208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7209. (eval $ac_try) 2>&5
  7210. ac_status=$?
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); }; }; then
  7213. ac_lo=$ac_mid; break
  7214. else
  7215. echo "$as_me: failed program was:" >&5
  7216. sed 's/^/| /' conftest.$ac_ext >&5
  7217. ac_hi=`expr '(' $ac_mid ')' - 1`
  7218. if test $ac_mid -le $ac_hi; then
  7219. ac_lo= ac_hi=
  7220. break
  7221. fi
  7222. ac_mid=`expr 2 '*' $ac_mid`
  7223. fi
  7224. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7225. done
  7226. else
  7227. echo "$as_me: failed program was:" >&5
  7228. sed 's/^/| /' conftest.$ac_ext >&5
  7229. ac_lo= ac_hi=
  7230. fi
  7231. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7232. fi
  7233. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7234. # Binary search between lo and hi bounds.
  7235. while test "x$ac_lo" != "x$ac_hi"; do
  7236. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7237. cat >conftest.$ac_ext <<_ACEOF
  7238. /* confdefs.h. */
  7239. _ACEOF
  7240. cat confdefs.h >>conftest.$ac_ext
  7241. cat >>conftest.$ac_ext <<_ACEOF
  7242. /* end confdefs.h. */
  7243. $ac_includes_default
  7244. int
  7245. main ()
  7246. {
  7247. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  7248. test_array [0] = 0
  7249. ;
  7250. return 0;
  7251. }
  7252. _ACEOF
  7253. rm -f conftest.$ac_objext
  7254. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7255. (eval $ac_compile) 2>conftest.er1
  7256. ac_status=$?
  7257. grep -v '^ *+' conftest.er1 >conftest.err
  7258. rm -f conftest.er1
  7259. cat conftest.err >&5
  7260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261. (exit $ac_status); } &&
  7262. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7263. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7264. (eval $ac_try) 2>&5
  7265. ac_status=$?
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. (exit $ac_status); }; } &&
  7268. { ac_try='test -s conftest.$ac_objext'
  7269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7270. (eval $ac_try) 2>&5
  7271. ac_status=$?
  7272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273. (exit $ac_status); }; }; then
  7274. ac_hi=$ac_mid
  7275. else
  7276. echo "$as_me: failed program was:" >&5
  7277. sed 's/^/| /' conftest.$ac_ext >&5
  7278. ac_lo=`expr '(' $ac_mid ')' + 1`
  7279. fi
  7280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7281. done
  7282. case $ac_lo in
  7283. ?*) ac_cv_sizeof_short=$ac_lo;;
  7284. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7285. See \`config.log' for more details." >&5
  7286. echo "$as_me: error: cannot compute sizeof (short), 77
  7287. See \`config.log' for more details." >&2;}
  7288. { (exit 1); exit 1; }; } ;;
  7289. esac
  7290. else
  7291. if test "$cross_compiling" = yes; then
  7292. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7293. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7294. { (exit 1); exit 1; }; }
  7295. else
  7296. cat >conftest.$ac_ext <<_ACEOF
  7297. /* confdefs.h. */
  7298. _ACEOF
  7299. cat confdefs.h >>conftest.$ac_ext
  7300. cat >>conftest.$ac_ext <<_ACEOF
  7301. /* end confdefs.h. */
  7302. $ac_includes_default
  7303. long longval () { return (long) (sizeof (short)); }
  7304. unsigned long ulongval () { return (long) (sizeof (short)); }
  7305. #include <stdio.h>
  7306. #include <stdlib.h>
  7307. int
  7308. main ()
  7309. {
  7310. FILE *f = fopen ("conftest.val", "w");
  7311. if (! f)
  7312. exit (1);
  7313. if (((long) (sizeof (short))) < 0)
  7314. {
  7315. long i = longval ();
  7316. if (i != ((long) (sizeof (short))))
  7317. exit (1);
  7318. fprintf (f, "%ld\n", i);
  7319. }
  7320. else
  7321. {
  7322. unsigned long i = ulongval ();
  7323. if (i != ((long) (sizeof (short))))
  7324. exit (1);
  7325. fprintf (f, "%lu\n", i);
  7326. }
  7327. exit (ferror (f) || fclose (f) != 0);
  7328. ;
  7329. return 0;
  7330. }
  7331. _ACEOF
  7332. rm -f conftest$ac_exeext
  7333. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7334. (eval $ac_link) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7339. (eval $ac_try) 2>&5
  7340. ac_status=$?
  7341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7342. (exit $ac_status); }; }; then
  7343. ac_cv_sizeof_short=`cat conftest.val`
  7344. else
  7345. echo "$as_me: program exited with status $ac_status" >&5
  7346. echo "$as_me: failed program was:" >&5
  7347. sed 's/^/| /' conftest.$ac_ext >&5
  7348. ( exit $ac_status )
  7349. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7350. See \`config.log' for more details." >&5
  7351. echo "$as_me: error: cannot compute sizeof (short), 77
  7352. See \`config.log' for more details." >&2;}
  7353. { (exit 1); exit 1; }; }
  7354. fi
  7355. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7356. fi
  7357. fi
  7358. rm -f conftest.val
  7359. else
  7360. ac_cv_sizeof_short=0
  7361. fi
  7362. fi
  7363. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7364. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7365. cat >>confdefs.h <<_ACEOF
  7366. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7367. _ACEOF
  7368. #checkpoint
  7369. cat >confcache <<\_ACEOF
  7370. # This file is a shell script that caches the results of configure
  7371. # tests run on this system so they can be shared between configure
  7372. # scripts and configure runs, see configure's option --config-cache.
  7373. # It is not useful on other systems. If it contains results you don't
  7374. # want to keep, you may remove or edit it.
  7375. #
  7376. # config.status only pays attention to the cache file if you give it
  7377. # the --recheck option to rerun configure.
  7378. #
  7379. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7380. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7381. # following values.
  7382. _ACEOF
  7383. # The following way of writing the cache mishandles newlines in values,
  7384. # but we know of no workaround that is simple, portable, and efficient.
  7385. # So, don't put newlines in cache variables' values.
  7386. # Ultrix sh set writes to stderr and can't be redirected directly,
  7387. # and sets the high bit in the cache file unless we assign to the vars.
  7388. {
  7389. (set) 2>&1 |
  7390. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7391. *ac_space=\ *)
  7392. # `set' does not quote correctly, so add quotes (double-quote
  7393. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7394. sed -n \
  7395. "s/'/'\\\\''/g;
  7396. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7397. ;;
  7398. *)
  7399. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7400. sed -n \
  7401. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7402. ;;
  7403. esac;
  7404. } |
  7405. sed '
  7406. t clear
  7407. : clear
  7408. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7409. t end
  7410. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7411. : end' >>confcache
  7412. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7413. if test -w $cache_file; then
  7414. test "x$cache_file" != "x/dev/null"
  7415. cat confcache >$cache_file
  7416. else
  7417. echo "not updating unwritable cache $cache_file"
  7418. fi
  7419. fi
  7420. rm -f confcache
  7421. echo "$as_me:$LINENO: checking for working volatile" >&5
  7422. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7423. if test "${ac_cv_c_volatile+set}" = set; then
  7424. echo $ECHO_N "(cached) $ECHO_C" >&6
  7425. else
  7426. cat >conftest.$ac_ext <<_ACEOF
  7427. /* confdefs.h. */
  7428. _ACEOF
  7429. cat confdefs.h >>conftest.$ac_ext
  7430. cat >>conftest.$ac_ext <<_ACEOF
  7431. /* end confdefs.h. */
  7432. int
  7433. main ()
  7434. {
  7435. volatile int x;
  7436. int * volatile y;
  7437. ;
  7438. return 0;
  7439. }
  7440. _ACEOF
  7441. rm -f conftest.$ac_objext
  7442. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7443. (eval $ac_compile) 2>conftest.er1
  7444. ac_status=$?
  7445. grep -v '^ *+' conftest.er1 >conftest.err
  7446. rm -f conftest.er1
  7447. cat conftest.err >&5
  7448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449. (exit $ac_status); } &&
  7450. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7452. (eval $ac_try) 2>&5
  7453. ac_status=$?
  7454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7455. (exit $ac_status); }; } &&
  7456. { ac_try='test -s conftest.$ac_objext'
  7457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7458. (eval $ac_try) 2>&5
  7459. ac_status=$?
  7460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7461. (exit $ac_status); }; }; then
  7462. ac_cv_c_volatile=yes
  7463. else
  7464. echo "$as_me: failed program was:" >&5
  7465. sed 's/^/| /' conftest.$ac_ext >&5
  7466. ac_cv_c_volatile=no
  7467. fi
  7468. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7469. fi
  7470. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7471. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7472. if test $ac_cv_c_volatile = no; then
  7473. cat >>confdefs.h <<\_ACEOF
  7474. #define volatile
  7475. _ACEOF
  7476. fi
  7477. if test $ac_cv_c_compiler_gnu = yes; then
  7478. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7479. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7480. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7481. echo $ECHO_N "(cached) $ECHO_C" >&6
  7482. else
  7483. ac_pattern="Autoconf.*'x'"
  7484. cat >conftest.$ac_ext <<_ACEOF
  7485. /* confdefs.h. */
  7486. _ACEOF
  7487. cat confdefs.h >>conftest.$ac_ext
  7488. cat >>conftest.$ac_ext <<_ACEOF
  7489. /* end confdefs.h. */
  7490. #include <sgtty.h>
  7491. Autoconf TIOCGETP
  7492. _ACEOF
  7493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7494. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7495. ac_cv_prog_gcc_traditional=yes
  7496. else
  7497. ac_cv_prog_gcc_traditional=no
  7498. fi
  7499. rm -f conftest*
  7500. if test $ac_cv_prog_gcc_traditional = no; then
  7501. cat >conftest.$ac_ext <<_ACEOF
  7502. /* confdefs.h. */
  7503. _ACEOF
  7504. cat confdefs.h >>conftest.$ac_ext
  7505. cat >>conftest.$ac_ext <<_ACEOF
  7506. /* end confdefs.h. */
  7507. #include <termio.h>
  7508. Autoconf TCGETA
  7509. _ACEOF
  7510. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7511. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7512. ac_cv_prog_gcc_traditional=yes
  7513. fi
  7514. rm -f conftest*
  7515. fi
  7516. fi
  7517. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7518. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7519. if test $ac_cv_prog_gcc_traditional = yes; then
  7520. CC="$CC -traditional"
  7521. fi
  7522. fi
  7523. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7524. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7525. if test "${ac_cv_struct_tm+set}" = set; then
  7526. echo $ECHO_N "(cached) $ECHO_C" >&6
  7527. else
  7528. cat >conftest.$ac_ext <<_ACEOF
  7529. /* confdefs.h. */
  7530. _ACEOF
  7531. cat confdefs.h >>conftest.$ac_ext
  7532. cat >>conftest.$ac_ext <<_ACEOF
  7533. /* end confdefs.h. */
  7534. #include <sys/types.h>
  7535. #include <time.h>
  7536. int
  7537. main ()
  7538. {
  7539. struct tm *tp; tp->tm_sec;
  7540. ;
  7541. return 0;
  7542. }
  7543. _ACEOF
  7544. rm -f conftest.$ac_objext
  7545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7546. (eval $ac_compile) 2>conftest.er1
  7547. ac_status=$?
  7548. grep -v '^ *+' conftest.er1 >conftest.err
  7549. rm -f conftest.er1
  7550. cat conftest.err >&5
  7551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7552. (exit $ac_status); } &&
  7553. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7555. (eval $ac_try) 2>&5
  7556. ac_status=$?
  7557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7558. (exit $ac_status); }; } &&
  7559. { ac_try='test -s conftest.$ac_objext'
  7560. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7561. (eval $ac_try) 2>&5
  7562. ac_status=$?
  7563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. (exit $ac_status); }; }; then
  7565. ac_cv_struct_tm=time.h
  7566. else
  7567. echo "$as_me: failed program was:" >&5
  7568. sed 's/^/| /' conftest.$ac_ext >&5
  7569. ac_cv_struct_tm=sys/time.h
  7570. fi
  7571. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7572. fi
  7573. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7574. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7575. if test $ac_cv_struct_tm = sys/time.h; then
  7576. cat >>confdefs.h <<\_ACEOF
  7577. #define TM_IN_SYS_TIME 1
  7578. _ACEOF
  7579. fi
  7580. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7581. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7582. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7583. echo $ECHO_N "(cached) $ECHO_C" >&6
  7584. else
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. #include <sys/types.h>
  7592. #include <$ac_cv_struct_tm>
  7593. int
  7594. main ()
  7595. {
  7596. static struct tm ac_aggr;
  7597. if (ac_aggr.tm_zone)
  7598. return 0;
  7599. ;
  7600. return 0;
  7601. }
  7602. _ACEOF
  7603. rm -f conftest.$ac_objext
  7604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7605. (eval $ac_compile) 2>conftest.er1
  7606. ac_status=$?
  7607. grep -v '^ *+' conftest.er1 >conftest.err
  7608. rm -f conftest.er1
  7609. cat conftest.err >&5
  7610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7611. (exit $ac_status); } &&
  7612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7614. (eval $ac_try) 2>&5
  7615. ac_status=$?
  7616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7617. (exit $ac_status); }; } &&
  7618. { ac_try='test -s conftest.$ac_objext'
  7619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7620. (eval $ac_try) 2>&5
  7621. ac_status=$?
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. (exit $ac_status); }; }; then
  7624. ac_cv_member_struct_tm_tm_zone=yes
  7625. else
  7626. echo "$as_me: failed program was:" >&5
  7627. sed 's/^/| /' conftest.$ac_ext >&5
  7628. cat >conftest.$ac_ext <<_ACEOF
  7629. /* confdefs.h. */
  7630. _ACEOF
  7631. cat confdefs.h >>conftest.$ac_ext
  7632. cat >>conftest.$ac_ext <<_ACEOF
  7633. /* end confdefs.h. */
  7634. #include <sys/types.h>
  7635. #include <$ac_cv_struct_tm>
  7636. int
  7637. main ()
  7638. {
  7639. static struct tm ac_aggr;
  7640. if (sizeof ac_aggr.tm_zone)
  7641. return 0;
  7642. ;
  7643. return 0;
  7644. }
  7645. _ACEOF
  7646. rm -f conftest.$ac_objext
  7647. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7648. (eval $ac_compile) 2>conftest.er1
  7649. ac_status=$?
  7650. grep -v '^ *+' conftest.er1 >conftest.err
  7651. rm -f conftest.er1
  7652. cat conftest.err >&5
  7653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7654. (exit $ac_status); } &&
  7655. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7657. (eval $ac_try) 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); }; } &&
  7661. { ac_try='test -s conftest.$ac_objext'
  7662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7663. (eval $ac_try) 2>&5
  7664. ac_status=$?
  7665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7666. (exit $ac_status); }; }; then
  7667. ac_cv_member_struct_tm_tm_zone=yes
  7668. else
  7669. echo "$as_me: failed program was:" >&5
  7670. sed 's/^/| /' conftest.$ac_ext >&5
  7671. ac_cv_member_struct_tm_tm_zone=no
  7672. fi
  7673. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7674. fi
  7675. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7676. fi
  7677. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7678. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7679. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7680. cat >>confdefs.h <<_ACEOF
  7681. #define HAVE_STRUCT_TM_TM_ZONE 1
  7682. _ACEOF
  7683. fi
  7684. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7685. cat >>confdefs.h <<\_ACEOF
  7686. #define HAVE_TM_ZONE 1
  7687. _ACEOF
  7688. else
  7689. echo "$as_me:$LINENO: checking for tzname" >&5
  7690. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7691. if test "${ac_cv_var_tzname+set}" = set; then
  7692. echo $ECHO_N "(cached) $ECHO_C" >&6
  7693. else
  7694. cat >conftest.$ac_ext <<_ACEOF
  7695. /* confdefs.h. */
  7696. _ACEOF
  7697. cat confdefs.h >>conftest.$ac_ext
  7698. cat >>conftest.$ac_ext <<_ACEOF
  7699. /* end confdefs.h. */
  7700. #include <time.h>
  7701. #ifndef tzname /* For SGI. */
  7702. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7703. #endif
  7704. int
  7705. main ()
  7706. {
  7707. atoi(*tzname);
  7708. ;
  7709. return 0;
  7710. }
  7711. _ACEOF
  7712. rm -f conftest.$ac_objext conftest$ac_exeext
  7713. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7714. (eval $ac_link) 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } &&
  7721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7723. (eval $ac_try) 2>&5
  7724. ac_status=$?
  7725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); }; } &&
  7727. { ac_try='test -s conftest$ac_exeext'
  7728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7729. (eval $ac_try) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); }; }; then
  7733. ac_cv_var_tzname=yes
  7734. else
  7735. echo "$as_me: failed program was:" >&5
  7736. sed 's/^/| /' conftest.$ac_ext >&5
  7737. ac_cv_var_tzname=no
  7738. fi
  7739. rm -f conftest.err conftest.$ac_objext \
  7740. conftest$ac_exeext conftest.$ac_ext
  7741. fi
  7742. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7743. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7744. if test $ac_cv_var_tzname = yes; then
  7745. cat >>confdefs.h <<\_ACEOF
  7746. #define HAVE_TZNAME 1
  7747. _ACEOF
  7748. fi
  7749. fi
  7750. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7751. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7752. if test "${ac_cv_struct_tm+set}" = set; then
  7753. echo $ECHO_N "(cached) $ECHO_C" >&6
  7754. else
  7755. cat >conftest.$ac_ext <<_ACEOF
  7756. /* confdefs.h. */
  7757. _ACEOF
  7758. cat confdefs.h >>conftest.$ac_ext
  7759. cat >>conftest.$ac_ext <<_ACEOF
  7760. /* end confdefs.h. */
  7761. #include <sys/types.h>
  7762. #include <time.h>
  7763. int
  7764. main ()
  7765. {
  7766. struct tm *tp; tp->tm_sec;
  7767. ;
  7768. return 0;
  7769. }
  7770. _ACEOF
  7771. rm -f conftest.$ac_objext
  7772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7773. (eval $ac_compile) 2>conftest.er1
  7774. ac_status=$?
  7775. grep -v '^ *+' conftest.er1 >conftest.err
  7776. rm -f conftest.er1
  7777. cat conftest.err >&5
  7778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7779. (exit $ac_status); } &&
  7780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7782. (eval $ac_try) 2>&5
  7783. ac_status=$?
  7784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); }; } &&
  7786. { ac_try='test -s conftest.$ac_objext'
  7787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7788. (eval $ac_try) 2>&5
  7789. ac_status=$?
  7790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7791. (exit $ac_status); }; }; then
  7792. ac_cv_struct_tm=time.h
  7793. else
  7794. echo "$as_me: failed program was:" >&5
  7795. sed 's/^/| /' conftest.$ac_ext >&5
  7796. ac_cv_struct_tm=sys/time.h
  7797. fi
  7798. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7799. fi
  7800. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7801. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7802. if test $ac_cv_struct_tm = sys/time.h; then
  7803. cat >>confdefs.h <<\_ACEOF
  7804. #define TM_IN_SYS_TIME 1
  7805. _ACEOF
  7806. fi
  7807. #checkpoint
  7808. cat >confcache <<\_ACEOF
  7809. # This file is a shell script that caches the results of configure
  7810. # tests run on this system so they can be shared between configure
  7811. # scripts and configure runs, see configure's option --config-cache.
  7812. # It is not useful on other systems. If it contains results you don't
  7813. # want to keep, you may remove or edit it.
  7814. #
  7815. # config.status only pays attention to the cache file if you give it
  7816. # the --recheck option to rerun configure.
  7817. #
  7818. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7819. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7820. # following values.
  7821. _ACEOF
  7822. # The following way of writing the cache mishandles newlines in values,
  7823. # but we know of no workaround that is simple, portable, and efficient.
  7824. # So, don't put newlines in cache variables' values.
  7825. # Ultrix sh set writes to stderr and can't be redirected directly,
  7826. # and sets the high bit in the cache file unless we assign to the vars.
  7827. {
  7828. (set) 2>&1 |
  7829. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7830. *ac_space=\ *)
  7831. # `set' does not quote correctly, so add quotes (double-quote
  7832. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7833. sed -n \
  7834. "s/'/'\\\\''/g;
  7835. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7836. ;;
  7837. *)
  7838. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7839. sed -n \
  7840. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7841. ;;
  7842. esac;
  7843. } |
  7844. sed '
  7845. t clear
  7846. : clear
  7847. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7848. t end
  7849. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7850. : end' >>confcache
  7851. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7852. if test -w $cache_file; then
  7853. test "x$cache_file" != "x/dev/null"
  7854. cat confcache >$cache_file
  7855. else
  7856. echo "not updating unwritable cache $cache_file"
  7857. fi
  7858. fi
  7859. rm -f confcache
  7860. # Check for IPv6 support
  7861. #EGG_IPV6_SUPPORTED
  7862. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7863. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7864. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7865. if test "${enable_ipv6+set}" = set; then
  7866. enableval="$enable_ipv6"
  7867. ac_cv_dipv6="yes"
  7868. echo "$as_me:$LINENO: result: yes" >&5
  7869. echo "${ECHO_T}yes" >&6
  7870. else
  7871. ac_cv_dipv6="no"
  7872. if test "$egg_cv_ipv6_supported" = "no"; then
  7873. ac_cv_dipv6="no"
  7874. fi
  7875. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7876. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7877. fi;
  7878. if test "$ac_cv_dipv6" = "no"; then
  7879. cat >>confdefs.h <<\_ACEOF
  7880. #define USE_IPV6 1
  7881. _ACEOF
  7882. fi
  7883. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7884. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7885. if test "${egg_cv_socklen_t+set}" = set; then
  7886. echo $ECHO_N "(cached) $ECHO_C" >&6
  7887. else
  7888. if test "$cross_compiling" = yes; then
  7889. egg_cv_socklen_t=no
  7890. else
  7891. cat >conftest.$ac_ext <<_ACEOF
  7892. /* confdefs.h. */
  7893. _ACEOF
  7894. cat confdefs.h >>conftest.$ac_ext
  7895. cat >>conftest.$ac_ext <<_ACEOF
  7896. /* end confdefs.h. */
  7897. #include <unistd.h>
  7898. #include <sys/types.h>
  7899. #include <sys/socket.h>
  7900. #include <netinet/in.h>
  7901. #include <arpa/inet.h>
  7902. int main()
  7903. {
  7904. socklen_t test = sizeof(int);
  7905. return 0;
  7906. }
  7907. _ACEOF
  7908. rm -f conftest$ac_exeext
  7909. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7910. (eval $ac_link) 2>&5
  7911. ac_status=$?
  7912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7915. (eval $ac_try) 2>&5
  7916. ac_status=$?
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); }; }; then
  7919. egg_cv_socklen_t=yes
  7920. else
  7921. echo "$as_me: program exited with status $ac_status" >&5
  7922. echo "$as_me: failed program was:" >&5
  7923. sed 's/^/| /' conftest.$ac_ext >&5
  7924. ( exit $ac_status )
  7925. egg_cv_socklen_t=no
  7926. fi
  7927. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7928. fi
  7929. fi
  7930. if test "$egg_cv_socklen_t" = "yes"; then
  7931. cat >>confdefs.h <<\_ACEOF
  7932. #define HAVE_SOCKLEN_T 1
  7933. _ACEOF
  7934. echo "$as_me:$LINENO: result: yes" >&5
  7935. echo "${ECHO_T}yes" >&6
  7936. else
  7937. echo "$as_me:$LINENO: result: no" >&5
  7938. echo "${ECHO_T}no" >&6
  7939. fi
  7940. # Checks for library functions
  7941. #checkpoint
  7942. cat >confcache <<\_ACEOF
  7943. # This file is a shell script that caches the results of configure
  7944. # tests run on this system so they can be shared between configure
  7945. # scripts and configure runs, see configure's option --config-cache.
  7946. # It is not useful on other systems. If it contains results you don't
  7947. # want to keep, you may remove or edit it.
  7948. #
  7949. # config.status only pays attention to the cache file if you give it
  7950. # the --recheck option to rerun configure.
  7951. #
  7952. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7953. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7954. # following values.
  7955. _ACEOF
  7956. # The following way of writing the cache mishandles newlines in values,
  7957. # but we know of no workaround that is simple, portable, and efficient.
  7958. # So, don't put newlines in cache variables' values.
  7959. # Ultrix sh set writes to stderr and can't be redirected directly,
  7960. # and sets the high bit in the cache file unless we assign to the vars.
  7961. {
  7962. (set) 2>&1 |
  7963. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7964. *ac_space=\ *)
  7965. # `set' does not quote correctly, so add quotes (double-quote
  7966. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7967. sed -n \
  7968. "s/'/'\\\\''/g;
  7969. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7970. ;;
  7971. *)
  7972. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7973. sed -n \
  7974. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7975. ;;
  7976. esac;
  7977. } |
  7978. sed '
  7979. t clear
  7980. : clear
  7981. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7982. t end
  7983. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7984. : end' >>confcache
  7985. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7986. if test -w $cache_file; then
  7987. test "x$cache_file" != "x/dev/null"
  7988. cat confcache >$cache_file
  7989. else
  7990. echo "not updating unwritable cache $cache_file"
  7991. fi
  7992. fi
  7993. rm -f confcache
  7994. # Checks for library functions.
  7995. for ac_header in unistd.h vfork.h
  7996. do
  7997. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7998. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7999. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8001. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8002. echo $ECHO_N "(cached) $ECHO_C" >&6
  8003. fi
  8004. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8005. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8006. else
  8007. # Is the header compilable?
  8008. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8009. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8010. cat >conftest.$ac_ext <<_ACEOF
  8011. /* confdefs.h. */
  8012. _ACEOF
  8013. cat confdefs.h >>conftest.$ac_ext
  8014. cat >>conftest.$ac_ext <<_ACEOF
  8015. /* end confdefs.h. */
  8016. $ac_includes_default
  8017. #include <$ac_header>
  8018. _ACEOF
  8019. rm -f conftest.$ac_objext
  8020. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8021. (eval $ac_compile) 2>conftest.er1
  8022. ac_status=$?
  8023. grep -v '^ *+' conftest.er1 >conftest.err
  8024. rm -f conftest.er1
  8025. cat conftest.err >&5
  8026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8027. (exit $ac_status); } &&
  8028. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8029. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8030. (eval $ac_try) 2>&5
  8031. ac_status=$?
  8032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8033. (exit $ac_status); }; } &&
  8034. { ac_try='test -s conftest.$ac_objext'
  8035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8036. (eval $ac_try) 2>&5
  8037. ac_status=$?
  8038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8039. (exit $ac_status); }; }; then
  8040. ac_header_compiler=yes
  8041. else
  8042. echo "$as_me: failed program was:" >&5
  8043. sed 's/^/| /' conftest.$ac_ext >&5
  8044. ac_header_compiler=no
  8045. fi
  8046. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8047. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8048. echo "${ECHO_T}$ac_header_compiler" >&6
  8049. # Is the header present?
  8050. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8051. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8052. cat >conftest.$ac_ext <<_ACEOF
  8053. /* confdefs.h. */
  8054. _ACEOF
  8055. cat confdefs.h >>conftest.$ac_ext
  8056. cat >>conftest.$ac_ext <<_ACEOF
  8057. /* end confdefs.h. */
  8058. #include <$ac_header>
  8059. _ACEOF
  8060. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8061. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8062. ac_status=$?
  8063. grep -v '^ *+' conftest.er1 >conftest.err
  8064. rm -f conftest.er1
  8065. cat conftest.err >&5
  8066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8067. (exit $ac_status); } >/dev/null; then
  8068. if test -s conftest.err; then
  8069. ac_cpp_err=$ac_c_preproc_warn_flag
  8070. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8071. else
  8072. ac_cpp_err=
  8073. fi
  8074. else
  8075. ac_cpp_err=yes
  8076. fi
  8077. if test -z "$ac_cpp_err"; then
  8078. ac_header_preproc=yes
  8079. else
  8080. echo "$as_me: failed program was:" >&5
  8081. sed 's/^/| /' conftest.$ac_ext >&5
  8082. ac_header_preproc=no
  8083. fi
  8084. rm -f conftest.err conftest.$ac_ext
  8085. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8086. echo "${ECHO_T}$ac_header_preproc" >&6
  8087. # So? What about this header?
  8088. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8089. yes:no: )
  8090. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8091. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8092. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8093. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8094. ac_header_preproc=yes
  8095. ;;
  8096. no:yes:* )
  8097. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8098. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8099. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8100. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8101. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8102. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8103. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8104. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8105. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8106. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8107. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8108. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8109. (
  8110. cat <<\_ASBOX
  8111. ## ------------------------------------------ ##
  8112. ## Report this to the AC_PACKAGE_NAME lists. ##
  8113. ## ------------------------------------------ ##
  8114. _ASBOX
  8115. ) |
  8116. sed "s/^/$as_me: WARNING: /" >&2
  8117. ;;
  8118. esac
  8119. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8120. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8121. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8122. echo $ECHO_N "(cached) $ECHO_C" >&6
  8123. else
  8124. eval "$as_ac_Header=\$ac_header_preproc"
  8125. fi
  8126. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8127. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8128. fi
  8129. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8130. cat >>confdefs.h <<_ACEOF
  8131. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8132. _ACEOF
  8133. fi
  8134. done
  8135. for ac_func in fork vfork
  8136. do
  8137. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8138. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8139. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8140. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8141. echo $ECHO_N "(cached) $ECHO_C" >&6
  8142. else
  8143. cat >conftest.$ac_ext <<_ACEOF
  8144. /* confdefs.h. */
  8145. _ACEOF
  8146. cat confdefs.h >>conftest.$ac_ext
  8147. cat >>conftest.$ac_ext <<_ACEOF
  8148. /* end confdefs.h. */
  8149. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8150. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8151. #define $ac_func innocuous_$ac_func
  8152. /* System header to define __stub macros and hopefully few prototypes,
  8153. which can conflict with char $ac_func (); below.
  8154. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8155. <limits.h> exists even on freestanding compilers. */
  8156. #ifdef __STDC__
  8157. # include <limits.h>
  8158. #else
  8159. # include <assert.h>
  8160. #endif
  8161. #undef $ac_func
  8162. /* Override any gcc2 internal prototype to avoid an error. */
  8163. #ifdef __cplusplus
  8164. extern "C"
  8165. {
  8166. #endif
  8167. /* We use char because int might match the return type of a gcc2
  8168. builtin and then its argument prototype would still apply. */
  8169. char $ac_func ();
  8170. /* The GNU C library defines this for functions which it implements
  8171. to always fail with ENOSYS. Some functions are actually named
  8172. something starting with __ and the normal name is an alias. */
  8173. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8174. choke me
  8175. #else
  8176. char (*f) () = $ac_func;
  8177. #endif
  8178. #ifdef __cplusplus
  8179. }
  8180. #endif
  8181. int
  8182. main ()
  8183. {
  8184. return f != $ac_func;
  8185. ;
  8186. return 0;
  8187. }
  8188. _ACEOF
  8189. rm -f conftest.$ac_objext conftest$ac_exeext
  8190. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8191. (eval $ac_link) 2>conftest.er1
  8192. ac_status=$?
  8193. grep -v '^ *+' conftest.er1 >conftest.err
  8194. rm -f conftest.er1
  8195. cat conftest.err >&5
  8196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8197. (exit $ac_status); } &&
  8198. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8200. (eval $ac_try) 2>&5
  8201. ac_status=$?
  8202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8203. (exit $ac_status); }; } &&
  8204. { ac_try='test -s conftest$ac_exeext'
  8205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8206. (eval $ac_try) 2>&5
  8207. ac_status=$?
  8208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8209. (exit $ac_status); }; }; then
  8210. eval "$as_ac_var=yes"
  8211. else
  8212. echo "$as_me: failed program was:" >&5
  8213. sed 's/^/| /' conftest.$ac_ext >&5
  8214. eval "$as_ac_var=no"
  8215. fi
  8216. rm -f conftest.err conftest.$ac_objext \
  8217. conftest$ac_exeext conftest.$ac_ext
  8218. fi
  8219. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8220. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8221. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8222. cat >>confdefs.h <<_ACEOF
  8223. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8224. _ACEOF
  8225. fi
  8226. done
  8227. if test "x$ac_cv_func_fork" = xyes; then
  8228. echo "$as_me:$LINENO: checking for working fork" >&5
  8229. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8230. if test "${ac_cv_func_fork_works+set}" = set; then
  8231. echo $ECHO_N "(cached) $ECHO_C" >&6
  8232. else
  8233. if test "$cross_compiling" = yes; then
  8234. ac_cv_func_fork_works=cross
  8235. else
  8236. cat >conftest.$ac_ext <<_ACEOF
  8237. /* By Ruediger Kuhlmann. */
  8238. #include <sys/types.h>
  8239. #if HAVE_UNISTD_H
  8240. # include <unistd.h>
  8241. #endif
  8242. /* Some systems only have a dummy stub for fork() */
  8243. int main ()
  8244. {
  8245. if (fork() < 0)
  8246. exit (1);
  8247. exit (0);
  8248. }
  8249. _ACEOF
  8250. rm -f conftest$ac_exeext
  8251. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8252. (eval $ac_link) 2>&5
  8253. ac_status=$?
  8254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8255. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8257. (eval $ac_try) 2>&5
  8258. ac_status=$?
  8259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8260. (exit $ac_status); }; }; then
  8261. ac_cv_func_fork_works=yes
  8262. else
  8263. echo "$as_me: program exited with status $ac_status" >&5
  8264. echo "$as_me: failed program was:" >&5
  8265. sed 's/^/| /' conftest.$ac_ext >&5
  8266. ( exit $ac_status )
  8267. ac_cv_func_fork_works=no
  8268. fi
  8269. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8270. fi
  8271. fi
  8272. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8273. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8274. else
  8275. ac_cv_func_fork_works=$ac_cv_func_fork
  8276. fi
  8277. if test "x$ac_cv_func_fork_works" = xcross; then
  8278. case $host in
  8279. *-*-amigaos* | *-*-msdosdjgpp*)
  8280. # Override, as these systems have only a dummy fork() stub
  8281. ac_cv_func_fork_works=no
  8282. ;;
  8283. *)
  8284. ac_cv_func_fork_works=yes
  8285. ;;
  8286. esac
  8287. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8288. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8289. fi
  8290. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8291. if test "x$ac_cv_func_vfork" = xyes; then
  8292. echo "$as_me:$LINENO: checking for working vfork" >&5
  8293. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8294. if test "${ac_cv_func_vfork_works+set}" = set; then
  8295. echo $ECHO_N "(cached) $ECHO_C" >&6
  8296. else
  8297. if test "$cross_compiling" = yes; then
  8298. ac_cv_func_vfork_works=cross
  8299. else
  8300. cat >conftest.$ac_ext <<_ACEOF
  8301. /* confdefs.h. */
  8302. _ACEOF
  8303. cat confdefs.h >>conftest.$ac_ext
  8304. cat >>conftest.$ac_ext <<_ACEOF
  8305. /* end confdefs.h. */
  8306. /* Thanks to Paul Eggert for this test. */
  8307. #include <stdio.h>
  8308. #include <stdlib.h>
  8309. #include <sys/types.h>
  8310. #include <sys/stat.h>
  8311. #include <sys/wait.h>
  8312. #if HAVE_UNISTD_H
  8313. # include <unistd.h>
  8314. #endif
  8315. #if HAVE_VFORK_H
  8316. # include <vfork.h>
  8317. #endif
  8318. /* On some sparc systems, changes by the child to local and incoming
  8319. argument registers are propagated back to the parent. The compiler
  8320. is told about this with #include <vfork.h>, but some compilers
  8321. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8322. static variable whose address is put into a register that is
  8323. clobbered by the vfork. */
  8324. static void
  8325. #ifdef __cplusplus
  8326. sparc_address_test (int arg)
  8327. # else
  8328. sparc_address_test (arg) int arg;
  8329. #endif
  8330. {
  8331. static pid_t child;
  8332. if (!child) {
  8333. child = vfork ();
  8334. if (child < 0) {
  8335. perror ("vfork");
  8336. _exit(2);
  8337. }
  8338. if (!child) {
  8339. arg = getpid();
  8340. write(-1, "", 0);
  8341. _exit (arg);
  8342. }
  8343. }
  8344. }
  8345. int
  8346. main ()
  8347. {
  8348. pid_t parent = getpid ();
  8349. pid_t child;
  8350. sparc_address_test (0);
  8351. child = vfork ();
  8352. if (child == 0) {
  8353. /* Here is another test for sparc vfork register problems. This
  8354. test uses lots of local variables, at least as many local
  8355. variables as main has allocated so far including compiler
  8356. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8357. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8358. reuse the register of parent for one of the local variables,
  8359. since it will think that parent can't possibly be used any more
  8360. in this routine. Assigning to the local variable will thus
  8361. munge parent in the parent process. */
  8362. pid_t
  8363. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8364. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8365. /* Convince the compiler that p..p7 are live; otherwise, it might
  8366. use the same hardware register for all 8 local variables. */
  8367. if (p != p1 || p != p2 || p != p3 || p != p4
  8368. || p != p5 || p != p6 || p != p7)
  8369. _exit(1);
  8370. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8371. from child file descriptors. If the child closes a descriptor
  8372. before it execs or exits, this munges the parent's descriptor
  8373. as well. Test for this by closing stdout in the child. */
  8374. _exit(close(fileno(stdout)) != 0);
  8375. } else {
  8376. int status;
  8377. struct stat st;
  8378. while (wait(&status) != child)
  8379. ;
  8380. exit(
  8381. /* Was there some problem with vforking? */
  8382. child < 0
  8383. /* Did the child fail? (This shouldn't happen.) */
  8384. || status
  8385. /* Did the vfork/compiler bug occur? */
  8386. || parent != getpid()
  8387. /* Did the file descriptor bug occur? */
  8388. || fstat(fileno(stdout), &st) != 0
  8389. );
  8390. }
  8391. }
  8392. _ACEOF
  8393. rm -f conftest$ac_exeext
  8394. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8395. (eval $ac_link) 2>&5
  8396. ac_status=$?
  8397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8398. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8400. (eval $ac_try) 2>&5
  8401. ac_status=$?
  8402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8403. (exit $ac_status); }; }; then
  8404. ac_cv_func_vfork_works=yes
  8405. else
  8406. echo "$as_me: program exited with status $ac_status" >&5
  8407. echo "$as_me: failed program was:" >&5
  8408. sed 's/^/| /' conftest.$ac_ext >&5
  8409. ( exit $ac_status )
  8410. ac_cv_func_vfork_works=no
  8411. fi
  8412. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8413. fi
  8414. fi
  8415. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8416. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8417. fi;
  8418. if test "x$ac_cv_func_fork_works" = xcross; then
  8419. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8420. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8421. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8422. fi
  8423. if test "x$ac_cv_func_vfork_works" = xyes; then
  8424. cat >>confdefs.h <<\_ACEOF
  8425. #define HAVE_WORKING_VFORK 1
  8426. _ACEOF
  8427. else
  8428. cat >>confdefs.h <<\_ACEOF
  8429. #define vfork fork
  8430. _ACEOF
  8431. fi
  8432. if test "x$ac_cv_func_fork_works" = xyes; then
  8433. cat >>confdefs.h <<\_ACEOF
  8434. #define HAVE_WORKING_FORK 1
  8435. _ACEOF
  8436. fi
  8437. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8438. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8439. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8440. echo $ECHO_N "(cached) $ECHO_C" >&6
  8441. else
  8442. rm -f conftest.sym conftest.file
  8443. echo >conftest.file
  8444. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8445. if test "$cross_compiling" = yes; then
  8446. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8447. else
  8448. cat >conftest.$ac_ext <<_ACEOF
  8449. /* confdefs.h. */
  8450. _ACEOF
  8451. cat confdefs.h >>conftest.$ac_ext
  8452. cat >>conftest.$ac_ext <<_ACEOF
  8453. /* end confdefs.h. */
  8454. $ac_includes_default
  8455. int
  8456. main ()
  8457. {
  8458. struct stat sbuf;
  8459. /* Linux will dereference the symlink and fail.
  8460. That is better in the sense that it means we will not
  8461. have to compile and use the lstat wrapper. */
  8462. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8463. ;
  8464. return 0;
  8465. }
  8466. _ACEOF
  8467. rm -f conftest$ac_exeext
  8468. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8469. (eval $ac_link) 2>&5
  8470. ac_status=$?
  8471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8474. (eval $ac_try) 2>&5
  8475. ac_status=$?
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. (exit $ac_status); }; }; then
  8478. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8479. else
  8480. echo "$as_me: program exited with status $ac_status" >&5
  8481. echo "$as_me: failed program was:" >&5
  8482. sed 's/^/| /' conftest.$ac_ext >&5
  8483. ( exit $ac_status )
  8484. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8485. fi
  8486. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8487. fi
  8488. else
  8489. # If the `ln -s' command failed, then we probably don't even
  8490. # have an lstat function.
  8491. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8492. fi
  8493. rm -f conftest.sym conftest.file
  8494. fi
  8495. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8496. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8497. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8498. cat >>confdefs.h <<_ACEOF
  8499. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8500. _ACEOF
  8501. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8502. case $LIBOBJS in
  8503. "lstat.$ac_objext" | \
  8504. *" lstat.$ac_objext" | \
  8505. "lstat.$ac_objext "* | \
  8506. *" lstat.$ac_objext "* ) ;;
  8507. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8508. esac
  8509. fi
  8510. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8511. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8512. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8513. echo $ECHO_N "(cached) $ECHO_C" >&6
  8514. else
  8515. if test "$cross_compiling" = yes; then
  8516. ac_cv_func_lstat_empty_string_bug=yes
  8517. else
  8518. cat >conftest.$ac_ext <<_ACEOF
  8519. /* confdefs.h. */
  8520. _ACEOF
  8521. cat confdefs.h >>conftest.$ac_ext
  8522. cat >>conftest.$ac_ext <<_ACEOF
  8523. /* end confdefs.h. */
  8524. $ac_includes_default
  8525. int
  8526. main ()
  8527. {
  8528. struct stat sbuf;
  8529. exit (lstat ("", &sbuf) ? 1 : 0);
  8530. ;
  8531. return 0;
  8532. }
  8533. _ACEOF
  8534. rm -f conftest$ac_exeext
  8535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8536. (eval $ac_link) 2>&5
  8537. ac_status=$?
  8538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8539. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8541. (eval $ac_try) 2>&5
  8542. ac_status=$?
  8543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. (exit $ac_status); }; }; then
  8545. ac_cv_func_lstat_empty_string_bug=yes
  8546. else
  8547. echo "$as_me: program exited with status $ac_status" >&5
  8548. echo "$as_me: failed program was:" >&5
  8549. sed 's/^/| /' conftest.$ac_ext >&5
  8550. ( exit $ac_status )
  8551. ac_cv_func_lstat_empty_string_bug=no
  8552. fi
  8553. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8554. fi
  8555. fi
  8556. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8557. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8558. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8559. case $LIBOBJS in
  8560. "lstat.$ac_objext" | \
  8561. *" lstat.$ac_objext" | \
  8562. "lstat.$ac_objext "* | \
  8563. *" lstat.$ac_objext "* ) ;;
  8564. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8565. esac
  8566. cat >>confdefs.h <<_ACEOF
  8567. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8568. _ACEOF
  8569. fi
  8570. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8571. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8572. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8573. echo $ECHO_N "(cached) $ECHO_C" >&6
  8574. else
  8575. rm -f conftest.sym conftest.file
  8576. echo >conftest.file
  8577. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8578. if test "$cross_compiling" = yes; then
  8579. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8580. else
  8581. cat >conftest.$ac_ext <<_ACEOF
  8582. /* confdefs.h. */
  8583. _ACEOF
  8584. cat confdefs.h >>conftest.$ac_ext
  8585. cat >>conftest.$ac_ext <<_ACEOF
  8586. /* end confdefs.h. */
  8587. $ac_includes_default
  8588. int
  8589. main ()
  8590. {
  8591. struct stat sbuf;
  8592. /* Linux will dereference the symlink and fail.
  8593. That is better in the sense that it means we will not
  8594. have to compile and use the lstat wrapper. */
  8595. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8596. ;
  8597. return 0;
  8598. }
  8599. _ACEOF
  8600. rm -f conftest$ac_exeext
  8601. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8602. (eval $ac_link) 2>&5
  8603. ac_status=$?
  8604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8605. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8607. (eval $ac_try) 2>&5
  8608. ac_status=$?
  8609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8610. (exit $ac_status); }; }; then
  8611. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8612. else
  8613. echo "$as_me: program exited with status $ac_status" >&5
  8614. echo "$as_me: failed program was:" >&5
  8615. sed 's/^/| /' conftest.$ac_ext >&5
  8616. ( exit $ac_status )
  8617. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8618. fi
  8619. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8620. fi
  8621. else
  8622. # If the `ln -s' command failed, then we probably don't even
  8623. # have an lstat function.
  8624. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8625. fi
  8626. rm -f conftest.sym conftest.file
  8627. fi
  8628. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8629. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8630. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8631. cat >>confdefs.h <<_ACEOF
  8632. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8633. _ACEOF
  8634. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8635. case $LIBOBJS in
  8636. "lstat.$ac_objext" | \
  8637. *" lstat.$ac_objext" | \
  8638. "lstat.$ac_objext "* | \
  8639. *" lstat.$ac_objext "* ) ;;
  8640. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8641. esac
  8642. fi
  8643. for ac_header in stdlib.h
  8644. do
  8645. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8646. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8647. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8648. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8649. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8650. echo $ECHO_N "(cached) $ECHO_C" >&6
  8651. fi
  8652. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8653. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8654. else
  8655. # Is the header compilable?
  8656. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8657. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8658. cat >conftest.$ac_ext <<_ACEOF
  8659. /* confdefs.h. */
  8660. _ACEOF
  8661. cat confdefs.h >>conftest.$ac_ext
  8662. cat >>conftest.$ac_ext <<_ACEOF
  8663. /* end confdefs.h. */
  8664. $ac_includes_default
  8665. #include <$ac_header>
  8666. _ACEOF
  8667. rm -f conftest.$ac_objext
  8668. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8669. (eval $ac_compile) 2>conftest.er1
  8670. ac_status=$?
  8671. grep -v '^ *+' conftest.er1 >conftest.err
  8672. rm -f conftest.er1
  8673. cat conftest.err >&5
  8674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8675. (exit $ac_status); } &&
  8676. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8678. (eval $ac_try) 2>&5
  8679. ac_status=$?
  8680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8681. (exit $ac_status); }; } &&
  8682. { ac_try='test -s conftest.$ac_objext'
  8683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8684. (eval $ac_try) 2>&5
  8685. ac_status=$?
  8686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8687. (exit $ac_status); }; }; then
  8688. ac_header_compiler=yes
  8689. else
  8690. echo "$as_me: failed program was:" >&5
  8691. sed 's/^/| /' conftest.$ac_ext >&5
  8692. ac_header_compiler=no
  8693. fi
  8694. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8695. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8696. echo "${ECHO_T}$ac_header_compiler" >&6
  8697. # Is the header present?
  8698. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8699. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8700. cat >conftest.$ac_ext <<_ACEOF
  8701. /* confdefs.h. */
  8702. _ACEOF
  8703. cat confdefs.h >>conftest.$ac_ext
  8704. cat >>conftest.$ac_ext <<_ACEOF
  8705. /* end confdefs.h. */
  8706. #include <$ac_header>
  8707. _ACEOF
  8708. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8709. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8710. ac_status=$?
  8711. grep -v '^ *+' conftest.er1 >conftest.err
  8712. rm -f conftest.er1
  8713. cat conftest.err >&5
  8714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715. (exit $ac_status); } >/dev/null; then
  8716. if test -s conftest.err; then
  8717. ac_cpp_err=$ac_c_preproc_warn_flag
  8718. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8719. else
  8720. ac_cpp_err=
  8721. fi
  8722. else
  8723. ac_cpp_err=yes
  8724. fi
  8725. if test -z "$ac_cpp_err"; then
  8726. ac_header_preproc=yes
  8727. else
  8728. echo "$as_me: failed program was:" >&5
  8729. sed 's/^/| /' conftest.$ac_ext >&5
  8730. ac_header_preproc=no
  8731. fi
  8732. rm -f conftest.err conftest.$ac_ext
  8733. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8734. echo "${ECHO_T}$ac_header_preproc" >&6
  8735. # So? What about this header?
  8736. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8737. yes:no: )
  8738. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8739. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8740. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8741. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8742. ac_header_preproc=yes
  8743. ;;
  8744. no:yes:* )
  8745. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8746. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8747. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8748. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8749. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8750. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8751. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8752. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8753. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8754. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8755. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8756. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8757. (
  8758. cat <<\_ASBOX
  8759. ## ------------------------------------------ ##
  8760. ## Report this to the AC_PACKAGE_NAME lists. ##
  8761. ## ------------------------------------------ ##
  8762. _ASBOX
  8763. ) |
  8764. sed "s/^/$as_me: WARNING: /" >&2
  8765. ;;
  8766. esac
  8767. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8768. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8769. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8770. echo $ECHO_N "(cached) $ECHO_C" >&6
  8771. else
  8772. eval "$as_ac_Header=\$ac_header_preproc"
  8773. fi
  8774. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8775. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8776. fi
  8777. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8778. cat >>confdefs.h <<_ACEOF
  8779. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8780. _ACEOF
  8781. fi
  8782. done
  8783. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8784. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8785. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8786. echo $ECHO_N "(cached) $ECHO_C" >&6
  8787. else
  8788. if test "$cross_compiling" = yes; then
  8789. ac_cv_func_malloc_0_nonnull=no
  8790. else
  8791. cat >conftest.$ac_ext <<_ACEOF
  8792. /* confdefs.h. */
  8793. _ACEOF
  8794. cat confdefs.h >>conftest.$ac_ext
  8795. cat >>conftest.$ac_ext <<_ACEOF
  8796. /* end confdefs.h. */
  8797. #if STDC_HEADERS || HAVE_STDLIB_H
  8798. # include <stdlib.h>
  8799. #else
  8800. char *malloc ();
  8801. #endif
  8802. int
  8803. main ()
  8804. {
  8805. exit (malloc (0) ? 0 : 1);
  8806. ;
  8807. return 0;
  8808. }
  8809. _ACEOF
  8810. rm -f conftest$ac_exeext
  8811. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8812. (eval $ac_link) 2>&5
  8813. ac_status=$?
  8814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8815. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8817. (eval $ac_try) 2>&5
  8818. ac_status=$?
  8819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8820. (exit $ac_status); }; }; then
  8821. ac_cv_func_malloc_0_nonnull=yes
  8822. else
  8823. echo "$as_me: program exited with status $ac_status" >&5
  8824. echo "$as_me: failed program was:" >&5
  8825. sed 's/^/| /' conftest.$ac_ext >&5
  8826. ( exit $ac_status )
  8827. ac_cv_func_malloc_0_nonnull=no
  8828. fi
  8829. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8830. fi
  8831. fi
  8832. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8833. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8834. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8835. cat >>confdefs.h <<\_ACEOF
  8836. #define HAVE_MALLOC 1
  8837. _ACEOF
  8838. else
  8839. cat >>confdefs.h <<\_ACEOF
  8840. #define HAVE_MALLOC 0
  8841. _ACEOF
  8842. case $LIBOBJS in
  8843. "malloc.$ac_objext" | \
  8844. *" malloc.$ac_objext" | \
  8845. "malloc.$ac_objext "* | \
  8846. *" malloc.$ac_objext "* ) ;;
  8847. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8848. esac
  8849. cat >>confdefs.h <<\_ACEOF
  8850. #define malloc rpl_malloc
  8851. _ACEOF
  8852. fi
  8853. for ac_header in stdlib.h sys/time.h unistd.h
  8854. do
  8855. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8856. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8857. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8859. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8860. echo $ECHO_N "(cached) $ECHO_C" >&6
  8861. fi
  8862. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8863. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8864. else
  8865. # Is the header compilable?
  8866. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8867. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8868. cat >conftest.$ac_ext <<_ACEOF
  8869. /* confdefs.h. */
  8870. _ACEOF
  8871. cat confdefs.h >>conftest.$ac_ext
  8872. cat >>conftest.$ac_ext <<_ACEOF
  8873. /* end confdefs.h. */
  8874. $ac_includes_default
  8875. #include <$ac_header>
  8876. _ACEOF
  8877. rm -f conftest.$ac_objext
  8878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8879. (eval $ac_compile) 2>conftest.er1
  8880. ac_status=$?
  8881. grep -v '^ *+' conftest.er1 >conftest.err
  8882. rm -f conftest.er1
  8883. cat conftest.err >&5
  8884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8885. (exit $ac_status); } &&
  8886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8888. (eval $ac_try) 2>&5
  8889. ac_status=$?
  8890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8891. (exit $ac_status); }; } &&
  8892. { ac_try='test -s conftest.$ac_objext'
  8893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8894. (eval $ac_try) 2>&5
  8895. ac_status=$?
  8896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8897. (exit $ac_status); }; }; then
  8898. ac_header_compiler=yes
  8899. else
  8900. echo "$as_me: failed program was:" >&5
  8901. sed 's/^/| /' conftest.$ac_ext >&5
  8902. ac_header_compiler=no
  8903. fi
  8904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8905. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8906. echo "${ECHO_T}$ac_header_compiler" >&6
  8907. # Is the header present?
  8908. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8909. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8910. cat >conftest.$ac_ext <<_ACEOF
  8911. /* confdefs.h. */
  8912. _ACEOF
  8913. cat confdefs.h >>conftest.$ac_ext
  8914. cat >>conftest.$ac_ext <<_ACEOF
  8915. /* end confdefs.h. */
  8916. #include <$ac_header>
  8917. _ACEOF
  8918. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8919. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8920. ac_status=$?
  8921. grep -v '^ *+' conftest.er1 >conftest.err
  8922. rm -f conftest.er1
  8923. cat conftest.err >&5
  8924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925. (exit $ac_status); } >/dev/null; then
  8926. if test -s conftest.err; then
  8927. ac_cpp_err=$ac_c_preproc_warn_flag
  8928. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8929. else
  8930. ac_cpp_err=
  8931. fi
  8932. else
  8933. ac_cpp_err=yes
  8934. fi
  8935. if test -z "$ac_cpp_err"; then
  8936. ac_header_preproc=yes
  8937. else
  8938. echo "$as_me: failed program was:" >&5
  8939. sed 's/^/| /' conftest.$ac_ext >&5
  8940. ac_header_preproc=no
  8941. fi
  8942. rm -f conftest.err conftest.$ac_ext
  8943. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8944. echo "${ECHO_T}$ac_header_preproc" >&6
  8945. # So? What about this header?
  8946. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8947. yes:no: )
  8948. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8949. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8951. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8952. ac_header_preproc=yes
  8953. ;;
  8954. no:yes:* )
  8955. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8956. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8957. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8958. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8959. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8960. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8961. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8962. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8963. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8964. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8965. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8966. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8967. (
  8968. cat <<\_ASBOX
  8969. ## ------------------------------------------ ##
  8970. ## Report this to the AC_PACKAGE_NAME lists. ##
  8971. ## ------------------------------------------ ##
  8972. _ASBOX
  8973. ) |
  8974. sed "s/^/$as_me: WARNING: /" >&2
  8975. ;;
  8976. esac
  8977. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8978. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8979. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8980. echo $ECHO_N "(cached) $ECHO_C" >&6
  8981. else
  8982. eval "$as_ac_Header=\$ac_header_preproc"
  8983. fi
  8984. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8985. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8986. fi
  8987. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8988. cat >>confdefs.h <<_ACEOF
  8989. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8990. _ACEOF
  8991. fi
  8992. done
  8993. for ac_func in alarm
  8994. do
  8995. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8996. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8997. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8998. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8999. echo $ECHO_N "(cached) $ECHO_C" >&6
  9000. else
  9001. cat >conftest.$ac_ext <<_ACEOF
  9002. /* confdefs.h. */
  9003. _ACEOF
  9004. cat confdefs.h >>conftest.$ac_ext
  9005. cat >>conftest.$ac_ext <<_ACEOF
  9006. /* end confdefs.h. */
  9007. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9008. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9009. #define $ac_func innocuous_$ac_func
  9010. /* System header to define __stub macros and hopefully few prototypes,
  9011. which can conflict with char $ac_func (); below.
  9012. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9013. <limits.h> exists even on freestanding compilers. */
  9014. #ifdef __STDC__
  9015. # include <limits.h>
  9016. #else
  9017. # include <assert.h>
  9018. #endif
  9019. #undef $ac_func
  9020. /* Override any gcc2 internal prototype to avoid an error. */
  9021. #ifdef __cplusplus
  9022. extern "C"
  9023. {
  9024. #endif
  9025. /* We use char because int might match the return type of a gcc2
  9026. builtin and then its argument prototype would still apply. */
  9027. char $ac_func ();
  9028. /* The GNU C library defines this for functions which it implements
  9029. to always fail with ENOSYS. Some functions are actually named
  9030. something starting with __ and the normal name is an alias. */
  9031. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9032. choke me
  9033. #else
  9034. char (*f) () = $ac_func;
  9035. #endif
  9036. #ifdef __cplusplus
  9037. }
  9038. #endif
  9039. int
  9040. main ()
  9041. {
  9042. return f != $ac_func;
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. rm -f conftest.$ac_objext conftest$ac_exeext
  9048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9049. (eval $ac_link) 2>conftest.er1
  9050. ac_status=$?
  9051. grep -v '^ *+' conftest.er1 >conftest.err
  9052. rm -f conftest.er1
  9053. cat conftest.err >&5
  9054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9055. (exit $ac_status); } &&
  9056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9058. (eval $ac_try) 2>&5
  9059. ac_status=$?
  9060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9061. (exit $ac_status); }; } &&
  9062. { ac_try='test -s conftest$ac_exeext'
  9063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9064. (eval $ac_try) 2>&5
  9065. ac_status=$?
  9066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9067. (exit $ac_status); }; }; then
  9068. eval "$as_ac_var=yes"
  9069. else
  9070. echo "$as_me: failed program was:" >&5
  9071. sed 's/^/| /' conftest.$ac_ext >&5
  9072. eval "$as_ac_var=no"
  9073. fi
  9074. rm -f conftest.err conftest.$ac_objext \
  9075. conftest$ac_exeext conftest.$ac_ext
  9076. fi
  9077. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9078. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9079. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9080. cat >>confdefs.h <<_ACEOF
  9081. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9082. _ACEOF
  9083. fi
  9084. done
  9085. echo "$as_me:$LINENO: checking for working mktime" >&5
  9086. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9087. if test "${ac_cv_func_working_mktime+set}" = set; then
  9088. echo $ECHO_N "(cached) $ECHO_C" >&6
  9089. else
  9090. if test "$cross_compiling" = yes; then
  9091. ac_cv_func_working_mktime=no
  9092. else
  9093. cat >conftest.$ac_ext <<_ACEOF
  9094. /* confdefs.h. */
  9095. _ACEOF
  9096. cat confdefs.h >>conftest.$ac_ext
  9097. cat >>conftest.$ac_ext <<_ACEOF
  9098. /* end confdefs.h. */
  9099. /* Test program from Paul Eggert and Tony Leneis. */
  9100. #if TIME_WITH_SYS_TIME
  9101. # include <sys/time.h>
  9102. # include <time.h>
  9103. #else
  9104. # if HAVE_SYS_TIME_H
  9105. # include <sys/time.h>
  9106. # else
  9107. # include <time.h>
  9108. # endif
  9109. #endif
  9110. #if HAVE_STDLIB_H
  9111. # include <stdlib.h>
  9112. #endif
  9113. #if HAVE_UNISTD_H
  9114. # include <unistd.h>
  9115. #endif
  9116. #if !HAVE_ALARM
  9117. # define alarm(X) /* empty */
  9118. #endif
  9119. /* Work around redefinition to rpl_putenv by other config tests. */
  9120. #undef putenv
  9121. static time_t time_t_max;
  9122. static time_t time_t_min;
  9123. /* Values we'll use to set the TZ environment variable. */
  9124. static char *tz_strings[] = {
  9125. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9126. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9127. };
  9128. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9129. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9130. Based on a problem report from Andreas Jaeger. */
  9131. static void
  9132. spring_forward_gap ()
  9133. {
  9134. /* glibc (up to about 1998-10-07) failed this test. */
  9135. struct tm tm;
  9136. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9137. instead of "TZ=America/Vancouver" in order to detect the bug even
  9138. on systems that don't support the Olson extension, or don't have the
  9139. full zoneinfo tables installed. */
  9140. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9141. tm.tm_year = 98;
  9142. tm.tm_mon = 3;
  9143. tm.tm_mday = 5;
  9144. tm.tm_hour = 2;
  9145. tm.tm_min = 0;
  9146. tm.tm_sec = 0;
  9147. tm.tm_isdst = -1;
  9148. if (mktime (&tm) == (time_t)-1)
  9149. exit (1);
  9150. }
  9151. static void
  9152. mktime_test1 (now)
  9153. time_t now;
  9154. {
  9155. struct tm *lt;
  9156. if ((lt = localtime (&now)) && mktime (lt) != now)
  9157. exit (1);
  9158. }
  9159. static void
  9160. mktime_test (now)
  9161. time_t now;
  9162. {
  9163. mktime_test1 (now);
  9164. mktime_test1 ((time_t) (time_t_max - now));
  9165. mktime_test1 ((time_t) (time_t_min + now));
  9166. }
  9167. static void
  9168. irix_6_4_bug ()
  9169. {
  9170. /* Based on code from Ariel Faigon. */
  9171. struct tm tm;
  9172. tm.tm_year = 96;
  9173. tm.tm_mon = 3;
  9174. tm.tm_mday = 0;
  9175. tm.tm_hour = 0;
  9176. tm.tm_min = 0;
  9177. tm.tm_sec = 0;
  9178. tm.tm_isdst = -1;
  9179. mktime (&tm);
  9180. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9181. exit (1);
  9182. }
  9183. static void
  9184. bigtime_test (j)
  9185. int j;
  9186. {
  9187. struct tm tm;
  9188. time_t now;
  9189. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9190. now = mktime (&tm);
  9191. if (now != (time_t) -1)
  9192. {
  9193. struct tm *lt = localtime (&now);
  9194. if (! (lt
  9195. && lt->tm_year == tm.tm_year
  9196. && lt->tm_mon == tm.tm_mon
  9197. && lt->tm_mday == tm.tm_mday
  9198. && lt->tm_hour == tm.tm_hour
  9199. && lt->tm_min == tm.tm_min
  9200. && lt->tm_sec == tm.tm_sec
  9201. && lt->tm_yday == tm.tm_yday
  9202. && lt->tm_wday == tm.tm_wday
  9203. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9204. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9205. exit (1);
  9206. }
  9207. }
  9208. int
  9209. main ()
  9210. {
  9211. time_t t, delta;
  9212. int i, j;
  9213. /* This test makes some buggy mktime implementations loop.
  9214. Give up after 60 seconds; a mktime slower than that
  9215. isn't worth using anyway. */
  9216. alarm (60);
  9217. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9218. continue;
  9219. time_t_max--;
  9220. if ((time_t) -1 < 0)
  9221. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9222. continue;
  9223. delta = time_t_max / 997; /* a suitable prime number */
  9224. for (i = 0; i < N_STRINGS; i++)
  9225. {
  9226. if (tz_strings[i])
  9227. putenv (tz_strings[i]);
  9228. for (t = 0; t <= time_t_max - delta; t += delta)
  9229. mktime_test (t);
  9230. mktime_test ((time_t) 1);
  9231. mktime_test ((time_t) (60 * 60));
  9232. mktime_test ((time_t) (60 * 60 * 24));
  9233. for (j = 1; 0 < j; j *= 2)
  9234. bigtime_test (j);
  9235. bigtime_test (j - 1);
  9236. }
  9237. irix_6_4_bug ();
  9238. spring_forward_gap ();
  9239. exit (0);
  9240. }
  9241. _ACEOF
  9242. rm -f conftest$ac_exeext
  9243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9244. (eval $ac_link) 2>&5
  9245. ac_status=$?
  9246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9249. (eval $ac_try) 2>&5
  9250. ac_status=$?
  9251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9252. (exit $ac_status); }; }; then
  9253. ac_cv_func_working_mktime=yes
  9254. else
  9255. echo "$as_me: program exited with status $ac_status" >&5
  9256. echo "$as_me: failed program was:" >&5
  9257. sed 's/^/| /' conftest.$ac_ext >&5
  9258. ( exit $ac_status )
  9259. ac_cv_func_working_mktime=no
  9260. fi
  9261. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9262. fi
  9263. fi
  9264. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9265. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9266. if test $ac_cv_func_working_mktime = no; then
  9267. case $LIBOBJS in
  9268. "mktime.$ac_objext" | \
  9269. *" mktime.$ac_objext" | \
  9270. "mktime.$ac_objext "* | \
  9271. *" mktime.$ac_objext "* ) ;;
  9272. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9273. esac
  9274. fi
  9275. for ac_header in stdlib.h unistd.h
  9276. do
  9277. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9278. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9279. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9280. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9281. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9282. echo $ECHO_N "(cached) $ECHO_C" >&6
  9283. fi
  9284. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9285. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9286. else
  9287. # Is the header compilable?
  9288. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9289. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9290. cat >conftest.$ac_ext <<_ACEOF
  9291. /* confdefs.h. */
  9292. _ACEOF
  9293. cat confdefs.h >>conftest.$ac_ext
  9294. cat >>conftest.$ac_ext <<_ACEOF
  9295. /* end confdefs.h. */
  9296. $ac_includes_default
  9297. #include <$ac_header>
  9298. _ACEOF
  9299. rm -f conftest.$ac_objext
  9300. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9301. (eval $ac_compile) 2>conftest.er1
  9302. ac_status=$?
  9303. grep -v '^ *+' conftest.er1 >conftest.err
  9304. rm -f conftest.er1
  9305. cat conftest.err >&5
  9306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9307. (exit $ac_status); } &&
  9308. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9309. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9310. (eval $ac_try) 2>&5
  9311. ac_status=$?
  9312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9313. (exit $ac_status); }; } &&
  9314. { ac_try='test -s conftest.$ac_objext'
  9315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9316. (eval $ac_try) 2>&5
  9317. ac_status=$?
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); }; }; then
  9320. ac_header_compiler=yes
  9321. else
  9322. echo "$as_me: failed program was:" >&5
  9323. sed 's/^/| /' conftest.$ac_ext >&5
  9324. ac_header_compiler=no
  9325. fi
  9326. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9327. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9328. echo "${ECHO_T}$ac_header_compiler" >&6
  9329. # Is the header present?
  9330. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9331. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9332. cat >conftest.$ac_ext <<_ACEOF
  9333. /* confdefs.h. */
  9334. _ACEOF
  9335. cat confdefs.h >>conftest.$ac_ext
  9336. cat >>conftest.$ac_ext <<_ACEOF
  9337. /* end confdefs.h. */
  9338. #include <$ac_header>
  9339. _ACEOF
  9340. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9341. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9342. ac_status=$?
  9343. grep -v '^ *+' conftest.er1 >conftest.err
  9344. rm -f conftest.er1
  9345. cat conftest.err >&5
  9346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347. (exit $ac_status); } >/dev/null; then
  9348. if test -s conftest.err; then
  9349. ac_cpp_err=$ac_c_preproc_warn_flag
  9350. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9351. else
  9352. ac_cpp_err=
  9353. fi
  9354. else
  9355. ac_cpp_err=yes
  9356. fi
  9357. if test -z "$ac_cpp_err"; then
  9358. ac_header_preproc=yes
  9359. else
  9360. echo "$as_me: failed program was:" >&5
  9361. sed 's/^/| /' conftest.$ac_ext >&5
  9362. ac_header_preproc=no
  9363. fi
  9364. rm -f conftest.err conftest.$ac_ext
  9365. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9366. echo "${ECHO_T}$ac_header_preproc" >&6
  9367. # So? What about this header?
  9368. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9369. yes:no: )
  9370. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9371. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9372. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9373. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9374. ac_header_preproc=yes
  9375. ;;
  9376. no:yes:* )
  9377. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9378. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9379. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9380. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9381. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9382. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9383. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9384. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9385. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9386. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9387. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9388. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9389. (
  9390. cat <<\_ASBOX
  9391. ## ------------------------------------------ ##
  9392. ## Report this to the AC_PACKAGE_NAME lists. ##
  9393. ## ------------------------------------------ ##
  9394. _ASBOX
  9395. ) |
  9396. sed "s/^/$as_me: WARNING: /" >&2
  9397. ;;
  9398. esac
  9399. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9401. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9402. echo $ECHO_N "(cached) $ECHO_C" >&6
  9403. else
  9404. eval "$as_ac_Header=\$ac_header_preproc"
  9405. fi
  9406. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9407. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9408. fi
  9409. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9410. cat >>confdefs.h <<_ACEOF
  9411. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9412. _ACEOF
  9413. fi
  9414. done
  9415. for ac_func in getpagesize
  9416. do
  9417. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9418. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9419. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9420. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9421. echo $ECHO_N "(cached) $ECHO_C" >&6
  9422. else
  9423. cat >conftest.$ac_ext <<_ACEOF
  9424. /* confdefs.h. */
  9425. _ACEOF
  9426. cat confdefs.h >>conftest.$ac_ext
  9427. cat >>conftest.$ac_ext <<_ACEOF
  9428. /* end confdefs.h. */
  9429. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9430. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9431. #define $ac_func innocuous_$ac_func
  9432. /* System header to define __stub macros and hopefully few prototypes,
  9433. which can conflict with char $ac_func (); below.
  9434. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9435. <limits.h> exists even on freestanding compilers. */
  9436. #ifdef __STDC__
  9437. # include <limits.h>
  9438. #else
  9439. # include <assert.h>
  9440. #endif
  9441. #undef $ac_func
  9442. /* Override any gcc2 internal prototype to avoid an error. */
  9443. #ifdef __cplusplus
  9444. extern "C"
  9445. {
  9446. #endif
  9447. /* We use char because int might match the return type of a gcc2
  9448. builtin and then its argument prototype would still apply. */
  9449. char $ac_func ();
  9450. /* The GNU C library defines this for functions which it implements
  9451. to always fail with ENOSYS. Some functions are actually named
  9452. something starting with __ and the normal name is an alias. */
  9453. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9454. choke me
  9455. #else
  9456. char (*f) () = $ac_func;
  9457. #endif
  9458. #ifdef __cplusplus
  9459. }
  9460. #endif
  9461. int
  9462. main ()
  9463. {
  9464. return f != $ac_func;
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. rm -f conftest.$ac_objext conftest$ac_exeext
  9470. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9471. (eval $ac_link) 2>conftest.er1
  9472. ac_status=$?
  9473. grep -v '^ *+' conftest.er1 >conftest.err
  9474. rm -f conftest.er1
  9475. cat conftest.err >&5
  9476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9477. (exit $ac_status); } &&
  9478. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9480. (eval $ac_try) 2>&5
  9481. ac_status=$?
  9482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9483. (exit $ac_status); }; } &&
  9484. { ac_try='test -s conftest$ac_exeext'
  9485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9486. (eval $ac_try) 2>&5
  9487. ac_status=$?
  9488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9489. (exit $ac_status); }; }; then
  9490. eval "$as_ac_var=yes"
  9491. else
  9492. echo "$as_me: failed program was:" >&5
  9493. sed 's/^/| /' conftest.$ac_ext >&5
  9494. eval "$as_ac_var=no"
  9495. fi
  9496. rm -f conftest.err conftest.$ac_objext \
  9497. conftest$ac_exeext conftest.$ac_ext
  9498. fi
  9499. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9500. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9501. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9502. cat >>confdefs.h <<_ACEOF
  9503. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9504. _ACEOF
  9505. fi
  9506. done
  9507. echo "$as_me:$LINENO: checking for working mmap" >&5
  9508. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9509. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9510. echo $ECHO_N "(cached) $ECHO_C" >&6
  9511. else
  9512. if test "$cross_compiling" = yes; then
  9513. ac_cv_func_mmap_fixed_mapped=no
  9514. else
  9515. cat >conftest.$ac_ext <<_ACEOF
  9516. /* confdefs.h. */
  9517. _ACEOF
  9518. cat confdefs.h >>conftest.$ac_ext
  9519. cat >>conftest.$ac_ext <<_ACEOF
  9520. /* end confdefs.h. */
  9521. $ac_includes_default
  9522. /* malloc might have been renamed as rpl_malloc. */
  9523. #undef malloc
  9524. /* Thanks to Mike Haertel and Jim Avera for this test.
  9525. Here is a matrix of mmap possibilities:
  9526. mmap private not fixed
  9527. mmap private fixed at somewhere currently unmapped
  9528. mmap private fixed at somewhere already mapped
  9529. mmap shared not fixed
  9530. mmap shared fixed at somewhere currently unmapped
  9531. mmap shared fixed at somewhere already mapped
  9532. For private mappings, we should verify that changes cannot be read()
  9533. back from the file, nor mmap's back from the file at a different
  9534. address. (There have been systems where private was not correctly
  9535. implemented like the infamous i386 svr4.0, and systems where the
  9536. VM page cache was not coherent with the file system buffer cache
  9537. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9538. For shared mappings, we should conversely verify that changes get
  9539. propagated back to all the places they're supposed to be.
  9540. Grep wants private fixed already mapped.
  9541. The main things grep needs to know about mmap are:
  9542. * does it exist and is it safe to write into the mmap'd area
  9543. * how to use it (BSD variants) */
  9544. #include <fcntl.h>
  9545. #include <sys/mman.h>
  9546. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9547. char *malloc ();
  9548. #endif
  9549. /* This mess was copied from the GNU getpagesize.h. */
  9550. #if !HAVE_GETPAGESIZE
  9551. /* Assume that all systems that can run configure have sys/param.h. */
  9552. # if !HAVE_SYS_PARAM_H
  9553. # define HAVE_SYS_PARAM_H 1
  9554. # endif
  9555. # ifdef _SC_PAGESIZE
  9556. # define getpagesize() sysconf(_SC_PAGESIZE)
  9557. # else /* no _SC_PAGESIZE */
  9558. # if HAVE_SYS_PARAM_H
  9559. # include <sys/param.h>
  9560. # ifdef EXEC_PAGESIZE
  9561. # define getpagesize() EXEC_PAGESIZE
  9562. # else /* no EXEC_PAGESIZE */
  9563. # ifdef NBPG
  9564. # define getpagesize() NBPG * CLSIZE
  9565. # ifndef CLSIZE
  9566. # define CLSIZE 1
  9567. # endif /* no CLSIZE */
  9568. # else /* no NBPG */
  9569. # ifdef NBPC
  9570. # define getpagesize() NBPC
  9571. # else /* no NBPC */
  9572. # ifdef PAGESIZE
  9573. # define getpagesize() PAGESIZE
  9574. # endif /* PAGESIZE */
  9575. # endif /* no NBPC */
  9576. # endif /* no NBPG */
  9577. # endif /* no EXEC_PAGESIZE */
  9578. # else /* no HAVE_SYS_PARAM_H */
  9579. # define getpagesize() 8192 /* punt totally */
  9580. # endif /* no HAVE_SYS_PARAM_H */
  9581. # endif /* no _SC_PAGESIZE */
  9582. #endif /* no HAVE_GETPAGESIZE */
  9583. int
  9584. main ()
  9585. {
  9586. char *data, *data2, *data3;
  9587. int i, pagesize;
  9588. int fd;
  9589. pagesize = getpagesize ();
  9590. /* First, make a file with some known garbage in it. */
  9591. data = (char *) malloc (pagesize);
  9592. if (!data)
  9593. exit (1);
  9594. for (i = 0; i < pagesize; ++i)
  9595. *(data + i) = rand ();
  9596. umask (0);
  9597. fd = creat ("conftest.mmap", 0600);
  9598. if (fd < 0)
  9599. exit (1);
  9600. if (write (fd, data, pagesize) != pagesize)
  9601. exit (1);
  9602. close (fd);
  9603. /* Next, try to mmap the file at a fixed address which already has
  9604. something else allocated at it. If we can, also make sure that
  9605. we see the same garbage. */
  9606. fd = open ("conftest.mmap", O_RDWR);
  9607. if (fd < 0)
  9608. exit (1);
  9609. data2 = (char *) malloc (2 * pagesize);
  9610. if (!data2)
  9611. exit (1);
  9612. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9613. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9614. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9615. exit (1);
  9616. for (i = 0; i < pagesize; ++i)
  9617. if (*(data + i) != *(data2 + i))
  9618. exit (1);
  9619. /* Finally, make sure that changes to the mapped area do not
  9620. percolate back to the file as seen by read(). (This is a bug on
  9621. some variants of i386 svr4.0.) */
  9622. for (i = 0; i < pagesize; ++i)
  9623. *(data2 + i) = *(data2 + i) + 1;
  9624. data3 = (char *) malloc (pagesize);
  9625. if (!data3)
  9626. exit (1);
  9627. if (read (fd, data3, pagesize) != pagesize)
  9628. exit (1);
  9629. for (i = 0; i < pagesize; ++i)
  9630. if (*(data + i) != *(data3 + i))
  9631. exit (1);
  9632. close (fd);
  9633. exit (0);
  9634. }
  9635. _ACEOF
  9636. rm -f conftest$ac_exeext
  9637. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9638. (eval $ac_link) 2>&5
  9639. ac_status=$?
  9640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9641. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9643. (eval $ac_try) 2>&5
  9644. ac_status=$?
  9645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9646. (exit $ac_status); }; }; then
  9647. ac_cv_func_mmap_fixed_mapped=yes
  9648. else
  9649. echo "$as_me: program exited with status $ac_status" >&5
  9650. echo "$as_me: failed program was:" >&5
  9651. sed 's/^/| /' conftest.$ac_ext >&5
  9652. ( exit $ac_status )
  9653. ac_cv_func_mmap_fixed_mapped=no
  9654. fi
  9655. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9656. fi
  9657. fi
  9658. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9659. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9660. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9661. cat >>confdefs.h <<\_ACEOF
  9662. #define HAVE_MMAP 1
  9663. _ACEOF
  9664. fi
  9665. rm -f conftest.mmap
  9666. for ac_header in stdlib.h
  9667. do
  9668. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9669. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9670. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9671. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9672. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9673. echo $ECHO_N "(cached) $ECHO_C" >&6
  9674. fi
  9675. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9676. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9677. else
  9678. # Is the header compilable?
  9679. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9680. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9681. cat >conftest.$ac_ext <<_ACEOF
  9682. /* confdefs.h. */
  9683. _ACEOF
  9684. cat confdefs.h >>conftest.$ac_ext
  9685. cat >>conftest.$ac_ext <<_ACEOF
  9686. /* end confdefs.h. */
  9687. $ac_includes_default
  9688. #include <$ac_header>
  9689. _ACEOF
  9690. rm -f conftest.$ac_objext
  9691. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9692. (eval $ac_compile) 2>conftest.er1
  9693. ac_status=$?
  9694. grep -v '^ *+' conftest.er1 >conftest.err
  9695. rm -f conftest.er1
  9696. cat conftest.err >&5
  9697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9698. (exit $ac_status); } &&
  9699. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9701. (eval $ac_try) 2>&5
  9702. ac_status=$?
  9703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9704. (exit $ac_status); }; } &&
  9705. { ac_try='test -s conftest.$ac_objext'
  9706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9707. (eval $ac_try) 2>&5
  9708. ac_status=$?
  9709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9710. (exit $ac_status); }; }; then
  9711. ac_header_compiler=yes
  9712. else
  9713. echo "$as_me: failed program was:" >&5
  9714. sed 's/^/| /' conftest.$ac_ext >&5
  9715. ac_header_compiler=no
  9716. fi
  9717. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9718. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9719. echo "${ECHO_T}$ac_header_compiler" >&6
  9720. # Is the header present?
  9721. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9722. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9723. cat >conftest.$ac_ext <<_ACEOF
  9724. /* confdefs.h. */
  9725. _ACEOF
  9726. cat confdefs.h >>conftest.$ac_ext
  9727. cat >>conftest.$ac_ext <<_ACEOF
  9728. /* end confdefs.h. */
  9729. #include <$ac_header>
  9730. _ACEOF
  9731. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9732. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9733. ac_status=$?
  9734. grep -v '^ *+' conftest.er1 >conftest.err
  9735. rm -f conftest.er1
  9736. cat conftest.err >&5
  9737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9738. (exit $ac_status); } >/dev/null; then
  9739. if test -s conftest.err; then
  9740. ac_cpp_err=$ac_c_preproc_warn_flag
  9741. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9742. else
  9743. ac_cpp_err=
  9744. fi
  9745. else
  9746. ac_cpp_err=yes
  9747. fi
  9748. if test -z "$ac_cpp_err"; then
  9749. ac_header_preproc=yes
  9750. else
  9751. echo "$as_me: failed program was:" >&5
  9752. sed 's/^/| /' conftest.$ac_ext >&5
  9753. ac_header_preproc=no
  9754. fi
  9755. rm -f conftest.err conftest.$ac_ext
  9756. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9757. echo "${ECHO_T}$ac_header_preproc" >&6
  9758. # So? What about this header?
  9759. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9760. yes:no: )
  9761. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9762. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9763. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9764. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9765. ac_header_preproc=yes
  9766. ;;
  9767. no:yes:* )
  9768. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9769. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9770. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9771. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9772. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9773. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9774. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9775. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9776. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9777. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9778. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9779. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9780. (
  9781. cat <<\_ASBOX
  9782. ## ------------------------------------------ ##
  9783. ## Report this to the AC_PACKAGE_NAME lists. ##
  9784. ## ------------------------------------------ ##
  9785. _ASBOX
  9786. ) |
  9787. sed "s/^/$as_me: WARNING: /" >&2
  9788. ;;
  9789. esac
  9790. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9791. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9792. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9793. echo $ECHO_N "(cached) $ECHO_C" >&6
  9794. else
  9795. eval "$as_ac_Header=\$ac_header_preproc"
  9796. fi
  9797. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9798. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9799. fi
  9800. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9801. cat >>confdefs.h <<_ACEOF
  9802. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9803. _ACEOF
  9804. fi
  9805. done
  9806. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9807. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9808. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9809. echo $ECHO_N "(cached) $ECHO_C" >&6
  9810. else
  9811. if test "$cross_compiling" = yes; then
  9812. ac_cv_func_realloc_0_nonnull=no
  9813. else
  9814. cat >conftest.$ac_ext <<_ACEOF
  9815. /* confdefs.h. */
  9816. _ACEOF
  9817. cat confdefs.h >>conftest.$ac_ext
  9818. cat >>conftest.$ac_ext <<_ACEOF
  9819. /* end confdefs.h. */
  9820. #if STDC_HEADERS || HAVE_STDLIB_H
  9821. # include <stdlib.h>
  9822. #else
  9823. char *realloc ();
  9824. #endif
  9825. int
  9826. main ()
  9827. {
  9828. exit (realloc (0, 0) ? 0 : 1);
  9829. ;
  9830. return 0;
  9831. }
  9832. _ACEOF
  9833. rm -f conftest$ac_exeext
  9834. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9835. (eval $ac_link) 2>&5
  9836. ac_status=$?
  9837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9838. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9840. (eval $ac_try) 2>&5
  9841. ac_status=$?
  9842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9843. (exit $ac_status); }; }; then
  9844. ac_cv_func_realloc_0_nonnull=yes
  9845. else
  9846. echo "$as_me: program exited with status $ac_status" >&5
  9847. echo "$as_me: failed program was:" >&5
  9848. sed 's/^/| /' conftest.$ac_ext >&5
  9849. ( exit $ac_status )
  9850. ac_cv_func_realloc_0_nonnull=no
  9851. fi
  9852. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9853. fi
  9854. fi
  9855. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9856. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9857. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9858. cat >>confdefs.h <<\_ACEOF
  9859. #define HAVE_REALLOC 1
  9860. _ACEOF
  9861. else
  9862. cat >>confdefs.h <<\_ACEOF
  9863. #define HAVE_REALLOC 0
  9864. _ACEOF
  9865. case $LIBOBJS in
  9866. "realloc.$ac_objext" | \
  9867. *" realloc.$ac_objext" | \
  9868. "realloc.$ac_objext "* | \
  9869. *" realloc.$ac_objext "* ) ;;
  9870. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9871. esac
  9872. cat >>confdefs.h <<\_ACEOF
  9873. #define realloc rpl_realloc
  9874. _ACEOF
  9875. fi
  9876. for ac_header in sys/select.h sys/socket.h
  9877. do
  9878. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9879. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9880. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9881. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9882. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9883. echo $ECHO_N "(cached) $ECHO_C" >&6
  9884. fi
  9885. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9886. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9887. else
  9888. # Is the header compilable?
  9889. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9890. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9891. cat >conftest.$ac_ext <<_ACEOF
  9892. /* confdefs.h. */
  9893. _ACEOF
  9894. cat confdefs.h >>conftest.$ac_ext
  9895. cat >>conftest.$ac_ext <<_ACEOF
  9896. /* end confdefs.h. */
  9897. $ac_includes_default
  9898. #include <$ac_header>
  9899. _ACEOF
  9900. rm -f conftest.$ac_objext
  9901. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9902. (eval $ac_compile) 2>conftest.er1
  9903. ac_status=$?
  9904. grep -v '^ *+' conftest.er1 >conftest.err
  9905. rm -f conftest.er1
  9906. cat conftest.err >&5
  9907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); } &&
  9909. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9911. (eval $ac_try) 2>&5
  9912. ac_status=$?
  9913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9914. (exit $ac_status); }; } &&
  9915. { ac_try='test -s conftest.$ac_objext'
  9916. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9917. (eval $ac_try) 2>&5
  9918. ac_status=$?
  9919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9920. (exit $ac_status); }; }; then
  9921. ac_header_compiler=yes
  9922. else
  9923. echo "$as_me: failed program was:" >&5
  9924. sed 's/^/| /' conftest.$ac_ext >&5
  9925. ac_header_compiler=no
  9926. fi
  9927. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9928. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9929. echo "${ECHO_T}$ac_header_compiler" >&6
  9930. # Is the header present?
  9931. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9932. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9933. cat >conftest.$ac_ext <<_ACEOF
  9934. /* confdefs.h. */
  9935. _ACEOF
  9936. cat confdefs.h >>conftest.$ac_ext
  9937. cat >>conftest.$ac_ext <<_ACEOF
  9938. /* end confdefs.h. */
  9939. #include <$ac_header>
  9940. _ACEOF
  9941. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9942. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9943. ac_status=$?
  9944. grep -v '^ *+' conftest.er1 >conftest.err
  9945. rm -f conftest.er1
  9946. cat conftest.err >&5
  9947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9948. (exit $ac_status); } >/dev/null; then
  9949. if test -s conftest.err; then
  9950. ac_cpp_err=$ac_c_preproc_warn_flag
  9951. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9952. else
  9953. ac_cpp_err=
  9954. fi
  9955. else
  9956. ac_cpp_err=yes
  9957. fi
  9958. if test -z "$ac_cpp_err"; then
  9959. ac_header_preproc=yes
  9960. else
  9961. echo "$as_me: failed program was:" >&5
  9962. sed 's/^/| /' conftest.$ac_ext >&5
  9963. ac_header_preproc=no
  9964. fi
  9965. rm -f conftest.err conftest.$ac_ext
  9966. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9967. echo "${ECHO_T}$ac_header_preproc" >&6
  9968. # So? What about this header?
  9969. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9970. yes:no: )
  9971. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9972. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9973. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9974. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9975. ac_header_preproc=yes
  9976. ;;
  9977. no:yes:* )
  9978. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9979. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9980. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9981. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9982. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9983. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9984. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9985. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9986. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9987. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9988. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9989. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9990. (
  9991. cat <<\_ASBOX
  9992. ## ------------------------------------------ ##
  9993. ## Report this to the AC_PACKAGE_NAME lists. ##
  9994. ## ------------------------------------------ ##
  9995. _ASBOX
  9996. ) |
  9997. sed "s/^/$as_me: WARNING: /" >&2
  9998. ;;
  9999. esac
  10000. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10001. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10002. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10003. echo $ECHO_N "(cached) $ECHO_C" >&6
  10004. else
  10005. eval "$as_ac_Header=\$ac_header_preproc"
  10006. fi
  10007. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10008. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10009. fi
  10010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10011. cat >>confdefs.h <<_ACEOF
  10012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10013. _ACEOF
  10014. fi
  10015. done
  10016. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10017. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10018. if test "${ac_cv_func_select_args+set}" = set; then
  10019. echo $ECHO_N "(cached) $ECHO_C" >&6
  10020. else
  10021. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10022. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10023. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10024. cat >conftest.$ac_ext <<_ACEOF
  10025. /* confdefs.h. */
  10026. _ACEOF
  10027. cat confdefs.h >>conftest.$ac_ext
  10028. cat >>conftest.$ac_ext <<_ACEOF
  10029. /* end confdefs.h. */
  10030. $ac_includes_default
  10031. #if HAVE_SYS_SELECT_H
  10032. # include <sys/select.h>
  10033. #endif
  10034. #if HAVE_SYS_SOCKET_H
  10035. # include <sys/socket.h>
  10036. #endif
  10037. int
  10038. main ()
  10039. {
  10040. extern int select ($ac_arg1,
  10041. $ac_arg234, $ac_arg234, $ac_arg234,
  10042. $ac_arg5);
  10043. ;
  10044. return 0;
  10045. }
  10046. _ACEOF
  10047. rm -f conftest.$ac_objext
  10048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10049. (eval $ac_compile) 2>conftest.er1
  10050. ac_status=$?
  10051. grep -v '^ *+' conftest.er1 >conftest.err
  10052. rm -f conftest.er1
  10053. cat conftest.err >&5
  10054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10055. (exit $ac_status); } &&
  10056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10058. (eval $ac_try) 2>&5
  10059. ac_status=$?
  10060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10061. (exit $ac_status); }; } &&
  10062. { ac_try='test -s conftest.$ac_objext'
  10063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10064. (eval $ac_try) 2>&5
  10065. ac_status=$?
  10066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10067. (exit $ac_status); }; }; then
  10068. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10069. else
  10070. echo "$as_me: failed program was:" >&5
  10071. sed 's/^/| /' conftest.$ac_ext >&5
  10072. fi
  10073. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10074. done
  10075. done
  10076. done
  10077. # Provide a safe default value.
  10078. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10079. fi
  10080. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10081. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10082. ac_save_IFS=$IFS; IFS=','
  10083. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10084. IFS=$ac_save_IFS
  10085. shift
  10086. cat >>confdefs.h <<_ACEOF
  10087. #define SELECT_TYPE_ARG1 $1
  10088. _ACEOF
  10089. cat >>confdefs.h <<_ACEOF
  10090. #define SELECT_TYPE_ARG234 ($2)
  10091. _ACEOF
  10092. cat >>confdefs.h <<_ACEOF
  10093. #define SELECT_TYPE_ARG5 ($3)
  10094. _ACEOF
  10095. rm -f conftest*
  10096. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10097. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10098. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10099. echo $ECHO_N "(cached) $ECHO_C" >&6
  10100. else
  10101. if test "$cross_compiling" = yes; then
  10102. ac_cv_func_stat_empty_string_bug=yes
  10103. else
  10104. cat >conftest.$ac_ext <<_ACEOF
  10105. /* confdefs.h. */
  10106. _ACEOF
  10107. cat confdefs.h >>conftest.$ac_ext
  10108. cat >>conftest.$ac_ext <<_ACEOF
  10109. /* end confdefs.h. */
  10110. $ac_includes_default
  10111. int
  10112. main ()
  10113. {
  10114. struct stat sbuf;
  10115. exit (stat ("", &sbuf) ? 1 : 0);
  10116. ;
  10117. return 0;
  10118. }
  10119. _ACEOF
  10120. rm -f conftest$ac_exeext
  10121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10122. (eval $ac_link) 2>&5
  10123. ac_status=$?
  10124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10127. (eval $ac_try) 2>&5
  10128. ac_status=$?
  10129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10130. (exit $ac_status); }; }; then
  10131. ac_cv_func_stat_empty_string_bug=yes
  10132. else
  10133. echo "$as_me: program exited with status $ac_status" >&5
  10134. echo "$as_me: failed program was:" >&5
  10135. sed 's/^/| /' conftest.$ac_ext >&5
  10136. ( exit $ac_status )
  10137. ac_cv_func_stat_empty_string_bug=no
  10138. fi
  10139. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10140. fi
  10141. fi
  10142. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10143. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10144. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10145. case $LIBOBJS in
  10146. "stat.$ac_objext" | \
  10147. *" stat.$ac_objext" | \
  10148. "stat.$ac_objext "* | \
  10149. *" stat.$ac_objext "* ) ;;
  10150. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10151. esac
  10152. cat >>confdefs.h <<_ACEOF
  10153. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10154. _ACEOF
  10155. fi
  10156. for ac_func in strftime
  10157. do
  10158. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10159. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10160. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10161. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10162. echo $ECHO_N "(cached) $ECHO_C" >&6
  10163. else
  10164. cat >conftest.$ac_ext <<_ACEOF
  10165. /* confdefs.h. */
  10166. _ACEOF
  10167. cat confdefs.h >>conftest.$ac_ext
  10168. cat >>conftest.$ac_ext <<_ACEOF
  10169. /* end confdefs.h. */
  10170. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10171. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10172. #define $ac_func innocuous_$ac_func
  10173. /* System header to define __stub macros and hopefully few prototypes,
  10174. which can conflict with char $ac_func (); below.
  10175. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10176. <limits.h> exists even on freestanding compilers. */
  10177. #ifdef __STDC__
  10178. # include <limits.h>
  10179. #else
  10180. # include <assert.h>
  10181. #endif
  10182. #undef $ac_func
  10183. /* Override any gcc2 internal prototype to avoid an error. */
  10184. #ifdef __cplusplus
  10185. extern "C"
  10186. {
  10187. #endif
  10188. /* We use char because int might match the return type of a gcc2
  10189. builtin and then its argument prototype would still apply. */
  10190. char $ac_func ();
  10191. /* The GNU C library defines this for functions which it implements
  10192. to always fail with ENOSYS. Some functions are actually named
  10193. something starting with __ and the normal name is an alias. */
  10194. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10195. choke me
  10196. #else
  10197. char (*f) () = $ac_func;
  10198. #endif
  10199. #ifdef __cplusplus
  10200. }
  10201. #endif
  10202. int
  10203. main ()
  10204. {
  10205. return f != $ac_func;
  10206. ;
  10207. return 0;
  10208. }
  10209. _ACEOF
  10210. rm -f conftest.$ac_objext conftest$ac_exeext
  10211. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10212. (eval $ac_link) 2>conftest.er1
  10213. ac_status=$?
  10214. grep -v '^ *+' conftest.er1 >conftest.err
  10215. rm -f conftest.er1
  10216. cat conftest.err >&5
  10217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10218. (exit $ac_status); } &&
  10219. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10221. (eval $ac_try) 2>&5
  10222. ac_status=$?
  10223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10224. (exit $ac_status); }; } &&
  10225. { ac_try='test -s conftest$ac_exeext'
  10226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10227. (eval $ac_try) 2>&5
  10228. ac_status=$?
  10229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10230. (exit $ac_status); }; }; then
  10231. eval "$as_ac_var=yes"
  10232. else
  10233. echo "$as_me: failed program was:" >&5
  10234. sed 's/^/| /' conftest.$ac_ext >&5
  10235. eval "$as_ac_var=no"
  10236. fi
  10237. rm -f conftest.err conftest.$ac_objext \
  10238. conftest$ac_exeext conftest.$ac_ext
  10239. fi
  10240. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10241. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10242. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10243. cat >>confdefs.h <<_ACEOF
  10244. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10245. _ACEOF
  10246. else
  10247. # strftime is in -lintl on SCO UNIX.
  10248. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10249. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10250. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10251. echo $ECHO_N "(cached) $ECHO_C" >&6
  10252. else
  10253. ac_check_lib_save_LIBS=$LIBS
  10254. LIBS="-lintl $LIBS"
  10255. cat >conftest.$ac_ext <<_ACEOF
  10256. /* confdefs.h. */
  10257. _ACEOF
  10258. cat confdefs.h >>conftest.$ac_ext
  10259. cat >>conftest.$ac_ext <<_ACEOF
  10260. /* end confdefs.h. */
  10261. /* Override any gcc2 internal prototype to avoid an error. */
  10262. #ifdef __cplusplus
  10263. extern "C"
  10264. #endif
  10265. /* We use char because int might match the return type of a gcc2
  10266. builtin and then its argument prototype would still apply. */
  10267. char strftime ();
  10268. int
  10269. main ()
  10270. {
  10271. strftime ();
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. rm -f conftest.$ac_objext conftest$ac_exeext
  10277. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10278. (eval $ac_link) 2>conftest.er1
  10279. ac_status=$?
  10280. grep -v '^ *+' conftest.er1 >conftest.err
  10281. rm -f conftest.er1
  10282. cat conftest.err >&5
  10283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); } &&
  10285. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10287. (eval $ac_try) 2>&5
  10288. ac_status=$?
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); }; } &&
  10291. { ac_try='test -s conftest$ac_exeext'
  10292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10293. (eval $ac_try) 2>&5
  10294. ac_status=$?
  10295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10296. (exit $ac_status); }; }; then
  10297. ac_cv_lib_intl_strftime=yes
  10298. else
  10299. echo "$as_me: failed program was:" >&5
  10300. sed 's/^/| /' conftest.$ac_ext >&5
  10301. ac_cv_lib_intl_strftime=no
  10302. fi
  10303. rm -f conftest.err conftest.$ac_objext \
  10304. conftest$ac_exeext conftest.$ac_ext
  10305. LIBS=$ac_check_lib_save_LIBS
  10306. fi
  10307. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10308. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10309. if test $ac_cv_lib_intl_strftime = yes; then
  10310. cat >>confdefs.h <<\_ACEOF
  10311. #define HAVE_STRFTIME 1
  10312. _ACEOF
  10313. LIBS="-lintl $LIBS"
  10314. fi
  10315. fi
  10316. done
  10317. #checkpoint
  10318. cat >confcache <<\_ACEOF
  10319. # This file is a shell script that caches the results of configure
  10320. # tests run on this system so they can be shared between configure
  10321. # scripts and configure runs, see configure's option --config-cache.
  10322. # It is not useful on other systems. If it contains results you don't
  10323. # want to keep, you may remove or edit it.
  10324. #
  10325. # config.status only pays attention to the cache file if you give it
  10326. # the --recheck option to rerun configure.
  10327. #
  10328. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10329. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10330. # following values.
  10331. _ACEOF
  10332. # The following way of writing the cache mishandles newlines in values,
  10333. # but we know of no workaround that is simple, portable, and efficient.
  10334. # So, don't put newlines in cache variables' values.
  10335. # Ultrix sh set writes to stderr and can't be redirected directly,
  10336. # and sets the high bit in the cache file unless we assign to the vars.
  10337. {
  10338. (set) 2>&1 |
  10339. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10340. *ac_space=\ *)
  10341. # `set' does not quote correctly, so add quotes (double-quote
  10342. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10343. sed -n \
  10344. "s/'/'\\\\''/g;
  10345. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10346. ;;
  10347. *)
  10348. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10349. sed -n \
  10350. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10351. ;;
  10352. esac;
  10353. } |
  10354. sed '
  10355. t clear
  10356. : clear
  10357. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10358. t end
  10359. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10360. : end' >>confcache
  10361. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10362. if test -w $cache_file; then
  10363. test "x$cache_file" != "x/dev/null"
  10364. cat confcache >$cache_file
  10365. else
  10366. echo "not updating unwritable cache $cache_file"
  10367. fi
  10368. fi
  10369. rm -f confcache
  10370. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10371. do
  10372. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10373. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10374. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10375. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10376. echo $ECHO_N "(cached) $ECHO_C" >&6
  10377. else
  10378. cat >conftest.$ac_ext <<_ACEOF
  10379. /* confdefs.h. */
  10380. _ACEOF
  10381. cat confdefs.h >>conftest.$ac_ext
  10382. cat >>conftest.$ac_ext <<_ACEOF
  10383. /* end confdefs.h. */
  10384. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10385. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10386. #define $ac_func innocuous_$ac_func
  10387. /* System header to define __stub macros and hopefully few prototypes,
  10388. which can conflict with char $ac_func (); below.
  10389. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10390. <limits.h> exists even on freestanding compilers. */
  10391. #ifdef __STDC__
  10392. # include <limits.h>
  10393. #else
  10394. # include <assert.h>
  10395. #endif
  10396. #undef $ac_func
  10397. /* Override any gcc2 internal prototype to avoid an error. */
  10398. #ifdef __cplusplus
  10399. extern "C"
  10400. {
  10401. #endif
  10402. /* We use char because int might match the return type of a gcc2
  10403. builtin and then its argument prototype would still apply. */
  10404. char $ac_func ();
  10405. /* The GNU C library defines this for functions which it implements
  10406. to always fail with ENOSYS. Some functions are actually named
  10407. something starting with __ and the normal name is an alias. */
  10408. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10409. choke me
  10410. #else
  10411. char (*f) () = $ac_func;
  10412. #endif
  10413. #ifdef __cplusplus
  10414. }
  10415. #endif
  10416. int
  10417. main ()
  10418. {
  10419. return f != $ac_func;
  10420. ;
  10421. return 0;
  10422. }
  10423. _ACEOF
  10424. rm -f conftest.$ac_objext conftest$ac_exeext
  10425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10426. (eval $ac_link) 2>conftest.er1
  10427. ac_status=$?
  10428. grep -v '^ *+' conftest.er1 >conftest.err
  10429. rm -f conftest.er1
  10430. cat conftest.err >&5
  10431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10432. (exit $ac_status); } &&
  10433. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10435. (eval $ac_try) 2>&5
  10436. ac_status=$?
  10437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10438. (exit $ac_status); }; } &&
  10439. { ac_try='test -s conftest$ac_exeext'
  10440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10441. (eval $ac_try) 2>&5
  10442. ac_status=$?
  10443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10444. (exit $ac_status); }; }; then
  10445. eval "$as_ac_var=yes"
  10446. else
  10447. echo "$as_me: failed program was:" >&5
  10448. sed 's/^/| /' conftest.$ac_ext >&5
  10449. eval "$as_ac_var=no"
  10450. fi
  10451. rm -f conftest.err conftest.$ac_objext \
  10452. conftest$ac_exeext conftest.$ac_ext
  10453. fi
  10454. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10455. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10456. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10457. cat >>confdefs.h <<_ACEOF
  10458. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10459. _ACEOF
  10460. fi
  10461. done
  10462. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10463. do
  10464. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10465. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10466. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10467. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10468. echo $ECHO_N "(cached) $ECHO_C" >&6
  10469. else
  10470. cat >conftest.$ac_ext <<_ACEOF
  10471. /* confdefs.h. */
  10472. _ACEOF
  10473. cat confdefs.h >>conftest.$ac_ext
  10474. cat >>conftest.$ac_ext <<_ACEOF
  10475. /* end confdefs.h. */
  10476. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10477. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10478. #define $ac_func innocuous_$ac_func
  10479. /* System header to define __stub macros and hopefully few prototypes,
  10480. which can conflict with char $ac_func (); below.
  10481. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10482. <limits.h> exists even on freestanding compilers. */
  10483. #ifdef __STDC__
  10484. # include <limits.h>
  10485. #else
  10486. # include <assert.h>
  10487. #endif
  10488. #undef $ac_func
  10489. /* Override any gcc2 internal prototype to avoid an error. */
  10490. #ifdef __cplusplus
  10491. extern "C"
  10492. {
  10493. #endif
  10494. /* We use char because int might match the return type of a gcc2
  10495. builtin and then its argument prototype would still apply. */
  10496. char $ac_func ();
  10497. /* The GNU C library defines this for functions which it implements
  10498. to always fail with ENOSYS. Some functions are actually named
  10499. something starting with __ and the normal name is an alias. */
  10500. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10501. choke me
  10502. #else
  10503. char (*f) () = $ac_func;
  10504. #endif
  10505. #ifdef __cplusplus
  10506. }
  10507. #endif
  10508. int
  10509. main ()
  10510. {
  10511. return f != $ac_func;
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. rm -f conftest.$ac_objext conftest$ac_exeext
  10517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10518. (eval $ac_link) 2>conftest.er1
  10519. ac_status=$?
  10520. grep -v '^ *+' conftest.er1 >conftest.err
  10521. rm -f conftest.er1
  10522. cat conftest.err >&5
  10523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10524. (exit $ac_status); } &&
  10525. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10527. (eval $ac_try) 2>&5
  10528. ac_status=$?
  10529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10530. (exit $ac_status); }; } &&
  10531. { ac_try='test -s conftest$ac_exeext'
  10532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10533. (eval $ac_try) 2>&5
  10534. ac_status=$?
  10535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10536. (exit $ac_status); }; }; then
  10537. eval "$as_ac_var=yes"
  10538. else
  10539. echo "$as_me: failed program was:" >&5
  10540. sed 's/^/| /' conftest.$ac_ext >&5
  10541. eval "$as_ac_var=no"
  10542. fi
  10543. rm -f conftest.err conftest.$ac_objext \
  10544. conftest$ac_exeext conftest.$ac_ext
  10545. fi
  10546. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10547. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10548. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10549. cat >>confdefs.h <<_ACEOF
  10550. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10551. _ACEOF
  10552. fi
  10553. done
  10554. #checkpoint
  10555. cat >confcache <<\_ACEOF
  10556. # This file is a shell script that caches the results of configure
  10557. # tests run on this system so they can be shared between configure
  10558. # scripts and configure runs, see configure's option --config-cache.
  10559. # It is not useful on other systems. If it contains results you don't
  10560. # want to keep, you may remove or edit it.
  10561. #
  10562. # config.status only pays attention to the cache file if you give it
  10563. # the --recheck option to rerun configure.
  10564. #
  10565. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10566. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10567. # following values.
  10568. _ACEOF
  10569. # The following way of writing the cache mishandles newlines in values,
  10570. # but we know of no workaround that is simple, portable, and efficient.
  10571. # So, don't put newlines in cache variables' values.
  10572. # Ultrix sh set writes to stderr and can't be redirected directly,
  10573. # and sets the high bit in the cache file unless we assign to the vars.
  10574. {
  10575. (set) 2>&1 |
  10576. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10577. *ac_space=\ *)
  10578. # `set' does not quote correctly, so add quotes (double-quote
  10579. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10580. sed -n \
  10581. "s/'/'\\\\''/g;
  10582. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10583. ;;
  10584. *)
  10585. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10586. sed -n \
  10587. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10588. ;;
  10589. esac;
  10590. } |
  10591. sed '
  10592. t clear
  10593. : clear
  10594. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10595. t end
  10596. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10597. : end' >>confcache
  10598. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10599. if test -w $cache_file; then
  10600. test "x$cache_file" != "x/dev/null"
  10601. cat confcache >$cache_file
  10602. else
  10603. echo "not updating unwritable cache $cache_file"
  10604. fi
  10605. fi
  10606. rm -f confcache
  10607. for ac_func in strcasecmp strncasecmp vsnprintf
  10608. do
  10609. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10610. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10611. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10612. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10613. echo $ECHO_N "(cached) $ECHO_C" >&6
  10614. else
  10615. cat >conftest.$ac_ext <<_ACEOF
  10616. /* confdefs.h. */
  10617. _ACEOF
  10618. cat confdefs.h >>conftest.$ac_ext
  10619. cat >>conftest.$ac_ext <<_ACEOF
  10620. /* end confdefs.h. */
  10621. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10622. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10623. #define $ac_func innocuous_$ac_func
  10624. /* System header to define __stub macros and hopefully few prototypes,
  10625. which can conflict with char $ac_func (); below.
  10626. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10627. <limits.h> exists even on freestanding compilers. */
  10628. #ifdef __STDC__
  10629. # include <limits.h>
  10630. #else
  10631. # include <assert.h>
  10632. #endif
  10633. #undef $ac_func
  10634. /* Override any gcc2 internal prototype to avoid an error. */
  10635. #ifdef __cplusplus
  10636. extern "C"
  10637. {
  10638. #endif
  10639. /* We use char because int might match the return type of a gcc2
  10640. builtin and then its argument prototype would still apply. */
  10641. char $ac_func ();
  10642. /* The GNU C library defines this for functions which it implements
  10643. to always fail with ENOSYS. Some functions are actually named
  10644. something starting with __ and the normal name is an alias. */
  10645. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10646. choke me
  10647. #else
  10648. char (*f) () = $ac_func;
  10649. #endif
  10650. #ifdef __cplusplus
  10651. }
  10652. #endif
  10653. int
  10654. main ()
  10655. {
  10656. return f != $ac_func;
  10657. ;
  10658. return 0;
  10659. }
  10660. _ACEOF
  10661. rm -f conftest.$ac_objext conftest$ac_exeext
  10662. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10663. (eval $ac_link) 2>conftest.er1
  10664. ac_status=$?
  10665. grep -v '^ *+' conftest.er1 >conftest.err
  10666. rm -f conftest.er1
  10667. cat conftest.err >&5
  10668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10669. (exit $ac_status); } &&
  10670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10672. (eval $ac_try) 2>&5
  10673. ac_status=$?
  10674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10675. (exit $ac_status); }; } &&
  10676. { ac_try='test -s conftest$ac_exeext'
  10677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10678. (eval $ac_try) 2>&5
  10679. ac_status=$?
  10680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10681. (exit $ac_status); }; }; then
  10682. eval "$as_ac_var=yes"
  10683. else
  10684. echo "$as_me: failed program was:" >&5
  10685. sed 's/^/| /' conftest.$ac_ext >&5
  10686. eval "$as_ac_var=no"
  10687. fi
  10688. rm -f conftest.err conftest.$ac_objext \
  10689. conftest$ac_exeext conftest.$ac_ext
  10690. fi
  10691. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10692. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10693. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10694. cat >>confdefs.h <<_ACEOF
  10695. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10696. _ACEOF
  10697. fi
  10698. done
  10699. #autoscan suggested this....
  10700. #These are recommended by autoscan, but no code supports it currently
  10701. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  10702. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10703. for ac_func in vsprintf
  10704. do
  10705. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10706. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10707. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10708. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10709. echo $ECHO_N "(cached) $ECHO_C" >&6
  10710. else
  10711. cat >conftest.$ac_ext <<_ACEOF
  10712. /* confdefs.h. */
  10713. _ACEOF
  10714. cat confdefs.h >>conftest.$ac_ext
  10715. cat >>conftest.$ac_ext <<_ACEOF
  10716. /* end confdefs.h. */
  10717. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10718. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10719. #define $ac_func innocuous_$ac_func
  10720. /* System header to define __stub macros and hopefully few prototypes,
  10721. which can conflict with char $ac_func (); below.
  10722. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10723. <limits.h> exists even on freestanding compilers. */
  10724. #ifdef __STDC__
  10725. # include <limits.h>
  10726. #else
  10727. # include <assert.h>
  10728. #endif
  10729. #undef $ac_func
  10730. /* Override any gcc2 internal prototype to avoid an error. */
  10731. #ifdef __cplusplus
  10732. extern "C"
  10733. {
  10734. #endif
  10735. /* We use char because int might match the return type of a gcc2
  10736. builtin and then its argument prototype would still apply. */
  10737. char $ac_func ();
  10738. /* The GNU C library defines this for functions which it implements
  10739. to always fail with ENOSYS. Some functions are actually named
  10740. something starting with __ and the normal name is an alias. */
  10741. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10742. choke me
  10743. #else
  10744. char (*f) () = $ac_func;
  10745. #endif
  10746. #ifdef __cplusplus
  10747. }
  10748. #endif
  10749. int
  10750. main ()
  10751. {
  10752. return f != $ac_func;
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. rm -f conftest.$ac_objext conftest$ac_exeext
  10758. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10759. (eval $ac_link) 2>conftest.er1
  10760. ac_status=$?
  10761. grep -v '^ *+' conftest.er1 >conftest.err
  10762. rm -f conftest.er1
  10763. cat conftest.err >&5
  10764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10765. (exit $ac_status); } &&
  10766. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10768. (eval $ac_try) 2>&5
  10769. ac_status=$?
  10770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); }; } &&
  10772. { ac_try='test -s conftest$ac_exeext'
  10773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10774. (eval $ac_try) 2>&5
  10775. ac_status=$?
  10776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10777. (exit $ac_status); }; }; then
  10778. eval "$as_ac_var=yes"
  10779. else
  10780. echo "$as_me: failed program was:" >&5
  10781. sed 's/^/| /' conftest.$ac_ext >&5
  10782. eval "$as_ac_var=no"
  10783. fi
  10784. rm -f conftest.err conftest.$ac_objext \
  10785. conftest$ac_exeext conftest.$ac_ext
  10786. fi
  10787. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10788. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10789. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10790. cat >>confdefs.h <<_ACEOF
  10791. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10792. _ACEOF
  10793. fi
  10794. done
  10795. if test "$ac_cv_func_vsprintf" = "no"
  10796. then
  10797. cat << 'EOF' >&2
  10798. configure: error:
  10799. Your system does not have the sprintf/vsprintf libraries.
  10800. These are required to compile almost anything. Sorry.
  10801. EOF
  10802. exit 1
  10803. fi
  10804. for ac_func in uname
  10805. do
  10806. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10807. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10808. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10809. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10810. echo $ECHO_N "(cached) $ECHO_C" >&6
  10811. else
  10812. cat >conftest.$ac_ext <<_ACEOF
  10813. /* confdefs.h. */
  10814. _ACEOF
  10815. cat confdefs.h >>conftest.$ac_ext
  10816. cat >>conftest.$ac_ext <<_ACEOF
  10817. /* end confdefs.h. */
  10818. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10819. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10820. #define $ac_func innocuous_$ac_func
  10821. /* System header to define __stub macros and hopefully few prototypes,
  10822. which can conflict with char $ac_func (); below.
  10823. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10824. <limits.h> exists even on freestanding compilers. */
  10825. #ifdef __STDC__
  10826. # include <limits.h>
  10827. #else
  10828. # include <assert.h>
  10829. #endif
  10830. #undef $ac_func
  10831. /* Override any gcc2 internal prototype to avoid an error. */
  10832. #ifdef __cplusplus
  10833. extern "C"
  10834. {
  10835. #endif
  10836. /* We use char because int might match the return type of a gcc2
  10837. builtin and then its argument prototype would still apply. */
  10838. char $ac_func ();
  10839. /* The GNU C library defines this for functions which it implements
  10840. to always fail with ENOSYS. Some functions are actually named
  10841. something starting with __ and the normal name is an alias. */
  10842. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10843. choke me
  10844. #else
  10845. char (*f) () = $ac_func;
  10846. #endif
  10847. #ifdef __cplusplus
  10848. }
  10849. #endif
  10850. int
  10851. main ()
  10852. {
  10853. return f != $ac_func;
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. rm -f conftest.$ac_objext conftest$ac_exeext
  10859. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10860. (eval $ac_link) 2>conftest.er1
  10861. ac_status=$?
  10862. grep -v '^ *+' conftest.er1 >conftest.err
  10863. rm -f conftest.er1
  10864. cat conftest.err >&5
  10865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10866. (exit $ac_status); } &&
  10867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10869. (eval $ac_try) 2>&5
  10870. ac_status=$?
  10871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10872. (exit $ac_status); }; } &&
  10873. { ac_try='test -s conftest$ac_exeext'
  10874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10875. (eval $ac_try) 2>&5
  10876. ac_status=$?
  10877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10878. (exit $ac_status); }; }; then
  10879. eval "$as_ac_var=yes"
  10880. else
  10881. echo "$as_me: failed program was:" >&5
  10882. sed 's/^/| /' conftest.$ac_ext >&5
  10883. eval "$as_ac_var=no"
  10884. fi
  10885. rm -f conftest.err conftest.$ac_objext \
  10886. conftest$ac_exeext conftest.$ac_ext
  10887. fi
  10888. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10889. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10890. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10891. cat >>confdefs.h <<_ACEOF
  10892. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10893. _ACEOF
  10894. fi
  10895. done
  10896. if test "$ac_cv_func_uname" = "no"
  10897. then
  10898. cat << 'EOF' >&2
  10899. configure: error:
  10900. Your system does not have the uname() function.
  10901. This is required for the botpack.
  10902. EOF
  10903. exit 1
  10904. fi
  10905. # Make sure we have stdc headers, since we can't compile without them
  10906. if test "$ac_cv_header_stdc" = "no"
  10907. then
  10908. cat << 'EOF' >&2
  10909. configure: error:
  10910. Your system must support ANSI C Header files.
  10911. These are required for the language support. Sorry.
  10912. EOF
  10913. exit 1
  10914. fi
  10915. #checkpoint
  10916. cat >confcache <<\_ACEOF
  10917. # This file is a shell script that caches the results of configure
  10918. # tests run on this system so they can be shared between configure
  10919. # scripts and configure runs, see configure's option --config-cache.
  10920. # It is not useful on other systems. If it contains results you don't
  10921. # want to keep, you may remove or edit it.
  10922. #
  10923. # config.status only pays attention to the cache file if you give it
  10924. # the --recheck option to rerun configure.
  10925. #
  10926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10928. # following values.
  10929. _ACEOF
  10930. # The following way of writing the cache mishandles newlines in values,
  10931. # but we know of no workaround that is simple, portable, and efficient.
  10932. # So, don't put newlines in cache variables' values.
  10933. # Ultrix sh set writes to stderr and can't be redirected directly,
  10934. # and sets the high bit in the cache file unless we assign to the vars.
  10935. {
  10936. (set) 2>&1 |
  10937. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10938. *ac_space=\ *)
  10939. # `set' does not quote correctly, so add quotes (double-quote
  10940. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10941. sed -n \
  10942. "s/'/'\\\\''/g;
  10943. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10944. ;;
  10945. *)
  10946. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10947. sed -n \
  10948. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10949. ;;
  10950. esac;
  10951. } |
  10952. sed '
  10953. t clear
  10954. : clear
  10955. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10956. t end
  10957. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10958. : end' >>confcache
  10959. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10960. if test -w $cache_file; then
  10961. test "x$cache_file" != "x/dev/null"
  10962. cat confcache >$cache_file
  10963. else
  10964. echo "not updating unwritable cache $cache_file"
  10965. fi
  10966. fi
  10967. rm -f confcache
  10968. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10969. if ! test -f $cfg; then
  10970. cat << EOF >&2
  10971. configure: error:
  10972. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10973. Or specify the path to it with: --with-cfg=
  10974. EOF
  10975. exit 1
  10976. fi
  10977. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10978. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10979. cat >>confdefs.h <<_ACEOF
  10980. #define EGG_VERSION $version_num
  10981. _ACEOF
  10982. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10983. u_define="S_$define"
  10984. cat >>confdefs.h <<_ACEOF
  10985. #define $u_define 1
  10986. _ACEOF
  10987. CFG="$cfg"
  10988. done
  10989. case "$srcdir" in
  10990. [\\/]* | ?:[\\/]*)
  10991. MOD_UPDIR=""
  10992. ;;
  10993. *)
  10994. MOD_UPDIR="../"
  10995. ;;
  10996. esac
  10997. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10998. for mf in $files; do
  10999. # Strip MF so we end up with the name of the file.
  11000. # echo "MF: $mf"
  11001. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11002. dirpart=`(dirname "$mf") 2>/dev/null ||
  11003. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11004. X"$mf" : 'X\(//\)[^/]' \| \
  11005. X"$mf" : 'X\(//\)$' \| \
  11006. X"$mf" : 'X\(/\)' \| \
  11007. . : '\(.\)' 2>/dev/null ||
  11008. echo X"$mf" |
  11009. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11010. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11011. /^X\(\/\/\)$/{ s//\1/; q; }
  11012. /^X\(\/\).*/{ s//\1/; q; }
  11013. s/.*/./; q'`
  11014. # echo "dirpart: $dirpart mf: $mf"
  11015. # rm -rf "$dirpart/.deps/"
  11016. rm -f "$dirpart/.deps/includes"
  11017. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11018. for file in `sed -n -e '
  11019. /^OBJS = .*\\\\$/ {
  11020. s/^OBJS = //
  11021. :loop
  11022. s/\\\\$//
  11023. p
  11024. n
  11025. /\\\\$/ b loop
  11026. p
  11027. }
  11028. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11029. do
  11030. base=`basename $file .o`
  11031. test -f "$dirpart/$base.c" || continue
  11032. if ! test -f "$dirpart/.deps/$base.Po"; then
  11033. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11034. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11035. if test -f "$dirpart/$base.o"; then
  11036. rm -f "$dirpart/$base.o"
  11037. fi
  11038. fi
  11039. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11040. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11041. done
  11042. done
  11043. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11044. cat >confcache <<\_ACEOF
  11045. # This file is a shell script that caches the results of configure
  11046. # tests run on this system so they can be shared between configure
  11047. # scripts and configure runs, see configure's option --config-cache.
  11048. # It is not useful on other systems. If it contains results you don't
  11049. # want to keep, you may remove or edit it.
  11050. #
  11051. # config.status only pays attention to the cache file if you give it
  11052. # the --recheck option to rerun configure.
  11053. #
  11054. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11055. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11056. # following values.
  11057. _ACEOF
  11058. # The following way of writing the cache mishandles newlines in values,
  11059. # but we know of no workaround that is simple, portable, and efficient.
  11060. # So, don't put newlines in cache variables' values.
  11061. # Ultrix sh set writes to stderr and can't be redirected directly,
  11062. # and sets the high bit in the cache file unless we assign to the vars.
  11063. {
  11064. (set) 2>&1 |
  11065. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11066. *ac_space=\ *)
  11067. # `set' does not quote correctly, so add quotes (double-quote
  11068. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11069. sed -n \
  11070. "s/'/'\\\\''/g;
  11071. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11072. ;;
  11073. *)
  11074. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11075. sed -n \
  11076. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11077. ;;
  11078. esac;
  11079. } |
  11080. sed '
  11081. t clear
  11082. : clear
  11083. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11084. t end
  11085. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11086. : end' >>confcache
  11087. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11088. if test -w $cache_file; then
  11089. test "x$cache_file" != "x/dev/null"
  11090. cat confcache >$cache_file
  11091. else
  11092. echo "not updating unwritable cache $cache_file"
  11093. fi
  11094. fi
  11095. rm -f confcache
  11096. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11097. # Let make expand exec_prefix.
  11098. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11099. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11100. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11101. # trailing colons and then remove the whole line if VPATH becomes empty
  11102. # (actually we leave an empty line to preserve line numbers).
  11103. if test "x$srcdir" = x.; then
  11104. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11105. s/:*\$(srcdir):*/:/;
  11106. s/:*\${srcdir}:*/:/;
  11107. s/:*@srcdir@:*/:/;
  11108. s/^\([^=]*=[ ]*\):*/\1/;
  11109. s/:*$//;
  11110. s/^[^=]*=[ ]*$//;
  11111. }'
  11112. fi
  11113. DEFS=-DHAVE_CONFIG_H
  11114. ac_libobjs=
  11115. ac_ltlibobjs=
  11116. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11117. # 1. Remove the extension, and $U if already installed.
  11118. ac_i=`echo "$ac_i" |
  11119. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11120. # 2. Add them.
  11121. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11122. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11123. done
  11124. LIBOBJS=$ac_libobjs
  11125. LTLIBOBJS=$ac_ltlibobjs
  11126. : ${CONFIG_STATUS=./config.status}
  11127. ac_clean_files_save=$ac_clean_files
  11128. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11129. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11130. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11131. cat >$CONFIG_STATUS <<_ACEOF
  11132. #! $SHELL
  11133. # Generated by $as_me.
  11134. # Run this file to recreate the current configuration.
  11135. # Compiler output produced by configure, useful for debugging
  11136. # configure, is in config.log if it exists.
  11137. debug=false
  11138. ac_cs_recheck=false
  11139. ac_cs_silent=false
  11140. SHELL=\${CONFIG_SHELL-$SHELL}
  11141. _ACEOF
  11142. cat >>$CONFIG_STATUS <<\_ACEOF
  11143. ## --------------------- ##
  11144. ## M4sh Initialization. ##
  11145. ## --------------------- ##
  11146. # Be Bourne compatible
  11147. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11148. emulate sh
  11149. NULLCMD=:
  11150. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11151. # is contrary to our usage. Disable this feature.
  11152. alias -g '${1+"$@"}'='"$@"'
  11153. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11154. set -o posix
  11155. fi
  11156. DUALCASE=1; export DUALCASE # for MKS sh
  11157. # Support unset when possible.
  11158. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11159. as_unset=unset
  11160. else
  11161. as_unset=false
  11162. fi
  11163. # Work around bugs in pre-3.0 UWIN ksh.
  11164. $as_unset ENV MAIL MAILPATH
  11165. PS1='$ '
  11166. PS2='> '
  11167. PS4='+ '
  11168. # NLS nuisances.
  11169. for as_var in \
  11170. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11171. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11172. LC_TELEPHONE LC_TIME
  11173. do
  11174. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11175. eval $as_var=C; export $as_var
  11176. else
  11177. $as_unset $as_var
  11178. fi
  11179. done
  11180. # Required to use basename.
  11181. if expr a : '\(a\)' >/dev/null 2>&1; then
  11182. as_expr=expr
  11183. else
  11184. as_expr=false
  11185. fi
  11186. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11187. as_basename=basename
  11188. else
  11189. as_basename=false
  11190. fi
  11191. # Name of the executable.
  11192. as_me=`$as_basename "$0" ||
  11193. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11194. X"$0" : 'X\(//\)$' \| \
  11195. X"$0" : 'X\(/\)$' \| \
  11196. . : '\(.\)' 2>/dev/null ||
  11197. echo X/"$0" |
  11198. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11199. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11200. /^X\/\(\/\).*/{ s//\1/; q; }
  11201. s/.*/./; q'`
  11202. # PATH needs CR, and LINENO needs CR and PATH.
  11203. # Avoid depending upon Character Ranges.
  11204. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11205. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11206. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11207. as_cr_digits='0123456789'
  11208. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11209. # The user is always right.
  11210. if test "${PATH_SEPARATOR+set}" != set; then
  11211. echo "#! /bin/sh" >conf$$.sh
  11212. echo "exit 0" >>conf$$.sh
  11213. chmod +x conf$$.sh
  11214. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11215. PATH_SEPARATOR=';'
  11216. else
  11217. PATH_SEPARATOR=:
  11218. fi
  11219. rm -f conf$$.sh
  11220. fi
  11221. as_lineno_1=$LINENO
  11222. as_lineno_2=$LINENO
  11223. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11224. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11225. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11226. # Find who we are. Look in the path if we contain no path at all
  11227. # relative or not.
  11228. case $0 in
  11229. *[\\/]* ) as_myself=$0 ;;
  11230. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11231. for as_dir in $PATH
  11232. do
  11233. IFS=$as_save_IFS
  11234. test -z "$as_dir" && as_dir=.
  11235. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11236. done
  11237. ;;
  11238. esac
  11239. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11240. # in which case we are not to be found in the path.
  11241. if test "x$as_myself" = x; then
  11242. as_myself=$0
  11243. fi
  11244. if test ! -f "$as_myself"; then
  11245. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11246. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11247. { (exit 1); exit 1; }; }
  11248. fi
  11249. case $CONFIG_SHELL in
  11250. '')
  11251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11252. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11253. do
  11254. IFS=$as_save_IFS
  11255. test -z "$as_dir" && as_dir=.
  11256. for as_base in sh bash ksh sh5; do
  11257. case $as_dir in
  11258. /*)
  11259. if ("$as_dir/$as_base" -c '
  11260. as_lineno_1=$LINENO
  11261. as_lineno_2=$LINENO
  11262. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11263. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11264. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11265. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11266. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11267. CONFIG_SHELL=$as_dir/$as_base
  11268. export CONFIG_SHELL
  11269. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11270. fi;;
  11271. esac
  11272. done
  11273. done
  11274. ;;
  11275. esac
  11276. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11277. # uniformly replaced by the line number. The first 'sed' inserts a
  11278. # line-number line before each line; the second 'sed' does the real
  11279. # work. The second script uses 'N' to pair each line-number line
  11280. # with the numbered line, and appends trailing '-' during
  11281. # substitution so that $LINENO is not a special case at line end.
  11282. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11283. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11284. sed '=' <$as_myself |
  11285. sed '
  11286. N
  11287. s,$,-,
  11288. : loop
  11289. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11290. t loop
  11291. s,-$,,
  11292. s,^['$as_cr_digits']*\n,,
  11293. ' >$as_me.lineno &&
  11294. chmod +x $as_me.lineno ||
  11295. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11296. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11297. { (exit 1); exit 1; }; }
  11298. # Don't try to exec as it changes $[0], causing all sort of problems
  11299. # (the dirname of $[0] is not the place where we might find the
  11300. # original and so on. Autoconf is especially sensible to this).
  11301. . ./$as_me.lineno
  11302. # Exit status is that of the last command.
  11303. exit
  11304. }
  11305. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11306. *c*,-n*) ECHO_N= ECHO_C='
  11307. ' ECHO_T=' ' ;;
  11308. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11309. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11310. esac
  11311. if expr a : '\(a\)' >/dev/null 2>&1; then
  11312. as_expr=expr
  11313. else
  11314. as_expr=false
  11315. fi
  11316. rm -f conf$$ conf$$.exe conf$$.file
  11317. echo >conf$$.file
  11318. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11319. # We could just check for DJGPP; but this test a) works b) is more generic
  11320. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11321. if test -f conf$$.exe; then
  11322. # Don't use ln at all; we don't have any links
  11323. as_ln_s='cp -p'
  11324. else
  11325. as_ln_s='ln -s'
  11326. fi
  11327. elif ln conf$$.file conf$$ 2>/dev/null; then
  11328. as_ln_s=ln
  11329. else
  11330. as_ln_s='cp -p'
  11331. fi
  11332. rm -f conf$$ conf$$.exe conf$$.file
  11333. if mkdir -p . 2>/dev/null; then
  11334. as_mkdir_p=:
  11335. else
  11336. test -d ./-p && rmdir ./-p
  11337. as_mkdir_p=false
  11338. fi
  11339. as_executable_p="test -f"
  11340. # Sed expression to map a string onto a valid CPP name.
  11341. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11342. # Sed expression to map a string onto a valid variable name.
  11343. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11344. # IFS
  11345. # We need space, tab and new line, in precisely that order.
  11346. as_nl='
  11347. '
  11348. IFS=" $as_nl"
  11349. # CDPATH.
  11350. $as_unset CDPATH
  11351. exec 6>&1
  11352. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11353. # report actual input values of CONFIG_FILES etc. instead of their
  11354. # values after options handling. Logging --version etc. is OK.
  11355. exec 5>>config.log
  11356. {
  11357. echo
  11358. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11359. ## Running $as_me. ##
  11360. _ASBOX
  11361. } >&5
  11362. cat >&5 <<_CSEOF
  11363. This file was extended by $as_me, which was
  11364. generated by GNU Autoconf 2.59. Invocation command line was
  11365. CONFIG_FILES = $CONFIG_FILES
  11366. CONFIG_HEADERS = $CONFIG_HEADERS
  11367. CONFIG_LINKS = $CONFIG_LINKS
  11368. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11369. $ $0 $@
  11370. _CSEOF
  11371. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11372. echo >&5
  11373. _ACEOF
  11374. # Files that config.status was made for.
  11375. if test -n "$ac_config_files"; then
  11376. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11377. fi
  11378. if test -n "$ac_config_headers"; then
  11379. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11380. fi
  11381. if test -n "$ac_config_links"; then
  11382. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11383. fi
  11384. if test -n "$ac_config_commands"; then
  11385. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11386. fi
  11387. cat >>$CONFIG_STATUS <<\_ACEOF
  11388. ac_cs_usage="\
  11389. \`$as_me' instantiates files from templates according to the
  11390. current configuration.
  11391. Usage: $0 [OPTIONS] [FILE]...
  11392. -h, --help print this help, then exit
  11393. -V, --version print version number, then exit
  11394. -q, --quiet do not print progress messages
  11395. -d, --debug don't remove temporary files
  11396. --recheck update $as_me by reconfiguring in the same conditions
  11397. --file=FILE[:TEMPLATE]
  11398. instantiate the configuration file FILE
  11399. --header=FILE[:TEMPLATE]
  11400. instantiate the configuration header FILE
  11401. Configuration files:
  11402. $config_files
  11403. Configuration headers:
  11404. $config_headers
  11405. Report bugs to <bug-autoconf@gnu.org>."
  11406. _ACEOF
  11407. cat >>$CONFIG_STATUS <<_ACEOF
  11408. ac_cs_version="\\
  11409. config.status
  11410. configured by $0, generated by GNU Autoconf 2.59,
  11411. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11412. Copyright (C) 2003 Free Software Foundation, Inc.
  11413. This config.status script is free software; the Free Software Foundation
  11414. gives unlimited permission to copy, distribute and modify it."
  11415. srcdir=$srcdir
  11416. _ACEOF
  11417. cat >>$CONFIG_STATUS <<\_ACEOF
  11418. # If no file are specified by the user, then we need to provide default
  11419. # value. By we need to know if files were specified by the user.
  11420. ac_need_defaults=:
  11421. while test $# != 0
  11422. do
  11423. case $1 in
  11424. --*=*)
  11425. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11426. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11427. ac_shift=:
  11428. ;;
  11429. -*)
  11430. ac_option=$1
  11431. ac_optarg=$2
  11432. ac_shift=shift
  11433. ;;
  11434. *) # This is not an option, so the user has probably given explicit
  11435. # arguments.
  11436. ac_option=$1
  11437. ac_need_defaults=false;;
  11438. esac
  11439. case $ac_option in
  11440. # Handling of the options.
  11441. _ACEOF
  11442. cat >>$CONFIG_STATUS <<\_ACEOF
  11443. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11444. ac_cs_recheck=: ;;
  11445. --version | --vers* | -V )
  11446. echo "$ac_cs_version"; exit 0 ;;
  11447. --he | --h)
  11448. # Conflict between --help and --header
  11449. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11450. Try \`$0 --help' for more information." >&5
  11451. echo "$as_me: error: ambiguous option: $1
  11452. Try \`$0 --help' for more information." >&2;}
  11453. { (exit 1); exit 1; }; };;
  11454. --help | --hel | -h )
  11455. echo "$ac_cs_usage"; exit 0 ;;
  11456. --debug | --d* | -d )
  11457. debug=: ;;
  11458. --file | --fil | --fi | --f )
  11459. $ac_shift
  11460. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11461. ac_need_defaults=false;;
  11462. --header | --heade | --head | --hea )
  11463. $ac_shift
  11464. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11465. ac_need_defaults=false;;
  11466. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11467. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11468. ac_cs_silent=: ;;
  11469. # This is an error.
  11470. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11471. Try \`$0 --help' for more information." >&5
  11472. echo "$as_me: error: unrecognized option: $1
  11473. Try \`$0 --help' for more information." >&2;}
  11474. { (exit 1); exit 1; }; } ;;
  11475. *) ac_config_targets="$ac_config_targets $1" ;;
  11476. esac
  11477. shift
  11478. done
  11479. ac_configure_extra_args=
  11480. if $ac_cs_silent; then
  11481. exec 6>/dev/null
  11482. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11483. fi
  11484. _ACEOF
  11485. cat >>$CONFIG_STATUS <<_ACEOF
  11486. if \$ac_cs_recheck; then
  11487. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11488. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11489. fi
  11490. _ACEOF
  11491. cat >>$CONFIG_STATUS <<\_ACEOF
  11492. for ac_config_target in $ac_config_targets
  11493. do
  11494. case "$ac_config_target" in
  11495. # Handling of arguments.
  11496. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11497. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11498. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11499. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11500. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11501. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11502. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11503. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11504. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11505. { (exit 1); exit 1; }; };;
  11506. esac
  11507. done
  11508. # If the user did not use the arguments to specify the items to instantiate,
  11509. # then the envvar interface is used. Set only those that are not.
  11510. # We use the long form for the default assignment because of an extremely
  11511. # bizarre bug on SunOS 4.1.3.
  11512. if $ac_need_defaults; then
  11513. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11514. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11515. fi
  11516. # Have a temporary directory for convenience. Make it in the build tree
  11517. # simply because there is no reason to put it here, and in addition,
  11518. # creating and moving files from /tmp can sometimes cause problems.
  11519. # Create a temporary directory, and hook for its removal unless debugging.
  11520. $debug ||
  11521. {
  11522. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11523. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11524. }
  11525. # Create a (secure) tmp directory for tmp files.
  11526. {
  11527. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11528. test -n "$tmp" && test -d "$tmp"
  11529. } ||
  11530. {
  11531. tmp=./confstat$$-$RANDOM
  11532. (umask 077 && mkdir $tmp)
  11533. } ||
  11534. {
  11535. echo "$me: cannot create a temporary directory in ." >&2
  11536. { (exit 1); exit 1; }
  11537. }
  11538. _ACEOF
  11539. cat >>$CONFIG_STATUS <<_ACEOF
  11540. #
  11541. # CONFIG_FILES section.
  11542. #
  11543. # No need to generate the scripts if there are no CONFIG_FILES.
  11544. # This happens for instance when ./config.status config.h
  11545. if test -n "\$CONFIG_FILES"; then
  11546. # Protect against being on the right side of a sed subst in config.status.
  11547. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11548. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11549. s,@SHELL@,$SHELL,;t t
  11550. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11551. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11552. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11553. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11554. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11555. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11556. s,@exec_prefix@,$exec_prefix,;t t
  11557. s,@prefix@,$prefix,;t t
  11558. s,@program_transform_name@,$program_transform_name,;t t
  11559. s,@bindir@,$bindir,;t t
  11560. s,@sbindir@,$sbindir,;t t
  11561. s,@libexecdir@,$libexecdir,;t t
  11562. s,@datadir@,$datadir,;t t
  11563. s,@sysconfdir@,$sysconfdir,;t t
  11564. s,@sharedstatedir@,$sharedstatedir,;t t
  11565. s,@localstatedir@,$localstatedir,;t t
  11566. s,@libdir@,$libdir,;t t
  11567. s,@includedir@,$includedir,;t t
  11568. s,@oldincludedir@,$oldincludedir,;t t
  11569. s,@infodir@,$infodir,;t t
  11570. s,@mandir@,$mandir,;t t
  11571. s,@build_alias@,$build_alias,;t t
  11572. s,@host_alias@,$host_alias,;t t
  11573. s,@target_alias@,$target_alias,;t t
  11574. s,@DEFS@,$DEFS,;t t
  11575. s,@ECHO_C@,$ECHO_C,;t t
  11576. s,@ECHO_N@,$ECHO_N,;t t
  11577. s,@ECHO_T@,$ECHO_T,;t t
  11578. s,@LIBS@,$LIBS,;t t
  11579. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11580. s,@CC@,$CC,;t t
  11581. s,@CFLAGS@,$CFLAGS,;t t
  11582. s,@LDFLAGS@,$LDFLAGS,;t t
  11583. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11584. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11585. s,@EXEEXT@,$EXEEXT,;t t
  11586. s,@OBJEXT@,$OBJEXT,;t t
  11587. s,@CPP@,$CPP,;t t
  11588. s,@EGREP@,$EGREP,;t t
  11589. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11590. s,@CCDEBUG@,$CCDEBUG,;t t
  11591. s,@SET_MAKE@,$SET_MAKE,;t t
  11592. s,@HEAD_1@,$HEAD_1,;t t
  11593. s,@AWK@,$AWK,;t t
  11594. s,@BASENAME@,$BASENAME,;t t
  11595. s,@OBJCOPY@,$OBJCOPY,;t t
  11596. s,@STRIP@,$STRIP,;t t
  11597. s,@UNAME@,$UNAME,;t t
  11598. s,@DISTCC@,$DISTCC,;t t
  11599. s,@RESLIB@,$RESLIB,;t t
  11600. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11601. s,@ZLIB@,$ZLIB,;t t
  11602. s,@LIBOBJS@,$LIBOBJS,;t t
  11603. s,@VERSION@,$VERSION,;t t
  11604. s,@NUMVER@,$NUMVER,;t t
  11605. s,@PACKNAME@,$PACKNAME,;t t
  11606. s,@CFG@,$CFG,;t t
  11607. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11608. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11609. CEOF
  11610. _ACEOF
  11611. cat >>$CONFIG_STATUS <<\_ACEOF
  11612. # Split the substitutions into bite-sized pieces for seds with
  11613. # small command number limits, like on Digital OSF/1 and HP-UX.
  11614. ac_max_sed_lines=48
  11615. ac_sed_frag=1 # Number of current file.
  11616. ac_beg=1 # First line for current file.
  11617. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11618. ac_more_lines=:
  11619. ac_sed_cmds=
  11620. while $ac_more_lines; do
  11621. if test $ac_beg -gt 1; then
  11622. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11623. else
  11624. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11625. fi
  11626. if test ! -s $tmp/subs.frag; then
  11627. ac_more_lines=false
  11628. else
  11629. # The purpose of the label and of the branching condition is to
  11630. # speed up the sed processing (if there are no `@' at all, there
  11631. # is no need to browse any of the substitutions).
  11632. # These are the two extra sed commands mentioned above.
  11633. (echo ':t
  11634. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11635. if test -z "$ac_sed_cmds"; then
  11636. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11637. else
  11638. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11639. fi
  11640. ac_sed_frag=`expr $ac_sed_frag + 1`
  11641. ac_beg=$ac_end
  11642. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11643. fi
  11644. done
  11645. if test -z "$ac_sed_cmds"; then
  11646. ac_sed_cmds=cat
  11647. fi
  11648. fi # test -n "$CONFIG_FILES"
  11649. _ACEOF
  11650. cat >>$CONFIG_STATUS <<\_ACEOF
  11651. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11652. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11653. case $ac_file in
  11654. - | *:- | *:-:* ) # input from stdin
  11655. cat >$tmp/stdin
  11656. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11657. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11658. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11659. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11660. * ) ac_file_in=$ac_file.in ;;
  11661. esac
  11662. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11663. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11664. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11665. X"$ac_file" : 'X\(//\)[^/]' \| \
  11666. X"$ac_file" : 'X\(//\)$' \| \
  11667. X"$ac_file" : 'X\(/\)' \| \
  11668. . : '\(.\)' 2>/dev/null ||
  11669. echo X"$ac_file" |
  11670. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11671. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11672. /^X\(\/\/\)$/{ s//\1/; q; }
  11673. /^X\(\/\).*/{ s//\1/; q; }
  11674. s/.*/./; q'`
  11675. { if $as_mkdir_p; then
  11676. mkdir -p "$ac_dir"
  11677. else
  11678. as_dir="$ac_dir"
  11679. as_dirs=
  11680. while test ! -d "$as_dir"; do
  11681. as_dirs="$as_dir $as_dirs"
  11682. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11683. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11684. X"$as_dir" : 'X\(//\)[^/]' \| \
  11685. X"$as_dir" : 'X\(//\)$' \| \
  11686. X"$as_dir" : 'X\(/\)' \| \
  11687. . : '\(.\)' 2>/dev/null ||
  11688. echo X"$as_dir" |
  11689. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11690. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11691. /^X\(\/\/\)$/{ s//\1/; q; }
  11692. /^X\(\/\).*/{ s//\1/; q; }
  11693. s/.*/./; q'`
  11694. done
  11695. test ! -n "$as_dirs" || mkdir $as_dirs
  11696. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11697. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11698. { (exit 1); exit 1; }; }; }
  11699. ac_builddir=.
  11700. if test "$ac_dir" != .; then
  11701. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11702. # A "../" for each directory in $ac_dir_suffix.
  11703. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11704. else
  11705. ac_dir_suffix= ac_top_builddir=
  11706. fi
  11707. case $srcdir in
  11708. .) # No --srcdir option. We are building in place.
  11709. ac_srcdir=.
  11710. if test -z "$ac_top_builddir"; then
  11711. ac_top_srcdir=.
  11712. else
  11713. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11714. fi ;;
  11715. [\\/]* | ?:[\\/]* ) # Absolute path.
  11716. ac_srcdir=$srcdir$ac_dir_suffix;
  11717. ac_top_srcdir=$srcdir ;;
  11718. *) # Relative path.
  11719. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11720. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11721. esac
  11722. # Do not use `cd foo && pwd` to compute absolute paths, because
  11723. # the directories may not exist.
  11724. case `pwd` in
  11725. .) ac_abs_builddir="$ac_dir";;
  11726. *)
  11727. case "$ac_dir" in
  11728. .) ac_abs_builddir=`pwd`;;
  11729. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11730. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11731. esac;;
  11732. esac
  11733. case $ac_abs_builddir in
  11734. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11735. *)
  11736. case ${ac_top_builddir}. in
  11737. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11738. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11739. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11740. esac;;
  11741. esac
  11742. case $ac_abs_builddir in
  11743. .) ac_abs_srcdir=$ac_srcdir;;
  11744. *)
  11745. case $ac_srcdir in
  11746. .) ac_abs_srcdir=$ac_abs_builddir;;
  11747. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11748. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11749. esac;;
  11750. esac
  11751. case $ac_abs_builddir in
  11752. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11753. *)
  11754. case $ac_top_srcdir in
  11755. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11756. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11757. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11758. esac;;
  11759. esac
  11760. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11761. # use $as_me), people would be surprised to read:
  11762. # /* config.h. Generated by config.status. */
  11763. if test x"$ac_file" = x-; then
  11764. configure_input=
  11765. else
  11766. configure_input="$ac_file. "
  11767. fi
  11768. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11769. sed 's,.*/,,'` by configure."
  11770. # First look for the input files in the build tree, otherwise in the
  11771. # src tree.
  11772. ac_file_inputs=`IFS=:
  11773. for f in $ac_file_in; do
  11774. case $f in
  11775. -) echo $tmp/stdin ;;
  11776. [\\/$]*)
  11777. # Absolute (can't be DOS-style, as IFS=:)
  11778. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11779. echo "$as_me: error: cannot find input file: $f" >&2;}
  11780. { (exit 1); exit 1; }; }
  11781. echo "$f";;
  11782. *) # Relative
  11783. if test -f "$f"; then
  11784. # Build tree
  11785. echo "$f"
  11786. elif test -f "$srcdir/$f"; then
  11787. # Source tree
  11788. echo "$srcdir/$f"
  11789. else
  11790. # /dev/null tree
  11791. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11792. echo "$as_me: error: cannot find input file: $f" >&2;}
  11793. { (exit 1); exit 1; }; }
  11794. fi;;
  11795. esac
  11796. done` || { (exit 1); exit 1; }
  11797. if test x"$ac_file" != x-; then
  11798. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11799. echo "$as_me: creating $ac_file" >&6;}
  11800. rm -f "$ac_file"
  11801. fi
  11802. _ACEOF
  11803. cat >>$CONFIG_STATUS <<_ACEOF
  11804. sed "$ac_vpsub
  11805. $extrasub
  11806. _ACEOF
  11807. cat >>$CONFIG_STATUS <<\_ACEOF
  11808. :t
  11809. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11810. s,@configure_input@,$configure_input,;t t
  11811. s,@srcdir@,$ac_srcdir,;t t
  11812. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11813. s,@top_srcdir@,$ac_top_srcdir,;t t
  11814. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11815. s,@builddir@,$ac_builddir,;t t
  11816. s,@abs_builddir@,$ac_abs_builddir,;t t
  11817. s,@top_builddir@,$ac_top_builddir,;t t
  11818. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11819. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11820. rm -f $tmp/stdin
  11821. if test x"$ac_file" != x-; then
  11822. mv $tmp/out $ac_file
  11823. else
  11824. cat $tmp/out
  11825. rm -f $tmp/out
  11826. fi
  11827. done
  11828. _ACEOF
  11829. cat >>$CONFIG_STATUS <<\_ACEOF
  11830. #
  11831. # CONFIG_HEADER section.
  11832. #
  11833. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11834. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11835. #
  11836. # ac_d sets the value in "#define NAME VALUE" lines.
  11837. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11838. ac_dB='[ ].*$,\1#\2'
  11839. ac_dC=' '
  11840. ac_dD=',;t'
  11841. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11842. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11843. ac_uB='$,\1#\2define\3'
  11844. ac_uC=' '
  11845. ac_uD=',;t'
  11846. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11847. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11848. case $ac_file in
  11849. - | *:- | *:-:* ) # input from stdin
  11850. cat >$tmp/stdin
  11851. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11852. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11853. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11854. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11855. * ) ac_file_in=$ac_file.in ;;
  11856. esac
  11857. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11858. echo "$as_me: creating $ac_file" >&6;}
  11859. # First look for the input files in the build tree, otherwise in the
  11860. # src tree.
  11861. ac_file_inputs=`IFS=:
  11862. for f in $ac_file_in; do
  11863. case $f in
  11864. -) echo $tmp/stdin ;;
  11865. [\\/$]*)
  11866. # Absolute (can't be DOS-style, as IFS=:)
  11867. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11868. echo "$as_me: error: cannot find input file: $f" >&2;}
  11869. { (exit 1); exit 1; }; }
  11870. # Do quote $f, to prevent DOS paths from being IFS'd.
  11871. echo "$f";;
  11872. *) # Relative
  11873. if test -f "$f"; then
  11874. # Build tree
  11875. echo "$f"
  11876. elif test -f "$srcdir/$f"; then
  11877. # Source tree
  11878. echo "$srcdir/$f"
  11879. else
  11880. # /dev/null tree
  11881. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11882. echo "$as_me: error: cannot find input file: $f" >&2;}
  11883. { (exit 1); exit 1; }; }
  11884. fi;;
  11885. esac
  11886. done` || { (exit 1); exit 1; }
  11887. # Remove the trailing spaces.
  11888. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11889. _ACEOF
  11890. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11891. # `conftest.undefs', that substitutes the proper values into
  11892. # config.h.in to produce config.h. The first handles `#define'
  11893. # templates, and the second `#undef' templates.
  11894. # And first: Protect against being on the right side of a sed subst in
  11895. # config.status. Protect against being in an unquoted here document
  11896. # in config.status.
  11897. rm -f conftest.defines conftest.undefs
  11898. # Using a here document instead of a string reduces the quoting nightmare.
  11899. # Putting comments in sed scripts is not portable.
  11900. #
  11901. # `end' is used to avoid that the second main sed command (meant for
  11902. # 0-ary CPP macros) applies to n-ary macro definitions.
  11903. # See the Autoconf documentation for `clear'.
  11904. cat >confdef2sed.sed <<\_ACEOF
  11905. s/[\\&,]/\\&/g
  11906. s,[\\$`],\\&,g
  11907. t clear
  11908. : clear
  11909. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11910. t end
  11911. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11912. : end
  11913. _ACEOF
  11914. # If some macros were called several times there might be several times
  11915. # the same #defines, which is useless. Nevertheless, we may not want to
  11916. # sort them, since we want the *last* AC-DEFINE to be honored.
  11917. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11918. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11919. rm -f confdef2sed.sed
  11920. # This sed command replaces #undef with comments. This is necessary, for
  11921. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11922. # on some systems where configure will not decide to define it.
  11923. cat >>conftest.undefs <<\_ACEOF
  11924. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11925. _ACEOF
  11926. # Break up conftest.defines because some shells have a limit on the size
  11927. # of here documents, and old seds have small limits too (100 cmds).
  11928. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11929. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11930. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11931. echo ' :' >>$CONFIG_STATUS
  11932. rm -f conftest.tail
  11933. while grep . conftest.defines >/dev/null
  11934. do
  11935. # Write a limited-size here document to $tmp/defines.sed.
  11936. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11937. # Speed up: don't consider the non `#define' lines.
  11938. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11939. # Work around the forget-to-reset-the-flag bug.
  11940. echo 't clr' >>$CONFIG_STATUS
  11941. echo ': clr' >>$CONFIG_STATUS
  11942. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11943. echo 'CEOF
  11944. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11945. rm -f $tmp/in
  11946. mv $tmp/out $tmp/in
  11947. ' >>$CONFIG_STATUS
  11948. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11949. rm -f conftest.defines
  11950. mv conftest.tail conftest.defines
  11951. done
  11952. rm -f conftest.defines
  11953. echo ' fi # grep' >>$CONFIG_STATUS
  11954. echo >>$CONFIG_STATUS
  11955. # Break up conftest.undefs because some shells have a limit on the size
  11956. # of here documents, and old seds have small limits too (100 cmds).
  11957. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11958. rm -f conftest.tail
  11959. while grep . conftest.undefs >/dev/null
  11960. do
  11961. # Write a limited-size here document to $tmp/undefs.sed.
  11962. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11963. # Speed up: don't consider the non `#undef'
  11964. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11965. # Work around the forget-to-reset-the-flag bug.
  11966. echo 't clr' >>$CONFIG_STATUS
  11967. echo ': clr' >>$CONFIG_STATUS
  11968. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11969. echo 'CEOF
  11970. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11971. rm -f $tmp/in
  11972. mv $tmp/out $tmp/in
  11973. ' >>$CONFIG_STATUS
  11974. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11975. rm -f conftest.undefs
  11976. mv conftest.tail conftest.undefs
  11977. done
  11978. rm -f conftest.undefs
  11979. cat >>$CONFIG_STATUS <<\_ACEOF
  11980. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11981. # use $as_me), people would be surprised to read:
  11982. # /* config.h. Generated by config.status. */
  11983. if test x"$ac_file" = x-; then
  11984. echo "/* Generated by configure. */" >$tmp/config.h
  11985. else
  11986. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11987. fi
  11988. cat $tmp/in >>$tmp/config.h
  11989. rm -f $tmp/in
  11990. if test x"$ac_file" != x-; then
  11991. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11992. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11993. echo "$as_me: $ac_file is unchanged" >&6;}
  11994. else
  11995. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11996. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11997. X"$ac_file" : 'X\(//\)[^/]' \| \
  11998. X"$ac_file" : 'X\(//\)$' \| \
  11999. X"$ac_file" : 'X\(/\)' \| \
  12000. . : '\(.\)' 2>/dev/null ||
  12001. echo X"$ac_file" |
  12002. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12003. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12004. /^X\(\/\/\)$/{ s//\1/; q; }
  12005. /^X\(\/\).*/{ s//\1/; q; }
  12006. s/.*/./; q'`
  12007. { if $as_mkdir_p; then
  12008. mkdir -p "$ac_dir"
  12009. else
  12010. as_dir="$ac_dir"
  12011. as_dirs=
  12012. while test ! -d "$as_dir"; do
  12013. as_dirs="$as_dir $as_dirs"
  12014. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12015. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12016. X"$as_dir" : 'X\(//\)[^/]' \| \
  12017. X"$as_dir" : 'X\(//\)$' \| \
  12018. X"$as_dir" : 'X\(/\)' \| \
  12019. . : '\(.\)' 2>/dev/null ||
  12020. echo X"$as_dir" |
  12021. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12022. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12023. /^X\(\/\/\)$/{ s//\1/; q; }
  12024. /^X\(\/\).*/{ s//\1/; q; }
  12025. s/.*/./; q'`
  12026. done
  12027. test ! -n "$as_dirs" || mkdir $as_dirs
  12028. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12029. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12030. { (exit 1); exit 1; }; }; }
  12031. rm -f $ac_file
  12032. mv $tmp/config.h $ac_file
  12033. fi
  12034. else
  12035. cat $tmp/config.h
  12036. rm -f $tmp/config.h
  12037. fi
  12038. done
  12039. _ACEOF
  12040. cat >>$CONFIG_STATUS <<\_ACEOF
  12041. { (exit 0); exit 0; }
  12042. _ACEOF
  12043. chmod +x $CONFIG_STATUS
  12044. ac_clean_files=$ac_clean_files_save
  12045. # configure is writing to config.log, and then calls config.status.
  12046. # config.status does its own redirection, appending to config.log.
  12047. # Unfortunately, on DOS this fails, as config.log is still kept open
  12048. # by configure, so config.status won't be able to write to it; its
  12049. # output is simply discarded. So we exec the FD to /dev/null,
  12050. # effectively closing config.log, so it can be properly (re)opened and
  12051. # appended to by config.status. When coming back to configure, we
  12052. # need to make the FD available again.
  12053. if test "$no_create" != yes; then
  12054. ac_cs_success=:
  12055. ac_config_status_args=
  12056. test "$silent" = yes &&
  12057. ac_config_status_args="$ac_config_status_args --quiet"
  12058. exec 5>/dev/null
  12059. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12060. exec 5>>config.log
  12061. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12062. # would make configure fail if this is the last instruction.
  12063. $ac_cs_success || { (exit 1); exit 1; }
  12064. fi