configure 364 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.33 .
  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 GCC3 CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER WRAP 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. Some influential environment variables:
  741. CC C compiler command
  742. CFLAGS C compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CPP C preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. ac_ext=c
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1156. if test -n "$ac_tool_prefix"; then
  1157. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1158. do
  1159. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1160. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1161. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1162. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1163. if test "${ac_cv_prog_CC+set}" = set; then
  1164. echo $ECHO_N "(cached) $ECHO_C" >&6
  1165. else
  1166. if test -n "$CC"; then
  1167. ac_cv_prog_CC="$CC" # Let the user override the test.
  1168. else
  1169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1170. for as_dir in $PATH
  1171. do
  1172. IFS=$as_save_IFS
  1173. test -z "$as_dir" && as_dir=.
  1174. for ac_exec_ext in '' $ac_executable_extensions; do
  1175. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1176. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1178. break 2
  1179. fi
  1180. done
  1181. done
  1182. fi
  1183. fi
  1184. CC=$ac_cv_prog_CC
  1185. if test -n "$CC"; then
  1186. echo "$as_me:$LINENO: result: $CC" >&5
  1187. echo "${ECHO_T}$CC" >&6
  1188. else
  1189. echo "$as_me:$LINENO: result: no" >&5
  1190. echo "${ECHO_T}no" >&6
  1191. fi
  1192. test -n "$CC" && break
  1193. done
  1194. fi
  1195. if test -z "$CC"; then
  1196. ac_ct_CC=$CC
  1197. for ac_prog in gcc34 gcc33 gcc3 gcc-3.4 gcc-3.3 gcc cc c1
  1198. do
  1199. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1200. set dummy $ac_prog; ac_word=$2
  1201. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1202. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1203. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1204. echo $ECHO_N "(cached) $ECHO_C" >&6
  1205. else
  1206. if test -n "$ac_ct_CC"; then
  1207. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1208. else
  1209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1210. for as_dir in $PATH
  1211. do
  1212. IFS=$as_save_IFS
  1213. test -z "$as_dir" && as_dir=.
  1214. for ac_exec_ext in '' $ac_executable_extensions; do
  1215. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1216. ac_cv_prog_ac_ct_CC="$ac_prog"
  1217. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1218. break 2
  1219. fi
  1220. done
  1221. done
  1222. fi
  1223. fi
  1224. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1225. if test -n "$ac_ct_CC"; then
  1226. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1227. echo "${ECHO_T}$ac_ct_CC" >&6
  1228. else
  1229. echo "$as_me:$LINENO: result: no" >&5
  1230. echo "${ECHO_T}no" >&6
  1231. fi
  1232. test -n "$ac_ct_CC" && break
  1233. done
  1234. CC=$ac_ct_CC
  1235. fi
  1236. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1237. See \`config.log' for more details." >&5
  1238. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1239. See \`config.log' for more details." >&2;}
  1240. { (exit 1); exit 1; }; }
  1241. # Provide some information about the compiler.
  1242. echo "$as_me:$LINENO:" \
  1243. "checking for C compiler version" >&5
  1244. ac_compiler=`set X $ac_compile; echo $2`
  1245. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1246. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1247. ac_status=$?
  1248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1249. (exit $ac_status); }
  1250. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1251. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1252. ac_status=$?
  1253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1254. (exit $ac_status); }
  1255. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1256. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1257. ac_status=$?
  1258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1259. (exit $ac_status); }
  1260. cat >conftest.$ac_ext <<_ACEOF
  1261. /* confdefs.h. */
  1262. _ACEOF
  1263. cat confdefs.h >>conftest.$ac_ext
  1264. cat >>conftest.$ac_ext <<_ACEOF
  1265. /* end confdefs.h. */
  1266. int
  1267. main ()
  1268. {
  1269. ;
  1270. return 0;
  1271. }
  1272. _ACEOF
  1273. ac_clean_files_save=$ac_clean_files
  1274. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1275. # Try to create an executable without -o first, disregard a.out.
  1276. # It will help us diagnose broken compilers, and finding out an intuition
  1277. # of exeext.
  1278. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1279. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1280. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1281. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1282. (eval $ac_link_default) 2>&5
  1283. ac_status=$?
  1284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1285. (exit $ac_status); }; then
  1286. # Find the output, starting from the most likely. This scheme is
  1287. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1288. # resort.
  1289. # Be careful to initialize this variable, since it used to be cached.
  1290. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1291. ac_cv_exeext=
  1292. # b.out is created by i960 compilers.
  1293. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1294. do
  1295. test -f "$ac_file" || continue
  1296. case $ac_file in
  1297. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1298. ;;
  1299. conftest.$ac_ext )
  1300. # This is the source file.
  1301. ;;
  1302. [ab].out )
  1303. # We found the default executable, but exeext='' is most
  1304. # certainly right.
  1305. break;;
  1306. *.* )
  1307. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1308. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1309. # but it would be cool to find out if it's true. Does anybody
  1310. # maintain Libtool? --akim.
  1311. export ac_cv_exeext
  1312. break;;
  1313. * )
  1314. break;;
  1315. esac
  1316. done
  1317. else
  1318. echo "$as_me: failed program was:" >&5
  1319. sed 's/^/| /' conftest.$ac_ext >&5
  1320. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1321. See \`config.log' for more details." >&5
  1322. echo "$as_me: error: C compiler cannot create executables
  1323. See \`config.log' for more details." >&2;}
  1324. { (exit 77); exit 77; }; }
  1325. fi
  1326. ac_exeext=$ac_cv_exeext
  1327. echo "$as_me:$LINENO: result: $ac_file" >&5
  1328. echo "${ECHO_T}$ac_file" >&6
  1329. # Check the compiler produces executables we can run. If not, either
  1330. # the compiler is broken, or we cross compile.
  1331. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1332. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1333. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1334. # If not cross compiling, check that we can run a simple program.
  1335. if test "$cross_compiling" != yes; then
  1336. if { ac_try='./$ac_file'
  1337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1338. (eval $ac_try) 2>&5
  1339. ac_status=$?
  1340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1341. (exit $ac_status); }; }; then
  1342. cross_compiling=no
  1343. else
  1344. if test "$cross_compiling" = maybe; then
  1345. cross_compiling=yes
  1346. else
  1347. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1348. If you meant to cross compile, use \`--host'.
  1349. See \`config.log' for more details." >&5
  1350. echo "$as_me: error: cannot run C compiled programs.
  1351. If you meant to cross compile, use \`--host'.
  1352. See \`config.log' for more details." >&2;}
  1353. { (exit 1); exit 1; }; }
  1354. fi
  1355. fi
  1356. fi
  1357. echo "$as_me:$LINENO: result: yes" >&5
  1358. echo "${ECHO_T}yes" >&6
  1359. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1360. ac_clean_files=$ac_clean_files_save
  1361. # Check the compiler produces executables we can run. If not, either
  1362. # the compiler is broken, or we cross compile.
  1363. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1364. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1365. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1366. echo "${ECHO_T}$cross_compiling" >&6
  1367. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1368. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1370. (eval $ac_link) 2>&5
  1371. ac_status=$?
  1372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1373. (exit $ac_status); }; then
  1374. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1375. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1376. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1377. # `rm'.
  1378. for ac_file in conftest.exe conftest conftest.*; do
  1379. test -f "$ac_file" || continue
  1380. case $ac_file in
  1381. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1382. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1383. export ac_cv_exeext
  1384. break;;
  1385. * ) break;;
  1386. esac
  1387. done
  1388. else
  1389. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1390. See \`config.log' for more details." >&5
  1391. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&2;}
  1393. { (exit 1); exit 1; }; }
  1394. fi
  1395. rm -f conftest$ac_cv_exeext
  1396. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1397. echo "${ECHO_T}$ac_cv_exeext" >&6
  1398. rm -f conftest.$ac_ext
  1399. EXEEXT=$ac_cv_exeext
  1400. ac_exeext=$EXEEXT
  1401. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1402. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1403. if test "${ac_cv_objext+set}" = set; then
  1404. echo $ECHO_N "(cached) $ECHO_C" >&6
  1405. else
  1406. cat >conftest.$ac_ext <<_ACEOF
  1407. /* confdefs.h. */
  1408. _ACEOF
  1409. cat confdefs.h >>conftest.$ac_ext
  1410. cat >>conftest.$ac_ext <<_ACEOF
  1411. /* end confdefs.h. */
  1412. int
  1413. main ()
  1414. {
  1415. ;
  1416. return 0;
  1417. }
  1418. _ACEOF
  1419. rm -f conftest.o conftest.obj
  1420. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1421. (eval $ac_compile) 2>&5
  1422. ac_status=$?
  1423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1424. (exit $ac_status); }; then
  1425. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1426. case $ac_file in
  1427. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1428. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1429. break;;
  1430. esac
  1431. done
  1432. else
  1433. echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1436. See \`config.log' for more details." >&5
  1437. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&2;}
  1439. { (exit 1); exit 1; }; }
  1440. fi
  1441. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1442. fi
  1443. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1444. echo "${ECHO_T}$ac_cv_objext" >&6
  1445. OBJEXT=$ac_cv_objext
  1446. ac_objext=$OBJEXT
  1447. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1448. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1449. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1450. echo $ECHO_N "(cached) $ECHO_C" >&6
  1451. else
  1452. cat >conftest.$ac_ext <<_ACEOF
  1453. /* confdefs.h. */
  1454. _ACEOF
  1455. cat confdefs.h >>conftest.$ac_ext
  1456. cat >>conftest.$ac_ext <<_ACEOF
  1457. /* end confdefs.h. */
  1458. int
  1459. main ()
  1460. {
  1461. #ifndef __GNUC__
  1462. choke me
  1463. #endif
  1464. ;
  1465. return 0;
  1466. }
  1467. _ACEOF
  1468. rm -f conftest.$ac_objext
  1469. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1470. (eval $ac_compile) 2>conftest.er1
  1471. ac_status=$?
  1472. grep -v '^ *+' conftest.er1 >conftest.err
  1473. rm -f conftest.er1
  1474. cat conftest.err >&5
  1475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1476. (exit $ac_status); } &&
  1477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1479. (eval $ac_try) 2>&5
  1480. ac_status=$?
  1481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1482. (exit $ac_status); }; } &&
  1483. { ac_try='test -s conftest.$ac_objext'
  1484. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1485. (eval $ac_try) 2>&5
  1486. ac_status=$?
  1487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1488. (exit $ac_status); }; }; then
  1489. ac_compiler_gnu=yes
  1490. else
  1491. echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_compiler_gnu=no
  1494. fi
  1495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1496. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1497. fi
  1498. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1499. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1500. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1501. ac_test_CFLAGS=${CFLAGS+set}
  1502. ac_save_CFLAGS=$CFLAGS
  1503. CFLAGS="-g"
  1504. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1505. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1506. if test "${ac_cv_prog_cc_g+set}" = set; then
  1507. echo $ECHO_N "(cached) $ECHO_C" >&6
  1508. else
  1509. cat >conftest.$ac_ext <<_ACEOF
  1510. /* confdefs.h. */
  1511. _ACEOF
  1512. cat confdefs.h >>conftest.$ac_ext
  1513. cat >>conftest.$ac_ext <<_ACEOF
  1514. /* end confdefs.h. */
  1515. int
  1516. main ()
  1517. {
  1518. ;
  1519. return 0;
  1520. }
  1521. _ACEOF
  1522. rm -f conftest.$ac_objext
  1523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1524. (eval $ac_compile) 2>conftest.er1
  1525. ac_status=$?
  1526. grep -v '^ *+' conftest.er1 >conftest.err
  1527. rm -f conftest.er1
  1528. cat conftest.err >&5
  1529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1530. (exit $ac_status); } &&
  1531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1533. (eval $ac_try) 2>&5
  1534. ac_status=$?
  1535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1536. (exit $ac_status); }; } &&
  1537. { ac_try='test -s conftest.$ac_objext'
  1538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1539. (eval $ac_try) 2>&5
  1540. ac_status=$?
  1541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1542. (exit $ac_status); }; }; then
  1543. ac_cv_prog_cc_g=yes
  1544. else
  1545. echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5
  1547. ac_cv_prog_cc_g=no
  1548. fi
  1549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1550. fi
  1551. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1552. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1553. if test "$ac_test_CFLAGS" = set; then
  1554. CFLAGS=$ac_save_CFLAGS
  1555. elif test $ac_cv_prog_cc_g = yes; then
  1556. if test "$GCC" = yes; then
  1557. CFLAGS="-g -O2"
  1558. else
  1559. CFLAGS="-g"
  1560. fi
  1561. else
  1562. if test "$GCC" = yes; then
  1563. CFLAGS="-O2"
  1564. else
  1565. CFLAGS=
  1566. fi
  1567. fi
  1568. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1569. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1570. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1571. echo $ECHO_N "(cached) $ECHO_C" >&6
  1572. else
  1573. ac_cv_prog_cc_stdc=no
  1574. ac_save_CC=$CC
  1575. cat >conftest.$ac_ext <<_ACEOF
  1576. /* confdefs.h. */
  1577. _ACEOF
  1578. cat confdefs.h >>conftest.$ac_ext
  1579. cat >>conftest.$ac_ext <<_ACEOF
  1580. /* end confdefs.h. */
  1581. #include <stdarg.h>
  1582. #include <stdio.h>
  1583. #include <sys/types.h>
  1584. #include <sys/stat.h>
  1585. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1586. struct buf { int x; };
  1587. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1588. static char *e (p, i)
  1589. char **p;
  1590. int i;
  1591. {
  1592. return p[i];
  1593. }
  1594. static char *f (char * (*g) (char **, int), char **p, ...)
  1595. {
  1596. char *s;
  1597. va_list v;
  1598. va_start (v,p);
  1599. s = g (p, va_arg (v,int));
  1600. va_end (v);
  1601. return s;
  1602. }
  1603. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1604. function prototypes and stuff, but not '\xHH' hex character constants.
  1605. These don't provoke an error unfortunately, instead are silently treated
  1606. as 'x'. The following induces an error, until -std1 is added to get
  1607. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1608. array size at least. It's necessary to write '\x00'==0 to get something
  1609. that's true only with -std1. */
  1610. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1611. int test (int i, double x);
  1612. struct s1 {int (*f) (int a);};
  1613. struct s2 {int (*f) (double a);};
  1614. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1615. int argc;
  1616. char **argv;
  1617. int
  1618. main ()
  1619. {
  1620. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. # Don't try gcc -ansi; that turns off useful extensions and
  1626. # breaks some systems' header files.
  1627. # AIX -qlanglvl=ansi
  1628. # Ultrix and OSF/1 -std1
  1629. # HP-UX 10.20 and later -Ae
  1630. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1631. # SVR4 -Xc -D__EXTENSIONS__
  1632. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1633. do
  1634. CC="$ac_save_CC $ac_arg"
  1635. rm -f conftest.$ac_objext
  1636. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1637. (eval $ac_compile) 2>conftest.er1
  1638. ac_status=$?
  1639. grep -v '^ *+' conftest.er1 >conftest.err
  1640. rm -f conftest.er1
  1641. cat conftest.err >&5
  1642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1643. (exit $ac_status); } &&
  1644. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1646. (eval $ac_try) 2>&5
  1647. ac_status=$?
  1648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1649. (exit $ac_status); }; } &&
  1650. { ac_try='test -s conftest.$ac_objext'
  1651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1652. (eval $ac_try) 2>&5
  1653. ac_status=$?
  1654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1655. (exit $ac_status); }; }; then
  1656. ac_cv_prog_cc_stdc=$ac_arg
  1657. break
  1658. else
  1659. echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. fi
  1662. rm -f conftest.err conftest.$ac_objext
  1663. done
  1664. rm -f conftest.$ac_ext conftest.$ac_objext
  1665. CC=$ac_save_CC
  1666. fi
  1667. case "x$ac_cv_prog_cc_stdc" in
  1668. x|xno)
  1669. echo "$as_me:$LINENO: result: none needed" >&5
  1670. echo "${ECHO_T}none needed" >&6 ;;
  1671. *)
  1672. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1673. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1674. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1675. esac
  1676. # Some people use a C++ compiler to compile C. Since we use `exit',
  1677. # in C++ we need to declare it. In case someone uses the same compiler
  1678. # for both compiling C and C++ we need to have the C++ compiler decide
  1679. # the declaration of exit, since it's the most demanding environment.
  1680. cat >conftest.$ac_ext <<_ACEOF
  1681. #ifndef __cplusplus
  1682. choke me
  1683. #endif
  1684. _ACEOF
  1685. rm -f conftest.$ac_objext
  1686. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1687. (eval $ac_compile) 2>conftest.er1
  1688. ac_status=$?
  1689. grep -v '^ *+' conftest.er1 >conftest.err
  1690. rm -f conftest.er1
  1691. cat conftest.err >&5
  1692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1693. (exit $ac_status); } &&
  1694. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1696. (eval $ac_try) 2>&5
  1697. ac_status=$?
  1698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1699. (exit $ac_status); }; } &&
  1700. { ac_try='test -s conftest.$ac_objext'
  1701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1702. (eval $ac_try) 2>&5
  1703. ac_status=$?
  1704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1705. (exit $ac_status); }; }; then
  1706. for ac_declaration in \
  1707. '' \
  1708. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1709. 'extern "C" void std::exit (int); using std::exit;' \
  1710. 'extern "C" void exit (int) throw ();' \
  1711. 'extern "C" void exit (int);' \
  1712. 'void exit (int);'
  1713. do
  1714. cat >conftest.$ac_ext <<_ACEOF
  1715. /* confdefs.h. */
  1716. _ACEOF
  1717. cat confdefs.h >>conftest.$ac_ext
  1718. cat >>conftest.$ac_ext <<_ACEOF
  1719. /* end confdefs.h. */
  1720. $ac_declaration
  1721. #include <stdlib.h>
  1722. int
  1723. main ()
  1724. {
  1725. exit (42);
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. rm -f conftest.$ac_objext
  1731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1732. (eval $ac_compile) 2>conftest.er1
  1733. ac_status=$?
  1734. grep -v '^ *+' conftest.er1 >conftest.err
  1735. rm -f conftest.er1
  1736. cat conftest.err >&5
  1737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1738. (exit $ac_status); } &&
  1739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1741. (eval $ac_try) 2>&5
  1742. ac_status=$?
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); }; } &&
  1745. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  1751. :
  1752. else
  1753. echo "$as_me: failed program was:" >&5
  1754. sed 's/^/| /' conftest.$ac_ext >&5
  1755. continue
  1756. fi
  1757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1758. cat >conftest.$ac_ext <<_ACEOF
  1759. /* confdefs.h. */
  1760. _ACEOF
  1761. cat confdefs.h >>conftest.$ac_ext
  1762. cat >>conftest.$ac_ext <<_ACEOF
  1763. /* end confdefs.h. */
  1764. $ac_declaration
  1765. int
  1766. main ()
  1767. {
  1768. exit (42);
  1769. ;
  1770. return 0;
  1771. }
  1772. _ACEOF
  1773. rm -f conftest.$ac_objext
  1774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1775. (eval $ac_compile) 2>conftest.er1
  1776. ac_status=$?
  1777. grep -v '^ *+' conftest.er1 >conftest.err
  1778. rm -f conftest.er1
  1779. cat conftest.err >&5
  1780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1781. (exit $ac_status); } &&
  1782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1784. (eval $ac_try) 2>&5
  1785. ac_status=$?
  1786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1787. (exit $ac_status); }; } &&
  1788. { ac_try='test -s conftest.$ac_objext'
  1789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1790. (eval $ac_try) 2>&5
  1791. ac_status=$?
  1792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1793. (exit $ac_status); }; }; then
  1794. break
  1795. else
  1796. echo "$as_me: failed program was:" >&5
  1797. sed 's/^/| /' conftest.$ac_ext >&5
  1798. fi
  1799. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1800. done
  1801. rm -f conftest*
  1802. if test -n "$ac_declaration"; then
  1803. echo '#ifdef __cplusplus' >>confdefs.h
  1804. echo $ac_declaration >>confdefs.h
  1805. echo '#endif' >>confdefs.h
  1806. fi
  1807. else
  1808. echo "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. fi
  1811. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1812. ac_ext=c
  1813. ac_cpp='$CPP $CPPFLAGS'
  1814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1817. if test "${cross_compiling-x}" = "x"
  1818. then
  1819. cat << 'EOF' >&2
  1820. configure: error:
  1821. This system does not appear to have a working C compiler.
  1822. A working C compiler is required to compile Eggdrop.
  1823. EOF
  1824. exit 1
  1825. fi
  1826. if test -n "$GCC"; then
  1827. CFLAGS="$CFLAGS -O3"
  1828. fi
  1829. # Crazy machines
  1830. ac_ext=c
  1831. ac_cpp='$CPP $CPPFLAGS'
  1832. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1833. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1834. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1835. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  1836. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  1837. # On Suns, sometimes $CPP names a directory.
  1838. if test -n "$CPP" && test -d "$CPP"; then
  1839. CPP=
  1840. fi
  1841. if test -z "$CPP"; then
  1842. if test "${ac_cv_prog_CPP+set}" = set; then
  1843. echo $ECHO_N "(cached) $ECHO_C" >&6
  1844. else
  1845. # Double quotes because CPP needs to be expanded
  1846. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  1847. do
  1848. ac_preproc_ok=false
  1849. for ac_c_preproc_warn_flag in '' yes
  1850. do
  1851. # Use a header file that comes with gcc, so configuring glibc
  1852. # with a fresh cross-compiler works.
  1853. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1854. # <limits.h> exists even on freestanding compilers.
  1855. # On the NeXT, cc -E runs the code through the compiler's parser,
  1856. # not just through cpp. "Syntax error" is here to catch this case.
  1857. cat >conftest.$ac_ext <<_ACEOF
  1858. /* confdefs.h. */
  1859. _ACEOF
  1860. cat confdefs.h >>conftest.$ac_ext
  1861. cat >>conftest.$ac_ext <<_ACEOF
  1862. /* end confdefs.h. */
  1863. #ifdef __STDC__
  1864. # include <limits.h>
  1865. #else
  1866. # include <assert.h>
  1867. #endif
  1868. Syntax error
  1869. _ACEOF
  1870. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1871. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1872. ac_status=$?
  1873. grep -v '^ *+' conftest.er1 >conftest.err
  1874. rm -f conftest.er1
  1875. cat conftest.err >&5
  1876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1877. (exit $ac_status); } >/dev/null; then
  1878. if test -s conftest.err; then
  1879. ac_cpp_err=$ac_c_preproc_warn_flag
  1880. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1881. else
  1882. ac_cpp_err=
  1883. fi
  1884. else
  1885. ac_cpp_err=yes
  1886. fi
  1887. if test -z "$ac_cpp_err"; then
  1888. :
  1889. else
  1890. echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. # Broken: fails on valid input.
  1893. continue
  1894. fi
  1895. rm -f conftest.err conftest.$ac_ext
  1896. # OK, works on sane cases. Now check whether non-existent headers
  1897. # can be detected and how.
  1898. cat >conftest.$ac_ext <<_ACEOF
  1899. /* confdefs.h. */
  1900. _ACEOF
  1901. cat confdefs.h >>conftest.$ac_ext
  1902. cat >>conftest.$ac_ext <<_ACEOF
  1903. /* end confdefs.h. */
  1904. #include <ac_nonexistent.h>
  1905. _ACEOF
  1906. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1907. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1908. ac_status=$?
  1909. grep -v '^ *+' conftest.er1 >conftest.err
  1910. rm -f conftest.er1
  1911. cat conftest.err >&5
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); } >/dev/null; then
  1914. if test -s conftest.err; then
  1915. ac_cpp_err=$ac_c_preproc_warn_flag
  1916. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1917. else
  1918. ac_cpp_err=
  1919. fi
  1920. else
  1921. ac_cpp_err=yes
  1922. fi
  1923. if test -z "$ac_cpp_err"; then
  1924. # Broken: success on invalid input.
  1925. continue
  1926. else
  1927. echo "$as_me: failed program was:" >&5
  1928. sed 's/^/| /' conftest.$ac_ext >&5
  1929. # Passes both tests.
  1930. ac_preproc_ok=:
  1931. break
  1932. fi
  1933. rm -f conftest.err conftest.$ac_ext
  1934. done
  1935. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1936. rm -f conftest.err conftest.$ac_ext
  1937. if $ac_preproc_ok; then
  1938. break
  1939. fi
  1940. done
  1941. ac_cv_prog_CPP=$CPP
  1942. fi
  1943. CPP=$ac_cv_prog_CPP
  1944. else
  1945. ac_cv_prog_CPP=$CPP
  1946. fi
  1947. echo "$as_me:$LINENO: result: $CPP" >&5
  1948. echo "${ECHO_T}$CPP" >&6
  1949. ac_preproc_ok=false
  1950. for ac_c_preproc_warn_flag in '' yes
  1951. do
  1952. # Use a header file that comes with gcc, so configuring glibc
  1953. # with a fresh cross-compiler works.
  1954. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1955. # <limits.h> exists even on freestanding compilers.
  1956. # On the NeXT, cc -E runs the code through the compiler's parser,
  1957. # not just through cpp. "Syntax error" is here to catch this case.
  1958. cat >conftest.$ac_ext <<_ACEOF
  1959. /* confdefs.h. */
  1960. _ACEOF
  1961. cat confdefs.h >>conftest.$ac_ext
  1962. cat >>conftest.$ac_ext <<_ACEOF
  1963. /* end confdefs.h. */
  1964. #ifdef __STDC__
  1965. # include <limits.h>
  1966. #else
  1967. # include <assert.h>
  1968. #endif
  1969. Syntax error
  1970. _ACEOF
  1971. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1972. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1973. ac_status=$?
  1974. grep -v '^ *+' conftest.er1 >conftest.err
  1975. rm -f conftest.er1
  1976. cat conftest.err >&5
  1977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1978. (exit $ac_status); } >/dev/null; then
  1979. if test -s conftest.err; then
  1980. ac_cpp_err=$ac_c_preproc_warn_flag
  1981. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  1982. else
  1983. ac_cpp_err=
  1984. fi
  1985. else
  1986. ac_cpp_err=yes
  1987. fi
  1988. if test -z "$ac_cpp_err"; then
  1989. :
  1990. else
  1991. echo "$as_me: failed program was:" >&5
  1992. sed 's/^/| /' conftest.$ac_ext >&5
  1993. # Broken: fails on valid input.
  1994. continue
  1995. fi
  1996. rm -f conftest.err conftest.$ac_ext
  1997. # OK, works on sane cases. Now check whether non-existent headers
  1998. # can be detected and how.
  1999. cat >conftest.$ac_ext <<_ACEOF
  2000. /* confdefs.h. */
  2001. _ACEOF
  2002. cat confdefs.h >>conftest.$ac_ext
  2003. cat >>conftest.$ac_ext <<_ACEOF
  2004. /* end confdefs.h. */
  2005. #include <ac_nonexistent.h>
  2006. _ACEOF
  2007. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2008. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2009. ac_status=$?
  2010. grep -v '^ *+' conftest.er1 >conftest.err
  2011. rm -f conftest.er1
  2012. cat conftest.err >&5
  2013. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2014. (exit $ac_status); } >/dev/null; then
  2015. if test -s conftest.err; then
  2016. ac_cpp_err=$ac_c_preproc_warn_flag
  2017. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2018. else
  2019. ac_cpp_err=
  2020. fi
  2021. else
  2022. ac_cpp_err=yes
  2023. fi
  2024. if test -z "$ac_cpp_err"; then
  2025. # Broken: success on invalid input.
  2026. continue
  2027. else
  2028. echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. # Passes both tests.
  2031. ac_preproc_ok=:
  2032. break
  2033. fi
  2034. rm -f conftest.err conftest.$ac_ext
  2035. done
  2036. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2037. rm -f conftest.err conftest.$ac_ext
  2038. if $ac_preproc_ok; then
  2039. :
  2040. else
  2041. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2042. See \`config.log' for more details." >&5
  2043. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2044. See \`config.log' for more details." >&2;}
  2045. { (exit 1); exit 1; }; }
  2046. fi
  2047. ac_ext=c
  2048. ac_cpp='$CPP $CPPFLAGS'
  2049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2052. echo "$as_me:$LINENO: checking for egrep" >&5
  2053. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2054. if test "${ac_cv_prog_egrep+set}" = set; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2058. then ac_cv_prog_egrep='grep -E'
  2059. else ac_cv_prog_egrep='egrep'
  2060. fi
  2061. fi
  2062. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2063. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2064. EGREP=$ac_cv_prog_egrep
  2065. echo "$as_me:$LINENO: checking for AIX" >&5
  2066. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #ifdef _AIX
  2074. yes
  2075. #endif
  2076. _ACEOF
  2077. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2078. $EGREP "yes" >/dev/null 2>&1; then
  2079. echo "$as_me:$LINENO: result: yes" >&5
  2080. echo "${ECHO_T}yes" >&6
  2081. cat >>confdefs.h <<\_ACEOF
  2082. #define _ALL_SOURCE 1
  2083. _ACEOF
  2084. else
  2085. echo "$as_me:$LINENO: result: no" >&5
  2086. echo "${ECHO_T}no" >&6
  2087. fi
  2088. rm -f conftest*
  2089. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2090. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2091. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2092. echo $ECHO_N "(cached) $ECHO_C" >&6
  2093. else
  2094. ac_check_lib_save_LIBS=$LIBS
  2095. LIBS="-lcposix $LIBS"
  2096. cat >conftest.$ac_ext <<_ACEOF
  2097. /* confdefs.h. */
  2098. _ACEOF
  2099. cat confdefs.h >>conftest.$ac_ext
  2100. cat >>conftest.$ac_ext <<_ACEOF
  2101. /* end confdefs.h. */
  2102. /* Override any gcc2 internal prototype to avoid an error. */
  2103. #ifdef __cplusplus
  2104. extern "C"
  2105. #endif
  2106. /* We use char because int might match the return type of a gcc2
  2107. builtin and then its argument prototype would still apply. */
  2108. char strerror ();
  2109. int
  2110. main ()
  2111. {
  2112. strerror ();
  2113. ;
  2114. return 0;
  2115. }
  2116. _ACEOF
  2117. rm -f conftest.$ac_objext conftest$ac_exeext
  2118. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2119. (eval $ac_link) 2>conftest.er1
  2120. ac_status=$?
  2121. grep -v '^ *+' conftest.er1 >conftest.err
  2122. rm -f conftest.er1
  2123. cat conftest.err >&5
  2124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2125. (exit $ac_status); } &&
  2126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2128. (eval $ac_try) 2>&5
  2129. ac_status=$?
  2130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2131. (exit $ac_status); }; } &&
  2132. { ac_try='test -s conftest$ac_exeext'
  2133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2134. (eval $ac_try) 2>&5
  2135. ac_status=$?
  2136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. (exit $ac_status); }; }; then
  2138. ac_cv_lib_cposix_strerror=yes
  2139. else
  2140. echo "$as_me: failed program was:" >&5
  2141. sed 's/^/| /' conftest.$ac_ext >&5
  2142. ac_cv_lib_cposix_strerror=no
  2143. fi
  2144. rm -f conftest.err conftest.$ac_objext \
  2145. conftest$ac_exeext conftest.$ac_ext
  2146. LIBS=$ac_check_lib_save_LIBS
  2147. fi
  2148. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2149. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2150. if test $ac_cv_lib_cposix_strerror = yes; then
  2151. LIBS="$LIBS -lcposix"
  2152. fi
  2153. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2154. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2155. if test "${ac_cv_header_stdc+set}" = set; then
  2156. echo $ECHO_N "(cached) $ECHO_C" >&6
  2157. else
  2158. cat >conftest.$ac_ext <<_ACEOF
  2159. /* confdefs.h. */
  2160. _ACEOF
  2161. cat confdefs.h >>conftest.$ac_ext
  2162. cat >>conftest.$ac_ext <<_ACEOF
  2163. /* end confdefs.h. */
  2164. #include <stdlib.h>
  2165. #include <stdarg.h>
  2166. #include <string.h>
  2167. #include <float.h>
  2168. int
  2169. main ()
  2170. {
  2171. ;
  2172. return 0;
  2173. }
  2174. _ACEOF
  2175. rm -f conftest.$ac_objext
  2176. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2177. (eval $ac_compile) 2>conftest.er1
  2178. ac_status=$?
  2179. grep -v '^ *+' conftest.er1 >conftest.err
  2180. rm -f conftest.er1
  2181. cat conftest.err >&5
  2182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2183. (exit $ac_status); } &&
  2184. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2185. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2186. (eval $ac_try) 2>&5
  2187. ac_status=$?
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); }; } &&
  2190. { ac_try='test -s conftest.$ac_objext'
  2191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2192. (eval $ac_try) 2>&5
  2193. ac_status=$?
  2194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2195. (exit $ac_status); }; }; then
  2196. ac_cv_header_stdc=yes
  2197. else
  2198. echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200. ac_cv_header_stdc=no
  2201. fi
  2202. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2203. if test $ac_cv_header_stdc = yes; then
  2204. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <string.h>
  2212. _ACEOF
  2213. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2214. $EGREP "memchr" >/dev/null 2>&1; then
  2215. :
  2216. else
  2217. ac_cv_header_stdc=no
  2218. fi
  2219. rm -f conftest*
  2220. fi
  2221. if test $ac_cv_header_stdc = yes; then
  2222. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2223. cat >conftest.$ac_ext <<_ACEOF
  2224. /* confdefs.h. */
  2225. _ACEOF
  2226. cat confdefs.h >>conftest.$ac_ext
  2227. cat >>conftest.$ac_ext <<_ACEOF
  2228. /* end confdefs.h. */
  2229. #include <stdlib.h>
  2230. _ACEOF
  2231. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2232. $EGREP "free" >/dev/null 2>&1; then
  2233. :
  2234. else
  2235. ac_cv_header_stdc=no
  2236. fi
  2237. rm -f conftest*
  2238. fi
  2239. if test $ac_cv_header_stdc = yes; then
  2240. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2241. if test "$cross_compiling" = yes; then
  2242. :
  2243. else
  2244. cat >conftest.$ac_ext <<_ACEOF
  2245. /* confdefs.h. */
  2246. _ACEOF
  2247. cat confdefs.h >>conftest.$ac_ext
  2248. cat >>conftest.$ac_ext <<_ACEOF
  2249. /* end confdefs.h. */
  2250. #include <ctype.h>
  2251. #if ((' ' & 0x0FF) == 0x020)
  2252. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2253. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2254. #else
  2255. # define ISLOWER(c) \
  2256. (('a' <= (c) && (c) <= 'i') \
  2257. || ('j' <= (c) && (c) <= 'r') \
  2258. || ('s' <= (c) && (c) <= 'z'))
  2259. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2260. #endif
  2261. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2262. int
  2263. main ()
  2264. {
  2265. int i;
  2266. for (i = 0; i < 256; i++)
  2267. if (XOR (islower (i), ISLOWER (i))
  2268. || toupper (i) != TOUPPER (i))
  2269. exit(2);
  2270. exit (0);
  2271. }
  2272. _ACEOF
  2273. rm -f conftest$ac_exeext
  2274. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2275. (eval $ac_link) 2>&5
  2276. ac_status=$?
  2277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2278. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2280. (eval $ac_try) 2>&5
  2281. ac_status=$?
  2282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2283. (exit $ac_status); }; }; then
  2284. :
  2285. else
  2286. echo "$as_me: program exited with status $ac_status" >&5
  2287. echo "$as_me: failed program was:" >&5
  2288. sed 's/^/| /' conftest.$ac_ext >&5
  2289. ( exit $ac_status )
  2290. ac_cv_header_stdc=no
  2291. fi
  2292. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2293. fi
  2294. fi
  2295. fi
  2296. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2297. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2298. if test $ac_cv_header_stdc = yes; then
  2299. cat >>confdefs.h <<\_ACEOF
  2300. #define STDC_HEADERS 1
  2301. _ACEOF
  2302. fi
  2303. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2304. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2305. inttypes.h stdint.h unistd.h
  2306. do
  2307. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2308. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2310. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2311. echo $ECHO_N "(cached) $ECHO_C" >&6
  2312. else
  2313. cat >conftest.$ac_ext <<_ACEOF
  2314. /* confdefs.h. */
  2315. _ACEOF
  2316. cat confdefs.h >>conftest.$ac_ext
  2317. cat >>conftest.$ac_ext <<_ACEOF
  2318. /* end confdefs.h. */
  2319. $ac_includes_default
  2320. #include <$ac_header>
  2321. _ACEOF
  2322. rm -f conftest.$ac_objext
  2323. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2324. (eval $ac_compile) 2>conftest.er1
  2325. ac_status=$?
  2326. grep -v '^ *+' conftest.er1 >conftest.err
  2327. rm -f conftest.er1
  2328. cat conftest.err >&5
  2329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2330. (exit $ac_status); } &&
  2331. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2333. (eval $ac_try) 2>&5
  2334. ac_status=$?
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); }; } &&
  2337. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  2343. eval "$as_ac_Header=yes"
  2344. else
  2345. echo "$as_me: failed program was:" >&5
  2346. sed 's/^/| /' conftest.$ac_ext >&5
  2347. eval "$as_ac_Header=no"
  2348. fi
  2349. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2350. fi
  2351. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2352. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2353. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2354. cat >>confdefs.h <<_ACEOF
  2355. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2356. _ACEOF
  2357. fi
  2358. done
  2359. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2360. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2361. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2362. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2363. echo $ECHO_N "(cached) $ECHO_C" >&6
  2364. fi
  2365. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2366. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2367. else
  2368. # Is the header compilable?
  2369. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2370. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2371. cat >conftest.$ac_ext <<_ACEOF
  2372. /* confdefs.h. */
  2373. _ACEOF
  2374. cat confdefs.h >>conftest.$ac_ext
  2375. cat >>conftest.$ac_ext <<_ACEOF
  2376. /* end confdefs.h. */
  2377. $ac_includes_default
  2378. #include <minix/config.h>
  2379. _ACEOF
  2380. rm -f conftest.$ac_objext
  2381. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2382. (eval $ac_compile) 2>conftest.er1
  2383. ac_status=$?
  2384. grep -v '^ *+' conftest.er1 >conftest.err
  2385. rm -f conftest.er1
  2386. cat conftest.err >&5
  2387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2388. (exit $ac_status); } &&
  2389. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2391. (eval $ac_try) 2>&5
  2392. ac_status=$?
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); }; } &&
  2395. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  2401. ac_header_compiler=yes
  2402. else
  2403. echo "$as_me: failed program was:" >&5
  2404. sed 's/^/| /' conftest.$ac_ext >&5
  2405. ac_header_compiler=no
  2406. fi
  2407. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2408. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2409. echo "${ECHO_T}$ac_header_compiler" >&6
  2410. # Is the header present?
  2411. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2412. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2413. cat >conftest.$ac_ext <<_ACEOF
  2414. /* confdefs.h. */
  2415. _ACEOF
  2416. cat confdefs.h >>conftest.$ac_ext
  2417. cat >>conftest.$ac_ext <<_ACEOF
  2418. /* end confdefs.h. */
  2419. #include <minix/config.h>
  2420. _ACEOF
  2421. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2422. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2423. ac_status=$?
  2424. grep -v '^ *+' conftest.er1 >conftest.err
  2425. rm -f conftest.er1
  2426. cat conftest.err >&5
  2427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2428. (exit $ac_status); } >/dev/null; then
  2429. if test -s conftest.err; then
  2430. ac_cpp_err=$ac_c_preproc_warn_flag
  2431. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2432. else
  2433. ac_cpp_err=
  2434. fi
  2435. else
  2436. ac_cpp_err=yes
  2437. fi
  2438. if test -z "$ac_cpp_err"; then
  2439. ac_header_preproc=yes
  2440. else
  2441. echo "$as_me: failed program was:" >&5
  2442. sed 's/^/| /' conftest.$ac_ext >&5
  2443. ac_header_preproc=no
  2444. fi
  2445. rm -f conftest.err conftest.$ac_ext
  2446. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2447. echo "${ECHO_T}$ac_header_preproc" >&6
  2448. # So? What about this header?
  2449. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2450. yes:no: )
  2451. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2452. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2453. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2454. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2455. ac_header_preproc=yes
  2456. ;;
  2457. no:yes:* )
  2458. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2459. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2460. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2461. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2462. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2463. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2464. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2465. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2466. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2467. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2468. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2469. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2470. (
  2471. cat <<\_ASBOX
  2472. ## ------------------------------------------ ##
  2473. ## Report this to the AC_PACKAGE_NAME lists. ##
  2474. ## ------------------------------------------ ##
  2475. _ASBOX
  2476. ) |
  2477. sed "s/^/$as_me: WARNING: /" >&2
  2478. ;;
  2479. esac
  2480. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2481. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2482. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2483. echo $ECHO_N "(cached) $ECHO_C" >&6
  2484. else
  2485. ac_cv_header_minix_config_h=$ac_header_preproc
  2486. fi
  2487. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2488. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2489. fi
  2490. if test $ac_cv_header_minix_config_h = yes; then
  2491. MINIX=yes
  2492. else
  2493. MINIX=
  2494. fi
  2495. if test "$MINIX" = yes; then
  2496. cat >>confdefs.h <<\_ACEOF
  2497. #define _POSIX_SOURCE 1
  2498. _ACEOF
  2499. cat >>confdefs.h <<\_ACEOF
  2500. #define _POSIX_1_SOURCE 2
  2501. _ACEOF
  2502. cat >>confdefs.h <<\_ACEOF
  2503. #define _MINIX 1
  2504. _ACEOF
  2505. fi
  2506. #checkpoint
  2507. cat >confcache <<\_ACEOF
  2508. # This file is a shell script that caches the results of configure
  2509. # tests run on this system so they can be shared between configure
  2510. # scripts and configure runs, see configure's option --config-cache.
  2511. # It is not useful on other systems. If it contains results you don't
  2512. # want to keep, you may remove or edit it.
  2513. #
  2514. # config.status only pays attention to the cache file if you give it
  2515. # the --recheck option to rerun configure.
  2516. #
  2517. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2518. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2519. # following values.
  2520. _ACEOF
  2521. # The following way of writing the cache mishandles newlines in values,
  2522. # but we know of no workaround that is simple, portable, and efficient.
  2523. # So, don't put newlines in cache variables' values.
  2524. # Ultrix sh set writes to stderr and can't be redirected directly,
  2525. # and sets the high bit in the cache file unless we assign to the vars.
  2526. {
  2527. (set) 2>&1 |
  2528. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2529. *ac_space=\ *)
  2530. # `set' does not quote correctly, so add quotes (double-quote
  2531. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2532. sed -n \
  2533. "s/'/'\\\\''/g;
  2534. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2535. ;;
  2536. *)
  2537. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2538. sed -n \
  2539. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2540. ;;
  2541. esac;
  2542. } |
  2543. sed '
  2544. t clear
  2545. : clear
  2546. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2547. t end
  2548. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2549. : end' >>confcache
  2550. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2551. if test -w $cache_file; then
  2552. test "x$cache_file" != "x/dev/null"
  2553. cat confcache >$cache_file
  2554. else
  2555. echo "not updating unwritable cache $cache_file"
  2556. fi
  2557. fi
  2558. rm -f confcache
  2559. # Speedup compile
  2560. if test -n "$GCC" && test -z "$no_wall"; then
  2561. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2562. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2563. if test "${egg_cv_var_ccwall+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. else
  2566. ac_old_CFLAGS="$CFLAGS"
  2567. CFLAGS="$CFLAGS -Wall"
  2568. cat >conftest.$ac_ext <<_ACEOF
  2569. int main ()
  2570. {
  2571. return(0);
  2572. }
  2573. _ACEOF
  2574. rm -f conftest.$ac_objext
  2575. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2576. (eval $ac_compile) 2>conftest.er1
  2577. ac_status=$?
  2578. grep -v '^ *+' conftest.er1 >conftest.err
  2579. rm -f conftest.er1
  2580. cat conftest.err >&5
  2581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2582. (exit $ac_status); } &&
  2583. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2584. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2585. (eval $ac_try) 2>&5
  2586. ac_status=$?
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); }; } &&
  2589. { ac_try='test -s conftest.$ac_objext'
  2590. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2591. (eval $ac_try) 2>&5
  2592. ac_status=$?
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); }; }; then
  2595. egg_cv_var_ccwall="yes"
  2596. else
  2597. echo "$as_me: failed program was:" >&5
  2598. sed 's/^/| /' conftest.$ac_ext >&5
  2599. egg_cv_var_ccwall="no"
  2600. fi
  2601. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2602. CFLAGS="$ac_old_CFLAGS"
  2603. fi
  2604. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2605. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2606. if test "$egg_cv_var_ccwall" = "yes"; then
  2607. CFLAGS="$CFLAGS -Wall"
  2608. fi
  2609. fi
  2610. if test -n "$GCC" && test -z "$no_pipe"; then
  2611. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2612. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2613. if test "${egg_cv_var_ccpipe+set}" = set; then
  2614. echo $ECHO_N "(cached) $ECHO_C" >&6
  2615. else
  2616. ac_old_CC="$CC"
  2617. CC="$CC -pipe"
  2618. cat >conftest.$ac_ext <<_ACEOF
  2619. int main ()
  2620. {
  2621. return(0);
  2622. }
  2623. _ACEOF
  2624. rm -f conftest.$ac_objext
  2625. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2626. (eval $ac_compile) 2>conftest.er1
  2627. ac_status=$?
  2628. grep -v '^ *+' conftest.er1 >conftest.err
  2629. rm -f conftest.er1
  2630. cat conftest.err >&5
  2631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2632. (exit $ac_status); } &&
  2633. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2634. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2635. (eval $ac_try) 2>&5
  2636. ac_status=$?
  2637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2638. (exit $ac_status); }; } &&
  2639. { ac_try='test -s conftest.$ac_objext'
  2640. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2641. (eval $ac_try) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); }; }; then
  2645. egg_cv_var_ccpipe="yes"
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. egg_cv_var_ccpipe="no"
  2650. fi
  2651. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2652. CC="$ac_old_CC"
  2653. fi
  2654. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2655. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2656. if test "$egg_cv_var_ccpipe" = "yes"; then
  2657. CC="$CC -pipe"
  2658. fi
  2659. fi
  2660. CCDEPMODE=gcc
  2661. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2662. if test $num = "3"; then
  2663. CCDEPMODE=gcc3
  2664. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2665. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2666. fi
  2667. # Create static binaries
  2668. if test -z "$no_static"
  2669. then
  2670. if test -n "$GCC"
  2671. then
  2672. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2673. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2674. if test "${egg_cv_var_ccstatic+set}" = set; then
  2675. echo $ECHO_N "(cached) $ECHO_C" >&6
  2676. else
  2677. ac_old_CC="$CC"
  2678. CC="$CC -static"
  2679. cat >conftest.$ac_ext <<_ACEOF
  2680. /* confdefs.h. */
  2681. _ACEOF
  2682. cat confdefs.h >>conftest.$ac_ext
  2683. cat >>conftest.$ac_ext <<_ACEOF
  2684. /* end confdefs.h. */
  2685. int
  2686. main ()
  2687. {
  2688. ;
  2689. return 0;
  2690. }
  2691. _ACEOF
  2692. rm -f conftest.$ac_objext
  2693. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2694. (eval $ac_compile) 2>conftest.er1
  2695. ac_status=$?
  2696. grep -v '^ *+' conftest.er1 >conftest.err
  2697. rm -f conftest.er1
  2698. cat conftest.err >&5
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); } &&
  2701. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2703. (eval $ac_try) 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; } &&
  2707. { ac_try='test -s conftest.$ac_objext'
  2708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2709. (eval $ac_try) 2>&5
  2710. ac_status=$?
  2711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2712. (exit $ac_status); }; }; then
  2713. egg_cv_var_ccstatic="yes"
  2714. else
  2715. echo "$as_me: failed program was:" >&5
  2716. sed 's/^/| /' conftest.$ac_ext >&5
  2717. egg_cv_var_ccstatic="no"
  2718. fi
  2719. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. CC="$ac_old_CC"
  2721. fi
  2722. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2723. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2724. if test "$egg_cv_var_ccstatic" = "yes"
  2725. then
  2726. CCDEBUG="$CC"
  2727. CC="$CC -static"
  2728. else
  2729. cat << 'EOF' >&2
  2730. configure: error:
  2731. Your C compiler does not support -static.
  2732. This compile flag is required for the botpack.
  2733. EOF
  2734. exit 1
  2735. fi
  2736. fi
  2737. fi
  2738. # Checks for programs
  2739. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2740. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2741. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2742. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. cat >conftest.make <<\_ACEOF
  2746. all:
  2747. @echo 'ac_maketemp="$(MAKE)"'
  2748. _ACEOF
  2749. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2750. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2751. if test -n "$ac_maketemp"; then
  2752. eval ac_cv_prog_make_${ac_make}_set=yes
  2753. else
  2754. eval ac_cv_prog_make_${ac_make}_set=no
  2755. fi
  2756. rm -f conftest.make
  2757. fi
  2758. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2759. echo "$as_me:$LINENO: result: yes" >&5
  2760. echo "${ECHO_T}yes" >&6
  2761. SET_MAKE=
  2762. else
  2763. echo "$as_me:$LINENO: result: no" >&5
  2764. echo "${ECHO_T}no" >&6
  2765. SET_MAKE="MAKE=${MAKE-make}"
  2766. fi
  2767. cat << 'EOF' > conftest.head
  2768. a
  2769. b
  2770. c
  2771. EOF
  2772. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2773. do
  2774. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2775. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2776. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2777. echo $ECHO_N "(cached) $ECHO_C" >&6
  2778. else
  2779. if test -n "$HEAD_1"
  2780. then
  2781. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2782. else
  2783. if test "`cat conftest.head | $ac_prog`" = "a";
  2784. then
  2785. echo "$as_me:$LINENO: result: yes" >&5
  2786. echo "${ECHO_T}yes" >&6
  2787. ac_cv_prog_HEAD_1=$ac_prog
  2788. else
  2789. echo "$as_me:$LINENO: result: no" >&5
  2790. echo "${ECHO_T}no" >&6
  2791. fi
  2792. fi
  2793. fi
  2794. test -n "$ac_cv_prog_HEAD_1" && break
  2795. done
  2796. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2797. then
  2798. cat << 'EOF' >&2
  2799. configure: error:
  2800. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2801. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2802. EOF
  2803. exit 1
  2804. fi
  2805. rm -f conftest.head
  2806. HEAD_1=$ac_cv_prog_HEAD_1
  2807. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2808. for ac_prog in gawk mawk nawk awk
  2809. do
  2810. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2811. set dummy $ac_prog; ac_word=$2
  2812. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2813. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2814. if test "${ac_cv_prog_AWK+set}" = set; then
  2815. echo $ECHO_N "(cached) $ECHO_C" >&6
  2816. else
  2817. if test -n "$AWK"; then
  2818. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2819. else
  2820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2821. for as_dir in $PATH
  2822. do
  2823. IFS=$as_save_IFS
  2824. test -z "$as_dir" && as_dir=.
  2825. for ac_exec_ext in '' $ac_executable_extensions; do
  2826. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2827. ac_cv_prog_AWK="$ac_prog"
  2828. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2829. break 2
  2830. fi
  2831. done
  2832. done
  2833. fi
  2834. fi
  2835. AWK=$ac_cv_prog_AWK
  2836. if test -n "$AWK"; then
  2837. echo "$as_me:$LINENO: result: $AWK" >&5
  2838. echo "${ECHO_T}$AWK" >&6
  2839. else
  2840. echo "$as_me:$LINENO: result: no" >&5
  2841. echo "${ECHO_T}no" >&6
  2842. fi
  2843. test -n "$AWK" && break
  2844. done
  2845. if test "${AWK-x}" = "x"
  2846. then
  2847. cat << 'EOF' >&2
  2848. configure: error:
  2849. This system seems to lack a working 'awk' command.
  2850. A working 'awk' command is required to compile Eggdrop.
  2851. EOF
  2852. exit 1
  2853. fi
  2854. # basename is needed for Tcl library and header checks
  2855. # Extract the first word of "basename", so it can be a program name with args.
  2856. set dummy basename; ac_word=$2
  2857. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2858. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2859. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. if test -n "$BASENAME"; then
  2863. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2864. else
  2865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2866. for as_dir in $PATH
  2867. do
  2868. IFS=$as_save_IFS
  2869. test -z "$as_dir" && as_dir=.
  2870. for ac_exec_ext in '' $ac_executable_extensions; do
  2871. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2872. ac_cv_prog_BASENAME="basename"
  2873. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. fi
  2879. fi
  2880. BASENAME=$ac_cv_prog_BASENAME
  2881. if test -n "$BASENAME"; then
  2882. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2883. echo "${ECHO_T}$BASENAME" >&6
  2884. else
  2885. echo "$as_me:$LINENO: result: no" >&5
  2886. echo "${ECHO_T}no" >&6
  2887. fi
  2888. if test "${BASENAME-x}" = "x"
  2889. then
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. This system seems to lack a working 'basename' command.
  2893. A working 'basename' command is required to compile Eggdrop.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. # Extract the first word of "objcopy", so it can be a program name with args.
  2898. set dummy objcopy; ac_word=$2
  2899. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2900. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2901. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2902. echo $ECHO_N "(cached) $ECHO_C" >&6
  2903. else
  2904. if test -n "$OBJCOPY"; then
  2905. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2914. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2915. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2921. fi
  2922. fi
  2923. OBJCOPY=$ac_cv_prog_OBJCOPY
  2924. if test -n "$OBJCOPY"; then
  2925. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2926. echo "${ECHO_T}$OBJCOPY" >&6
  2927. else
  2928. echo "$as_me:$LINENO: result: no" >&5
  2929. echo "${ECHO_T}no" >&6
  2930. fi
  2931. # Extract the first word of "strip", so it can be a program name with args.
  2932. set dummy strip; ac_word=$2
  2933. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2934. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2935. if test "${ac_cv_prog_STRIP+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. if test -n "$STRIP"; then
  2939. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2948. ac_cv_prog_STRIP="strip"
  2949. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2955. fi
  2956. fi
  2957. STRIP=$ac_cv_prog_STRIP
  2958. if test -n "$STRIP"; then
  2959. echo "$as_me:$LINENO: result: $STRIP" >&5
  2960. echo "${ECHO_T}$STRIP" >&6
  2961. else
  2962. echo "$as_me:$LINENO: result: no" >&5
  2963. echo "${ECHO_T}no" >&6
  2964. fi
  2965. # Extract the first word of "uname", so it can be a program name with args.
  2966. set dummy uname; ac_word=$2
  2967. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2969. if test "${ac_cv_prog_UNAME+set}" = set; then
  2970. echo $ECHO_N "(cached) $ECHO_C" >&6
  2971. else
  2972. if test -n "$UNAME"; then
  2973. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2974. else
  2975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2976. for as_dir in $PATH
  2977. do
  2978. IFS=$as_save_IFS
  2979. test -z "$as_dir" && as_dir=.
  2980. for ac_exec_ext in '' $ac_executable_extensions; do
  2981. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2982. ac_cv_prog_UNAME="uname"
  2983. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2984. break 2
  2985. fi
  2986. done
  2987. done
  2988. fi
  2989. fi
  2990. UNAME=$ac_cv_prog_UNAME
  2991. if test -n "$UNAME"; then
  2992. echo "$as_me:$LINENO: result: $UNAME" >&5
  2993. echo "${ECHO_T}$UNAME" >&6
  2994. else
  2995. echo "$as_me:$LINENO: result: no" >&5
  2996. echo "${ECHO_T}no" >&6
  2997. fi
  2998. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2999. # Extract the first word of "distcc", so it can be a program name with args.
  3000. set dummy distcc; ac_word=$2
  3001. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3002. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3003. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3004. echo $ECHO_N "(cached) $ECHO_C" >&6
  3005. else
  3006. if test -n "$DISTCC"; then
  3007. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3008. else
  3009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3010. for as_dir in $PATH
  3011. do
  3012. IFS=$as_save_IFS
  3013. test -z "$as_dir" && as_dir=.
  3014. for ac_exec_ext in '' $ac_executable_extensions; do
  3015. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3016. ac_cv_prog_DISTCC="distcc"
  3017. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3018. break 2
  3019. fi
  3020. done
  3021. done
  3022. fi
  3023. fi
  3024. DISTCC=$ac_cv_prog_DISTCC
  3025. if test -n "$DISTCC"; then
  3026. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3027. echo "${ECHO_T}$DISTCC" >&6
  3028. else
  3029. echo "$as_me:$LINENO: result: no" >&5
  3030. echo "${ECHO_T}no" >&6
  3031. fi
  3032. # Test the os and set the module linking settings
  3033. EGG_CYGWIN=no
  3034. echo "$as_me:$LINENO: checking system type" >&5
  3035. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3036. if test "${egg_cv_var_system_type+set}" = set; then
  3037. echo $ECHO_N "(cached) $ECHO_C" >&6
  3038. else
  3039. egg_cv_var_system_type=`$UNAME -s`
  3040. fi
  3041. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3042. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3043. echo "$as_me:$LINENO: checking system release" >&5
  3044. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3045. if test "${egg_cv_var_system_release+set}" = set; then
  3046. echo $ECHO_N "(cached) $ECHO_C" >&6
  3047. else
  3048. egg_cv_var_system_release=`$UNAME -r`
  3049. fi
  3050. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3051. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3052. case "$egg_cv_var_system_type" in
  3053. BSD/OS)
  3054. ;;
  3055. CYGWI*)
  3056. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3057. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3058. WIN32FLAGS=
  3059. cat >conftest.$ac_ext <<_ACEOF
  3060. /* confdefs.h. */
  3061. _ACEOF
  3062. cat confdefs.h >>conftest.$ac_ext
  3063. cat >>conftest.$ac_ext <<_ACEOF
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. #ifndef WIN32
  3069. # ifndef _WIN32
  3070. # error WIN32 or _WIN32 not defined
  3071. # endif
  3072. #endif
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. rm -f conftest.$ac_objext
  3078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3079. (eval $ac_compile) 2>conftest.er1
  3080. ac_status=$?
  3081. grep -v '^ *+' conftest.er1 >conftest.err
  3082. rm -f conftest.er1
  3083. cat conftest.err >&5
  3084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3085. (exit $ac_status); } &&
  3086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3088. (eval $ac_try) 2>&5
  3089. ac_status=$?
  3090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3091. (exit $ac_status); }; } &&
  3092. { ac_try='test -s conftest.$ac_objext'
  3093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3094. (eval $ac_try) 2>&5
  3095. ac_status=$?
  3096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3097. (exit $ac_status); }; }; then
  3098. echo "$as_me:$LINENO: result: present by default" >&5
  3099. echo "${ECHO_T}present by default" >&6
  3100. else
  3101. echo "$as_me: failed program was:" >&5
  3102. sed 's/^/| /' conftest.$ac_ext >&5
  3103. ac_compile_save="$ac_compile"
  3104. save_CC="$CC"
  3105. ac_compile="$ac_compile -mwin32"
  3106. CC="$CC -mwin32"
  3107. cat >conftest.$ac_ext <<_ACEOF
  3108. /* confdefs.h. */
  3109. _ACEOF
  3110. cat confdefs.h >>conftest.$ac_ext
  3111. cat >>conftest.$ac_ext <<_ACEOF
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. #ifndef WIN32
  3117. # ifndef _WIN32
  3118. # error WIN32 or _WIN32 not defined
  3119. # endif
  3120. #endif
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. rm -f conftest.$ac_objext
  3126. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3127. (eval $ac_compile) 2>conftest.er1
  3128. ac_status=$?
  3129. grep -v '^ *+' conftest.er1 >conftest.err
  3130. rm -f conftest.er1
  3131. cat conftest.err >&5
  3132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3133. (exit $ac_status); } &&
  3134. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3136. (eval $ac_try) 2>&5
  3137. ac_status=$?
  3138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3139. (exit $ac_status); }; } &&
  3140. { ac_try='test -s conftest.$ac_objext'
  3141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3142. (eval $ac_try) 2>&5
  3143. ac_status=$?
  3144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3145. (exit $ac_status); }; }; then
  3146. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3147. echo "${ECHO_T}found via -mwin32" >&6
  3148. ac_compile="$ac_compile_save"
  3149. CC="$save_CC"
  3150. WIN32FLAGS="-mwin32"
  3151. else
  3152. echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154. ac_compile="$ac_compile_save"
  3155. CC="$save_CC"
  3156. echo "$as_me:$LINENO: result: not found" >&5
  3157. echo "${ECHO_T}not found" >&6
  3158. fi
  3159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3160. fi
  3161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3162. CC="$CC $WIN32FLAGS"
  3163. EGG_CYGWIN="yes"
  3164. if test $EGG_CYGWIN = "yes"; then
  3165. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3166. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3167. if test -r /usr/lib/binmode.o; then
  3168. echo "$as_me:$LINENO: result: yes" >&5
  3169. echo "${ECHO_T}yes" >&6
  3170. LIBS="$LIBS /usr/lib/binmode.o"
  3171. else
  3172. echo "$as_me:$LINENO: result: no" >&5
  3173. echo "${ECHO_T}no" >&6
  3174. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3175. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3176. fi
  3177. fi
  3178. cat >>confdefs.h <<\_ACEOF
  3179. #define CYGWIN_HACKS 1
  3180. _ACEOF
  3181. cat >>confdefs.h <<\_ACEOF
  3182. #define WIN32_LEAN_AND_MEAN 1
  3183. _ACEOF
  3184. ;;
  3185. IRIX)
  3186. ;;
  3187. Ultrix)
  3188. SHELL=/bin/sh5
  3189. ;;
  3190. SINIX*)
  3191. ;;
  3192. BeOS)
  3193. ;;
  3194. Linux)
  3195. ;;
  3196. Lynx)
  3197. ;;
  3198. QNX)
  3199. ;;
  3200. OSF1)
  3201. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3202. V*)
  3203. if test "$AWK" = "gawk"
  3204. then
  3205. AWK=awk
  3206. fi
  3207. ;;
  3208. 1.0|1.1|1.2)
  3209. cat >>confdefs.h <<\_ACEOF
  3210. #define OSF1_HACKS 1
  3211. _ACEOF
  3212. ;;
  3213. 1.*)
  3214. cat >>confdefs.h <<\_ACEOF
  3215. #define OSF1_HACKS 1
  3216. _ACEOF
  3217. ;;
  3218. *)
  3219. ;;
  3220. esac
  3221. cat >>confdefs.h <<\_ACEOF
  3222. #define STOP_UAC 1
  3223. _ACEOF
  3224. cat >>confdefs.h <<\_ACEOF
  3225. #define BROKEN_SNPRINTF 1
  3226. _ACEOF
  3227. ;;
  3228. SunOS)
  3229. ;;
  3230. *BSD)
  3231. # FreeBSD/OpenBSD/NetBSD
  3232. ;;
  3233. *)
  3234. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3235. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3236. if test -r /mach
  3237. then
  3238. echo "$as_me:$LINENO: result: yes" >&5
  3239. echo "${ECHO_T}yes" >&6
  3240. cat >>confdefs.h <<\_ACEOF
  3241. #define BORGCUBES 1
  3242. _ACEOF
  3243. else
  3244. echo "$as_me:$LINENO: result: no" >&5
  3245. echo "${ECHO_T}no" >&6
  3246. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3247. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3248. if test -r /cmds
  3249. then
  3250. echo "$as_me:$LINENO: result: yes" >&5
  3251. echo "${ECHO_T}yes" >&6
  3252. else
  3253. echo "$as_me:$LINENO: result: no" >&5
  3254. echo "${ECHO_T}no" >&6
  3255. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3256. echo "${ECHO_T}Something unknown!" >&6
  3257. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3258. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3259. fi
  3260. fi
  3261. ;;
  3262. esac
  3263. dns_reslib_avail="true"
  3264. echo "$as_me:$LINENO: checking for res_init" >&5
  3265. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3266. if test "${ac_cv_func_res_init+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3276. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3277. #define res_init innocuous_res_init
  3278. /* System header to define __stub macros and hopefully few prototypes,
  3279. which can conflict with char res_init (); below.
  3280. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3281. <limits.h> exists even on freestanding compilers. */
  3282. #ifdef __STDC__
  3283. # include <limits.h>
  3284. #else
  3285. # include <assert.h>
  3286. #endif
  3287. #undef res_init
  3288. /* Override any gcc2 internal prototype to avoid an error. */
  3289. #ifdef __cplusplus
  3290. extern "C"
  3291. {
  3292. #endif
  3293. /* We use char because int might match the return type of a gcc2
  3294. builtin and then its argument prototype would still apply. */
  3295. char res_init ();
  3296. /* The GNU C library defines this for functions which it implements
  3297. to always fail with ENOSYS. Some functions are actually named
  3298. something starting with __ and the normal name is an alias. */
  3299. #if defined (__stub_res_init) || defined (__stub___res_init)
  3300. choke me
  3301. #else
  3302. char (*f) () = res_init;
  3303. #endif
  3304. #ifdef __cplusplus
  3305. }
  3306. #endif
  3307. int
  3308. main ()
  3309. {
  3310. return f != res_init;
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. rm -f conftest.$ac_objext conftest$ac_exeext
  3316. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3317. (eval $ac_link) 2>conftest.er1
  3318. ac_status=$?
  3319. grep -v '^ *+' conftest.er1 >conftest.err
  3320. rm -f conftest.er1
  3321. cat conftest.err >&5
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); } &&
  3324. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3326. (eval $ac_try) 2>&5
  3327. ac_status=$?
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); }; } &&
  3330. { ac_try='test -s conftest$ac_exeext'
  3331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3332. (eval $ac_try) 2>&5
  3333. ac_status=$?
  3334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3335. (exit $ac_status); }; }; then
  3336. ac_cv_func_res_init=yes
  3337. else
  3338. echo "$as_me: failed program was:" >&5
  3339. sed 's/^/| /' conftest.$ac_ext >&5
  3340. ac_cv_func_res_init=no
  3341. fi
  3342. rm -f conftest.err conftest.$ac_objext \
  3343. conftest$ac_exeext conftest.$ac_ext
  3344. fi
  3345. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3346. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3347. if test $ac_cv_func_res_init = yes; then
  3348. :
  3349. else
  3350. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3351. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3352. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3353. echo $ECHO_N "(cached) $ECHO_C" >&6
  3354. else
  3355. ac_check_lib_save_LIBS=$LIBS
  3356. LIBS="-lresolv $LIBS"
  3357. cat >conftest.$ac_ext <<_ACEOF
  3358. /* confdefs.h. */
  3359. _ACEOF
  3360. cat confdefs.h >>conftest.$ac_ext
  3361. cat >>conftest.$ac_ext <<_ACEOF
  3362. /* end confdefs.h. */
  3363. /* Override any gcc2 internal prototype to avoid an error. */
  3364. #ifdef __cplusplus
  3365. extern "C"
  3366. #endif
  3367. /* We use char because int might match the return type of a gcc2
  3368. builtin and then its argument prototype would still apply. */
  3369. char res_init ();
  3370. int
  3371. main ()
  3372. {
  3373. res_init ();
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. rm -f conftest.$ac_objext conftest$ac_exeext
  3379. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3380. (eval $ac_link) 2>conftest.er1
  3381. ac_status=$?
  3382. grep -v '^ *+' conftest.er1 >conftest.err
  3383. rm -f conftest.er1
  3384. cat conftest.err >&5
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); } &&
  3387. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; } &&
  3393. { ac_try='test -s conftest$ac_exeext'
  3394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3395. (eval $ac_try) 2>&5
  3396. ac_status=$?
  3397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3398. (exit $ac_status); }; }; then
  3399. ac_cv_lib_resolv_res_init=yes
  3400. else
  3401. echo "$as_me: failed program was:" >&5
  3402. sed 's/^/| /' conftest.$ac_ext >&5
  3403. ac_cv_lib_resolv_res_init=no
  3404. fi
  3405. rm -f conftest.err conftest.$ac_objext \
  3406. conftest$ac_exeext conftest.$ac_ext
  3407. LIBS=$ac_check_lib_save_LIBS
  3408. fi
  3409. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3410. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3411. if test $ac_cv_lib_resolv_res_init = yes; then
  3412. RESLIB="-lresolv"
  3413. else
  3414. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3415. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3416. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3417. echo $ECHO_N "(cached) $ECHO_C" >&6
  3418. else
  3419. ac_check_lib_save_LIBS=$LIBS
  3420. LIBS="-lbind $LIBS"
  3421. cat >conftest.$ac_ext <<_ACEOF
  3422. /* confdefs.h. */
  3423. _ACEOF
  3424. cat confdefs.h >>conftest.$ac_ext
  3425. cat >>conftest.$ac_ext <<_ACEOF
  3426. /* end confdefs.h. */
  3427. /* Override any gcc2 internal prototype to avoid an error. */
  3428. #ifdef __cplusplus
  3429. extern "C"
  3430. #endif
  3431. /* We use char because int might match the return type of a gcc2
  3432. builtin and then its argument prototype would still apply. */
  3433. char res_init ();
  3434. int
  3435. main ()
  3436. {
  3437. res_init ();
  3438. ;
  3439. return 0;
  3440. }
  3441. _ACEOF
  3442. rm -f conftest.$ac_objext conftest$ac_exeext
  3443. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3444. (eval $ac_link) 2>conftest.er1
  3445. ac_status=$?
  3446. grep -v '^ *+' conftest.er1 >conftest.err
  3447. rm -f conftest.er1
  3448. cat conftest.err >&5
  3449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3450. (exit $ac_status); } &&
  3451. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3453. (eval $ac_try) 2>&5
  3454. ac_status=$?
  3455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3456. (exit $ac_status); }; } &&
  3457. { ac_try='test -s conftest$ac_exeext'
  3458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3459. (eval $ac_try) 2>&5
  3460. ac_status=$?
  3461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3462. (exit $ac_status); }; }; then
  3463. ac_cv_lib_bind_res_init=yes
  3464. else
  3465. echo "$as_me: failed program was:" >&5
  3466. sed 's/^/| /' conftest.$ac_ext >&5
  3467. ac_cv_lib_bind_res_init=no
  3468. fi
  3469. rm -f conftest.err conftest.$ac_objext \
  3470. conftest$ac_exeext conftest.$ac_ext
  3471. LIBS=$ac_check_lib_save_LIBS
  3472. fi
  3473. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3474. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3475. if test $ac_cv_lib_bind_res_init = yes; then
  3476. RESLIB="-lbind"
  3477. else
  3478. dns_reslib_avail="false";
  3479. fi
  3480. fi
  3481. fi
  3482. if test "${dns_reslib_avail}" = false; then
  3483. dns_reslib_avail="true"
  3484. echo "$as_me:$LINENO: checking for __res_init" >&5
  3485. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3486. if test "${ac_cv_func___res_init+set}" = set; then
  3487. echo $ECHO_N "(cached) $ECHO_C" >&6
  3488. else
  3489. cat >conftest.$ac_ext <<_ACEOF
  3490. /* confdefs.h. */
  3491. _ACEOF
  3492. cat confdefs.h >>conftest.$ac_ext
  3493. cat >>conftest.$ac_ext <<_ACEOF
  3494. /* end confdefs.h. */
  3495. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3496. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3497. #define __res_init innocuous___res_init
  3498. /* System header to define __stub macros and hopefully few prototypes,
  3499. which can conflict with char __res_init (); below.
  3500. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3501. <limits.h> exists even on freestanding compilers. */
  3502. #ifdef __STDC__
  3503. # include <limits.h>
  3504. #else
  3505. # include <assert.h>
  3506. #endif
  3507. #undef __res_init
  3508. /* Override any gcc2 internal prototype to avoid an error. */
  3509. #ifdef __cplusplus
  3510. extern "C"
  3511. {
  3512. #endif
  3513. /* We use char because int might match the return type of a gcc2
  3514. builtin and then its argument prototype would still apply. */
  3515. char __res_init ();
  3516. /* The GNU C library defines this for functions which it implements
  3517. to always fail with ENOSYS. Some functions are actually named
  3518. something starting with __ and the normal name is an alias. */
  3519. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3520. choke me
  3521. #else
  3522. char (*f) () = __res_init;
  3523. #endif
  3524. #ifdef __cplusplus
  3525. }
  3526. #endif
  3527. int
  3528. main ()
  3529. {
  3530. return f != __res_init;
  3531. ;
  3532. return 0;
  3533. }
  3534. _ACEOF
  3535. rm -f conftest.$ac_objext conftest$ac_exeext
  3536. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3537. (eval $ac_link) 2>conftest.er1
  3538. ac_status=$?
  3539. grep -v '^ *+' conftest.er1 >conftest.err
  3540. rm -f conftest.er1
  3541. cat conftest.err >&5
  3542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3543. (exit $ac_status); } &&
  3544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3546. (eval $ac_try) 2>&5
  3547. ac_status=$?
  3548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3549. (exit $ac_status); }; } &&
  3550. { ac_try='test -s conftest$ac_exeext'
  3551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3552. (eval $ac_try) 2>&5
  3553. ac_status=$?
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); }; }; then
  3556. ac_cv_func___res_init=yes
  3557. else
  3558. echo "$as_me: failed program was:" >&5
  3559. sed 's/^/| /' conftest.$ac_ext >&5
  3560. ac_cv_func___res_init=no
  3561. fi
  3562. rm -f conftest.err conftest.$ac_objext \
  3563. conftest$ac_exeext conftest.$ac_ext
  3564. fi
  3565. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3566. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3567. if test $ac_cv_func___res_init = yes; then
  3568. :
  3569. else
  3570. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3571. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3572. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3573. echo $ECHO_N "(cached) $ECHO_C" >&6
  3574. else
  3575. ac_check_lib_save_LIBS=$LIBS
  3576. LIBS="-lresolv $LIBS"
  3577. cat >conftest.$ac_ext <<_ACEOF
  3578. /* confdefs.h. */
  3579. _ACEOF
  3580. cat confdefs.h >>conftest.$ac_ext
  3581. cat >>conftest.$ac_ext <<_ACEOF
  3582. /* end confdefs.h. */
  3583. /* Override any gcc2 internal prototype to avoid an error. */
  3584. #ifdef __cplusplus
  3585. extern "C"
  3586. #endif
  3587. /* We use char because int might match the return type of a gcc2
  3588. builtin and then its argument prototype would still apply. */
  3589. char __res_init ();
  3590. int
  3591. main ()
  3592. {
  3593. __res_init ();
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. rm -f conftest.$ac_objext conftest$ac_exeext
  3599. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3600. (eval $ac_link) 2>conftest.er1
  3601. ac_status=$?
  3602. grep -v '^ *+' conftest.er1 >conftest.err
  3603. rm -f conftest.er1
  3604. cat conftest.err >&5
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); } &&
  3607. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3609. (eval $ac_try) 2>&5
  3610. ac_status=$?
  3611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3612. (exit $ac_status); }; } &&
  3613. { ac_try='test -s conftest$ac_exeext'
  3614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3615. (eval $ac_try) 2>&5
  3616. ac_status=$?
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); }; }; then
  3619. ac_cv_lib_resolv___res_init=yes
  3620. else
  3621. echo "$as_me: failed program was:" >&5
  3622. sed 's/^/| /' conftest.$ac_ext >&5
  3623. ac_cv_lib_resolv___res_init=no
  3624. fi
  3625. rm -f conftest.err conftest.$ac_objext \
  3626. conftest$ac_exeext conftest.$ac_ext
  3627. LIBS=$ac_check_lib_save_LIBS
  3628. fi
  3629. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3630. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3631. if test $ac_cv_lib_resolv___res_init = yes; then
  3632. RESLIB="-lresolv"
  3633. else
  3634. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3635. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3636. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3637. echo $ECHO_N "(cached) $ECHO_C" >&6
  3638. else
  3639. ac_check_lib_save_LIBS=$LIBS
  3640. LIBS="-lbind $LIBS"
  3641. cat >conftest.$ac_ext <<_ACEOF
  3642. /* confdefs.h. */
  3643. _ACEOF
  3644. cat confdefs.h >>conftest.$ac_ext
  3645. cat >>conftest.$ac_ext <<_ACEOF
  3646. /* end confdefs.h. */
  3647. /* Override any gcc2 internal prototype to avoid an error. */
  3648. #ifdef __cplusplus
  3649. extern "C"
  3650. #endif
  3651. /* We use char because int might match the return type of a gcc2
  3652. builtin and then its argument prototype would still apply. */
  3653. char __res_init ();
  3654. int
  3655. main ()
  3656. {
  3657. __res_init ();
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. rm -f conftest.$ac_objext conftest$ac_exeext
  3663. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3664. (eval $ac_link) 2>conftest.er1
  3665. ac_status=$?
  3666. grep -v '^ *+' conftest.er1 >conftest.err
  3667. rm -f conftest.er1
  3668. cat conftest.err >&5
  3669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3670. (exit $ac_status); } &&
  3671. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3672. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3673. (eval $ac_try) 2>&5
  3674. ac_status=$?
  3675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3676. (exit $ac_status); }; } &&
  3677. { ac_try='test -s conftest$ac_exeext'
  3678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3679. (eval $ac_try) 2>&5
  3680. ac_status=$?
  3681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3682. (exit $ac_status); }; }; then
  3683. ac_cv_lib_bind___res_init=yes
  3684. else
  3685. echo "$as_me: failed program was:" >&5
  3686. sed 's/^/| /' conftest.$ac_ext >&5
  3687. ac_cv_lib_bind___res_init=no
  3688. fi
  3689. rm -f conftest.err conftest.$ac_objext \
  3690. conftest$ac_exeext conftest.$ac_ext
  3691. LIBS=$ac_check_lib_save_LIBS
  3692. fi
  3693. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3694. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3695. if test $ac_cv_lib_bind___res_init = yes; then
  3696. RESLIB="-lbind"
  3697. else
  3698. dns_reslib_avail="false";
  3699. fi
  3700. fi
  3701. fi
  3702. fi
  3703. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3704. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3705. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3706. echo $ECHO_N "(cached) $ECHO_C" >&6
  3707. else
  3708. cat >conftest.$ac_ext <<_ACEOF
  3709. /* confdefs.h. */
  3710. _ACEOF
  3711. cat confdefs.h >>conftest.$ac_ext
  3712. cat >>conftest.$ac_ext <<_ACEOF
  3713. /* end confdefs.h. */
  3714. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3715. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3716. #define res_mkquery innocuous_res_mkquery
  3717. /* System header to define __stub macros and hopefully few prototypes,
  3718. which can conflict with char res_mkquery (); below.
  3719. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3720. <limits.h> exists even on freestanding compilers. */
  3721. #ifdef __STDC__
  3722. # include <limits.h>
  3723. #else
  3724. # include <assert.h>
  3725. #endif
  3726. #undef res_mkquery
  3727. /* Override any gcc2 internal prototype to avoid an error. */
  3728. #ifdef __cplusplus
  3729. extern "C"
  3730. {
  3731. #endif
  3732. /* We use char because int might match the return type of a gcc2
  3733. builtin and then its argument prototype would still apply. */
  3734. char res_mkquery ();
  3735. /* The GNU C library defines this for functions which it implements
  3736. to always fail with ENOSYS. Some functions are actually named
  3737. something starting with __ and the normal name is an alias. */
  3738. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3739. choke me
  3740. #else
  3741. char (*f) () = res_mkquery;
  3742. #endif
  3743. #ifdef __cplusplus
  3744. }
  3745. #endif
  3746. int
  3747. main ()
  3748. {
  3749. return f != res_mkquery;
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. rm -f conftest.$ac_objext conftest$ac_exeext
  3755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3756. (eval $ac_link) 2>conftest.er1
  3757. ac_status=$?
  3758. grep -v '^ *+' conftest.er1 >conftest.err
  3759. rm -f conftest.er1
  3760. cat conftest.err >&5
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); } &&
  3763. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3765. (eval $ac_try) 2>&5
  3766. ac_status=$?
  3767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3768. (exit $ac_status); }; } &&
  3769. { ac_try='test -s conftest$ac_exeext'
  3770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3771. (eval $ac_try) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); }; }; then
  3775. ac_cv_func_res_mkquery=yes
  3776. else
  3777. echo "$as_me: failed program was:" >&5
  3778. sed 's/^/| /' conftest.$ac_ext >&5
  3779. ac_cv_func_res_mkquery=no
  3780. fi
  3781. rm -f conftest.err conftest.$ac_objext \
  3782. conftest$ac_exeext conftest.$ac_ext
  3783. fi
  3784. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3785. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3786. if test $ac_cv_func_res_mkquery = yes; then
  3787. :
  3788. else
  3789. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3790. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3791. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3792. echo $ECHO_N "(cached) $ECHO_C" >&6
  3793. else
  3794. ac_check_lib_save_LIBS=$LIBS
  3795. LIBS="-lresolv $LIBS"
  3796. cat >conftest.$ac_ext <<_ACEOF
  3797. /* confdefs.h. */
  3798. _ACEOF
  3799. cat confdefs.h >>conftest.$ac_ext
  3800. cat >>conftest.$ac_ext <<_ACEOF
  3801. /* end confdefs.h. */
  3802. /* Override any gcc2 internal prototype to avoid an error. */
  3803. #ifdef __cplusplus
  3804. extern "C"
  3805. #endif
  3806. /* We use char because int might match the return type of a gcc2
  3807. builtin and then its argument prototype would still apply. */
  3808. char res_mkquery ();
  3809. int
  3810. main ()
  3811. {
  3812. res_mkquery ();
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. rm -f conftest.$ac_objext conftest$ac_exeext
  3818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3819. (eval $ac_link) 2>conftest.er1
  3820. ac_status=$?
  3821. grep -v '^ *+' conftest.er1 >conftest.err
  3822. rm -f conftest.er1
  3823. cat conftest.err >&5
  3824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3825. (exit $ac_status); } &&
  3826. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3828. (eval $ac_try) 2>&5
  3829. ac_status=$?
  3830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3831. (exit $ac_status); }; } &&
  3832. { ac_try='test -s conftest$ac_exeext'
  3833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3834. (eval $ac_try) 2>&5
  3835. ac_status=$?
  3836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3837. (exit $ac_status); }; }; then
  3838. ac_cv_lib_resolv_res_mkquery=yes
  3839. else
  3840. echo "$as_me: failed program was:" >&5
  3841. sed 's/^/| /' conftest.$ac_ext >&5
  3842. ac_cv_lib_resolv_res_mkquery=no
  3843. fi
  3844. rm -f conftest.err conftest.$ac_objext \
  3845. conftest$ac_exeext conftest.$ac_ext
  3846. LIBS=$ac_check_lib_save_LIBS
  3847. fi
  3848. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  3849. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  3850. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  3851. if test "x${RESLIB}" != "x-lresolv"; then
  3852. RESLIB="${RESLIB} -lresolv"
  3853. fi
  3854. else
  3855. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  3856. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  3857. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  3858. echo $ECHO_N "(cached) $ECHO_C" >&6
  3859. else
  3860. ac_check_lib_save_LIBS=$LIBS
  3861. LIBS="-lbind $LIBS"
  3862. cat >conftest.$ac_ext <<_ACEOF
  3863. /* confdefs.h. */
  3864. _ACEOF
  3865. cat confdefs.h >>conftest.$ac_ext
  3866. cat >>conftest.$ac_ext <<_ACEOF
  3867. /* end confdefs.h. */
  3868. /* Override any gcc2 internal prototype to avoid an error. */
  3869. #ifdef __cplusplus
  3870. extern "C"
  3871. #endif
  3872. /* We use char because int might match the return type of a gcc2
  3873. builtin and then its argument prototype would still apply. */
  3874. char res_mkquery ();
  3875. int
  3876. main ()
  3877. {
  3878. res_mkquery ();
  3879. ;
  3880. return 0;
  3881. }
  3882. _ACEOF
  3883. rm -f conftest.$ac_objext conftest$ac_exeext
  3884. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3885. (eval $ac_link) 2>conftest.er1
  3886. ac_status=$?
  3887. grep -v '^ *+' conftest.er1 >conftest.err
  3888. rm -f conftest.er1
  3889. cat conftest.err >&5
  3890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3891. (exit $ac_status); } &&
  3892. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3894. (eval $ac_try) 2>&5
  3895. ac_status=$?
  3896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3897. (exit $ac_status); }; } &&
  3898. { ac_try='test -s conftest$ac_exeext'
  3899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3900. (eval $ac_try) 2>&5
  3901. ac_status=$?
  3902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3903. (exit $ac_status); }; }; then
  3904. ac_cv_lib_bind_res_mkquery=yes
  3905. else
  3906. echo "$as_me: failed program was:" >&5
  3907. sed 's/^/| /' conftest.$ac_ext >&5
  3908. ac_cv_lib_bind_res_mkquery=no
  3909. fi
  3910. rm -f conftest.err conftest.$ac_objext \
  3911. conftest$ac_exeext conftest.$ac_ext
  3912. LIBS=$ac_check_lib_save_LIBS
  3913. fi
  3914. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  3915. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  3916. if test $ac_cv_lib_bind_res_mkquery = yes; then
  3917. if test "x${RESLIB}" != "x-lbind"; then
  3918. RESLIB="${RESLIB} -lbind"
  3919. fi
  3920. else
  3921. dns_reslib_avail="false";
  3922. fi
  3923. fi
  3924. fi
  3925. if test "${dns_reslib_avail}" = false; then
  3926. dns_reslib_avail="true"
  3927. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  3928. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  3929. if test "${ac_cv_func___res_mkquery+set}" = set; then
  3930. echo $ECHO_N "(cached) $ECHO_C" >&6
  3931. else
  3932. cat >conftest.$ac_ext <<_ACEOF
  3933. /* confdefs.h. */
  3934. _ACEOF
  3935. cat confdefs.h >>conftest.$ac_ext
  3936. cat >>conftest.$ac_ext <<_ACEOF
  3937. /* end confdefs.h. */
  3938. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  3939. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3940. #define __res_mkquery innocuous___res_mkquery
  3941. /* System header to define __stub macros and hopefully few prototypes,
  3942. which can conflict with char __res_mkquery (); below.
  3943. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3944. <limits.h> exists even on freestanding compilers. */
  3945. #ifdef __STDC__
  3946. # include <limits.h>
  3947. #else
  3948. # include <assert.h>
  3949. #endif
  3950. #undef __res_mkquery
  3951. /* Override any gcc2 internal prototype to avoid an error. */
  3952. #ifdef __cplusplus
  3953. extern "C"
  3954. {
  3955. #endif
  3956. /* We use char because int might match the return type of a gcc2
  3957. builtin and then its argument prototype would still apply. */
  3958. char __res_mkquery ();
  3959. /* The GNU C library defines this for functions which it implements
  3960. to always fail with ENOSYS. Some functions are actually named
  3961. something starting with __ and the normal name is an alias. */
  3962. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  3963. choke me
  3964. #else
  3965. char (*f) () = __res_mkquery;
  3966. #endif
  3967. #ifdef __cplusplus
  3968. }
  3969. #endif
  3970. int
  3971. main ()
  3972. {
  3973. return f != __res_mkquery;
  3974. ;
  3975. return 0;
  3976. }
  3977. _ACEOF
  3978. rm -f conftest.$ac_objext conftest$ac_exeext
  3979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3980. (eval $ac_link) 2>conftest.er1
  3981. ac_status=$?
  3982. grep -v '^ *+' conftest.er1 >conftest.err
  3983. rm -f conftest.er1
  3984. cat conftest.err >&5
  3985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3986. (exit $ac_status); } &&
  3987. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3989. (eval $ac_try) 2>&5
  3990. ac_status=$?
  3991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3992. (exit $ac_status); }; } &&
  3993. { ac_try='test -s conftest$ac_exeext'
  3994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3995. (eval $ac_try) 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); }; }; then
  3999. ac_cv_func___res_mkquery=yes
  4000. else
  4001. echo "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. ac_cv_func___res_mkquery=no
  4004. fi
  4005. rm -f conftest.err conftest.$ac_objext \
  4006. conftest$ac_exeext conftest.$ac_ext
  4007. fi
  4008. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4009. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4010. if test $ac_cv_func___res_mkquery = yes; then
  4011. :
  4012. else
  4013. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4014. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4015. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4016. echo $ECHO_N "(cached) $ECHO_C" >&6
  4017. else
  4018. ac_check_lib_save_LIBS=$LIBS
  4019. LIBS="-lresolv $LIBS"
  4020. cat >conftest.$ac_ext <<_ACEOF
  4021. /* confdefs.h. */
  4022. _ACEOF
  4023. cat confdefs.h >>conftest.$ac_ext
  4024. cat >>conftest.$ac_ext <<_ACEOF
  4025. /* end confdefs.h. */
  4026. /* Override any gcc2 internal prototype to avoid an error. */
  4027. #ifdef __cplusplus
  4028. extern "C"
  4029. #endif
  4030. /* We use char because int might match the return type of a gcc2
  4031. builtin and then its argument prototype would still apply. */
  4032. char __res_mkquery ();
  4033. int
  4034. main ()
  4035. {
  4036. __res_mkquery ();
  4037. ;
  4038. return 0;
  4039. }
  4040. _ACEOF
  4041. rm -f conftest.$ac_objext conftest$ac_exeext
  4042. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4043. (eval $ac_link) 2>conftest.er1
  4044. ac_status=$?
  4045. grep -v '^ *+' conftest.er1 >conftest.err
  4046. rm -f conftest.er1
  4047. cat conftest.err >&5
  4048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4049. (exit $ac_status); } &&
  4050. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4052. (eval $ac_try) 2>&5
  4053. ac_status=$?
  4054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4055. (exit $ac_status); }; } &&
  4056. { ac_try='test -s conftest$ac_exeext'
  4057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4058. (eval $ac_try) 2>&5
  4059. ac_status=$?
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); }; }; then
  4062. ac_cv_lib_resolv___res_mkquery=yes
  4063. else
  4064. echo "$as_me: failed program was:" >&5
  4065. sed 's/^/| /' conftest.$ac_ext >&5
  4066. ac_cv_lib_resolv___res_mkquery=no
  4067. fi
  4068. rm -f conftest.err conftest.$ac_objext \
  4069. conftest$ac_exeext conftest.$ac_ext
  4070. LIBS=$ac_check_lib_save_LIBS
  4071. fi
  4072. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4073. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4074. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4075. if test "x${RESLIB}" != "x-lresolv"; then
  4076. RESLIB="${RESLIB} -lresolv"
  4077. fi
  4078. else
  4079. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4080. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4081. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4082. echo $ECHO_N "(cached) $ECHO_C" >&6
  4083. else
  4084. ac_check_lib_save_LIBS=$LIBS
  4085. LIBS="-lbind $LIBS"
  4086. cat >conftest.$ac_ext <<_ACEOF
  4087. /* confdefs.h. */
  4088. _ACEOF
  4089. cat confdefs.h >>conftest.$ac_ext
  4090. cat >>conftest.$ac_ext <<_ACEOF
  4091. /* end confdefs.h. */
  4092. /* Override any gcc2 internal prototype to avoid an error. */
  4093. #ifdef __cplusplus
  4094. extern "C"
  4095. #endif
  4096. /* We use char because int might match the return type of a gcc2
  4097. builtin and then its argument prototype would still apply. */
  4098. char __res_mkquery ();
  4099. int
  4100. main ()
  4101. {
  4102. __res_mkquery ();
  4103. ;
  4104. return 0;
  4105. }
  4106. _ACEOF
  4107. rm -f conftest.$ac_objext conftest$ac_exeext
  4108. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4109. (eval $ac_link) 2>conftest.er1
  4110. ac_status=$?
  4111. grep -v '^ *+' conftest.er1 >conftest.err
  4112. rm -f conftest.er1
  4113. cat conftest.err >&5
  4114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115. (exit $ac_status); } &&
  4116. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4118. (eval $ac_try) 2>&5
  4119. ac_status=$?
  4120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4121. (exit $ac_status); }; } &&
  4122. { ac_try='test -s conftest$ac_exeext'
  4123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4124. (eval $ac_try) 2>&5
  4125. ac_status=$?
  4126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4127. (exit $ac_status); }; }; then
  4128. ac_cv_lib_bind___res_mkquery=yes
  4129. else
  4130. echo "$as_me: failed program was:" >&5
  4131. sed 's/^/| /' conftest.$ac_ext >&5
  4132. ac_cv_lib_bind___res_mkquery=no
  4133. fi
  4134. rm -f conftest.err conftest.$ac_objext \
  4135. conftest$ac_exeext conftest.$ac_ext
  4136. LIBS=$ac_check_lib_save_LIBS
  4137. fi
  4138. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4139. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4140. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4141. if test "x${RESLIB}" != "x-lbind"; then
  4142. RESLIB="${RESLIB} -lbind"
  4143. fi
  4144. else
  4145. dns_reslib_avail="false";
  4146. fi
  4147. fi
  4148. fi
  4149. fi
  4150. if test "${dns_reslib_avail}" = false; then
  4151. if test "$ac_cv_cygwin" = "yes"; then
  4152. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4153. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4154. if test -r /usr/local/bind/lib/libbind.a; then
  4155. echo "$as_me:$LINENO: result: yes" >&5
  4156. echo "${ECHO_T}yes" >&6
  4157. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4158. RESINCLUDE="-I/usr/local/bind/include"
  4159. dns_reslib_avail="true"
  4160. else
  4161. echo "$as_me:$LINENO: result: no" >&5
  4162. echo "${ECHO_T}no" >&6
  4163. fi
  4164. fi
  4165. fi
  4166. if test "${dns_reslib_avail}" = false; then
  4167. cat >&2 <<EOF
  4168. configure: warning:
  4169. Your system provides no functional resolver library.
  4170. One is required for buld.
  4171. EOF
  4172. exit 1
  4173. fi
  4174. # Check for IPv6 support
  4175. #EGG_IPV6_SUPPORTED
  4176. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4177. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4178. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4179. if test "${enable_ipv6+set}" = set; then
  4180. enableval="$enable_ipv6"
  4181. ac_cv_dipv6="yes"
  4182. echo "$as_me:$LINENO: result: yes" >&5
  4183. echo "${ECHO_T}yes" >&6
  4184. else
  4185. ac_cv_dipv6="no"
  4186. if test "$egg_cv_ipv6_supported" = "no"; then
  4187. ac_cv_dipv6="no"
  4188. fi
  4189. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4190. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4191. fi;
  4192. if ! test "$EGG_CYGWIN" = "yes"; then
  4193. if test "$ac_cv_dipv6" = "no"; then
  4194. cat >>confdefs.h <<\_ACEOF
  4195. #define USE_IPV6 1
  4196. _ACEOF
  4197. fi
  4198. fi
  4199. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4200. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4201. if test "${egg_cv_socklen_t+set}" = set; then
  4202. echo $ECHO_N "(cached) $ECHO_C" >&6
  4203. else
  4204. if test "$cross_compiling" = yes; then
  4205. egg_cv_socklen_t=no
  4206. else
  4207. cat >conftest.$ac_ext <<_ACEOF
  4208. /* confdefs.h. */
  4209. _ACEOF
  4210. cat confdefs.h >>conftest.$ac_ext
  4211. cat >>conftest.$ac_ext <<_ACEOF
  4212. /* end confdefs.h. */
  4213. #include <unistd.h>
  4214. #include <sys/types.h>
  4215. #include <sys/socket.h>
  4216. #include <netinet/in.h>
  4217. #include <arpa/inet.h>
  4218. int main()
  4219. {
  4220. socklen_t test = sizeof(int);
  4221. return 0;
  4222. }
  4223. _ACEOF
  4224. rm -f conftest$ac_exeext
  4225. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4226. (eval $ac_link) 2>&5
  4227. ac_status=$?
  4228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4229. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4231. (eval $ac_try) 2>&5
  4232. ac_status=$?
  4233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4234. (exit $ac_status); }; }; then
  4235. egg_cv_socklen_t=yes
  4236. else
  4237. echo "$as_me: program exited with status $ac_status" >&5
  4238. echo "$as_me: failed program was:" >&5
  4239. sed 's/^/| /' conftest.$ac_ext >&5
  4240. ( exit $ac_status )
  4241. egg_cv_socklen_t=no
  4242. fi
  4243. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4244. fi
  4245. fi
  4246. if test "$egg_cv_socklen_t" = "yes"; then
  4247. cat >>confdefs.h <<\_ACEOF
  4248. #define HAVE_SOCKLEN_T 1
  4249. _ACEOF
  4250. echo "$as_me:$LINENO: result: yes" >&5
  4251. echo "${ECHO_T}yes" >&6
  4252. else
  4253. echo "$as_me:$LINENO: result: no" >&5
  4254. echo "${ECHO_T}no" >&6
  4255. fi
  4256. #checkpoint
  4257. cat >confcache <<\_ACEOF
  4258. # This file is a shell script that caches the results of configure
  4259. # tests run on this system so they can be shared between configure
  4260. # scripts and configure runs, see configure's option --config-cache.
  4261. # It is not useful on other systems. If it contains results you don't
  4262. # want to keep, you may remove or edit it.
  4263. #
  4264. # config.status only pays attention to the cache file if you give it
  4265. # the --recheck option to rerun configure.
  4266. #
  4267. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4268. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4269. # following values.
  4270. _ACEOF
  4271. # The following way of writing the cache mishandles newlines in values,
  4272. # but we know of no workaround that is simple, portable, and efficient.
  4273. # So, don't put newlines in cache variables' values.
  4274. # Ultrix sh set writes to stderr and can't be redirected directly,
  4275. # and sets the high bit in the cache file unless we assign to the vars.
  4276. {
  4277. (set) 2>&1 |
  4278. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4279. *ac_space=\ *)
  4280. # `set' does not quote correctly, so add quotes (double-quote
  4281. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4282. sed -n \
  4283. "s/'/'\\\\''/g;
  4284. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4285. ;;
  4286. *)
  4287. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4288. sed -n \
  4289. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4290. ;;
  4291. esac;
  4292. } |
  4293. sed '
  4294. t clear
  4295. : clear
  4296. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4297. t end
  4298. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4299. : end' >>confcache
  4300. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4301. if test -w $cache_file; then
  4302. test "x$cache_file" != "x/dev/null"
  4303. cat confcache >$cache_file
  4304. else
  4305. echo "not updating unwritable cache $cache_file"
  4306. fi
  4307. fi
  4308. rm -f confcache
  4309. # Checks for system libraries
  4310. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4311. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4312. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4313. echo $ECHO_N "(cached) $ECHO_C" >&6
  4314. else
  4315. ac_check_lib_save_LIBS=$LIBS
  4316. LIBS="-lsocket $LIBS"
  4317. cat >conftest.$ac_ext <<_ACEOF
  4318. /* confdefs.h. */
  4319. _ACEOF
  4320. cat confdefs.h >>conftest.$ac_ext
  4321. cat >>conftest.$ac_ext <<_ACEOF
  4322. /* end confdefs.h. */
  4323. /* Override any gcc2 internal prototype to avoid an error. */
  4324. #ifdef __cplusplus
  4325. extern "C"
  4326. #endif
  4327. /* We use char because int might match the return type of a gcc2
  4328. builtin and then its argument prototype would still apply. */
  4329. char socket ();
  4330. int
  4331. main ()
  4332. {
  4333. socket ();
  4334. ;
  4335. return 0;
  4336. }
  4337. _ACEOF
  4338. rm -f conftest.$ac_objext conftest$ac_exeext
  4339. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4340. (eval $ac_link) 2>conftest.er1
  4341. ac_status=$?
  4342. grep -v '^ *+' conftest.er1 >conftest.err
  4343. rm -f conftest.er1
  4344. cat conftest.err >&5
  4345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4346. (exit $ac_status); } &&
  4347. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4348. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4349. (eval $ac_try) 2>&5
  4350. ac_status=$?
  4351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4352. (exit $ac_status); }; } &&
  4353. { ac_try='test -s conftest$ac_exeext'
  4354. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4355. (eval $ac_try) 2>&5
  4356. ac_status=$?
  4357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4358. (exit $ac_status); }; }; then
  4359. ac_cv_lib_socket_socket=yes
  4360. else
  4361. echo "$as_me: failed program was:" >&5
  4362. sed 's/^/| /' conftest.$ac_ext >&5
  4363. ac_cv_lib_socket_socket=no
  4364. fi
  4365. rm -f conftest.err conftest.$ac_objext \
  4366. conftest$ac_exeext conftest.$ac_ext
  4367. LIBS=$ac_check_lib_save_LIBS
  4368. fi
  4369. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4370. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4371. if test $ac_cv_lib_socket_socket = yes; then
  4372. cat >>confdefs.h <<_ACEOF
  4373. #define HAVE_LIBSOCKET 1
  4374. _ACEOF
  4375. LIBS="-lsocket $LIBS"
  4376. fi
  4377. # AC_CHECK_LIB(nsl, connect)
  4378. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4379. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4380. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4381. echo $ECHO_N "(cached) $ECHO_C" >&6
  4382. else
  4383. ac_check_lib_save_LIBS=$LIBS
  4384. LIBS="-ldns $LIBS"
  4385. cat >conftest.$ac_ext <<_ACEOF
  4386. /* confdefs.h. */
  4387. _ACEOF
  4388. cat confdefs.h >>conftest.$ac_ext
  4389. cat >>conftest.$ac_ext <<_ACEOF
  4390. /* end confdefs.h. */
  4391. /* Override any gcc2 internal prototype to avoid an error. */
  4392. #ifdef __cplusplus
  4393. extern "C"
  4394. #endif
  4395. /* We use char because int might match the return type of a gcc2
  4396. builtin and then its argument prototype would still apply. */
  4397. char gethostbyname ();
  4398. int
  4399. main ()
  4400. {
  4401. gethostbyname ();
  4402. ;
  4403. return 0;
  4404. }
  4405. _ACEOF
  4406. rm -f conftest.$ac_objext conftest$ac_exeext
  4407. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4408. (eval $ac_link) 2>conftest.er1
  4409. ac_status=$?
  4410. grep -v '^ *+' conftest.er1 >conftest.err
  4411. rm -f conftest.er1
  4412. cat conftest.err >&5
  4413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4414. (exit $ac_status); } &&
  4415. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4417. (eval $ac_try) 2>&5
  4418. ac_status=$?
  4419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4420. (exit $ac_status); }; } &&
  4421. { ac_try='test -s conftest$ac_exeext'
  4422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4423. (eval $ac_try) 2>&5
  4424. ac_status=$?
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); }; }; then
  4427. ac_cv_lib_dns_gethostbyname=yes
  4428. else
  4429. echo "$as_me: failed program was:" >&5
  4430. sed 's/^/| /' conftest.$ac_ext >&5
  4431. ac_cv_lib_dns_gethostbyname=no
  4432. fi
  4433. rm -f conftest.err conftest.$ac_objext \
  4434. conftest$ac_exeext conftest.$ac_ext
  4435. LIBS=$ac_check_lib_save_LIBS
  4436. fi
  4437. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4438. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4439. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4440. cat >>confdefs.h <<_ACEOF
  4441. #define HAVE_LIBDNS 1
  4442. _ACEOF
  4443. LIBS="-ldns $LIBS"
  4444. fi
  4445. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4446. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4447. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4448. # This is needed for Tcl libraries compiled with thread support
  4449. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4450. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4451. # ac_cv_lib_pthread="-lpthread"], [dnl
  4452. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4453. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4454. # ac_cv_lib_pthread="-lpthread"], [dnl
  4455. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4456. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4457. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4458. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4459. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4460. # ac_cv_lib_pthread=""],
  4461. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4462. # Checks for header files
  4463. ac_header_dirent=no
  4464. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4465. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4466. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4467. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4468. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4469. echo $ECHO_N "(cached) $ECHO_C" >&6
  4470. else
  4471. cat >conftest.$ac_ext <<_ACEOF
  4472. /* confdefs.h. */
  4473. _ACEOF
  4474. cat confdefs.h >>conftest.$ac_ext
  4475. cat >>conftest.$ac_ext <<_ACEOF
  4476. /* end confdefs.h. */
  4477. #include <sys/types.h>
  4478. #include <$ac_hdr>
  4479. int
  4480. main ()
  4481. {
  4482. if ((DIR *) 0)
  4483. return 0;
  4484. ;
  4485. return 0;
  4486. }
  4487. _ACEOF
  4488. rm -f conftest.$ac_objext
  4489. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4490. (eval $ac_compile) 2>conftest.er1
  4491. ac_status=$?
  4492. grep -v '^ *+' conftest.er1 >conftest.err
  4493. rm -f conftest.er1
  4494. cat conftest.err >&5
  4495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4496. (exit $ac_status); } &&
  4497. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4499. (eval $ac_try) 2>&5
  4500. ac_status=$?
  4501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4502. (exit $ac_status); }; } &&
  4503. { ac_try='test -s conftest.$ac_objext'
  4504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4505. (eval $ac_try) 2>&5
  4506. ac_status=$?
  4507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4508. (exit $ac_status); }; }; then
  4509. eval "$as_ac_Header=yes"
  4510. else
  4511. echo "$as_me: failed program was:" >&5
  4512. sed 's/^/| /' conftest.$ac_ext >&5
  4513. eval "$as_ac_Header=no"
  4514. fi
  4515. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4516. fi
  4517. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4518. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4519. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4520. cat >>confdefs.h <<_ACEOF
  4521. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4522. _ACEOF
  4523. ac_header_dirent=$ac_hdr; break
  4524. fi
  4525. done
  4526. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4527. if test $ac_header_dirent = dirent.h; then
  4528. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4529. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4530. if test "${ac_cv_search_opendir+set}" = set; then
  4531. echo $ECHO_N "(cached) $ECHO_C" >&6
  4532. else
  4533. ac_func_search_save_LIBS=$LIBS
  4534. ac_cv_search_opendir=no
  4535. cat >conftest.$ac_ext <<_ACEOF
  4536. /* confdefs.h. */
  4537. _ACEOF
  4538. cat confdefs.h >>conftest.$ac_ext
  4539. cat >>conftest.$ac_ext <<_ACEOF
  4540. /* end confdefs.h. */
  4541. /* Override any gcc2 internal prototype to avoid an error. */
  4542. #ifdef __cplusplus
  4543. extern "C"
  4544. #endif
  4545. /* We use char because int might match the return type of a gcc2
  4546. builtin and then its argument prototype would still apply. */
  4547. char opendir ();
  4548. int
  4549. main ()
  4550. {
  4551. opendir ();
  4552. ;
  4553. return 0;
  4554. }
  4555. _ACEOF
  4556. rm -f conftest.$ac_objext conftest$ac_exeext
  4557. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4558. (eval $ac_link) 2>conftest.er1
  4559. ac_status=$?
  4560. grep -v '^ *+' conftest.er1 >conftest.err
  4561. rm -f conftest.er1
  4562. cat conftest.err >&5
  4563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4564. (exit $ac_status); } &&
  4565. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4567. (eval $ac_try) 2>&5
  4568. ac_status=$?
  4569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570. (exit $ac_status); }; } &&
  4571. { ac_try='test -s conftest$ac_exeext'
  4572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4573. (eval $ac_try) 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); }; }; then
  4577. ac_cv_search_opendir="none required"
  4578. else
  4579. echo "$as_me: failed program was:" >&5
  4580. sed 's/^/| /' conftest.$ac_ext >&5
  4581. fi
  4582. rm -f conftest.err conftest.$ac_objext \
  4583. conftest$ac_exeext conftest.$ac_ext
  4584. if test "$ac_cv_search_opendir" = no; then
  4585. for ac_lib in dir; do
  4586. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4587. cat >conftest.$ac_ext <<_ACEOF
  4588. /* confdefs.h. */
  4589. _ACEOF
  4590. cat confdefs.h >>conftest.$ac_ext
  4591. cat >>conftest.$ac_ext <<_ACEOF
  4592. /* end confdefs.h. */
  4593. /* Override any gcc2 internal prototype to avoid an error. */
  4594. #ifdef __cplusplus
  4595. extern "C"
  4596. #endif
  4597. /* We use char because int might match the return type of a gcc2
  4598. builtin and then its argument prototype would still apply. */
  4599. char opendir ();
  4600. int
  4601. main ()
  4602. {
  4603. opendir ();
  4604. ;
  4605. return 0;
  4606. }
  4607. _ACEOF
  4608. rm -f conftest.$ac_objext conftest$ac_exeext
  4609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4610. (eval $ac_link) 2>conftest.er1
  4611. ac_status=$?
  4612. grep -v '^ *+' conftest.er1 >conftest.err
  4613. rm -f conftest.er1
  4614. cat conftest.err >&5
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); } &&
  4617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4619. (eval $ac_try) 2>&5
  4620. ac_status=$?
  4621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4622. (exit $ac_status); }; } &&
  4623. { ac_try='test -s conftest$ac_exeext'
  4624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4625. (eval $ac_try) 2>&5
  4626. ac_status=$?
  4627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4628. (exit $ac_status); }; }; then
  4629. ac_cv_search_opendir="-l$ac_lib"
  4630. break
  4631. else
  4632. echo "$as_me: failed program was:" >&5
  4633. sed 's/^/| /' conftest.$ac_ext >&5
  4634. fi
  4635. rm -f conftest.err conftest.$ac_objext \
  4636. conftest$ac_exeext conftest.$ac_ext
  4637. done
  4638. fi
  4639. LIBS=$ac_func_search_save_LIBS
  4640. fi
  4641. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4642. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4643. if test "$ac_cv_search_opendir" != no; then
  4644. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4645. fi
  4646. else
  4647. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4648. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4649. if test "${ac_cv_search_opendir+set}" = set; then
  4650. echo $ECHO_N "(cached) $ECHO_C" >&6
  4651. else
  4652. ac_func_search_save_LIBS=$LIBS
  4653. ac_cv_search_opendir=no
  4654. cat >conftest.$ac_ext <<_ACEOF
  4655. /* confdefs.h. */
  4656. _ACEOF
  4657. cat confdefs.h >>conftest.$ac_ext
  4658. cat >>conftest.$ac_ext <<_ACEOF
  4659. /* end confdefs.h. */
  4660. /* Override any gcc2 internal prototype to avoid an error. */
  4661. #ifdef __cplusplus
  4662. extern "C"
  4663. #endif
  4664. /* We use char because int might match the return type of a gcc2
  4665. builtin and then its argument prototype would still apply. */
  4666. char opendir ();
  4667. int
  4668. main ()
  4669. {
  4670. opendir ();
  4671. ;
  4672. return 0;
  4673. }
  4674. _ACEOF
  4675. rm -f conftest.$ac_objext conftest$ac_exeext
  4676. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4677. (eval $ac_link) 2>conftest.er1
  4678. ac_status=$?
  4679. grep -v '^ *+' conftest.er1 >conftest.err
  4680. rm -f conftest.er1
  4681. cat conftest.err >&5
  4682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4683. (exit $ac_status); } &&
  4684. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4686. (eval $ac_try) 2>&5
  4687. ac_status=$?
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); }; } &&
  4690. { ac_try='test -s conftest$ac_exeext'
  4691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4692. (eval $ac_try) 2>&5
  4693. ac_status=$?
  4694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); }; }; then
  4696. ac_cv_search_opendir="none required"
  4697. else
  4698. echo "$as_me: failed program was:" >&5
  4699. sed 's/^/| /' conftest.$ac_ext >&5
  4700. fi
  4701. rm -f conftest.err conftest.$ac_objext \
  4702. conftest$ac_exeext conftest.$ac_ext
  4703. if test "$ac_cv_search_opendir" = no; then
  4704. for ac_lib in x; do
  4705. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4706. cat >conftest.$ac_ext <<_ACEOF
  4707. /* confdefs.h. */
  4708. _ACEOF
  4709. cat confdefs.h >>conftest.$ac_ext
  4710. cat >>conftest.$ac_ext <<_ACEOF
  4711. /* end confdefs.h. */
  4712. /* Override any gcc2 internal prototype to avoid an error. */
  4713. #ifdef __cplusplus
  4714. extern "C"
  4715. #endif
  4716. /* We use char because int might match the return type of a gcc2
  4717. builtin and then its argument prototype would still apply. */
  4718. char opendir ();
  4719. int
  4720. main ()
  4721. {
  4722. opendir ();
  4723. ;
  4724. return 0;
  4725. }
  4726. _ACEOF
  4727. rm -f conftest.$ac_objext conftest$ac_exeext
  4728. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4729. (eval $ac_link) 2>conftest.er1
  4730. ac_status=$?
  4731. grep -v '^ *+' conftest.er1 >conftest.err
  4732. rm -f conftest.er1
  4733. cat conftest.err >&5
  4734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4735. (exit $ac_status); } &&
  4736. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4738. (eval $ac_try) 2>&5
  4739. ac_status=$?
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); }; } &&
  4742. { ac_try='test -s conftest$ac_exeext'
  4743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4744. (eval $ac_try) 2>&5
  4745. ac_status=$?
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); }; }; then
  4748. ac_cv_search_opendir="-l$ac_lib"
  4749. break
  4750. else
  4751. echo "$as_me: failed program was:" >&5
  4752. sed 's/^/| /' conftest.$ac_ext >&5
  4753. fi
  4754. rm -f conftest.err conftest.$ac_objext \
  4755. conftest$ac_exeext conftest.$ac_ext
  4756. done
  4757. fi
  4758. LIBS=$ac_func_search_save_LIBS
  4759. fi
  4760. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4761. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4762. if test "$ac_cv_search_opendir" != no; then
  4763. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4764. fi
  4765. fi
  4766. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4767. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4768. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4769. echo $ECHO_N "(cached) $ECHO_C" >&6
  4770. else
  4771. cat >conftest.$ac_ext <<_ACEOF
  4772. /* confdefs.h. */
  4773. _ACEOF
  4774. cat confdefs.h >>conftest.$ac_ext
  4775. cat >>conftest.$ac_ext <<_ACEOF
  4776. /* end confdefs.h. */
  4777. #include <sys/types.h>
  4778. #include <sys/wait.h>
  4779. #ifndef WEXITSTATUS
  4780. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4781. #endif
  4782. #ifndef WIFEXITED
  4783. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4784. #endif
  4785. int
  4786. main ()
  4787. {
  4788. int s;
  4789. wait (&s);
  4790. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4791. ;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. rm -f conftest.$ac_objext
  4796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4797. (eval $ac_compile) 2>conftest.er1
  4798. ac_status=$?
  4799. grep -v '^ *+' conftest.er1 >conftest.err
  4800. rm -f conftest.er1
  4801. cat conftest.err >&5
  4802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. (exit $ac_status); } &&
  4804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4806. (eval $ac_try) 2>&5
  4807. ac_status=$?
  4808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. (exit $ac_status); }; } &&
  4810. { ac_try='test -s conftest.$ac_objext'
  4811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4812. (eval $ac_try) 2>&5
  4813. ac_status=$?
  4814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815. (exit $ac_status); }; }; then
  4816. ac_cv_header_sys_wait_h=yes
  4817. else
  4818. echo "$as_me: failed program was:" >&5
  4819. sed 's/^/| /' conftest.$ac_ext >&5
  4820. ac_cv_header_sys_wait_h=no
  4821. fi
  4822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4823. fi
  4824. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4825. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4826. if test $ac_cv_header_sys_wait_h = yes; then
  4827. cat >>confdefs.h <<\_ACEOF
  4828. #define HAVE_SYS_WAIT_H 1
  4829. _ACEOF
  4830. fi
  4831. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4832. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4833. if test "${ac_cv_header_time+set}" = set; then
  4834. echo $ECHO_N "(cached) $ECHO_C" >&6
  4835. else
  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. #include <sys/types.h>
  4843. #include <sys/time.h>
  4844. #include <time.h>
  4845. int
  4846. main ()
  4847. {
  4848. if ((struct tm *) 0)
  4849. return 0;
  4850. ;
  4851. return 0;
  4852. }
  4853. _ACEOF
  4854. rm -f conftest.$ac_objext
  4855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4856. (eval $ac_compile) 2>conftest.er1
  4857. ac_status=$?
  4858. grep -v '^ *+' conftest.er1 >conftest.err
  4859. rm -f conftest.er1
  4860. cat conftest.err >&5
  4861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4862. (exit $ac_status); } &&
  4863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4865. (eval $ac_try) 2>&5
  4866. ac_status=$?
  4867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4868. (exit $ac_status); }; } &&
  4869. { ac_try='test -s conftest.$ac_objext'
  4870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4871. (eval $ac_try) 2>&5
  4872. ac_status=$?
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); }; }; then
  4875. ac_cv_header_time=yes
  4876. else
  4877. echo "$as_me: failed program was:" >&5
  4878. sed 's/^/| /' conftest.$ac_ext >&5
  4879. ac_cv_header_time=no
  4880. fi
  4881. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4882. fi
  4883. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4884. echo "${ECHO_T}$ac_cv_header_time" >&6
  4885. if test $ac_cv_header_time = yes; then
  4886. cat >>confdefs.h <<\_ACEOF
  4887. #define TIME_WITH_SYS_TIME 1
  4888. _ACEOF
  4889. fi
  4890. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4891. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4892. if test "${ac_cv_header_stat_broken+set}" = set; then
  4893. echo $ECHO_N "(cached) $ECHO_C" >&6
  4894. else
  4895. cat >conftest.$ac_ext <<_ACEOF
  4896. /* confdefs.h. */
  4897. _ACEOF
  4898. cat confdefs.h >>conftest.$ac_ext
  4899. cat >>conftest.$ac_ext <<_ACEOF
  4900. /* end confdefs.h. */
  4901. #include <sys/types.h>
  4902. #include <sys/stat.h>
  4903. #if defined(S_ISBLK) && defined(S_IFDIR)
  4904. # if S_ISBLK (S_IFDIR)
  4905. You lose.
  4906. # endif
  4907. #endif
  4908. #if defined(S_ISBLK) && defined(S_IFCHR)
  4909. # if S_ISBLK (S_IFCHR)
  4910. You lose.
  4911. # endif
  4912. #endif
  4913. #if defined(S_ISLNK) && defined(S_IFREG)
  4914. # if S_ISLNK (S_IFREG)
  4915. You lose.
  4916. # endif
  4917. #endif
  4918. #if defined(S_ISSOCK) && defined(S_IFREG)
  4919. # if S_ISSOCK (S_IFREG)
  4920. You lose.
  4921. # endif
  4922. #endif
  4923. _ACEOF
  4924. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4925. $EGREP "You lose" >/dev/null 2>&1; then
  4926. ac_cv_header_stat_broken=yes
  4927. else
  4928. ac_cv_header_stat_broken=no
  4929. fi
  4930. rm -f conftest*
  4931. fi
  4932. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4933. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4934. if test $ac_cv_header_stat_broken = yes; then
  4935. cat >>confdefs.h <<\_ACEOF
  4936. #define STAT_MACROS_BROKEN 1
  4937. _ACEOF
  4938. fi
  4939. #checkpoint
  4940. cat >confcache <<\_ACEOF
  4941. # This file is a shell script that caches the results of configure
  4942. # tests run on this system so they can be shared between configure
  4943. # scripts and configure runs, see configure's option --config-cache.
  4944. # It is not useful on other systems. If it contains results you don't
  4945. # want to keep, you may remove or edit it.
  4946. #
  4947. # config.status only pays attention to the cache file if you give it
  4948. # the --recheck option to rerun configure.
  4949. #
  4950. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4951. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4952. # following values.
  4953. _ACEOF
  4954. # The following way of writing the cache mishandles newlines in values,
  4955. # but we know of no workaround that is simple, portable, and efficient.
  4956. # So, don't put newlines in cache variables' values.
  4957. # Ultrix sh set writes to stderr and can't be redirected directly,
  4958. # and sets the high bit in the cache file unless we assign to the vars.
  4959. {
  4960. (set) 2>&1 |
  4961. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4962. *ac_space=\ *)
  4963. # `set' does not quote correctly, so add quotes (double-quote
  4964. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4965. sed -n \
  4966. "s/'/'\\\\''/g;
  4967. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4968. ;;
  4969. *)
  4970. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4971. sed -n \
  4972. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4973. ;;
  4974. esac;
  4975. } |
  4976. sed '
  4977. t clear
  4978. : clear
  4979. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4980. t end
  4981. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4982. : end' >>confcache
  4983. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4984. if test -w $cache_file; then
  4985. test "x$cache_file" != "x/dev/null"
  4986. cat confcache >$cache_file
  4987. else
  4988. echo "not updating unwritable cache $cache_file"
  4989. fi
  4990. fi
  4991. rm -f confcache
  4992. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4993. do
  4994. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4995. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4996. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4997. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4998. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4999. echo $ECHO_N "(cached) $ECHO_C" >&6
  5000. fi
  5001. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5002. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5003. else
  5004. # Is the header compilable?
  5005. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5006. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5007. cat >conftest.$ac_ext <<_ACEOF
  5008. /* confdefs.h. */
  5009. _ACEOF
  5010. cat confdefs.h >>conftest.$ac_ext
  5011. cat >>conftest.$ac_ext <<_ACEOF
  5012. /* end confdefs.h. */
  5013. $ac_includes_default
  5014. #include <$ac_header>
  5015. _ACEOF
  5016. rm -f conftest.$ac_objext
  5017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5018. (eval $ac_compile) 2>conftest.er1
  5019. ac_status=$?
  5020. grep -v '^ *+' conftest.er1 >conftest.err
  5021. rm -f conftest.er1
  5022. cat conftest.err >&5
  5023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5024. (exit $ac_status); } &&
  5025. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5027. (eval $ac_try) 2>&5
  5028. ac_status=$?
  5029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5030. (exit $ac_status); }; } &&
  5031. { ac_try='test -s conftest.$ac_objext'
  5032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5033. (eval $ac_try) 2>&5
  5034. ac_status=$?
  5035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. (exit $ac_status); }; }; then
  5037. ac_header_compiler=yes
  5038. else
  5039. echo "$as_me: failed program was:" >&5
  5040. sed 's/^/| /' conftest.$ac_ext >&5
  5041. ac_header_compiler=no
  5042. fi
  5043. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5044. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5045. echo "${ECHO_T}$ac_header_compiler" >&6
  5046. # Is the header present?
  5047. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5048. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5049. cat >conftest.$ac_ext <<_ACEOF
  5050. /* confdefs.h. */
  5051. _ACEOF
  5052. cat confdefs.h >>conftest.$ac_ext
  5053. cat >>conftest.$ac_ext <<_ACEOF
  5054. /* end confdefs.h. */
  5055. #include <$ac_header>
  5056. _ACEOF
  5057. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5058. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5059. ac_status=$?
  5060. grep -v '^ *+' conftest.er1 >conftest.err
  5061. rm -f conftest.er1
  5062. cat conftest.err >&5
  5063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5064. (exit $ac_status); } >/dev/null; then
  5065. if test -s conftest.err; then
  5066. ac_cpp_err=$ac_c_preproc_warn_flag
  5067. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5068. else
  5069. ac_cpp_err=
  5070. fi
  5071. else
  5072. ac_cpp_err=yes
  5073. fi
  5074. if test -z "$ac_cpp_err"; then
  5075. ac_header_preproc=yes
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. ac_header_preproc=no
  5080. fi
  5081. rm -f conftest.err conftest.$ac_ext
  5082. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5083. echo "${ECHO_T}$ac_header_preproc" >&6
  5084. # So? What about this header?
  5085. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5086. yes:no: )
  5087. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5088. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5089. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5090. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5091. ac_header_preproc=yes
  5092. ;;
  5093. no:yes:* )
  5094. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5095. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5096. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5097. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5098. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5099. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5100. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5101. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5102. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5103. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5104. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5105. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5106. (
  5107. cat <<\_ASBOX
  5108. ## ------------------------------------------ ##
  5109. ## Report this to the AC_PACKAGE_NAME lists. ##
  5110. ## ------------------------------------------ ##
  5111. _ASBOX
  5112. ) |
  5113. sed "s/^/$as_me: WARNING: /" >&2
  5114. ;;
  5115. esac
  5116. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5117. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5118. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5119. echo $ECHO_N "(cached) $ECHO_C" >&6
  5120. else
  5121. eval "$as_ac_Header=\$ac_header_preproc"
  5122. fi
  5123. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5124. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5125. fi
  5126. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5127. cat >>confdefs.h <<_ACEOF
  5128. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5129. _ACEOF
  5130. fi
  5131. done
  5132. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5133. do
  5134. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5135. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5136. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5137. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5138. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5139. echo $ECHO_N "(cached) $ECHO_C" >&6
  5140. fi
  5141. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5142. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5143. else
  5144. # Is the header compilable?
  5145. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5146. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5147. cat >conftest.$ac_ext <<_ACEOF
  5148. /* confdefs.h. */
  5149. _ACEOF
  5150. cat confdefs.h >>conftest.$ac_ext
  5151. cat >>conftest.$ac_ext <<_ACEOF
  5152. /* end confdefs.h. */
  5153. $ac_includes_default
  5154. #include <$ac_header>
  5155. _ACEOF
  5156. rm -f conftest.$ac_objext
  5157. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5158. (eval $ac_compile) 2>conftest.er1
  5159. ac_status=$?
  5160. grep -v '^ *+' conftest.er1 >conftest.err
  5161. rm -f conftest.er1
  5162. cat conftest.err >&5
  5163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5164. (exit $ac_status); } &&
  5165. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5167. (eval $ac_try) 2>&5
  5168. ac_status=$?
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; } &&
  5171. { ac_try='test -s conftest.$ac_objext'
  5172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5173. (eval $ac_try) 2>&5
  5174. ac_status=$?
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); }; }; then
  5177. ac_header_compiler=yes
  5178. else
  5179. echo "$as_me: failed program was:" >&5
  5180. sed 's/^/| /' conftest.$ac_ext >&5
  5181. ac_header_compiler=no
  5182. fi
  5183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5184. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5185. echo "${ECHO_T}$ac_header_compiler" >&6
  5186. # Is the header present?
  5187. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5188. echo $ECHO_N "checking $ac_header presence... $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. #include <$ac_header>
  5196. _ACEOF
  5197. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5198. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5199. ac_status=$?
  5200. grep -v '^ *+' conftest.er1 >conftest.err
  5201. rm -f conftest.er1
  5202. cat conftest.err >&5
  5203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5204. (exit $ac_status); } >/dev/null; then
  5205. if test -s conftest.err; then
  5206. ac_cpp_err=$ac_c_preproc_warn_flag
  5207. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5208. else
  5209. ac_cpp_err=
  5210. fi
  5211. else
  5212. ac_cpp_err=yes
  5213. fi
  5214. if test -z "$ac_cpp_err"; then
  5215. ac_header_preproc=yes
  5216. else
  5217. echo "$as_me: failed program was:" >&5
  5218. sed 's/^/| /' conftest.$ac_ext >&5
  5219. ac_header_preproc=no
  5220. fi
  5221. rm -f conftest.err conftest.$ac_ext
  5222. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5223. echo "${ECHO_T}$ac_header_preproc" >&6
  5224. # So? What about this header?
  5225. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5226. yes:no: )
  5227. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5228. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5229. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5230. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5231. ac_header_preproc=yes
  5232. ;;
  5233. no:yes:* )
  5234. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5235. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5236. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5237. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5238. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5239. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5240. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5241. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5242. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5243. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5244. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5245. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5246. (
  5247. cat <<\_ASBOX
  5248. ## ------------------------------------------ ##
  5249. ## Report this to the AC_PACKAGE_NAME lists. ##
  5250. ## ------------------------------------------ ##
  5251. _ASBOX
  5252. ) |
  5253. sed "s/^/$as_me: WARNING: /" >&2
  5254. ;;
  5255. esac
  5256. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5257. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5258. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5259. echo $ECHO_N "(cached) $ECHO_C" >&6
  5260. else
  5261. eval "$as_ac_Header=\$ac_header_preproc"
  5262. fi
  5263. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5264. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5265. fi
  5266. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5267. cat >>confdefs.h <<_ACEOF
  5268. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5269. _ACEOF
  5270. fi
  5271. done
  5272. #checkpoint
  5273. cat >confcache <<\_ACEOF
  5274. # This file is a shell script that caches the results of configure
  5275. # tests run on this system so they can be shared between configure
  5276. # scripts and configure runs, see configure's option --config-cache.
  5277. # It is not useful on other systems. If it contains results you don't
  5278. # want to keep, you may remove or edit it.
  5279. #
  5280. # config.status only pays attention to the cache file if you give it
  5281. # the --recheck option to rerun configure.
  5282. #
  5283. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5284. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5285. # following values.
  5286. _ACEOF
  5287. # The following way of writing the cache mishandles newlines in values,
  5288. # but we know of no workaround that is simple, portable, and efficient.
  5289. # So, don't put newlines in cache variables' values.
  5290. # Ultrix sh set writes to stderr and can't be redirected directly,
  5291. # and sets the high bit in the cache file unless we assign to the vars.
  5292. {
  5293. (set) 2>&1 |
  5294. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5295. *ac_space=\ *)
  5296. # `set' does not quote correctly, so add quotes (double-quote
  5297. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5298. sed -n \
  5299. "s/'/'\\\\''/g;
  5300. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5301. ;;
  5302. *)
  5303. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5304. sed -n \
  5305. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5306. ;;
  5307. esac;
  5308. } |
  5309. sed '
  5310. t clear
  5311. : clear
  5312. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5313. t end
  5314. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5315. : end' >>confcache
  5316. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5317. if test -w $cache_file; then
  5318. test "x$cache_file" != "x/dev/null"
  5319. cat confcache >$cache_file
  5320. else
  5321. echo "not updating unwritable cache $cache_file"
  5322. fi
  5323. fi
  5324. rm -f confcache
  5325. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5326. #AC_CHECK_HEADERS(zlib.h)
  5327. #EGG_CHECK_ZLIB
  5328. #EGG_CHECK_SSL
  5329. #AC_SUBST(SSL)dnl
  5330. # Checks for typedefs, structures, and compiler characteristics
  5331. echo "$as_me:$LINENO: checking for pid_t" >&5
  5332. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5333. if test "${ac_cv_type_pid_t+set}" = set; then
  5334. echo $ECHO_N "(cached) $ECHO_C" >&6
  5335. else
  5336. cat >conftest.$ac_ext <<_ACEOF
  5337. /* confdefs.h. */
  5338. _ACEOF
  5339. cat confdefs.h >>conftest.$ac_ext
  5340. cat >>conftest.$ac_ext <<_ACEOF
  5341. /* end confdefs.h. */
  5342. $ac_includes_default
  5343. int
  5344. main ()
  5345. {
  5346. if ((pid_t *) 0)
  5347. return 0;
  5348. if (sizeof (pid_t))
  5349. return 0;
  5350. ;
  5351. return 0;
  5352. }
  5353. _ACEOF
  5354. rm -f conftest.$ac_objext
  5355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5356. (eval $ac_compile) 2>conftest.er1
  5357. ac_status=$?
  5358. grep -v '^ *+' conftest.er1 >conftest.err
  5359. rm -f conftest.er1
  5360. cat conftest.err >&5
  5361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5362. (exit $ac_status); } &&
  5363. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5365. (eval $ac_try) 2>&5
  5366. ac_status=$?
  5367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5368. (exit $ac_status); }; } &&
  5369. { ac_try='test -s conftest.$ac_objext'
  5370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5371. (eval $ac_try) 2>&5
  5372. ac_status=$?
  5373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374. (exit $ac_status); }; }; then
  5375. ac_cv_type_pid_t=yes
  5376. else
  5377. echo "$as_me: failed program was:" >&5
  5378. sed 's/^/| /' conftest.$ac_ext >&5
  5379. ac_cv_type_pid_t=no
  5380. fi
  5381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5382. fi
  5383. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5384. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5385. if test $ac_cv_type_pid_t = yes; then
  5386. :
  5387. else
  5388. cat >>confdefs.h <<_ACEOF
  5389. #define pid_t int
  5390. _ACEOF
  5391. fi
  5392. echo "$as_me:$LINENO: checking for size_t" >&5
  5393. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5394. if test "${ac_cv_type_size_t+set}" = set; then
  5395. echo $ECHO_N "(cached) $ECHO_C" >&6
  5396. else
  5397. cat >conftest.$ac_ext <<_ACEOF
  5398. /* confdefs.h. */
  5399. _ACEOF
  5400. cat confdefs.h >>conftest.$ac_ext
  5401. cat >>conftest.$ac_ext <<_ACEOF
  5402. /* end confdefs.h. */
  5403. $ac_includes_default
  5404. int
  5405. main ()
  5406. {
  5407. if ((size_t *) 0)
  5408. return 0;
  5409. if (sizeof (size_t))
  5410. return 0;
  5411. ;
  5412. return 0;
  5413. }
  5414. _ACEOF
  5415. rm -f conftest.$ac_objext
  5416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5417. (eval $ac_compile) 2>conftest.er1
  5418. ac_status=$?
  5419. grep -v '^ *+' conftest.er1 >conftest.err
  5420. rm -f conftest.er1
  5421. cat conftest.err >&5
  5422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5423. (exit $ac_status); } &&
  5424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5426. (eval $ac_try) 2>&5
  5427. ac_status=$?
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); }; } &&
  5430. { ac_try='test -s conftest.$ac_objext'
  5431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5432. (eval $ac_try) 2>&5
  5433. ac_status=$?
  5434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5435. (exit $ac_status); }; }; then
  5436. ac_cv_type_size_t=yes
  5437. else
  5438. echo "$as_me: failed program was:" >&5
  5439. sed 's/^/| /' conftest.$ac_ext >&5
  5440. ac_cv_type_size_t=no
  5441. fi
  5442. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5443. fi
  5444. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5445. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5446. if test $ac_cv_type_size_t = yes; then
  5447. :
  5448. else
  5449. cat >>confdefs.h <<_ACEOF
  5450. #define size_t unsigned
  5451. _ACEOF
  5452. fi
  5453. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5454. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5455. if test "${ac_cv_type_uid_t+set}" = set; then
  5456. echo $ECHO_N "(cached) $ECHO_C" >&6
  5457. else
  5458. cat >conftest.$ac_ext <<_ACEOF
  5459. /* confdefs.h. */
  5460. _ACEOF
  5461. cat confdefs.h >>conftest.$ac_ext
  5462. cat >>conftest.$ac_ext <<_ACEOF
  5463. /* end confdefs.h. */
  5464. #include <sys/types.h>
  5465. _ACEOF
  5466. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5467. $EGREP "uid_t" >/dev/null 2>&1; then
  5468. ac_cv_type_uid_t=yes
  5469. else
  5470. ac_cv_type_uid_t=no
  5471. fi
  5472. rm -f conftest*
  5473. fi
  5474. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5475. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5476. if test $ac_cv_type_uid_t = no; then
  5477. cat >>confdefs.h <<\_ACEOF
  5478. #define uid_t int
  5479. _ACEOF
  5480. cat >>confdefs.h <<\_ACEOF
  5481. #define gid_t int
  5482. _ACEOF
  5483. fi
  5484. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5485. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5486. if test "${ac_cv_c_const+set}" = set; then
  5487. echo $ECHO_N "(cached) $ECHO_C" >&6
  5488. else
  5489. cat >conftest.$ac_ext <<_ACEOF
  5490. /* confdefs.h. */
  5491. _ACEOF
  5492. cat confdefs.h >>conftest.$ac_ext
  5493. cat >>conftest.$ac_ext <<_ACEOF
  5494. /* end confdefs.h. */
  5495. int
  5496. main ()
  5497. {
  5498. /* FIXME: Include the comments suggested by Paul. */
  5499. #ifndef __cplusplus
  5500. /* Ultrix mips cc rejects this. */
  5501. typedef int charset[2];
  5502. const charset x;
  5503. /* SunOS 4.1.1 cc rejects this. */
  5504. char const *const *ccp;
  5505. char **p;
  5506. /* NEC SVR4.0.2 mips cc rejects this. */
  5507. struct point {int x, y;};
  5508. static struct point const zero = {0,0};
  5509. /* AIX XL C 1.02.0.0 rejects this.
  5510. It does not let you subtract one const X* pointer from another in
  5511. an arm of an if-expression whose if-part is not a constant
  5512. expression */
  5513. const char *g = "string";
  5514. ccp = &g + (g ? g-g : 0);
  5515. /* HPUX 7.0 cc rejects these. */
  5516. ++ccp;
  5517. p = (char**) ccp;
  5518. ccp = (char const *const *) p;
  5519. { /* SCO 3.2v4 cc rejects this. */
  5520. char *t;
  5521. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5522. *t++ = 0;
  5523. }
  5524. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5525. int x[] = {25, 17};
  5526. const int *foo = &x[0];
  5527. ++foo;
  5528. }
  5529. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5530. typedef const int *iptr;
  5531. iptr p = 0;
  5532. ++p;
  5533. }
  5534. { /* AIX XL C 1.02.0.0 rejects this saying
  5535. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5536. struct s { int j; const int *ap[3]; };
  5537. struct s *b; b->j = 5;
  5538. }
  5539. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5540. const int foo = 10;
  5541. }
  5542. #endif
  5543. ;
  5544. return 0;
  5545. }
  5546. _ACEOF
  5547. rm -f conftest.$ac_objext
  5548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5549. (eval $ac_compile) 2>conftest.er1
  5550. ac_status=$?
  5551. grep -v '^ *+' conftest.er1 >conftest.err
  5552. rm -f conftest.er1
  5553. cat conftest.err >&5
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); } &&
  5556. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5558. (eval $ac_try) 2>&5
  5559. ac_status=$?
  5560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5561. (exit $ac_status); }; } &&
  5562. { ac_try='test -s conftest.$ac_objext'
  5563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5564. (eval $ac_try) 2>&5
  5565. ac_status=$?
  5566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); }; }; then
  5568. ac_cv_c_const=yes
  5569. else
  5570. echo "$as_me: failed program was:" >&5
  5571. sed 's/^/| /' conftest.$ac_ext >&5
  5572. ac_cv_c_const=no
  5573. fi
  5574. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5575. fi
  5576. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5577. echo "${ECHO_T}$ac_cv_c_const" >&6
  5578. if test $ac_cv_c_const = no; then
  5579. cat >>confdefs.h <<\_ACEOF
  5580. #define const
  5581. _ACEOF
  5582. fi
  5583. echo "$as_me:$LINENO: checking for working volatile" >&5
  5584. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5585. if test "${ac_cv_c_volatile+set}" = set; then
  5586. echo $ECHO_N "(cached) $ECHO_C" >&6
  5587. else
  5588. cat >conftest.$ac_ext <<_ACEOF
  5589. /* confdefs.h. */
  5590. _ACEOF
  5591. cat confdefs.h >>conftest.$ac_ext
  5592. cat >>conftest.$ac_ext <<_ACEOF
  5593. /* end confdefs.h. */
  5594. int
  5595. main ()
  5596. {
  5597. volatile int x;
  5598. int * volatile y;
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. rm -f conftest.$ac_objext
  5604. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5605. (eval $ac_compile) 2>conftest.er1
  5606. ac_status=$?
  5607. grep -v '^ *+' conftest.er1 >conftest.err
  5608. rm -f conftest.er1
  5609. cat conftest.err >&5
  5610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5611. (exit $ac_status); } &&
  5612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5614. (eval $ac_try) 2>&5
  5615. ac_status=$?
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); }; } &&
  5618. { ac_try='test -s conftest.$ac_objext'
  5619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5620. (eval $ac_try) 2>&5
  5621. ac_status=$?
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); }; }; then
  5624. ac_cv_c_volatile=yes
  5625. else
  5626. echo "$as_me: failed program was:" >&5
  5627. sed 's/^/| /' conftest.$ac_ext >&5
  5628. ac_cv_c_volatile=no
  5629. fi
  5630. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5631. fi
  5632. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5633. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5634. if test $ac_cv_c_volatile = no; then
  5635. cat >>confdefs.h <<\_ACEOF
  5636. #define volatile
  5637. _ACEOF
  5638. fi
  5639. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5640. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5641. if test "${ac_cv_c_bigendian+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. # See if sys/param.h defines the BYTE_ORDER macro.
  5645. cat >conftest.$ac_ext <<_ACEOF
  5646. /* confdefs.h. */
  5647. _ACEOF
  5648. cat confdefs.h >>conftest.$ac_ext
  5649. cat >>conftest.$ac_ext <<_ACEOF
  5650. /* end confdefs.h. */
  5651. #include <sys/types.h>
  5652. #include <sys/param.h>
  5653. int
  5654. main ()
  5655. {
  5656. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5657. bogus endian macros
  5658. #endif
  5659. ;
  5660. return 0;
  5661. }
  5662. _ACEOF
  5663. rm -f conftest.$ac_objext
  5664. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5665. (eval $ac_compile) 2>conftest.er1
  5666. ac_status=$?
  5667. grep -v '^ *+' conftest.er1 >conftest.err
  5668. rm -f conftest.er1
  5669. cat conftest.err >&5
  5670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5671. (exit $ac_status); } &&
  5672. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; } &&
  5678. { ac_try='test -s conftest.$ac_objext'
  5679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5680. (eval $ac_try) 2>&5
  5681. ac_status=$?
  5682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5683. (exit $ac_status); }; }; then
  5684. # It does; now see whether it defined to BIG_ENDIAN or not.
  5685. cat >conftest.$ac_ext <<_ACEOF
  5686. /* confdefs.h. */
  5687. _ACEOF
  5688. cat confdefs.h >>conftest.$ac_ext
  5689. cat >>conftest.$ac_ext <<_ACEOF
  5690. /* end confdefs.h. */
  5691. #include <sys/types.h>
  5692. #include <sys/param.h>
  5693. int
  5694. main ()
  5695. {
  5696. #if BYTE_ORDER != BIG_ENDIAN
  5697. not big endian
  5698. #endif
  5699. ;
  5700. return 0;
  5701. }
  5702. _ACEOF
  5703. rm -f conftest.$ac_objext
  5704. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5705. (eval $ac_compile) 2>conftest.er1
  5706. ac_status=$?
  5707. grep -v '^ *+' conftest.er1 >conftest.err
  5708. rm -f conftest.er1
  5709. cat conftest.err >&5
  5710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5711. (exit $ac_status); } &&
  5712. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5714. (eval $ac_try) 2>&5
  5715. ac_status=$?
  5716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5717. (exit $ac_status); }; } &&
  5718. { ac_try='test -s conftest.$ac_objext'
  5719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5720. (eval $ac_try) 2>&5
  5721. ac_status=$?
  5722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5723. (exit $ac_status); }; }; then
  5724. ac_cv_c_bigendian=yes
  5725. else
  5726. echo "$as_me: failed program was:" >&5
  5727. sed 's/^/| /' conftest.$ac_ext >&5
  5728. ac_cv_c_bigendian=no
  5729. fi
  5730. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5731. else
  5732. echo "$as_me: failed program was:" >&5
  5733. sed 's/^/| /' conftest.$ac_ext >&5
  5734. # It does not; compile a test program.
  5735. if test "$cross_compiling" = yes; then
  5736. # try to guess the endianness by grepping values into an object file
  5737. ac_cv_c_bigendian=unknown
  5738. cat >conftest.$ac_ext <<_ACEOF
  5739. /* confdefs.h. */
  5740. _ACEOF
  5741. cat confdefs.h >>conftest.$ac_ext
  5742. cat >>conftest.$ac_ext <<_ACEOF
  5743. /* end confdefs.h. */
  5744. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5745. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5746. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5747. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5748. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5749. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5750. int
  5751. main ()
  5752. {
  5753. _ascii (); _ebcdic ();
  5754. ;
  5755. return 0;
  5756. }
  5757. _ACEOF
  5758. rm -f conftest.$ac_objext
  5759. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5760. (eval $ac_compile) 2>conftest.er1
  5761. ac_status=$?
  5762. grep -v '^ *+' conftest.er1 >conftest.err
  5763. rm -f conftest.er1
  5764. cat conftest.err >&5
  5765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5766. (exit $ac_status); } &&
  5767. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  5773. { ac_try='test -s conftest.$ac_objext'
  5774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5775. (eval $ac_try) 2>&5
  5776. ac_status=$?
  5777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5778. (exit $ac_status); }; }; then
  5779. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5780. ac_cv_c_bigendian=yes
  5781. fi
  5782. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5783. if test "$ac_cv_c_bigendian" = unknown; then
  5784. ac_cv_c_bigendian=no
  5785. else
  5786. # finding both strings is unlikely to happen, but who knows?
  5787. ac_cv_c_bigendian=unknown
  5788. fi
  5789. fi
  5790. else
  5791. echo "$as_me: failed program was:" >&5
  5792. sed 's/^/| /' conftest.$ac_ext >&5
  5793. fi
  5794. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5795. else
  5796. cat >conftest.$ac_ext <<_ACEOF
  5797. /* confdefs.h. */
  5798. _ACEOF
  5799. cat confdefs.h >>conftest.$ac_ext
  5800. cat >>conftest.$ac_ext <<_ACEOF
  5801. /* end confdefs.h. */
  5802. int
  5803. main ()
  5804. {
  5805. /* Are we little or big endian? From Harbison&Steele. */
  5806. union
  5807. {
  5808. long l;
  5809. char c[sizeof (long)];
  5810. } u;
  5811. u.l = 1;
  5812. exit (u.c[sizeof (long) - 1] == 1);
  5813. }
  5814. _ACEOF
  5815. rm -f conftest$ac_exeext
  5816. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5817. (eval $ac_link) 2>&5
  5818. ac_status=$?
  5819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5820. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5822. (eval $ac_try) 2>&5
  5823. ac_status=$?
  5824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5825. (exit $ac_status); }; }; then
  5826. ac_cv_c_bigendian=no
  5827. else
  5828. echo "$as_me: program exited with status $ac_status" >&5
  5829. echo "$as_me: failed program was:" >&5
  5830. sed 's/^/| /' conftest.$ac_ext >&5
  5831. ( exit $ac_status )
  5832. ac_cv_c_bigendian=yes
  5833. fi
  5834. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5835. fi
  5836. fi
  5837. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5838. fi
  5839. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5840. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5841. case $ac_cv_c_bigendian in
  5842. yes)
  5843. cat >>confdefs.h <<\_ACEOF
  5844. #define WORDS_BIGENDIAN 1
  5845. _ACEOF
  5846. ;;
  5847. no)
  5848. ;;
  5849. *)
  5850. { { echo "$as_me:$LINENO: error: unknown endianness
  5851. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5852. echo "$as_me: error: unknown endianness
  5853. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5854. { (exit 1); exit 1; }; } ;;
  5855. esac
  5856. echo "$as_me:$LINENO: checking for inline" >&5
  5857. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  5858. if test "${ac_cv_c_inline+set}" = set; then
  5859. echo $ECHO_N "(cached) $ECHO_C" >&6
  5860. else
  5861. ac_cv_c_inline=no
  5862. for ac_kw in inline __inline__ __inline; do
  5863. cat >conftest.$ac_ext <<_ACEOF
  5864. /* confdefs.h. */
  5865. _ACEOF
  5866. cat confdefs.h >>conftest.$ac_ext
  5867. cat >>conftest.$ac_ext <<_ACEOF
  5868. /* end confdefs.h. */
  5869. #ifndef __cplusplus
  5870. typedef int foo_t;
  5871. static $ac_kw foo_t static_foo () {return 0; }
  5872. $ac_kw foo_t foo () {return 0; }
  5873. #endif
  5874. _ACEOF
  5875. rm -f conftest.$ac_objext
  5876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5877. (eval $ac_compile) 2>conftest.er1
  5878. ac_status=$?
  5879. grep -v '^ *+' conftest.er1 >conftest.err
  5880. rm -f conftest.er1
  5881. cat conftest.err >&5
  5882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883. (exit $ac_status); } &&
  5884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5886. (eval $ac_try) 2>&5
  5887. ac_status=$?
  5888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. (exit $ac_status); }; } &&
  5890. { ac_try='test -s conftest.$ac_objext'
  5891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5892. (eval $ac_try) 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); }; }; then
  5896. ac_cv_c_inline=$ac_kw; break
  5897. else
  5898. echo "$as_me: failed program was:" >&5
  5899. sed 's/^/| /' conftest.$ac_ext >&5
  5900. fi
  5901. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5902. done
  5903. fi
  5904. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  5905. echo "${ECHO_T}$ac_cv_c_inline" >&6
  5906. case $ac_cv_c_inline in
  5907. inline | yes) ;;
  5908. *)
  5909. case $ac_cv_c_inline in
  5910. no) ac_val=;;
  5911. *) ac_val=$ac_cv_c_inline;;
  5912. esac
  5913. cat >>confdefs.h <<_ACEOF
  5914. #ifndef __cplusplus
  5915. #define inline $ac_val
  5916. #endif
  5917. _ACEOF
  5918. ;;
  5919. esac
  5920. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5921. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5922. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5923. echo $ECHO_N "(cached) $ECHO_C" >&6
  5924. else
  5925. cat >conftest.$ac_ext <<_ACEOF
  5926. /* confdefs.h. */
  5927. _ACEOF
  5928. cat confdefs.h >>conftest.$ac_ext
  5929. cat >>conftest.$ac_ext <<_ACEOF
  5930. /* end confdefs.h. */
  5931. $ac_includes_default
  5932. int
  5933. main ()
  5934. {
  5935. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5936. test_array [0] = 0
  5937. ;
  5938. return 0;
  5939. }
  5940. _ACEOF
  5941. rm -f conftest.$ac_objext
  5942. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5943. (eval $ac_compile) 2>conftest.er1
  5944. ac_status=$?
  5945. grep -v '^ *+' conftest.er1 >conftest.err
  5946. rm -f conftest.er1
  5947. cat conftest.err >&5
  5948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); } &&
  5950. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5952. (eval $ac_try) 2>&5
  5953. ac_status=$?
  5954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5955. (exit $ac_status); }; } &&
  5956. { ac_try='test -s conftest.$ac_objext'
  5957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5958. (eval $ac_try) 2>&5
  5959. ac_status=$?
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); }; }; then
  5962. ac_cv_c_char_unsigned=no
  5963. else
  5964. echo "$as_me: failed program was:" >&5
  5965. sed 's/^/| /' conftest.$ac_ext >&5
  5966. ac_cv_c_char_unsigned=yes
  5967. fi
  5968. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5969. fi
  5970. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5971. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  5972. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5973. cat >>confdefs.h <<\_ACEOF
  5974. #define __CHAR_UNSIGNED__ 1
  5975. _ACEOF
  5976. fi
  5977. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  5978. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  5979. if test "${ac_cv_c_stringize+set}" = set; then
  5980. echo $ECHO_N "(cached) $ECHO_C" >&6
  5981. else
  5982. cat >conftest.$ac_ext <<_ACEOF
  5983. /* confdefs.h. */
  5984. _ACEOF
  5985. cat confdefs.h >>conftest.$ac_ext
  5986. cat >>conftest.$ac_ext <<_ACEOF
  5987. /* end confdefs.h. */
  5988. #define x(y) #y
  5989. char *s = x(teststring);
  5990. _ACEOF
  5991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5992. $EGREP "#teststring" >/dev/null 2>&1; then
  5993. ac_cv_c_stringize=no
  5994. else
  5995. ac_cv_c_stringize=yes
  5996. fi
  5997. rm -f conftest*
  5998. fi
  5999. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6000. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6001. if test $ac_cv_c_stringize = yes; then
  6002. cat >>confdefs.h <<\_ACEOF
  6003. #define HAVE_STRINGIZE 1
  6004. _ACEOF
  6005. fi
  6006. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6007. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6008. if test "$ac_cv_prog_cc_stdc" != no; then
  6009. echo "$as_me:$LINENO: result: yes" >&5
  6010. echo "${ECHO_T}yes" >&6
  6011. cat >>confdefs.h <<\_ACEOF
  6012. #define PROTOTYPES 1
  6013. _ACEOF
  6014. cat >>confdefs.h <<\_ACEOF
  6015. #define __PROTOTYPES 1
  6016. _ACEOF
  6017. else
  6018. echo "$as_me:$LINENO: result: no" >&5
  6019. echo "${ECHO_T}no" >&6
  6020. fi
  6021. #checkpoint
  6022. cat >confcache <<\_ACEOF
  6023. # This file is a shell script that caches the results of configure
  6024. # tests run on this system so they can be shared between configure
  6025. # scripts and configure runs, see configure's option --config-cache.
  6026. # It is not useful on other systems. If it contains results you don't
  6027. # want to keep, you may remove or edit it.
  6028. #
  6029. # config.status only pays attention to the cache file if you give it
  6030. # the --recheck option to rerun configure.
  6031. #
  6032. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6033. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6034. # following values.
  6035. _ACEOF
  6036. # The following way of writing the cache mishandles newlines in values,
  6037. # but we know of no workaround that is simple, portable, and efficient.
  6038. # So, don't put newlines in cache variables' values.
  6039. # Ultrix sh set writes to stderr and can't be redirected directly,
  6040. # and sets the high bit in the cache file unless we assign to the vars.
  6041. {
  6042. (set) 2>&1 |
  6043. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6044. *ac_space=\ *)
  6045. # `set' does not quote correctly, so add quotes (double-quote
  6046. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6047. sed -n \
  6048. "s/'/'\\\\''/g;
  6049. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6050. ;;
  6051. *)
  6052. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6053. sed -n \
  6054. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6055. ;;
  6056. esac;
  6057. } |
  6058. sed '
  6059. t clear
  6060. : clear
  6061. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6062. t end
  6063. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6064. : end' >>confcache
  6065. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6066. if test -w $cache_file; then
  6067. test "x$cache_file" != "x/dev/null"
  6068. cat confcache >$cache_file
  6069. else
  6070. echo "not updating unwritable cache $cache_file"
  6071. fi
  6072. fi
  6073. rm -f confcache
  6074. echo "$as_me:$LINENO: checking for int" >&5
  6075. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6076. if test "${ac_cv_type_int+set}" = set; then
  6077. echo $ECHO_N "(cached) $ECHO_C" >&6
  6078. else
  6079. cat >conftest.$ac_ext <<_ACEOF
  6080. /* confdefs.h. */
  6081. _ACEOF
  6082. cat confdefs.h >>conftest.$ac_ext
  6083. cat >>conftest.$ac_ext <<_ACEOF
  6084. /* end confdefs.h. */
  6085. $ac_includes_default
  6086. int
  6087. main ()
  6088. {
  6089. if ((int *) 0)
  6090. return 0;
  6091. if (sizeof (int))
  6092. return 0;
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. rm -f conftest.$ac_objext
  6098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6099. (eval $ac_compile) 2>conftest.er1
  6100. ac_status=$?
  6101. grep -v '^ *+' conftest.er1 >conftest.err
  6102. rm -f conftest.er1
  6103. cat conftest.err >&5
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); } &&
  6106. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6108. (eval $ac_try) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); }; } &&
  6112. { ac_try='test -s conftest.$ac_objext'
  6113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6114. (eval $ac_try) 2>&5
  6115. ac_status=$?
  6116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6117. (exit $ac_status); }; }; then
  6118. ac_cv_type_int=yes
  6119. else
  6120. echo "$as_me: failed program was:" >&5
  6121. sed 's/^/| /' conftest.$ac_ext >&5
  6122. ac_cv_type_int=no
  6123. fi
  6124. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6125. fi
  6126. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6127. echo "${ECHO_T}$ac_cv_type_int" >&6
  6128. echo "$as_me:$LINENO: checking size of int" >&5
  6129. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6130. if test "${ac_cv_sizeof_int+set}" = set; then
  6131. echo $ECHO_N "(cached) $ECHO_C" >&6
  6132. else
  6133. if test "$ac_cv_type_int" = yes; then
  6134. # The cast to unsigned long works around a bug in the HP C Compiler
  6135. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6136. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6137. # This bug is HP SR number 8606223364.
  6138. if test "$cross_compiling" = yes; then
  6139. # Depending upon the size, compute the lo and hi bounds.
  6140. cat >conftest.$ac_ext <<_ACEOF
  6141. /* confdefs.h. */
  6142. _ACEOF
  6143. cat confdefs.h >>conftest.$ac_ext
  6144. cat >>conftest.$ac_ext <<_ACEOF
  6145. /* end confdefs.h. */
  6146. $ac_includes_default
  6147. int
  6148. main ()
  6149. {
  6150. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6151. test_array [0] = 0
  6152. ;
  6153. return 0;
  6154. }
  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_lo=0 ac_mid=0
  6178. while :; do
  6179. cat >conftest.$ac_ext <<_ACEOF
  6180. /* confdefs.h. */
  6181. _ACEOF
  6182. cat confdefs.h >>conftest.$ac_ext
  6183. cat >>conftest.$ac_ext <<_ACEOF
  6184. /* end confdefs.h. */
  6185. $ac_includes_default
  6186. int
  6187. main ()
  6188. {
  6189. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6190. test_array [0] = 0
  6191. ;
  6192. return 0;
  6193. }
  6194. _ACEOF
  6195. rm -f conftest.$ac_objext
  6196. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6197. (eval $ac_compile) 2>conftest.er1
  6198. ac_status=$?
  6199. grep -v '^ *+' conftest.er1 >conftest.err
  6200. rm -f conftest.er1
  6201. cat conftest.err >&5
  6202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6203. (exit $ac_status); } &&
  6204. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6206. (eval $ac_try) 2>&5
  6207. ac_status=$?
  6208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6209. (exit $ac_status); }; } &&
  6210. { ac_try='test -s conftest.$ac_objext'
  6211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6212. (eval $ac_try) 2>&5
  6213. ac_status=$?
  6214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6215. (exit $ac_status); }; }; then
  6216. ac_hi=$ac_mid; break
  6217. else
  6218. echo "$as_me: failed program was:" >&5
  6219. sed 's/^/| /' conftest.$ac_ext >&5
  6220. ac_lo=`expr $ac_mid + 1`
  6221. if test $ac_lo -le $ac_mid; then
  6222. ac_lo= ac_hi=
  6223. break
  6224. fi
  6225. ac_mid=`expr 2 '*' $ac_mid + 1`
  6226. fi
  6227. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6228. done
  6229. else
  6230. echo "$as_me: failed program was:" >&5
  6231. sed 's/^/| /' conftest.$ac_ext >&5
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. $ac_includes_default
  6239. int
  6240. main ()
  6241. {
  6242. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6243. test_array [0] = 0
  6244. ;
  6245. return 0;
  6246. }
  6247. _ACEOF
  6248. rm -f conftest.$ac_objext
  6249. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6250. (eval $ac_compile) 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } &&
  6257. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6259. (eval $ac_try) 2>&5
  6260. ac_status=$?
  6261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. (exit $ac_status); }; } &&
  6263. { ac_try='test -s conftest.$ac_objext'
  6264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6265. (eval $ac_try) 2>&5
  6266. ac_status=$?
  6267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6268. (exit $ac_status); }; }; then
  6269. ac_hi=-1 ac_mid=-1
  6270. while :; do
  6271. cat >conftest.$ac_ext <<_ACEOF
  6272. /* confdefs.h. */
  6273. _ACEOF
  6274. cat confdefs.h >>conftest.$ac_ext
  6275. cat >>conftest.$ac_ext <<_ACEOF
  6276. /* end confdefs.h. */
  6277. $ac_includes_default
  6278. int
  6279. main ()
  6280. {
  6281. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6282. test_array [0] = 0
  6283. ;
  6284. return 0;
  6285. }
  6286. _ACEOF
  6287. rm -f conftest.$ac_objext
  6288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6289. (eval $ac_compile) 2>conftest.er1
  6290. ac_status=$?
  6291. grep -v '^ *+' conftest.er1 >conftest.err
  6292. rm -f conftest.er1
  6293. cat conftest.err >&5
  6294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295. (exit $ac_status); } &&
  6296. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6298. (eval $ac_try) 2>&5
  6299. ac_status=$?
  6300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6301. (exit $ac_status); }; } &&
  6302. { ac_try='test -s conftest.$ac_objext'
  6303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6304. (eval $ac_try) 2>&5
  6305. ac_status=$?
  6306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307. (exit $ac_status); }; }; then
  6308. ac_lo=$ac_mid; break
  6309. else
  6310. echo "$as_me: failed program was:" >&5
  6311. sed 's/^/| /' conftest.$ac_ext >&5
  6312. ac_hi=`expr '(' $ac_mid ')' - 1`
  6313. if test $ac_mid -le $ac_hi; then
  6314. ac_lo= ac_hi=
  6315. break
  6316. fi
  6317. ac_mid=`expr 2 '*' $ac_mid`
  6318. fi
  6319. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6320. done
  6321. else
  6322. echo "$as_me: failed program was:" >&5
  6323. sed 's/^/| /' conftest.$ac_ext >&5
  6324. ac_lo= ac_hi=
  6325. fi
  6326. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6327. fi
  6328. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6329. # Binary search between lo and hi bounds.
  6330. while test "x$ac_lo" != "x$ac_hi"; do
  6331. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6332. cat >conftest.$ac_ext <<_ACEOF
  6333. /* confdefs.h. */
  6334. _ACEOF
  6335. cat confdefs.h >>conftest.$ac_ext
  6336. cat >>conftest.$ac_ext <<_ACEOF
  6337. /* end confdefs.h. */
  6338. $ac_includes_default
  6339. int
  6340. main ()
  6341. {
  6342. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6343. test_array [0] = 0
  6344. ;
  6345. return 0;
  6346. }
  6347. _ACEOF
  6348. rm -f conftest.$ac_objext
  6349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6350. (eval $ac_compile) 2>conftest.er1
  6351. ac_status=$?
  6352. grep -v '^ *+' conftest.er1 >conftest.err
  6353. rm -f conftest.er1
  6354. cat conftest.err >&5
  6355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6356. (exit $ac_status); } &&
  6357. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6359. (eval $ac_try) 2>&5
  6360. ac_status=$?
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); }; } &&
  6363. { ac_try='test -s conftest.$ac_objext'
  6364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6365. (eval $ac_try) 2>&5
  6366. ac_status=$?
  6367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6368. (exit $ac_status); }; }; then
  6369. ac_hi=$ac_mid
  6370. else
  6371. echo "$as_me: failed program was:" >&5
  6372. sed 's/^/| /' conftest.$ac_ext >&5
  6373. ac_lo=`expr '(' $ac_mid ')' + 1`
  6374. fi
  6375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6376. done
  6377. case $ac_lo in
  6378. ?*) ac_cv_sizeof_int=$ac_lo;;
  6379. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6380. See \`config.log' for more details." >&5
  6381. echo "$as_me: error: cannot compute sizeof (int), 77
  6382. See \`config.log' for more details." >&2;}
  6383. { (exit 1); exit 1; }; } ;;
  6384. esac
  6385. else
  6386. if test "$cross_compiling" = yes; then
  6387. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6388. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6389. { (exit 1); exit 1; }; }
  6390. else
  6391. cat >conftest.$ac_ext <<_ACEOF
  6392. /* confdefs.h. */
  6393. _ACEOF
  6394. cat confdefs.h >>conftest.$ac_ext
  6395. cat >>conftest.$ac_ext <<_ACEOF
  6396. /* end confdefs.h. */
  6397. $ac_includes_default
  6398. long longval () { return (long) (sizeof (int)); }
  6399. unsigned long ulongval () { return (long) (sizeof (int)); }
  6400. #include <stdio.h>
  6401. #include <stdlib.h>
  6402. int
  6403. main ()
  6404. {
  6405. FILE *f = fopen ("conftest.val", "w");
  6406. if (! f)
  6407. exit (1);
  6408. if (((long) (sizeof (int))) < 0)
  6409. {
  6410. long i = longval ();
  6411. if (i != ((long) (sizeof (int))))
  6412. exit (1);
  6413. fprintf (f, "%ld\n", i);
  6414. }
  6415. else
  6416. {
  6417. unsigned long i = ulongval ();
  6418. if (i != ((long) (sizeof (int))))
  6419. exit (1);
  6420. fprintf (f, "%lu\n", i);
  6421. }
  6422. exit (ferror (f) || fclose (f) != 0);
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. rm -f conftest$ac_exeext
  6428. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6429. (eval $ac_link) 2>&5
  6430. ac_status=$?
  6431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6432. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6434. (eval $ac_try) 2>&5
  6435. ac_status=$?
  6436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6437. (exit $ac_status); }; }; then
  6438. ac_cv_sizeof_int=`cat conftest.val`
  6439. else
  6440. echo "$as_me: program exited with status $ac_status" >&5
  6441. echo "$as_me: failed program was:" >&5
  6442. sed 's/^/| /' conftest.$ac_ext >&5
  6443. ( exit $ac_status )
  6444. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6445. See \`config.log' for more details." >&5
  6446. echo "$as_me: error: cannot compute sizeof (int), 77
  6447. See \`config.log' for more details." >&2;}
  6448. { (exit 1); exit 1; }; }
  6449. fi
  6450. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6451. fi
  6452. fi
  6453. rm -f conftest.val
  6454. else
  6455. ac_cv_sizeof_int=0
  6456. fi
  6457. fi
  6458. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6459. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6460. cat >>confdefs.h <<_ACEOF
  6461. #define SIZEOF_INT $ac_cv_sizeof_int
  6462. _ACEOF
  6463. echo "$as_me:$LINENO: checking for short" >&5
  6464. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6465. if test "${ac_cv_type_short+set}" = set; then
  6466. echo $ECHO_N "(cached) $ECHO_C" >&6
  6467. else
  6468. cat >conftest.$ac_ext <<_ACEOF
  6469. /* confdefs.h. */
  6470. _ACEOF
  6471. cat confdefs.h >>conftest.$ac_ext
  6472. cat >>conftest.$ac_ext <<_ACEOF
  6473. /* end confdefs.h. */
  6474. $ac_includes_default
  6475. int
  6476. main ()
  6477. {
  6478. if ((short *) 0)
  6479. return 0;
  6480. if (sizeof (short))
  6481. return 0;
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. rm -f conftest.$ac_objext
  6487. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6488. (eval $ac_compile) 2>conftest.er1
  6489. ac_status=$?
  6490. grep -v '^ *+' conftest.er1 >conftest.err
  6491. rm -f conftest.er1
  6492. cat conftest.err >&5
  6493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6494. (exit $ac_status); } &&
  6495. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6496. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6497. (eval $ac_try) 2>&5
  6498. ac_status=$?
  6499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); }; } &&
  6501. { ac_try='test -s conftest.$ac_objext'
  6502. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6503. (eval $ac_try) 2>&5
  6504. ac_status=$?
  6505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6506. (exit $ac_status); }; }; then
  6507. ac_cv_type_short=yes
  6508. else
  6509. echo "$as_me: failed program was:" >&5
  6510. sed 's/^/| /' conftest.$ac_ext >&5
  6511. ac_cv_type_short=no
  6512. fi
  6513. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6514. fi
  6515. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6516. echo "${ECHO_T}$ac_cv_type_short" >&6
  6517. echo "$as_me:$LINENO: checking size of short" >&5
  6518. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6519. if test "${ac_cv_sizeof_short+set}" = set; then
  6520. echo $ECHO_N "(cached) $ECHO_C" >&6
  6521. else
  6522. if test "$ac_cv_type_short" = yes; then
  6523. # The cast to unsigned long works around a bug in the HP C Compiler
  6524. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6525. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6526. # This bug is HP SR number 8606223364.
  6527. if test "$cross_compiling" = yes; then
  6528. # Depending upon the size, compute the lo and hi bounds.
  6529. cat >conftest.$ac_ext <<_ACEOF
  6530. /* confdefs.h. */
  6531. _ACEOF
  6532. cat confdefs.h >>conftest.$ac_ext
  6533. cat >>conftest.$ac_ext <<_ACEOF
  6534. /* end confdefs.h. */
  6535. $ac_includes_default
  6536. int
  6537. main ()
  6538. {
  6539. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6540. test_array [0] = 0
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. rm -f conftest.$ac_objext
  6546. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6547. (eval $ac_compile) 2>conftest.er1
  6548. ac_status=$?
  6549. grep -v '^ *+' conftest.er1 >conftest.err
  6550. rm -f conftest.er1
  6551. cat conftest.err >&5
  6552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6553. (exit $ac_status); } &&
  6554. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6556. (eval $ac_try) 2>&5
  6557. ac_status=$?
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); }; } &&
  6560. { ac_try='test -s conftest.$ac_objext'
  6561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6562. (eval $ac_try) 2>&5
  6563. ac_status=$?
  6564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6565. (exit $ac_status); }; }; then
  6566. ac_lo=0 ac_mid=0
  6567. while :; do
  6568. cat >conftest.$ac_ext <<_ACEOF
  6569. /* confdefs.h. */
  6570. _ACEOF
  6571. cat confdefs.h >>conftest.$ac_ext
  6572. cat >>conftest.$ac_ext <<_ACEOF
  6573. /* end confdefs.h. */
  6574. $ac_includes_default
  6575. int
  6576. main ()
  6577. {
  6578. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6579. test_array [0] = 0
  6580. ;
  6581. return 0;
  6582. }
  6583. _ACEOF
  6584. rm -f conftest.$ac_objext
  6585. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6586. (eval $ac_compile) 2>conftest.er1
  6587. ac_status=$?
  6588. grep -v '^ *+' conftest.er1 >conftest.err
  6589. rm -f conftest.er1
  6590. cat conftest.err >&5
  6591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6592. (exit $ac_status); } &&
  6593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6595. (eval $ac_try) 2>&5
  6596. ac_status=$?
  6597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6598. (exit $ac_status); }; } &&
  6599. { ac_try='test -s conftest.$ac_objext'
  6600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6601. (eval $ac_try) 2>&5
  6602. ac_status=$?
  6603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6604. (exit $ac_status); }; }; then
  6605. ac_hi=$ac_mid; break
  6606. else
  6607. echo "$as_me: failed program was:" >&5
  6608. sed 's/^/| /' conftest.$ac_ext >&5
  6609. ac_lo=`expr $ac_mid + 1`
  6610. if test $ac_lo -le $ac_mid; then
  6611. ac_lo= ac_hi=
  6612. break
  6613. fi
  6614. ac_mid=`expr 2 '*' $ac_mid + 1`
  6615. fi
  6616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6617. done
  6618. else
  6619. echo "$as_me: failed program was:" >&5
  6620. sed 's/^/| /' conftest.$ac_ext >&5
  6621. cat >conftest.$ac_ext <<_ACEOF
  6622. /* confdefs.h. */
  6623. _ACEOF
  6624. cat confdefs.h >>conftest.$ac_ext
  6625. cat >>conftest.$ac_ext <<_ACEOF
  6626. /* end confdefs.h. */
  6627. $ac_includes_default
  6628. int
  6629. main ()
  6630. {
  6631. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6632. test_array [0] = 0
  6633. ;
  6634. return 0;
  6635. }
  6636. _ACEOF
  6637. rm -f conftest.$ac_objext
  6638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6639. (eval $ac_compile) 2>conftest.er1
  6640. ac_status=$?
  6641. grep -v '^ *+' conftest.er1 >conftest.err
  6642. rm -f conftest.er1
  6643. cat conftest.err >&5
  6644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6645. (exit $ac_status); } &&
  6646. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6648. (eval $ac_try) 2>&5
  6649. ac_status=$?
  6650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6651. (exit $ac_status); }; } &&
  6652. { ac_try='test -s conftest.$ac_objext'
  6653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6654. (eval $ac_try) 2>&5
  6655. ac_status=$?
  6656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6657. (exit $ac_status); }; }; then
  6658. ac_hi=-1 ac_mid=-1
  6659. while :; do
  6660. cat >conftest.$ac_ext <<_ACEOF
  6661. /* confdefs.h. */
  6662. _ACEOF
  6663. cat confdefs.h >>conftest.$ac_ext
  6664. cat >>conftest.$ac_ext <<_ACEOF
  6665. /* end confdefs.h. */
  6666. $ac_includes_default
  6667. int
  6668. main ()
  6669. {
  6670. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6671. test_array [0] = 0
  6672. ;
  6673. return 0;
  6674. }
  6675. _ACEOF
  6676. rm -f conftest.$ac_objext
  6677. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6678. (eval $ac_compile) 2>conftest.er1
  6679. ac_status=$?
  6680. grep -v '^ *+' conftest.er1 >conftest.err
  6681. rm -f conftest.er1
  6682. cat conftest.err >&5
  6683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6684. (exit $ac_status); } &&
  6685. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6687. (eval $ac_try) 2>&5
  6688. ac_status=$?
  6689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6690. (exit $ac_status); }; } &&
  6691. { ac_try='test -s conftest.$ac_objext'
  6692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6693. (eval $ac_try) 2>&5
  6694. ac_status=$?
  6695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6696. (exit $ac_status); }; }; then
  6697. ac_lo=$ac_mid; break
  6698. else
  6699. echo "$as_me: failed program was:" >&5
  6700. sed 's/^/| /' conftest.$ac_ext >&5
  6701. ac_hi=`expr '(' $ac_mid ')' - 1`
  6702. if test $ac_mid -le $ac_hi; then
  6703. ac_lo= ac_hi=
  6704. break
  6705. fi
  6706. ac_mid=`expr 2 '*' $ac_mid`
  6707. fi
  6708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6709. done
  6710. else
  6711. echo "$as_me: failed program was:" >&5
  6712. sed 's/^/| /' conftest.$ac_ext >&5
  6713. ac_lo= ac_hi=
  6714. fi
  6715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6716. fi
  6717. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6718. # Binary search between lo and hi bounds.
  6719. while test "x$ac_lo" != "x$ac_hi"; do
  6720. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6721. cat >conftest.$ac_ext <<_ACEOF
  6722. /* confdefs.h. */
  6723. _ACEOF
  6724. cat confdefs.h >>conftest.$ac_ext
  6725. cat >>conftest.$ac_ext <<_ACEOF
  6726. /* end confdefs.h. */
  6727. $ac_includes_default
  6728. int
  6729. main ()
  6730. {
  6731. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6732. test_array [0] = 0
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. rm -f conftest.$ac_objext
  6738. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6739. (eval $ac_compile) 2>conftest.er1
  6740. ac_status=$?
  6741. grep -v '^ *+' conftest.er1 >conftest.err
  6742. rm -f conftest.er1
  6743. cat conftest.err >&5
  6744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6745. (exit $ac_status); } &&
  6746. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6748. (eval $ac_try) 2>&5
  6749. ac_status=$?
  6750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6751. (exit $ac_status); }; } &&
  6752. { ac_try='test -s conftest.$ac_objext'
  6753. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6754. (eval $ac_try) 2>&5
  6755. ac_status=$?
  6756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6757. (exit $ac_status); }; }; then
  6758. ac_hi=$ac_mid
  6759. else
  6760. echo "$as_me: failed program was:" >&5
  6761. sed 's/^/| /' conftest.$ac_ext >&5
  6762. ac_lo=`expr '(' $ac_mid ')' + 1`
  6763. fi
  6764. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6765. done
  6766. case $ac_lo in
  6767. ?*) ac_cv_sizeof_short=$ac_lo;;
  6768. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6769. See \`config.log' for more details." >&5
  6770. echo "$as_me: error: cannot compute sizeof (short), 77
  6771. See \`config.log' for more details." >&2;}
  6772. { (exit 1); exit 1; }; } ;;
  6773. esac
  6774. else
  6775. if test "$cross_compiling" = yes; then
  6776. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6777. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6778. { (exit 1); exit 1; }; }
  6779. else
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. $ac_includes_default
  6787. long longval () { return (long) (sizeof (short)); }
  6788. unsigned long ulongval () { return (long) (sizeof (short)); }
  6789. #include <stdio.h>
  6790. #include <stdlib.h>
  6791. int
  6792. main ()
  6793. {
  6794. FILE *f = fopen ("conftest.val", "w");
  6795. if (! f)
  6796. exit (1);
  6797. if (((long) (sizeof (short))) < 0)
  6798. {
  6799. long i = longval ();
  6800. if (i != ((long) (sizeof (short))))
  6801. exit (1);
  6802. fprintf (f, "%ld\n", i);
  6803. }
  6804. else
  6805. {
  6806. unsigned long i = ulongval ();
  6807. if (i != ((long) (sizeof (short))))
  6808. exit (1);
  6809. fprintf (f, "%lu\n", i);
  6810. }
  6811. exit (ferror (f) || fclose (f) != 0);
  6812. ;
  6813. return 0;
  6814. }
  6815. _ACEOF
  6816. rm -f conftest$ac_exeext
  6817. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6818. (eval $ac_link) 2>&5
  6819. ac_status=$?
  6820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6823. (eval $ac_try) 2>&5
  6824. ac_status=$?
  6825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6826. (exit $ac_status); }; }; then
  6827. ac_cv_sizeof_short=`cat conftest.val`
  6828. else
  6829. echo "$as_me: program exited with status $ac_status" >&5
  6830. echo "$as_me: failed program was:" >&5
  6831. sed 's/^/| /' conftest.$ac_ext >&5
  6832. ( exit $ac_status )
  6833. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6834. See \`config.log' for more details." >&5
  6835. echo "$as_me: error: cannot compute sizeof (short), 77
  6836. See \`config.log' for more details." >&2;}
  6837. { (exit 1); exit 1; }; }
  6838. fi
  6839. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6840. fi
  6841. fi
  6842. rm -f conftest.val
  6843. else
  6844. ac_cv_sizeof_short=0
  6845. fi
  6846. fi
  6847. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6848. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6849. cat >>confdefs.h <<_ACEOF
  6850. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6851. _ACEOF
  6852. echo "$as_me:$LINENO: checking for long" >&5
  6853. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6854. if test "${ac_cv_type_long+set}" = set; then
  6855. echo $ECHO_N "(cached) $ECHO_C" >&6
  6856. else
  6857. cat >conftest.$ac_ext <<_ACEOF
  6858. /* confdefs.h. */
  6859. _ACEOF
  6860. cat confdefs.h >>conftest.$ac_ext
  6861. cat >>conftest.$ac_ext <<_ACEOF
  6862. /* end confdefs.h. */
  6863. $ac_includes_default
  6864. int
  6865. main ()
  6866. {
  6867. if ((long *) 0)
  6868. return 0;
  6869. if (sizeof (long))
  6870. return 0;
  6871. ;
  6872. return 0;
  6873. }
  6874. _ACEOF
  6875. rm -f conftest.$ac_objext
  6876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6877. (eval $ac_compile) 2>conftest.er1
  6878. ac_status=$?
  6879. grep -v '^ *+' conftest.er1 >conftest.err
  6880. rm -f conftest.er1
  6881. cat conftest.err >&5
  6882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6883. (exit $ac_status); } &&
  6884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6886. (eval $ac_try) 2>&5
  6887. ac_status=$?
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); }; } &&
  6890. { ac_try='test -s conftest.$ac_objext'
  6891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6892. (eval $ac_try) 2>&5
  6893. ac_status=$?
  6894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6895. (exit $ac_status); }; }; then
  6896. ac_cv_type_long=yes
  6897. else
  6898. echo "$as_me: failed program was:" >&5
  6899. sed 's/^/| /' conftest.$ac_ext >&5
  6900. ac_cv_type_long=no
  6901. fi
  6902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6903. fi
  6904. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6905. echo "${ECHO_T}$ac_cv_type_long" >&6
  6906. echo "$as_me:$LINENO: checking size of long" >&5
  6907. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6908. if test "${ac_cv_sizeof_long+set}" = set; then
  6909. echo $ECHO_N "(cached) $ECHO_C" >&6
  6910. else
  6911. if test "$ac_cv_type_long" = yes; then
  6912. # The cast to unsigned long works around a bug in the HP C Compiler
  6913. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6914. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6915. # This bug is HP SR number 8606223364.
  6916. if test "$cross_compiling" = yes; then
  6917. # Depending upon the size, compute the lo and hi bounds.
  6918. cat >conftest.$ac_ext <<_ACEOF
  6919. /* confdefs.h. */
  6920. _ACEOF
  6921. cat confdefs.h >>conftest.$ac_ext
  6922. cat >>conftest.$ac_ext <<_ACEOF
  6923. /* end confdefs.h. */
  6924. $ac_includes_default
  6925. int
  6926. main ()
  6927. {
  6928. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6929. test_array [0] = 0
  6930. ;
  6931. return 0;
  6932. }
  6933. _ACEOF
  6934. rm -f conftest.$ac_objext
  6935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6936. (eval $ac_compile) 2>conftest.er1
  6937. ac_status=$?
  6938. grep -v '^ *+' conftest.er1 >conftest.err
  6939. rm -f conftest.er1
  6940. cat conftest.err >&5
  6941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6942. (exit $ac_status); } &&
  6943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6945. (eval $ac_try) 2>&5
  6946. ac_status=$?
  6947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); }; } &&
  6949. { ac_try='test -s conftest.$ac_objext'
  6950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6951. (eval $ac_try) 2>&5
  6952. ac_status=$?
  6953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6954. (exit $ac_status); }; }; then
  6955. ac_lo=0 ac_mid=0
  6956. while :; do
  6957. cat >conftest.$ac_ext <<_ACEOF
  6958. /* confdefs.h. */
  6959. _ACEOF
  6960. cat confdefs.h >>conftest.$ac_ext
  6961. cat >>conftest.$ac_ext <<_ACEOF
  6962. /* end confdefs.h. */
  6963. $ac_includes_default
  6964. int
  6965. main ()
  6966. {
  6967. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6968. test_array [0] = 0
  6969. ;
  6970. return 0;
  6971. }
  6972. _ACEOF
  6973. rm -f conftest.$ac_objext
  6974. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6975. (eval $ac_compile) 2>conftest.er1
  6976. ac_status=$?
  6977. grep -v '^ *+' conftest.er1 >conftest.err
  6978. rm -f conftest.er1
  6979. cat conftest.err >&5
  6980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6981. (exit $ac_status); } &&
  6982. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6984. (eval $ac_try) 2>&5
  6985. ac_status=$?
  6986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6987. (exit $ac_status); }; } &&
  6988. { ac_try='test -s conftest.$ac_objext'
  6989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6990. (eval $ac_try) 2>&5
  6991. ac_status=$?
  6992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6993. (exit $ac_status); }; }; then
  6994. ac_hi=$ac_mid; break
  6995. else
  6996. echo "$as_me: failed program was:" >&5
  6997. sed 's/^/| /' conftest.$ac_ext >&5
  6998. ac_lo=`expr $ac_mid + 1`
  6999. if test $ac_lo -le $ac_mid; then
  7000. ac_lo= ac_hi=
  7001. break
  7002. fi
  7003. ac_mid=`expr 2 '*' $ac_mid + 1`
  7004. fi
  7005. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7006. done
  7007. else
  7008. echo "$as_me: failed program was:" >&5
  7009. sed 's/^/| /' conftest.$ac_ext >&5
  7010. cat >conftest.$ac_ext <<_ACEOF
  7011. /* confdefs.h. */
  7012. _ACEOF
  7013. cat confdefs.h >>conftest.$ac_ext
  7014. cat >>conftest.$ac_ext <<_ACEOF
  7015. /* end confdefs.h. */
  7016. $ac_includes_default
  7017. int
  7018. main ()
  7019. {
  7020. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7021. test_array [0] = 0
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. rm -f conftest.$ac_objext
  7027. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7028. (eval $ac_compile) 2>conftest.er1
  7029. ac_status=$?
  7030. grep -v '^ *+' conftest.er1 >conftest.err
  7031. rm -f conftest.er1
  7032. cat conftest.err >&5
  7033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7034. (exit $ac_status); } &&
  7035. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7037. (eval $ac_try) 2>&5
  7038. ac_status=$?
  7039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7040. (exit $ac_status); }; } &&
  7041. { ac_try='test -s conftest.$ac_objext'
  7042. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7043. (eval $ac_try) 2>&5
  7044. ac_status=$?
  7045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7046. (exit $ac_status); }; }; then
  7047. ac_hi=-1 ac_mid=-1
  7048. while :; do
  7049. cat >conftest.$ac_ext <<_ACEOF
  7050. /* confdefs.h. */
  7051. _ACEOF
  7052. cat confdefs.h >>conftest.$ac_ext
  7053. cat >>conftest.$ac_ext <<_ACEOF
  7054. /* end confdefs.h. */
  7055. $ac_includes_default
  7056. int
  7057. main ()
  7058. {
  7059. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7060. test_array [0] = 0
  7061. ;
  7062. return 0;
  7063. }
  7064. _ACEOF
  7065. rm -f conftest.$ac_objext
  7066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7067. (eval $ac_compile) 2>conftest.er1
  7068. ac_status=$?
  7069. grep -v '^ *+' conftest.er1 >conftest.err
  7070. rm -f conftest.er1
  7071. cat conftest.err >&5
  7072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); } &&
  7074. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7076. (eval $ac_try) 2>&5
  7077. ac_status=$?
  7078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7079. (exit $ac_status); }; } &&
  7080. { ac_try='test -s conftest.$ac_objext'
  7081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7082. (eval $ac_try) 2>&5
  7083. ac_status=$?
  7084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7085. (exit $ac_status); }; }; then
  7086. ac_lo=$ac_mid; break
  7087. else
  7088. echo "$as_me: failed program was:" >&5
  7089. sed 's/^/| /' conftest.$ac_ext >&5
  7090. ac_hi=`expr '(' $ac_mid ')' - 1`
  7091. if test $ac_mid -le $ac_hi; then
  7092. ac_lo= ac_hi=
  7093. break
  7094. fi
  7095. ac_mid=`expr 2 '*' $ac_mid`
  7096. fi
  7097. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7098. done
  7099. else
  7100. echo "$as_me: failed program was:" >&5
  7101. sed 's/^/| /' conftest.$ac_ext >&5
  7102. ac_lo= ac_hi=
  7103. fi
  7104. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7105. fi
  7106. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7107. # Binary search between lo and hi bounds.
  7108. while test "x$ac_lo" != "x$ac_hi"; do
  7109. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7110. cat >conftest.$ac_ext <<_ACEOF
  7111. /* confdefs.h. */
  7112. _ACEOF
  7113. cat confdefs.h >>conftest.$ac_ext
  7114. cat >>conftest.$ac_ext <<_ACEOF
  7115. /* end confdefs.h. */
  7116. $ac_includes_default
  7117. int
  7118. main ()
  7119. {
  7120. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7121. test_array [0] = 0
  7122. ;
  7123. return 0;
  7124. }
  7125. _ACEOF
  7126. rm -f conftest.$ac_objext
  7127. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7128. (eval $ac_compile) 2>conftest.er1
  7129. ac_status=$?
  7130. grep -v '^ *+' conftest.er1 >conftest.err
  7131. rm -f conftest.er1
  7132. cat conftest.err >&5
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); } &&
  7135. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7137. (eval $ac_try) 2>&5
  7138. ac_status=$?
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); }; } &&
  7141. { ac_try='test -s conftest.$ac_objext'
  7142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7143. (eval $ac_try) 2>&5
  7144. ac_status=$?
  7145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); }; }; then
  7147. ac_hi=$ac_mid
  7148. else
  7149. echo "$as_me: failed program was:" >&5
  7150. sed 's/^/| /' conftest.$ac_ext >&5
  7151. ac_lo=`expr '(' $ac_mid ')' + 1`
  7152. fi
  7153. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7154. done
  7155. case $ac_lo in
  7156. ?*) ac_cv_sizeof_long=$ac_lo;;
  7157. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7158. See \`config.log' for more details." >&5
  7159. echo "$as_me: error: cannot compute sizeof (long), 77
  7160. See \`config.log' for more details." >&2;}
  7161. { (exit 1); exit 1; }; } ;;
  7162. esac
  7163. else
  7164. if test "$cross_compiling" = yes; then
  7165. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7166. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7167. { (exit 1); exit 1; }; }
  7168. else
  7169. cat >conftest.$ac_ext <<_ACEOF
  7170. /* confdefs.h. */
  7171. _ACEOF
  7172. cat confdefs.h >>conftest.$ac_ext
  7173. cat >>conftest.$ac_ext <<_ACEOF
  7174. /* end confdefs.h. */
  7175. $ac_includes_default
  7176. long longval () { return (long) (sizeof (long)); }
  7177. unsigned long ulongval () { return (long) (sizeof (long)); }
  7178. #include <stdio.h>
  7179. #include <stdlib.h>
  7180. int
  7181. main ()
  7182. {
  7183. FILE *f = fopen ("conftest.val", "w");
  7184. if (! f)
  7185. exit (1);
  7186. if (((long) (sizeof (long))) < 0)
  7187. {
  7188. long i = longval ();
  7189. if (i != ((long) (sizeof (long))))
  7190. exit (1);
  7191. fprintf (f, "%ld\n", i);
  7192. }
  7193. else
  7194. {
  7195. unsigned long i = ulongval ();
  7196. if (i != ((long) (sizeof (long))))
  7197. exit (1);
  7198. fprintf (f, "%lu\n", i);
  7199. }
  7200. exit (ferror (f) || fclose (f) != 0);
  7201. ;
  7202. return 0;
  7203. }
  7204. _ACEOF
  7205. rm -f conftest$ac_exeext
  7206. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7207. (eval $ac_link) 2>&5
  7208. ac_status=$?
  7209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7210. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7211. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7212. (eval $ac_try) 2>&5
  7213. ac_status=$?
  7214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7215. (exit $ac_status); }; }; then
  7216. ac_cv_sizeof_long=`cat conftest.val`
  7217. else
  7218. echo "$as_me: program exited with status $ac_status" >&5
  7219. echo "$as_me: failed program was:" >&5
  7220. sed 's/^/| /' conftest.$ac_ext >&5
  7221. ( exit $ac_status )
  7222. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7223. See \`config.log' for more details." >&5
  7224. echo "$as_me: error: cannot compute sizeof (long), 77
  7225. See \`config.log' for more details." >&2;}
  7226. { (exit 1); exit 1; }; }
  7227. fi
  7228. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7229. fi
  7230. fi
  7231. rm -f conftest.val
  7232. else
  7233. ac_cv_sizeof_long=0
  7234. fi
  7235. fi
  7236. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7237. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7238. cat >>confdefs.h <<_ACEOF
  7239. #define SIZEOF_LONG $ac_cv_sizeof_long
  7240. _ACEOF
  7241. echo "$as_me:$LINENO: checking for long long" >&5
  7242. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7243. if test "${ac_cv_type_long_long+set}" = set; then
  7244. echo $ECHO_N "(cached) $ECHO_C" >&6
  7245. else
  7246. cat >conftest.$ac_ext <<_ACEOF
  7247. /* confdefs.h. */
  7248. _ACEOF
  7249. cat confdefs.h >>conftest.$ac_ext
  7250. cat >>conftest.$ac_ext <<_ACEOF
  7251. /* end confdefs.h. */
  7252. $ac_includes_default
  7253. int
  7254. main ()
  7255. {
  7256. if ((long long *) 0)
  7257. return 0;
  7258. if (sizeof (long long))
  7259. return 0;
  7260. ;
  7261. return 0;
  7262. }
  7263. _ACEOF
  7264. rm -f conftest.$ac_objext
  7265. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7266. (eval $ac_compile) 2>conftest.er1
  7267. ac_status=$?
  7268. grep -v '^ *+' conftest.er1 >conftest.err
  7269. rm -f conftest.er1
  7270. cat conftest.err >&5
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); } &&
  7273. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); }; } &&
  7279. { ac_try='test -s conftest.$ac_objext'
  7280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7281. (eval $ac_try) 2>&5
  7282. ac_status=$?
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. (exit $ac_status); }; }; then
  7285. ac_cv_type_long_long=yes
  7286. else
  7287. echo "$as_me: failed program was:" >&5
  7288. sed 's/^/| /' conftest.$ac_ext >&5
  7289. ac_cv_type_long_long=no
  7290. fi
  7291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7292. fi
  7293. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7294. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7295. echo "$as_me:$LINENO: checking size of long long" >&5
  7296. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7297. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7298. echo $ECHO_N "(cached) $ECHO_C" >&6
  7299. else
  7300. if test "$ac_cv_type_long_long" = yes; then
  7301. # The cast to unsigned long works around a bug in the HP C Compiler
  7302. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7303. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7304. # This bug is HP SR number 8606223364.
  7305. if test "$cross_compiling" = yes; then
  7306. # Depending upon the size, compute the lo and hi bounds.
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. $ac_includes_default
  7314. int
  7315. main ()
  7316. {
  7317. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7318. test_array [0] = 0
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext
  7324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7325. (eval $ac_compile) 2>conftest.er1
  7326. ac_status=$?
  7327. grep -v '^ *+' conftest.er1 >conftest.err
  7328. rm -f conftest.er1
  7329. cat conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); } &&
  7332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7334. (eval $ac_try) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); }; } &&
  7338. { ac_try='test -s conftest.$ac_objext'
  7339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7340. (eval $ac_try) 2>&5
  7341. ac_status=$?
  7342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7343. (exit $ac_status); }; }; then
  7344. ac_lo=0 ac_mid=0
  7345. while :; do
  7346. cat >conftest.$ac_ext <<_ACEOF
  7347. /* confdefs.h. */
  7348. _ACEOF
  7349. cat confdefs.h >>conftest.$ac_ext
  7350. cat >>conftest.$ac_ext <<_ACEOF
  7351. /* end confdefs.h. */
  7352. $ac_includes_default
  7353. int
  7354. main ()
  7355. {
  7356. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7357. test_array [0] = 0
  7358. ;
  7359. return 0;
  7360. }
  7361. _ACEOF
  7362. rm -f conftest.$ac_objext
  7363. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7364. (eval $ac_compile) 2>conftest.er1
  7365. ac_status=$?
  7366. grep -v '^ *+' conftest.er1 >conftest.err
  7367. rm -f conftest.er1
  7368. cat conftest.err >&5
  7369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7370. (exit $ac_status); } &&
  7371. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7373. (eval $ac_try) 2>&5
  7374. ac_status=$?
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); }; } &&
  7377. { ac_try='test -s conftest.$ac_objext'
  7378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7379. (eval $ac_try) 2>&5
  7380. ac_status=$?
  7381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7382. (exit $ac_status); }; }; then
  7383. ac_hi=$ac_mid; break
  7384. else
  7385. echo "$as_me: failed program was:" >&5
  7386. sed 's/^/| /' conftest.$ac_ext >&5
  7387. ac_lo=`expr $ac_mid + 1`
  7388. if test $ac_lo -le $ac_mid; then
  7389. ac_lo= ac_hi=
  7390. break
  7391. fi
  7392. ac_mid=`expr 2 '*' $ac_mid + 1`
  7393. fi
  7394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7395. done
  7396. else
  7397. echo "$as_me: failed program was:" >&5
  7398. sed 's/^/| /' conftest.$ac_ext >&5
  7399. cat >conftest.$ac_ext <<_ACEOF
  7400. /* confdefs.h. */
  7401. _ACEOF
  7402. cat confdefs.h >>conftest.$ac_ext
  7403. cat >>conftest.$ac_ext <<_ACEOF
  7404. /* end confdefs.h. */
  7405. $ac_includes_default
  7406. int
  7407. main ()
  7408. {
  7409. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7410. test_array [0] = 0
  7411. ;
  7412. return 0;
  7413. }
  7414. _ACEOF
  7415. rm -f conftest.$ac_objext
  7416. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7417. (eval $ac_compile) 2>conftest.er1
  7418. ac_status=$?
  7419. grep -v '^ *+' conftest.er1 >conftest.err
  7420. rm -f conftest.er1
  7421. cat conftest.err >&5
  7422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7423. (exit $ac_status); } &&
  7424. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7426. (eval $ac_try) 2>&5
  7427. ac_status=$?
  7428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. (exit $ac_status); }; } &&
  7430. { ac_try='test -s conftest.$ac_objext'
  7431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7432. (eval $ac_try) 2>&5
  7433. ac_status=$?
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. (exit $ac_status); }; }; then
  7436. ac_hi=-1 ac_mid=-1
  7437. while :; do
  7438. cat >conftest.$ac_ext <<_ACEOF
  7439. /* confdefs.h. */
  7440. _ACEOF
  7441. cat confdefs.h >>conftest.$ac_ext
  7442. cat >>conftest.$ac_ext <<_ACEOF
  7443. /* end confdefs.h. */
  7444. $ac_includes_default
  7445. int
  7446. main ()
  7447. {
  7448. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7449. test_array [0] = 0
  7450. ;
  7451. return 0;
  7452. }
  7453. _ACEOF
  7454. rm -f conftest.$ac_objext
  7455. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7456. (eval $ac_compile) 2>conftest.er1
  7457. ac_status=$?
  7458. grep -v '^ *+' conftest.er1 >conftest.err
  7459. rm -f conftest.er1
  7460. cat conftest.err >&5
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); } &&
  7463. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7465. (eval $ac_try) 2>&5
  7466. ac_status=$?
  7467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7468. (exit $ac_status); }; } &&
  7469. { ac_try='test -s conftest.$ac_objext'
  7470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7471. (eval $ac_try) 2>&5
  7472. ac_status=$?
  7473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7474. (exit $ac_status); }; }; then
  7475. ac_lo=$ac_mid; break
  7476. else
  7477. echo "$as_me: failed program was:" >&5
  7478. sed 's/^/| /' conftest.$ac_ext >&5
  7479. ac_hi=`expr '(' $ac_mid ')' - 1`
  7480. if test $ac_mid -le $ac_hi; then
  7481. ac_lo= ac_hi=
  7482. break
  7483. fi
  7484. ac_mid=`expr 2 '*' $ac_mid`
  7485. fi
  7486. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7487. done
  7488. else
  7489. echo "$as_me: failed program was:" >&5
  7490. sed 's/^/| /' conftest.$ac_ext >&5
  7491. ac_lo= ac_hi=
  7492. fi
  7493. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7494. fi
  7495. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7496. # Binary search between lo and hi bounds.
  7497. while test "x$ac_lo" != "x$ac_hi"; do
  7498. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7499. cat >conftest.$ac_ext <<_ACEOF
  7500. /* confdefs.h. */
  7501. _ACEOF
  7502. cat confdefs.h >>conftest.$ac_ext
  7503. cat >>conftest.$ac_ext <<_ACEOF
  7504. /* end confdefs.h. */
  7505. $ac_includes_default
  7506. int
  7507. main ()
  7508. {
  7509. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7510. test_array [0] = 0
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. rm -f conftest.$ac_objext
  7516. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7517. (eval $ac_compile) 2>conftest.er1
  7518. ac_status=$?
  7519. grep -v '^ *+' conftest.er1 >conftest.err
  7520. rm -f conftest.er1
  7521. cat conftest.err >&5
  7522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7523. (exit $ac_status); } &&
  7524. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7526. (eval $ac_try) 2>&5
  7527. ac_status=$?
  7528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7529. (exit $ac_status); }; } &&
  7530. { ac_try='test -s conftest.$ac_objext'
  7531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7532. (eval $ac_try) 2>&5
  7533. ac_status=$?
  7534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); }; }; then
  7536. ac_hi=$ac_mid
  7537. else
  7538. echo "$as_me: failed program was:" >&5
  7539. sed 's/^/| /' conftest.$ac_ext >&5
  7540. ac_lo=`expr '(' $ac_mid ')' + 1`
  7541. fi
  7542. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7543. done
  7544. case $ac_lo in
  7545. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7546. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7547. See \`config.log' for more details." >&5
  7548. echo "$as_me: error: cannot compute sizeof (long long), 77
  7549. See \`config.log' for more details." >&2;}
  7550. { (exit 1); exit 1; }; } ;;
  7551. esac
  7552. else
  7553. if test "$cross_compiling" = yes; then
  7554. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7555. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7556. { (exit 1); exit 1; }; }
  7557. else
  7558. cat >conftest.$ac_ext <<_ACEOF
  7559. /* confdefs.h. */
  7560. _ACEOF
  7561. cat confdefs.h >>conftest.$ac_ext
  7562. cat >>conftest.$ac_ext <<_ACEOF
  7563. /* end confdefs.h. */
  7564. $ac_includes_default
  7565. long longval () { return (long) (sizeof (long long)); }
  7566. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7567. #include <stdio.h>
  7568. #include <stdlib.h>
  7569. int
  7570. main ()
  7571. {
  7572. FILE *f = fopen ("conftest.val", "w");
  7573. if (! f)
  7574. exit (1);
  7575. if (((long) (sizeof (long long))) < 0)
  7576. {
  7577. long i = longval ();
  7578. if (i != ((long) (sizeof (long long))))
  7579. exit (1);
  7580. fprintf (f, "%ld\n", i);
  7581. }
  7582. else
  7583. {
  7584. unsigned long i = ulongval ();
  7585. if (i != ((long) (sizeof (long long))))
  7586. exit (1);
  7587. fprintf (f, "%lu\n", i);
  7588. }
  7589. exit (ferror (f) || fclose (f) != 0);
  7590. ;
  7591. return 0;
  7592. }
  7593. _ACEOF
  7594. rm -f conftest$ac_exeext
  7595. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7596. (eval $ac_link) 2>&5
  7597. ac_status=$?
  7598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7599. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7601. (eval $ac_try) 2>&5
  7602. ac_status=$?
  7603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); }; }; then
  7605. ac_cv_sizeof_long_long=`cat conftest.val`
  7606. else
  7607. echo "$as_me: program exited with status $ac_status" >&5
  7608. echo "$as_me: failed program was:" >&5
  7609. sed 's/^/| /' conftest.$ac_ext >&5
  7610. ( exit $ac_status )
  7611. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7612. See \`config.log' for more details." >&5
  7613. echo "$as_me: error: cannot compute sizeof (long long), 77
  7614. See \`config.log' for more details." >&2;}
  7615. { (exit 1); exit 1; }; }
  7616. fi
  7617. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7618. fi
  7619. fi
  7620. rm -f conftest.val
  7621. else
  7622. ac_cv_sizeof_long_long=0
  7623. fi
  7624. fi
  7625. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7626. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7627. cat >>confdefs.h <<_ACEOF
  7628. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7629. _ACEOF
  7630. if test $ac_cv_c_compiler_gnu = yes; then
  7631. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7632. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7633. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7634. echo $ECHO_N "(cached) $ECHO_C" >&6
  7635. else
  7636. ac_pattern="Autoconf.*'x'"
  7637. cat >conftest.$ac_ext <<_ACEOF
  7638. /* confdefs.h. */
  7639. _ACEOF
  7640. cat confdefs.h >>conftest.$ac_ext
  7641. cat >>conftest.$ac_ext <<_ACEOF
  7642. /* end confdefs.h. */
  7643. #include <sgtty.h>
  7644. Autoconf TIOCGETP
  7645. _ACEOF
  7646. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7647. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7648. ac_cv_prog_gcc_traditional=yes
  7649. else
  7650. ac_cv_prog_gcc_traditional=no
  7651. fi
  7652. rm -f conftest*
  7653. if test $ac_cv_prog_gcc_traditional = no; then
  7654. cat >conftest.$ac_ext <<_ACEOF
  7655. /* confdefs.h. */
  7656. _ACEOF
  7657. cat confdefs.h >>conftest.$ac_ext
  7658. cat >>conftest.$ac_ext <<_ACEOF
  7659. /* end confdefs.h. */
  7660. #include <termio.h>
  7661. Autoconf TCGETA
  7662. _ACEOF
  7663. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7664. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7665. ac_cv_prog_gcc_traditional=yes
  7666. fi
  7667. rm -f conftest*
  7668. fi
  7669. fi
  7670. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7671. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7672. if test $ac_cv_prog_gcc_traditional = yes; then
  7673. CC="$CC -traditional"
  7674. fi
  7675. fi
  7676. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7677. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7678. if test "${ac_cv_struct_tm+set}" = set; then
  7679. echo $ECHO_N "(cached) $ECHO_C" >&6
  7680. else
  7681. cat >conftest.$ac_ext <<_ACEOF
  7682. /* confdefs.h. */
  7683. _ACEOF
  7684. cat confdefs.h >>conftest.$ac_ext
  7685. cat >>conftest.$ac_ext <<_ACEOF
  7686. /* end confdefs.h. */
  7687. #include <sys/types.h>
  7688. #include <time.h>
  7689. int
  7690. main ()
  7691. {
  7692. struct tm *tp; tp->tm_sec;
  7693. ;
  7694. return 0;
  7695. }
  7696. _ACEOF
  7697. rm -f conftest.$ac_objext
  7698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7699. (eval $ac_compile) 2>conftest.er1
  7700. ac_status=$?
  7701. grep -v '^ *+' conftest.er1 >conftest.err
  7702. rm -f conftest.er1
  7703. cat conftest.err >&5
  7704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7705. (exit $ac_status); } &&
  7706. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7708. (eval $ac_try) 2>&5
  7709. ac_status=$?
  7710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7711. (exit $ac_status); }; } &&
  7712. { ac_try='test -s conftest.$ac_objext'
  7713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7714. (eval $ac_try) 2>&5
  7715. ac_status=$?
  7716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. (exit $ac_status); }; }; then
  7718. ac_cv_struct_tm=time.h
  7719. else
  7720. echo "$as_me: failed program was:" >&5
  7721. sed 's/^/| /' conftest.$ac_ext >&5
  7722. ac_cv_struct_tm=sys/time.h
  7723. fi
  7724. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7725. fi
  7726. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7727. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7728. if test $ac_cv_struct_tm = sys/time.h; then
  7729. cat >>confdefs.h <<\_ACEOF
  7730. #define TM_IN_SYS_TIME 1
  7731. _ACEOF
  7732. fi
  7733. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7734. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7735. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7736. echo $ECHO_N "(cached) $ECHO_C" >&6
  7737. else
  7738. cat >conftest.$ac_ext <<_ACEOF
  7739. /* confdefs.h. */
  7740. _ACEOF
  7741. cat confdefs.h >>conftest.$ac_ext
  7742. cat >>conftest.$ac_ext <<_ACEOF
  7743. /* end confdefs.h. */
  7744. #include <sys/types.h>
  7745. #include <$ac_cv_struct_tm>
  7746. int
  7747. main ()
  7748. {
  7749. static struct tm ac_aggr;
  7750. if (ac_aggr.tm_zone)
  7751. return 0;
  7752. ;
  7753. return 0;
  7754. }
  7755. _ACEOF
  7756. rm -f conftest.$ac_objext
  7757. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7758. (eval $ac_compile) 2>conftest.er1
  7759. ac_status=$?
  7760. grep -v '^ *+' conftest.er1 >conftest.err
  7761. rm -f conftest.er1
  7762. cat conftest.err >&5
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); } &&
  7765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7767. (eval $ac_try) 2>&5
  7768. ac_status=$?
  7769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. (exit $ac_status); }; } &&
  7771. { ac_try='test -s conftest.$ac_objext'
  7772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7773. (eval $ac_try) 2>&5
  7774. ac_status=$?
  7775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7776. (exit $ac_status); }; }; then
  7777. ac_cv_member_struct_tm_tm_zone=yes
  7778. else
  7779. echo "$as_me: failed program was:" >&5
  7780. sed 's/^/| /' conftest.$ac_ext >&5
  7781. cat >conftest.$ac_ext <<_ACEOF
  7782. /* confdefs.h. */
  7783. _ACEOF
  7784. cat confdefs.h >>conftest.$ac_ext
  7785. cat >>conftest.$ac_ext <<_ACEOF
  7786. /* end confdefs.h. */
  7787. #include <sys/types.h>
  7788. #include <$ac_cv_struct_tm>
  7789. int
  7790. main ()
  7791. {
  7792. static struct tm ac_aggr;
  7793. if (sizeof ac_aggr.tm_zone)
  7794. return 0;
  7795. ;
  7796. return 0;
  7797. }
  7798. _ACEOF
  7799. rm -f conftest.$ac_objext
  7800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7801. (eval $ac_compile) 2>conftest.er1
  7802. ac_status=$?
  7803. grep -v '^ *+' conftest.er1 >conftest.err
  7804. rm -f conftest.er1
  7805. cat conftest.err >&5
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } &&
  7808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7810. (eval $ac_try) 2>&5
  7811. ac_status=$?
  7812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); }; } &&
  7814. { ac_try='test -s conftest.$ac_objext'
  7815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7816. (eval $ac_try) 2>&5
  7817. ac_status=$?
  7818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7819. (exit $ac_status); }; }; then
  7820. ac_cv_member_struct_tm_tm_zone=yes
  7821. else
  7822. echo "$as_me: failed program was:" >&5
  7823. sed 's/^/| /' conftest.$ac_ext >&5
  7824. ac_cv_member_struct_tm_tm_zone=no
  7825. fi
  7826. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7827. fi
  7828. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7829. fi
  7830. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7831. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7832. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7833. cat >>confdefs.h <<_ACEOF
  7834. #define HAVE_STRUCT_TM_TM_ZONE 1
  7835. _ACEOF
  7836. fi
  7837. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7838. cat >>confdefs.h <<\_ACEOF
  7839. #define HAVE_TM_ZONE 1
  7840. _ACEOF
  7841. else
  7842. echo "$as_me:$LINENO: checking for tzname" >&5
  7843. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7844. if test "${ac_cv_var_tzname+set}" = set; then
  7845. echo $ECHO_N "(cached) $ECHO_C" >&6
  7846. else
  7847. cat >conftest.$ac_ext <<_ACEOF
  7848. /* confdefs.h. */
  7849. _ACEOF
  7850. cat confdefs.h >>conftest.$ac_ext
  7851. cat >>conftest.$ac_ext <<_ACEOF
  7852. /* end confdefs.h. */
  7853. #include <time.h>
  7854. #ifndef tzname /* For SGI. */
  7855. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7856. #endif
  7857. int
  7858. main ()
  7859. {
  7860. atoi(*tzname);
  7861. ;
  7862. return 0;
  7863. }
  7864. _ACEOF
  7865. rm -f conftest.$ac_objext conftest$ac_exeext
  7866. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7867. (eval $ac_link) 2>conftest.er1
  7868. ac_status=$?
  7869. grep -v '^ *+' conftest.er1 >conftest.err
  7870. rm -f conftest.er1
  7871. cat conftest.err >&5
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); } &&
  7874. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7875. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7876. (eval $ac_try) 2>&5
  7877. ac_status=$?
  7878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7879. (exit $ac_status); }; } &&
  7880. { ac_try='test -s conftest$ac_exeext'
  7881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7882. (eval $ac_try) 2>&5
  7883. ac_status=$?
  7884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7885. (exit $ac_status); }; }; then
  7886. ac_cv_var_tzname=yes
  7887. else
  7888. echo "$as_me: failed program was:" >&5
  7889. sed 's/^/| /' conftest.$ac_ext >&5
  7890. ac_cv_var_tzname=no
  7891. fi
  7892. rm -f conftest.err conftest.$ac_objext \
  7893. conftest$ac_exeext conftest.$ac_ext
  7894. fi
  7895. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7896. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7897. if test $ac_cv_var_tzname = yes; then
  7898. cat >>confdefs.h <<\_ACEOF
  7899. #define HAVE_TZNAME 1
  7900. _ACEOF
  7901. fi
  7902. fi
  7903. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7904. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7905. if test "${ac_cv_struct_tm+set}" = set; then
  7906. echo $ECHO_N "(cached) $ECHO_C" >&6
  7907. else
  7908. cat >conftest.$ac_ext <<_ACEOF
  7909. /* confdefs.h. */
  7910. _ACEOF
  7911. cat confdefs.h >>conftest.$ac_ext
  7912. cat >>conftest.$ac_ext <<_ACEOF
  7913. /* end confdefs.h. */
  7914. #include <sys/types.h>
  7915. #include <time.h>
  7916. int
  7917. main ()
  7918. {
  7919. struct tm *tp; tp->tm_sec;
  7920. ;
  7921. return 0;
  7922. }
  7923. _ACEOF
  7924. rm -f conftest.$ac_objext
  7925. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7926. (eval $ac_compile) 2>conftest.er1
  7927. ac_status=$?
  7928. grep -v '^ *+' conftest.er1 >conftest.err
  7929. rm -f conftest.er1
  7930. cat conftest.err >&5
  7931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7932. (exit $ac_status); } &&
  7933. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7934. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7935. (eval $ac_try) 2>&5
  7936. ac_status=$?
  7937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7938. (exit $ac_status); }; } &&
  7939. { ac_try='test -s conftest.$ac_objext'
  7940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7941. (eval $ac_try) 2>&5
  7942. ac_status=$?
  7943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7944. (exit $ac_status); }; }; then
  7945. ac_cv_struct_tm=time.h
  7946. else
  7947. echo "$as_me: failed program was:" >&5
  7948. sed 's/^/| /' conftest.$ac_ext >&5
  7949. ac_cv_struct_tm=sys/time.h
  7950. fi
  7951. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7952. fi
  7953. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7954. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7955. if test $ac_cv_struct_tm = sys/time.h; then
  7956. cat >>confdefs.h <<\_ACEOF
  7957. #define TM_IN_SYS_TIME 1
  7958. _ACEOF
  7959. fi
  7960. #checkpoint
  7961. cat >confcache <<\_ACEOF
  7962. # This file is a shell script that caches the results of configure
  7963. # tests run on this system so they can be shared between configure
  7964. # scripts and configure runs, see configure's option --config-cache.
  7965. # It is not useful on other systems. If it contains results you don't
  7966. # want to keep, you may remove or edit it.
  7967. #
  7968. # config.status only pays attention to the cache file if you give it
  7969. # the --recheck option to rerun configure.
  7970. #
  7971. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7972. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7973. # following values.
  7974. _ACEOF
  7975. # The following way of writing the cache mishandles newlines in values,
  7976. # but we know of no workaround that is simple, portable, and efficient.
  7977. # So, don't put newlines in cache variables' values.
  7978. # Ultrix sh set writes to stderr and can't be redirected directly,
  7979. # and sets the high bit in the cache file unless we assign to the vars.
  7980. {
  7981. (set) 2>&1 |
  7982. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7983. *ac_space=\ *)
  7984. # `set' does not quote correctly, so add quotes (double-quote
  7985. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7986. sed -n \
  7987. "s/'/'\\\\''/g;
  7988. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7989. ;;
  7990. *)
  7991. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7992. sed -n \
  7993. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7994. ;;
  7995. esac;
  7996. } |
  7997. sed '
  7998. t clear
  7999. : clear
  8000. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8001. t end
  8002. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8003. : end' >>confcache
  8004. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8005. if test -w $cache_file; then
  8006. test "x$cache_file" != "x/dev/null"
  8007. cat confcache >$cache_file
  8008. else
  8009. echo "not updating unwritable cache $cache_file"
  8010. fi
  8011. fi
  8012. rm -f confcache
  8013. # Checks for library functions
  8014. for ac_header in unistd.h vfork.h
  8015. do
  8016. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8017. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8018. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8019. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8020. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8021. echo $ECHO_N "(cached) $ECHO_C" >&6
  8022. fi
  8023. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8024. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8025. else
  8026. # Is the header compilable?
  8027. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8028. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8029. cat >conftest.$ac_ext <<_ACEOF
  8030. /* confdefs.h. */
  8031. _ACEOF
  8032. cat confdefs.h >>conftest.$ac_ext
  8033. cat >>conftest.$ac_ext <<_ACEOF
  8034. /* end confdefs.h. */
  8035. $ac_includes_default
  8036. #include <$ac_header>
  8037. _ACEOF
  8038. rm -f conftest.$ac_objext
  8039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8040. (eval $ac_compile) 2>conftest.er1
  8041. ac_status=$?
  8042. grep -v '^ *+' conftest.er1 >conftest.err
  8043. rm -f conftest.er1
  8044. cat conftest.err >&5
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); } &&
  8047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8049. (eval $ac_try) 2>&5
  8050. ac_status=$?
  8051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8052. (exit $ac_status); }; } &&
  8053. { ac_try='test -s conftest.$ac_objext'
  8054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8055. (eval $ac_try) 2>&5
  8056. ac_status=$?
  8057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8058. (exit $ac_status); }; }; then
  8059. ac_header_compiler=yes
  8060. else
  8061. echo "$as_me: failed program was:" >&5
  8062. sed 's/^/| /' conftest.$ac_ext >&5
  8063. ac_header_compiler=no
  8064. fi
  8065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8066. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8067. echo "${ECHO_T}$ac_header_compiler" >&6
  8068. # Is the header present?
  8069. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8070. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8071. cat >conftest.$ac_ext <<_ACEOF
  8072. /* confdefs.h. */
  8073. _ACEOF
  8074. cat confdefs.h >>conftest.$ac_ext
  8075. cat >>conftest.$ac_ext <<_ACEOF
  8076. /* end confdefs.h. */
  8077. #include <$ac_header>
  8078. _ACEOF
  8079. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8080. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8081. ac_status=$?
  8082. grep -v '^ *+' conftest.er1 >conftest.err
  8083. rm -f conftest.er1
  8084. cat conftest.err >&5
  8085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8086. (exit $ac_status); } >/dev/null; then
  8087. if test -s conftest.err; then
  8088. ac_cpp_err=$ac_c_preproc_warn_flag
  8089. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8090. else
  8091. ac_cpp_err=
  8092. fi
  8093. else
  8094. ac_cpp_err=yes
  8095. fi
  8096. if test -z "$ac_cpp_err"; then
  8097. ac_header_preproc=yes
  8098. else
  8099. echo "$as_me: failed program was:" >&5
  8100. sed 's/^/| /' conftest.$ac_ext >&5
  8101. ac_header_preproc=no
  8102. fi
  8103. rm -f conftest.err conftest.$ac_ext
  8104. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8105. echo "${ECHO_T}$ac_header_preproc" >&6
  8106. # So? What about this header?
  8107. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8108. yes:no: )
  8109. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8110. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8111. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8112. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8113. ac_header_preproc=yes
  8114. ;;
  8115. no:yes:* )
  8116. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8117. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8118. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8119. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8120. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8121. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8122. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8123. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8124. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8125. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8126. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8127. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8128. (
  8129. cat <<\_ASBOX
  8130. ## ------------------------------------------ ##
  8131. ## Report this to the AC_PACKAGE_NAME lists. ##
  8132. ## ------------------------------------------ ##
  8133. _ASBOX
  8134. ) |
  8135. sed "s/^/$as_me: WARNING: /" >&2
  8136. ;;
  8137. esac
  8138. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8139. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8140. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8141. echo $ECHO_N "(cached) $ECHO_C" >&6
  8142. else
  8143. eval "$as_ac_Header=\$ac_header_preproc"
  8144. fi
  8145. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8146. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8147. fi
  8148. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8149. cat >>confdefs.h <<_ACEOF
  8150. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8151. _ACEOF
  8152. fi
  8153. done
  8154. for ac_func in fork vfork
  8155. do
  8156. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8157. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8158. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8159. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8160. echo $ECHO_N "(cached) $ECHO_C" >&6
  8161. else
  8162. cat >conftest.$ac_ext <<_ACEOF
  8163. /* confdefs.h. */
  8164. _ACEOF
  8165. cat confdefs.h >>conftest.$ac_ext
  8166. cat >>conftest.$ac_ext <<_ACEOF
  8167. /* end confdefs.h. */
  8168. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8169. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8170. #define $ac_func innocuous_$ac_func
  8171. /* System header to define __stub macros and hopefully few prototypes,
  8172. which can conflict with char $ac_func (); below.
  8173. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8174. <limits.h> exists even on freestanding compilers. */
  8175. #ifdef __STDC__
  8176. # include <limits.h>
  8177. #else
  8178. # include <assert.h>
  8179. #endif
  8180. #undef $ac_func
  8181. /* Override any gcc2 internal prototype to avoid an error. */
  8182. #ifdef __cplusplus
  8183. extern "C"
  8184. {
  8185. #endif
  8186. /* We use char because int might match the return type of a gcc2
  8187. builtin and then its argument prototype would still apply. */
  8188. char $ac_func ();
  8189. /* The GNU C library defines this for functions which it implements
  8190. to always fail with ENOSYS. Some functions are actually named
  8191. something starting with __ and the normal name is an alias. */
  8192. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8193. choke me
  8194. #else
  8195. char (*f) () = $ac_func;
  8196. #endif
  8197. #ifdef __cplusplus
  8198. }
  8199. #endif
  8200. int
  8201. main ()
  8202. {
  8203. return f != $ac_func;
  8204. ;
  8205. return 0;
  8206. }
  8207. _ACEOF
  8208. rm -f conftest.$ac_objext conftest$ac_exeext
  8209. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8210. (eval $ac_link) 2>conftest.er1
  8211. ac_status=$?
  8212. grep -v '^ *+' conftest.er1 >conftest.err
  8213. rm -f conftest.er1
  8214. cat conftest.err >&5
  8215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8216. (exit $ac_status); } &&
  8217. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8219. (eval $ac_try) 2>&5
  8220. ac_status=$?
  8221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8222. (exit $ac_status); }; } &&
  8223. { ac_try='test -s conftest$ac_exeext'
  8224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8225. (eval $ac_try) 2>&5
  8226. ac_status=$?
  8227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8228. (exit $ac_status); }; }; then
  8229. eval "$as_ac_var=yes"
  8230. else
  8231. echo "$as_me: failed program was:" >&5
  8232. sed 's/^/| /' conftest.$ac_ext >&5
  8233. eval "$as_ac_var=no"
  8234. fi
  8235. rm -f conftest.err conftest.$ac_objext \
  8236. conftest$ac_exeext conftest.$ac_ext
  8237. fi
  8238. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8239. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8240. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8241. cat >>confdefs.h <<_ACEOF
  8242. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8243. _ACEOF
  8244. fi
  8245. done
  8246. if test "x$ac_cv_func_fork" = xyes; then
  8247. echo "$as_me:$LINENO: checking for working fork" >&5
  8248. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8249. if test "${ac_cv_func_fork_works+set}" = set; then
  8250. echo $ECHO_N "(cached) $ECHO_C" >&6
  8251. else
  8252. if test "$cross_compiling" = yes; then
  8253. ac_cv_func_fork_works=cross
  8254. else
  8255. cat >conftest.$ac_ext <<_ACEOF
  8256. /* By Ruediger Kuhlmann. */
  8257. #include <sys/types.h>
  8258. #if HAVE_UNISTD_H
  8259. # include <unistd.h>
  8260. #endif
  8261. /* Some systems only have a dummy stub for fork() */
  8262. int main ()
  8263. {
  8264. if (fork() < 0)
  8265. exit (1);
  8266. exit (0);
  8267. }
  8268. _ACEOF
  8269. rm -f conftest$ac_exeext
  8270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8271. (eval $ac_link) 2>&5
  8272. ac_status=$?
  8273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8274. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8276. (eval $ac_try) 2>&5
  8277. ac_status=$?
  8278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); }; }; then
  8280. ac_cv_func_fork_works=yes
  8281. else
  8282. echo "$as_me: program exited with status $ac_status" >&5
  8283. echo "$as_me: failed program was:" >&5
  8284. sed 's/^/| /' conftest.$ac_ext >&5
  8285. ( exit $ac_status )
  8286. ac_cv_func_fork_works=no
  8287. fi
  8288. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8289. fi
  8290. fi
  8291. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8292. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8293. else
  8294. ac_cv_func_fork_works=$ac_cv_func_fork
  8295. fi
  8296. if test "x$ac_cv_func_fork_works" = xcross; then
  8297. case $host in
  8298. *-*-amigaos* | *-*-msdosdjgpp*)
  8299. # Override, as these systems have only a dummy fork() stub
  8300. ac_cv_func_fork_works=no
  8301. ;;
  8302. *)
  8303. ac_cv_func_fork_works=yes
  8304. ;;
  8305. esac
  8306. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8307. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8308. fi
  8309. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8310. if test "x$ac_cv_func_vfork" = xyes; then
  8311. echo "$as_me:$LINENO: checking for working vfork" >&5
  8312. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8313. if test "${ac_cv_func_vfork_works+set}" = set; then
  8314. echo $ECHO_N "(cached) $ECHO_C" >&6
  8315. else
  8316. if test "$cross_compiling" = yes; then
  8317. ac_cv_func_vfork_works=cross
  8318. else
  8319. cat >conftest.$ac_ext <<_ACEOF
  8320. /* confdefs.h. */
  8321. _ACEOF
  8322. cat confdefs.h >>conftest.$ac_ext
  8323. cat >>conftest.$ac_ext <<_ACEOF
  8324. /* end confdefs.h. */
  8325. /* Thanks to Paul Eggert for this test. */
  8326. #include <stdio.h>
  8327. #include <stdlib.h>
  8328. #include <sys/types.h>
  8329. #include <sys/stat.h>
  8330. #include <sys/wait.h>
  8331. #if HAVE_UNISTD_H
  8332. # include <unistd.h>
  8333. #endif
  8334. #if HAVE_VFORK_H
  8335. # include <vfork.h>
  8336. #endif
  8337. /* On some sparc systems, changes by the child to local and incoming
  8338. argument registers are propagated back to the parent. The compiler
  8339. is told about this with #include <vfork.h>, but some compilers
  8340. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8341. static variable whose address is put into a register that is
  8342. clobbered by the vfork. */
  8343. static void
  8344. #ifdef __cplusplus
  8345. sparc_address_test (int arg)
  8346. # else
  8347. sparc_address_test (arg) int arg;
  8348. #endif
  8349. {
  8350. static pid_t child;
  8351. if (!child) {
  8352. child = vfork ();
  8353. if (child < 0) {
  8354. perror ("vfork");
  8355. _exit(2);
  8356. }
  8357. if (!child) {
  8358. arg = getpid();
  8359. write(-1, "", 0);
  8360. _exit (arg);
  8361. }
  8362. }
  8363. }
  8364. int
  8365. main ()
  8366. {
  8367. pid_t parent = getpid ();
  8368. pid_t child;
  8369. sparc_address_test (0);
  8370. child = vfork ();
  8371. if (child == 0) {
  8372. /* Here is another test for sparc vfork register problems. This
  8373. test uses lots of local variables, at least as many local
  8374. variables as main has allocated so far including compiler
  8375. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8376. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8377. reuse the register of parent for one of the local variables,
  8378. since it will think that parent can't possibly be used any more
  8379. in this routine. Assigning to the local variable will thus
  8380. munge parent in the parent process. */
  8381. pid_t
  8382. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8383. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8384. /* Convince the compiler that p..p7 are live; otherwise, it might
  8385. use the same hardware register for all 8 local variables. */
  8386. if (p != p1 || p != p2 || p != p3 || p != p4
  8387. || p != p5 || p != p6 || p != p7)
  8388. _exit(1);
  8389. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8390. from child file descriptors. If the child closes a descriptor
  8391. before it execs or exits, this munges the parent's descriptor
  8392. as well. Test for this by closing stdout in the child. */
  8393. _exit(close(fileno(stdout)) != 0);
  8394. } else {
  8395. int status;
  8396. struct stat st;
  8397. while (wait(&status) != child)
  8398. ;
  8399. exit(
  8400. /* Was there some problem with vforking? */
  8401. child < 0
  8402. /* Did the child fail? (This shouldn't happen.) */
  8403. || status
  8404. /* Did the vfork/compiler bug occur? */
  8405. || parent != getpid()
  8406. /* Did the file descriptor bug occur? */
  8407. || fstat(fileno(stdout), &st) != 0
  8408. );
  8409. }
  8410. }
  8411. _ACEOF
  8412. rm -f conftest$ac_exeext
  8413. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8414. (eval $ac_link) 2>&5
  8415. ac_status=$?
  8416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8417. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8419. (eval $ac_try) 2>&5
  8420. ac_status=$?
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); }; }; then
  8423. ac_cv_func_vfork_works=yes
  8424. else
  8425. echo "$as_me: program exited with status $ac_status" >&5
  8426. echo "$as_me: failed program was:" >&5
  8427. sed 's/^/| /' conftest.$ac_ext >&5
  8428. ( exit $ac_status )
  8429. ac_cv_func_vfork_works=no
  8430. fi
  8431. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8432. fi
  8433. fi
  8434. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8435. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8436. fi;
  8437. if test "x$ac_cv_func_fork_works" = xcross; then
  8438. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8439. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8440. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8441. fi
  8442. if test "x$ac_cv_func_vfork_works" = xyes; then
  8443. cat >>confdefs.h <<\_ACEOF
  8444. #define HAVE_WORKING_VFORK 1
  8445. _ACEOF
  8446. else
  8447. cat >>confdefs.h <<\_ACEOF
  8448. #define vfork fork
  8449. _ACEOF
  8450. fi
  8451. if test "x$ac_cv_func_fork_works" = xyes; then
  8452. cat >>confdefs.h <<\_ACEOF
  8453. #define HAVE_WORKING_FORK 1
  8454. _ACEOF
  8455. fi
  8456. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8457. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8458. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8459. echo $ECHO_N "(cached) $ECHO_C" >&6
  8460. else
  8461. rm -f conftest.sym conftest.file
  8462. echo >conftest.file
  8463. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8464. if test "$cross_compiling" = yes; then
  8465. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8466. else
  8467. cat >conftest.$ac_ext <<_ACEOF
  8468. /* confdefs.h. */
  8469. _ACEOF
  8470. cat confdefs.h >>conftest.$ac_ext
  8471. cat >>conftest.$ac_ext <<_ACEOF
  8472. /* end confdefs.h. */
  8473. $ac_includes_default
  8474. int
  8475. main ()
  8476. {
  8477. struct stat sbuf;
  8478. /* Linux will dereference the symlink and fail.
  8479. That is better in the sense that it means we will not
  8480. have to compile and use the lstat wrapper. */
  8481. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8482. ;
  8483. return 0;
  8484. }
  8485. _ACEOF
  8486. rm -f conftest$ac_exeext
  8487. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8488. (eval $ac_link) 2>&5
  8489. ac_status=$?
  8490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8491. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8493. (eval $ac_try) 2>&5
  8494. ac_status=$?
  8495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8496. (exit $ac_status); }; }; then
  8497. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8498. else
  8499. echo "$as_me: program exited with status $ac_status" >&5
  8500. echo "$as_me: failed program was:" >&5
  8501. sed 's/^/| /' conftest.$ac_ext >&5
  8502. ( exit $ac_status )
  8503. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8504. fi
  8505. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8506. fi
  8507. else
  8508. # If the `ln -s' command failed, then we probably don't even
  8509. # have an lstat function.
  8510. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8511. fi
  8512. rm -f conftest.sym conftest.file
  8513. fi
  8514. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8515. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8516. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8517. cat >>confdefs.h <<_ACEOF
  8518. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8519. _ACEOF
  8520. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8521. case $LIBOBJS in
  8522. "lstat.$ac_objext" | \
  8523. *" lstat.$ac_objext" | \
  8524. "lstat.$ac_objext "* | \
  8525. *" lstat.$ac_objext "* ) ;;
  8526. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8527. esac
  8528. fi
  8529. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8530. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8531. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8532. echo $ECHO_N "(cached) $ECHO_C" >&6
  8533. else
  8534. if test "$cross_compiling" = yes; then
  8535. ac_cv_func_lstat_empty_string_bug=yes
  8536. else
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. $ac_includes_default
  8544. int
  8545. main ()
  8546. {
  8547. struct stat sbuf;
  8548. exit (lstat ("", &sbuf) ? 1 : 0);
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. rm -f conftest$ac_exeext
  8554. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8555. (eval $ac_link) 2>&5
  8556. ac_status=$?
  8557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8560. (eval $ac_try) 2>&5
  8561. ac_status=$?
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. (exit $ac_status); }; }; then
  8564. ac_cv_func_lstat_empty_string_bug=yes
  8565. else
  8566. echo "$as_me: program exited with status $ac_status" >&5
  8567. echo "$as_me: failed program was:" >&5
  8568. sed 's/^/| /' conftest.$ac_ext >&5
  8569. ( exit $ac_status )
  8570. ac_cv_func_lstat_empty_string_bug=no
  8571. fi
  8572. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8573. fi
  8574. fi
  8575. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8576. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8577. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8578. case $LIBOBJS in
  8579. "lstat.$ac_objext" | \
  8580. *" lstat.$ac_objext" | \
  8581. "lstat.$ac_objext "* | \
  8582. *" lstat.$ac_objext "* ) ;;
  8583. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8584. esac
  8585. cat >>confdefs.h <<_ACEOF
  8586. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8587. _ACEOF
  8588. fi
  8589. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8590. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8591. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8592. echo $ECHO_N "(cached) $ECHO_C" >&6
  8593. else
  8594. rm -f conftest.sym conftest.file
  8595. echo >conftest.file
  8596. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8597. if test "$cross_compiling" = yes; then
  8598. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8599. else
  8600. cat >conftest.$ac_ext <<_ACEOF
  8601. /* confdefs.h. */
  8602. _ACEOF
  8603. cat confdefs.h >>conftest.$ac_ext
  8604. cat >>conftest.$ac_ext <<_ACEOF
  8605. /* end confdefs.h. */
  8606. $ac_includes_default
  8607. int
  8608. main ()
  8609. {
  8610. struct stat sbuf;
  8611. /* Linux will dereference the symlink and fail.
  8612. That is better in the sense that it means we will not
  8613. have to compile and use the lstat wrapper. */
  8614. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8615. ;
  8616. return 0;
  8617. }
  8618. _ACEOF
  8619. rm -f conftest$ac_exeext
  8620. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8621. (eval $ac_link) 2>&5
  8622. ac_status=$?
  8623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8624. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8626. (eval $ac_try) 2>&5
  8627. ac_status=$?
  8628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8629. (exit $ac_status); }; }; then
  8630. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8631. else
  8632. echo "$as_me: program exited with status $ac_status" >&5
  8633. echo "$as_me: failed program was:" >&5
  8634. sed 's/^/| /' conftest.$ac_ext >&5
  8635. ( exit $ac_status )
  8636. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8637. fi
  8638. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8639. fi
  8640. else
  8641. # If the `ln -s' command failed, then we probably don't even
  8642. # have an lstat function.
  8643. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8644. fi
  8645. rm -f conftest.sym conftest.file
  8646. fi
  8647. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8648. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8649. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8650. cat >>confdefs.h <<_ACEOF
  8651. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8652. _ACEOF
  8653. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8654. case $LIBOBJS in
  8655. "lstat.$ac_objext" | \
  8656. *" lstat.$ac_objext" | \
  8657. "lstat.$ac_objext "* | \
  8658. *" lstat.$ac_objext "* ) ;;
  8659. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8660. esac
  8661. fi
  8662. for ac_header in stdlib.h
  8663. do
  8664. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8665. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8666. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8667. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8668. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8669. echo $ECHO_N "(cached) $ECHO_C" >&6
  8670. fi
  8671. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8672. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8673. else
  8674. # Is the header compilable?
  8675. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8676. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8677. cat >conftest.$ac_ext <<_ACEOF
  8678. /* confdefs.h. */
  8679. _ACEOF
  8680. cat confdefs.h >>conftest.$ac_ext
  8681. cat >>conftest.$ac_ext <<_ACEOF
  8682. /* end confdefs.h. */
  8683. $ac_includes_default
  8684. #include <$ac_header>
  8685. _ACEOF
  8686. rm -f conftest.$ac_objext
  8687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8688. (eval $ac_compile) 2>conftest.er1
  8689. ac_status=$?
  8690. grep -v '^ *+' conftest.er1 >conftest.err
  8691. rm -f conftest.er1
  8692. cat conftest.err >&5
  8693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8694. (exit $ac_status); } &&
  8695. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8697. (eval $ac_try) 2>&5
  8698. ac_status=$?
  8699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8700. (exit $ac_status); }; } &&
  8701. { ac_try='test -s conftest.$ac_objext'
  8702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8703. (eval $ac_try) 2>&5
  8704. ac_status=$?
  8705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8706. (exit $ac_status); }; }; then
  8707. ac_header_compiler=yes
  8708. else
  8709. echo "$as_me: failed program was:" >&5
  8710. sed 's/^/| /' conftest.$ac_ext >&5
  8711. ac_header_compiler=no
  8712. fi
  8713. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8714. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8715. echo "${ECHO_T}$ac_header_compiler" >&6
  8716. # Is the header present?
  8717. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8718. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. #include <$ac_header>
  8726. _ACEOF
  8727. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8728. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8729. ac_status=$?
  8730. grep -v '^ *+' conftest.er1 >conftest.err
  8731. rm -f conftest.er1
  8732. cat conftest.err >&5
  8733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8734. (exit $ac_status); } >/dev/null; then
  8735. if test -s conftest.err; then
  8736. ac_cpp_err=$ac_c_preproc_warn_flag
  8737. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8738. else
  8739. ac_cpp_err=
  8740. fi
  8741. else
  8742. ac_cpp_err=yes
  8743. fi
  8744. if test -z "$ac_cpp_err"; then
  8745. ac_header_preproc=yes
  8746. else
  8747. echo "$as_me: failed program was:" >&5
  8748. sed 's/^/| /' conftest.$ac_ext >&5
  8749. ac_header_preproc=no
  8750. fi
  8751. rm -f conftest.err conftest.$ac_ext
  8752. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8753. echo "${ECHO_T}$ac_header_preproc" >&6
  8754. # So? What about this header?
  8755. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8756. yes:no: )
  8757. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8758. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8759. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8760. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8761. ac_header_preproc=yes
  8762. ;;
  8763. no:yes:* )
  8764. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8765. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8766. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8767. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8768. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8769. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8770. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8771. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8772. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8773. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8774. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8775. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8776. (
  8777. cat <<\_ASBOX
  8778. ## ------------------------------------------ ##
  8779. ## Report this to the AC_PACKAGE_NAME lists. ##
  8780. ## ------------------------------------------ ##
  8781. _ASBOX
  8782. ) |
  8783. sed "s/^/$as_me: WARNING: /" >&2
  8784. ;;
  8785. esac
  8786. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8787. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8788. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8789. echo $ECHO_N "(cached) $ECHO_C" >&6
  8790. else
  8791. eval "$as_ac_Header=\$ac_header_preproc"
  8792. fi
  8793. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8794. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8795. fi
  8796. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8797. cat >>confdefs.h <<_ACEOF
  8798. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8799. _ACEOF
  8800. fi
  8801. done
  8802. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8803. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8804. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8805. echo $ECHO_N "(cached) $ECHO_C" >&6
  8806. else
  8807. if test "$cross_compiling" = yes; then
  8808. ac_cv_func_malloc_0_nonnull=no
  8809. else
  8810. cat >conftest.$ac_ext <<_ACEOF
  8811. /* confdefs.h. */
  8812. _ACEOF
  8813. cat confdefs.h >>conftest.$ac_ext
  8814. cat >>conftest.$ac_ext <<_ACEOF
  8815. /* end confdefs.h. */
  8816. #if STDC_HEADERS || HAVE_STDLIB_H
  8817. # include <stdlib.h>
  8818. #else
  8819. char *malloc ();
  8820. #endif
  8821. int
  8822. main ()
  8823. {
  8824. exit (malloc (0) ? 0 : 1);
  8825. ;
  8826. return 0;
  8827. }
  8828. _ACEOF
  8829. rm -f conftest$ac_exeext
  8830. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8831. (eval $ac_link) 2>&5
  8832. ac_status=$?
  8833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8834. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8836. (eval $ac_try) 2>&5
  8837. ac_status=$?
  8838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); }; }; then
  8840. ac_cv_func_malloc_0_nonnull=yes
  8841. else
  8842. echo "$as_me: program exited with status $ac_status" >&5
  8843. echo "$as_me: failed program was:" >&5
  8844. sed 's/^/| /' conftest.$ac_ext >&5
  8845. ( exit $ac_status )
  8846. ac_cv_func_malloc_0_nonnull=no
  8847. fi
  8848. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8849. fi
  8850. fi
  8851. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8852. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8853. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8854. cat >>confdefs.h <<\_ACEOF
  8855. #define HAVE_MALLOC 1
  8856. _ACEOF
  8857. else
  8858. cat >>confdefs.h <<\_ACEOF
  8859. #define HAVE_MALLOC 0
  8860. _ACEOF
  8861. case $LIBOBJS in
  8862. "malloc.$ac_objext" | \
  8863. *" malloc.$ac_objext" | \
  8864. "malloc.$ac_objext "* | \
  8865. *" malloc.$ac_objext "* ) ;;
  8866. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8867. esac
  8868. cat >>confdefs.h <<\_ACEOF
  8869. #define malloc rpl_malloc
  8870. _ACEOF
  8871. fi
  8872. for ac_header in stdlib.h sys/time.h unistd.h
  8873. do
  8874. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8875. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8876. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8877. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8878. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8879. echo $ECHO_N "(cached) $ECHO_C" >&6
  8880. fi
  8881. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8882. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8883. else
  8884. # Is the header compilable?
  8885. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8886. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8887. cat >conftest.$ac_ext <<_ACEOF
  8888. /* confdefs.h. */
  8889. _ACEOF
  8890. cat confdefs.h >>conftest.$ac_ext
  8891. cat >>conftest.$ac_ext <<_ACEOF
  8892. /* end confdefs.h. */
  8893. $ac_includes_default
  8894. #include <$ac_header>
  8895. _ACEOF
  8896. rm -f conftest.$ac_objext
  8897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8898. (eval $ac_compile) 2>conftest.er1
  8899. ac_status=$?
  8900. grep -v '^ *+' conftest.er1 >conftest.err
  8901. rm -f conftest.er1
  8902. cat conftest.err >&5
  8903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8904. (exit $ac_status); } &&
  8905. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8907. (eval $ac_try) 2>&5
  8908. ac_status=$?
  8909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8910. (exit $ac_status); }; } &&
  8911. { ac_try='test -s conftest.$ac_objext'
  8912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8913. (eval $ac_try) 2>&5
  8914. ac_status=$?
  8915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8916. (exit $ac_status); }; }; then
  8917. ac_header_compiler=yes
  8918. else
  8919. echo "$as_me: failed program was:" >&5
  8920. sed 's/^/| /' conftest.$ac_ext >&5
  8921. ac_header_compiler=no
  8922. fi
  8923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8924. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8925. echo "${ECHO_T}$ac_header_compiler" >&6
  8926. # Is the header present?
  8927. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8928. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8929. cat >conftest.$ac_ext <<_ACEOF
  8930. /* confdefs.h. */
  8931. _ACEOF
  8932. cat confdefs.h >>conftest.$ac_ext
  8933. cat >>conftest.$ac_ext <<_ACEOF
  8934. /* end confdefs.h. */
  8935. #include <$ac_header>
  8936. _ACEOF
  8937. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8938. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. (exit $ac_status); } >/dev/null; then
  8945. if test -s conftest.err; then
  8946. ac_cpp_err=$ac_c_preproc_warn_flag
  8947. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8948. else
  8949. ac_cpp_err=
  8950. fi
  8951. else
  8952. ac_cpp_err=yes
  8953. fi
  8954. if test -z "$ac_cpp_err"; then
  8955. ac_header_preproc=yes
  8956. else
  8957. echo "$as_me: failed program was:" >&5
  8958. sed 's/^/| /' conftest.$ac_ext >&5
  8959. ac_header_preproc=no
  8960. fi
  8961. rm -f conftest.err conftest.$ac_ext
  8962. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8963. echo "${ECHO_T}$ac_header_preproc" >&6
  8964. # So? What about this header?
  8965. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8966. yes:no: )
  8967. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8968. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8969. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8970. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8971. ac_header_preproc=yes
  8972. ;;
  8973. no:yes:* )
  8974. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8975. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8976. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8977. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8978. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8979. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8980. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8981. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8982. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8983. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8984. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8985. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8986. (
  8987. cat <<\_ASBOX
  8988. ## ------------------------------------------ ##
  8989. ## Report this to the AC_PACKAGE_NAME lists. ##
  8990. ## ------------------------------------------ ##
  8991. _ASBOX
  8992. ) |
  8993. sed "s/^/$as_me: WARNING: /" >&2
  8994. ;;
  8995. esac
  8996. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8997. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8998. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8999. echo $ECHO_N "(cached) $ECHO_C" >&6
  9000. else
  9001. eval "$as_ac_Header=\$ac_header_preproc"
  9002. fi
  9003. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9004. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9005. fi
  9006. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9007. cat >>confdefs.h <<_ACEOF
  9008. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9009. _ACEOF
  9010. fi
  9011. done
  9012. for ac_func in alarm
  9013. do
  9014. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9015. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9016. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9017. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9018. echo $ECHO_N "(cached) $ECHO_C" >&6
  9019. else
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9027. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9028. #define $ac_func innocuous_$ac_func
  9029. /* System header to define __stub macros and hopefully few prototypes,
  9030. which can conflict with char $ac_func (); below.
  9031. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9032. <limits.h> exists even on freestanding compilers. */
  9033. #ifdef __STDC__
  9034. # include <limits.h>
  9035. #else
  9036. # include <assert.h>
  9037. #endif
  9038. #undef $ac_func
  9039. /* Override any gcc2 internal prototype to avoid an error. */
  9040. #ifdef __cplusplus
  9041. extern "C"
  9042. {
  9043. #endif
  9044. /* We use char because int might match the return type of a gcc2
  9045. builtin and then its argument prototype would still apply. */
  9046. char $ac_func ();
  9047. /* The GNU C library defines this for functions which it implements
  9048. to always fail with ENOSYS. Some functions are actually named
  9049. something starting with __ and the normal name is an alias. */
  9050. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9051. choke me
  9052. #else
  9053. char (*f) () = $ac_func;
  9054. #endif
  9055. #ifdef __cplusplus
  9056. }
  9057. #endif
  9058. int
  9059. main ()
  9060. {
  9061. return f != $ac_func;
  9062. ;
  9063. return 0;
  9064. }
  9065. _ACEOF
  9066. rm -f conftest.$ac_objext conftest$ac_exeext
  9067. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9068. (eval $ac_link) 2>conftest.er1
  9069. ac_status=$?
  9070. grep -v '^ *+' conftest.er1 >conftest.err
  9071. rm -f conftest.er1
  9072. cat conftest.err >&5
  9073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9074. (exit $ac_status); } &&
  9075. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9077. (eval $ac_try) 2>&5
  9078. ac_status=$?
  9079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9080. (exit $ac_status); }; } &&
  9081. { ac_try='test -s conftest$ac_exeext'
  9082. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9083. (eval $ac_try) 2>&5
  9084. ac_status=$?
  9085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9086. (exit $ac_status); }; }; then
  9087. eval "$as_ac_var=yes"
  9088. else
  9089. echo "$as_me: failed program was:" >&5
  9090. sed 's/^/| /' conftest.$ac_ext >&5
  9091. eval "$as_ac_var=no"
  9092. fi
  9093. rm -f conftest.err conftest.$ac_objext \
  9094. conftest$ac_exeext conftest.$ac_ext
  9095. fi
  9096. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9097. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9098. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9099. cat >>confdefs.h <<_ACEOF
  9100. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9101. _ACEOF
  9102. fi
  9103. done
  9104. echo "$as_me:$LINENO: checking for working mktime" >&5
  9105. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9106. if test "${ac_cv_func_working_mktime+set}" = set; then
  9107. echo $ECHO_N "(cached) $ECHO_C" >&6
  9108. else
  9109. if test "$cross_compiling" = yes; then
  9110. ac_cv_func_working_mktime=no
  9111. else
  9112. cat >conftest.$ac_ext <<_ACEOF
  9113. /* confdefs.h. */
  9114. _ACEOF
  9115. cat confdefs.h >>conftest.$ac_ext
  9116. cat >>conftest.$ac_ext <<_ACEOF
  9117. /* end confdefs.h. */
  9118. /* Test program from Paul Eggert and Tony Leneis. */
  9119. #if TIME_WITH_SYS_TIME
  9120. # include <sys/time.h>
  9121. # include <time.h>
  9122. #else
  9123. # if HAVE_SYS_TIME_H
  9124. # include <sys/time.h>
  9125. # else
  9126. # include <time.h>
  9127. # endif
  9128. #endif
  9129. #if HAVE_STDLIB_H
  9130. # include <stdlib.h>
  9131. #endif
  9132. #if HAVE_UNISTD_H
  9133. # include <unistd.h>
  9134. #endif
  9135. #if !HAVE_ALARM
  9136. # define alarm(X) /* empty */
  9137. #endif
  9138. /* Work around redefinition to rpl_putenv by other config tests. */
  9139. #undef putenv
  9140. static time_t time_t_max;
  9141. static time_t time_t_min;
  9142. /* Values we'll use to set the TZ environment variable. */
  9143. static char *tz_strings[] = {
  9144. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9145. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9146. };
  9147. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9148. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9149. Based on a problem report from Andreas Jaeger. */
  9150. static void
  9151. spring_forward_gap ()
  9152. {
  9153. /* glibc (up to about 1998-10-07) failed this test. */
  9154. struct tm tm;
  9155. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9156. instead of "TZ=America/Vancouver" in order to detect the bug even
  9157. on systems that don't support the Olson extension, or don't have the
  9158. full zoneinfo tables installed. */
  9159. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9160. tm.tm_year = 98;
  9161. tm.tm_mon = 3;
  9162. tm.tm_mday = 5;
  9163. tm.tm_hour = 2;
  9164. tm.tm_min = 0;
  9165. tm.tm_sec = 0;
  9166. tm.tm_isdst = -1;
  9167. if (mktime (&tm) == (time_t)-1)
  9168. exit (1);
  9169. }
  9170. static void
  9171. mktime_test1 (now)
  9172. time_t now;
  9173. {
  9174. struct tm *lt;
  9175. if ((lt = localtime (&now)) && mktime (lt) != now)
  9176. exit (1);
  9177. }
  9178. static void
  9179. mktime_test (now)
  9180. time_t now;
  9181. {
  9182. mktime_test1 (now);
  9183. mktime_test1 ((time_t) (time_t_max - now));
  9184. mktime_test1 ((time_t) (time_t_min + now));
  9185. }
  9186. static void
  9187. irix_6_4_bug ()
  9188. {
  9189. /* Based on code from Ariel Faigon. */
  9190. struct tm tm;
  9191. tm.tm_year = 96;
  9192. tm.tm_mon = 3;
  9193. tm.tm_mday = 0;
  9194. tm.tm_hour = 0;
  9195. tm.tm_min = 0;
  9196. tm.tm_sec = 0;
  9197. tm.tm_isdst = -1;
  9198. mktime (&tm);
  9199. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9200. exit (1);
  9201. }
  9202. static void
  9203. bigtime_test (j)
  9204. int j;
  9205. {
  9206. struct tm tm;
  9207. time_t now;
  9208. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9209. now = mktime (&tm);
  9210. if (now != (time_t) -1)
  9211. {
  9212. struct tm *lt = localtime (&now);
  9213. if (! (lt
  9214. && lt->tm_year == tm.tm_year
  9215. && lt->tm_mon == tm.tm_mon
  9216. && lt->tm_mday == tm.tm_mday
  9217. && lt->tm_hour == tm.tm_hour
  9218. && lt->tm_min == tm.tm_min
  9219. && lt->tm_sec == tm.tm_sec
  9220. && lt->tm_yday == tm.tm_yday
  9221. && lt->tm_wday == tm.tm_wday
  9222. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9223. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9224. exit (1);
  9225. }
  9226. }
  9227. int
  9228. main ()
  9229. {
  9230. time_t t, delta;
  9231. int i, j;
  9232. /* This test makes some buggy mktime implementations loop.
  9233. Give up after 60 seconds; a mktime slower than that
  9234. isn't worth using anyway. */
  9235. alarm (60);
  9236. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9237. continue;
  9238. time_t_max--;
  9239. if ((time_t) -1 < 0)
  9240. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9241. continue;
  9242. delta = time_t_max / 997; /* a suitable prime number */
  9243. for (i = 0; i < N_STRINGS; i++)
  9244. {
  9245. if (tz_strings[i])
  9246. putenv (tz_strings[i]);
  9247. for (t = 0; t <= time_t_max - delta; t += delta)
  9248. mktime_test (t);
  9249. mktime_test ((time_t) 1);
  9250. mktime_test ((time_t) (60 * 60));
  9251. mktime_test ((time_t) (60 * 60 * 24));
  9252. for (j = 1; 0 < j; j *= 2)
  9253. bigtime_test (j);
  9254. bigtime_test (j - 1);
  9255. }
  9256. irix_6_4_bug ();
  9257. spring_forward_gap ();
  9258. exit (0);
  9259. }
  9260. _ACEOF
  9261. rm -f conftest$ac_exeext
  9262. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9263. (eval $ac_link) 2>&5
  9264. ac_status=$?
  9265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9266. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9268. (eval $ac_try) 2>&5
  9269. ac_status=$?
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); }; }; then
  9272. ac_cv_func_working_mktime=yes
  9273. else
  9274. echo "$as_me: program exited with status $ac_status" >&5
  9275. echo "$as_me: failed program was:" >&5
  9276. sed 's/^/| /' conftest.$ac_ext >&5
  9277. ( exit $ac_status )
  9278. ac_cv_func_working_mktime=no
  9279. fi
  9280. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9281. fi
  9282. fi
  9283. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9284. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9285. if test $ac_cv_func_working_mktime = no; then
  9286. case $LIBOBJS in
  9287. "mktime.$ac_objext" | \
  9288. *" mktime.$ac_objext" | \
  9289. "mktime.$ac_objext "* | \
  9290. *" mktime.$ac_objext "* ) ;;
  9291. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9292. esac
  9293. fi
  9294. for ac_header in stdlib.h unistd.h
  9295. do
  9296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9297. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9301. echo $ECHO_N "(cached) $ECHO_C" >&6
  9302. fi
  9303. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9304. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9305. else
  9306. # Is the header compilable?
  9307. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9308. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9309. cat >conftest.$ac_ext <<_ACEOF
  9310. /* confdefs.h. */
  9311. _ACEOF
  9312. cat confdefs.h >>conftest.$ac_ext
  9313. cat >>conftest.$ac_ext <<_ACEOF
  9314. /* end confdefs.h. */
  9315. $ac_includes_default
  9316. #include <$ac_header>
  9317. _ACEOF
  9318. rm -f conftest.$ac_objext
  9319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9320. (eval $ac_compile) 2>conftest.er1
  9321. ac_status=$?
  9322. grep -v '^ *+' conftest.er1 >conftest.err
  9323. rm -f conftest.er1
  9324. cat conftest.err >&5
  9325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9326. (exit $ac_status); } &&
  9327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9329. (eval $ac_try) 2>&5
  9330. ac_status=$?
  9331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9332. (exit $ac_status); }; } &&
  9333. { ac_try='test -s conftest.$ac_objext'
  9334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9335. (eval $ac_try) 2>&5
  9336. ac_status=$?
  9337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9338. (exit $ac_status); }; }; then
  9339. ac_header_compiler=yes
  9340. else
  9341. echo "$as_me: failed program was:" >&5
  9342. sed 's/^/| /' conftest.$ac_ext >&5
  9343. ac_header_compiler=no
  9344. fi
  9345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9346. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9347. echo "${ECHO_T}$ac_header_compiler" >&6
  9348. # Is the header present?
  9349. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9350. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9351. cat >conftest.$ac_ext <<_ACEOF
  9352. /* confdefs.h. */
  9353. _ACEOF
  9354. cat confdefs.h >>conftest.$ac_ext
  9355. cat >>conftest.$ac_ext <<_ACEOF
  9356. /* end confdefs.h. */
  9357. #include <$ac_header>
  9358. _ACEOF
  9359. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9360. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9361. ac_status=$?
  9362. grep -v '^ *+' conftest.er1 >conftest.err
  9363. rm -f conftest.er1
  9364. cat conftest.err >&5
  9365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9366. (exit $ac_status); } >/dev/null; then
  9367. if test -s conftest.err; then
  9368. ac_cpp_err=$ac_c_preproc_warn_flag
  9369. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9370. else
  9371. ac_cpp_err=
  9372. fi
  9373. else
  9374. ac_cpp_err=yes
  9375. fi
  9376. if test -z "$ac_cpp_err"; then
  9377. ac_header_preproc=yes
  9378. else
  9379. echo "$as_me: failed program was:" >&5
  9380. sed 's/^/| /' conftest.$ac_ext >&5
  9381. ac_header_preproc=no
  9382. fi
  9383. rm -f conftest.err conftest.$ac_ext
  9384. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9385. echo "${ECHO_T}$ac_header_preproc" >&6
  9386. # So? What about this header?
  9387. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9388. yes:no: )
  9389. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9390. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9392. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9393. ac_header_preproc=yes
  9394. ;;
  9395. no:yes:* )
  9396. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9397. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9398. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9399. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9400. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9401. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9402. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9403. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9404. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9405. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9406. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9407. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9408. (
  9409. cat <<\_ASBOX
  9410. ## ------------------------------------------ ##
  9411. ## Report this to the AC_PACKAGE_NAME lists. ##
  9412. ## ------------------------------------------ ##
  9413. _ASBOX
  9414. ) |
  9415. sed "s/^/$as_me: WARNING: /" >&2
  9416. ;;
  9417. esac
  9418. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9420. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9421. echo $ECHO_N "(cached) $ECHO_C" >&6
  9422. else
  9423. eval "$as_ac_Header=\$ac_header_preproc"
  9424. fi
  9425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9427. fi
  9428. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9429. cat >>confdefs.h <<_ACEOF
  9430. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9431. _ACEOF
  9432. fi
  9433. done
  9434. for ac_func in getpagesize
  9435. do
  9436. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9437. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9438. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9439. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9440. echo $ECHO_N "(cached) $ECHO_C" >&6
  9441. else
  9442. cat >conftest.$ac_ext <<_ACEOF
  9443. /* confdefs.h. */
  9444. _ACEOF
  9445. cat confdefs.h >>conftest.$ac_ext
  9446. cat >>conftest.$ac_ext <<_ACEOF
  9447. /* end confdefs.h. */
  9448. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9449. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9450. #define $ac_func innocuous_$ac_func
  9451. /* System header to define __stub macros and hopefully few prototypes,
  9452. which can conflict with char $ac_func (); below.
  9453. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9454. <limits.h> exists even on freestanding compilers. */
  9455. #ifdef __STDC__
  9456. # include <limits.h>
  9457. #else
  9458. # include <assert.h>
  9459. #endif
  9460. #undef $ac_func
  9461. /* Override any gcc2 internal prototype to avoid an error. */
  9462. #ifdef __cplusplus
  9463. extern "C"
  9464. {
  9465. #endif
  9466. /* We use char because int might match the return type of a gcc2
  9467. builtin and then its argument prototype would still apply. */
  9468. char $ac_func ();
  9469. /* The GNU C library defines this for functions which it implements
  9470. to always fail with ENOSYS. Some functions are actually named
  9471. something starting with __ and the normal name is an alias. */
  9472. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9473. choke me
  9474. #else
  9475. char (*f) () = $ac_func;
  9476. #endif
  9477. #ifdef __cplusplus
  9478. }
  9479. #endif
  9480. int
  9481. main ()
  9482. {
  9483. return f != $ac_func;
  9484. ;
  9485. return 0;
  9486. }
  9487. _ACEOF
  9488. rm -f conftest.$ac_objext conftest$ac_exeext
  9489. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9490. (eval $ac_link) 2>conftest.er1
  9491. ac_status=$?
  9492. grep -v '^ *+' conftest.er1 >conftest.err
  9493. rm -f conftest.er1
  9494. cat conftest.err >&5
  9495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9496. (exit $ac_status); } &&
  9497. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9499. (eval $ac_try) 2>&5
  9500. ac_status=$?
  9501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9502. (exit $ac_status); }; } &&
  9503. { ac_try='test -s conftest$ac_exeext'
  9504. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9505. (eval $ac_try) 2>&5
  9506. ac_status=$?
  9507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9508. (exit $ac_status); }; }; then
  9509. eval "$as_ac_var=yes"
  9510. else
  9511. echo "$as_me: failed program was:" >&5
  9512. sed 's/^/| /' conftest.$ac_ext >&5
  9513. eval "$as_ac_var=no"
  9514. fi
  9515. rm -f conftest.err conftest.$ac_objext \
  9516. conftest$ac_exeext conftest.$ac_ext
  9517. fi
  9518. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9519. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9520. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9521. cat >>confdefs.h <<_ACEOF
  9522. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9523. _ACEOF
  9524. fi
  9525. done
  9526. echo "$as_me:$LINENO: checking for working mmap" >&5
  9527. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9528. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9529. echo $ECHO_N "(cached) $ECHO_C" >&6
  9530. else
  9531. if test "$cross_compiling" = yes; then
  9532. ac_cv_func_mmap_fixed_mapped=no
  9533. else
  9534. cat >conftest.$ac_ext <<_ACEOF
  9535. /* confdefs.h. */
  9536. _ACEOF
  9537. cat confdefs.h >>conftest.$ac_ext
  9538. cat >>conftest.$ac_ext <<_ACEOF
  9539. /* end confdefs.h. */
  9540. $ac_includes_default
  9541. /* malloc might have been renamed as rpl_malloc. */
  9542. #undef malloc
  9543. /* Thanks to Mike Haertel and Jim Avera for this test.
  9544. Here is a matrix of mmap possibilities:
  9545. mmap private not fixed
  9546. mmap private fixed at somewhere currently unmapped
  9547. mmap private fixed at somewhere already mapped
  9548. mmap shared not fixed
  9549. mmap shared fixed at somewhere currently unmapped
  9550. mmap shared fixed at somewhere already mapped
  9551. For private mappings, we should verify that changes cannot be read()
  9552. back from the file, nor mmap's back from the file at a different
  9553. address. (There have been systems where private was not correctly
  9554. implemented like the infamous i386 svr4.0, and systems where the
  9555. VM page cache was not coherent with the file system buffer cache
  9556. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9557. For shared mappings, we should conversely verify that changes get
  9558. propagated back to all the places they're supposed to be.
  9559. Grep wants private fixed already mapped.
  9560. The main things grep needs to know about mmap are:
  9561. * does it exist and is it safe to write into the mmap'd area
  9562. * how to use it (BSD variants) */
  9563. #include <fcntl.h>
  9564. #include <sys/mman.h>
  9565. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9566. char *malloc ();
  9567. #endif
  9568. /* This mess was copied from the GNU getpagesize.h. */
  9569. #if !HAVE_GETPAGESIZE
  9570. /* Assume that all systems that can run configure have sys/param.h. */
  9571. # if !HAVE_SYS_PARAM_H
  9572. # define HAVE_SYS_PARAM_H 1
  9573. # endif
  9574. # ifdef _SC_PAGESIZE
  9575. # define getpagesize() sysconf(_SC_PAGESIZE)
  9576. # else /* no _SC_PAGESIZE */
  9577. # if HAVE_SYS_PARAM_H
  9578. # include <sys/param.h>
  9579. # ifdef EXEC_PAGESIZE
  9580. # define getpagesize() EXEC_PAGESIZE
  9581. # else /* no EXEC_PAGESIZE */
  9582. # ifdef NBPG
  9583. # define getpagesize() NBPG * CLSIZE
  9584. # ifndef CLSIZE
  9585. # define CLSIZE 1
  9586. # endif /* no CLSIZE */
  9587. # else /* no NBPG */
  9588. # ifdef NBPC
  9589. # define getpagesize() NBPC
  9590. # else /* no NBPC */
  9591. # ifdef PAGESIZE
  9592. # define getpagesize() PAGESIZE
  9593. # endif /* PAGESIZE */
  9594. # endif /* no NBPC */
  9595. # endif /* no NBPG */
  9596. # endif /* no EXEC_PAGESIZE */
  9597. # else /* no HAVE_SYS_PARAM_H */
  9598. # define getpagesize() 8192 /* punt totally */
  9599. # endif /* no HAVE_SYS_PARAM_H */
  9600. # endif /* no _SC_PAGESIZE */
  9601. #endif /* no HAVE_GETPAGESIZE */
  9602. int
  9603. main ()
  9604. {
  9605. char *data, *data2, *data3;
  9606. int i, pagesize;
  9607. int fd;
  9608. pagesize = getpagesize ();
  9609. /* First, make a file with some known garbage in it. */
  9610. data = (char *) malloc (pagesize);
  9611. if (!data)
  9612. exit (1);
  9613. for (i = 0; i < pagesize; ++i)
  9614. *(data + i) = rand ();
  9615. umask (0);
  9616. fd = creat ("conftest.mmap", 0600);
  9617. if (fd < 0)
  9618. exit (1);
  9619. if (write (fd, data, pagesize) != pagesize)
  9620. exit (1);
  9621. close (fd);
  9622. /* Next, try to mmap the file at a fixed address which already has
  9623. something else allocated at it. If we can, also make sure that
  9624. we see the same garbage. */
  9625. fd = open ("conftest.mmap", O_RDWR);
  9626. if (fd < 0)
  9627. exit (1);
  9628. data2 = (char *) malloc (2 * pagesize);
  9629. if (!data2)
  9630. exit (1);
  9631. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9632. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9633. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9634. exit (1);
  9635. for (i = 0; i < pagesize; ++i)
  9636. if (*(data + i) != *(data2 + i))
  9637. exit (1);
  9638. /* Finally, make sure that changes to the mapped area do not
  9639. percolate back to the file as seen by read(). (This is a bug on
  9640. some variants of i386 svr4.0.) */
  9641. for (i = 0; i < pagesize; ++i)
  9642. *(data2 + i) = *(data2 + i) + 1;
  9643. data3 = (char *) malloc (pagesize);
  9644. if (!data3)
  9645. exit (1);
  9646. if (read (fd, data3, pagesize) != pagesize)
  9647. exit (1);
  9648. for (i = 0; i < pagesize; ++i)
  9649. if (*(data + i) != *(data3 + i))
  9650. exit (1);
  9651. close (fd);
  9652. exit (0);
  9653. }
  9654. _ACEOF
  9655. rm -f conftest$ac_exeext
  9656. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9657. (eval $ac_link) 2>&5
  9658. ac_status=$?
  9659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9662. (eval $ac_try) 2>&5
  9663. ac_status=$?
  9664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); }; }; then
  9666. ac_cv_func_mmap_fixed_mapped=yes
  9667. else
  9668. echo "$as_me: program exited with status $ac_status" >&5
  9669. echo "$as_me: failed program was:" >&5
  9670. sed 's/^/| /' conftest.$ac_ext >&5
  9671. ( exit $ac_status )
  9672. ac_cv_func_mmap_fixed_mapped=no
  9673. fi
  9674. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9675. fi
  9676. fi
  9677. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9678. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9679. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9680. cat >>confdefs.h <<\_ACEOF
  9681. #define HAVE_MMAP 1
  9682. _ACEOF
  9683. fi
  9684. rm -f conftest.mmap
  9685. for ac_header in stdlib.h
  9686. do
  9687. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9688. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9689. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9690. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9691. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9692. echo $ECHO_N "(cached) $ECHO_C" >&6
  9693. fi
  9694. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9695. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9696. else
  9697. # Is the header compilable?
  9698. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9699. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9700. cat >conftest.$ac_ext <<_ACEOF
  9701. /* confdefs.h. */
  9702. _ACEOF
  9703. cat confdefs.h >>conftest.$ac_ext
  9704. cat >>conftest.$ac_ext <<_ACEOF
  9705. /* end confdefs.h. */
  9706. $ac_includes_default
  9707. #include <$ac_header>
  9708. _ACEOF
  9709. rm -f conftest.$ac_objext
  9710. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9711. (eval $ac_compile) 2>conftest.er1
  9712. ac_status=$?
  9713. grep -v '^ *+' conftest.er1 >conftest.err
  9714. rm -f conftest.er1
  9715. cat conftest.err >&5
  9716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9717. (exit $ac_status); } &&
  9718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9720. (eval $ac_try) 2>&5
  9721. ac_status=$?
  9722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9723. (exit $ac_status); }; } &&
  9724. { ac_try='test -s conftest.$ac_objext'
  9725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9726. (eval $ac_try) 2>&5
  9727. ac_status=$?
  9728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9729. (exit $ac_status); }; }; then
  9730. ac_header_compiler=yes
  9731. else
  9732. echo "$as_me: failed program was:" >&5
  9733. sed 's/^/| /' conftest.$ac_ext >&5
  9734. ac_header_compiler=no
  9735. fi
  9736. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9737. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9738. echo "${ECHO_T}$ac_header_compiler" >&6
  9739. # Is the header present?
  9740. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9741. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9742. cat >conftest.$ac_ext <<_ACEOF
  9743. /* confdefs.h. */
  9744. _ACEOF
  9745. cat confdefs.h >>conftest.$ac_ext
  9746. cat >>conftest.$ac_ext <<_ACEOF
  9747. /* end confdefs.h. */
  9748. #include <$ac_header>
  9749. _ACEOF
  9750. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9751. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9752. ac_status=$?
  9753. grep -v '^ *+' conftest.er1 >conftest.err
  9754. rm -f conftest.er1
  9755. cat conftest.err >&5
  9756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9757. (exit $ac_status); } >/dev/null; then
  9758. if test -s conftest.err; then
  9759. ac_cpp_err=$ac_c_preproc_warn_flag
  9760. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9761. else
  9762. ac_cpp_err=
  9763. fi
  9764. else
  9765. ac_cpp_err=yes
  9766. fi
  9767. if test -z "$ac_cpp_err"; then
  9768. ac_header_preproc=yes
  9769. else
  9770. echo "$as_me: failed program was:" >&5
  9771. sed 's/^/| /' conftest.$ac_ext >&5
  9772. ac_header_preproc=no
  9773. fi
  9774. rm -f conftest.err conftest.$ac_ext
  9775. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9776. echo "${ECHO_T}$ac_header_preproc" >&6
  9777. # So? What about this header?
  9778. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9779. yes:no: )
  9780. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9781. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9782. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9783. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9784. ac_header_preproc=yes
  9785. ;;
  9786. no:yes:* )
  9787. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9788. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9789. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9790. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9791. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9792. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9793. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9794. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9795. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9796. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9797. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9798. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9799. (
  9800. cat <<\_ASBOX
  9801. ## ------------------------------------------ ##
  9802. ## Report this to the AC_PACKAGE_NAME lists. ##
  9803. ## ------------------------------------------ ##
  9804. _ASBOX
  9805. ) |
  9806. sed "s/^/$as_me: WARNING: /" >&2
  9807. ;;
  9808. esac
  9809. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9810. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9811. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9812. echo $ECHO_N "(cached) $ECHO_C" >&6
  9813. else
  9814. eval "$as_ac_Header=\$ac_header_preproc"
  9815. fi
  9816. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9817. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9818. fi
  9819. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9820. cat >>confdefs.h <<_ACEOF
  9821. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9822. _ACEOF
  9823. fi
  9824. done
  9825. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9826. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9827. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9828. echo $ECHO_N "(cached) $ECHO_C" >&6
  9829. else
  9830. if test "$cross_compiling" = yes; then
  9831. ac_cv_func_realloc_0_nonnull=no
  9832. else
  9833. cat >conftest.$ac_ext <<_ACEOF
  9834. /* confdefs.h. */
  9835. _ACEOF
  9836. cat confdefs.h >>conftest.$ac_ext
  9837. cat >>conftest.$ac_ext <<_ACEOF
  9838. /* end confdefs.h. */
  9839. #if STDC_HEADERS || HAVE_STDLIB_H
  9840. # include <stdlib.h>
  9841. #else
  9842. char *realloc ();
  9843. #endif
  9844. int
  9845. main ()
  9846. {
  9847. exit (realloc (0, 0) ? 0 : 1);
  9848. ;
  9849. return 0;
  9850. }
  9851. _ACEOF
  9852. rm -f conftest$ac_exeext
  9853. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9854. (eval $ac_link) 2>&5
  9855. ac_status=$?
  9856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9859. (eval $ac_try) 2>&5
  9860. ac_status=$?
  9861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9862. (exit $ac_status); }; }; then
  9863. ac_cv_func_realloc_0_nonnull=yes
  9864. else
  9865. echo "$as_me: program exited with status $ac_status" >&5
  9866. echo "$as_me: failed program was:" >&5
  9867. sed 's/^/| /' conftest.$ac_ext >&5
  9868. ( exit $ac_status )
  9869. ac_cv_func_realloc_0_nonnull=no
  9870. fi
  9871. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9872. fi
  9873. fi
  9874. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9875. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9876. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9877. cat >>confdefs.h <<\_ACEOF
  9878. #define HAVE_REALLOC 1
  9879. _ACEOF
  9880. else
  9881. cat >>confdefs.h <<\_ACEOF
  9882. #define HAVE_REALLOC 0
  9883. _ACEOF
  9884. case $LIBOBJS in
  9885. "realloc.$ac_objext" | \
  9886. *" realloc.$ac_objext" | \
  9887. "realloc.$ac_objext "* | \
  9888. *" realloc.$ac_objext "* ) ;;
  9889. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9890. esac
  9891. cat >>confdefs.h <<\_ACEOF
  9892. #define realloc rpl_realloc
  9893. _ACEOF
  9894. fi
  9895. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9896. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9897. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9898. echo $ECHO_N "(cached) $ECHO_C" >&6
  9899. else
  9900. if test "$cross_compiling" = yes; then
  9901. ac_cv_func_stat_empty_string_bug=yes
  9902. else
  9903. cat >conftest.$ac_ext <<_ACEOF
  9904. /* confdefs.h. */
  9905. _ACEOF
  9906. cat confdefs.h >>conftest.$ac_ext
  9907. cat >>conftest.$ac_ext <<_ACEOF
  9908. /* end confdefs.h. */
  9909. $ac_includes_default
  9910. int
  9911. main ()
  9912. {
  9913. struct stat sbuf;
  9914. exit (stat ("", &sbuf) ? 1 : 0);
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. rm -f conftest$ac_exeext
  9920. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9921. (eval $ac_link) 2>&5
  9922. ac_status=$?
  9923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9924. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9926. (eval $ac_try) 2>&5
  9927. ac_status=$?
  9928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9929. (exit $ac_status); }; }; then
  9930. ac_cv_func_stat_empty_string_bug=yes
  9931. else
  9932. echo "$as_me: program exited with status $ac_status" >&5
  9933. echo "$as_me: failed program was:" >&5
  9934. sed 's/^/| /' conftest.$ac_ext >&5
  9935. ( exit $ac_status )
  9936. ac_cv_func_stat_empty_string_bug=no
  9937. fi
  9938. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9939. fi
  9940. fi
  9941. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9942. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9943. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9944. case $LIBOBJS in
  9945. "stat.$ac_objext" | \
  9946. *" stat.$ac_objext" | \
  9947. "stat.$ac_objext "* | \
  9948. *" stat.$ac_objext "* ) ;;
  9949. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9950. esac
  9951. cat >>confdefs.h <<_ACEOF
  9952. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9953. _ACEOF
  9954. fi
  9955. for ac_func in strftime
  9956. do
  9957. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9958. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9959. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9960. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9961. echo $ECHO_N "(cached) $ECHO_C" >&6
  9962. else
  9963. cat >conftest.$ac_ext <<_ACEOF
  9964. /* confdefs.h. */
  9965. _ACEOF
  9966. cat confdefs.h >>conftest.$ac_ext
  9967. cat >>conftest.$ac_ext <<_ACEOF
  9968. /* end confdefs.h. */
  9969. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9970. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9971. #define $ac_func innocuous_$ac_func
  9972. /* System header to define __stub macros and hopefully few prototypes,
  9973. which can conflict with char $ac_func (); below.
  9974. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9975. <limits.h> exists even on freestanding compilers. */
  9976. #ifdef __STDC__
  9977. # include <limits.h>
  9978. #else
  9979. # include <assert.h>
  9980. #endif
  9981. #undef $ac_func
  9982. /* Override any gcc2 internal prototype to avoid an error. */
  9983. #ifdef __cplusplus
  9984. extern "C"
  9985. {
  9986. #endif
  9987. /* We use char because int might match the return type of a gcc2
  9988. builtin and then its argument prototype would still apply. */
  9989. char $ac_func ();
  9990. /* The GNU C library defines this for functions which it implements
  9991. to always fail with ENOSYS. Some functions are actually named
  9992. something starting with __ and the normal name is an alias. */
  9993. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9994. choke me
  9995. #else
  9996. char (*f) () = $ac_func;
  9997. #endif
  9998. #ifdef __cplusplus
  9999. }
  10000. #endif
  10001. int
  10002. main ()
  10003. {
  10004. return f != $ac_func;
  10005. ;
  10006. return 0;
  10007. }
  10008. _ACEOF
  10009. rm -f conftest.$ac_objext conftest$ac_exeext
  10010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10011. (eval $ac_link) 2>conftest.er1
  10012. ac_status=$?
  10013. grep -v '^ *+' conftest.er1 >conftest.err
  10014. rm -f conftest.er1
  10015. cat conftest.err >&5
  10016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10017. (exit $ac_status); } &&
  10018. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10020. (eval $ac_try) 2>&5
  10021. ac_status=$?
  10022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10023. (exit $ac_status); }; } &&
  10024. { ac_try='test -s conftest$ac_exeext'
  10025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10026. (eval $ac_try) 2>&5
  10027. ac_status=$?
  10028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10029. (exit $ac_status); }; }; then
  10030. eval "$as_ac_var=yes"
  10031. else
  10032. echo "$as_me: failed program was:" >&5
  10033. sed 's/^/| /' conftest.$ac_ext >&5
  10034. eval "$as_ac_var=no"
  10035. fi
  10036. rm -f conftest.err conftest.$ac_objext \
  10037. conftest$ac_exeext conftest.$ac_ext
  10038. fi
  10039. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10040. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10041. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10042. cat >>confdefs.h <<_ACEOF
  10043. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10044. _ACEOF
  10045. else
  10046. # strftime is in -lintl on SCO UNIX.
  10047. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10048. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10049. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10050. echo $ECHO_N "(cached) $ECHO_C" >&6
  10051. else
  10052. ac_check_lib_save_LIBS=$LIBS
  10053. LIBS="-lintl $LIBS"
  10054. cat >conftest.$ac_ext <<_ACEOF
  10055. /* confdefs.h. */
  10056. _ACEOF
  10057. cat confdefs.h >>conftest.$ac_ext
  10058. cat >>conftest.$ac_ext <<_ACEOF
  10059. /* end confdefs.h. */
  10060. /* Override any gcc2 internal prototype to avoid an error. */
  10061. #ifdef __cplusplus
  10062. extern "C"
  10063. #endif
  10064. /* We use char because int might match the return type of a gcc2
  10065. builtin and then its argument prototype would still apply. */
  10066. char strftime ();
  10067. int
  10068. main ()
  10069. {
  10070. strftime ();
  10071. ;
  10072. return 0;
  10073. }
  10074. _ACEOF
  10075. rm -f conftest.$ac_objext conftest$ac_exeext
  10076. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10077. (eval $ac_link) 2>conftest.er1
  10078. ac_status=$?
  10079. grep -v '^ *+' conftest.er1 >conftest.err
  10080. rm -f conftest.er1
  10081. cat conftest.err >&5
  10082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10083. (exit $ac_status); } &&
  10084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10086. (eval $ac_try) 2>&5
  10087. ac_status=$?
  10088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10089. (exit $ac_status); }; } &&
  10090. { ac_try='test -s conftest$ac_exeext'
  10091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10092. (eval $ac_try) 2>&5
  10093. ac_status=$?
  10094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10095. (exit $ac_status); }; }; then
  10096. ac_cv_lib_intl_strftime=yes
  10097. else
  10098. echo "$as_me: failed program was:" >&5
  10099. sed 's/^/| /' conftest.$ac_ext >&5
  10100. ac_cv_lib_intl_strftime=no
  10101. fi
  10102. rm -f conftest.err conftest.$ac_objext \
  10103. conftest$ac_exeext conftest.$ac_ext
  10104. LIBS=$ac_check_lib_save_LIBS
  10105. fi
  10106. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10107. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10108. if test $ac_cv_lib_intl_strftime = yes; then
  10109. cat >>confdefs.h <<\_ACEOF
  10110. #define HAVE_STRFTIME 1
  10111. _ACEOF
  10112. LIBS="-lintl $LIBS"
  10113. fi
  10114. fi
  10115. done
  10116. #checkpoint
  10117. cat >confcache <<\_ACEOF
  10118. # This file is a shell script that caches the results of configure
  10119. # tests run on this system so they can be shared between configure
  10120. # scripts and configure runs, see configure's option --config-cache.
  10121. # It is not useful on other systems. If it contains results you don't
  10122. # want to keep, you may remove or edit it.
  10123. #
  10124. # config.status only pays attention to the cache file if you give it
  10125. # the --recheck option to rerun configure.
  10126. #
  10127. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10128. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10129. # following values.
  10130. _ACEOF
  10131. # The following way of writing the cache mishandles newlines in values,
  10132. # but we know of no workaround that is simple, portable, and efficient.
  10133. # So, don't put newlines in cache variables' values.
  10134. # Ultrix sh set writes to stderr and can't be redirected directly,
  10135. # and sets the high bit in the cache file unless we assign to the vars.
  10136. {
  10137. (set) 2>&1 |
  10138. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10139. *ac_space=\ *)
  10140. # `set' does not quote correctly, so add quotes (double-quote
  10141. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10142. sed -n \
  10143. "s/'/'\\\\''/g;
  10144. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10145. ;;
  10146. *)
  10147. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10148. sed -n \
  10149. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10150. ;;
  10151. esac;
  10152. } |
  10153. sed '
  10154. t clear
  10155. : clear
  10156. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10157. t end
  10158. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10159. : end' >>confcache
  10160. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10161. if test -w $cache_file; then
  10162. test "x$cache_file" != "x/dev/null"
  10163. cat confcache >$cache_file
  10164. else
  10165. echo "not updating unwritable cache $cache_file"
  10166. fi
  10167. fi
  10168. rm -f confcache
  10169. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  10170. do
  10171. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10172. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10173. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10174. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10175. echo $ECHO_N "(cached) $ECHO_C" >&6
  10176. else
  10177. cat >conftest.$ac_ext <<_ACEOF
  10178. /* confdefs.h. */
  10179. _ACEOF
  10180. cat confdefs.h >>conftest.$ac_ext
  10181. cat >>conftest.$ac_ext <<_ACEOF
  10182. /* end confdefs.h. */
  10183. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10184. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10185. #define $ac_func innocuous_$ac_func
  10186. /* System header to define __stub macros and hopefully few prototypes,
  10187. which can conflict with char $ac_func (); below.
  10188. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10189. <limits.h> exists even on freestanding compilers. */
  10190. #ifdef __STDC__
  10191. # include <limits.h>
  10192. #else
  10193. # include <assert.h>
  10194. #endif
  10195. #undef $ac_func
  10196. /* Override any gcc2 internal prototype to avoid an error. */
  10197. #ifdef __cplusplus
  10198. extern "C"
  10199. {
  10200. #endif
  10201. /* We use char because int might match the return type of a gcc2
  10202. builtin and then its argument prototype would still apply. */
  10203. char $ac_func ();
  10204. /* The GNU C library defines this for functions which it implements
  10205. to always fail with ENOSYS. Some functions are actually named
  10206. something starting with __ and the normal name is an alias. */
  10207. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10208. choke me
  10209. #else
  10210. char (*f) () = $ac_func;
  10211. #endif
  10212. #ifdef __cplusplus
  10213. }
  10214. #endif
  10215. int
  10216. main ()
  10217. {
  10218. return f != $ac_func;
  10219. ;
  10220. return 0;
  10221. }
  10222. _ACEOF
  10223. rm -f conftest.$ac_objext conftest$ac_exeext
  10224. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10225. (eval $ac_link) 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } &&
  10232. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10234. (eval $ac_try) 2>&5
  10235. ac_status=$?
  10236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10237. (exit $ac_status); }; } &&
  10238. { ac_try='test -s conftest$ac_exeext'
  10239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10240. (eval $ac_try) 2>&5
  10241. ac_status=$?
  10242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10243. (exit $ac_status); }; }; then
  10244. eval "$as_ac_var=yes"
  10245. else
  10246. echo "$as_me: failed program was:" >&5
  10247. sed 's/^/| /' conftest.$ac_ext >&5
  10248. eval "$as_ac_var=no"
  10249. fi
  10250. rm -f conftest.err conftest.$ac_objext \
  10251. conftest$ac_exeext conftest.$ac_ext
  10252. fi
  10253. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10254. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10255. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10256. cat >>confdefs.h <<_ACEOF
  10257. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10258. _ACEOF
  10259. fi
  10260. done
  10261. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  10262. do
  10263. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10264. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10265. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10266. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10267. echo $ECHO_N "(cached) $ECHO_C" >&6
  10268. else
  10269. cat >conftest.$ac_ext <<_ACEOF
  10270. /* confdefs.h. */
  10271. _ACEOF
  10272. cat confdefs.h >>conftest.$ac_ext
  10273. cat >>conftest.$ac_ext <<_ACEOF
  10274. /* end confdefs.h. */
  10275. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10276. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10277. #define $ac_func innocuous_$ac_func
  10278. /* System header to define __stub macros and hopefully few prototypes,
  10279. which can conflict with char $ac_func (); below.
  10280. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10281. <limits.h> exists even on freestanding compilers. */
  10282. #ifdef __STDC__
  10283. # include <limits.h>
  10284. #else
  10285. # include <assert.h>
  10286. #endif
  10287. #undef $ac_func
  10288. /* Override any gcc2 internal prototype to avoid an error. */
  10289. #ifdef __cplusplus
  10290. extern "C"
  10291. {
  10292. #endif
  10293. /* We use char because int might match the return type of a gcc2
  10294. builtin and then its argument prototype would still apply. */
  10295. char $ac_func ();
  10296. /* The GNU C library defines this for functions which it implements
  10297. to always fail with ENOSYS. Some functions are actually named
  10298. something starting with __ and the normal name is an alias. */
  10299. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10300. choke me
  10301. #else
  10302. char (*f) () = $ac_func;
  10303. #endif
  10304. #ifdef __cplusplus
  10305. }
  10306. #endif
  10307. int
  10308. main ()
  10309. {
  10310. return f != $ac_func;
  10311. ;
  10312. return 0;
  10313. }
  10314. _ACEOF
  10315. rm -f conftest.$ac_objext conftest$ac_exeext
  10316. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10317. (eval $ac_link) 2>conftest.er1
  10318. ac_status=$?
  10319. grep -v '^ *+' conftest.er1 >conftest.err
  10320. rm -f conftest.er1
  10321. cat conftest.err >&5
  10322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10323. (exit $ac_status); } &&
  10324. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10326. (eval $ac_try) 2>&5
  10327. ac_status=$?
  10328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10329. (exit $ac_status); }; } &&
  10330. { ac_try='test -s conftest$ac_exeext'
  10331. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10332. (eval $ac_try) 2>&5
  10333. ac_status=$?
  10334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10335. (exit $ac_status); }; }; then
  10336. eval "$as_ac_var=yes"
  10337. else
  10338. echo "$as_me: failed program was:" >&5
  10339. sed 's/^/| /' conftest.$ac_ext >&5
  10340. eval "$as_ac_var=no"
  10341. fi
  10342. rm -f conftest.err conftest.$ac_objext \
  10343. conftest$ac_exeext conftest.$ac_ext
  10344. fi
  10345. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10346. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10347. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10348. cat >>confdefs.h <<_ACEOF
  10349. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10350. _ACEOF
  10351. fi
  10352. done
  10353. #checkpoint
  10354. cat >confcache <<\_ACEOF
  10355. # This file is a shell script that caches the results of configure
  10356. # tests run on this system so they can be shared between configure
  10357. # scripts and configure runs, see configure's option --config-cache.
  10358. # It is not useful on other systems. If it contains results you don't
  10359. # want to keep, you may remove or edit it.
  10360. #
  10361. # config.status only pays attention to the cache file if you give it
  10362. # the --recheck option to rerun configure.
  10363. #
  10364. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10365. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10366. # following values.
  10367. _ACEOF
  10368. # The following way of writing the cache mishandles newlines in values,
  10369. # but we know of no workaround that is simple, portable, and efficient.
  10370. # So, don't put newlines in cache variables' values.
  10371. # Ultrix sh set writes to stderr and can't be redirected directly,
  10372. # and sets the high bit in the cache file unless we assign to the vars.
  10373. {
  10374. (set) 2>&1 |
  10375. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10376. *ac_space=\ *)
  10377. # `set' does not quote correctly, so add quotes (double-quote
  10378. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10379. sed -n \
  10380. "s/'/'\\\\''/g;
  10381. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10382. ;;
  10383. *)
  10384. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10385. sed -n \
  10386. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10387. ;;
  10388. esac;
  10389. } |
  10390. sed '
  10391. t clear
  10392. : clear
  10393. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10394. t end
  10395. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10396. : end' >>confcache
  10397. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10398. if test -w $cache_file; then
  10399. test "x$cache_file" != "x/dev/null"
  10400. cat confcache >$cache_file
  10401. else
  10402. echo "not updating unwritable cache $cache_file"
  10403. fi
  10404. fi
  10405. rm -f confcache
  10406. for ac_func in strcasecmp strncasecmp vsnprintf
  10407. do
  10408. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10409. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10410. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10411. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10412. echo $ECHO_N "(cached) $ECHO_C" >&6
  10413. else
  10414. cat >conftest.$ac_ext <<_ACEOF
  10415. /* confdefs.h. */
  10416. _ACEOF
  10417. cat confdefs.h >>conftest.$ac_ext
  10418. cat >>conftest.$ac_ext <<_ACEOF
  10419. /* end confdefs.h. */
  10420. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10421. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10422. #define $ac_func innocuous_$ac_func
  10423. /* System header to define __stub macros and hopefully few prototypes,
  10424. which can conflict with char $ac_func (); below.
  10425. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10426. <limits.h> exists even on freestanding compilers. */
  10427. #ifdef __STDC__
  10428. # include <limits.h>
  10429. #else
  10430. # include <assert.h>
  10431. #endif
  10432. #undef $ac_func
  10433. /* Override any gcc2 internal prototype to avoid an error. */
  10434. #ifdef __cplusplus
  10435. extern "C"
  10436. {
  10437. #endif
  10438. /* We use char because int might match the return type of a gcc2
  10439. builtin and then its argument prototype would still apply. */
  10440. char $ac_func ();
  10441. /* The GNU C library defines this for functions which it implements
  10442. to always fail with ENOSYS. Some functions are actually named
  10443. something starting with __ and the normal name is an alias. */
  10444. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10445. choke me
  10446. #else
  10447. char (*f) () = $ac_func;
  10448. #endif
  10449. #ifdef __cplusplus
  10450. }
  10451. #endif
  10452. int
  10453. main ()
  10454. {
  10455. return f != $ac_func;
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. rm -f conftest.$ac_objext conftest$ac_exeext
  10461. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10462. (eval $ac_link) 2>conftest.er1
  10463. ac_status=$?
  10464. grep -v '^ *+' conftest.er1 >conftest.err
  10465. rm -f conftest.er1
  10466. cat conftest.err >&5
  10467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10468. (exit $ac_status); } &&
  10469. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10471. (eval $ac_try) 2>&5
  10472. ac_status=$?
  10473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); }; } &&
  10475. { ac_try='test -s conftest$ac_exeext'
  10476. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10477. (eval $ac_try) 2>&5
  10478. ac_status=$?
  10479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10480. (exit $ac_status); }; }; then
  10481. eval "$as_ac_var=yes"
  10482. else
  10483. echo "$as_me: failed program was:" >&5
  10484. sed 's/^/| /' conftest.$ac_ext >&5
  10485. eval "$as_ac_var=no"
  10486. fi
  10487. rm -f conftest.err conftest.$ac_objext \
  10488. conftest$ac_exeext conftest.$ac_ext
  10489. fi
  10490. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10491. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10492. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10493. cat >>confdefs.h <<_ACEOF
  10494. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10495. _ACEOF
  10496. fi
  10497. done
  10498. #autoscan suggested this....
  10499. #These are recommended by autoscan, but no code supports it currently
  10500. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10501. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10502. for ac_func in vsprintf
  10503. do
  10504. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10505. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10506. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10507. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10508. echo $ECHO_N "(cached) $ECHO_C" >&6
  10509. else
  10510. cat >conftest.$ac_ext <<_ACEOF
  10511. /* confdefs.h. */
  10512. _ACEOF
  10513. cat confdefs.h >>conftest.$ac_ext
  10514. cat >>conftest.$ac_ext <<_ACEOF
  10515. /* end confdefs.h. */
  10516. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10517. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10518. #define $ac_func innocuous_$ac_func
  10519. /* System header to define __stub macros and hopefully few prototypes,
  10520. which can conflict with char $ac_func (); below.
  10521. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10522. <limits.h> exists even on freestanding compilers. */
  10523. #ifdef __STDC__
  10524. # include <limits.h>
  10525. #else
  10526. # include <assert.h>
  10527. #endif
  10528. #undef $ac_func
  10529. /* Override any gcc2 internal prototype to avoid an error. */
  10530. #ifdef __cplusplus
  10531. extern "C"
  10532. {
  10533. #endif
  10534. /* We use char because int might match the return type of a gcc2
  10535. builtin and then its argument prototype would still apply. */
  10536. char $ac_func ();
  10537. /* The GNU C library defines this for functions which it implements
  10538. to always fail with ENOSYS. Some functions are actually named
  10539. something starting with __ and the normal name is an alias. */
  10540. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10541. choke me
  10542. #else
  10543. char (*f) () = $ac_func;
  10544. #endif
  10545. #ifdef __cplusplus
  10546. }
  10547. #endif
  10548. int
  10549. main ()
  10550. {
  10551. return f != $ac_func;
  10552. ;
  10553. return 0;
  10554. }
  10555. _ACEOF
  10556. rm -f conftest.$ac_objext conftest$ac_exeext
  10557. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10558. (eval $ac_link) 2>conftest.er1
  10559. ac_status=$?
  10560. grep -v '^ *+' conftest.er1 >conftest.err
  10561. rm -f conftest.er1
  10562. cat conftest.err >&5
  10563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10564. (exit $ac_status); } &&
  10565. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10566. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10567. (eval $ac_try) 2>&5
  10568. ac_status=$?
  10569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10570. (exit $ac_status); }; } &&
  10571. { ac_try='test -s conftest$ac_exeext'
  10572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10573. (eval $ac_try) 2>&5
  10574. ac_status=$?
  10575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10576. (exit $ac_status); }; }; then
  10577. eval "$as_ac_var=yes"
  10578. else
  10579. echo "$as_me: failed program was:" >&5
  10580. sed 's/^/| /' conftest.$ac_ext >&5
  10581. eval "$as_ac_var=no"
  10582. fi
  10583. rm -f conftest.err conftest.$ac_objext \
  10584. conftest$ac_exeext conftest.$ac_ext
  10585. fi
  10586. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10587. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10588. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10589. cat >>confdefs.h <<_ACEOF
  10590. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10591. _ACEOF
  10592. fi
  10593. done
  10594. if test "$ac_cv_func_vsprintf" = "no"
  10595. then
  10596. cat << 'EOF' >&2
  10597. configure: error:
  10598. Your system does not have the sprintf/vsprintf libraries.
  10599. These are required to compile almost anything. Sorry.
  10600. EOF
  10601. exit 1
  10602. fi
  10603. for ac_func in uname
  10604. do
  10605. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10606. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10607. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10608. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10609. echo $ECHO_N "(cached) $ECHO_C" >&6
  10610. else
  10611. cat >conftest.$ac_ext <<_ACEOF
  10612. /* confdefs.h. */
  10613. _ACEOF
  10614. cat confdefs.h >>conftest.$ac_ext
  10615. cat >>conftest.$ac_ext <<_ACEOF
  10616. /* end confdefs.h. */
  10617. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10618. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10619. #define $ac_func innocuous_$ac_func
  10620. /* System header to define __stub macros and hopefully few prototypes,
  10621. which can conflict with char $ac_func (); below.
  10622. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10623. <limits.h> exists even on freestanding compilers. */
  10624. #ifdef __STDC__
  10625. # include <limits.h>
  10626. #else
  10627. # include <assert.h>
  10628. #endif
  10629. #undef $ac_func
  10630. /* Override any gcc2 internal prototype to avoid an error. */
  10631. #ifdef __cplusplus
  10632. extern "C"
  10633. {
  10634. #endif
  10635. /* We use char because int might match the return type of a gcc2
  10636. builtin and then its argument prototype would still apply. */
  10637. char $ac_func ();
  10638. /* The GNU C library defines this for functions which it implements
  10639. to always fail with ENOSYS. Some functions are actually named
  10640. something starting with __ and the normal name is an alias. */
  10641. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10642. choke me
  10643. #else
  10644. char (*f) () = $ac_func;
  10645. #endif
  10646. #ifdef __cplusplus
  10647. }
  10648. #endif
  10649. int
  10650. main ()
  10651. {
  10652. return f != $ac_func;
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext conftest$ac_exeext
  10658. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10659. (eval $ac_link) 2>conftest.er1
  10660. ac_status=$?
  10661. grep -v '^ *+' conftest.er1 >conftest.err
  10662. rm -f conftest.er1
  10663. cat conftest.err >&5
  10664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10665. (exit $ac_status); } &&
  10666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10668. (eval $ac_try) 2>&5
  10669. ac_status=$?
  10670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); }; } &&
  10672. { ac_try='test -s conftest$ac_exeext'
  10673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10674. (eval $ac_try) 2>&5
  10675. ac_status=$?
  10676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10677. (exit $ac_status); }; }; then
  10678. eval "$as_ac_var=yes"
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. eval "$as_ac_var=no"
  10683. fi
  10684. rm -f conftest.err conftest.$ac_objext \
  10685. conftest$ac_exeext conftest.$ac_ext
  10686. fi
  10687. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10688. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10690. cat >>confdefs.h <<_ACEOF
  10691. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10692. _ACEOF
  10693. fi
  10694. done
  10695. if test "$ac_cv_func_uname" = "no"
  10696. then
  10697. cat << 'EOF' >&2
  10698. configure: error:
  10699. Your system does not have the uname() function.
  10700. This is required for the botpack.
  10701. EOF
  10702. exit 1
  10703. fi
  10704. # Make sure we have stdc headers, since we can't compile without them
  10705. if test "$ac_cv_header_stdc" = "no"
  10706. then
  10707. cat << 'EOF' >&2
  10708. configure: error:
  10709. Your system must support ANSI C Header files.
  10710. These are required for the language support. Sorry.
  10711. EOF
  10712. exit 1
  10713. fi
  10714. #checkpoint
  10715. cat >confcache <<\_ACEOF
  10716. # This file is a shell script that caches the results of configure
  10717. # tests run on this system so they can be shared between configure
  10718. # scripts and configure runs, see configure's option --config-cache.
  10719. # It is not useful on other systems. If it contains results you don't
  10720. # want to keep, you may remove or edit it.
  10721. #
  10722. # config.status only pays attention to the cache file if you give it
  10723. # the --recheck option to rerun configure.
  10724. #
  10725. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10726. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10727. # following values.
  10728. _ACEOF
  10729. # The following way of writing the cache mishandles newlines in values,
  10730. # but we know of no workaround that is simple, portable, and efficient.
  10731. # So, don't put newlines in cache variables' values.
  10732. # Ultrix sh set writes to stderr and can't be redirected directly,
  10733. # and sets the high bit in the cache file unless we assign to the vars.
  10734. {
  10735. (set) 2>&1 |
  10736. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10737. *ac_space=\ *)
  10738. # `set' does not quote correctly, so add quotes (double-quote
  10739. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10740. sed -n \
  10741. "s/'/'\\\\''/g;
  10742. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10743. ;;
  10744. *)
  10745. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10746. sed -n \
  10747. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10748. ;;
  10749. esac;
  10750. } |
  10751. sed '
  10752. t clear
  10753. : clear
  10754. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10755. t end
  10756. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10757. : end' >>confcache
  10758. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10759. if test -w $cache_file; then
  10760. test "x$cache_file" != "x/dev/null"
  10761. cat confcache >$cache_file
  10762. else
  10763. echo "not updating unwritable cache $cache_file"
  10764. fi
  10765. fi
  10766. rm -f confcache
  10767. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10768. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10769. cat >>confdefs.h <<_ACEOF
  10770. #define EGG_VERSION $version_num
  10771. _ACEOF
  10772. ld_line="-Wl"
  10773. for func in `grep -hrsI __wrap_ src/compat/* | sed -e 's/^__wrap_\(.*\)(.*/\1/'`; do
  10774. ld_line="${ld_line},--wrap,${func}";
  10775. # echo "FUNC: $func :: $ld_line";
  10776. WRAP="$ld_line"
  10777. done
  10778. case "$srcdir" in
  10779. [\\/]* | ?:[\\/]*)
  10780. MOD_UPDIR=""
  10781. ;;
  10782. *)
  10783. MOD_UPDIR="../"
  10784. ;;
  10785. esac
  10786. 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"
  10787. for mf in $files; do
  10788. # Strip MF so we end up with the name of the file.
  10789. # echo "MF: $mf"
  10790. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10791. dirpart=`(dirname "$mf") 2>/dev/null ||
  10792. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10793. X"$mf" : 'X\(//\)[^/]' \| \
  10794. X"$mf" : 'X\(//\)$' \| \
  10795. X"$mf" : 'X\(/\)' \| \
  10796. . : '\(.\)' 2>/dev/null ||
  10797. echo X"$mf" |
  10798. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10799. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10800. /^X\(\/\/\)$/{ s//\1/; q; }
  10801. /^X\(\/\).*/{ s//\1/; q; }
  10802. s/.*/./; q'`
  10803. # echo "dirpart: $dirpart mf: $mf"
  10804. # rm -rf "$dirpart/.deps/"
  10805. rm -f "$dirpart/.deps/includes"
  10806. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10807. for file in `sed -n -e '
  10808. /^OBJS = .*\\\\$/ {
  10809. s/^OBJS = //
  10810. :loop
  10811. s/\\\\$//
  10812. p
  10813. n
  10814. /\\\\$/ b loop
  10815. p
  10816. }
  10817. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10818. do
  10819. base=`basename $file .o`
  10820. test -f "$dirpart/$base.c" || continue
  10821. if ! test -f "$dirpart/.deps/$base.Po"; then
  10822. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10823. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10824. if test -f "$dirpart/$base.o"; then
  10825. rm -f "$dirpart/$base.o"
  10826. fi
  10827. fi
  10828. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10829. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10830. done
  10831. done
  10832. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10833. cat >confcache <<\_ACEOF
  10834. # This file is a shell script that caches the results of configure
  10835. # tests run on this system so they can be shared between configure
  10836. # scripts and configure runs, see configure's option --config-cache.
  10837. # It is not useful on other systems. If it contains results you don't
  10838. # want to keep, you may remove or edit it.
  10839. #
  10840. # config.status only pays attention to the cache file if you give it
  10841. # the --recheck option to rerun configure.
  10842. #
  10843. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10844. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10845. # following values.
  10846. _ACEOF
  10847. # The following way of writing the cache mishandles newlines in values,
  10848. # but we know of no workaround that is simple, portable, and efficient.
  10849. # So, don't put newlines in cache variables' values.
  10850. # Ultrix sh set writes to stderr and can't be redirected directly,
  10851. # and sets the high bit in the cache file unless we assign to the vars.
  10852. {
  10853. (set) 2>&1 |
  10854. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10855. *ac_space=\ *)
  10856. # `set' does not quote correctly, so add quotes (double-quote
  10857. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10858. sed -n \
  10859. "s/'/'\\\\''/g;
  10860. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10861. ;;
  10862. *)
  10863. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10864. sed -n \
  10865. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10866. ;;
  10867. esac;
  10868. } |
  10869. sed '
  10870. t clear
  10871. : clear
  10872. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10873. t end
  10874. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10875. : end' >>confcache
  10876. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10877. if test -w $cache_file; then
  10878. test "x$cache_file" != "x/dev/null"
  10879. cat confcache >$cache_file
  10880. else
  10881. echo "not updating unwritable cache $cache_file"
  10882. fi
  10883. fi
  10884. rm -f confcache
  10885. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10886. # Let make expand exec_prefix.
  10887. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10888. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10889. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10890. # trailing colons and then remove the whole line if VPATH becomes empty
  10891. # (actually we leave an empty line to preserve line numbers).
  10892. if test "x$srcdir" = x.; then
  10893. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10894. s/:*\$(srcdir):*/:/;
  10895. s/:*\${srcdir}:*/:/;
  10896. s/:*@srcdir@:*/:/;
  10897. s/^\([^=]*=[ ]*\):*/\1/;
  10898. s/:*$//;
  10899. s/^[^=]*=[ ]*$//;
  10900. }'
  10901. fi
  10902. DEFS=-DHAVE_CONFIG_H
  10903. ac_libobjs=
  10904. ac_ltlibobjs=
  10905. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10906. # 1. Remove the extension, and $U if already installed.
  10907. ac_i=`echo "$ac_i" |
  10908. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10909. # 2. Add them.
  10910. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10911. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10912. done
  10913. LIBOBJS=$ac_libobjs
  10914. LTLIBOBJS=$ac_ltlibobjs
  10915. : ${CONFIG_STATUS=./config.status}
  10916. ac_clean_files_save=$ac_clean_files
  10917. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10918. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10919. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10920. cat >$CONFIG_STATUS <<_ACEOF
  10921. #! $SHELL
  10922. # Generated by $as_me.
  10923. # Run this file to recreate the current configuration.
  10924. # Compiler output produced by configure, useful for debugging
  10925. # configure, is in config.log if it exists.
  10926. debug=false
  10927. ac_cs_recheck=false
  10928. ac_cs_silent=false
  10929. SHELL=\${CONFIG_SHELL-$SHELL}
  10930. _ACEOF
  10931. cat >>$CONFIG_STATUS <<\_ACEOF
  10932. ## --------------------- ##
  10933. ## M4sh Initialization. ##
  10934. ## --------------------- ##
  10935. # Be Bourne compatible
  10936. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10937. emulate sh
  10938. NULLCMD=:
  10939. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10940. # is contrary to our usage. Disable this feature.
  10941. alias -g '${1+"$@"}'='"$@"'
  10942. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10943. set -o posix
  10944. fi
  10945. DUALCASE=1; export DUALCASE # for MKS sh
  10946. # Support unset when possible.
  10947. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10948. as_unset=unset
  10949. else
  10950. as_unset=false
  10951. fi
  10952. # Work around bugs in pre-3.0 UWIN ksh.
  10953. $as_unset ENV MAIL MAILPATH
  10954. PS1='$ '
  10955. PS2='> '
  10956. PS4='+ '
  10957. # NLS nuisances.
  10958. for as_var in \
  10959. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10960. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10961. LC_TELEPHONE LC_TIME
  10962. do
  10963. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10964. eval $as_var=C; export $as_var
  10965. else
  10966. $as_unset $as_var
  10967. fi
  10968. done
  10969. # Required to use basename.
  10970. if expr a : '\(a\)' >/dev/null 2>&1; then
  10971. as_expr=expr
  10972. else
  10973. as_expr=false
  10974. fi
  10975. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10976. as_basename=basename
  10977. else
  10978. as_basename=false
  10979. fi
  10980. # Name of the executable.
  10981. as_me=`$as_basename "$0" ||
  10982. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10983. X"$0" : 'X\(//\)$' \| \
  10984. X"$0" : 'X\(/\)$' \| \
  10985. . : '\(.\)' 2>/dev/null ||
  10986. echo X/"$0" |
  10987. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10988. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10989. /^X\/\(\/\).*/{ s//\1/; q; }
  10990. s/.*/./; q'`
  10991. # PATH needs CR, and LINENO needs CR and PATH.
  10992. # Avoid depending upon Character Ranges.
  10993. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10994. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10995. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10996. as_cr_digits='0123456789'
  10997. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10998. # The user is always right.
  10999. if test "${PATH_SEPARATOR+set}" != set; then
  11000. echo "#! /bin/sh" >conf$$.sh
  11001. echo "exit 0" >>conf$$.sh
  11002. chmod +x conf$$.sh
  11003. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11004. PATH_SEPARATOR=';'
  11005. else
  11006. PATH_SEPARATOR=:
  11007. fi
  11008. rm -f conf$$.sh
  11009. fi
  11010. as_lineno_1=$LINENO
  11011. as_lineno_2=$LINENO
  11012. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11013. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11014. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11015. # Find who we are. Look in the path if we contain no path at all
  11016. # relative or not.
  11017. case $0 in
  11018. *[\\/]* ) as_myself=$0 ;;
  11019. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11020. for as_dir in $PATH
  11021. do
  11022. IFS=$as_save_IFS
  11023. test -z "$as_dir" && as_dir=.
  11024. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11025. done
  11026. ;;
  11027. esac
  11028. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11029. # in which case we are not to be found in the path.
  11030. if test "x$as_myself" = x; then
  11031. as_myself=$0
  11032. fi
  11033. if test ! -f "$as_myself"; then
  11034. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11035. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11036. { (exit 1); exit 1; }; }
  11037. fi
  11038. case $CONFIG_SHELL in
  11039. '')
  11040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11041. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11042. do
  11043. IFS=$as_save_IFS
  11044. test -z "$as_dir" && as_dir=.
  11045. for as_base in sh bash ksh sh5; do
  11046. case $as_dir in
  11047. /*)
  11048. if ("$as_dir/$as_base" -c '
  11049. as_lineno_1=$LINENO
  11050. as_lineno_2=$LINENO
  11051. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11052. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11053. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11054. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11055. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11056. CONFIG_SHELL=$as_dir/$as_base
  11057. export CONFIG_SHELL
  11058. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11059. fi;;
  11060. esac
  11061. done
  11062. done
  11063. ;;
  11064. esac
  11065. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11066. # uniformly replaced by the line number. The first 'sed' inserts a
  11067. # line-number line before each line; the second 'sed' does the real
  11068. # work. The second script uses 'N' to pair each line-number line
  11069. # with the numbered line, and appends trailing '-' during
  11070. # substitution so that $LINENO is not a special case at line end.
  11071. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11072. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11073. sed '=' <$as_myself |
  11074. sed '
  11075. N
  11076. s,$,-,
  11077. : loop
  11078. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11079. t loop
  11080. s,-$,,
  11081. s,^['$as_cr_digits']*\n,,
  11082. ' >$as_me.lineno &&
  11083. chmod +x $as_me.lineno ||
  11084. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11085. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11086. { (exit 1); exit 1; }; }
  11087. # Don't try to exec as it changes $[0], causing all sort of problems
  11088. # (the dirname of $[0] is not the place where we might find the
  11089. # original and so on. Autoconf is especially sensible to this).
  11090. . ./$as_me.lineno
  11091. # Exit status is that of the last command.
  11092. exit
  11093. }
  11094. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11095. *c*,-n*) ECHO_N= ECHO_C='
  11096. ' ECHO_T=' ' ;;
  11097. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11098. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11099. esac
  11100. if expr a : '\(a\)' >/dev/null 2>&1; then
  11101. as_expr=expr
  11102. else
  11103. as_expr=false
  11104. fi
  11105. rm -f conf$$ conf$$.exe conf$$.file
  11106. echo >conf$$.file
  11107. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11108. # We could just check for DJGPP; but this test a) works b) is more generic
  11109. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11110. if test -f conf$$.exe; then
  11111. # Don't use ln at all; we don't have any links
  11112. as_ln_s='cp -p'
  11113. else
  11114. as_ln_s='ln -s'
  11115. fi
  11116. elif ln conf$$.file conf$$ 2>/dev/null; then
  11117. as_ln_s=ln
  11118. else
  11119. as_ln_s='cp -p'
  11120. fi
  11121. rm -f conf$$ conf$$.exe conf$$.file
  11122. if mkdir -p . 2>/dev/null; then
  11123. as_mkdir_p=:
  11124. else
  11125. test -d ./-p && rmdir ./-p
  11126. as_mkdir_p=false
  11127. fi
  11128. as_executable_p="test -f"
  11129. # Sed expression to map a string onto a valid CPP name.
  11130. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11131. # Sed expression to map a string onto a valid variable name.
  11132. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11133. # IFS
  11134. # We need space, tab and new line, in precisely that order.
  11135. as_nl='
  11136. '
  11137. IFS=" $as_nl"
  11138. # CDPATH.
  11139. $as_unset CDPATH
  11140. exec 6>&1
  11141. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11142. # report actual input values of CONFIG_FILES etc. instead of their
  11143. # values after options handling. Logging --version etc. is OK.
  11144. exec 5>>config.log
  11145. {
  11146. echo
  11147. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11148. ## Running $as_me. ##
  11149. _ASBOX
  11150. } >&5
  11151. cat >&5 <<_CSEOF
  11152. This file was extended by $as_me, which was
  11153. generated by GNU Autoconf 2.59. Invocation command line was
  11154. CONFIG_FILES = $CONFIG_FILES
  11155. CONFIG_HEADERS = $CONFIG_HEADERS
  11156. CONFIG_LINKS = $CONFIG_LINKS
  11157. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11158. $ $0 $@
  11159. _CSEOF
  11160. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11161. echo >&5
  11162. _ACEOF
  11163. # Files that config.status was made for.
  11164. if test -n "$ac_config_files"; then
  11165. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11166. fi
  11167. if test -n "$ac_config_headers"; then
  11168. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11169. fi
  11170. if test -n "$ac_config_links"; then
  11171. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11172. fi
  11173. if test -n "$ac_config_commands"; then
  11174. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11175. fi
  11176. cat >>$CONFIG_STATUS <<\_ACEOF
  11177. ac_cs_usage="\
  11178. \`$as_me' instantiates files from templates according to the
  11179. current configuration.
  11180. Usage: $0 [OPTIONS] [FILE]...
  11181. -h, --help print this help, then exit
  11182. -V, --version print version number, then exit
  11183. -q, --quiet do not print progress messages
  11184. -d, --debug don't remove temporary files
  11185. --recheck update $as_me by reconfiguring in the same conditions
  11186. --file=FILE[:TEMPLATE]
  11187. instantiate the configuration file FILE
  11188. --header=FILE[:TEMPLATE]
  11189. instantiate the configuration header FILE
  11190. Configuration files:
  11191. $config_files
  11192. Configuration headers:
  11193. $config_headers
  11194. Report bugs to <bug-autoconf@gnu.org>."
  11195. _ACEOF
  11196. cat >>$CONFIG_STATUS <<_ACEOF
  11197. ac_cs_version="\\
  11198. config.status
  11199. configured by $0, generated by GNU Autoconf 2.59,
  11200. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11201. Copyright (C) 2003 Free Software Foundation, Inc.
  11202. This config.status script is free software; the Free Software Foundation
  11203. gives unlimited permission to copy, distribute and modify it."
  11204. srcdir=$srcdir
  11205. _ACEOF
  11206. cat >>$CONFIG_STATUS <<\_ACEOF
  11207. # If no file are specified by the user, then we need to provide default
  11208. # value. By we need to know if files were specified by the user.
  11209. ac_need_defaults=:
  11210. while test $# != 0
  11211. do
  11212. case $1 in
  11213. --*=*)
  11214. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11215. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11216. ac_shift=:
  11217. ;;
  11218. -*)
  11219. ac_option=$1
  11220. ac_optarg=$2
  11221. ac_shift=shift
  11222. ;;
  11223. *) # This is not an option, so the user has probably given explicit
  11224. # arguments.
  11225. ac_option=$1
  11226. ac_need_defaults=false;;
  11227. esac
  11228. case $ac_option in
  11229. # Handling of the options.
  11230. _ACEOF
  11231. cat >>$CONFIG_STATUS <<\_ACEOF
  11232. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11233. ac_cs_recheck=: ;;
  11234. --version | --vers* | -V )
  11235. echo "$ac_cs_version"; exit 0 ;;
  11236. --he | --h)
  11237. # Conflict between --help and --header
  11238. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11239. Try \`$0 --help' for more information." >&5
  11240. echo "$as_me: error: ambiguous option: $1
  11241. Try \`$0 --help' for more information." >&2;}
  11242. { (exit 1); exit 1; }; };;
  11243. --help | --hel | -h )
  11244. echo "$ac_cs_usage"; exit 0 ;;
  11245. --debug | --d* | -d )
  11246. debug=: ;;
  11247. --file | --fil | --fi | --f )
  11248. $ac_shift
  11249. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11250. ac_need_defaults=false;;
  11251. --header | --heade | --head | --hea )
  11252. $ac_shift
  11253. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11254. ac_need_defaults=false;;
  11255. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11256. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11257. ac_cs_silent=: ;;
  11258. # This is an error.
  11259. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11260. Try \`$0 --help' for more information." >&5
  11261. echo "$as_me: error: unrecognized option: $1
  11262. Try \`$0 --help' for more information." >&2;}
  11263. { (exit 1); exit 1; }; } ;;
  11264. *) ac_config_targets="$ac_config_targets $1" ;;
  11265. esac
  11266. shift
  11267. done
  11268. ac_configure_extra_args=
  11269. if $ac_cs_silent; then
  11270. exec 6>/dev/null
  11271. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11272. fi
  11273. _ACEOF
  11274. cat >>$CONFIG_STATUS <<_ACEOF
  11275. if \$ac_cs_recheck; then
  11276. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11277. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11278. fi
  11279. _ACEOF
  11280. cat >>$CONFIG_STATUS <<\_ACEOF
  11281. for ac_config_target in $ac_config_targets
  11282. do
  11283. case "$ac_config_target" in
  11284. # Handling of arguments.
  11285. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11286. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11287. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11288. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11289. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11290. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11291. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11292. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11293. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11294. { (exit 1); exit 1; }; };;
  11295. esac
  11296. done
  11297. # If the user did not use the arguments to specify the items to instantiate,
  11298. # then the envvar interface is used. Set only those that are not.
  11299. # We use the long form for the default assignment because of an extremely
  11300. # bizarre bug on SunOS 4.1.3.
  11301. if $ac_need_defaults; then
  11302. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11303. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11304. fi
  11305. # Have a temporary directory for convenience. Make it in the build tree
  11306. # simply because there is no reason to put it here, and in addition,
  11307. # creating and moving files from /tmp can sometimes cause problems.
  11308. # Create a temporary directory, and hook for its removal unless debugging.
  11309. $debug ||
  11310. {
  11311. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11312. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11313. }
  11314. # Create a (secure) tmp directory for tmp files.
  11315. {
  11316. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11317. test -n "$tmp" && test -d "$tmp"
  11318. } ||
  11319. {
  11320. tmp=./confstat$$-$RANDOM
  11321. (umask 077 && mkdir $tmp)
  11322. } ||
  11323. {
  11324. echo "$me: cannot create a temporary directory in ." >&2
  11325. { (exit 1); exit 1; }
  11326. }
  11327. _ACEOF
  11328. cat >>$CONFIG_STATUS <<_ACEOF
  11329. #
  11330. # CONFIG_FILES section.
  11331. #
  11332. # No need to generate the scripts if there are no CONFIG_FILES.
  11333. # This happens for instance when ./config.status config.h
  11334. if test -n "\$CONFIG_FILES"; then
  11335. # Protect against being on the right side of a sed subst in config.status.
  11336. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11337. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11338. s,@SHELL@,$SHELL,;t t
  11339. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11340. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11341. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11342. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11343. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11344. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11345. s,@exec_prefix@,$exec_prefix,;t t
  11346. s,@prefix@,$prefix,;t t
  11347. s,@program_transform_name@,$program_transform_name,;t t
  11348. s,@bindir@,$bindir,;t t
  11349. s,@sbindir@,$sbindir,;t t
  11350. s,@libexecdir@,$libexecdir,;t t
  11351. s,@datadir@,$datadir,;t t
  11352. s,@sysconfdir@,$sysconfdir,;t t
  11353. s,@sharedstatedir@,$sharedstatedir,;t t
  11354. s,@localstatedir@,$localstatedir,;t t
  11355. s,@libdir@,$libdir,;t t
  11356. s,@includedir@,$includedir,;t t
  11357. s,@oldincludedir@,$oldincludedir,;t t
  11358. s,@infodir@,$infodir,;t t
  11359. s,@mandir@,$mandir,;t t
  11360. s,@build_alias@,$build_alias,;t t
  11361. s,@host_alias@,$host_alias,;t t
  11362. s,@target_alias@,$target_alias,;t t
  11363. s,@DEFS@,$DEFS,;t t
  11364. s,@ECHO_C@,$ECHO_C,;t t
  11365. s,@ECHO_N@,$ECHO_N,;t t
  11366. s,@ECHO_T@,$ECHO_T,;t t
  11367. s,@LIBS@,$LIBS,;t t
  11368. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11369. s,@CC@,$CC,;t t
  11370. s,@CFLAGS@,$CFLAGS,;t t
  11371. s,@LDFLAGS@,$LDFLAGS,;t t
  11372. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11373. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11374. s,@EXEEXT@,$EXEEXT,;t t
  11375. s,@OBJEXT@,$OBJEXT,;t t
  11376. s,@CPP@,$CPP,;t t
  11377. s,@EGREP@,$EGREP,;t t
  11378. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11379. s,@GCC3@,$GCC3,;t t
  11380. s,@CCDEBUG@,$CCDEBUG,;t t
  11381. s,@SET_MAKE@,$SET_MAKE,;t t
  11382. s,@HEAD_1@,$HEAD_1,;t t
  11383. s,@AWK@,$AWK,;t t
  11384. s,@BASENAME@,$BASENAME,;t t
  11385. s,@OBJCOPY@,$OBJCOPY,;t t
  11386. s,@STRIP@,$STRIP,;t t
  11387. s,@UNAME@,$UNAME,;t t
  11388. s,@DISTCC@,$DISTCC,;t t
  11389. s,@RESLIB@,$RESLIB,;t t
  11390. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11391. s,@ZLIB@,$ZLIB,;t t
  11392. s,@LIBOBJS@,$LIBOBJS,;t t
  11393. s,@VERSION@,$VERSION,;t t
  11394. s,@NUMVER@,$NUMVER,;t t
  11395. s,@WRAP@,$WRAP,;t t
  11396. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11397. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11398. CEOF
  11399. _ACEOF
  11400. cat >>$CONFIG_STATUS <<\_ACEOF
  11401. # Split the substitutions into bite-sized pieces for seds with
  11402. # small command number limits, like on Digital OSF/1 and HP-UX.
  11403. ac_max_sed_lines=48
  11404. ac_sed_frag=1 # Number of current file.
  11405. ac_beg=1 # First line for current file.
  11406. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11407. ac_more_lines=:
  11408. ac_sed_cmds=
  11409. while $ac_more_lines; do
  11410. if test $ac_beg -gt 1; then
  11411. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11412. else
  11413. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11414. fi
  11415. if test ! -s $tmp/subs.frag; then
  11416. ac_more_lines=false
  11417. else
  11418. # The purpose of the label and of the branching condition is to
  11419. # speed up the sed processing (if there are no `@' at all, there
  11420. # is no need to browse any of the substitutions).
  11421. # These are the two extra sed commands mentioned above.
  11422. (echo ':t
  11423. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11424. if test -z "$ac_sed_cmds"; then
  11425. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11426. else
  11427. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11428. fi
  11429. ac_sed_frag=`expr $ac_sed_frag + 1`
  11430. ac_beg=$ac_end
  11431. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11432. fi
  11433. done
  11434. if test -z "$ac_sed_cmds"; then
  11435. ac_sed_cmds=cat
  11436. fi
  11437. fi # test -n "$CONFIG_FILES"
  11438. _ACEOF
  11439. cat >>$CONFIG_STATUS <<\_ACEOF
  11440. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11441. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11442. case $ac_file in
  11443. - | *:- | *:-:* ) # input from stdin
  11444. cat >$tmp/stdin
  11445. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11446. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11447. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11448. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11449. * ) ac_file_in=$ac_file.in ;;
  11450. esac
  11451. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11452. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11453. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11454. X"$ac_file" : 'X\(//\)[^/]' \| \
  11455. X"$ac_file" : 'X\(//\)$' \| \
  11456. X"$ac_file" : 'X\(/\)' \| \
  11457. . : '\(.\)' 2>/dev/null ||
  11458. echo X"$ac_file" |
  11459. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11460. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11461. /^X\(\/\/\)$/{ s//\1/; q; }
  11462. /^X\(\/\).*/{ s//\1/; q; }
  11463. s/.*/./; q'`
  11464. { if $as_mkdir_p; then
  11465. mkdir -p "$ac_dir"
  11466. else
  11467. as_dir="$ac_dir"
  11468. as_dirs=
  11469. while test ! -d "$as_dir"; do
  11470. as_dirs="$as_dir $as_dirs"
  11471. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11472. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11473. X"$as_dir" : 'X\(//\)[^/]' \| \
  11474. X"$as_dir" : 'X\(//\)$' \| \
  11475. X"$as_dir" : 'X\(/\)' \| \
  11476. . : '\(.\)' 2>/dev/null ||
  11477. echo X"$as_dir" |
  11478. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11479. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11480. /^X\(\/\/\)$/{ s//\1/; q; }
  11481. /^X\(\/\).*/{ s//\1/; q; }
  11482. s/.*/./; q'`
  11483. done
  11484. test ! -n "$as_dirs" || mkdir $as_dirs
  11485. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11486. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11487. { (exit 1); exit 1; }; }; }
  11488. ac_builddir=.
  11489. if test "$ac_dir" != .; then
  11490. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11491. # A "../" for each directory in $ac_dir_suffix.
  11492. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11493. else
  11494. ac_dir_suffix= ac_top_builddir=
  11495. fi
  11496. case $srcdir in
  11497. .) # No --srcdir option. We are building in place.
  11498. ac_srcdir=.
  11499. if test -z "$ac_top_builddir"; then
  11500. ac_top_srcdir=.
  11501. else
  11502. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11503. fi ;;
  11504. [\\/]* | ?:[\\/]* ) # Absolute path.
  11505. ac_srcdir=$srcdir$ac_dir_suffix;
  11506. ac_top_srcdir=$srcdir ;;
  11507. *) # Relative path.
  11508. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11509. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11510. esac
  11511. # Do not use `cd foo && pwd` to compute absolute paths, because
  11512. # the directories may not exist.
  11513. case `pwd` in
  11514. .) ac_abs_builddir="$ac_dir";;
  11515. *)
  11516. case "$ac_dir" in
  11517. .) ac_abs_builddir=`pwd`;;
  11518. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11519. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11520. esac;;
  11521. esac
  11522. case $ac_abs_builddir in
  11523. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11524. *)
  11525. case ${ac_top_builddir}. in
  11526. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11527. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11528. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11529. esac;;
  11530. esac
  11531. case $ac_abs_builddir in
  11532. .) ac_abs_srcdir=$ac_srcdir;;
  11533. *)
  11534. case $ac_srcdir in
  11535. .) ac_abs_srcdir=$ac_abs_builddir;;
  11536. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11537. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11538. esac;;
  11539. esac
  11540. case $ac_abs_builddir in
  11541. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11542. *)
  11543. case $ac_top_srcdir in
  11544. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11545. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11546. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11547. esac;;
  11548. esac
  11549. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11550. # use $as_me), people would be surprised to read:
  11551. # /* config.h. Generated by config.status. */
  11552. if test x"$ac_file" = x-; then
  11553. configure_input=
  11554. else
  11555. configure_input="$ac_file. "
  11556. fi
  11557. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11558. sed 's,.*/,,'` by configure."
  11559. # First look for the input files in the build tree, otherwise in the
  11560. # src tree.
  11561. ac_file_inputs=`IFS=:
  11562. for f in $ac_file_in; do
  11563. case $f in
  11564. -) echo $tmp/stdin ;;
  11565. [\\/$]*)
  11566. # Absolute (can't be DOS-style, as IFS=:)
  11567. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11568. echo "$as_me: error: cannot find input file: $f" >&2;}
  11569. { (exit 1); exit 1; }; }
  11570. echo "$f";;
  11571. *) # Relative
  11572. if test -f "$f"; then
  11573. # Build tree
  11574. echo "$f"
  11575. elif test -f "$srcdir/$f"; then
  11576. # Source tree
  11577. echo "$srcdir/$f"
  11578. else
  11579. # /dev/null tree
  11580. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11581. echo "$as_me: error: cannot find input file: $f" >&2;}
  11582. { (exit 1); exit 1; }; }
  11583. fi;;
  11584. esac
  11585. done` || { (exit 1); exit 1; }
  11586. if test x"$ac_file" != x-; then
  11587. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11588. echo "$as_me: creating $ac_file" >&6;}
  11589. rm -f "$ac_file"
  11590. fi
  11591. _ACEOF
  11592. cat >>$CONFIG_STATUS <<_ACEOF
  11593. sed "$ac_vpsub
  11594. $extrasub
  11595. _ACEOF
  11596. cat >>$CONFIG_STATUS <<\_ACEOF
  11597. :t
  11598. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11599. s,@configure_input@,$configure_input,;t t
  11600. s,@srcdir@,$ac_srcdir,;t t
  11601. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11602. s,@top_srcdir@,$ac_top_srcdir,;t t
  11603. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11604. s,@builddir@,$ac_builddir,;t t
  11605. s,@abs_builddir@,$ac_abs_builddir,;t t
  11606. s,@top_builddir@,$ac_top_builddir,;t t
  11607. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11608. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11609. rm -f $tmp/stdin
  11610. if test x"$ac_file" != x-; then
  11611. mv $tmp/out $ac_file
  11612. else
  11613. cat $tmp/out
  11614. rm -f $tmp/out
  11615. fi
  11616. done
  11617. _ACEOF
  11618. cat >>$CONFIG_STATUS <<\_ACEOF
  11619. #
  11620. # CONFIG_HEADER section.
  11621. #
  11622. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11623. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11624. #
  11625. # ac_d sets the value in "#define NAME VALUE" lines.
  11626. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11627. ac_dB='[ ].*$,\1#\2'
  11628. ac_dC=' '
  11629. ac_dD=',;t'
  11630. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11631. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11632. ac_uB='$,\1#\2define\3'
  11633. ac_uC=' '
  11634. ac_uD=',;t'
  11635. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11636. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11637. case $ac_file in
  11638. - | *:- | *:-:* ) # input from stdin
  11639. cat >$tmp/stdin
  11640. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11641. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11642. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11643. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11644. * ) ac_file_in=$ac_file.in ;;
  11645. esac
  11646. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11647. echo "$as_me: creating $ac_file" >&6;}
  11648. # First look for the input files in the build tree, otherwise in the
  11649. # src tree.
  11650. ac_file_inputs=`IFS=:
  11651. for f in $ac_file_in; do
  11652. case $f in
  11653. -) echo $tmp/stdin ;;
  11654. [\\/$]*)
  11655. # Absolute (can't be DOS-style, as IFS=:)
  11656. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11657. echo "$as_me: error: cannot find input file: $f" >&2;}
  11658. { (exit 1); exit 1; }; }
  11659. # Do quote $f, to prevent DOS paths from being IFS'd.
  11660. echo "$f";;
  11661. *) # Relative
  11662. if test -f "$f"; then
  11663. # Build tree
  11664. echo "$f"
  11665. elif test -f "$srcdir/$f"; then
  11666. # Source tree
  11667. echo "$srcdir/$f"
  11668. else
  11669. # /dev/null tree
  11670. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11671. echo "$as_me: error: cannot find input file: $f" >&2;}
  11672. { (exit 1); exit 1; }; }
  11673. fi;;
  11674. esac
  11675. done` || { (exit 1); exit 1; }
  11676. # Remove the trailing spaces.
  11677. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11678. _ACEOF
  11679. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11680. # `conftest.undefs', that substitutes the proper values into
  11681. # config.h.in to produce config.h. The first handles `#define'
  11682. # templates, and the second `#undef' templates.
  11683. # And first: Protect against being on the right side of a sed subst in
  11684. # config.status. Protect against being in an unquoted here document
  11685. # in config.status.
  11686. rm -f conftest.defines conftest.undefs
  11687. # Using a here document instead of a string reduces the quoting nightmare.
  11688. # Putting comments in sed scripts is not portable.
  11689. #
  11690. # `end' is used to avoid that the second main sed command (meant for
  11691. # 0-ary CPP macros) applies to n-ary macro definitions.
  11692. # See the Autoconf documentation for `clear'.
  11693. cat >confdef2sed.sed <<\_ACEOF
  11694. s/[\\&,]/\\&/g
  11695. s,[\\$`],\\&,g
  11696. t clear
  11697. : clear
  11698. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11699. t end
  11700. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11701. : end
  11702. _ACEOF
  11703. # If some macros were called several times there might be several times
  11704. # the same #defines, which is useless. Nevertheless, we may not want to
  11705. # sort them, since we want the *last* AC-DEFINE to be honored.
  11706. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11707. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11708. rm -f confdef2sed.sed
  11709. # This sed command replaces #undef with comments. This is necessary, for
  11710. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11711. # on some systems where configure will not decide to define it.
  11712. cat >>conftest.undefs <<\_ACEOF
  11713. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11714. _ACEOF
  11715. # Break up conftest.defines because some shells have a limit on the size
  11716. # of here documents, and old seds have small limits too (100 cmds).
  11717. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11718. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11719. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11720. echo ' :' >>$CONFIG_STATUS
  11721. rm -f conftest.tail
  11722. while grep . conftest.defines >/dev/null
  11723. do
  11724. # Write a limited-size here document to $tmp/defines.sed.
  11725. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11726. # Speed up: don't consider the non `#define' lines.
  11727. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11728. # Work around the forget-to-reset-the-flag bug.
  11729. echo 't clr' >>$CONFIG_STATUS
  11730. echo ': clr' >>$CONFIG_STATUS
  11731. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11732. echo 'CEOF
  11733. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11734. rm -f $tmp/in
  11735. mv $tmp/out $tmp/in
  11736. ' >>$CONFIG_STATUS
  11737. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11738. rm -f conftest.defines
  11739. mv conftest.tail conftest.defines
  11740. done
  11741. rm -f conftest.defines
  11742. echo ' fi # grep' >>$CONFIG_STATUS
  11743. echo >>$CONFIG_STATUS
  11744. # Break up conftest.undefs because some shells have a limit on the size
  11745. # of here documents, and old seds have small limits too (100 cmds).
  11746. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11747. rm -f conftest.tail
  11748. while grep . conftest.undefs >/dev/null
  11749. do
  11750. # Write a limited-size here document to $tmp/undefs.sed.
  11751. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11752. # Speed up: don't consider the non `#undef'
  11753. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11754. # Work around the forget-to-reset-the-flag bug.
  11755. echo 't clr' >>$CONFIG_STATUS
  11756. echo ': clr' >>$CONFIG_STATUS
  11757. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11758. echo 'CEOF
  11759. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11760. rm -f $tmp/in
  11761. mv $tmp/out $tmp/in
  11762. ' >>$CONFIG_STATUS
  11763. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11764. rm -f conftest.undefs
  11765. mv conftest.tail conftest.undefs
  11766. done
  11767. rm -f conftest.undefs
  11768. cat >>$CONFIG_STATUS <<\_ACEOF
  11769. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11770. # use $as_me), people would be surprised to read:
  11771. # /* config.h. Generated by config.status. */
  11772. if test x"$ac_file" = x-; then
  11773. echo "/* Generated by configure. */" >$tmp/config.h
  11774. else
  11775. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11776. fi
  11777. cat $tmp/in >>$tmp/config.h
  11778. rm -f $tmp/in
  11779. if test x"$ac_file" != x-; then
  11780. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11781. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11782. echo "$as_me: $ac_file is unchanged" >&6;}
  11783. else
  11784. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11785. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11786. X"$ac_file" : 'X\(//\)[^/]' \| \
  11787. X"$ac_file" : 'X\(//\)$' \| \
  11788. X"$ac_file" : 'X\(/\)' \| \
  11789. . : '\(.\)' 2>/dev/null ||
  11790. echo X"$ac_file" |
  11791. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11792. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11793. /^X\(\/\/\)$/{ s//\1/; q; }
  11794. /^X\(\/\).*/{ s//\1/; q; }
  11795. s/.*/./; q'`
  11796. { if $as_mkdir_p; then
  11797. mkdir -p "$ac_dir"
  11798. else
  11799. as_dir="$ac_dir"
  11800. as_dirs=
  11801. while test ! -d "$as_dir"; do
  11802. as_dirs="$as_dir $as_dirs"
  11803. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11804. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11805. X"$as_dir" : 'X\(//\)[^/]' \| \
  11806. X"$as_dir" : 'X\(//\)$' \| \
  11807. X"$as_dir" : 'X\(/\)' \| \
  11808. . : '\(.\)' 2>/dev/null ||
  11809. echo X"$as_dir" |
  11810. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11811. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11812. /^X\(\/\/\)$/{ s//\1/; q; }
  11813. /^X\(\/\).*/{ s//\1/; q; }
  11814. s/.*/./; q'`
  11815. done
  11816. test ! -n "$as_dirs" || mkdir $as_dirs
  11817. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11818. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11819. { (exit 1); exit 1; }; }; }
  11820. rm -f $ac_file
  11821. mv $tmp/config.h $ac_file
  11822. fi
  11823. else
  11824. cat $tmp/config.h
  11825. rm -f $tmp/config.h
  11826. fi
  11827. done
  11828. _ACEOF
  11829. cat >>$CONFIG_STATUS <<\_ACEOF
  11830. { (exit 0); exit 0; }
  11831. _ACEOF
  11832. chmod +x $CONFIG_STATUS
  11833. ac_clean_files=$ac_clean_files_save
  11834. # configure is writing to config.log, and then calls config.status.
  11835. # config.status does its own redirection, appending to config.log.
  11836. # Unfortunately, on DOS this fails, as config.log is still kept open
  11837. # by configure, so config.status won't be able to write to it; its
  11838. # output is simply discarded. So we exec the FD to /dev/null,
  11839. # effectively closing config.log, so it can be properly (re)opened and
  11840. # appended to by config.status. When coming back to configure, we
  11841. # need to make the FD available again.
  11842. if test "$no_create" != yes; then
  11843. ac_cs_success=:
  11844. ac_config_status_args=
  11845. test "$silent" = yes &&
  11846. ac_config_status_args="$ac_config_status_args --quiet"
  11847. exec 5>/dev/null
  11848. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11849. exec 5>>config.log
  11850. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11851. # would make configure fail if this is the last instruction.
  11852. $ac_cs_success || { (exit 1); exit 1; }
  11853. fi