configure 383 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.4 .
  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 CCDEBUG SET_MAKE HEAD_1 STRIP AWK BASENAME CCACHE UNAME ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  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 <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. # Create static binaries
  2829. if test -z "$no_static"
  2830. then
  2831. if test -n "$GCC"
  2832. then
  2833. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2834. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2835. if test "${egg_cv_var_ccstatic+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_old_CC="$CC"
  2839. CC="$CC -static"
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. rm -f conftest.$ac_objext
  2854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. (eval $ac_compile) 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } &&
  2862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2864. (eval $ac_try) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; } &&
  2868. { ac_try='test -s conftest.$ac_objext'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; }; then
  2874. egg_cv_var_ccstatic="yes"
  2875. else
  2876. echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. egg_cv_var_ccstatic="no"
  2879. fi
  2880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. CC="$ac_old_CC"
  2882. fi
  2883. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2884. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2885. if test "$egg_cv_var_ccstatic" = "yes"
  2886. then
  2887. CCDEBUG="$CC"
  2888. CC="$CC -static"
  2889. else
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. Your C compiler does not support -static.
  2893. This compile flag is required for the botpack.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. fi
  2898. fi
  2899. # Checks for programs
  2900. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2901. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2902. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2903. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. cat >conftest.make <<\_ACEOF
  2907. all:
  2908. @echo 'ac_maketemp="$(MAKE)"'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2911. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2912. if test -n "$ac_maketemp"; then
  2913. eval ac_cv_prog_make_${ac_make}_set=yes
  2914. else
  2915. eval ac_cv_prog_make_${ac_make}_set=no
  2916. fi
  2917. rm -f conftest.make
  2918. fi
  2919. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2920. echo "$as_me:$LINENO: result: yes" >&5
  2921. echo "${ECHO_T}yes" >&6
  2922. SET_MAKE=
  2923. else
  2924. echo "$as_me:$LINENO: result: no" >&5
  2925. echo "${ECHO_T}no" >&6
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. cat << 'EOF' > conftest.head
  2929. a
  2930. b
  2931. c
  2932. EOF
  2933. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2934. do
  2935. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2936. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2937. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$HEAD_1"
  2941. then
  2942. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2943. else
  2944. if test "`cat conftest.head | $ac_prog`" = "a";
  2945. then
  2946. echo "$as_me:$LINENO: result: yes" >&5
  2947. echo "${ECHO_T}yes" >&6
  2948. ac_cv_prog_HEAD_1=$ac_prog
  2949. else
  2950. echo "$as_me:$LINENO: result: no" >&5
  2951. echo "${ECHO_T}no" >&6
  2952. fi
  2953. fi
  2954. fi
  2955. test -n "$ac_cv_prog_HEAD_1" && break
  2956. done
  2957. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2958. then
  2959. cat << 'EOF' >&2
  2960. configure: error:
  2961. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2962. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2963. EOF
  2964. exit 1
  2965. fi
  2966. rm -f conftest.head
  2967. HEAD_1=$ac_cv_prog_HEAD_1
  2968. # Extract the first word of "strip", so it can be a program name with args.
  2969. set dummy strip; ac_word=$2
  2970. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2971. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2972. if test "${ac_cv_prog_STRIP+set}" = set; then
  2973. echo $ECHO_N "(cached) $ECHO_C" >&6
  2974. else
  2975. if test -n "$STRIP"; then
  2976. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2977. else
  2978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2979. for as_dir in $PATH
  2980. do
  2981. IFS=$as_save_IFS
  2982. test -z "$as_dir" && as_dir=.
  2983. for ac_exec_ext in '' $ac_executable_extensions; do
  2984. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2985. ac_cv_prog_STRIP="strip"
  2986. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2987. break 2
  2988. fi
  2989. done
  2990. done
  2991. fi
  2992. fi
  2993. STRIP=$ac_cv_prog_STRIP
  2994. if test -n "$STRIP"; then
  2995. echo "$as_me:$LINENO: result: $STRIP" >&5
  2996. echo "${ECHO_T}$STRIP" >&6
  2997. else
  2998. echo "$as_me:$LINENO: result: no" >&5
  2999. echo "${ECHO_T}no" >&6
  3000. fi
  3001. if test "${STRIP-x}" = "x"
  3002. then
  3003. STRIP=touch
  3004. fi
  3005. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3006. for ac_prog in gawk mawk nawk awk
  3007. do
  3008. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3009. set dummy $ac_prog; ac_word=$2
  3010. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3011. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3012. if test "${ac_cv_prog_AWK+set}" = set; then
  3013. echo $ECHO_N "(cached) $ECHO_C" >&6
  3014. else
  3015. if test -n "$AWK"; then
  3016. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3017. else
  3018. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3019. for as_dir in $PATH
  3020. do
  3021. IFS=$as_save_IFS
  3022. test -z "$as_dir" && as_dir=.
  3023. for ac_exec_ext in '' $ac_executable_extensions; do
  3024. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3025. ac_cv_prog_AWK="$ac_prog"
  3026. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3027. break 2
  3028. fi
  3029. done
  3030. done
  3031. fi
  3032. fi
  3033. AWK=$ac_cv_prog_AWK
  3034. if test -n "$AWK"; then
  3035. echo "$as_me:$LINENO: result: $AWK" >&5
  3036. echo "${ECHO_T}$AWK" >&6
  3037. else
  3038. echo "$as_me:$LINENO: result: no" >&5
  3039. echo "${ECHO_T}no" >&6
  3040. fi
  3041. test -n "$AWK" && break
  3042. done
  3043. if test "${AWK-x}" = "x"
  3044. then
  3045. cat << 'EOF' >&2
  3046. configure: error:
  3047. This system seems to lack a working 'awk' command.
  3048. A working 'awk' command is required to compile Eggdrop.
  3049. EOF
  3050. exit 1
  3051. fi
  3052. # basename is needed for Tcl library and header checks
  3053. # Extract the first word of "basename", so it can be a program name with args.
  3054. set dummy basename; ac_word=$2
  3055. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3056. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3057. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3058. echo $ECHO_N "(cached) $ECHO_C" >&6
  3059. else
  3060. if test -n "$BASENAME"; then
  3061. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3062. else
  3063. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3064. for as_dir in $PATH
  3065. do
  3066. IFS=$as_save_IFS
  3067. test -z "$as_dir" && as_dir=.
  3068. for ac_exec_ext in '' $ac_executable_extensions; do
  3069. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3070. ac_cv_prog_BASENAME="basename"
  3071. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3072. break 2
  3073. fi
  3074. done
  3075. done
  3076. fi
  3077. fi
  3078. BASENAME=$ac_cv_prog_BASENAME
  3079. if test -n "$BASENAME"; then
  3080. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3081. echo "${ECHO_T}$BASENAME" >&6
  3082. else
  3083. echo "$as_me:$LINENO: result: no" >&5
  3084. echo "${ECHO_T}no" >&6
  3085. fi
  3086. if test "${BASENAME-x}" = "x"
  3087. then
  3088. cat << 'EOF' >&2
  3089. configure: error:
  3090. This system seems to lack a working 'basename' command.
  3091. A working 'basename' command is required to compile Eggdrop.
  3092. EOF
  3093. exit 1
  3094. fi
  3095. # Extract the first word of "ccache", so it can be a program name with args.
  3096. set dummy ccache; ac_word=$2
  3097. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3098. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3099. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3100. echo $ECHO_N "(cached) $ECHO_C" >&6
  3101. else
  3102. if test -n "$CCACHE"; then
  3103. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. for ac_exec_ext in '' $ac_executable_extensions; do
  3111. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3112. ac_cv_prog_CCACHE="ccache"
  3113. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3114. break 2
  3115. fi
  3116. done
  3117. done
  3118. fi
  3119. fi
  3120. CCACHE=$ac_cv_prog_CCACHE
  3121. if test -n "$CCACHE"; then
  3122. echo "$as_me:$LINENO: result: $CCACHE" >&5
  3123. echo "${ECHO_T}$CCACHE" >&6
  3124. else
  3125. echo "$as_me:$LINENO: result: no" >&5
  3126. echo "${ECHO_T}no" >&6
  3127. fi
  3128. if test "${CCACHE-x}" = "x"
  3129. then
  3130. CCACHE=ccache
  3131. fi
  3132. # Extract the first word of "uname", so it can be a program name with args.
  3133. set dummy uname; ac_word=$2
  3134. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3135. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3136. if test "${ac_cv_prog_UNAME+set}" = set; then
  3137. echo $ECHO_N "(cached) $ECHO_C" >&6
  3138. else
  3139. if test -n "$UNAME"; then
  3140. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3141. else
  3142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3143. for as_dir in $PATH
  3144. do
  3145. IFS=$as_save_IFS
  3146. test -z "$as_dir" && as_dir=.
  3147. for ac_exec_ext in '' $ac_executable_extensions; do
  3148. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3149. ac_cv_prog_UNAME="uname"
  3150. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3151. break 2
  3152. fi
  3153. done
  3154. done
  3155. fi
  3156. fi
  3157. UNAME=$ac_cv_prog_UNAME
  3158. if test -n "$UNAME"; then
  3159. echo "$as_me:$LINENO: result: $UNAME" >&5
  3160. echo "${ECHO_T}$UNAME" >&6
  3161. else
  3162. echo "$as_me:$LINENO: result: no" >&5
  3163. echo "${ECHO_T}no" >&6
  3164. fi
  3165. # Test the os and set the module linking settings
  3166. LINUX=no
  3167. IRIX=no
  3168. SUNOS=no
  3169. HPUX=no
  3170. EGG_CYGWIN=no
  3171. echo "$as_me:$LINENO: checking system type" >&5
  3172. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3173. if test "${egg_cv_var_system_type+set}" = set; then
  3174. echo $ECHO_N "(cached) $ECHO_C" >&6
  3175. else
  3176. egg_cv_var_system_type=`$UNAME -s`
  3177. fi
  3178. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3179. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3180. echo "$as_me:$LINENO: checking system release" >&5
  3181. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3182. if test "${egg_cv_var_system_release+set}" = set; then
  3183. echo $ECHO_N "(cached) $ECHO_C" >&6
  3184. else
  3185. egg_cv_var_system_release=`$UNAME -r`
  3186. fi
  3187. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3188. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3189. case "$egg_cv_var_system_type" in
  3190. BSD/OS)
  3191. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3192. 2)
  3193. ;;
  3194. *)
  3195. CFLAGS="$CFLAGS -Wall"
  3196. ;;
  3197. esac
  3198. ;;
  3199. CYGWI*)
  3200. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3201. 1.*)
  3202. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3203. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3204. WIN32FLAGS=
  3205. cat >conftest.$ac_ext <<_ACEOF
  3206. /* confdefs.h. */
  3207. _ACEOF
  3208. cat confdefs.h >>conftest.$ac_ext
  3209. cat >>conftest.$ac_ext <<_ACEOF
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. #ifndef WIN32
  3215. # ifndef _WIN32
  3216. # error WIN32 or _WIN32 not defined
  3217. # endif
  3218. #endif
  3219. ;
  3220. return 0;
  3221. }
  3222. _ACEOF
  3223. rm -f conftest.$ac_objext
  3224. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3225. (eval $ac_compile) 2>conftest.er1
  3226. ac_status=$?
  3227. grep -v '^ *+' conftest.er1 >conftest.err
  3228. rm -f conftest.er1
  3229. cat conftest.err >&5
  3230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3231. (exit $ac_status); } &&
  3232. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3233. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3234. (eval $ac_try) 2>&5
  3235. ac_status=$?
  3236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3237. (exit $ac_status); }; } &&
  3238. { ac_try='test -s conftest.$ac_objext'
  3239. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3240. (eval $ac_try) 2>&5
  3241. ac_status=$?
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); }; }; then
  3244. echo "$as_me:$LINENO: result: present by default" >&5
  3245. echo "${ECHO_T}present by default" >&6
  3246. else
  3247. echo "$as_me: failed program was:" >&5
  3248. sed 's/^/| /' conftest.$ac_ext >&5
  3249. ac_compile_save="$ac_compile"
  3250. save_CC="$CC"
  3251. ac_compile="$ac_compile -mwin32"
  3252. CC="$CC -mwin32"
  3253. cat >conftest.$ac_ext <<_ACEOF
  3254. /* confdefs.h. */
  3255. _ACEOF
  3256. cat confdefs.h >>conftest.$ac_ext
  3257. cat >>conftest.$ac_ext <<_ACEOF
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. #ifndef WIN32
  3263. # ifndef _WIN32
  3264. # error WIN32 or _WIN32 not defined
  3265. # endif
  3266. #endif
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.$ac_objext
  3272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3273. (eval $ac_compile) 2>conftest.er1
  3274. ac_status=$?
  3275. grep -v '^ *+' conftest.er1 >conftest.err
  3276. rm -f conftest.er1
  3277. cat conftest.err >&5
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); } &&
  3280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3282. (eval $ac_try) 2>&5
  3283. ac_status=$?
  3284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); }; } &&
  3286. { ac_try='test -s conftest.$ac_objext'
  3287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3288. (eval $ac_try) 2>&5
  3289. ac_status=$?
  3290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. (exit $ac_status); }; }; then
  3292. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3293. echo "${ECHO_T}found via -mwin32" >&6
  3294. ac_compile="$ac_compile_save"
  3295. CC="$save_CC"
  3296. WIN32FLAGS="-mwin32"
  3297. else
  3298. echo "$as_me: failed program was:" >&5
  3299. sed 's/^/| /' conftest.$ac_ext >&5
  3300. ac_compile="$ac_compile_save"
  3301. CC="$save_CC"
  3302. echo "$as_me:$LINENO: result: not found" >&5
  3303. echo "${ECHO_T}not found" >&6
  3304. fi
  3305. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3306. fi
  3307. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3308. CC="$CC $WIN32FLAGS"
  3309. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3310. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3311. if test -r /usr/lib/binmode.o
  3312. then
  3313. echo "$as_me:$LINENO: result: yes" >&5
  3314. echo "${ECHO_T}yes" >&6
  3315. LIBS="$LIBS /usr/lib/binmode.o"
  3316. else
  3317. echo "$as_me:$LINENO: result: no" >&5
  3318. echo "${ECHO_T}no" >&6
  3319. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3320. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3321. fi
  3322. ;;
  3323. *)
  3324. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3325. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3326. ;;
  3327. esac
  3328. EGG_CYGWIN=yes
  3329. cat >>confdefs.h <<\_ACEOF
  3330. #define CYGWIN_HACKS 1
  3331. _ACEOF
  3332. ;;
  3333. HP-UX)
  3334. HPUX=yes
  3335. cat >>confdefs.h <<\_ACEOF
  3336. #define HPUX_HACKS 1
  3337. _ACEOF
  3338. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3339. then
  3340. cat >>confdefs.h <<\_ACEOF
  3341. #define HPUX10_HACKS 1
  3342. _ACEOF
  3343. fi
  3344. ;;
  3345. dell)
  3346. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3347. echo "${ECHO_T}Dell SVR4" >&6
  3348. ;;
  3349. IRIX)
  3350. IRIX=yes
  3351. ;;
  3352. Ultrix)
  3353. SHELL=/bin/sh5
  3354. ;;
  3355. SINIX*)
  3356. ;;
  3357. BeOS)
  3358. ;;
  3359. Linux)
  3360. LINUX=yes
  3361. CFLAGS="$CFLAGS -Wall"
  3362. ;;
  3363. Lynx)
  3364. ;;
  3365. QNX)
  3366. ;;
  3367. OSF1)
  3368. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3369. V*)
  3370. # FIXME: we should check this in a separate test
  3371. # Digital OSF uses an ancient version of gawk
  3372. if test "$AWK" = "gawk"
  3373. then
  3374. AWK=awk
  3375. fi
  3376. ;;
  3377. 1.0|1.1|1.2)
  3378. cat >>confdefs.h <<\_ACEOF
  3379. #define OSF1_HACKS 1
  3380. _ACEOF
  3381. ;;
  3382. 1.*)
  3383. cat >>confdefs.h <<\_ACEOF
  3384. #define OSF1_HACKS 1
  3385. _ACEOF
  3386. ;;
  3387. *)
  3388. ;;
  3389. esac
  3390. cat >>confdefs.h <<\_ACEOF
  3391. #define STOP_UAC 1
  3392. _ACEOF
  3393. cat >>confdefs.h <<\_ACEOF
  3394. #define BROKEN_SNPRINTF 1
  3395. _ACEOF
  3396. ;;
  3397. SunOS)
  3398. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3399. then
  3400. # SunOS 4
  3401. SUNOS=yes
  3402. fi
  3403. ;;
  3404. *BSD)
  3405. # FreeBSD/OpenBSD/NetBSD
  3406. ;;
  3407. *)
  3408. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3409. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3410. if test -r /mach
  3411. then
  3412. echo "$as_me:$LINENO: result: yes" >&5
  3413. echo "${ECHO_T}yes" >&6
  3414. cat >>confdefs.h <<\_ACEOF
  3415. #define BORGCUBES 1
  3416. _ACEOF
  3417. else
  3418. echo "$as_me:$LINENO: result: no" >&5
  3419. echo "${ECHO_T}no" >&6
  3420. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3421. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3422. if test -r /cmds
  3423. then
  3424. echo "$as_me:$LINENO: result: yes" >&5
  3425. echo "${ECHO_T}yes" >&6
  3426. else
  3427. echo "$as_me:$LINENO: result: no" >&5
  3428. echo "${ECHO_T}no" >&6
  3429. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3430. echo "${ECHO_T}Something unknown!" >&6
  3431. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3432. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3433. fi
  3434. fi
  3435. ;;
  3436. esac
  3437. #checkpoint
  3438. cat >confcache <<\_ACEOF
  3439. # This file is a shell script that caches the results of configure
  3440. # tests run on this system so they can be shared between configure
  3441. # scripts and configure runs, see configure's option --config-cache.
  3442. # It is not useful on other systems. If it contains results you don't
  3443. # want to keep, you may remove or edit it.
  3444. #
  3445. # config.status only pays attention to the cache file if you give it
  3446. # the --recheck option to rerun configure.
  3447. #
  3448. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3449. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3450. # following values.
  3451. _ACEOF
  3452. # The following way of writing the cache mishandles newlines in values,
  3453. # but we know of no workaround that is simple, portable, and efficient.
  3454. # So, don't put newlines in cache variables' values.
  3455. # Ultrix sh set writes to stderr and can't be redirected directly,
  3456. # and sets the high bit in the cache file unless we assign to the vars.
  3457. {
  3458. (set) 2>&1 |
  3459. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3460. *ac_space=\ *)
  3461. # `set' does not quote correctly, so add quotes (double-quote
  3462. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3463. sed -n \
  3464. "s/'/'\\\\''/g;
  3465. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3466. ;;
  3467. *)
  3468. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3469. sed -n \
  3470. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3471. ;;
  3472. esac;
  3473. } |
  3474. sed '
  3475. t clear
  3476. : clear
  3477. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3478. t end
  3479. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3480. : end' >>confcache
  3481. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3482. if test -w $cache_file; then
  3483. test "x$cache_file" != "x/dev/null"
  3484. cat confcache >$cache_file
  3485. else
  3486. echo "not updating unwritable cache $cache_file"
  3487. fi
  3488. fi
  3489. rm -f confcache
  3490. # Checks for system libraries
  3491. # FIXME: this needs to be fixed so that it works on IRIX
  3492. if test "$IRIX" = "yes"
  3493. then
  3494. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3495. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3496. else
  3497. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3498. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3499. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3500. echo $ECHO_N "(cached) $ECHO_C" >&6
  3501. else
  3502. ac_check_lib_save_LIBS=$LIBS
  3503. LIBS="-lsocket $LIBS"
  3504. cat >conftest.$ac_ext <<_ACEOF
  3505. /* confdefs.h. */
  3506. _ACEOF
  3507. cat confdefs.h >>conftest.$ac_ext
  3508. cat >>conftest.$ac_ext <<_ACEOF
  3509. /* end confdefs.h. */
  3510. /* Override any gcc2 internal prototype to avoid an error. */
  3511. #ifdef __cplusplus
  3512. extern "C"
  3513. #endif
  3514. /* We use char because int might match the return type of a gcc2
  3515. builtin and then its argument prototype would still apply. */
  3516. char socket ();
  3517. int
  3518. main ()
  3519. {
  3520. socket ();
  3521. ;
  3522. return 0;
  3523. }
  3524. _ACEOF
  3525. rm -f conftest.$ac_objext conftest$ac_exeext
  3526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3527. (eval $ac_link) 2>conftest.er1
  3528. ac_status=$?
  3529. grep -v '^ *+' conftest.er1 >conftest.err
  3530. rm -f conftest.er1
  3531. cat conftest.err >&5
  3532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3533. (exit $ac_status); } &&
  3534. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3536. (eval $ac_try) 2>&5
  3537. ac_status=$?
  3538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3539. (exit $ac_status); }; } &&
  3540. { ac_try='test -s conftest$ac_exeext'
  3541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3542. (eval $ac_try) 2>&5
  3543. ac_status=$?
  3544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3545. (exit $ac_status); }; }; then
  3546. ac_cv_lib_socket_socket=yes
  3547. else
  3548. echo "$as_me: failed program was:" >&5
  3549. sed 's/^/| /' conftest.$ac_ext >&5
  3550. ac_cv_lib_socket_socket=no
  3551. fi
  3552. rm -f conftest.err conftest.$ac_objext \
  3553. conftest$ac_exeext conftest.$ac_ext
  3554. LIBS=$ac_check_lib_save_LIBS
  3555. fi
  3556. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3557. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3558. if test $ac_cv_lib_socket_socket = yes; then
  3559. cat >>confdefs.h <<_ACEOF
  3560. #define HAVE_LIBSOCKET 1
  3561. _ACEOF
  3562. LIBS="-lsocket $LIBS"
  3563. fi
  3564. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3565. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3566. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3567. echo $ECHO_N "(cached) $ECHO_C" >&6
  3568. else
  3569. ac_check_lib_save_LIBS=$LIBS
  3570. LIBS="-lnsl $LIBS"
  3571. cat >conftest.$ac_ext <<_ACEOF
  3572. /* confdefs.h. */
  3573. _ACEOF
  3574. cat confdefs.h >>conftest.$ac_ext
  3575. cat >>conftest.$ac_ext <<_ACEOF
  3576. /* end confdefs.h. */
  3577. /* Override any gcc2 internal prototype to avoid an error. */
  3578. #ifdef __cplusplus
  3579. extern "C"
  3580. #endif
  3581. /* We use char because int might match the return type of a gcc2
  3582. builtin and then its argument prototype would still apply. */
  3583. char connect ();
  3584. int
  3585. main ()
  3586. {
  3587. connect ();
  3588. ;
  3589. return 0;
  3590. }
  3591. _ACEOF
  3592. rm -f conftest.$ac_objext conftest$ac_exeext
  3593. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3594. (eval $ac_link) 2>conftest.er1
  3595. ac_status=$?
  3596. grep -v '^ *+' conftest.er1 >conftest.err
  3597. rm -f conftest.er1
  3598. cat conftest.err >&5
  3599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3600. (exit $ac_status); } &&
  3601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3603. (eval $ac_try) 2>&5
  3604. ac_status=$?
  3605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3606. (exit $ac_status); }; } &&
  3607. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  3613. ac_cv_lib_nsl_connect=yes
  3614. else
  3615. echo "$as_me: failed program was:" >&5
  3616. sed 's/^/| /' conftest.$ac_ext >&5
  3617. ac_cv_lib_nsl_connect=no
  3618. fi
  3619. rm -f conftest.err conftest.$ac_objext \
  3620. conftest$ac_exeext conftest.$ac_ext
  3621. LIBS=$ac_check_lib_save_LIBS
  3622. fi
  3623. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3624. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3625. if test $ac_cv_lib_nsl_connect = yes; then
  3626. cat >>confdefs.h <<_ACEOF
  3627. #define HAVE_LIBNSL 1
  3628. _ACEOF
  3629. LIBS="-lnsl $LIBS"
  3630. fi
  3631. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3632. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3633. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3634. echo $ECHO_N "(cached) $ECHO_C" >&6
  3635. else
  3636. ac_check_lib_save_LIBS=$LIBS
  3637. LIBS="-ldns $LIBS"
  3638. cat >conftest.$ac_ext <<_ACEOF
  3639. /* confdefs.h. */
  3640. _ACEOF
  3641. cat confdefs.h >>conftest.$ac_ext
  3642. cat >>conftest.$ac_ext <<_ACEOF
  3643. /* end confdefs.h. */
  3644. /* Override any gcc2 internal prototype to avoid an error. */
  3645. #ifdef __cplusplus
  3646. extern "C"
  3647. #endif
  3648. /* We use char because int might match the return type of a gcc2
  3649. builtin and then its argument prototype would still apply. */
  3650. char gethostbyname ();
  3651. int
  3652. main ()
  3653. {
  3654. gethostbyname ();
  3655. ;
  3656. return 0;
  3657. }
  3658. _ACEOF
  3659. rm -f conftest.$ac_objext conftest$ac_exeext
  3660. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3661. (eval $ac_link) 2>conftest.er1
  3662. ac_status=$?
  3663. grep -v '^ *+' conftest.er1 >conftest.err
  3664. rm -f conftest.er1
  3665. cat conftest.err >&5
  3666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3667. (exit $ac_status); } &&
  3668. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3670. (eval $ac_try) 2>&5
  3671. ac_status=$?
  3672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3673. (exit $ac_status); }; } &&
  3674. { ac_try='test -s conftest$ac_exeext'
  3675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3676. (eval $ac_try) 2>&5
  3677. ac_status=$?
  3678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. (exit $ac_status); }; }; then
  3680. ac_cv_lib_dns_gethostbyname=yes
  3681. else
  3682. echo "$as_me: failed program was:" >&5
  3683. sed 's/^/| /' conftest.$ac_ext >&5
  3684. ac_cv_lib_dns_gethostbyname=no
  3685. fi
  3686. rm -f conftest.err conftest.$ac_objext \
  3687. conftest$ac_exeext conftest.$ac_ext
  3688. LIBS=$ac_check_lib_save_LIBS
  3689. fi
  3690. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3691. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3692. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3693. cat >>confdefs.h <<_ACEOF
  3694. #define HAVE_LIBDNS 1
  3695. _ACEOF
  3696. LIBS="-ldns $LIBS"
  3697. fi
  3698. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3699. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3700. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3701. echo $ECHO_N "(cached) $ECHO_C" >&6
  3702. else
  3703. ac_check_lib_save_LIBS=$LIBS
  3704. LIBS="-lz $LIBS"
  3705. cat >conftest.$ac_ext <<_ACEOF
  3706. /* confdefs.h. */
  3707. _ACEOF
  3708. cat confdefs.h >>conftest.$ac_ext
  3709. cat >>conftest.$ac_ext <<_ACEOF
  3710. /* end confdefs.h. */
  3711. /* Override any gcc2 internal prototype to avoid an error. */
  3712. #ifdef __cplusplus
  3713. extern "C"
  3714. #endif
  3715. /* We use char because int might match the return type of a gcc2
  3716. builtin and then its argument prototype would still apply. */
  3717. char gzopen ();
  3718. int
  3719. main ()
  3720. {
  3721. gzopen ();
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. rm -f conftest.$ac_objext conftest$ac_exeext
  3727. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3728. (eval $ac_link) 2>conftest.er1
  3729. ac_status=$?
  3730. grep -v '^ *+' conftest.er1 >conftest.err
  3731. rm -f conftest.er1
  3732. cat conftest.err >&5
  3733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3734. (exit $ac_status); } &&
  3735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3737. (eval $ac_try) 2>&5
  3738. ac_status=$?
  3739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); }; } &&
  3741. { ac_try='test -s conftest$ac_exeext'
  3742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3743. (eval $ac_try) 2>&5
  3744. ac_status=$?
  3745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3746. (exit $ac_status); }; }; then
  3747. ac_cv_lib_z_gzopen=yes
  3748. else
  3749. echo "$as_me: failed program was:" >&5
  3750. sed 's/^/| /' conftest.$ac_ext >&5
  3751. ac_cv_lib_z_gzopen=no
  3752. fi
  3753. rm -f conftest.err conftest.$ac_objext \
  3754. conftest$ac_exeext conftest.$ac_ext
  3755. LIBS=$ac_check_lib_save_LIBS
  3756. fi
  3757. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3758. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3759. if test $ac_cv_lib_z_gzopen = yes; then
  3760. ZLIB="-lz"
  3761. fi
  3762. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3763. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3764. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3765. echo $ECHO_N "(cached) $ECHO_C" >&6
  3766. else
  3767. ac_check_lib_save_LIBS=$LIBS
  3768. LIBS="-lssl -lcrypto $LIBS"
  3769. cat >conftest.$ac_ext <<_ACEOF
  3770. /* confdefs.h. */
  3771. _ACEOF
  3772. cat confdefs.h >>conftest.$ac_ext
  3773. cat >>conftest.$ac_ext <<_ACEOF
  3774. /* end confdefs.h. */
  3775. /* Override any gcc2 internal prototype to avoid an error. */
  3776. #ifdef __cplusplus
  3777. extern "C"
  3778. #endif
  3779. /* We use char because int might match the return type of a gcc2
  3780. builtin and then its argument prototype would still apply. */
  3781. char SSL_accept ();
  3782. int
  3783. main ()
  3784. {
  3785. SSL_accept ();
  3786. ;
  3787. return 0;
  3788. }
  3789. _ACEOF
  3790. rm -f conftest.$ac_objext conftest$ac_exeext
  3791. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3792. (eval $ac_link) 2>conftest.er1
  3793. ac_status=$?
  3794. grep -v '^ *+' conftest.er1 >conftest.err
  3795. rm -f conftest.er1
  3796. cat conftest.err >&5
  3797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3798. (exit $ac_status); } &&
  3799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3801. (eval $ac_try) 2>&5
  3802. ac_status=$?
  3803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3804. (exit $ac_status); }; } &&
  3805. { ac_try='test -s conftest$ac_exeext'
  3806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3807. (eval $ac_try) 2>&5
  3808. ac_status=$?
  3809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3810. (exit $ac_status); }; }; then
  3811. ac_cv_lib_ssl_SSL_accept=yes
  3812. else
  3813. echo "$as_me: failed program was:" >&5
  3814. sed 's/^/| /' conftest.$ac_ext >&5
  3815. ac_cv_lib_ssl_SSL_accept=no
  3816. fi
  3817. rm -f conftest.err conftest.$ac_objext \
  3818. conftest$ac_exeext conftest.$ac_ext
  3819. LIBS=$ac_check_lib_save_LIBS
  3820. fi
  3821. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3822. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3823. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3824. SSL="-lssl -lcrypto"
  3825. else
  3826. SSL=""
  3827. fi
  3828. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3829. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3830. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3831. echo $ECHO_N "(cached) $ECHO_C" >&6
  3832. else
  3833. ac_check_lib_save_LIBS=$LIBS
  3834. LIBS="-ldl $LIBS"
  3835. cat >conftest.$ac_ext <<_ACEOF
  3836. /* confdefs.h. */
  3837. _ACEOF
  3838. cat confdefs.h >>conftest.$ac_ext
  3839. cat >>conftest.$ac_ext <<_ACEOF
  3840. /* end confdefs.h. */
  3841. /* Override any gcc2 internal prototype to avoid an error. */
  3842. #ifdef __cplusplus
  3843. extern "C"
  3844. #endif
  3845. /* We use char because int might match the return type of a gcc2
  3846. builtin and then its argument prototype would still apply. */
  3847. char dlopen ();
  3848. int
  3849. main ()
  3850. {
  3851. dlopen ();
  3852. ;
  3853. return 0;
  3854. }
  3855. _ACEOF
  3856. rm -f conftest.$ac_objext conftest$ac_exeext
  3857. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3858. (eval $ac_link) 2>conftest.er1
  3859. ac_status=$?
  3860. grep -v '^ *+' conftest.er1 >conftest.err
  3861. rm -f conftest.er1
  3862. cat conftest.err >&5
  3863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3864. (exit $ac_status); } &&
  3865. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3867. (eval $ac_try) 2>&5
  3868. ac_status=$?
  3869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. (exit $ac_status); }; } &&
  3871. { ac_try='test -s conftest$ac_exeext'
  3872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3873. (eval $ac_try) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; }; then
  3877. ac_cv_lib_dl_dlopen=yes
  3878. else
  3879. echo "$as_me: failed program was:" >&5
  3880. sed 's/^/| /' conftest.$ac_ext >&5
  3881. ac_cv_lib_dl_dlopen=no
  3882. fi
  3883. rm -f conftest.err conftest.$ac_objext \
  3884. conftest$ac_exeext conftest.$ac_ext
  3885. LIBS=$ac_check_lib_save_LIBS
  3886. fi
  3887. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3888. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3889. if test $ac_cv_lib_dl_dlopen = yes; then
  3890. cat >>confdefs.h <<_ACEOF
  3891. #define HAVE_LIBDL 1
  3892. _ACEOF
  3893. LIBS="-ldl $LIBS"
  3894. fi
  3895. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3896. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3897. if test "${ac_cv_lib_m_tan+set}" = set; then
  3898. echo $ECHO_N "(cached) $ECHO_C" >&6
  3899. else
  3900. ac_check_lib_save_LIBS=$LIBS
  3901. LIBS="-lm $LIBS"
  3902. cat >conftest.$ac_ext <<_ACEOF
  3903. /* confdefs.h. */
  3904. _ACEOF
  3905. cat confdefs.h >>conftest.$ac_ext
  3906. cat >>conftest.$ac_ext <<_ACEOF
  3907. /* end confdefs.h. */
  3908. /* Override any gcc2 internal prototype to avoid an error. */
  3909. #ifdef __cplusplus
  3910. extern "C"
  3911. #endif
  3912. /* We use char because int might match the return type of a gcc2
  3913. builtin and then its argument prototype would still apply. */
  3914. char tan ();
  3915. int
  3916. main ()
  3917. {
  3918. tan ();
  3919. ;
  3920. return 0;
  3921. }
  3922. _ACEOF
  3923. rm -f conftest.$ac_objext conftest$ac_exeext
  3924. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3925. (eval $ac_link) 2>conftest.er1
  3926. ac_status=$?
  3927. grep -v '^ *+' conftest.er1 >conftest.err
  3928. rm -f conftest.er1
  3929. cat conftest.err >&5
  3930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3931. (exit $ac_status); } &&
  3932. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3934. (eval $ac_try) 2>&5
  3935. ac_status=$?
  3936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3937. (exit $ac_status); }; } &&
  3938. { ac_try='test -s conftest$ac_exeext'
  3939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3940. (eval $ac_try) 2>&5
  3941. ac_status=$?
  3942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3943. (exit $ac_status); }; }; then
  3944. ac_cv_lib_m_tan=yes
  3945. else
  3946. echo "$as_me: failed program was:" >&5
  3947. sed 's/^/| /' conftest.$ac_ext >&5
  3948. ac_cv_lib_m_tan=no
  3949. fi
  3950. rm -f conftest.err conftest.$ac_objext \
  3951. conftest$ac_exeext conftest.$ac_ext
  3952. LIBS=$ac_check_lib_save_LIBS
  3953. fi
  3954. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3955. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3956. if test $ac_cv_lib_m_tan = yes; then
  3957. EGG_MATH_LIB="-lm"
  3958. fi
  3959. # This is needed for Tcl libraries compiled with thread support
  3960. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3961. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3962. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3963. echo $ECHO_N "(cached) $ECHO_C" >&6
  3964. else
  3965. ac_check_lib_save_LIBS=$LIBS
  3966. LIBS="-lpthread $LIBS"
  3967. cat >conftest.$ac_ext <<_ACEOF
  3968. /* confdefs.h. */
  3969. _ACEOF
  3970. cat confdefs.h >>conftest.$ac_ext
  3971. cat >>conftest.$ac_ext <<_ACEOF
  3972. /* end confdefs.h. */
  3973. /* Override any gcc2 internal prototype to avoid an error. */
  3974. #ifdef __cplusplus
  3975. extern "C"
  3976. #endif
  3977. /* We use char because int might match the return type of a gcc2
  3978. builtin and then its argument prototype would still apply. */
  3979. char pthread_mutex_init ();
  3980. int
  3981. main ()
  3982. {
  3983. pthread_mutex_init ();
  3984. ;
  3985. return 0;
  3986. }
  3987. _ACEOF
  3988. rm -f conftest.$ac_objext conftest$ac_exeext
  3989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3990. (eval $ac_link) 2>conftest.er1
  3991. ac_status=$?
  3992. grep -v '^ *+' conftest.er1 >conftest.err
  3993. rm -f conftest.er1
  3994. cat conftest.err >&5
  3995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3996. (exit $ac_status); } &&
  3997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3999. (eval $ac_try) 2>&5
  4000. ac_status=$?
  4001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); }; } &&
  4003. { ac_try='test -s conftest$ac_exeext'
  4004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4005. (eval $ac_try) 2>&5
  4006. ac_status=$?
  4007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4008. (exit $ac_status); }; }; then
  4009. ac_cv_lib_pthread_pthread_mutex_init=yes
  4010. else
  4011. echo "$as_me: failed program was:" >&5
  4012. sed 's/^/| /' conftest.$ac_ext >&5
  4013. ac_cv_lib_pthread_pthread_mutex_init=no
  4014. fi
  4015. rm -f conftest.err conftest.$ac_objext \
  4016. conftest$ac_exeext conftest.$ac_ext
  4017. LIBS=$ac_check_lib_save_LIBS
  4018. fi
  4019. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4020. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4021. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4022. ac_cv_lib_pthread_pthread_mutex_init=yes
  4023. ac_cv_lib_pthread="-lpthread"
  4024. else
  4025. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4026. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4027. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4028. echo $ECHO_N "(cached) $ECHO_C" >&6
  4029. else
  4030. ac_check_lib_save_LIBS=$LIBS
  4031. LIBS="-lpthread $LIBS"
  4032. cat >conftest.$ac_ext <<_ACEOF
  4033. /* confdefs.h. */
  4034. _ACEOF
  4035. cat confdefs.h >>conftest.$ac_ext
  4036. cat >>conftest.$ac_ext <<_ACEOF
  4037. /* end confdefs.h. */
  4038. /* Override any gcc2 internal prototype to avoid an error. */
  4039. #ifdef __cplusplus
  4040. extern "C"
  4041. #endif
  4042. /* We use char because int might match the return type of a gcc2
  4043. builtin and then its argument prototype would still apply. */
  4044. char __pthread_mutex_init ();
  4045. int
  4046. main ()
  4047. {
  4048. __pthread_mutex_init ();
  4049. ;
  4050. return 0;
  4051. }
  4052. _ACEOF
  4053. rm -f conftest.$ac_objext conftest$ac_exeext
  4054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4055. (eval $ac_link) 2>conftest.er1
  4056. ac_status=$?
  4057. grep -v '^ *+' conftest.er1 >conftest.err
  4058. rm -f conftest.er1
  4059. cat conftest.err >&5
  4060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4061. (exit $ac_status); } &&
  4062. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4064. (eval $ac_try) 2>&5
  4065. ac_status=$?
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); }; } &&
  4068. { ac_try='test -s conftest$ac_exeext'
  4069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4070. (eval $ac_try) 2>&5
  4071. ac_status=$?
  4072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4073. (exit $ac_status); }; }; then
  4074. ac_cv_lib_pthread___pthread_mutex_init=yes
  4075. else
  4076. echo "$as_me: failed program was:" >&5
  4077. sed 's/^/| /' conftest.$ac_ext >&5
  4078. ac_cv_lib_pthread___pthread_mutex_init=no
  4079. fi
  4080. rm -f conftest.err conftest.$ac_objext \
  4081. conftest$ac_exeext conftest.$ac_ext
  4082. LIBS=$ac_check_lib_save_LIBS
  4083. fi
  4084. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4085. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4086. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4087. ac_cv_lib_pthread_pthread_mutex_init=yes
  4088. ac_cv_lib_pthread="-lpthread"
  4089. else
  4090. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4091. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4092. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4093. echo $ECHO_N "(cached) $ECHO_C" >&6
  4094. else
  4095. ac_check_lib_save_LIBS=$LIBS
  4096. LIBS="-lpthreads $LIBS"
  4097. cat >conftest.$ac_ext <<_ACEOF
  4098. /* confdefs.h. */
  4099. _ACEOF
  4100. cat confdefs.h >>conftest.$ac_ext
  4101. cat >>conftest.$ac_ext <<_ACEOF
  4102. /* end confdefs.h. */
  4103. /* Override any gcc2 internal prototype to avoid an error. */
  4104. #ifdef __cplusplus
  4105. extern "C"
  4106. #endif
  4107. /* We use char because int might match the return type of a gcc2
  4108. builtin and then its argument prototype would still apply. */
  4109. char pthread_mutex_init ();
  4110. int
  4111. main ()
  4112. {
  4113. pthread_mutex_init ();
  4114. ;
  4115. return 0;
  4116. }
  4117. _ACEOF
  4118. rm -f conftest.$ac_objext conftest$ac_exeext
  4119. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4120. (eval $ac_link) 2>conftest.er1
  4121. ac_status=$?
  4122. grep -v '^ *+' conftest.er1 >conftest.err
  4123. rm -f conftest.er1
  4124. cat conftest.err >&5
  4125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4126. (exit $ac_status); } &&
  4127. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4129. (eval $ac_try) 2>&5
  4130. ac_status=$?
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); }; } &&
  4133. { ac_try='test -s conftest$ac_exeext'
  4134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4135. (eval $ac_try) 2>&5
  4136. ac_status=$?
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); }; }; then
  4139. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4140. else
  4141. echo "$as_me: failed program was:" >&5
  4142. sed 's/^/| /' conftest.$ac_ext >&5
  4143. ac_cv_lib_pthreads_pthread_mutex_init=no
  4144. fi
  4145. rm -f conftest.err conftest.$ac_objext \
  4146. conftest$ac_exeext conftest.$ac_ext
  4147. LIBS=$ac_check_lib_save_LIBS
  4148. fi
  4149. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4150. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4151. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4152. ac_cv_lib_pthread_pthread_mutex_init=yes
  4153. ac_cv_lib_pthread="-lpthreads"
  4154. else
  4155. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4156. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4157. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4158. echo $ECHO_N "(cached) $ECHO_C" >&6
  4159. else
  4160. cat >conftest.$ac_ext <<_ACEOF
  4161. /* confdefs.h. */
  4162. _ACEOF
  4163. cat confdefs.h >>conftest.$ac_ext
  4164. cat >>conftest.$ac_ext <<_ACEOF
  4165. /* end confdefs.h. */
  4166. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4168. #define pthread_mutex_init innocuous_pthread_mutex_init
  4169. /* System header to define __stub macros and hopefully few prototypes,
  4170. which can conflict with char pthread_mutex_init (); below.
  4171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4172. <limits.h> exists even on freestanding compilers. */
  4173. #ifdef __STDC__
  4174. # include <limits.h>
  4175. #else
  4176. # include <assert.h>
  4177. #endif
  4178. #undef pthread_mutex_init
  4179. /* Override any gcc2 internal prototype to avoid an error. */
  4180. #ifdef __cplusplus
  4181. extern "C"
  4182. {
  4183. #endif
  4184. /* We use char because int might match the return type of a gcc2
  4185. builtin and then its argument prototype would still apply. */
  4186. char pthread_mutex_init ();
  4187. /* The GNU C library defines this for functions which it implements
  4188. to always fail with ENOSYS. Some functions are actually named
  4189. something starting with __ and the normal name is an alias. */
  4190. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4191. choke me
  4192. #else
  4193. char (*f) () = pthread_mutex_init;
  4194. #endif
  4195. #ifdef __cplusplus
  4196. }
  4197. #endif
  4198. int
  4199. main ()
  4200. {
  4201. return f != pthread_mutex_init;
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. rm -f conftest.$ac_objext conftest$ac_exeext
  4207. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4208. (eval $ac_link) 2>conftest.er1
  4209. ac_status=$?
  4210. grep -v '^ *+' conftest.er1 >conftest.err
  4211. rm -f conftest.er1
  4212. cat conftest.err >&5
  4213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4214. (exit $ac_status); } &&
  4215. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4217. (eval $ac_try) 2>&5
  4218. ac_status=$?
  4219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4220. (exit $ac_status); }; } &&
  4221. { ac_try='test -s conftest$ac_exeext'
  4222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4223. (eval $ac_try) 2>&5
  4224. ac_status=$?
  4225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4226. (exit $ac_status); }; }; then
  4227. ac_cv_func_pthread_mutex_init=yes
  4228. else
  4229. echo "$as_me: failed program was:" >&5
  4230. sed 's/^/| /' conftest.$ac_ext >&5
  4231. ac_cv_func_pthread_mutex_init=no
  4232. fi
  4233. rm -f conftest.err conftest.$ac_objext \
  4234. conftest$ac_exeext conftest.$ac_ext
  4235. fi
  4236. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4237. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4238. if test $ac_cv_func_pthread_mutex_init = yes; then
  4239. ac_cv_lib_pthread_pthread_mutex_init=yes
  4240. ac_cv_lib_pthread=""
  4241. else
  4242. ac_cv_lib_pthread_pthread_mutex_init=no
  4243. fi
  4244. fi
  4245. fi
  4246. fi
  4247. if test "$SUNOS" = "yes"
  4248. then
  4249. # For suns without yp or something like that
  4250. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4251. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4252. if test "${ac_cv_lib_dl_main+set}" = set; then
  4253. echo $ECHO_N "(cached) $ECHO_C" >&6
  4254. else
  4255. ac_check_lib_save_LIBS=$LIBS
  4256. LIBS="-ldl $LIBS"
  4257. cat >conftest.$ac_ext <<_ACEOF
  4258. /* confdefs.h. */
  4259. _ACEOF
  4260. cat confdefs.h >>conftest.$ac_ext
  4261. cat >>conftest.$ac_ext <<_ACEOF
  4262. /* end confdefs.h. */
  4263. int
  4264. main ()
  4265. {
  4266. main ();
  4267. ;
  4268. return 0;
  4269. }
  4270. _ACEOF
  4271. rm -f conftest.$ac_objext conftest$ac_exeext
  4272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4273. (eval $ac_link) 2>conftest.er1
  4274. ac_status=$?
  4275. grep -v '^ *+' conftest.er1 >conftest.err
  4276. rm -f conftest.er1
  4277. cat conftest.err >&5
  4278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4279. (exit $ac_status); } &&
  4280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4282. (eval $ac_try) 2>&5
  4283. ac_status=$?
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); }; } &&
  4286. { ac_try='test -s conftest$ac_exeext'
  4287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4288. (eval $ac_try) 2>&5
  4289. ac_status=$?
  4290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4291. (exit $ac_status); }; }; then
  4292. ac_cv_lib_dl_main=yes
  4293. else
  4294. echo "$as_me: failed program was:" >&5
  4295. sed 's/^/| /' conftest.$ac_ext >&5
  4296. ac_cv_lib_dl_main=no
  4297. fi
  4298. rm -f conftest.err conftest.$ac_objext \
  4299. conftest$ac_exeext conftest.$ac_ext
  4300. LIBS=$ac_check_lib_save_LIBS
  4301. fi
  4302. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4303. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4304. if test $ac_cv_lib_dl_main = yes; then
  4305. cat >>confdefs.h <<_ACEOF
  4306. #define HAVE_LIBDL 1
  4307. _ACEOF
  4308. LIBS="-ldl $LIBS"
  4309. fi
  4310. else
  4311. if test "$HPUX" = "yes"
  4312. then
  4313. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4314. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4315. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4316. echo $ECHO_N "(cached) $ECHO_C" >&6
  4317. else
  4318. ac_check_lib_save_LIBS=$LIBS
  4319. LIBS="-ldld $LIBS"
  4320. cat >conftest.$ac_ext <<_ACEOF
  4321. /* confdefs.h. */
  4322. _ACEOF
  4323. cat confdefs.h >>conftest.$ac_ext
  4324. cat >>conftest.$ac_ext <<_ACEOF
  4325. /* end confdefs.h. */
  4326. /* Override any gcc2 internal prototype to avoid an error. */
  4327. #ifdef __cplusplus
  4328. extern "C"
  4329. #endif
  4330. /* We use char because int might match the return type of a gcc2
  4331. builtin and then its argument prototype would still apply. */
  4332. char shl_load ();
  4333. int
  4334. main ()
  4335. {
  4336. shl_load ();
  4337. ;
  4338. return 0;
  4339. }
  4340. _ACEOF
  4341. rm -f conftest.$ac_objext conftest$ac_exeext
  4342. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4343. (eval $ac_link) 2>conftest.er1
  4344. ac_status=$?
  4345. grep -v '^ *+' conftest.er1 >conftest.err
  4346. rm -f conftest.er1
  4347. cat conftest.err >&5
  4348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4349. (exit $ac_status); } &&
  4350. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4351. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4352. (eval $ac_try) 2>&5
  4353. ac_status=$?
  4354. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4355. (exit $ac_status); }; } &&
  4356. { ac_try='test -s conftest$ac_exeext'
  4357. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4358. (eval $ac_try) 2>&5
  4359. ac_status=$?
  4360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4361. (exit $ac_status); }; }; then
  4362. ac_cv_lib_dld_shl_load=yes
  4363. else
  4364. echo "$as_me: failed program was:" >&5
  4365. sed 's/^/| /' conftest.$ac_ext >&5
  4366. ac_cv_lib_dld_shl_load=no
  4367. fi
  4368. rm -f conftest.err conftest.$ac_objext \
  4369. conftest$ac_exeext conftest.$ac_ext
  4370. LIBS=$ac_check_lib_save_LIBS
  4371. fi
  4372. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4373. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4374. if test $ac_cv_lib_dld_shl_load = yes; then
  4375. cat >>confdefs.h <<_ACEOF
  4376. #define HAVE_LIBDLD 1
  4377. _ACEOF
  4378. LIBS="-ldld $LIBS"
  4379. fi
  4380. fi
  4381. fi
  4382. fi
  4383. # Checks for header files
  4384. ac_header_dirent=no
  4385. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4386. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4387. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4388. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4389. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4390. echo $ECHO_N "(cached) $ECHO_C" >&6
  4391. else
  4392. cat >conftest.$ac_ext <<_ACEOF
  4393. /* confdefs.h. */
  4394. _ACEOF
  4395. cat confdefs.h >>conftest.$ac_ext
  4396. cat >>conftest.$ac_ext <<_ACEOF
  4397. /* end confdefs.h. */
  4398. #include <sys/types.h>
  4399. #include <$ac_hdr>
  4400. int
  4401. main ()
  4402. {
  4403. if ((DIR *) 0)
  4404. return 0;
  4405. ;
  4406. return 0;
  4407. }
  4408. _ACEOF
  4409. rm -f conftest.$ac_objext
  4410. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4411. (eval $ac_compile) 2>conftest.er1
  4412. ac_status=$?
  4413. grep -v '^ *+' conftest.er1 >conftest.err
  4414. rm -f conftest.er1
  4415. cat conftest.err >&5
  4416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4417. (exit $ac_status); } &&
  4418. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4420. (eval $ac_try) 2>&5
  4421. ac_status=$?
  4422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4423. (exit $ac_status); }; } &&
  4424. { ac_try='test -s conftest.$ac_objext'
  4425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4426. (eval $ac_try) 2>&5
  4427. ac_status=$?
  4428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4429. (exit $ac_status); }; }; then
  4430. eval "$as_ac_Header=yes"
  4431. else
  4432. echo "$as_me: failed program was:" >&5
  4433. sed 's/^/| /' conftest.$ac_ext >&5
  4434. eval "$as_ac_Header=no"
  4435. fi
  4436. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4437. fi
  4438. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4439. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4440. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4441. cat >>confdefs.h <<_ACEOF
  4442. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4443. _ACEOF
  4444. ac_header_dirent=$ac_hdr; break
  4445. fi
  4446. done
  4447. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4448. if test $ac_header_dirent = dirent.h; then
  4449. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4450. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4451. if test "${ac_cv_search_opendir+set}" = set; then
  4452. echo $ECHO_N "(cached) $ECHO_C" >&6
  4453. else
  4454. ac_func_search_save_LIBS=$LIBS
  4455. ac_cv_search_opendir=no
  4456. cat >conftest.$ac_ext <<_ACEOF
  4457. /* confdefs.h. */
  4458. _ACEOF
  4459. cat confdefs.h >>conftest.$ac_ext
  4460. cat >>conftest.$ac_ext <<_ACEOF
  4461. /* end confdefs.h. */
  4462. /* Override any gcc2 internal prototype to avoid an error. */
  4463. #ifdef __cplusplus
  4464. extern "C"
  4465. #endif
  4466. /* We use char because int might match the return type of a gcc2
  4467. builtin and then its argument prototype would still apply. */
  4468. char opendir ();
  4469. int
  4470. main ()
  4471. {
  4472. opendir ();
  4473. ;
  4474. return 0;
  4475. }
  4476. _ACEOF
  4477. rm -f conftest.$ac_objext conftest$ac_exeext
  4478. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4479. (eval $ac_link) 2>conftest.er1
  4480. ac_status=$?
  4481. grep -v '^ *+' conftest.er1 >conftest.err
  4482. rm -f conftest.er1
  4483. cat conftest.err >&5
  4484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4485. (exit $ac_status); } &&
  4486. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4488. (eval $ac_try) 2>&5
  4489. ac_status=$?
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); }; } &&
  4492. { ac_try='test -s conftest$ac_exeext'
  4493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4494. (eval $ac_try) 2>&5
  4495. ac_status=$?
  4496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4497. (exit $ac_status); }; }; then
  4498. ac_cv_search_opendir="none required"
  4499. else
  4500. echo "$as_me: failed program was:" >&5
  4501. sed 's/^/| /' conftest.$ac_ext >&5
  4502. fi
  4503. rm -f conftest.err conftest.$ac_objext \
  4504. conftest$ac_exeext conftest.$ac_ext
  4505. if test "$ac_cv_search_opendir" = no; then
  4506. for ac_lib in dir; do
  4507. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4508. cat >conftest.$ac_ext <<_ACEOF
  4509. /* confdefs.h. */
  4510. _ACEOF
  4511. cat confdefs.h >>conftest.$ac_ext
  4512. cat >>conftest.$ac_ext <<_ACEOF
  4513. /* end confdefs.h. */
  4514. /* Override any gcc2 internal prototype to avoid an error. */
  4515. #ifdef __cplusplus
  4516. extern "C"
  4517. #endif
  4518. /* We use char because int might match the return type of a gcc2
  4519. builtin and then its argument prototype would still apply. */
  4520. char opendir ();
  4521. int
  4522. main ()
  4523. {
  4524. opendir ();
  4525. ;
  4526. return 0;
  4527. }
  4528. _ACEOF
  4529. rm -f conftest.$ac_objext conftest$ac_exeext
  4530. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4531. (eval $ac_link) 2>conftest.er1
  4532. ac_status=$?
  4533. grep -v '^ *+' conftest.er1 >conftest.err
  4534. rm -f conftest.er1
  4535. cat conftest.err >&5
  4536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. (exit $ac_status); } &&
  4538. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4540. (eval $ac_try) 2>&5
  4541. ac_status=$?
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); }; } &&
  4544. { ac_try='test -s conftest$ac_exeext'
  4545. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4546. (eval $ac_try) 2>&5
  4547. ac_status=$?
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); }; }; then
  4550. ac_cv_search_opendir="-l$ac_lib"
  4551. break
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. fi
  4556. rm -f conftest.err conftest.$ac_objext \
  4557. conftest$ac_exeext conftest.$ac_ext
  4558. done
  4559. fi
  4560. LIBS=$ac_func_search_save_LIBS
  4561. fi
  4562. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4563. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4564. if test "$ac_cv_search_opendir" != no; then
  4565. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4566. fi
  4567. else
  4568. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4569. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4570. if test "${ac_cv_search_opendir+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. ac_func_search_save_LIBS=$LIBS
  4574. ac_cv_search_opendir=no
  4575. cat >conftest.$ac_ext <<_ACEOF
  4576. /* confdefs.h. */
  4577. _ACEOF
  4578. cat confdefs.h >>conftest.$ac_ext
  4579. cat >>conftest.$ac_ext <<_ACEOF
  4580. /* end confdefs.h. */
  4581. /* Override any gcc2 internal prototype to avoid an error. */
  4582. #ifdef __cplusplus
  4583. extern "C"
  4584. #endif
  4585. /* We use char because int might match the return type of a gcc2
  4586. builtin and then its argument prototype would still apply. */
  4587. char opendir ();
  4588. int
  4589. main ()
  4590. {
  4591. opendir ();
  4592. ;
  4593. return 0;
  4594. }
  4595. _ACEOF
  4596. rm -f conftest.$ac_objext conftest$ac_exeext
  4597. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4598. (eval $ac_link) 2>conftest.er1
  4599. ac_status=$?
  4600. grep -v '^ *+' conftest.er1 >conftest.err
  4601. rm -f conftest.er1
  4602. cat conftest.err >&5
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } &&
  4605. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4607. (eval $ac_try) 2>&5
  4608. ac_status=$?
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); }; } &&
  4611. { ac_try='test -s conftest$ac_exeext'
  4612. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4613. (eval $ac_try) 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); }; }; then
  4617. ac_cv_search_opendir="none required"
  4618. else
  4619. echo "$as_me: failed program was:" >&5
  4620. sed 's/^/| /' conftest.$ac_ext >&5
  4621. fi
  4622. rm -f conftest.err conftest.$ac_objext \
  4623. conftest$ac_exeext conftest.$ac_ext
  4624. if test "$ac_cv_search_opendir" = no; then
  4625. for ac_lib in x; do
  4626. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4627. cat >conftest.$ac_ext <<_ACEOF
  4628. /* confdefs.h. */
  4629. _ACEOF
  4630. cat confdefs.h >>conftest.$ac_ext
  4631. cat >>conftest.$ac_ext <<_ACEOF
  4632. /* end confdefs.h. */
  4633. /* Override any gcc2 internal prototype to avoid an error. */
  4634. #ifdef __cplusplus
  4635. extern "C"
  4636. #endif
  4637. /* We use char because int might match the return type of a gcc2
  4638. builtin and then its argument prototype would still apply. */
  4639. char opendir ();
  4640. int
  4641. main ()
  4642. {
  4643. opendir ();
  4644. ;
  4645. return 0;
  4646. }
  4647. _ACEOF
  4648. rm -f conftest.$ac_objext conftest$ac_exeext
  4649. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4650. (eval $ac_link) 2>conftest.er1
  4651. ac_status=$?
  4652. grep -v '^ *+' conftest.er1 >conftest.err
  4653. rm -f conftest.er1
  4654. cat conftest.err >&5
  4655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4656. (exit $ac_status); } &&
  4657. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4659. (eval $ac_try) 2>&5
  4660. ac_status=$?
  4661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4662. (exit $ac_status); }; } &&
  4663. { ac_try='test -s conftest$ac_exeext'
  4664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4665. (eval $ac_try) 2>&5
  4666. ac_status=$?
  4667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4668. (exit $ac_status); }; }; then
  4669. ac_cv_search_opendir="-l$ac_lib"
  4670. break
  4671. else
  4672. echo "$as_me: failed program was:" >&5
  4673. sed 's/^/| /' conftest.$ac_ext >&5
  4674. fi
  4675. rm -f conftest.err conftest.$ac_objext \
  4676. conftest$ac_exeext conftest.$ac_ext
  4677. done
  4678. fi
  4679. LIBS=$ac_func_search_save_LIBS
  4680. fi
  4681. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4682. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4683. if test "$ac_cv_search_opendir" != no; then
  4684. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4685. fi
  4686. fi
  4687. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4688. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4689. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4690. echo $ECHO_N "(cached) $ECHO_C" >&6
  4691. else
  4692. cat >conftest.$ac_ext <<_ACEOF
  4693. /* confdefs.h. */
  4694. _ACEOF
  4695. cat confdefs.h >>conftest.$ac_ext
  4696. cat >>conftest.$ac_ext <<_ACEOF
  4697. /* end confdefs.h. */
  4698. #include <sys/types.h>
  4699. #include <sys/wait.h>
  4700. #ifndef WEXITSTATUS
  4701. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4702. #endif
  4703. #ifndef WIFEXITED
  4704. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4705. #endif
  4706. int
  4707. main ()
  4708. {
  4709. int s;
  4710. wait (&s);
  4711. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4712. ;
  4713. return 0;
  4714. }
  4715. _ACEOF
  4716. rm -f conftest.$ac_objext
  4717. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4718. (eval $ac_compile) 2>conftest.er1
  4719. ac_status=$?
  4720. grep -v '^ *+' conftest.er1 >conftest.err
  4721. rm -f conftest.er1
  4722. cat conftest.err >&5
  4723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4724. (exit $ac_status); } &&
  4725. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4726. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4727. (eval $ac_try) 2>&5
  4728. ac_status=$?
  4729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4730. (exit $ac_status); }; } &&
  4731. { ac_try='test -s conftest.$ac_objext'
  4732. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4733. (eval $ac_try) 2>&5
  4734. ac_status=$?
  4735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4736. (exit $ac_status); }; }; then
  4737. ac_cv_header_sys_wait_h=yes
  4738. else
  4739. echo "$as_me: failed program was:" >&5
  4740. sed 's/^/| /' conftest.$ac_ext >&5
  4741. ac_cv_header_sys_wait_h=no
  4742. fi
  4743. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4744. fi
  4745. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4746. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4747. if test $ac_cv_header_sys_wait_h = yes; then
  4748. cat >>confdefs.h <<\_ACEOF
  4749. #define HAVE_SYS_WAIT_H 1
  4750. _ACEOF
  4751. fi
  4752. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4753. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4754. if test "${ac_cv_header_time+set}" = set; then
  4755. echo $ECHO_N "(cached) $ECHO_C" >&6
  4756. else
  4757. cat >conftest.$ac_ext <<_ACEOF
  4758. /* confdefs.h. */
  4759. _ACEOF
  4760. cat confdefs.h >>conftest.$ac_ext
  4761. cat >>conftest.$ac_ext <<_ACEOF
  4762. /* end confdefs.h. */
  4763. #include <sys/types.h>
  4764. #include <sys/time.h>
  4765. #include <time.h>
  4766. int
  4767. main ()
  4768. {
  4769. if ((struct tm *) 0)
  4770. return 0;
  4771. ;
  4772. return 0;
  4773. }
  4774. _ACEOF
  4775. rm -f conftest.$ac_objext
  4776. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4777. (eval $ac_compile) 2>conftest.er1
  4778. ac_status=$?
  4779. grep -v '^ *+' conftest.er1 >conftest.err
  4780. rm -f conftest.er1
  4781. cat conftest.err >&5
  4782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783. (exit $ac_status); } &&
  4784. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4785. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4786. (eval $ac_try) 2>&5
  4787. ac_status=$?
  4788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4789. (exit $ac_status); }; } &&
  4790. { ac_try='test -s conftest.$ac_objext'
  4791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4792. (eval $ac_try) 2>&5
  4793. ac_status=$?
  4794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4795. (exit $ac_status); }; }; then
  4796. ac_cv_header_time=yes
  4797. else
  4798. echo "$as_me: failed program was:" >&5
  4799. sed 's/^/| /' conftest.$ac_ext >&5
  4800. ac_cv_header_time=no
  4801. fi
  4802. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. fi
  4804. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4805. echo "${ECHO_T}$ac_cv_header_time" >&6
  4806. if test $ac_cv_header_time = yes; then
  4807. cat >>confdefs.h <<\_ACEOF
  4808. #define TIME_WITH_SYS_TIME 1
  4809. _ACEOF
  4810. fi
  4811. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4812. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4813. if test "${ac_cv_header_stat_broken+set}" = set; then
  4814. echo $ECHO_N "(cached) $ECHO_C" >&6
  4815. else
  4816. cat >conftest.$ac_ext <<_ACEOF
  4817. /* confdefs.h. */
  4818. _ACEOF
  4819. cat confdefs.h >>conftest.$ac_ext
  4820. cat >>conftest.$ac_ext <<_ACEOF
  4821. /* end confdefs.h. */
  4822. #include <sys/types.h>
  4823. #include <sys/stat.h>
  4824. #if defined(S_ISBLK) && defined(S_IFDIR)
  4825. # if S_ISBLK (S_IFDIR)
  4826. You lose.
  4827. # endif
  4828. #endif
  4829. #if defined(S_ISBLK) && defined(S_IFCHR)
  4830. # if S_ISBLK (S_IFCHR)
  4831. You lose.
  4832. # endif
  4833. #endif
  4834. #if defined(S_ISLNK) && defined(S_IFREG)
  4835. # if S_ISLNK (S_IFREG)
  4836. You lose.
  4837. # endif
  4838. #endif
  4839. #if defined(S_ISSOCK) && defined(S_IFREG)
  4840. # if S_ISSOCK (S_IFREG)
  4841. You lose.
  4842. # endif
  4843. #endif
  4844. _ACEOF
  4845. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4846. $EGREP "You lose" >/dev/null 2>&1; then
  4847. ac_cv_header_stat_broken=yes
  4848. else
  4849. ac_cv_header_stat_broken=no
  4850. fi
  4851. rm -f conftest*
  4852. fi
  4853. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4854. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4855. if test $ac_cv_header_stat_broken = yes; then
  4856. cat >>confdefs.h <<\_ACEOF
  4857. #define STAT_MACROS_BROKEN 1
  4858. _ACEOF
  4859. fi
  4860. #checkpoint
  4861. cat >confcache <<\_ACEOF
  4862. # This file is a shell script that caches the results of configure
  4863. # tests run on this system so they can be shared between configure
  4864. # scripts and configure runs, see configure's option --config-cache.
  4865. # It is not useful on other systems. If it contains results you don't
  4866. # want to keep, you may remove or edit it.
  4867. #
  4868. # config.status only pays attention to the cache file if you give it
  4869. # the --recheck option to rerun configure.
  4870. #
  4871. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4872. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4873. # following values.
  4874. _ACEOF
  4875. # The following way of writing the cache mishandles newlines in values,
  4876. # but we know of no workaround that is simple, portable, and efficient.
  4877. # So, don't put newlines in cache variables' values.
  4878. # Ultrix sh set writes to stderr and can't be redirected directly,
  4879. # and sets the high bit in the cache file unless we assign to the vars.
  4880. {
  4881. (set) 2>&1 |
  4882. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4883. *ac_space=\ *)
  4884. # `set' does not quote correctly, so add quotes (double-quote
  4885. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4886. sed -n \
  4887. "s/'/'\\\\''/g;
  4888. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4889. ;;
  4890. *)
  4891. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4892. sed -n \
  4893. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4894. ;;
  4895. esac;
  4896. } |
  4897. sed '
  4898. t clear
  4899. : clear
  4900. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4901. t end
  4902. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4903. : end' >>confcache
  4904. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4905. if test -w $cache_file; then
  4906. test "x$cache_file" != "x/dev/null"
  4907. cat confcache >$cache_file
  4908. else
  4909. echo "not updating unwritable cache $cache_file"
  4910. fi
  4911. fi
  4912. rm -f confcache
  4913. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4914. do
  4915. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4916. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4917. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4918. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4919. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4920. echo $ECHO_N "(cached) $ECHO_C" >&6
  4921. fi
  4922. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4923. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4924. else
  4925. # Is the header compilable?
  4926. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4927. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4928. cat >conftest.$ac_ext <<_ACEOF
  4929. /* confdefs.h. */
  4930. _ACEOF
  4931. cat confdefs.h >>conftest.$ac_ext
  4932. cat >>conftest.$ac_ext <<_ACEOF
  4933. /* end confdefs.h. */
  4934. $ac_includes_default
  4935. #include <$ac_header>
  4936. _ACEOF
  4937. rm -f conftest.$ac_objext
  4938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4939. (eval $ac_compile) 2>conftest.er1
  4940. ac_status=$?
  4941. grep -v '^ *+' conftest.er1 >conftest.err
  4942. rm -f conftest.er1
  4943. cat conftest.err >&5
  4944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4945. (exit $ac_status); } &&
  4946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4948. (eval $ac_try) 2>&5
  4949. ac_status=$?
  4950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4951. (exit $ac_status); }; } &&
  4952. { ac_try='test -s conftest.$ac_objext'
  4953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4954. (eval $ac_try) 2>&5
  4955. ac_status=$?
  4956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4957. (exit $ac_status); }; }; then
  4958. ac_header_compiler=yes
  4959. else
  4960. echo "$as_me: failed program was:" >&5
  4961. sed 's/^/| /' conftest.$ac_ext >&5
  4962. ac_header_compiler=no
  4963. fi
  4964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4965. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4966. echo "${ECHO_T}$ac_header_compiler" >&6
  4967. # Is the header present?
  4968. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4969. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4970. cat >conftest.$ac_ext <<_ACEOF
  4971. /* confdefs.h. */
  4972. _ACEOF
  4973. cat confdefs.h >>conftest.$ac_ext
  4974. cat >>conftest.$ac_ext <<_ACEOF
  4975. /* end confdefs.h. */
  4976. #include <$ac_header>
  4977. _ACEOF
  4978. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4979. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4980. ac_status=$?
  4981. grep -v '^ *+' conftest.er1 >conftest.err
  4982. rm -f conftest.er1
  4983. cat conftest.err >&5
  4984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. (exit $ac_status); } >/dev/null; then
  4986. if test -s conftest.err; then
  4987. ac_cpp_err=$ac_c_preproc_warn_flag
  4988. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4989. else
  4990. ac_cpp_err=
  4991. fi
  4992. else
  4993. ac_cpp_err=yes
  4994. fi
  4995. if test -z "$ac_cpp_err"; then
  4996. ac_header_preproc=yes
  4997. else
  4998. echo "$as_me: failed program was:" >&5
  4999. sed 's/^/| /' conftest.$ac_ext >&5
  5000. ac_header_preproc=no
  5001. fi
  5002. rm -f conftest.err conftest.$ac_ext
  5003. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5004. echo "${ECHO_T}$ac_header_preproc" >&6
  5005. # So? What about this header?
  5006. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5007. yes:no: )
  5008. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5009. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5010. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5011. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5012. ac_header_preproc=yes
  5013. ;;
  5014. no:yes:* )
  5015. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5016. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5017. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5018. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5019. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5020. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5021. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5022. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5023. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5024. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5025. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5026. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5027. (
  5028. cat <<\_ASBOX
  5029. ## ------------------------------------------ ##
  5030. ## Report this to the AC_PACKAGE_NAME lists. ##
  5031. ## ------------------------------------------ ##
  5032. _ASBOX
  5033. ) |
  5034. sed "s/^/$as_me: WARNING: /" >&2
  5035. ;;
  5036. esac
  5037. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5038. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5039. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5040. echo $ECHO_N "(cached) $ECHO_C" >&6
  5041. else
  5042. eval "$as_ac_Header=\$ac_header_preproc"
  5043. fi
  5044. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5045. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5046. fi
  5047. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5048. cat >>confdefs.h <<_ACEOF
  5049. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5050. _ACEOF
  5051. fi
  5052. done
  5053. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5054. do
  5055. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5056. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5057. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5058. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5059. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5060. echo $ECHO_N "(cached) $ECHO_C" >&6
  5061. fi
  5062. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5063. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5064. else
  5065. # Is the header compilable?
  5066. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5067. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5068. cat >conftest.$ac_ext <<_ACEOF
  5069. /* confdefs.h. */
  5070. _ACEOF
  5071. cat confdefs.h >>conftest.$ac_ext
  5072. cat >>conftest.$ac_ext <<_ACEOF
  5073. /* end confdefs.h. */
  5074. $ac_includes_default
  5075. #include <$ac_header>
  5076. _ACEOF
  5077. rm -f conftest.$ac_objext
  5078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5079. (eval $ac_compile) 2>conftest.er1
  5080. ac_status=$?
  5081. grep -v '^ *+' conftest.er1 >conftest.err
  5082. rm -f conftest.er1
  5083. cat conftest.err >&5
  5084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5085. (exit $ac_status); } &&
  5086. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5087. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5088. (eval $ac_try) 2>&5
  5089. ac_status=$?
  5090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5091. (exit $ac_status); }; } &&
  5092. { ac_try='test -s conftest.$ac_objext'
  5093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5094. (eval $ac_try) 2>&5
  5095. ac_status=$?
  5096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5097. (exit $ac_status); }; }; then
  5098. ac_header_compiler=yes
  5099. else
  5100. echo "$as_me: failed program was:" >&5
  5101. sed 's/^/| /' conftest.$ac_ext >&5
  5102. ac_header_compiler=no
  5103. fi
  5104. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5105. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5106. echo "${ECHO_T}$ac_header_compiler" >&6
  5107. # Is the header present?
  5108. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5109. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5110. cat >conftest.$ac_ext <<_ACEOF
  5111. /* confdefs.h. */
  5112. _ACEOF
  5113. cat confdefs.h >>conftest.$ac_ext
  5114. cat >>conftest.$ac_ext <<_ACEOF
  5115. /* end confdefs.h. */
  5116. #include <$ac_header>
  5117. _ACEOF
  5118. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5119. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5120. ac_status=$?
  5121. grep -v '^ *+' conftest.er1 >conftest.err
  5122. rm -f conftest.er1
  5123. cat conftest.err >&5
  5124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5125. (exit $ac_status); } >/dev/null; then
  5126. if test -s conftest.err; then
  5127. ac_cpp_err=$ac_c_preproc_warn_flag
  5128. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5129. else
  5130. ac_cpp_err=
  5131. fi
  5132. else
  5133. ac_cpp_err=yes
  5134. fi
  5135. if test -z "$ac_cpp_err"; then
  5136. ac_header_preproc=yes
  5137. else
  5138. echo "$as_me: failed program was:" >&5
  5139. sed 's/^/| /' conftest.$ac_ext >&5
  5140. ac_header_preproc=no
  5141. fi
  5142. rm -f conftest.err conftest.$ac_ext
  5143. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5144. echo "${ECHO_T}$ac_header_preproc" >&6
  5145. # So? What about this header?
  5146. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5147. yes:no: )
  5148. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5149. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5150. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5151. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5152. ac_header_preproc=yes
  5153. ;;
  5154. no:yes:* )
  5155. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5156. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5157. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5158. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5159. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5160. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5161. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5162. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5163. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5164. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5165. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5166. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5167. (
  5168. cat <<\_ASBOX
  5169. ## ------------------------------------------ ##
  5170. ## Report this to the AC_PACKAGE_NAME lists. ##
  5171. ## ------------------------------------------ ##
  5172. _ASBOX
  5173. ) |
  5174. sed "s/^/$as_me: WARNING: /" >&2
  5175. ;;
  5176. esac
  5177. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5178. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5179. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5180. echo $ECHO_N "(cached) $ECHO_C" >&6
  5181. else
  5182. eval "$as_ac_Header=\$ac_header_preproc"
  5183. fi
  5184. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5185. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5186. fi
  5187. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5188. cat >>confdefs.h <<_ACEOF
  5189. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5190. _ACEOF
  5191. fi
  5192. done
  5193. #checkpoint
  5194. cat >confcache <<\_ACEOF
  5195. # This file is a shell script that caches the results of configure
  5196. # tests run on this system so they can be shared between configure
  5197. # scripts and configure runs, see configure's option --config-cache.
  5198. # It is not useful on other systems. If it contains results you don't
  5199. # want to keep, you may remove or edit it.
  5200. #
  5201. # config.status only pays attention to the cache file if you give it
  5202. # the --recheck option to rerun configure.
  5203. #
  5204. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5205. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5206. # following values.
  5207. _ACEOF
  5208. # The following way of writing the cache mishandles newlines in values,
  5209. # but we know of no workaround that is simple, portable, and efficient.
  5210. # So, don't put newlines in cache variables' values.
  5211. # Ultrix sh set writes to stderr and can't be redirected directly,
  5212. # and sets the high bit in the cache file unless we assign to the vars.
  5213. {
  5214. (set) 2>&1 |
  5215. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5216. *ac_space=\ *)
  5217. # `set' does not quote correctly, so add quotes (double-quote
  5218. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5219. sed -n \
  5220. "s/'/'\\\\''/g;
  5221. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5222. ;;
  5223. *)
  5224. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5225. sed -n \
  5226. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5227. ;;
  5228. esac;
  5229. } |
  5230. sed '
  5231. t clear
  5232. : clear
  5233. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5234. t end
  5235. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5236. : end' >>confcache
  5237. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5238. if test -w $cache_file; then
  5239. test "x$cache_file" != "x/dev/null"
  5240. cat confcache >$cache_file
  5241. else
  5242. echo "not updating unwritable cache $cache_file"
  5243. fi
  5244. fi
  5245. rm -f confcache
  5246. for ac_header in openssl/ssl.h openssl/crypto.h
  5247. do
  5248. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5249. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5250. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5251. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5252. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5253. echo $ECHO_N "(cached) $ECHO_C" >&6
  5254. fi
  5255. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5256. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5257. else
  5258. # Is the header compilable?
  5259. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5260. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5261. cat >conftest.$ac_ext <<_ACEOF
  5262. /* confdefs.h. */
  5263. _ACEOF
  5264. cat confdefs.h >>conftest.$ac_ext
  5265. cat >>conftest.$ac_ext <<_ACEOF
  5266. /* end confdefs.h. */
  5267. $ac_includes_default
  5268. #include <$ac_header>
  5269. _ACEOF
  5270. rm -f conftest.$ac_objext
  5271. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5272. (eval $ac_compile) 2>conftest.er1
  5273. ac_status=$?
  5274. grep -v '^ *+' conftest.er1 >conftest.err
  5275. rm -f conftest.er1
  5276. cat conftest.err >&5
  5277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5278. (exit $ac_status); } &&
  5279. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5281. (eval $ac_try) 2>&5
  5282. ac_status=$?
  5283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5284. (exit $ac_status); }; } &&
  5285. { ac_try='test -s conftest.$ac_objext'
  5286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5287. (eval $ac_try) 2>&5
  5288. ac_status=$?
  5289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5290. (exit $ac_status); }; }; then
  5291. ac_header_compiler=yes
  5292. else
  5293. echo "$as_me: failed program was:" >&5
  5294. sed 's/^/| /' conftest.$ac_ext >&5
  5295. ac_header_compiler=no
  5296. fi
  5297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5298. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5299. echo "${ECHO_T}$ac_header_compiler" >&6
  5300. # Is the header present?
  5301. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5302. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5303. cat >conftest.$ac_ext <<_ACEOF
  5304. /* confdefs.h. */
  5305. _ACEOF
  5306. cat confdefs.h >>conftest.$ac_ext
  5307. cat >>conftest.$ac_ext <<_ACEOF
  5308. /* end confdefs.h. */
  5309. #include <$ac_header>
  5310. _ACEOF
  5311. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5312. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5313. ac_status=$?
  5314. grep -v '^ *+' conftest.er1 >conftest.err
  5315. rm -f conftest.er1
  5316. cat conftest.err >&5
  5317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5318. (exit $ac_status); } >/dev/null; then
  5319. if test -s conftest.err; then
  5320. ac_cpp_err=$ac_c_preproc_warn_flag
  5321. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5322. else
  5323. ac_cpp_err=
  5324. fi
  5325. else
  5326. ac_cpp_err=yes
  5327. fi
  5328. if test -z "$ac_cpp_err"; then
  5329. ac_header_preproc=yes
  5330. else
  5331. echo "$as_me: failed program was:" >&5
  5332. sed 's/^/| /' conftest.$ac_ext >&5
  5333. ac_header_preproc=no
  5334. fi
  5335. rm -f conftest.err conftest.$ac_ext
  5336. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5337. echo "${ECHO_T}$ac_header_preproc" >&6
  5338. # So? What about this header?
  5339. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5340. yes:no: )
  5341. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5342. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5343. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5344. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5345. ac_header_preproc=yes
  5346. ;;
  5347. no:yes:* )
  5348. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5349. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5350. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5351. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5352. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5353. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5354. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5355. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5356. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5357. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5358. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5359. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5360. (
  5361. cat <<\_ASBOX
  5362. ## ------------------------------------------ ##
  5363. ## Report this to the AC_PACKAGE_NAME lists. ##
  5364. ## ------------------------------------------ ##
  5365. _ASBOX
  5366. ) |
  5367. sed "s/^/$as_me: WARNING: /" >&2
  5368. ;;
  5369. esac
  5370. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5372. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5373. echo $ECHO_N "(cached) $ECHO_C" >&6
  5374. else
  5375. eval "$as_ac_Header=\$ac_header_preproc"
  5376. fi
  5377. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5378. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5379. fi
  5380. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5381. cat >>confdefs.h <<_ACEOF
  5382. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5383. _ACEOF
  5384. fi
  5385. done
  5386. for ac_header in zlib.h
  5387. do
  5388. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5389. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5390. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5391. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5392. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5393. echo $ECHO_N "(cached) $ECHO_C" >&6
  5394. fi
  5395. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5396. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5397. else
  5398. # Is the header compilable?
  5399. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5400. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5401. cat >conftest.$ac_ext <<_ACEOF
  5402. /* confdefs.h. */
  5403. _ACEOF
  5404. cat confdefs.h >>conftest.$ac_ext
  5405. cat >>conftest.$ac_ext <<_ACEOF
  5406. /* end confdefs.h. */
  5407. $ac_includes_default
  5408. #include <$ac_header>
  5409. _ACEOF
  5410. rm -f conftest.$ac_objext
  5411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5412. (eval $ac_compile) 2>conftest.er1
  5413. ac_status=$?
  5414. grep -v '^ *+' conftest.er1 >conftest.err
  5415. rm -f conftest.er1
  5416. cat conftest.err >&5
  5417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5418. (exit $ac_status); } &&
  5419. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5421. (eval $ac_try) 2>&5
  5422. ac_status=$?
  5423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5424. (exit $ac_status); }; } &&
  5425. { ac_try='test -s conftest.$ac_objext'
  5426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5427. (eval $ac_try) 2>&5
  5428. ac_status=$?
  5429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5430. (exit $ac_status); }; }; then
  5431. ac_header_compiler=yes
  5432. else
  5433. echo "$as_me: failed program was:" >&5
  5434. sed 's/^/| /' conftest.$ac_ext >&5
  5435. ac_header_compiler=no
  5436. fi
  5437. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5438. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5439. echo "${ECHO_T}$ac_header_compiler" >&6
  5440. # Is the header present?
  5441. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5442. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5443. cat >conftest.$ac_ext <<_ACEOF
  5444. /* confdefs.h. */
  5445. _ACEOF
  5446. cat confdefs.h >>conftest.$ac_ext
  5447. cat >>conftest.$ac_ext <<_ACEOF
  5448. /* end confdefs.h. */
  5449. #include <$ac_header>
  5450. _ACEOF
  5451. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5452. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5453. ac_status=$?
  5454. grep -v '^ *+' conftest.er1 >conftest.err
  5455. rm -f conftest.er1
  5456. cat conftest.err >&5
  5457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5458. (exit $ac_status); } >/dev/null; then
  5459. if test -s conftest.err; then
  5460. ac_cpp_err=$ac_c_preproc_warn_flag
  5461. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5462. else
  5463. ac_cpp_err=
  5464. fi
  5465. else
  5466. ac_cpp_err=yes
  5467. fi
  5468. if test -z "$ac_cpp_err"; then
  5469. ac_header_preproc=yes
  5470. else
  5471. echo "$as_me: failed program was:" >&5
  5472. sed 's/^/| /' conftest.$ac_ext >&5
  5473. ac_header_preproc=no
  5474. fi
  5475. rm -f conftest.err conftest.$ac_ext
  5476. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5477. echo "${ECHO_T}$ac_header_preproc" >&6
  5478. # So? What about this header?
  5479. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5480. yes:no: )
  5481. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5482. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5483. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5484. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5485. ac_header_preproc=yes
  5486. ;;
  5487. no:yes:* )
  5488. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5489. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5490. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5491. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5492. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5493. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5494. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5495. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5496. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5497. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5498. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5499. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5500. (
  5501. cat <<\_ASBOX
  5502. ## ------------------------------------------ ##
  5503. ## Report this to the AC_PACKAGE_NAME lists. ##
  5504. ## ------------------------------------------ ##
  5505. _ASBOX
  5506. ) |
  5507. sed "s/^/$as_me: WARNING: /" >&2
  5508. ;;
  5509. esac
  5510. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5511. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5512. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5513. echo $ECHO_N "(cached) $ECHO_C" >&6
  5514. else
  5515. eval "$as_ac_Header=\$ac_header_preproc"
  5516. fi
  5517. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5518. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5519. fi
  5520. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5521. cat >>confdefs.h <<_ACEOF
  5522. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5523. _ACEOF
  5524. fi
  5525. done
  5526. if test "x${ZLIB}" = x; then
  5527. cat >&2 <<EOF
  5528. configure: error:
  5529. Your system does not provide a working zlib compression library.
  5530. It is required.
  5531. EOF
  5532. exit 1
  5533. else
  5534. if test "${ac_cv_header_zlib_h}" != yes; then
  5535. cat >&2 <<EOF
  5536. configure: error:
  5537. Your system does not provide the necessary zlib header file.
  5538. It is required.
  5539. EOF
  5540. exit 1
  5541. fi
  5542. fi
  5543. if test "x${SSL}" = x; then
  5544. cat >&2 <<EOF
  5545. configure: error:
  5546. Your system does not provide a working ssl library.
  5547. It is required. Download openssl at www.openssl.org
  5548. EOF
  5549. exit 1
  5550. else
  5551. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5552. cat >&2 <<EOF
  5553. configure: error:
  5554. Your system does not provide the necessary ssl header file.
  5555. It is required. Download openssl at www.openssl.org
  5556. EOF
  5557. exit 1
  5558. fi
  5559. fi
  5560. # Checks for typedefs, structures, and compiler characteristics
  5561. echo "$as_me:$LINENO: checking for pid_t" >&5
  5562. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5563. if test "${ac_cv_type_pid_t+set}" = set; then
  5564. echo $ECHO_N "(cached) $ECHO_C" >&6
  5565. else
  5566. cat >conftest.$ac_ext <<_ACEOF
  5567. /* confdefs.h. */
  5568. _ACEOF
  5569. cat confdefs.h >>conftest.$ac_ext
  5570. cat >>conftest.$ac_ext <<_ACEOF
  5571. /* end confdefs.h. */
  5572. $ac_includes_default
  5573. int
  5574. main ()
  5575. {
  5576. if ((pid_t *) 0)
  5577. return 0;
  5578. if (sizeof (pid_t))
  5579. return 0;
  5580. ;
  5581. return 0;
  5582. }
  5583. _ACEOF
  5584. rm -f conftest.$ac_objext
  5585. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5586. (eval $ac_compile) 2>conftest.er1
  5587. ac_status=$?
  5588. grep -v '^ *+' conftest.er1 >conftest.err
  5589. rm -f conftest.er1
  5590. cat conftest.err >&5
  5591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5592. (exit $ac_status); } &&
  5593. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5595. (eval $ac_try) 2>&5
  5596. ac_status=$?
  5597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5598. (exit $ac_status); }; } &&
  5599. { ac_try='test -s conftest.$ac_objext'
  5600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5601. (eval $ac_try) 2>&5
  5602. ac_status=$?
  5603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5604. (exit $ac_status); }; }; then
  5605. ac_cv_type_pid_t=yes
  5606. else
  5607. echo "$as_me: failed program was:" >&5
  5608. sed 's/^/| /' conftest.$ac_ext >&5
  5609. ac_cv_type_pid_t=no
  5610. fi
  5611. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5612. fi
  5613. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5614. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5615. if test $ac_cv_type_pid_t = yes; then
  5616. :
  5617. else
  5618. cat >>confdefs.h <<_ACEOF
  5619. #define pid_t int
  5620. _ACEOF
  5621. fi
  5622. echo "$as_me:$LINENO: checking for size_t" >&5
  5623. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5624. if test "${ac_cv_type_size_t+set}" = set; then
  5625. echo $ECHO_N "(cached) $ECHO_C" >&6
  5626. else
  5627. cat >conftest.$ac_ext <<_ACEOF
  5628. /* confdefs.h. */
  5629. _ACEOF
  5630. cat confdefs.h >>conftest.$ac_ext
  5631. cat >>conftest.$ac_ext <<_ACEOF
  5632. /* end confdefs.h. */
  5633. $ac_includes_default
  5634. int
  5635. main ()
  5636. {
  5637. if ((size_t *) 0)
  5638. return 0;
  5639. if (sizeof (size_t))
  5640. return 0;
  5641. ;
  5642. return 0;
  5643. }
  5644. _ACEOF
  5645. rm -f conftest.$ac_objext
  5646. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5647. (eval $ac_compile) 2>conftest.er1
  5648. ac_status=$?
  5649. grep -v '^ *+' conftest.er1 >conftest.err
  5650. rm -f conftest.er1
  5651. cat conftest.err >&5
  5652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5653. (exit $ac_status); } &&
  5654. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5656. (eval $ac_try) 2>&5
  5657. ac_status=$?
  5658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5659. (exit $ac_status); }; } &&
  5660. { ac_try='test -s conftest.$ac_objext'
  5661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5662. (eval $ac_try) 2>&5
  5663. ac_status=$?
  5664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5665. (exit $ac_status); }; }; then
  5666. ac_cv_type_size_t=yes
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. ac_cv_type_size_t=no
  5671. fi
  5672. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. fi
  5674. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5675. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5676. if test $ac_cv_type_size_t = yes; then
  5677. :
  5678. else
  5679. cat >>confdefs.h <<_ACEOF
  5680. #define size_t unsigned
  5681. _ACEOF
  5682. fi
  5683. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5684. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5685. if test "${ac_cv_type_uid_t+set}" = set; then
  5686. echo $ECHO_N "(cached) $ECHO_C" >&6
  5687. else
  5688. cat >conftest.$ac_ext <<_ACEOF
  5689. /* confdefs.h. */
  5690. _ACEOF
  5691. cat confdefs.h >>conftest.$ac_ext
  5692. cat >>conftest.$ac_ext <<_ACEOF
  5693. /* end confdefs.h. */
  5694. #include <sys/types.h>
  5695. _ACEOF
  5696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5697. $EGREP "uid_t" >/dev/null 2>&1; then
  5698. ac_cv_type_uid_t=yes
  5699. else
  5700. ac_cv_type_uid_t=no
  5701. fi
  5702. rm -f conftest*
  5703. fi
  5704. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5705. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5706. if test $ac_cv_type_uid_t = no; then
  5707. cat >>confdefs.h <<\_ACEOF
  5708. #define uid_t int
  5709. _ACEOF
  5710. cat >>confdefs.h <<\_ACEOF
  5711. #define gid_t int
  5712. _ACEOF
  5713. fi
  5714. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5715. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5716. if test "${ac_cv_c_const+set}" = set; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. /* confdefs.h. */
  5721. _ACEOF
  5722. cat confdefs.h >>conftest.$ac_ext
  5723. cat >>conftest.$ac_ext <<_ACEOF
  5724. /* end confdefs.h. */
  5725. int
  5726. main ()
  5727. {
  5728. /* FIXME: Include the comments suggested by Paul. */
  5729. #ifndef __cplusplus
  5730. /* Ultrix mips cc rejects this. */
  5731. typedef int charset[2];
  5732. const charset x;
  5733. /* SunOS 4.1.1 cc rejects this. */
  5734. char const *const *ccp;
  5735. char **p;
  5736. /* NEC SVR4.0.2 mips cc rejects this. */
  5737. struct point {int x, y;};
  5738. static struct point const zero = {0,0};
  5739. /* AIX XL C 1.02.0.0 rejects this.
  5740. It does not let you subtract one const X* pointer from another in
  5741. an arm of an if-expression whose if-part is not a constant
  5742. expression */
  5743. const char *g = "string";
  5744. ccp = &g + (g ? g-g : 0);
  5745. /* HPUX 7.0 cc rejects these. */
  5746. ++ccp;
  5747. p = (char**) ccp;
  5748. ccp = (char const *const *) p;
  5749. { /* SCO 3.2v4 cc rejects this. */
  5750. char *t;
  5751. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5752. *t++ = 0;
  5753. }
  5754. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5755. int x[] = {25, 17};
  5756. const int *foo = &x[0];
  5757. ++foo;
  5758. }
  5759. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5760. typedef const int *iptr;
  5761. iptr p = 0;
  5762. ++p;
  5763. }
  5764. { /* AIX XL C 1.02.0.0 rejects this saying
  5765. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5766. struct s { int j; const int *ap[3]; };
  5767. struct s *b; b->j = 5;
  5768. }
  5769. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5770. const int foo = 10;
  5771. }
  5772. #endif
  5773. ;
  5774. return 0;
  5775. }
  5776. _ACEOF
  5777. rm -f conftest.$ac_objext
  5778. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5779. (eval $ac_compile) 2>conftest.er1
  5780. ac_status=$?
  5781. grep -v '^ *+' conftest.er1 >conftest.err
  5782. rm -f conftest.er1
  5783. cat conftest.err >&5
  5784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5785. (exit $ac_status); } &&
  5786. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5788. (eval $ac_try) 2>&5
  5789. ac_status=$?
  5790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5791. (exit $ac_status); }; } &&
  5792. { ac_try='test -s conftest.$ac_objext'
  5793. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5794. (eval $ac_try) 2>&5
  5795. ac_status=$?
  5796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5797. (exit $ac_status); }; }; then
  5798. ac_cv_c_const=yes
  5799. else
  5800. echo "$as_me: failed program was:" >&5
  5801. sed 's/^/| /' conftest.$ac_ext >&5
  5802. ac_cv_c_const=no
  5803. fi
  5804. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5805. fi
  5806. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5807. echo "${ECHO_T}$ac_cv_c_const" >&6
  5808. if test $ac_cv_c_const = no; then
  5809. cat >>confdefs.h <<\_ACEOF
  5810. #define const
  5811. _ACEOF
  5812. fi
  5813. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5814. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5815. if test "${ac_cv_c_bigendian+set}" = set; then
  5816. echo $ECHO_N "(cached) $ECHO_C" >&6
  5817. else
  5818. # See if sys/param.h defines the BYTE_ORDER macro.
  5819. cat >conftest.$ac_ext <<_ACEOF
  5820. /* confdefs.h. */
  5821. _ACEOF
  5822. cat confdefs.h >>conftest.$ac_ext
  5823. cat >>conftest.$ac_ext <<_ACEOF
  5824. /* end confdefs.h. */
  5825. #include <sys/types.h>
  5826. #include <sys/param.h>
  5827. int
  5828. main ()
  5829. {
  5830. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5831. bogus endian macros
  5832. #endif
  5833. ;
  5834. return 0;
  5835. }
  5836. _ACEOF
  5837. rm -f conftest.$ac_objext
  5838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5839. (eval $ac_compile) 2>conftest.er1
  5840. ac_status=$?
  5841. grep -v '^ *+' conftest.er1 >conftest.err
  5842. rm -f conftest.er1
  5843. cat conftest.err >&5
  5844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5845. (exit $ac_status); } &&
  5846. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5848. (eval $ac_try) 2>&5
  5849. ac_status=$?
  5850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5851. (exit $ac_status); }; } &&
  5852. { ac_try='test -s conftest.$ac_objext'
  5853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5854. (eval $ac_try) 2>&5
  5855. ac_status=$?
  5856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5857. (exit $ac_status); }; }; then
  5858. # It does; now see whether it defined to BIG_ENDIAN or not.
  5859. cat >conftest.$ac_ext <<_ACEOF
  5860. /* confdefs.h. */
  5861. _ACEOF
  5862. cat confdefs.h >>conftest.$ac_ext
  5863. cat >>conftest.$ac_ext <<_ACEOF
  5864. /* end confdefs.h. */
  5865. #include <sys/types.h>
  5866. #include <sys/param.h>
  5867. int
  5868. main ()
  5869. {
  5870. #if BYTE_ORDER != BIG_ENDIAN
  5871. not big endian
  5872. #endif
  5873. ;
  5874. return 0;
  5875. }
  5876. _ACEOF
  5877. rm -f conftest.$ac_objext
  5878. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5879. (eval $ac_compile) 2>conftest.er1
  5880. ac_status=$?
  5881. grep -v '^ *+' conftest.er1 >conftest.err
  5882. rm -f conftest.er1
  5883. cat conftest.err >&5
  5884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. (exit $ac_status); } &&
  5886. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5888. (eval $ac_try) 2>&5
  5889. ac_status=$?
  5890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5891. (exit $ac_status); }; } &&
  5892. { ac_try='test -s conftest.$ac_objext'
  5893. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5894. (eval $ac_try) 2>&5
  5895. ac_status=$?
  5896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5897. (exit $ac_status); }; }; then
  5898. ac_cv_c_bigendian=yes
  5899. else
  5900. echo "$as_me: failed program was:" >&5
  5901. sed 's/^/| /' conftest.$ac_ext >&5
  5902. ac_cv_c_bigendian=no
  5903. fi
  5904. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5905. else
  5906. echo "$as_me: failed program was:" >&5
  5907. sed 's/^/| /' conftest.$ac_ext >&5
  5908. # It does not; compile a test program.
  5909. if test "$cross_compiling" = yes; then
  5910. # try to guess the endianness by grepping values into an object file
  5911. ac_cv_c_bigendian=unknown
  5912. cat >conftest.$ac_ext <<_ACEOF
  5913. /* confdefs.h. */
  5914. _ACEOF
  5915. cat confdefs.h >>conftest.$ac_ext
  5916. cat >>conftest.$ac_ext <<_ACEOF
  5917. /* end confdefs.h. */
  5918. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5919. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5920. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5921. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5922. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5923. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5924. int
  5925. main ()
  5926. {
  5927. _ascii (); _ebcdic ();
  5928. ;
  5929. return 0;
  5930. }
  5931. _ACEOF
  5932. rm -f conftest.$ac_objext
  5933. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5934. (eval $ac_compile) 2>conftest.er1
  5935. ac_status=$?
  5936. grep -v '^ *+' conftest.er1 >conftest.err
  5937. rm -f conftest.er1
  5938. cat conftest.err >&5
  5939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5940. (exit $ac_status); } &&
  5941. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5943. (eval $ac_try) 2>&5
  5944. ac_status=$?
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); }; } &&
  5947. { ac_try='test -s conftest.$ac_objext'
  5948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5949. (eval $ac_try) 2>&5
  5950. ac_status=$?
  5951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5952. (exit $ac_status); }; }; then
  5953. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5954. ac_cv_c_bigendian=yes
  5955. fi
  5956. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5957. if test "$ac_cv_c_bigendian" = unknown; then
  5958. ac_cv_c_bigendian=no
  5959. else
  5960. # finding both strings is unlikely to happen, but who knows?
  5961. ac_cv_c_bigendian=unknown
  5962. fi
  5963. fi
  5964. else
  5965. echo "$as_me: failed program was:" >&5
  5966. sed 's/^/| /' conftest.$ac_ext >&5
  5967. fi
  5968. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5969. else
  5970. cat >conftest.$ac_ext <<_ACEOF
  5971. /* confdefs.h. */
  5972. _ACEOF
  5973. cat confdefs.h >>conftest.$ac_ext
  5974. cat >>conftest.$ac_ext <<_ACEOF
  5975. /* end confdefs.h. */
  5976. int
  5977. main ()
  5978. {
  5979. /* Are we little or big endian? From Harbison&Steele. */
  5980. union
  5981. {
  5982. long l;
  5983. char c[sizeof (long)];
  5984. } u;
  5985. u.l = 1;
  5986. exit (u.c[sizeof (long) - 1] == 1);
  5987. }
  5988. _ACEOF
  5989. rm -f conftest$ac_exeext
  5990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5991. (eval $ac_link) 2>&5
  5992. ac_status=$?
  5993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5996. (eval $ac_try) 2>&5
  5997. ac_status=$?
  5998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5999. (exit $ac_status); }; }; then
  6000. ac_cv_c_bigendian=no
  6001. else
  6002. echo "$as_me: program exited with status $ac_status" >&5
  6003. echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. ( exit $ac_status )
  6006. ac_cv_c_bigendian=yes
  6007. fi
  6008. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6009. fi
  6010. fi
  6011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6012. fi
  6013. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6014. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6015. case $ac_cv_c_bigendian in
  6016. yes)
  6017. cat >>confdefs.h <<\_ACEOF
  6018. #define WORDS_BIGENDIAN 1
  6019. _ACEOF
  6020. ;;
  6021. no)
  6022. ;;
  6023. *)
  6024. { { echo "$as_me:$LINENO: error: unknown endianness
  6025. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6026. echo "$as_me: error: unknown endianness
  6027. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6028. { (exit 1); exit 1; }; } ;;
  6029. esac
  6030. echo "$as_me:$LINENO: checking for inline" >&5
  6031. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6032. if test "${ac_cv_c_inline+set}" = set; then
  6033. echo $ECHO_N "(cached) $ECHO_C" >&6
  6034. else
  6035. ac_cv_c_inline=no
  6036. for ac_kw in inline __inline__ __inline; do
  6037. cat >conftest.$ac_ext <<_ACEOF
  6038. /* confdefs.h. */
  6039. _ACEOF
  6040. cat confdefs.h >>conftest.$ac_ext
  6041. cat >>conftest.$ac_ext <<_ACEOF
  6042. /* end confdefs.h. */
  6043. #ifndef __cplusplus
  6044. typedef int foo_t;
  6045. static $ac_kw foo_t static_foo () {return 0; }
  6046. $ac_kw foo_t foo () {return 0; }
  6047. #endif
  6048. _ACEOF
  6049. rm -f conftest.$ac_objext
  6050. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6051. (eval $ac_compile) 2>conftest.er1
  6052. ac_status=$?
  6053. grep -v '^ *+' conftest.er1 >conftest.err
  6054. rm -f conftest.er1
  6055. cat conftest.err >&5
  6056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6057. (exit $ac_status); } &&
  6058. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6060. (eval $ac_try) 2>&5
  6061. ac_status=$?
  6062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6063. (exit $ac_status); }; } &&
  6064. { ac_try='test -s conftest.$ac_objext'
  6065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6066. (eval $ac_try) 2>&5
  6067. ac_status=$?
  6068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); }; }; then
  6070. ac_cv_c_inline=$ac_kw; break
  6071. else
  6072. echo "$as_me: failed program was:" >&5
  6073. sed 's/^/| /' conftest.$ac_ext >&5
  6074. fi
  6075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6076. done
  6077. fi
  6078. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6079. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6080. case $ac_cv_c_inline in
  6081. inline | yes) ;;
  6082. *)
  6083. case $ac_cv_c_inline in
  6084. no) ac_val=;;
  6085. *) ac_val=$ac_cv_c_inline;;
  6086. esac
  6087. cat >>confdefs.h <<_ACEOF
  6088. #ifndef __cplusplus
  6089. #define inline $ac_val
  6090. #endif
  6091. _ACEOF
  6092. ;;
  6093. esac
  6094. echo "$as_me:$LINENO: checking for long" >&5
  6095. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6096. if test "${ac_cv_type_long+set}" = set; then
  6097. echo $ECHO_N "(cached) $ECHO_C" >&6
  6098. else
  6099. cat >conftest.$ac_ext <<_ACEOF
  6100. /* confdefs.h. */
  6101. _ACEOF
  6102. cat confdefs.h >>conftest.$ac_ext
  6103. cat >>conftest.$ac_ext <<_ACEOF
  6104. /* end confdefs.h. */
  6105. $ac_includes_default
  6106. int
  6107. main ()
  6108. {
  6109. if ((long *) 0)
  6110. return 0;
  6111. if (sizeof (long))
  6112. return 0;
  6113. ;
  6114. return 0;
  6115. }
  6116. _ACEOF
  6117. rm -f conftest.$ac_objext
  6118. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6119. (eval $ac_compile) 2>conftest.er1
  6120. ac_status=$?
  6121. grep -v '^ *+' conftest.er1 >conftest.err
  6122. rm -f conftest.er1
  6123. cat conftest.err >&5
  6124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6125. (exit $ac_status); } &&
  6126. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6127. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6128. (eval $ac_try) 2>&5
  6129. ac_status=$?
  6130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6131. (exit $ac_status); }; } &&
  6132. { ac_try='test -s conftest.$ac_objext'
  6133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6134. (eval $ac_try) 2>&5
  6135. ac_status=$?
  6136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6137. (exit $ac_status); }; }; then
  6138. ac_cv_type_long=yes
  6139. else
  6140. echo "$as_me: failed program was:" >&5
  6141. sed 's/^/| /' conftest.$ac_ext >&5
  6142. ac_cv_type_long=no
  6143. fi
  6144. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6145. fi
  6146. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6147. echo "${ECHO_T}$ac_cv_type_long" >&6
  6148. echo "$as_me:$LINENO: checking size of long" >&5
  6149. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6150. if test "${ac_cv_sizeof_long+set}" = set; then
  6151. echo $ECHO_N "(cached) $ECHO_C" >&6
  6152. else
  6153. if test "$ac_cv_type_long" = yes; then
  6154. # The cast to unsigned long works around a bug in the HP C Compiler
  6155. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6156. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6157. # This bug is HP SR number 8606223364.
  6158. if test "$cross_compiling" = yes; then
  6159. # Depending upon the size, compute the lo and hi bounds.
  6160. cat >conftest.$ac_ext <<_ACEOF
  6161. /* confdefs.h. */
  6162. _ACEOF
  6163. cat confdefs.h >>conftest.$ac_ext
  6164. cat >>conftest.$ac_ext <<_ACEOF
  6165. /* end confdefs.h. */
  6166. $ac_includes_default
  6167. int
  6168. main ()
  6169. {
  6170. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6171. test_array [0] = 0
  6172. ;
  6173. return 0;
  6174. }
  6175. _ACEOF
  6176. rm -f conftest.$ac_objext
  6177. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6178. (eval $ac_compile) 2>conftest.er1
  6179. ac_status=$?
  6180. grep -v '^ *+' conftest.er1 >conftest.err
  6181. rm -f conftest.er1
  6182. cat conftest.err >&5
  6183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184. (exit $ac_status); } &&
  6185. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6186. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. (eval $ac_try) 2>&5
  6188. ac_status=$?
  6189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. (exit $ac_status); }; } &&
  6191. { ac_try='test -s conftest.$ac_objext'
  6192. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6193. (eval $ac_try) 2>&5
  6194. ac_status=$?
  6195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6196. (exit $ac_status); }; }; then
  6197. ac_lo=0 ac_mid=0
  6198. while :; do
  6199. cat >conftest.$ac_ext <<_ACEOF
  6200. /* confdefs.h. */
  6201. _ACEOF
  6202. cat confdefs.h >>conftest.$ac_ext
  6203. cat >>conftest.$ac_ext <<_ACEOF
  6204. /* end confdefs.h. */
  6205. $ac_includes_default
  6206. int
  6207. main ()
  6208. {
  6209. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6210. test_array [0] = 0
  6211. ;
  6212. return 0;
  6213. }
  6214. _ACEOF
  6215. rm -f conftest.$ac_objext
  6216. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6217. (eval $ac_compile) 2>conftest.er1
  6218. ac_status=$?
  6219. grep -v '^ *+' conftest.er1 >conftest.err
  6220. rm -f conftest.er1
  6221. cat conftest.err >&5
  6222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6223. (exit $ac_status); } &&
  6224. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6226. (eval $ac_try) 2>&5
  6227. ac_status=$?
  6228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6229. (exit $ac_status); }; } &&
  6230. { ac_try='test -s conftest.$ac_objext'
  6231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6232. (eval $ac_try) 2>&5
  6233. ac_status=$?
  6234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6235. (exit $ac_status); }; }; then
  6236. ac_hi=$ac_mid; break
  6237. else
  6238. echo "$as_me: failed program was:" >&5
  6239. sed 's/^/| /' conftest.$ac_ext >&5
  6240. ac_lo=`expr $ac_mid + 1`
  6241. if test $ac_lo -le $ac_mid; then
  6242. ac_lo= ac_hi=
  6243. break
  6244. fi
  6245. ac_mid=`expr 2 '*' $ac_mid + 1`
  6246. fi
  6247. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6248. done
  6249. else
  6250. echo "$as_me: failed program was:" >&5
  6251. sed 's/^/| /' conftest.$ac_ext >&5
  6252. cat >conftest.$ac_ext <<_ACEOF
  6253. /* confdefs.h. */
  6254. _ACEOF
  6255. cat confdefs.h >>conftest.$ac_ext
  6256. cat >>conftest.$ac_ext <<_ACEOF
  6257. /* end confdefs.h. */
  6258. $ac_includes_default
  6259. int
  6260. main ()
  6261. {
  6262. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6263. test_array [0] = 0
  6264. ;
  6265. return 0;
  6266. }
  6267. _ACEOF
  6268. rm -f conftest.$ac_objext
  6269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6270. (eval $ac_compile) 2>conftest.er1
  6271. ac_status=$?
  6272. grep -v '^ *+' conftest.er1 >conftest.err
  6273. rm -f conftest.er1
  6274. cat conftest.err >&5
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); } &&
  6277. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6279. (eval $ac_try) 2>&5
  6280. ac_status=$?
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); }; } &&
  6283. { ac_try='test -s conftest.$ac_objext'
  6284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6285. (eval $ac_try) 2>&5
  6286. ac_status=$?
  6287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6288. (exit $ac_status); }; }; then
  6289. ac_hi=-1 ac_mid=-1
  6290. while :; do
  6291. cat >conftest.$ac_ext <<_ACEOF
  6292. /* confdefs.h. */
  6293. _ACEOF
  6294. cat confdefs.h >>conftest.$ac_ext
  6295. cat >>conftest.$ac_ext <<_ACEOF
  6296. /* end confdefs.h. */
  6297. $ac_includes_default
  6298. int
  6299. main ()
  6300. {
  6301. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6302. test_array [0] = 0
  6303. ;
  6304. return 0;
  6305. }
  6306. _ACEOF
  6307. rm -f conftest.$ac_objext
  6308. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6309. (eval $ac_compile) 2>conftest.er1
  6310. ac_status=$?
  6311. grep -v '^ *+' conftest.er1 >conftest.err
  6312. rm -f conftest.er1
  6313. cat conftest.err >&5
  6314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. (exit $ac_status); } &&
  6316. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6318. (eval $ac_try) 2>&5
  6319. ac_status=$?
  6320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6321. (exit $ac_status); }; } &&
  6322. { ac_try='test -s conftest.$ac_objext'
  6323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6324. (eval $ac_try) 2>&5
  6325. ac_status=$?
  6326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6327. (exit $ac_status); }; }; then
  6328. ac_lo=$ac_mid; break
  6329. else
  6330. echo "$as_me: failed program was:" >&5
  6331. sed 's/^/| /' conftest.$ac_ext >&5
  6332. ac_hi=`expr '(' $ac_mid ')' - 1`
  6333. if test $ac_mid -le $ac_hi; then
  6334. ac_lo= ac_hi=
  6335. break
  6336. fi
  6337. ac_mid=`expr 2 '*' $ac_mid`
  6338. fi
  6339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6340. done
  6341. else
  6342. echo "$as_me: failed program was:" >&5
  6343. sed 's/^/| /' conftest.$ac_ext >&5
  6344. ac_lo= ac_hi=
  6345. fi
  6346. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6347. fi
  6348. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6349. # Binary search between lo and hi bounds.
  6350. while test "x$ac_lo" != "x$ac_hi"; do
  6351. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6352. cat >conftest.$ac_ext <<_ACEOF
  6353. /* confdefs.h. */
  6354. _ACEOF
  6355. cat confdefs.h >>conftest.$ac_ext
  6356. cat >>conftest.$ac_ext <<_ACEOF
  6357. /* end confdefs.h. */
  6358. $ac_includes_default
  6359. int
  6360. main ()
  6361. {
  6362. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6363. test_array [0] = 0
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext
  6369. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6370. (eval $ac_compile) 2>conftest.er1
  6371. ac_status=$?
  6372. grep -v '^ *+' conftest.er1 >conftest.err
  6373. rm -f conftest.er1
  6374. cat conftest.err >&5
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); } &&
  6377. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6378. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6379. (eval $ac_try) 2>&5
  6380. ac_status=$?
  6381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6382. (exit $ac_status); }; } &&
  6383. { ac_try='test -s conftest.$ac_objext'
  6384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6385. (eval $ac_try) 2>&5
  6386. ac_status=$?
  6387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6388. (exit $ac_status); }; }; then
  6389. ac_hi=$ac_mid
  6390. else
  6391. echo "$as_me: failed program was:" >&5
  6392. sed 's/^/| /' conftest.$ac_ext >&5
  6393. ac_lo=`expr '(' $ac_mid ')' + 1`
  6394. fi
  6395. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6396. done
  6397. case $ac_lo in
  6398. ?*) ac_cv_sizeof_long=$ac_lo;;
  6399. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6400. See \`config.log' for more details." >&5
  6401. echo "$as_me: error: cannot compute sizeof (long), 77
  6402. See \`config.log' for more details." >&2;}
  6403. { (exit 1); exit 1; }; } ;;
  6404. esac
  6405. else
  6406. if test "$cross_compiling" = yes; then
  6407. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6408. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6409. { (exit 1); exit 1; }; }
  6410. else
  6411. cat >conftest.$ac_ext <<_ACEOF
  6412. /* confdefs.h. */
  6413. _ACEOF
  6414. cat confdefs.h >>conftest.$ac_ext
  6415. cat >>conftest.$ac_ext <<_ACEOF
  6416. /* end confdefs.h. */
  6417. $ac_includes_default
  6418. long longval () { return (long) (sizeof (long)); }
  6419. unsigned long ulongval () { return (long) (sizeof (long)); }
  6420. #include <stdio.h>
  6421. #include <stdlib.h>
  6422. int
  6423. main ()
  6424. {
  6425. FILE *f = fopen ("conftest.val", "w");
  6426. if (! f)
  6427. exit (1);
  6428. if (((long) (sizeof (long))) < 0)
  6429. {
  6430. long i = longval ();
  6431. if (i != ((long) (sizeof (long))))
  6432. exit (1);
  6433. fprintf (f, "%ld\n", i);
  6434. }
  6435. else
  6436. {
  6437. unsigned long i = ulongval ();
  6438. if (i != ((long) (sizeof (long))))
  6439. exit (1);
  6440. fprintf (f, "%lu\n", i);
  6441. }
  6442. exit (ferror (f) || fclose (f) != 0);
  6443. ;
  6444. return 0;
  6445. }
  6446. _ACEOF
  6447. rm -f conftest$ac_exeext
  6448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6449. (eval $ac_link) 2>&5
  6450. ac_status=$?
  6451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6452. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6454. (eval $ac_try) 2>&5
  6455. ac_status=$?
  6456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6457. (exit $ac_status); }; }; then
  6458. ac_cv_sizeof_long=`cat conftest.val`
  6459. else
  6460. echo "$as_me: program exited with status $ac_status" >&5
  6461. echo "$as_me: failed program was:" >&5
  6462. sed 's/^/| /' conftest.$ac_ext >&5
  6463. ( exit $ac_status )
  6464. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6465. See \`config.log' for more details." >&5
  6466. echo "$as_me: error: cannot compute sizeof (long), 77
  6467. See \`config.log' for more details." >&2;}
  6468. { (exit 1); exit 1; }; }
  6469. fi
  6470. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6471. fi
  6472. fi
  6473. rm -f conftest.val
  6474. else
  6475. ac_cv_sizeof_long=0
  6476. fi
  6477. fi
  6478. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6479. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6480. cat >>confdefs.h <<_ACEOF
  6481. #define SIZEOF_LONG $ac_cv_sizeof_long
  6482. _ACEOF
  6483. echo "$as_me:$LINENO: checking for int" >&5
  6484. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6485. if test "${ac_cv_type_int+set}" = set; then
  6486. echo $ECHO_N "(cached) $ECHO_C" >&6
  6487. else
  6488. cat >conftest.$ac_ext <<_ACEOF
  6489. /* confdefs.h. */
  6490. _ACEOF
  6491. cat confdefs.h >>conftest.$ac_ext
  6492. cat >>conftest.$ac_ext <<_ACEOF
  6493. /* end confdefs.h. */
  6494. $ac_includes_default
  6495. int
  6496. main ()
  6497. {
  6498. if ((int *) 0)
  6499. return 0;
  6500. if (sizeof (int))
  6501. return 0;
  6502. ;
  6503. return 0;
  6504. }
  6505. _ACEOF
  6506. rm -f conftest.$ac_objext
  6507. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6508. (eval $ac_compile) 2>conftest.er1
  6509. ac_status=$?
  6510. grep -v '^ *+' conftest.er1 >conftest.err
  6511. rm -f conftest.er1
  6512. cat conftest.err >&5
  6513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6514. (exit $ac_status); } &&
  6515. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6516. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6517. (eval $ac_try) 2>&5
  6518. ac_status=$?
  6519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6520. (exit $ac_status); }; } &&
  6521. { ac_try='test -s conftest.$ac_objext'
  6522. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6523. (eval $ac_try) 2>&5
  6524. ac_status=$?
  6525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6526. (exit $ac_status); }; }; then
  6527. ac_cv_type_int=yes
  6528. else
  6529. echo "$as_me: failed program was:" >&5
  6530. sed 's/^/| /' conftest.$ac_ext >&5
  6531. ac_cv_type_int=no
  6532. fi
  6533. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6534. fi
  6535. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6536. echo "${ECHO_T}$ac_cv_type_int" >&6
  6537. echo "$as_me:$LINENO: checking size of int" >&5
  6538. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6539. if test "${ac_cv_sizeof_int+set}" = set; then
  6540. echo $ECHO_N "(cached) $ECHO_C" >&6
  6541. else
  6542. if test "$ac_cv_type_int" = yes; then
  6543. # The cast to unsigned long works around a bug in the HP C Compiler
  6544. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6545. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6546. # This bug is HP SR number 8606223364.
  6547. if test "$cross_compiling" = yes; then
  6548. # Depending upon the size, compute the lo and hi bounds.
  6549. cat >conftest.$ac_ext <<_ACEOF
  6550. /* confdefs.h. */
  6551. _ACEOF
  6552. cat confdefs.h >>conftest.$ac_ext
  6553. cat >>conftest.$ac_ext <<_ACEOF
  6554. /* end confdefs.h. */
  6555. $ac_includes_default
  6556. int
  6557. main ()
  6558. {
  6559. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6560. test_array [0] = 0
  6561. ;
  6562. return 0;
  6563. }
  6564. _ACEOF
  6565. rm -f conftest.$ac_objext
  6566. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6567. (eval $ac_compile) 2>conftest.er1
  6568. ac_status=$?
  6569. grep -v '^ *+' conftest.er1 >conftest.err
  6570. rm -f conftest.er1
  6571. cat conftest.err >&5
  6572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6573. (exit $ac_status); } &&
  6574. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6575. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6576. (eval $ac_try) 2>&5
  6577. ac_status=$?
  6578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6579. (exit $ac_status); }; } &&
  6580. { ac_try='test -s conftest.$ac_objext'
  6581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6582. (eval $ac_try) 2>&5
  6583. ac_status=$?
  6584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6585. (exit $ac_status); }; }; then
  6586. ac_lo=0 ac_mid=0
  6587. while :; do
  6588. cat >conftest.$ac_ext <<_ACEOF
  6589. /* confdefs.h. */
  6590. _ACEOF
  6591. cat confdefs.h >>conftest.$ac_ext
  6592. cat >>conftest.$ac_ext <<_ACEOF
  6593. /* end confdefs.h. */
  6594. $ac_includes_default
  6595. int
  6596. main ()
  6597. {
  6598. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6599. test_array [0] = 0
  6600. ;
  6601. return 0;
  6602. }
  6603. _ACEOF
  6604. rm -f conftest.$ac_objext
  6605. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6606. (eval $ac_compile) 2>conftest.er1
  6607. ac_status=$?
  6608. grep -v '^ *+' conftest.er1 >conftest.err
  6609. rm -f conftest.er1
  6610. cat conftest.err >&5
  6611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6612. (exit $ac_status); } &&
  6613. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6615. (eval $ac_try) 2>&5
  6616. ac_status=$?
  6617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6618. (exit $ac_status); }; } &&
  6619. { ac_try='test -s conftest.$ac_objext'
  6620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6621. (eval $ac_try) 2>&5
  6622. ac_status=$?
  6623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6624. (exit $ac_status); }; }; then
  6625. ac_hi=$ac_mid; break
  6626. else
  6627. echo "$as_me: failed program was:" >&5
  6628. sed 's/^/| /' conftest.$ac_ext >&5
  6629. ac_lo=`expr $ac_mid + 1`
  6630. if test $ac_lo -le $ac_mid; then
  6631. ac_lo= ac_hi=
  6632. break
  6633. fi
  6634. ac_mid=`expr 2 '*' $ac_mid + 1`
  6635. fi
  6636. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6637. done
  6638. else
  6639. echo "$as_me: failed program was:" >&5
  6640. sed 's/^/| /' conftest.$ac_ext >&5
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. $ac_includes_default
  6648. int
  6649. main ()
  6650. {
  6651. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6652. test_array [0] = 0
  6653. ;
  6654. return 0;
  6655. }
  6656. _ACEOF
  6657. rm -f conftest.$ac_objext
  6658. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6659. (eval $ac_compile) 2>conftest.er1
  6660. ac_status=$?
  6661. grep -v '^ *+' conftest.er1 >conftest.err
  6662. rm -f conftest.er1
  6663. cat conftest.err >&5
  6664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6665. (exit $ac_status); } &&
  6666. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6668. (eval $ac_try) 2>&5
  6669. ac_status=$?
  6670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6671. (exit $ac_status); }; } &&
  6672. { ac_try='test -s conftest.$ac_objext'
  6673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6674. (eval $ac_try) 2>&5
  6675. ac_status=$?
  6676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6677. (exit $ac_status); }; }; then
  6678. ac_hi=-1 ac_mid=-1
  6679. while :; do
  6680. cat >conftest.$ac_ext <<_ACEOF
  6681. /* confdefs.h. */
  6682. _ACEOF
  6683. cat confdefs.h >>conftest.$ac_ext
  6684. cat >>conftest.$ac_ext <<_ACEOF
  6685. /* end confdefs.h. */
  6686. $ac_includes_default
  6687. int
  6688. main ()
  6689. {
  6690. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6691. test_array [0] = 0
  6692. ;
  6693. return 0;
  6694. }
  6695. _ACEOF
  6696. rm -f conftest.$ac_objext
  6697. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6698. (eval $ac_compile) 2>conftest.er1
  6699. ac_status=$?
  6700. grep -v '^ *+' conftest.er1 >conftest.err
  6701. rm -f conftest.er1
  6702. cat conftest.err >&5
  6703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6704. (exit $ac_status); } &&
  6705. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6707. (eval $ac_try) 2>&5
  6708. ac_status=$?
  6709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6710. (exit $ac_status); }; } &&
  6711. { ac_try='test -s conftest.$ac_objext'
  6712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6713. (eval $ac_try) 2>&5
  6714. ac_status=$?
  6715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6716. (exit $ac_status); }; }; then
  6717. ac_lo=$ac_mid; break
  6718. else
  6719. echo "$as_me: failed program was:" >&5
  6720. sed 's/^/| /' conftest.$ac_ext >&5
  6721. ac_hi=`expr '(' $ac_mid ')' - 1`
  6722. if test $ac_mid -le $ac_hi; then
  6723. ac_lo= ac_hi=
  6724. break
  6725. fi
  6726. ac_mid=`expr 2 '*' $ac_mid`
  6727. fi
  6728. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6729. done
  6730. else
  6731. echo "$as_me: failed program was:" >&5
  6732. sed 's/^/| /' conftest.$ac_ext >&5
  6733. ac_lo= ac_hi=
  6734. fi
  6735. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6736. fi
  6737. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6738. # Binary search between lo and hi bounds.
  6739. while test "x$ac_lo" != "x$ac_hi"; do
  6740. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6741. cat >conftest.$ac_ext <<_ACEOF
  6742. /* confdefs.h. */
  6743. _ACEOF
  6744. cat confdefs.h >>conftest.$ac_ext
  6745. cat >>conftest.$ac_ext <<_ACEOF
  6746. /* end confdefs.h. */
  6747. $ac_includes_default
  6748. int
  6749. main ()
  6750. {
  6751. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6752. test_array [0] = 0
  6753. ;
  6754. return 0;
  6755. }
  6756. _ACEOF
  6757. rm -f conftest.$ac_objext
  6758. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6759. (eval $ac_compile) 2>conftest.er1
  6760. ac_status=$?
  6761. grep -v '^ *+' conftest.er1 >conftest.err
  6762. rm -f conftest.er1
  6763. cat conftest.err >&5
  6764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6765. (exit $ac_status); } &&
  6766. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6767. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6768. (eval $ac_try) 2>&5
  6769. ac_status=$?
  6770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6771. (exit $ac_status); }; } &&
  6772. { ac_try='test -s conftest.$ac_objext'
  6773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6774. (eval $ac_try) 2>&5
  6775. ac_status=$?
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); }; }; then
  6778. ac_hi=$ac_mid
  6779. else
  6780. echo "$as_me: failed program was:" >&5
  6781. sed 's/^/| /' conftest.$ac_ext >&5
  6782. ac_lo=`expr '(' $ac_mid ')' + 1`
  6783. fi
  6784. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6785. done
  6786. case $ac_lo in
  6787. ?*) ac_cv_sizeof_int=$ac_lo;;
  6788. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6789. See \`config.log' for more details." >&5
  6790. echo "$as_me: error: cannot compute sizeof (int), 77
  6791. See \`config.log' for more details." >&2;}
  6792. { (exit 1); exit 1; }; } ;;
  6793. esac
  6794. else
  6795. if test "$cross_compiling" = yes; then
  6796. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6797. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6798. { (exit 1); exit 1; }; }
  6799. else
  6800. cat >conftest.$ac_ext <<_ACEOF
  6801. /* confdefs.h. */
  6802. _ACEOF
  6803. cat confdefs.h >>conftest.$ac_ext
  6804. cat >>conftest.$ac_ext <<_ACEOF
  6805. /* end confdefs.h. */
  6806. $ac_includes_default
  6807. long longval () { return (long) (sizeof (int)); }
  6808. unsigned long ulongval () { return (long) (sizeof (int)); }
  6809. #include <stdio.h>
  6810. #include <stdlib.h>
  6811. int
  6812. main ()
  6813. {
  6814. FILE *f = fopen ("conftest.val", "w");
  6815. if (! f)
  6816. exit (1);
  6817. if (((long) (sizeof (int))) < 0)
  6818. {
  6819. long i = longval ();
  6820. if (i != ((long) (sizeof (int))))
  6821. exit (1);
  6822. fprintf (f, "%ld\n", i);
  6823. }
  6824. else
  6825. {
  6826. unsigned long i = ulongval ();
  6827. if (i != ((long) (sizeof (int))))
  6828. exit (1);
  6829. fprintf (f, "%lu\n", i);
  6830. }
  6831. exit (ferror (f) || fclose (f) != 0);
  6832. ;
  6833. return 0;
  6834. }
  6835. _ACEOF
  6836. rm -f conftest$ac_exeext
  6837. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6838. (eval $ac_link) 2>&5
  6839. ac_status=$?
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6842. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6843. (eval $ac_try) 2>&5
  6844. ac_status=$?
  6845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); }; }; then
  6847. ac_cv_sizeof_int=`cat conftest.val`
  6848. else
  6849. echo "$as_me: program exited with status $ac_status" >&5
  6850. echo "$as_me: failed program was:" >&5
  6851. sed 's/^/| /' conftest.$ac_ext >&5
  6852. ( exit $ac_status )
  6853. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6854. See \`config.log' for more details." >&5
  6855. echo "$as_me: error: cannot compute sizeof (int), 77
  6856. See \`config.log' for more details." >&2;}
  6857. { (exit 1); exit 1; }; }
  6858. fi
  6859. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6860. fi
  6861. fi
  6862. rm -f conftest.val
  6863. else
  6864. ac_cv_sizeof_int=0
  6865. fi
  6866. fi
  6867. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6868. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6869. cat >>confdefs.h <<_ACEOF
  6870. #define SIZEOF_INT $ac_cv_sizeof_int
  6871. _ACEOF
  6872. #checkpoint
  6873. cat >confcache <<\_ACEOF
  6874. # This file is a shell script that caches the results of configure
  6875. # tests run on this system so they can be shared between configure
  6876. # scripts and configure runs, see configure's option --config-cache.
  6877. # It is not useful on other systems. If it contains results you don't
  6878. # want to keep, you may remove or edit it.
  6879. #
  6880. # config.status only pays attention to the cache file if you give it
  6881. # the --recheck option to rerun configure.
  6882. #
  6883. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6884. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6885. # following values.
  6886. _ACEOF
  6887. # The following way of writing the cache mishandles newlines in values,
  6888. # but we know of no workaround that is simple, portable, and efficient.
  6889. # So, don't put newlines in cache variables' values.
  6890. # Ultrix sh set writes to stderr and can't be redirected directly,
  6891. # and sets the high bit in the cache file unless we assign to the vars.
  6892. {
  6893. (set) 2>&1 |
  6894. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6895. *ac_space=\ *)
  6896. # `set' does not quote correctly, so add quotes (double-quote
  6897. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6898. sed -n \
  6899. "s/'/'\\\\''/g;
  6900. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6901. ;;
  6902. *)
  6903. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6904. sed -n \
  6905. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6906. ;;
  6907. esac;
  6908. } |
  6909. sed '
  6910. t clear
  6911. : clear
  6912. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6913. t end
  6914. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6915. : end' >>confcache
  6916. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6917. if test -w $cache_file; then
  6918. test "x$cache_file" != "x/dev/null"
  6919. cat confcache >$cache_file
  6920. else
  6921. echo "not updating unwritable cache $cache_file"
  6922. fi
  6923. fi
  6924. rm -f confcache
  6925. echo "$as_me:$LINENO: checking for working volatile" >&5
  6926. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6927. if test "${ac_cv_c_volatile+set}" = set; then
  6928. echo $ECHO_N "(cached) $ECHO_C" >&6
  6929. else
  6930. cat >conftest.$ac_ext <<_ACEOF
  6931. /* confdefs.h. */
  6932. _ACEOF
  6933. cat confdefs.h >>conftest.$ac_ext
  6934. cat >>conftest.$ac_ext <<_ACEOF
  6935. /* end confdefs.h. */
  6936. int
  6937. main ()
  6938. {
  6939. volatile int x;
  6940. int * volatile y;
  6941. ;
  6942. return 0;
  6943. }
  6944. _ACEOF
  6945. rm -f conftest.$ac_objext
  6946. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6947. (eval $ac_compile) 2>conftest.er1
  6948. ac_status=$?
  6949. grep -v '^ *+' conftest.er1 >conftest.err
  6950. rm -f conftest.er1
  6951. cat conftest.err >&5
  6952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6953. (exit $ac_status); } &&
  6954. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6956. (eval $ac_try) 2>&5
  6957. ac_status=$?
  6958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6959. (exit $ac_status); }; } &&
  6960. { ac_try='test -s conftest.$ac_objext'
  6961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6962. (eval $ac_try) 2>&5
  6963. ac_status=$?
  6964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6965. (exit $ac_status); }; }; then
  6966. ac_cv_c_volatile=yes
  6967. else
  6968. echo "$as_me: failed program was:" >&5
  6969. sed 's/^/| /' conftest.$ac_ext >&5
  6970. ac_cv_c_volatile=no
  6971. fi
  6972. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6973. fi
  6974. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6975. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  6976. if test $ac_cv_c_volatile = no; then
  6977. cat >>confdefs.h <<\_ACEOF
  6978. #define volatile
  6979. _ACEOF
  6980. fi
  6981. if test $ac_cv_c_compiler_gnu = yes; then
  6982. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6983. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  6984. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  6985. echo $ECHO_N "(cached) $ECHO_C" >&6
  6986. else
  6987. ac_pattern="Autoconf.*'x'"
  6988. cat >conftest.$ac_ext <<_ACEOF
  6989. /* confdefs.h. */
  6990. _ACEOF
  6991. cat confdefs.h >>conftest.$ac_ext
  6992. cat >>conftest.$ac_ext <<_ACEOF
  6993. /* end confdefs.h. */
  6994. #include <sgtty.h>
  6995. Autoconf TIOCGETP
  6996. _ACEOF
  6997. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6998. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  6999. ac_cv_prog_gcc_traditional=yes
  7000. else
  7001. ac_cv_prog_gcc_traditional=no
  7002. fi
  7003. rm -f conftest*
  7004. if test $ac_cv_prog_gcc_traditional = no; then
  7005. cat >conftest.$ac_ext <<_ACEOF
  7006. /* confdefs.h. */
  7007. _ACEOF
  7008. cat confdefs.h >>conftest.$ac_ext
  7009. cat >>conftest.$ac_ext <<_ACEOF
  7010. /* end confdefs.h. */
  7011. #include <termio.h>
  7012. Autoconf TCGETA
  7013. _ACEOF
  7014. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7015. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7016. ac_cv_prog_gcc_traditional=yes
  7017. fi
  7018. rm -f conftest*
  7019. fi
  7020. fi
  7021. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7022. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7023. if test $ac_cv_prog_gcc_traditional = yes; then
  7024. CC="$CC -traditional"
  7025. fi
  7026. fi
  7027. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7028. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7029. if test "${ac_cv_struct_tm+set}" = set; then
  7030. echo $ECHO_N "(cached) $ECHO_C" >&6
  7031. else
  7032. cat >conftest.$ac_ext <<_ACEOF
  7033. /* confdefs.h. */
  7034. _ACEOF
  7035. cat confdefs.h >>conftest.$ac_ext
  7036. cat >>conftest.$ac_ext <<_ACEOF
  7037. /* end confdefs.h. */
  7038. #include <sys/types.h>
  7039. #include <time.h>
  7040. int
  7041. main ()
  7042. {
  7043. struct tm *tp; tp->tm_sec;
  7044. ;
  7045. return 0;
  7046. }
  7047. _ACEOF
  7048. rm -f conftest.$ac_objext
  7049. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7050. (eval $ac_compile) 2>conftest.er1
  7051. ac_status=$?
  7052. grep -v '^ *+' conftest.er1 >conftest.err
  7053. rm -f conftest.er1
  7054. cat conftest.err >&5
  7055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7056. (exit $ac_status); } &&
  7057. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7059. (eval $ac_try) 2>&5
  7060. ac_status=$?
  7061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7062. (exit $ac_status); }; } &&
  7063. { ac_try='test -s conftest.$ac_objext'
  7064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7065. (eval $ac_try) 2>&5
  7066. ac_status=$?
  7067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); }; }; then
  7069. ac_cv_struct_tm=time.h
  7070. else
  7071. echo "$as_me: failed program was:" >&5
  7072. sed 's/^/| /' conftest.$ac_ext >&5
  7073. ac_cv_struct_tm=sys/time.h
  7074. fi
  7075. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7076. fi
  7077. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7078. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7079. if test $ac_cv_struct_tm = sys/time.h; then
  7080. cat >>confdefs.h <<\_ACEOF
  7081. #define TM_IN_SYS_TIME 1
  7082. _ACEOF
  7083. fi
  7084. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7085. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7086. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7087. echo $ECHO_N "(cached) $ECHO_C" >&6
  7088. else
  7089. cat >conftest.$ac_ext <<_ACEOF
  7090. /* confdefs.h. */
  7091. _ACEOF
  7092. cat confdefs.h >>conftest.$ac_ext
  7093. cat >>conftest.$ac_ext <<_ACEOF
  7094. /* end confdefs.h. */
  7095. #include <sys/types.h>
  7096. #include <$ac_cv_struct_tm>
  7097. int
  7098. main ()
  7099. {
  7100. static struct tm ac_aggr;
  7101. if (ac_aggr.tm_zone)
  7102. return 0;
  7103. ;
  7104. return 0;
  7105. }
  7106. _ACEOF
  7107. rm -f conftest.$ac_objext
  7108. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7109. (eval $ac_compile) 2>conftest.er1
  7110. ac_status=$?
  7111. grep -v '^ *+' conftest.er1 >conftest.err
  7112. rm -f conftest.er1
  7113. cat conftest.err >&5
  7114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7115. (exit $ac_status); } &&
  7116. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7118. (eval $ac_try) 2>&5
  7119. ac_status=$?
  7120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7121. (exit $ac_status); }; } &&
  7122. { ac_try='test -s conftest.$ac_objext'
  7123. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7124. (eval $ac_try) 2>&5
  7125. ac_status=$?
  7126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7127. (exit $ac_status); }; }; then
  7128. ac_cv_member_struct_tm_tm_zone=yes
  7129. else
  7130. echo "$as_me: failed program was:" >&5
  7131. sed 's/^/| /' conftest.$ac_ext >&5
  7132. cat >conftest.$ac_ext <<_ACEOF
  7133. /* confdefs.h. */
  7134. _ACEOF
  7135. cat confdefs.h >>conftest.$ac_ext
  7136. cat >>conftest.$ac_ext <<_ACEOF
  7137. /* end confdefs.h. */
  7138. #include <sys/types.h>
  7139. #include <$ac_cv_struct_tm>
  7140. int
  7141. main ()
  7142. {
  7143. static struct tm ac_aggr;
  7144. if (sizeof ac_aggr.tm_zone)
  7145. return 0;
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. rm -f conftest.$ac_objext
  7151. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7152. (eval $ac_compile) 2>conftest.er1
  7153. ac_status=$?
  7154. grep -v '^ *+' conftest.er1 >conftest.err
  7155. rm -f conftest.er1
  7156. cat conftest.err >&5
  7157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7158. (exit $ac_status); } &&
  7159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7161. (eval $ac_try) 2>&5
  7162. ac_status=$?
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); }; } &&
  7165. { ac_try='test -s conftest.$ac_objext'
  7166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7167. (eval $ac_try) 2>&5
  7168. ac_status=$?
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; }; then
  7171. ac_cv_member_struct_tm_tm_zone=yes
  7172. else
  7173. echo "$as_me: failed program was:" >&5
  7174. sed 's/^/| /' conftest.$ac_ext >&5
  7175. ac_cv_member_struct_tm_tm_zone=no
  7176. fi
  7177. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7178. fi
  7179. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7180. fi
  7181. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7182. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7183. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7184. cat >>confdefs.h <<_ACEOF
  7185. #define HAVE_STRUCT_TM_TM_ZONE 1
  7186. _ACEOF
  7187. fi
  7188. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7189. cat >>confdefs.h <<\_ACEOF
  7190. #define HAVE_TM_ZONE 1
  7191. _ACEOF
  7192. else
  7193. echo "$as_me:$LINENO: checking for tzname" >&5
  7194. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7195. if test "${ac_cv_var_tzname+set}" = set; then
  7196. echo $ECHO_N "(cached) $ECHO_C" >&6
  7197. else
  7198. cat >conftest.$ac_ext <<_ACEOF
  7199. /* confdefs.h. */
  7200. _ACEOF
  7201. cat confdefs.h >>conftest.$ac_ext
  7202. cat >>conftest.$ac_ext <<_ACEOF
  7203. /* end confdefs.h. */
  7204. #include <time.h>
  7205. #ifndef tzname /* For SGI. */
  7206. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7207. #endif
  7208. int
  7209. main ()
  7210. {
  7211. atoi(*tzname);
  7212. ;
  7213. return 0;
  7214. }
  7215. _ACEOF
  7216. rm -f conftest.$ac_objext conftest$ac_exeext
  7217. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7218. (eval $ac_link) 2>conftest.er1
  7219. ac_status=$?
  7220. grep -v '^ *+' conftest.er1 >conftest.err
  7221. rm -f conftest.er1
  7222. cat conftest.err >&5
  7223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7224. (exit $ac_status); } &&
  7225. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7227. (eval $ac_try) 2>&5
  7228. ac_status=$?
  7229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7230. (exit $ac_status); }; } &&
  7231. { ac_try='test -s conftest$ac_exeext'
  7232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7233. (eval $ac_try) 2>&5
  7234. ac_status=$?
  7235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7236. (exit $ac_status); }; }; then
  7237. ac_cv_var_tzname=yes
  7238. else
  7239. echo "$as_me: failed program was:" >&5
  7240. sed 's/^/| /' conftest.$ac_ext >&5
  7241. ac_cv_var_tzname=no
  7242. fi
  7243. rm -f conftest.err conftest.$ac_objext \
  7244. conftest$ac_exeext conftest.$ac_ext
  7245. fi
  7246. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7247. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7248. if test $ac_cv_var_tzname = yes; then
  7249. cat >>confdefs.h <<\_ACEOF
  7250. #define HAVE_TZNAME 1
  7251. _ACEOF
  7252. fi
  7253. fi
  7254. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7255. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7256. if test "${ac_cv_struct_tm+set}" = set; then
  7257. echo $ECHO_N "(cached) $ECHO_C" >&6
  7258. else
  7259. cat >conftest.$ac_ext <<_ACEOF
  7260. /* confdefs.h. */
  7261. _ACEOF
  7262. cat confdefs.h >>conftest.$ac_ext
  7263. cat >>conftest.$ac_ext <<_ACEOF
  7264. /* end confdefs.h. */
  7265. #include <sys/types.h>
  7266. #include <time.h>
  7267. int
  7268. main ()
  7269. {
  7270. struct tm *tp; tp->tm_sec;
  7271. ;
  7272. return 0;
  7273. }
  7274. _ACEOF
  7275. rm -f conftest.$ac_objext
  7276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7277. (eval $ac_compile) 2>conftest.er1
  7278. ac_status=$?
  7279. grep -v '^ *+' conftest.er1 >conftest.err
  7280. rm -f conftest.er1
  7281. cat conftest.err >&5
  7282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. (exit $ac_status); } &&
  7284. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7286. (eval $ac_try) 2>&5
  7287. ac_status=$?
  7288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7289. (exit $ac_status); }; } &&
  7290. { ac_try='test -s conftest.$ac_objext'
  7291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7292. (eval $ac_try) 2>&5
  7293. ac_status=$?
  7294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7295. (exit $ac_status); }; }; then
  7296. ac_cv_struct_tm=time.h
  7297. else
  7298. echo "$as_me: failed program was:" >&5
  7299. sed 's/^/| /' conftest.$ac_ext >&5
  7300. ac_cv_struct_tm=sys/time.h
  7301. fi
  7302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. fi
  7304. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7305. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7306. if test $ac_cv_struct_tm = sys/time.h; then
  7307. cat >>confdefs.h <<\_ACEOF
  7308. #define TM_IN_SYS_TIME 1
  7309. _ACEOF
  7310. fi
  7311. #checkpoint
  7312. cat >confcache <<\_ACEOF
  7313. # This file is a shell script that caches the results of configure
  7314. # tests run on this system so they can be shared between configure
  7315. # scripts and configure runs, see configure's option --config-cache.
  7316. # It is not useful on other systems. If it contains results you don't
  7317. # want to keep, you may remove or edit it.
  7318. #
  7319. # config.status only pays attention to the cache file if you give it
  7320. # the --recheck option to rerun configure.
  7321. #
  7322. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7323. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7324. # following values.
  7325. _ACEOF
  7326. # The following way of writing the cache mishandles newlines in values,
  7327. # but we know of no workaround that is simple, portable, and efficient.
  7328. # So, don't put newlines in cache variables' values.
  7329. # Ultrix sh set writes to stderr and can't be redirected directly,
  7330. # and sets the high bit in the cache file unless we assign to the vars.
  7331. {
  7332. (set) 2>&1 |
  7333. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7334. *ac_space=\ *)
  7335. # `set' does not quote correctly, so add quotes (double-quote
  7336. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7337. sed -n \
  7338. "s/'/'\\\\''/g;
  7339. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7340. ;;
  7341. *)
  7342. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7343. sed -n \
  7344. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7345. ;;
  7346. esac;
  7347. } |
  7348. sed '
  7349. t clear
  7350. : clear
  7351. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7352. t end
  7353. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7354. : end' >>confcache
  7355. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7356. if test -w $cache_file; then
  7357. test "x$cache_file" != "x/dev/null"
  7358. cat confcache >$cache_file
  7359. else
  7360. echo "not updating unwritable cache $cache_file"
  7361. fi
  7362. fi
  7363. rm -f confcache
  7364. # Check for IPv6 support
  7365. #EGG_IPV6_SUPPORTED
  7366. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7367. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7368. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7369. if test "${enable_ipv6+set}" = set; then
  7370. enableval="$enable_ipv6"
  7371. ac_cv_dipv6="yes"
  7372. echo "$as_me:$LINENO: result: yes" >&5
  7373. echo "${ECHO_T}yes" >&6
  7374. else
  7375. ac_cv_dipv6="no"
  7376. if test "$egg_cv_ipv6_supported" = "no"; then
  7377. ac_cv_dipv6="no"
  7378. fi
  7379. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7380. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7381. fi;
  7382. if test "$ac_cv_dipv6" = "no"; then
  7383. cat >>confdefs.h <<\_ACEOF
  7384. #define USE_IPV6 1
  7385. _ACEOF
  7386. fi
  7387. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7388. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7389. if test "${egg_cv_socklen_t+set}" = set; then
  7390. echo $ECHO_N "(cached) $ECHO_C" >&6
  7391. else
  7392. if test "$cross_compiling" = yes; then
  7393. egg_cv_socklen_t=no
  7394. else
  7395. cat >conftest.$ac_ext <<_ACEOF
  7396. /* confdefs.h. */
  7397. _ACEOF
  7398. cat confdefs.h >>conftest.$ac_ext
  7399. cat >>conftest.$ac_ext <<_ACEOF
  7400. /* end confdefs.h. */
  7401. #include <unistd.h>
  7402. #include <sys/types.h>
  7403. #include <sys/socket.h>
  7404. #include <netinet/in.h>
  7405. #include <arpa/inet.h>
  7406. int main()
  7407. {
  7408. socklen_t test = sizeof(int);
  7409. return 0;
  7410. }
  7411. _ACEOF
  7412. rm -f conftest$ac_exeext
  7413. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7414. (eval $ac_link) 2>&5
  7415. ac_status=$?
  7416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7417. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7419. (eval $ac_try) 2>&5
  7420. ac_status=$?
  7421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7422. (exit $ac_status); }; }; then
  7423. egg_cv_socklen_t=yes
  7424. else
  7425. echo "$as_me: program exited with status $ac_status" >&5
  7426. echo "$as_me: failed program was:" >&5
  7427. sed 's/^/| /' conftest.$ac_ext >&5
  7428. ( exit $ac_status )
  7429. egg_cv_socklen_t=no
  7430. fi
  7431. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7432. fi
  7433. fi
  7434. if test "$egg_cv_socklen_t" = "yes"; then
  7435. cat >>confdefs.h <<\_ACEOF
  7436. #define HAVE_SOCKLEN_T 1
  7437. _ACEOF
  7438. echo "$as_me:$LINENO: result: yes" >&5
  7439. echo "${ECHO_T}yes" >&6
  7440. else
  7441. echo "$as_me:$LINENO: result: no" >&5
  7442. echo "${ECHO_T}no" >&6
  7443. fi
  7444. # Checks for library functions
  7445. #checkpoint
  7446. cat >confcache <<\_ACEOF
  7447. # This file is a shell script that caches the results of configure
  7448. # tests run on this system so they can be shared between configure
  7449. # scripts and configure runs, see configure's option --config-cache.
  7450. # It is not useful on other systems. If it contains results you don't
  7451. # want to keep, you may remove or edit it.
  7452. #
  7453. # config.status only pays attention to the cache file if you give it
  7454. # the --recheck option to rerun configure.
  7455. #
  7456. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7457. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7458. # following values.
  7459. _ACEOF
  7460. # The following way of writing the cache mishandles newlines in values,
  7461. # but we know of no workaround that is simple, portable, and efficient.
  7462. # So, don't put newlines in cache variables' values.
  7463. # Ultrix sh set writes to stderr and can't be redirected directly,
  7464. # and sets the high bit in the cache file unless we assign to the vars.
  7465. {
  7466. (set) 2>&1 |
  7467. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7468. *ac_space=\ *)
  7469. # `set' does not quote correctly, so add quotes (double-quote
  7470. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7471. sed -n \
  7472. "s/'/'\\\\''/g;
  7473. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7474. ;;
  7475. *)
  7476. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7477. sed -n \
  7478. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7479. ;;
  7480. esac;
  7481. } |
  7482. sed '
  7483. t clear
  7484. : clear
  7485. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7486. t end
  7487. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7488. : end' >>confcache
  7489. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7490. if test -w $cache_file; then
  7491. test "x$cache_file" != "x/dev/null"
  7492. cat confcache >$cache_file
  7493. else
  7494. echo "not updating unwritable cache $cache_file"
  7495. fi
  7496. fi
  7497. rm -f confcache
  7498. # Checks for library functions.
  7499. for ac_header in unistd.h vfork.h
  7500. do
  7501. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7502. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7503. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7504. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7505. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7506. echo $ECHO_N "(cached) $ECHO_C" >&6
  7507. fi
  7508. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7509. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7510. else
  7511. # Is the header compilable?
  7512. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7513. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7514. cat >conftest.$ac_ext <<_ACEOF
  7515. /* confdefs.h. */
  7516. _ACEOF
  7517. cat confdefs.h >>conftest.$ac_ext
  7518. cat >>conftest.$ac_ext <<_ACEOF
  7519. /* end confdefs.h. */
  7520. $ac_includes_default
  7521. #include <$ac_header>
  7522. _ACEOF
  7523. rm -f conftest.$ac_objext
  7524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7525. (eval $ac_compile) 2>conftest.er1
  7526. ac_status=$?
  7527. grep -v '^ *+' conftest.er1 >conftest.err
  7528. rm -f conftest.er1
  7529. cat conftest.err >&5
  7530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } &&
  7532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7534. (eval $ac_try) 2>&5
  7535. ac_status=$?
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. (exit $ac_status); }; } &&
  7538. { ac_try='test -s conftest.$ac_objext'
  7539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7540. (eval $ac_try) 2>&5
  7541. ac_status=$?
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); }; }; then
  7544. ac_header_compiler=yes
  7545. else
  7546. echo "$as_me: failed program was:" >&5
  7547. sed 's/^/| /' conftest.$ac_ext >&5
  7548. ac_header_compiler=no
  7549. fi
  7550. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7551. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7552. echo "${ECHO_T}$ac_header_compiler" >&6
  7553. # Is the header present?
  7554. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7555. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7556. cat >conftest.$ac_ext <<_ACEOF
  7557. /* confdefs.h. */
  7558. _ACEOF
  7559. cat confdefs.h >>conftest.$ac_ext
  7560. cat >>conftest.$ac_ext <<_ACEOF
  7561. /* end confdefs.h. */
  7562. #include <$ac_header>
  7563. _ACEOF
  7564. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7565. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7566. ac_status=$?
  7567. grep -v '^ *+' conftest.er1 >conftest.err
  7568. rm -f conftest.er1
  7569. cat conftest.err >&5
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. (exit $ac_status); } >/dev/null; then
  7572. if test -s conftest.err; then
  7573. ac_cpp_err=$ac_c_preproc_warn_flag
  7574. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7575. else
  7576. ac_cpp_err=
  7577. fi
  7578. else
  7579. ac_cpp_err=yes
  7580. fi
  7581. if test -z "$ac_cpp_err"; then
  7582. ac_header_preproc=yes
  7583. else
  7584. echo "$as_me: failed program was:" >&5
  7585. sed 's/^/| /' conftest.$ac_ext >&5
  7586. ac_header_preproc=no
  7587. fi
  7588. rm -f conftest.err conftest.$ac_ext
  7589. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7590. echo "${ECHO_T}$ac_header_preproc" >&6
  7591. # So? What about this header?
  7592. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7593. yes:no: )
  7594. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7595. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7596. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7597. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7598. ac_header_preproc=yes
  7599. ;;
  7600. no:yes:* )
  7601. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7602. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7603. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7604. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7605. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7606. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7607. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7608. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7609. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7610. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7611. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7612. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7613. (
  7614. cat <<\_ASBOX
  7615. ## ------------------------------------------ ##
  7616. ## Report this to the AC_PACKAGE_NAME lists. ##
  7617. ## ------------------------------------------ ##
  7618. _ASBOX
  7619. ) |
  7620. sed "s/^/$as_me: WARNING: /" >&2
  7621. ;;
  7622. esac
  7623. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7624. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7625. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7626. echo $ECHO_N "(cached) $ECHO_C" >&6
  7627. else
  7628. eval "$as_ac_Header=\$ac_header_preproc"
  7629. fi
  7630. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7631. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7632. fi
  7633. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7634. cat >>confdefs.h <<_ACEOF
  7635. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7636. _ACEOF
  7637. fi
  7638. done
  7639. for ac_func in fork vfork
  7640. do
  7641. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7642. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7643. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7644. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7645. echo $ECHO_N "(cached) $ECHO_C" >&6
  7646. else
  7647. cat >conftest.$ac_ext <<_ACEOF
  7648. /* confdefs.h. */
  7649. _ACEOF
  7650. cat confdefs.h >>conftest.$ac_ext
  7651. cat >>conftest.$ac_ext <<_ACEOF
  7652. /* end confdefs.h. */
  7653. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7654. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7655. #define $ac_func innocuous_$ac_func
  7656. /* System header to define __stub macros and hopefully few prototypes,
  7657. which can conflict with char $ac_func (); below.
  7658. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7659. <limits.h> exists even on freestanding compilers. */
  7660. #ifdef __STDC__
  7661. # include <limits.h>
  7662. #else
  7663. # include <assert.h>
  7664. #endif
  7665. #undef $ac_func
  7666. /* Override any gcc2 internal prototype to avoid an error. */
  7667. #ifdef __cplusplus
  7668. extern "C"
  7669. {
  7670. #endif
  7671. /* We use char because int might match the return type of a gcc2
  7672. builtin and then its argument prototype would still apply. */
  7673. char $ac_func ();
  7674. /* The GNU C library defines this for functions which it implements
  7675. to always fail with ENOSYS. Some functions are actually named
  7676. something starting with __ and the normal name is an alias. */
  7677. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7678. choke me
  7679. #else
  7680. char (*f) () = $ac_func;
  7681. #endif
  7682. #ifdef __cplusplus
  7683. }
  7684. #endif
  7685. int
  7686. main ()
  7687. {
  7688. return f != $ac_func;
  7689. ;
  7690. return 0;
  7691. }
  7692. _ACEOF
  7693. rm -f conftest.$ac_objext conftest$ac_exeext
  7694. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7695. (eval $ac_link) 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } &&
  7702. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7704. (eval $ac_try) 2>&5
  7705. ac_status=$?
  7706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7707. (exit $ac_status); }; } &&
  7708. { ac_try='test -s conftest$ac_exeext'
  7709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7710. (eval $ac_try) 2>&5
  7711. ac_status=$?
  7712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7713. (exit $ac_status); }; }; then
  7714. eval "$as_ac_var=yes"
  7715. else
  7716. echo "$as_me: failed program was:" >&5
  7717. sed 's/^/| /' conftest.$ac_ext >&5
  7718. eval "$as_ac_var=no"
  7719. fi
  7720. rm -f conftest.err conftest.$ac_objext \
  7721. conftest$ac_exeext conftest.$ac_ext
  7722. fi
  7723. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7724. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7725. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7726. cat >>confdefs.h <<_ACEOF
  7727. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7728. _ACEOF
  7729. fi
  7730. done
  7731. if test "x$ac_cv_func_fork" = xyes; then
  7732. echo "$as_me:$LINENO: checking for working fork" >&5
  7733. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7734. if test "${ac_cv_func_fork_works+set}" = set; then
  7735. echo $ECHO_N "(cached) $ECHO_C" >&6
  7736. else
  7737. if test "$cross_compiling" = yes; then
  7738. ac_cv_func_fork_works=cross
  7739. else
  7740. cat >conftest.$ac_ext <<_ACEOF
  7741. /* By Ruediger Kuhlmann. */
  7742. #include <sys/types.h>
  7743. #if HAVE_UNISTD_H
  7744. # include <unistd.h>
  7745. #endif
  7746. /* Some systems only have a dummy stub for fork() */
  7747. int main ()
  7748. {
  7749. if (fork() < 0)
  7750. exit (1);
  7751. exit (0);
  7752. }
  7753. _ACEOF
  7754. rm -f conftest$ac_exeext
  7755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7756. (eval $ac_link) 2>&5
  7757. ac_status=$?
  7758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7759. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7761. (eval $ac_try) 2>&5
  7762. ac_status=$?
  7763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. (exit $ac_status); }; }; then
  7765. ac_cv_func_fork_works=yes
  7766. else
  7767. echo "$as_me: program exited with status $ac_status" >&5
  7768. echo "$as_me: failed program was:" >&5
  7769. sed 's/^/| /' conftest.$ac_ext >&5
  7770. ( exit $ac_status )
  7771. ac_cv_func_fork_works=no
  7772. fi
  7773. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7774. fi
  7775. fi
  7776. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7777. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7778. else
  7779. ac_cv_func_fork_works=$ac_cv_func_fork
  7780. fi
  7781. if test "x$ac_cv_func_fork_works" = xcross; then
  7782. case $host in
  7783. *-*-amigaos* | *-*-msdosdjgpp*)
  7784. # Override, as these systems have only a dummy fork() stub
  7785. ac_cv_func_fork_works=no
  7786. ;;
  7787. *)
  7788. ac_cv_func_fork_works=yes
  7789. ;;
  7790. esac
  7791. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7792. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7793. fi
  7794. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7795. if test "x$ac_cv_func_vfork" = xyes; then
  7796. echo "$as_me:$LINENO: checking for working vfork" >&5
  7797. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7798. if test "${ac_cv_func_vfork_works+set}" = set; then
  7799. echo $ECHO_N "(cached) $ECHO_C" >&6
  7800. else
  7801. if test "$cross_compiling" = yes; then
  7802. ac_cv_func_vfork_works=cross
  7803. else
  7804. cat >conftest.$ac_ext <<_ACEOF
  7805. /* confdefs.h. */
  7806. _ACEOF
  7807. cat confdefs.h >>conftest.$ac_ext
  7808. cat >>conftest.$ac_ext <<_ACEOF
  7809. /* end confdefs.h. */
  7810. /* Thanks to Paul Eggert for this test. */
  7811. #include <stdio.h>
  7812. #include <stdlib.h>
  7813. #include <sys/types.h>
  7814. #include <sys/stat.h>
  7815. #include <sys/wait.h>
  7816. #if HAVE_UNISTD_H
  7817. # include <unistd.h>
  7818. #endif
  7819. #if HAVE_VFORK_H
  7820. # include <vfork.h>
  7821. #endif
  7822. /* On some sparc systems, changes by the child to local and incoming
  7823. argument registers are propagated back to the parent. The compiler
  7824. is told about this with #include <vfork.h>, but some compilers
  7825. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7826. static variable whose address is put into a register that is
  7827. clobbered by the vfork. */
  7828. static void
  7829. #ifdef __cplusplus
  7830. sparc_address_test (int arg)
  7831. # else
  7832. sparc_address_test (arg) int arg;
  7833. #endif
  7834. {
  7835. static pid_t child;
  7836. if (!child) {
  7837. child = vfork ();
  7838. if (child < 0) {
  7839. perror ("vfork");
  7840. _exit(2);
  7841. }
  7842. if (!child) {
  7843. arg = getpid();
  7844. write(-1, "", 0);
  7845. _exit (arg);
  7846. }
  7847. }
  7848. }
  7849. int
  7850. main ()
  7851. {
  7852. pid_t parent = getpid ();
  7853. pid_t child;
  7854. sparc_address_test (0);
  7855. child = vfork ();
  7856. if (child == 0) {
  7857. /* Here is another test for sparc vfork register problems. This
  7858. test uses lots of local variables, at least as many local
  7859. variables as main has allocated so far including compiler
  7860. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7861. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7862. reuse the register of parent for one of the local variables,
  7863. since it will think that parent can't possibly be used any more
  7864. in this routine. Assigning to the local variable will thus
  7865. munge parent in the parent process. */
  7866. pid_t
  7867. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7868. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7869. /* Convince the compiler that p..p7 are live; otherwise, it might
  7870. use the same hardware register for all 8 local variables. */
  7871. if (p != p1 || p != p2 || p != p3 || p != p4
  7872. || p != p5 || p != p6 || p != p7)
  7873. _exit(1);
  7874. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7875. from child file descriptors. If the child closes a descriptor
  7876. before it execs or exits, this munges the parent's descriptor
  7877. as well. Test for this by closing stdout in the child. */
  7878. _exit(close(fileno(stdout)) != 0);
  7879. } else {
  7880. int status;
  7881. struct stat st;
  7882. while (wait(&status) != child)
  7883. ;
  7884. exit(
  7885. /* Was there some problem with vforking? */
  7886. child < 0
  7887. /* Did the child fail? (This shouldn't happen.) */
  7888. || status
  7889. /* Did the vfork/compiler bug occur? */
  7890. || parent != getpid()
  7891. /* Did the file descriptor bug occur? */
  7892. || fstat(fileno(stdout), &st) != 0
  7893. );
  7894. }
  7895. }
  7896. _ACEOF
  7897. rm -f conftest$ac_exeext
  7898. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7899. (eval $ac_link) 2>&5
  7900. ac_status=$?
  7901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7902. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7904. (eval $ac_try) 2>&5
  7905. ac_status=$?
  7906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7907. (exit $ac_status); }; }; then
  7908. ac_cv_func_vfork_works=yes
  7909. else
  7910. echo "$as_me: program exited with status $ac_status" >&5
  7911. echo "$as_me: failed program was:" >&5
  7912. sed 's/^/| /' conftest.$ac_ext >&5
  7913. ( exit $ac_status )
  7914. ac_cv_func_vfork_works=no
  7915. fi
  7916. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7917. fi
  7918. fi
  7919. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7920. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7921. fi;
  7922. if test "x$ac_cv_func_fork_works" = xcross; then
  7923. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7924. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7925. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7926. fi
  7927. if test "x$ac_cv_func_vfork_works" = xyes; then
  7928. cat >>confdefs.h <<\_ACEOF
  7929. #define HAVE_WORKING_VFORK 1
  7930. _ACEOF
  7931. else
  7932. cat >>confdefs.h <<\_ACEOF
  7933. #define vfork fork
  7934. _ACEOF
  7935. fi
  7936. if test "x$ac_cv_func_fork_works" = xyes; then
  7937. cat >>confdefs.h <<\_ACEOF
  7938. #define HAVE_WORKING_FORK 1
  7939. _ACEOF
  7940. fi
  7941. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7942. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7943. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7944. echo $ECHO_N "(cached) $ECHO_C" >&6
  7945. else
  7946. rm -f conftest.sym conftest.file
  7947. echo >conftest.file
  7948. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7949. if test "$cross_compiling" = yes; then
  7950. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7951. else
  7952. cat >conftest.$ac_ext <<_ACEOF
  7953. /* confdefs.h. */
  7954. _ACEOF
  7955. cat confdefs.h >>conftest.$ac_ext
  7956. cat >>conftest.$ac_ext <<_ACEOF
  7957. /* end confdefs.h. */
  7958. $ac_includes_default
  7959. int
  7960. main ()
  7961. {
  7962. struct stat sbuf;
  7963. /* Linux will dereference the symlink and fail.
  7964. That is better in the sense that it means we will not
  7965. have to compile and use the lstat wrapper. */
  7966. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7967. ;
  7968. return 0;
  7969. }
  7970. _ACEOF
  7971. rm -f conftest$ac_exeext
  7972. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7973. (eval $ac_link) 2>&5
  7974. ac_status=$?
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7978. (eval $ac_try) 2>&5
  7979. ac_status=$?
  7980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7981. (exit $ac_status); }; }; then
  7982. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7983. else
  7984. echo "$as_me: program exited with status $ac_status" >&5
  7985. echo "$as_me: failed program was:" >&5
  7986. sed 's/^/| /' conftest.$ac_ext >&5
  7987. ( exit $ac_status )
  7988. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7989. fi
  7990. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7991. fi
  7992. else
  7993. # If the `ln -s' command failed, then we probably don't even
  7994. # have an lstat function.
  7995. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7996. fi
  7997. rm -f conftest.sym conftest.file
  7998. fi
  7999. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8000. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8001. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8002. cat >>confdefs.h <<_ACEOF
  8003. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8004. _ACEOF
  8005. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8006. case $LIBOBJS in
  8007. "lstat.$ac_objext" | \
  8008. *" lstat.$ac_objext" | \
  8009. "lstat.$ac_objext "* | \
  8010. *" lstat.$ac_objext "* ) ;;
  8011. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8012. esac
  8013. fi
  8014. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8015. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8016. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8017. echo $ECHO_N "(cached) $ECHO_C" >&6
  8018. else
  8019. if test "$cross_compiling" = yes; then
  8020. ac_cv_func_lstat_empty_string_bug=yes
  8021. else
  8022. cat >conftest.$ac_ext <<_ACEOF
  8023. /* confdefs.h. */
  8024. _ACEOF
  8025. cat confdefs.h >>conftest.$ac_ext
  8026. cat >>conftest.$ac_ext <<_ACEOF
  8027. /* end confdefs.h. */
  8028. $ac_includes_default
  8029. int
  8030. main ()
  8031. {
  8032. struct stat sbuf;
  8033. exit (lstat ("", &sbuf) ? 1 : 0);
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. rm -f conftest$ac_exeext
  8039. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8040. (eval $ac_link) 2>&5
  8041. ac_status=$?
  8042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8043. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8044. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8045. (eval $ac_try) 2>&5
  8046. ac_status=$?
  8047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8048. (exit $ac_status); }; }; then
  8049. ac_cv_func_lstat_empty_string_bug=yes
  8050. else
  8051. echo "$as_me: program exited with status $ac_status" >&5
  8052. echo "$as_me: failed program was:" >&5
  8053. sed 's/^/| /' conftest.$ac_ext >&5
  8054. ( exit $ac_status )
  8055. ac_cv_func_lstat_empty_string_bug=no
  8056. fi
  8057. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8058. fi
  8059. fi
  8060. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8061. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8062. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8063. case $LIBOBJS in
  8064. "lstat.$ac_objext" | \
  8065. *" lstat.$ac_objext" | \
  8066. "lstat.$ac_objext "* | \
  8067. *" lstat.$ac_objext "* ) ;;
  8068. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8069. esac
  8070. cat >>confdefs.h <<_ACEOF
  8071. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8072. _ACEOF
  8073. fi
  8074. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8075. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8076. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8077. echo $ECHO_N "(cached) $ECHO_C" >&6
  8078. else
  8079. rm -f conftest.sym conftest.file
  8080. echo >conftest.file
  8081. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8082. if test "$cross_compiling" = yes; then
  8083. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8084. else
  8085. cat >conftest.$ac_ext <<_ACEOF
  8086. /* confdefs.h. */
  8087. _ACEOF
  8088. cat confdefs.h >>conftest.$ac_ext
  8089. cat >>conftest.$ac_ext <<_ACEOF
  8090. /* end confdefs.h. */
  8091. $ac_includes_default
  8092. int
  8093. main ()
  8094. {
  8095. struct stat sbuf;
  8096. /* Linux will dereference the symlink and fail.
  8097. That is better in the sense that it means we will not
  8098. have to compile and use the lstat wrapper. */
  8099. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8100. ;
  8101. return 0;
  8102. }
  8103. _ACEOF
  8104. rm -f conftest$ac_exeext
  8105. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8106. (eval $ac_link) 2>&5
  8107. ac_status=$?
  8108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8109. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8111. (eval $ac_try) 2>&5
  8112. ac_status=$?
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); }; }; then
  8115. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8116. else
  8117. echo "$as_me: program exited with status $ac_status" >&5
  8118. echo "$as_me: failed program was:" >&5
  8119. sed 's/^/| /' conftest.$ac_ext >&5
  8120. ( exit $ac_status )
  8121. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8122. fi
  8123. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8124. fi
  8125. else
  8126. # If the `ln -s' command failed, then we probably don't even
  8127. # have an lstat function.
  8128. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8129. fi
  8130. rm -f conftest.sym conftest.file
  8131. fi
  8132. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8133. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8134. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8135. cat >>confdefs.h <<_ACEOF
  8136. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8137. _ACEOF
  8138. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8139. case $LIBOBJS in
  8140. "lstat.$ac_objext" | \
  8141. *" lstat.$ac_objext" | \
  8142. "lstat.$ac_objext "* | \
  8143. *" lstat.$ac_objext "* ) ;;
  8144. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8145. esac
  8146. fi
  8147. for ac_header in stdlib.h
  8148. do
  8149. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8150. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8151. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8152. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8153. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8154. echo $ECHO_N "(cached) $ECHO_C" >&6
  8155. fi
  8156. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8157. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8158. else
  8159. # Is the header compilable?
  8160. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8161. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  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. $ac_includes_default
  8169. #include <$ac_header>
  8170. _ACEOF
  8171. rm -f conftest.$ac_objext
  8172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8173. (eval $ac_compile) 2>conftest.er1
  8174. ac_status=$?
  8175. grep -v '^ *+' conftest.er1 >conftest.err
  8176. rm -f conftest.er1
  8177. cat conftest.err >&5
  8178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8179. (exit $ac_status); } &&
  8180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8182. (eval $ac_try) 2>&5
  8183. ac_status=$?
  8184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8185. (exit $ac_status); }; } &&
  8186. { ac_try='test -s conftest.$ac_objext'
  8187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8188. (eval $ac_try) 2>&5
  8189. ac_status=$?
  8190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8191. (exit $ac_status); }; }; then
  8192. ac_header_compiler=yes
  8193. else
  8194. echo "$as_me: failed program was:" >&5
  8195. sed 's/^/| /' conftest.$ac_ext >&5
  8196. ac_header_compiler=no
  8197. fi
  8198. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8199. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8200. echo "${ECHO_T}$ac_header_compiler" >&6
  8201. # Is the header present?
  8202. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8203. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8204. cat >conftest.$ac_ext <<_ACEOF
  8205. /* confdefs.h. */
  8206. _ACEOF
  8207. cat confdefs.h >>conftest.$ac_ext
  8208. cat >>conftest.$ac_ext <<_ACEOF
  8209. /* end confdefs.h. */
  8210. #include <$ac_header>
  8211. _ACEOF
  8212. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8213. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8214. ac_status=$?
  8215. grep -v '^ *+' conftest.er1 >conftest.err
  8216. rm -f conftest.er1
  8217. cat conftest.err >&5
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. (exit $ac_status); } >/dev/null; then
  8220. if test -s conftest.err; then
  8221. ac_cpp_err=$ac_c_preproc_warn_flag
  8222. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8223. else
  8224. ac_cpp_err=
  8225. fi
  8226. else
  8227. ac_cpp_err=yes
  8228. fi
  8229. if test -z "$ac_cpp_err"; then
  8230. ac_header_preproc=yes
  8231. else
  8232. echo "$as_me: failed program was:" >&5
  8233. sed 's/^/| /' conftest.$ac_ext >&5
  8234. ac_header_preproc=no
  8235. fi
  8236. rm -f conftest.err conftest.$ac_ext
  8237. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8238. echo "${ECHO_T}$ac_header_preproc" >&6
  8239. # So? What about this header?
  8240. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8241. yes:no: )
  8242. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8243. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8244. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8245. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8246. ac_header_preproc=yes
  8247. ;;
  8248. no:yes:* )
  8249. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8250. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8251. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8252. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8253. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8254. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8255. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8256. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8257. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8258. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8259. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8260. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8261. (
  8262. cat <<\_ASBOX
  8263. ## ------------------------------------------ ##
  8264. ## Report this to the AC_PACKAGE_NAME lists. ##
  8265. ## ------------------------------------------ ##
  8266. _ASBOX
  8267. ) |
  8268. sed "s/^/$as_me: WARNING: /" >&2
  8269. ;;
  8270. esac
  8271. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8272. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8273. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8274. echo $ECHO_N "(cached) $ECHO_C" >&6
  8275. else
  8276. eval "$as_ac_Header=\$ac_header_preproc"
  8277. fi
  8278. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8279. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8280. fi
  8281. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8282. cat >>confdefs.h <<_ACEOF
  8283. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8284. _ACEOF
  8285. fi
  8286. done
  8287. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8288. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8289. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8290. echo $ECHO_N "(cached) $ECHO_C" >&6
  8291. else
  8292. if test "$cross_compiling" = yes; then
  8293. ac_cv_func_malloc_0_nonnull=no
  8294. else
  8295. cat >conftest.$ac_ext <<_ACEOF
  8296. /* confdefs.h. */
  8297. _ACEOF
  8298. cat confdefs.h >>conftest.$ac_ext
  8299. cat >>conftest.$ac_ext <<_ACEOF
  8300. /* end confdefs.h. */
  8301. #if STDC_HEADERS || HAVE_STDLIB_H
  8302. # include <stdlib.h>
  8303. #else
  8304. char *malloc ();
  8305. #endif
  8306. int
  8307. main ()
  8308. {
  8309. exit (malloc (0) ? 0 : 1);
  8310. ;
  8311. return 0;
  8312. }
  8313. _ACEOF
  8314. rm -f conftest$ac_exeext
  8315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8316. (eval $ac_link) 2>&5
  8317. ac_status=$?
  8318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8319. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8321. (eval $ac_try) 2>&5
  8322. ac_status=$?
  8323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8324. (exit $ac_status); }; }; then
  8325. ac_cv_func_malloc_0_nonnull=yes
  8326. else
  8327. echo "$as_me: program exited with status $ac_status" >&5
  8328. echo "$as_me: failed program was:" >&5
  8329. sed 's/^/| /' conftest.$ac_ext >&5
  8330. ( exit $ac_status )
  8331. ac_cv_func_malloc_0_nonnull=no
  8332. fi
  8333. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8334. fi
  8335. fi
  8336. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8337. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8338. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8339. cat >>confdefs.h <<\_ACEOF
  8340. #define HAVE_MALLOC 1
  8341. _ACEOF
  8342. else
  8343. cat >>confdefs.h <<\_ACEOF
  8344. #define HAVE_MALLOC 0
  8345. _ACEOF
  8346. case $LIBOBJS in
  8347. "malloc.$ac_objext" | \
  8348. *" malloc.$ac_objext" | \
  8349. "malloc.$ac_objext "* | \
  8350. *" malloc.$ac_objext "* ) ;;
  8351. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8352. esac
  8353. cat >>confdefs.h <<\_ACEOF
  8354. #define malloc rpl_malloc
  8355. _ACEOF
  8356. fi
  8357. for ac_header in stdlib.h sys/time.h unistd.h
  8358. do
  8359. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8360. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8361. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8362. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8363. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8364. echo $ECHO_N "(cached) $ECHO_C" >&6
  8365. fi
  8366. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8367. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8368. else
  8369. # Is the header compilable?
  8370. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8371. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8372. cat >conftest.$ac_ext <<_ACEOF
  8373. /* confdefs.h. */
  8374. _ACEOF
  8375. cat confdefs.h >>conftest.$ac_ext
  8376. cat >>conftest.$ac_ext <<_ACEOF
  8377. /* end confdefs.h. */
  8378. $ac_includes_default
  8379. #include <$ac_header>
  8380. _ACEOF
  8381. rm -f conftest.$ac_objext
  8382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8383. (eval $ac_compile) 2>conftest.er1
  8384. ac_status=$?
  8385. grep -v '^ *+' conftest.er1 >conftest.err
  8386. rm -f conftest.er1
  8387. cat conftest.err >&5
  8388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8389. (exit $ac_status); } &&
  8390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8392. (eval $ac_try) 2>&5
  8393. ac_status=$?
  8394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8395. (exit $ac_status); }; } &&
  8396. { ac_try='test -s conftest.$ac_objext'
  8397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8398. (eval $ac_try) 2>&5
  8399. ac_status=$?
  8400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8401. (exit $ac_status); }; }; then
  8402. ac_header_compiler=yes
  8403. else
  8404. echo "$as_me: failed program was:" >&5
  8405. sed 's/^/| /' conftest.$ac_ext >&5
  8406. ac_header_compiler=no
  8407. fi
  8408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8409. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8410. echo "${ECHO_T}$ac_header_compiler" >&6
  8411. # Is the header present?
  8412. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8413. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8414. cat >conftest.$ac_ext <<_ACEOF
  8415. /* confdefs.h. */
  8416. _ACEOF
  8417. cat confdefs.h >>conftest.$ac_ext
  8418. cat >>conftest.$ac_ext <<_ACEOF
  8419. /* end confdefs.h. */
  8420. #include <$ac_header>
  8421. _ACEOF
  8422. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8423. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8424. ac_status=$?
  8425. grep -v '^ *+' conftest.er1 >conftest.err
  8426. rm -f conftest.er1
  8427. cat conftest.err >&5
  8428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8429. (exit $ac_status); } >/dev/null; then
  8430. if test -s conftest.err; then
  8431. ac_cpp_err=$ac_c_preproc_warn_flag
  8432. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8433. else
  8434. ac_cpp_err=
  8435. fi
  8436. else
  8437. ac_cpp_err=yes
  8438. fi
  8439. if test -z "$ac_cpp_err"; then
  8440. ac_header_preproc=yes
  8441. else
  8442. echo "$as_me: failed program was:" >&5
  8443. sed 's/^/| /' conftest.$ac_ext >&5
  8444. ac_header_preproc=no
  8445. fi
  8446. rm -f conftest.err conftest.$ac_ext
  8447. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8448. echo "${ECHO_T}$ac_header_preproc" >&6
  8449. # So? What about this header?
  8450. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8451. yes:no: )
  8452. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8453. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8455. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8456. ac_header_preproc=yes
  8457. ;;
  8458. no:yes:* )
  8459. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8460. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8461. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8462. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8463. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8464. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8465. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8466. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8468. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8469. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8470. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8471. (
  8472. cat <<\_ASBOX
  8473. ## ------------------------------------------ ##
  8474. ## Report this to the AC_PACKAGE_NAME lists. ##
  8475. ## ------------------------------------------ ##
  8476. _ASBOX
  8477. ) |
  8478. sed "s/^/$as_me: WARNING: /" >&2
  8479. ;;
  8480. esac
  8481. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8482. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8483. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8484. echo $ECHO_N "(cached) $ECHO_C" >&6
  8485. else
  8486. eval "$as_ac_Header=\$ac_header_preproc"
  8487. fi
  8488. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8489. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8490. fi
  8491. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8492. cat >>confdefs.h <<_ACEOF
  8493. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8494. _ACEOF
  8495. fi
  8496. done
  8497. for ac_func in alarm
  8498. do
  8499. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8500. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8501. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8502. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8503. echo $ECHO_N "(cached) $ECHO_C" >&6
  8504. else
  8505. cat >conftest.$ac_ext <<_ACEOF
  8506. /* confdefs.h. */
  8507. _ACEOF
  8508. cat confdefs.h >>conftest.$ac_ext
  8509. cat >>conftest.$ac_ext <<_ACEOF
  8510. /* end confdefs.h. */
  8511. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8512. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8513. #define $ac_func innocuous_$ac_func
  8514. /* System header to define __stub macros and hopefully few prototypes,
  8515. which can conflict with char $ac_func (); below.
  8516. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8517. <limits.h> exists even on freestanding compilers. */
  8518. #ifdef __STDC__
  8519. # include <limits.h>
  8520. #else
  8521. # include <assert.h>
  8522. #endif
  8523. #undef $ac_func
  8524. /* Override any gcc2 internal prototype to avoid an error. */
  8525. #ifdef __cplusplus
  8526. extern "C"
  8527. {
  8528. #endif
  8529. /* We use char because int might match the return type of a gcc2
  8530. builtin and then its argument prototype would still apply. */
  8531. char $ac_func ();
  8532. /* The GNU C library defines this for functions which it implements
  8533. to always fail with ENOSYS. Some functions are actually named
  8534. something starting with __ and the normal name is an alias. */
  8535. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8536. choke me
  8537. #else
  8538. char (*f) () = $ac_func;
  8539. #endif
  8540. #ifdef __cplusplus
  8541. }
  8542. #endif
  8543. int
  8544. main ()
  8545. {
  8546. return f != $ac_func;
  8547. ;
  8548. return 0;
  8549. }
  8550. _ACEOF
  8551. rm -f conftest.$ac_objext conftest$ac_exeext
  8552. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8553. (eval $ac_link) 2>conftest.er1
  8554. ac_status=$?
  8555. grep -v '^ *+' conftest.er1 >conftest.err
  8556. rm -f conftest.er1
  8557. cat conftest.err >&5
  8558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8559. (exit $ac_status); } &&
  8560. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8562. (eval $ac_try) 2>&5
  8563. ac_status=$?
  8564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8565. (exit $ac_status); }; } &&
  8566. { ac_try='test -s conftest$ac_exeext'
  8567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8568. (eval $ac_try) 2>&5
  8569. ac_status=$?
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); }; }; then
  8572. eval "$as_ac_var=yes"
  8573. else
  8574. echo "$as_me: failed program was:" >&5
  8575. sed 's/^/| /' conftest.$ac_ext >&5
  8576. eval "$as_ac_var=no"
  8577. fi
  8578. rm -f conftest.err conftest.$ac_objext \
  8579. conftest$ac_exeext conftest.$ac_ext
  8580. fi
  8581. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8582. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8583. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8584. cat >>confdefs.h <<_ACEOF
  8585. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8586. _ACEOF
  8587. fi
  8588. done
  8589. echo "$as_me:$LINENO: checking for working mktime" >&5
  8590. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8591. if test "${ac_cv_func_working_mktime+set}" = set; then
  8592. echo $ECHO_N "(cached) $ECHO_C" >&6
  8593. else
  8594. if test "$cross_compiling" = yes; then
  8595. ac_cv_func_working_mktime=no
  8596. else
  8597. cat >conftest.$ac_ext <<_ACEOF
  8598. /* confdefs.h. */
  8599. _ACEOF
  8600. cat confdefs.h >>conftest.$ac_ext
  8601. cat >>conftest.$ac_ext <<_ACEOF
  8602. /* end confdefs.h. */
  8603. /* Test program from Paul Eggert and Tony Leneis. */
  8604. #if TIME_WITH_SYS_TIME
  8605. # include <sys/time.h>
  8606. # include <time.h>
  8607. #else
  8608. # if HAVE_SYS_TIME_H
  8609. # include <sys/time.h>
  8610. # else
  8611. # include <time.h>
  8612. # endif
  8613. #endif
  8614. #if HAVE_STDLIB_H
  8615. # include <stdlib.h>
  8616. #endif
  8617. #if HAVE_UNISTD_H
  8618. # include <unistd.h>
  8619. #endif
  8620. #if !HAVE_ALARM
  8621. # define alarm(X) /* empty */
  8622. #endif
  8623. /* Work around redefinition to rpl_putenv by other config tests. */
  8624. #undef putenv
  8625. static time_t time_t_max;
  8626. static time_t time_t_min;
  8627. /* Values we'll use to set the TZ environment variable. */
  8628. static char *tz_strings[] = {
  8629. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8630. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8631. };
  8632. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8633. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8634. Based on a problem report from Andreas Jaeger. */
  8635. static void
  8636. spring_forward_gap ()
  8637. {
  8638. /* glibc (up to about 1998-10-07) failed this test. */
  8639. struct tm tm;
  8640. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8641. instead of "TZ=America/Vancouver" in order to detect the bug even
  8642. on systems that don't support the Olson extension, or don't have the
  8643. full zoneinfo tables installed. */
  8644. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8645. tm.tm_year = 98;
  8646. tm.tm_mon = 3;
  8647. tm.tm_mday = 5;
  8648. tm.tm_hour = 2;
  8649. tm.tm_min = 0;
  8650. tm.tm_sec = 0;
  8651. tm.tm_isdst = -1;
  8652. if (mktime (&tm) == (time_t)-1)
  8653. exit (1);
  8654. }
  8655. static void
  8656. mktime_test1 (now)
  8657. time_t now;
  8658. {
  8659. struct tm *lt;
  8660. if ((lt = localtime (&now)) && mktime (lt) != now)
  8661. exit (1);
  8662. }
  8663. static void
  8664. mktime_test (now)
  8665. time_t now;
  8666. {
  8667. mktime_test1 (now);
  8668. mktime_test1 ((time_t) (time_t_max - now));
  8669. mktime_test1 ((time_t) (time_t_min + now));
  8670. }
  8671. static void
  8672. irix_6_4_bug ()
  8673. {
  8674. /* Based on code from Ariel Faigon. */
  8675. struct tm tm;
  8676. tm.tm_year = 96;
  8677. tm.tm_mon = 3;
  8678. tm.tm_mday = 0;
  8679. tm.tm_hour = 0;
  8680. tm.tm_min = 0;
  8681. tm.tm_sec = 0;
  8682. tm.tm_isdst = -1;
  8683. mktime (&tm);
  8684. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8685. exit (1);
  8686. }
  8687. static void
  8688. bigtime_test (j)
  8689. int j;
  8690. {
  8691. struct tm tm;
  8692. time_t now;
  8693. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8694. now = mktime (&tm);
  8695. if (now != (time_t) -1)
  8696. {
  8697. struct tm *lt = localtime (&now);
  8698. if (! (lt
  8699. && lt->tm_year == tm.tm_year
  8700. && lt->tm_mon == tm.tm_mon
  8701. && lt->tm_mday == tm.tm_mday
  8702. && lt->tm_hour == tm.tm_hour
  8703. && lt->tm_min == tm.tm_min
  8704. && lt->tm_sec == tm.tm_sec
  8705. && lt->tm_yday == tm.tm_yday
  8706. && lt->tm_wday == tm.tm_wday
  8707. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8708. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8709. exit (1);
  8710. }
  8711. }
  8712. int
  8713. main ()
  8714. {
  8715. time_t t, delta;
  8716. int i, j;
  8717. /* This test makes some buggy mktime implementations loop.
  8718. Give up after 60 seconds; a mktime slower than that
  8719. isn't worth using anyway. */
  8720. alarm (60);
  8721. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8722. continue;
  8723. time_t_max--;
  8724. if ((time_t) -1 < 0)
  8725. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8726. continue;
  8727. delta = time_t_max / 997; /* a suitable prime number */
  8728. for (i = 0; i < N_STRINGS; i++)
  8729. {
  8730. if (tz_strings[i])
  8731. putenv (tz_strings[i]);
  8732. for (t = 0; t <= time_t_max - delta; t += delta)
  8733. mktime_test (t);
  8734. mktime_test ((time_t) 1);
  8735. mktime_test ((time_t) (60 * 60));
  8736. mktime_test ((time_t) (60 * 60 * 24));
  8737. for (j = 1; 0 < j; j *= 2)
  8738. bigtime_test (j);
  8739. bigtime_test (j - 1);
  8740. }
  8741. irix_6_4_bug ();
  8742. spring_forward_gap ();
  8743. exit (0);
  8744. }
  8745. _ACEOF
  8746. rm -f conftest$ac_exeext
  8747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8748. (eval $ac_link) 2>&5
  8749. ac_status=$?
  8750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8751. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8753. (eval $ac_try) 2>&5
  8754. ac_status=$?
  8755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8756. (exit $ac_status); }; }; then
  8757. ac_cv_func_working_mktime=yes
  8758. else
  8759. echo "$as_me: program exited with status $ac_status" >&5
  8760. echo "$as_me: failed program was:" >&5
  8761. sed 's/^/| /' conftest.$ac_ext >&5
  8762. ( exit $ac_status )
  8763. ac_cv_func_working_mktime=no
  8764. fi
  8765. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8766. fi
  8767. fi
  8768. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8769. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8770. if test $ac_cv_func_working_mktime = no; then
  8771. case $LIBOBJS in
  8772. "mktime.$ac_objext" | \
  8773. *" mktime.$ac_objext" | \
  8774. "mktime.$ac_objext "* | \
  8775. *" mktime.$ac_objext "* ) ;;
  8776. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8777. esac
  8778. fi
  8779. for ac_header in stdlib.h unistd.h
  8780. do
  8781. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8782. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8783. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8784. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8785. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8786. echo $ECHO_N "(cached) $ECHO_C" >&6
  8787. fi
  8788. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8789. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8790. else
  8791. # Is the header compilable?
  8792. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8793. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8794. cat >conftest.$ac_ext <<_ACEOF
  8795. /* confdefs.h. */
  8796. _ACEOF
  8797. cat confdefs.h >>conftest.$ac_ext
  8798. cat >>conftest.$ac_ext <<_ACEOF
  8799. /* end confdefs.h. */
  8800. $ac_includes_default
  8801. #include <$ac_header>
  8802. _ACEOF
  8803. rm -f conftest.$ac_objext
  8804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8805. (eval $ac_compile) 2>conftest.er1
  8806. ac_status=$?
  8807. grep -v '^ *+' conftest.er1 >conftest.err
  8808. rm -f conftest.er1
  8809. cat conftest.err >&5
  8810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8811. (exit $ac_status); } &&
  8812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8814. (eval $ac_try) 2>&5
  8815. ac_status=$?
  8816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8817. (exit $ac_status); }; } &&
  8818. { ac_try='test -s conftest.$ac_objext'
  8819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8820. (eval $ac_try) 2>&5
  8821. ac_status=$?
  8822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8823. (exit $ac_status); }; }; then
  8824. ac_header_compiler=yes
  8825. else
  8826. echo "$as_me: failed program was:" >&5
  8827. sed 's/^/| /' conftest.$ac_ext >&5
  8828. ac_header_compiler=no
  8829. fi
  8830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8831. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8832. echo "${ECHO_T}$ac_header_compiler" >&6
  8833. # Is the header present?
  8834. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8835. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8836. cat >conftest.$ac_ext <<_ACEOF
  8837. /* confdefs.h. */
  8838. _ACEOF
  8839. cat confdefs.h >>conftest.$ac_ext
  8840. cat >>conftest.$ac_ext <<_ACEOF
  8841. /* end confdefs.h. */
  8842. #include <$ac_header>
  8843. _ACEOF
  8844. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8845. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8846. ac_status=$?
  8847. grep -v '^ *+' conftest.er1 >conftest.err
  8848. rm -f conftest.er1
  8849. cat conftest.err >&5
  8850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8851. (exit $ac_status); } >/dev/null; then
  8852. if test -s conftest.err; then
  8853. ac_cpp_err=$ac_c_preproc_warn_flag
  8854. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8855. else
  8856. ac_cpp_err=
  8857. fi
  8858. else
  8859. ac_cpp_err=yes
  8860. fi
  8861. if test -z "$ac_cpp_err"; then
  8862. ac_header_preproc=yes
  8863. else
  8864. echo "$as_me: failed program was:" >&5
  8865. sed 's/^/| /' conftest.$ac_ext >&5
  8866. ac_header_preproc=no
  8867. fi
  8868. rm -f conftest.err conftest.$ac_ext
  8869. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8870. echo "${ECHO_T}$ac_header_preproc" >&6
  8871. # So? What about this header?
  8872. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8873. yes:no: )
  8874. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8875. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8876. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8877. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8878. ac_header_preproc=yes
  8879. ;;
  8880. no:yes:* )
  8881. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8882. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8883. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8884. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8885. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8886. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8887. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8888. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8889. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8890. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8891. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8892. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8893. (
  8894. cat <<\_ASBOX
  8895. ## ------------------------------------------ ##
  8896. ## Report this to the AC_PACKAGE_NAME lists. ##
  8897. ## ------------------------------------------ ##
  8898. _ASBOX
  8899. ) |
  8900. sed "s/^/$as_me: WARNING: /" >&2
  8901. ;;
  8902. esac
  8903. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8904. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8905. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8906. echo $ECHO_N "(cached) $ECHO_C" >&6
  8907. else
  8908. eval "$as_ac_Header=\$ac_header_preproc"
  8909. fi
  8910. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8911. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8912. fi
  8913. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8914. cat >>confdefs.h <<_ACEOF
  8915. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8916. _ACEOF
  8917. fi
  8918. done
  8919. for ac_func in getpagesize
  8920. do
  8921. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8922. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8923. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8924. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8925. echo $ECHO_N "(cached) $ECHO_C" >&6
  8926. else
  8927. cat >conftest.$ac_ext <<_ACEOF
  8928. /* confdefs.h. */
  8929. _ACEOF
  8930. cat confdefs.h >>conftest.$ac_ext
  8931. cat >>conftest.$ac_ext <<_ACEOF
  8932. /* end confdefs.h. */
  8933. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8934. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8935. #define $ac_func innocuous_$ac_func
  8936. /* System header to define __stub macros and hopefully few prototypes,
  8937. which can conflict with char $ac_func (); below.
  8938. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8939. <limits.h> exists even on freestanding compilers. */
  8940. #ifdef __STDC__
  8941. # include <limits.h>
  8942. #else
  8943. # include <assert.h>
  8944. #endif
  8945. #undef $ac_func
  8946. /* Override any gcc2 internal prototype to avoid an error. */
  8947. #ifdef __cplusplus
  8948. extern "C"
  8949. {
  8950. #endif
  8951. /* We use char because int might match the return type of a gcc2
  8952. builtin and then its argument prototype would still apply. */
  8953. char $ac_func ();
  8954. /* The GNU C library defines this for functions which it implements
  8955. to always fail with ENOSYS. Some functions are actually named
  8956. something starting with __ and the normal name is an alias. */
  8957. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8958. choke me
  8959. #else
  8960. char (*f) () = $ac_func;
  8961. #endif
  8962. #ifdef __cplusplus
  8963. }
  8964. #endif
  8965. int
  8966. main ()
  8967. {
  8968. return f != $ac_func;
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. rm -f conftest.$ac_objext conftest$ac_exeext
  8974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8975. (eval $ac_link) 2>conftest.er1
  8976. ac_status=$?
  8977. grep -v '^ *+' conftest.er1 >conftest.err
  8978. rm -f conftest.er1
  8979. cat conftest.err >&5
  8980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8981. (exit $ac_status); } &&
  8982. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8984. (eval $ac_try) 2>&5
  8985. ac_status=$?
  8986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8987. (exit $ac_status); }; } &&
  8988. { ac_try='test -s conftest$ac_exeext'
  8989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8990. (eval $ac_try) 2>&5
  8991. ac_status=$?
  8992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8993. (exit $ac_status); }; }; then
  8994. eval "$as_ac_var=yes"
  8995. else
  8996. echo "$as_me: failed program was:" >&5
  8997. sed 's/^/| /' conftest.$ac_ext >&5
  8998. eval "$as_ac_var=no"
  8999. fi
  9000. rm -f conftest.err conftest.$ac_objext \
  9001. conftest$ac_exeext conftest.$ac_ext
  9002. fi
  9003. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9004. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9005. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9006. cat >>confdefs.h <<_ACEOF
  9007. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9008. _ACEOF
  9009. fi
  9010. done
  9011. echo "$as_me:$LINENO: checking for working mmap" >&5
  9012. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9013. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9014. echo $ECHO_N "(cached) $ECHO_C" >&6
  9015. else
  9016. if test "$cross_compiling" = yes; then
  9017. ac_cv_func_mmap_fixed_mapped=no
  9018. else
  9019. cat >conftest.$ac_ext <<_ACEOF
  9020. /* confdefs.h. */
  9021. _ACEOF
  9022. cat confdefs.h >>conftest.$ac_ext
  9023. cat >>conftest.$ac_ext <<_ACEOF
  9024. /* end confdefs.h. */
  9025. $ac_includes_default
  9026. /* malloc might have been renamed as rpl_malloc. */
  9027. #undef malloc
  9028. /* Thanks to Mike Haertel and Jim Avera for this test.
  9029. Here is a matrix of mmap possibilities:
  9030. mmap private not fixed
  9031. mmap private fixed at somewhere currently unmapped
  9032. mmap private fixed at somewhere already mapped
  9033. mmap shared not fixed
  9034. mmap shared fixed at somewhere currently unmapped
  9035. mmap shared fixed at somewhere already mapped
  9036. For private mappings, we should verify that changes cannot be read()
  9037. back from the file, nor mmap's back from the file at a different
  9038. address. (There have been systems where private was not correctly
  9039. implemented like the infamous i386 svr4.0, and systems where the
  9040. VM page cache was not coherent with the file system buffer cache
  9041. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9042. For shared mappings, we should conversely verify that changes get
  9043. propagated back to all the places they're supposed to be.
  9044. Grep wants private fixed already mapped.
  9045. The main things grep needs to know about mmap are:
  9046. * does it exist and is it safe to write into the mmap'd area
  9047. * how to use it (BSD variants) */
  9048. #include <fcntl.h>
  9049. #include <sys/mman.h>
  9050. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9051. char *malloc ();
  9052. #endif
  9053. /* This mess was copied from the GNU getpagesize.h. */
  9054. #if !HAVE_GETPAGESIZE
  9055. /* Assume that all systems that can run configure have sys/param.h. */
  9056. # if !HAVE_SYS_PARAM_H
  9057. # define HAVE_SYS_PARAM_H 1
  9058. # endif
  9059. # ifdef _SC_PAGESIZE
  9060. # define getpagesize() sysconf(_SC_PAGESIZE)
  9061. # else /* no _SC_PAGESIZE */
  9062. # if HAVE_SYS_PARAM_H
  9063. # include <sys/param.h>
  9064. # ifdef EXEC_PAGESIZE
  9065. # define getpagesize() EXEC_PAGESIZE
  9066. # else /* no EXEC_PAGESIZE */
  9067. # ifdef NBPG
  9068. # define getpagesize() NBPG * CLSIZE
  9069. # ifndef CLSIZE
  9070. # define CLSIZE 1
  9071. # endif /* no CLSIZE */
  9072. # else /* no NBPG */
  9073. # ifdef NBPC
  9074. # define getpagesize() NBPC
  9075. # else /* no NBPC */
  9076. # ifdef PAGESIZE
  9077. # define getpagesize() PAGESIZE
  9078. # endif /* PAGESIZE */
  9079. # endif /* no NBPC */
  9080. # endif /* no NBPG */
  9081. # endif /* no EXEC_PAGESIZE */
  9082. # else /* no HAVE_SYS_PARAM_H */
  9083. # define getpagesize() 8192 /* punt totally */
  9084. # endif /* no HAVE_SYS_PARAM_H */
  9085. # endif /* no _SC_PAGESIZE */
  9086. #endif /* no HAVE_GETPAGESIZE */
  9087. int
  9088. main ()
  9089. {
  9090. char *data, *data2, *data3;
  9091. int i, pagesize;
  9092. int fd;
  9093. pagesize = getpagesize ();
  9094. /* First, make a file with some known garbage in it. */
  9095. data = (char *) malloc (pagesize);
  9096. if (!data)
  9097. exit (1);
  9098. for (i = 0; i < pagesize; ++i)
  9099. *(data + i) = rand ();
  9100. umask (0);
  9101. fd = creat ("conftest.mmap", 0600);
  9102. if (fd < 0)
  9103. exit (1);
  9104. if (write (fd, data, pagesize) != pagesize)
  9105. exit (1);
  9106. close (fd);
  9107. /* Next, try to mmap the file at a fixed address which already has
  9108. something else allocated at it. If we can, also make sure that
  9109. we see the same garbage. */
  9110. fd = open ("conftest.mmap", O_RDWR);
  9111. if (fd < 0)
  9112. exit (1);
  9113. data2 = (char *) malloc (2 * pagesize);
  9114. if (!data2)
  9115. exit (1);
  9116. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9117. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9118. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9119. exit (1);
  9120. for (i = 0; i < pagesize; ++i)
  9121. if (*(data + i) != *(data2 + i))
  9122. exit (1);
  9123. /* Finally, make sure that changes to the mapped area do not
  9124. percolate back to the file as seen by read(). (This is a bug on
  9125. some variants of i386 svr4.0.) */
  9126. for (i = 0; i < pagesize; ++i)
  9127. *(data2 + i) = *(data2 + i) + 1;
  9128. data3 = (char *) malloc (pagesize);
  9129. if (!data3)
  9130. exit (1);
  9131. if (read (fd, data3, pagesize) != pagesize)
  9132. exit (1);
  9133. for (i = 0; i < pagesize; ++i)
  9134. if (*(data + i) != *(data3 + i))
  9135. exit (1);
  9136. close (fd);
  9137. exit (0);
  9138. }
  9139. _ACEOF
  9140. rm -f conftest$ac_exeext
  9141. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9142. (eval $ac_link) 2>&5
  9143. ac_status=$?
  9144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9146. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9147. (eval $ac_try) 2>&5
  9148. ac_status=$?
  9149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9150. (exit $ac_status); }; }; then
  9151. ac_cv_func_mmap_fixed_mapped=yes
  9152. else
  9153. echo "$as_me: program exited with status $ac_status" >&5
  9154. echo "$as_me: failed program was:" >&5
  9155. sed 's/^/| /' conftest.$ac_ext >&5
  9156. ( exit $ac_status )
  9157. ac_cv_func_mmap_fixed_mapped=no
  9158. fi
  9159. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9160. fi
  9161. fi
  9162. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9163. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9164. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9165. cat >>confdefs.h <<\_ACEOF
  9166. #define HAVE_MMAP 1
  9167. _ACEOF
  9168. fi
  9169. rm -f conftest.mmap
  9170. for ac_header in stdlib.h
  9171. do
  9172. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9173. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9174. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9175. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9176. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9177. echo $ECHO_N "(cached) $ECHO_C" >&6
  9178. fi
  9179. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9180. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9181. else
  9182. # Is the header compilable?
  9183. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9184. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9185. cat >conftest.$ac_ext <<_ACEOF
  9186. /* confdefs.h. */
  9187. _ACEOF
  9188. cat confdefs.h >>conftest.$ac_ext
  9189. cat >>conftest.$ac_ext <<_ACEOF
  9190. /* end confdefs.h. */
  9191. $ac_includes_default
  9192. #include <$ac_header>
  9193. _ACEOF
  9194. rm -f conftest.$ac_objext
  9195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9196. (eval $ac_compile) 2>conftest.er1
  9197. ac_status=$?
  9198. grep -v '^ *+' conftest.er1 >conftest.err
  9199. rm -f conftest.er1
  9200. cat conftest.err >&5
  9201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9202. (exit $ac_status); } &&
  9203. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9205. (eval $ac_try) 2>&5
  9206. ac_status=$?
  9207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9208. (exit $ac_status); }; } &&
  9209. { ac_try='test -s conftest.$ac_objext'
  9210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9211. (eval $ac_try) 2>&5
  9212. ac_status=$?
  9213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9214. (exit $ac_status); }; }; then
  9215. ac_header_compiler=yes
  9216. else
  9217. echo "$as_me: failed program was:" >&5
  9218. sed 's/^/| /' conftest.$ac_ext >&5
  9219. ac_header_compiler=no
  9220. fi
  9221. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9222. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9223. echo "${ECHO_T}$ac_header_compiler" >&6
  9224. # Is the header present?
  9225. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9226. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9227. cat >conftest.$ac_ext <<_ACEOF
  9228. /* confdefs.h. */
  9229. _ACEOF
  9230. cat confdefs.h >>conftest.$ac_ext
  9231. cat >>conftest.$ac_ext <<_ACEOF
  9232. /* end confdefs.h. */
  9233. #include <$ac_header>
  9234. _ACEOF
  9235. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9236. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9237. ac_status=$?
  9238. grep -v '^ *+' conftest.er1 >conftest.err
  9239. rm -f conftest.er1
  9240. cat conftest.err >&5
  9241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9242. (exit $ac_status); } >/dev/null; then
  9243. if test -s conftest.err; then
  9244. ac_cpp_err=$ac_c_preproc_warn_flag
  9245. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9246. else
  9247. ac_cpp_err=
  9248. fi
  9249. else
  9250. ac_cpp_err=yes
  9251. fi
  9252. if test -z "$ac_cpp_err"; then
  9253. ac_header_preproc=yes
  9254. else
  9255. echo "$as_me: failed program was:" >&5
  9256. sed 's/^/| /' conftest.$ac_ext >&5
  9257. ac_header_preproc=no
  9258. fi
  9259. rm -f conftest.err conftest.$ac_ext
  9260. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9261. echo "${ECHO_T}$ac_header_preproc" >&6
  9262. # So? What about this header?
  9263. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9264. yes:no: )
  9265. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9266. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9267. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9268. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9269. ac_header_preproc=yes
  9270. ;;
  9271. no:yes:* )
  9272. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9273. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9274. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9275. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9276. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9277. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9278. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9279. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9280. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9281. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9282. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9283. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9284. (
  9285. cat <<\_ASBOX
  9286. ## ------------------------------------------ ##
  9287. ## Report this to the AC_PACKAGE_NAME lists. ##
  9288. ## ------------------------------------------ ##
  9289. _ASBOX
  9290. ) |
  9291. sed "s/^/$as_me: WARNING: /" >&2
  9292. ;;
  9293. esac
  9294. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9295. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9296. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9297. echo $ECHO_N "(cached) $ECHO_C" >&6
  9298. else
  9299. eval "$as_ac_Header=\$ac_header_preproc"
  9300. fi
  9301. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9302. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9303. fi
  9304. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9305. cat >>confdefs.h <<_ACEOF
  9306. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9307. _ACEOF
  9308. fi
  9309. done
  9310. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9311. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9312. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9313. echo $ECHO_N "(cached) $ECHO_C" >&6
  9314. else
  9315. if test "$cross_compiling" = yes; then
  9316. ac_cv_func_realloc_0_nonnull=no
  9317. else
  9318. cat >conftest.$ac_ext <<_ACEOF
  9319. /* confdefs.h. */
  9320. _ACEOF
  9321. cat confdefs.h >>conftest.$ac_ext
  9322. cat >>conftest.$ac_ext <<_ACEOF
  9323. /* end confdefs.h. */
  9324. #if STDC_HEADERS || HAVE_STDLIB_H
  9325. # include <stdlib.h>
  9326. #else
  9327. char *realloc ();
  9328. #endif
  9329. int
  9330. main ()
  9331. {
  9332. exit (realloc (0, 0) ? 0 : 1);
  9333. ;
  9334. return 0;
  9335. }
  9336. _ACEOF
  9337. rm -f conftest$ac_exeext
  9338. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9339. (eval $ac_link) 2>&5
  9340. ac_status=$?
  9341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9342. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9344. (eval $ac_try) 2>&5
  9345. ac_status=$?
  9346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347. (exit $ac_status); }; }; then
  9348. ac_cv_func_realloc_0_nonnull=yes
  9349. else
  9350. echo "$as_me: program exited with status $ac_status" >&5
  9351. echo "$as_me: failed program was:" >&5
  9352. sed 's/^/| /' conftest.$ac_ext >&5
  9353. ( exit $ac_status )
  9354. ac_cv_func_realloc_0_nonnull=no
  9355. fi
  9356. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9357. fi
  9358. fi
  9359. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9360. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9361. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9362. cat >>confdefs.h <<\_ACEOF
  9363. #define HAVE_REALLOC 1
  9364. _ACEOF
  9365. else
  9366. cat >>confdefs.h <<\_ACEOF
  9367. #define HAVE_REALLOC 0
  9368. _ACEOF
  9369. case $LIBOBJS in
  9370. "realloc.$ac_objext" | \
  9371. *" realloc.$ac_objext" | \
  9372. "realloc.$ac_objext "* | \
  9373. *" realloc.$ac_objext "* ) ;;
  9374. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9375. esac
  9376. cat >>confdefs.h <<\_ACEOF
  9377. #define realloc rpl_realloc
  9378. _ACEOF
  9379. fi
  9380. for ac_header in sys/select.h sys/socket.h
  9381. do
  9382. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9383. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9384. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9385. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9386. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9387. echo $ECHO_N "(cached) $ECHO_C" >&6
  9388. fi
  9389. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9390. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9391. else
  9392. # Is the header compilable?
  9393. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9394. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9395. cat >conftest.$ac_ext <<_ACEOF
  9396. /* confdefs.h. */
  9397. _ACEOF
  9398. cat confdefs.h >>conftest.$ac_ext
  9399. cat >>conftest.$ac_ext <<_ACEOF
  9400. /* end confdefs.h. */
  9401. $ac_includes_default
  9402. #include <$ac_header>
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext
  9405. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9406. (eval $ac_compile) 2>conftest.er1
  9407. ac_status=$?
  9408. grep -v '^ *+' conftest.er1 >conftest.err
  9409. rm -f conftest.er1
  9410. cat conftest.err >&5
  9411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9412. (exit $ac_status); } &&
  9413. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9415. (eval $ac_try) 2>&5
  9416. ac_status=$?
  9417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9418. (exit $ac_status); }; } &&
  9419. { ac_try='test -s conftest.$ac_objext'
  9420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9421. (eval $ac_try) 2>&5
  9422. ac_status=$?
  9423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9424. (exit $ac_status); }; }; then
  9425. ac_header_compiler=yes
  9426. else
  9427. echo "$as_me: failed program was:" >&5
  9428. sed 's/^/| /' conftest.$ac_ext >&5
  9429. ac_header_compiler=no
  9430. fi
  9431. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9432. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9433. echo "${ECHO_T}$ac_header_compiler" >&6
  9434. # Is the header present?
  9435. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9436. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9437. cat >conftest.$ac_ext <<_ACEOF
  9438. /* confdefs.h. */
  9439. _ACEOF
  9440. cat confdefs.h >>conftest.$ac_ext
  9441. cat >>conftest.$ac_ext <<_ACEOF
  9442. /* end confdefs.h. */
  9443. #include <$ac_header>
  9444. _ACEOF
  9445. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9446. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9447. ac_status=$?
  9448. grep -v '^ *+' conftest.er1 >conftest.err
  9449. rm -f conftest.er1
  9450. cat conftest.err >&5
  9451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9452. (exit $ac_status); } >/dev/null; then
  9453. if test -s conftest.err; then
  9454. ac_cpp_err=$ac_c_preproc_warn_flag
  9455. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9456. else
  9457. ac_cpp_err=
  9458. fi
  9459. else
  9460. ac_cpp_err=yes
  9461. fi
  9462. if test -z "$ac_cpp_err"; then
  9463. ac_header_preproc=yes
  9464. else
  9465. echo "$as_me: failed program was:" >&5
  9466. sed 's/^/| /' conftest.$ac_ext >&5
  9467. ac_header_preproc=no
  9468. fi
  9469. rm -f conftest.err conftest.$ac_ext
  9470. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9471. echo "${ECHO_T}$ac_header_preproc" >&6
  9472. # So? What about this header?
  9473. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9474. yes:no: )
  9475. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9476. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9477. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9478. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9479. ac_header_preproc=yes
  9480. ;;
  9481. no:yes:* )
  9482. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9483. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9484. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9485. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9486. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9487. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9488. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9489. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9490. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9491. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9492. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9493. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9494. (
  9495. cat <<\_ASBOX
  9496. ## ------------------------------------------ ##
  9497. ## Report this to the AC_PACKAGE_NAME lists. ##
  9498. ## ------------------------------------------ ##
  9499. _ASBOX
  9500. ) |
  9501. sed "s/^/$as_me: WARNING: /" >&2
  9502. ;;
  9503. esac
  9504. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9505. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9506. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9507. echo $ECHO_N "(cached) $ECHO_C" >&6
  9508. else
  9509. eval "$as_ac_Header=\$ac_header_preproc"
  9510. fi
  9511. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9512. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9513. fi
  9514. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9515. cat >>confdefs.h <<_ACEOF
  9516. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9517. _ACEOF
  9518. fi
  9519. done
  9520. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9521. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9522. if test "${ac_cv_func_select_args+set}" = set; then
  9523. echo $ECHO_N "(cached) $ECHO_C" >&6
  9524. else
  9525. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9526. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9527. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9528. cat >conftest.$ac_ext <<_ACEOF
  9529. /* confdefs.h. */
  9530. _ACEOF
  9531. cat confdefs.h >>conftest.$ac_ext
  9532. cat >>conftest.$ac_ext <<_ACEOF
  9533. /* end confdefs.h. */
  9534. $ac_includes_default
  9535. #if HAVE_SYS_SELECT_H
  9536. # include <sys/select.h>
  9537. #endif
  9538. #if HAVE_SYS_SOCKET_H
  9539. # include <sys/socket.h>
  9540. #endif
  9541. int
  9542. main ()
  9543. {
  9544. extern int select ($ac_arg1,
  9545. $ac_arg234, $ac_arg234, $ac_arg234,
  9546. $ac_arg5);
  9547. ;
  9548. return 0;
  9549. }
  9550. _ACEOF
  9551. rm -f conftest.$ac_objext
  9552. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9553. (eval $ac_compile) 2>conftest.er1
  9554. ac_status=$?
  9555. grep -v '^ *+' conftest.er1 >conftest.err
  9556. rm -f conftest.er1
  9557. cat conftest.err >&5
  9558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9559. (exit $ac_status); } &&
  9560. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9562. (eval $ac_try) 2>&5
  9563. ac_status=$?
  9564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9565. (exit $ac_status); }; } &&
  9566. { ac_try='test -s conftest.$ac_objext'
  9567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9568. (eval $ac_try) 2>&5
  9569. ac_status=$?
  9570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. (exit $ac_status); }; }; then
  9572. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9573. else
  9574. echo "$as_me: failed program was:" >&5
  9575. sed 's/^/| /' conftest.$ac_ext >&5
  9576. fi
  9577. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9578. done
  9579. done
  9580. done
  9581. # Provide a safe default value.
  9582. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9583. fi
  9584. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9585. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9586. ac_save_IFS=$IFS; IFS=','
  9587. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9588. IFS=$ac_save_IFS
  9589. shift
  9590. cat >>confdefs.h <<_ACEOF
  9591. #define SELECT_TYPE_ARG1 $1
  9592. _ACEOF
  9593. cat >>confdefs.h <<_ACEOF
  9594. #define SELECT_TYPE_ARG234 ($2)
  9595. _ACEOF
  9596. cat >>confdefs.h <<_ACEOF
  9597. #define SELECT_TYPE_ARG5 ($3)
  9598. _ACEOF
  9599. rm -f conftest*
  9600. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9601. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9602. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9603. echo $ECHO_N "(cached) $ECHO_C" >&6
  9604. else
  9605. if test "$cross_compiling" = yes; then
  9606. ac_cv_func_stat_empty_string_bug=yes
  9607. else
  9608. cat >conftest.$ac_ext <<_ACEOF
  9609. /* confdefs.h. */
  9610. _ACEOF
  9611. cat confdefs.h >>conftest.$ac_ext
  9612. cat >>conftest.$ac_ext <<_ACEOF
  9613. /* end confdefs.h. */
  9614. $ac_includes_default
  9615. int
  9616. main ()
  9617. {
  9618. struct stat sbuf;
  9619. exit (stat ("", &sbuf) ? 1 : 0);
  9620. ;
  9621. return 0;
  9622. }
  9623. _ACEOF
  9624. rm -f conftest$ac_exeext
  9625. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9626. (eval $ac_link) 2>&5
  9627. ac_status=$?
  9628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9629. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9631. (eval $ac_try) 2>&5
  9632. ac_status=$?
  9633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9634. (exit $ac_status); }; }; then
  9635. ac_cv_func_stat_empty_string_bug=yes
  9636. else
  9637. echo "$as_me: program exited with status $ac_status" >&5
  9638. echo "$as_me: failed program was:" >&5
  9639. sed 's/^/| /' conftest.$ac_ext >&5
  9640. ( exit $ac_status )
  9641. ac_cv_func_stat_empty_string_bug=no
  9642. fi
  9643. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9644. fi
  9645. fi
  9646. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9647. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9648. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9649. case $LIBOBJS in
  9650. "stat.$ac_objext" | \
  9651. *" stat.$ac_objext" | \
  9652. "stat.$ac_objext "* | \
  9653. *" stat.$ac_objext "* ) ;;
  9654. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9655. esac
  9656. cat >>confdefs.h <<_ACEOF
  9657. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9658. _ACEOF
  9659. fi
  9660. for ac_func in strftime
  9661. do
  9662. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9663. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9664. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9665. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9666. echo $ECHO_N "(cached) $ECHO_C" >&6
  9667. else
  9668. cat >conftest.$ac_ext <<_ACEOF
  9669. /* confdefs.h. */
  9670. _ACEOF
  9671. cat confdefs.h >>conftest.$ac_ext
  9672. cat >>conftest.$ac_ext <<_ACEOF
  9673. /* end confdefs.h. */
  9674. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9675. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9676. #define $ac_func innocuous_$ac_func
  9677. /* System header to define __stub macros and hopefully few prototypes,
  9678. which can conflict with char $ac_func (); below.
  9679. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9680. <limits.h> exists even on freestanding compilers. */
  9681. #ifdef __STDC__
  9682. # include <limits.h>
  9683. #else
  9684. # include <assert.h>
  9685. #endif
  9686. #undef $ac_func
  9687. /* Override any gcc2 internal prototype to avoid an error. */
  9688. #ifdef __cplusplus
  9689. extern "C"
  9690. {
  9691. #endif
  9692. /* We use char because int might match the return type of a gcc2
  9693. builtin and then its argument prototype would still apply. */
  9694. char $ac_func ();
  9695. /* The GNU C library defines this for functions which it implements
  9696. to always fail with ENOSYS. Some functions are actually named
  9697. something starting with __ and the normal name is an alias. */
  9698. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9699. choke me
  9700. #else
  9701. char (*f) () = $ac_func;
  9702. #endif
  9703. #ifdef __cplusplus
  9704. }
  9705. #endif
  9706. int
  9707. main ()
  9708. {
  9709. return f != $ac_func;
  9710. ;
  9711. return 0;
  9712. }
  9713. _ACEOF
  9714. rm -f conftest.$ac_objext conftest$ac_exeext
  9715. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9716. (eval $ac_link) 2>conftest.er1
  9717. ac_status=$?
  9718. grep -v '^ *+' conftest.er1 >conftest.err
  9719. rm -f conftest.er1
  9720. cat conftest.err >&5
  9721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9722. (exit $ac_status); } &&
  9723. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9725. (eval $ac_try) 2>&5
  9726. ac_status=$?
  9727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9728. (exit $ac_status); }; } &&
  9729. { ac_try='test -s conftest$ac_exeext'
  9730. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9731. (eval $ac_try) 2>&5
  9732. ac_status=$?
  9733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); }; }; then
  9735. eval "$as_ac_var=yes"
  9736. else
  9737. echo "$as_me: failed program was:" >&5
  9738. sed 's/^/| /' conftest.$ac_ext >&5
  9739. eval "$as_ac_var=no"
  9740. fi
  9741. rm -f conftest.err conftest.$ac_objext \
  9742. conftest$ac_exeext conftest.$ac_ext
  9743. fi
  9744. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9745. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9746. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9747. cat >>confdefs.h <<_ACEOF
  9748. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9749. _ACEOF
  9750. else
  9751. # strftime is in -lintl on SCO UNIX.
  9752. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9753. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9754. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9755. echo $ECHO_N "(cached) $ECHO_C" >&6
  9756. else
  9757. ac_check_lib_save_LIBS=$LIBS
  9758. LIBS="-lintl $LIBS"
  9759. cat >conftest.$ac_ext <<_ACEOF
  9760. /* confdefs.h. */
  9761. _ACEOF
  9762. cat confdefs.h >>conftest.$ac_ext
  9763. cat >>conftest.$ac_ext <<_ACEOF
  9764. /* end confdefs.h. */
  9765. /* Override any gcc2 internal prototype to avoid an error. */
  9766. #ifdef __cplusplus
  9767. extern "C"
  9768. #endif
  9769. /* We use char because int might match the return type of a gcc2
  9770. builtin and then its argument prototype would still apply. */
  9771. char strftime ();
  9772. int
  9773. main ()
  9774. {
  9775. strftime ();
  9776. ;
  9777. return 0;
  9778. }
  9779. _ACEOF
  9780. rm -f conftest.$ac_objext conftest$ac_exeext
  9781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9782. (eval $ac_link) 2>conftest.er1
  9783. ac_status=$?
  9784. grep -v '^ *+' conftest.er1 >conftest.err
  9785. rm -f conftest.er1
  9786. cat conftest.err >&5
  9787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9788. (exit $ac_status); } &&
  9789. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9791. (eval $ac_try) 2>&5
  9792. ac_status=$?
  9793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9794. (exit $ac_status); }; } &&
  9795. { ac_try='test -s conftest$ac_exeext'
  9796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9797. (eval $ac_try) 2>&5
  9798. ac_status=$?
  9799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9800. (exit $ac_status); }; }; then
  9801. ac_cv_lib_intl_strftime=yes
  9802. else
  9803. echo "$as_me: failed program was:" >&5
  9804. sed 's/^/| /' conftest.$ac_ext >&5
  9805. ac_cv_lib_intl_strftime=no
  9806. fi
  9807. rm -f conftest.err conftest.$ac_objext \
  9808. conftest$ac_exeext conftest.$ac_ext
  9809. LIBS=$ac_check_lib_save_LIBS
  9810. fi
  9811. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9812. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9813. if test $ac_cv_lib_intl_strftime = yes; then
  9814. cat >>confdefs.h <<\_ACEOF
  9815. #define HAVE_STRFTIME 1
  9816. _ACEOF
  9817. LIBS="-lintl $LIBS"
  9818. fi
  9819. fi
  9820. done
  9821. #checkpoint
  9822. cat >confcache <<\_ACEOF
  9823. # This file is a shell script that caches the results of configure
  9824. # tests run on this system so they can be shared between configure
  9825. # scripts and configure runs, see configure's option --config-cache.
  9826. # It is not useful on other systems. If it contains results you don't
  9827. # want to keep, you may remove or edit it.
  9828. #
  9829. # config.status only pays attention to the cache file if you give it
  9830. # the --recheck option to rerun configure.
  9831. #
  9832. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9833. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9834. # following values.
  9835. _ACEOF
  9836. # The following way of writing the cache mishandles newlines in values,
  9837. # but we know of no workaround that is simple, portable, and efficient.
  9838. # So, don't put newlines in cache variables' values.
  9839. # Ultrix sh set writes to stderr and can't be redirected directly,
  9840. # and sets the high bit in the cache file unless we assign to the vars.
  9841. {
  9842. (set) 2>&1 |
  9843. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9844. *ac_space=\ *)
  9845. # `set' does not quote correctly, so add quotes (double-quote
  9846. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9847. sed -n \
  9848. "s/'/'\\\\''/g;
  9849. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9850. ;;
  9851. *)
  9852. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9853. sed -n \
  9854. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9855. ;;
  9856. esac;
  9857. } |
  9858. sed '
  9859. t clear
  9860. : clear
  9861. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9862. t end
  9863. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9864. : end' >>confcache
  9865. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9866. if test -w $cache_file; then
  9867. test "x$cache_file" != "x/dev/null"
  9868. cat confcache >$cache_file
  9869. else
  9870. echo "not updating unwritable cache $cache_file"
  9871. fi
  9872. fi
  9873. rm -f confcache
  9874. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9875. do
  9876. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9877. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9878. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9879. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9880. echo $ECHO_N "(cached) $ECHO_C" >&6
  9881. else
  9882. cat >conftest.$ac_ext <<_ACEOF
  9883. /* confdefs.h. */
  9884. _ACEOF
  9885. cat confdefs.h >>conftest.$ac_ext
  9886. cat >>conftest.$ac_ext <<_ACEOF
  9887. /* end confdefs.h. */
  9888. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9889. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9890. #define $ac_func innocuous_$ac_func
  9891. /* System header to define __stub macros and hopefully few prototypes,
  9892. which can conflict with char $ac_func (); below.
  9893. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9894. <limits.h> exists even on freestanding compilers. */
  9895. #ifdef __STDC__
  9896. # include <limits.h>
  9897. #else
  9898. # include <assert.h>
  9899. #endif
  9900. #undef $ac_func
  9901. /* Override any gcc2 internal prototype to avoid an error. */
  9902. #ifdef __cplusplus
  9903. extern "C"
  9904. {
  9905. #endif
  9906. /* We use char because int might match the return type of a gcc2
  9907. builtin and then its argument prototype would still apply. */
  9908. char $ac_func ();
  9909. /* The GNU C library defines this for functions which it implements
  9910. to always fail with ENOSYS. Some functions are actually named
  9911. something starting with __ and the normal name is an alias. */
  9912. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9913. choke me
  9914. #else
  9915. char (*f) () = $ac_func;
  9916. #endif
  9917. #ifdef __cplusplus
  9918. }
  9919. #endif
  9920. int
  9921. main ()
  9922. {
  9923. return f != $ac_func;
  9924. ;
  9925. return 0;
  9926. }
  9927. _ACEOF
  9928. rm -f conftest.$ac_objext conftest$ac_exeext
  9929. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9930. (eval $ac_link) 2>conftest.er1
  9931. ac_status=$?
  9932. grep -v '^ *+' conftest.er1 >conftest.err
  9933. rm -f conftest.er1
  9934. cat conftest.err >&5
  9935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9936. (exit $ac_status); } &&
  9937. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9938. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9939. (eval $ac_try) 2>&5
  9940. ac_status=$?
  9941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9942. (exit $ac_status); }; } &&
  9943. { ac_try='test -s conftest$ac_exeext'
  9944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9945. (eval $ac_try) 2>&5
  9946. ac_status=$?
  9947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9948. (exit $ac_status); }; }; then
  9949. eval "$as_ac_var=yes"
  9950. else
  9951. echo "$as_me: failed program was:" >&5
  9952. sed 's/^/| /' conftest.$ac_ext >&5
  9953. eval "$as_ac_var=no"
  9954. fi
  9955. rm -f conftest.err conftest.$ac_objext \
  9956. conftest$ac_exeext conftest.$ac_ext
  9957. fi
  9958. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9959. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9960. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9961. cat >>confdefs.h <<_ACEOF
  9962. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9963. _ACEOF
  9964. fi
  9965. done
  9966. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  9967. do
  9968. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9969. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9970. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9971. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9972. echo $ECHO_N "(cached) $ECHO_C" >&6
  9973. else
  9974. cat >conftest.$ac_ext <<_ACEOF
  9975. /* confdefs.h. */
  9976. _ACEOF
  9977. cat confdefs.h >>conftest.$ac_ext
  9978. cat >>conftest.$ac_ext <<_ACEOF
  9979. /* end confdefs.h. */
  9980. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9981. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9982. #define $ac_func innocuous_$ac_func
  9983. /* System header to define __stub macros and hopefully few prototypes,
  9984. which can conflict with char $ac_func (); below.
  9985. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9986. <limits.h> exists even on freestanding compilers. */
  9987. #ifdef __STDC__
  9988. # include <limits.h>
  9989. #else
  9990. # include <assert.h>
  9991. #endif
  9992. #undef $ac_func
  9993. /* Override any gcc2 internal prototype to avoid an error. */
  9994. #ifdef __cplusplus
  9995. extern "C"
  9996. {
  9997. #endif
  9998. /* We use char because int might match the return type of a gcc2
  9999. builtin and then its argument prototype would still apply. */
  10000. char $ac_func ();
  10001. /* The GNU C library defines this for functions which it implements
  10002. to always fail with ENOSYS. Some functions are actually named
  10003. something starting with __ and the normal name is an alias. */
  10004. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10005. choke me
  10006. #else
  10007. char (*f) () = $ac_func;
  10008. #endif
  10009. #ifdef __cplusplus
  10010. }
  10011. #endif
  10012. int
  10013. main ()
  10014. {
  10015. return f != $ac_func;
  10016. ;
  10017. return 0;
  10018. }
  10019. _ACEOF
  10020. rm -f conftest.$ac_objext conftest$ac_exeext
  10021. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10022. (eval $ac_link) 2>conftest.er1
  10023. ac_status=$?
  10024. grep -v '^ *+' conftest.er1 >conftest.err
  10025. rm -f conftest.er1
  10026. cat conftest.err >&5
  10027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. (exit $ac_status); } &&
  10029. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10031. (eval $ac_try) 2>&5
  10032. ac_status=$?
  10033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10034. (exit $ac_status); }; } &&
  10035. { ac_try='test -s conftest$ac_exeext'
  10036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10037. (eval $ac_try) 2>&5
  10038. ac_status=$?
  10039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. (exit $ac_status); }; }; then
  10041. eval "$as_ac_var=yes"
  10042. else
  10043. echo "$as_me: failed program was:" >&5
  10044. sed 's/^/| /' conftest.$ac_ext >&5
  10045. eval "$as_ac_var=no"
  10046. fi
  10047. rm -f conftest.err conftest.$ac_objext \
  10048. conftest$ac_exeext conftest.$ac_ext
  10049. fi
  10050. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10051. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10052. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10053. cat >>confdefs.h <<_ACEOF
  10054. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10055. _ACEOF
  10056. fi
  10057. done
  10058. #checkpoint
  10059. cat >confcache <<\_ACEOF
  10060. # This file is a shell script that caches the results of configure
  10061. # tests run on this system so they can be shared between configure
  10062. # scripts and configure runs, see configure's option --config-cache.
  10063. # It is not useful on other systems. If it contains results you don't
  10064. # want to keep, you may remove or edit it.
  10065. #
  10066. # config.status only pays attention to the cache file if you give it
  10067. # the --recheck option to rerun configure.
  10068. #
  10069. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10070. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10071. # following values.
  10072. _ACEOF
  10073. # The following way of writing the cache mishandles newlines in values,
  10074. # but we know of no workaround that is simple, portable, and efficient.
  10075. # So, don't put newlines in cache variables' values.
  10076. # Ultrix sh set writes to stderr and can't be redirected directly,
  10077. # and sets the high bit in the cache file unless we assign to the vars.
  10078. {
  10079. (set) 2>&1 |
  10080. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10081. *ac_space=\ *)
  10082. # `set' does not quote correctly, so add quotes (double-quote
  10083. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10084. sed -n \
  10085. "s/'/'\\\\''/g;
  10086. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10087. ;;
  10088. *)
  10089. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10090. sed -n \
  10091. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10092. ;;
  10093. esac;
  10094. } |
  10095. sed '
  10096. t clear
  10097. : clear
  10098. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10099. t end
  10100. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10101. : end' >>confcache
  10102. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10103. if test -w $cache_file; then
  10104. test "x$cache_file" != "x/dev/null"
  10105. cat confcache >$cache_file
  10106. else
  10107. echo "not updating unwritable cache $cache_file"
  10108. fi
  10109. fi
  10110. rm -f confcache
  10111. for ac_func in strcasecmp strncasecmp vsnprintf
  10112. do
  10113. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10114. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10115. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10116. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10117. echo $ECHO_N "(cached) $ECHO_C" >&6
  10118. else
  10119. cat >conftest.$ac_ext <<_ACEOF
  10120. /* confdefs.h. */
  10121. _ACEOF
  10122. cat confdefs.h >>conftest.$ac_ext
  10123. cat >>conftest.$ac_ext <<_ACEOF
  10124. /* end confdefs.h. */
  10125. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10126. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10127. #define $ac_func innocuous_$ac_func
  10128. /* System header to define __stub macros and hopefully few prototypes,
  10129. which can conflict with char $ac_func (); below.
  10130. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10131. <limits.h> exists even on freestanding compilers. */
  10132. #ifdef __STDC__
  10133. # include <limits.h>
  10134. #else
  10135. # include <assert.h>
  10136. #endif
  10137. #undef $ac_func
  10138. /* Override any gcc2 internal prototype to avoid an error. */
  10139. #ifdef __cplusplus
  10140. extern "C"
  10141. {
  10142. #endif
  10143. /* We use char because int might match the return type of a gcc2
  10144. builtin and then its argument prototype would still apply. */
  10145. char $ac_func ();
  10146. /* The GNU C library defines this for functions which it implements
  10147. to always fail with ENOSYS. Some functions are actually named
  10148. something starting with __ and the normal name is an alias. */
  10149. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10150. choke me
  10151. #else
  10152. char (*f) () = $ac_func;
  10153. #endif
  10154. #ifdef __cplusplus
  10155. }
  10156. #endif
  10157. int
  10158. main ()
  10159. {
  10160. return f != $ac_func;
  10161. ;
  10162. return 0;
  10163. }
  10164. _ACEOF
  10165. rm -f conftest.$ac_objext conftest$ac_exeext
  10166. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10167. (eval $ac_link) 2>conftest.er1
  10168. ac_status=$?
  10169. grep -v '^ *+' conftest.er1 >conftest.err
  10170. rm -f conftest.er1
  10171. cat conftest.err >&5
  10172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10173. (exit $ac_status); } &&
  10174. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10176. (eval $ac_try) 2>&5
  10177. ac_status=$?
  10178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10179. (exit $ac_status); }; } &&
  10180. { ac_try='test -s conftest$ac_exeext'
  10181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10182. (eval $ac_try) 2>&5
  10183. ac_status=$?
  10184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10185. (exit $ac_status); }; }; then
  10186. eval "$as_ac_var=yes"
  10187. else
  10188. echo "$as_me: failed program was:" >&5
  10189. sed 's/^/| /' conftest.$ac_ext >&5
  10190. eval "$as_ac_var=no"
  10191. fi
  10192. rm -f conftest.err conftest.$ac_objext \
  10193. conftest$ac_exeext conftest.$ac_ext
  10194. fi
  10195. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10196. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10197. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10198. cat >>confdefs.h <<_ACEOF
  10199. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10200. _ACEOF
  10201. fi
  10202. done
  10203. #autoscan suggested this....
  10204. #These are recommended by autoscan, but no code supports it currently
  10205. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10206. for ac_func in vsprintf
  10207. do
  10208. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10209. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10210. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10211. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10212. echo $ECHO_N "(cached) $ECHO_C" >&6
  10213. else
  10214. cat >conftest.$ac_ext <<_ACEOF
  10215. /* confdefs.h. */
  10216. _ACEOF
  10217. cat confdefs.h >>conftest.$ac_ext
  10218. cat >>conftest.$ac_ext <<_ACEOF
  10219. /* end confdefs.h. */
  10220. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10221. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10222. #define $ac_func innocuous_$ac_func
  10223. /* System header to define __stub macros and hopefully few prototypes,
  10224. which can conflict with char $ac_func (); below.
  10225. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10226. <limits.h> exists even on freestanding compilers. */
  10227. #ifdef __STDC__
  10228. # include <limits.h>
  10229. #else
  10230. # include <assert.h>
  10231. #endif
  10232. #undef $ac_func
  10233. /* Override any gcc2 internal prototype to avoid an error. */
  10234. #ifdef __cplusplus
  10235. extern "C"
  10236. {
  10237. #endif
  10238. /* We use char because int might match the return type of a gcc2
  10239. builtin and then its argument prototype would still apply. */
  10240. char $ac_func ();
  10241. /* The GNU C library defines this for functions which it implements
  10242. to always fail with ENOSYS. Some functions are actually named
  10243. something starting with __ and the normal name is an alias. */
  10244. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10245. choke me
  10246. #else
  10247. char (*f) () = $ac_func;
  10248. #endif
  10249. #ifdef __cplusplus
  10250. }
  10251. #endif
  10252. int
  10253. main ()
  10254. {
  10255. return f != $ac_func;
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. rm -f conftest.$ac_objext conftest$ac_exeext
  10261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10262. (eval $ac_link) 2>conftest.er1
  10263. ac_status=$?
  10264. grep -v '^ *+' conftest.er1 >conftest.err
  10265. rm -f conftest.er1
  10266. cat conftest.err >&5
  10267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10268. (exit $ac_status); } &&
  10269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10271. (eval $ac_try) 2>&5
  10272. ac_status=$?
  10273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10274. (exit $ac_status); }; } &&
  10275. { ac_try='test -s conftest$ac_exeext'
  10276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10277. (eval $ac_try) 2>&5
  10278. ac_status=$?
  10279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10280. (exit $ac_status); }; }; then
  10281. eval "$as_ac_var=yes"
  10282. else
  10283. echo "$as_me: failed program was:" >&5
  10284. sed 's/^/| /' conftest.$ac_ext >&5
  10285. eval "$as_ac_var=no"
  10286. fi
  10287. rm -f conftest.err conftest.$ac_objext \
  10288. conftest$ac_exeext conftest.$ac_ext
  10289. fi
  10290. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10291. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10292. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10293. cat >>confdefs.h <<_ACEOF
  10294. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10295. _ACEOF
  10296. fi
  10297. done
  10298. if test "$ac_cv_func_vsprintf" = "no"
  10299. then
  10300. cat << 'EOF' >&2
  10301. configure: error:
  10302. Your system does not have the sprintf/vsprintf libraries.
  10303. These are required to compile almost anything. Sorry.
  10304. EOF
  10305. exit 1
  10306. fi
  10307. for ac_func in uname
  10308. do
  10309. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10310. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10311. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10312. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. cat >conftest.$ac_ext <<_ACEOF
  10316. /* confdefs.h. */
  10317. _ACEOF
  10318. cat confdefs.h >>conftest.$ac_ext
  10319. cat >>conftest.$ac_ext <<_ACEOF
  10320. /* end confdefs.h. */
  10321. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10322. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10323. #define $ac_func innocuous_$ac_func
  10324. /* System header to define __stub macros and hopefully few prototypes,
  10325. which can conflict with char $ac_func (); below.
  10326. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10327. <limits.h> exists even on freestanding compilers. */
  10328. #ifdef __STDC__
  10329. # include <limits.h>
  10330. #else
  10331. # include <assert.h>
  10332. #endif
  10333. #undef $ac_func
  10334. /* Override any gcc2 internal prototype to avoid an error. */
  10335. #ifdef __cplusplus
  10336. extern "C"
  10337. {
  10338. #endif
  10339. /* We use char because int might match the return type of a gcc2
  10340. builtin and then its argument prototype would still apply. */
  10341. char $ac_func ();
  10342. /* The GNU C library defines this for functions which it implements
  10343. to always fail with ENOSYS. Some functions are actually named
  10344. something starting with __ and the normal name is an alias. */
  10345. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10346. choke me
  10347. #else
  10348. char (*f) () = $ac_func;
  10349. #endif
  10350. #ifdef __cplusplus
  10351. }
  10352. #endif
  10353. int
  10354. main ()
  10355. {
  10356. return f != $ac_func;
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. rm -f conftest.$ac_objext conftest$ac_exeext
  10362. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10363. (eval $ac_link) 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } &&
  10370. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10372. (eval $ac_try) 2>&5
  10373. ac_status=$?
  10374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10375. (exit $ac_status); }; } &&
  10376. { ac_try='test -s conftest$ac_exeext'
  10377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10378. (eval $ac_try) 2>&5
  10379. ac_status=$?
  10380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10381. (exit $ac_status); }; }; then
  10382. eval "$as_ac_var=yes"
  10383. else
  10384. echo "$as_me: failed program was:" >&5
  10385. sed 's/^/| /' conftest.$ac_ext >&5
  10386. eval "$as_ac_var=no"
  10387. fi
  10388. rm -f conftest.err conftest.$ac_objext \
  10389. conftest$ac_exeext conftest.$ac_ext
  10390. fi
  10391. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10392. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10393. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10394. cat >>confdefs.h <<_ACEOF
  10395. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10396. _ACEOF
  10397. fi
  10398. done
  10399. if test "$ac_cv_func_uname" = "no"
  10400. then
  10401. cat << 'EOF' >&2
  10402. configure: error:
  10403. Your system does not have the uname() function.
  10404. This is required for the botpack.
  10405. EOF
  10406. exit 1
  10407. fi
  10408. # Make sure we have stdc headers, since we can't compile without them
  10409. if test "$ac_cv_header_stdc" = "no"
  10410. then
  10411. cat << 'EOF' >&2
  10412. configure: error:
  10413. Your system must support ANSI C Header files.
  10414. These are required for the language support. Sorry.
  10415. EOF
  10416. exit 1
  10417. fi
  10418. #checkpoint
  10419. cat >confcache <<\_ACEOF
  10420. # This file is a shell script that caches the results of configure
  10421. # tests run on this system so they can be shared between configure
  10422. # scripts and configure runs, see configure's option --config-cache.
  10423. # It is not useful on other systems. If it contains results you don't
  10424. # want to keep, you may remove or edit it.
  10425. #
  10426. # config.status only pays attention to the cache file if you give it
  10427. # the --recheck option to rerun configure.
  10428. #
  10429. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10430. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10431. # following values.
  10432. _ACEOF
  10433. # The following way of writing the cache mishandles newlines in values,
  10434. # but we know of no workaround that is simple, portable, and efficient.
  10435. # So, don't put newlines in cache variables' values.
  10436. # Ultrix sh set writes to stderr and can't be redirected directly,
  10437. # and sets the high bit in the cache file unless we assign to the vars.
  10438. {
  10439. (set) 2>&1 |
  10440. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10441. *ac_space=\ *)
  10442. # `set' does not quote correctly, so add quotes (double-quote
  10443. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10444. sed -n \
  10445. "s/'/'\\\\''/g;
  10446. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10447. ;;
  10448. *)
  10449. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10450. sed -n \
  10451. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10452. ;;
  10453. esac;
  10454. } |
  10455. sed '
  10456. t clear
  10457. : clear
  10458. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10459. t end
  10460. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10461. : end' >>confcache
  10462. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10463. if test -w $cache_file; then
  10464. test "x$cache_file" != "x/dev/null"
  10465. cat confcache >$cache_file
  10466. else
  10467. echo "not updating unwritable cache $cache_file"
  10468. fi
  10469. fi
  10470. rm -f confcache
  10471. # Where is Tcl? Is it here?
  10472. # ---------- begin robey's Tcl thingies
  10473. # (well, what used to be robey's Tcl thingies...)
  10474. # Latest tested Tcl version to recommend if Tcl isn't found
  10475. tclrecommendver="8.4"
  10476. # Site recommended to download Tcl from
  10477. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10478. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10479. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10480. tcl8.0 tcl80"
  10481. # Tcl library filename suffixes
  10482. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10483. # Tcl library search paths
  10484. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10485. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10486. /usr/lib /lib /usr/i486-linuxaout/lib \
  10487. /beos/system/lib /sys/lib"
  10488. # Tcl header filenames
  10489. tclheadernames="tcl.h"
  10490. # Tcl header search paths
  10491. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10492. /usr/local/include /usr/local/pkgs/tcl/include \
  10493. /usr/include /beos/system/include /beos/devel/include \
  10494. /sys/include"
  10495. # oohh new configure --variables for those with multiple Tcl libs
  10496. # Check whether --with-tcllib or --without-tcllib was given.
  10497. if test "${with_tcllib+set}" = set; then
  10498. withval="$with_tcllib"
  10499. tcllibname="$withval"
  10500. fi;
  10501. # Check whether --with-tclinc or --without-tclinc was given.
  10502. if test "${with_tclinc+set}" = set; then
  10503. withval="$with_tclinc"
  10504. tclincname="$withval"
  10505. fi;
  10506. WARN=0
  10507. # Make sure either both or neither $tcllibname and $tclincname are set
  10508. if test ! "${tcllibname-x}" = "x"
  10509. then
  10510. if test "${tclincname-x}" = "x"
  10511. then
  10512. WARN=1
  10513. tcllibname=""
  10514. TCLLIB=""
  10515. TCLINC=""
  10516. fi
  10517. else
  10518. if test ! "${tclincname-x}" = "x"
  10519. then
  10520. WARN=1
  10521. tclincname=""
  10522. TCLLIB=""
  10523. TCLINC=""
  10524. fi
  10525. fi
  10526. if test "$WARN" = 1
  10527. then
  10528. cat << 'EOF' >&2
  10529. configure: warning:
  10530. You must specify both --with-tcllib and --with-tclinc for them to work.
  10531. configure will now attempt to autodetect both the Tcl library and header...
  10532. EOF
  10533. fi
  10534. WARN=0
  10535. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10536. if test ! "${TCLLIB-x}" = "x"
  10537. then
  10538. if test "${TCLINC-x}" = "x"
  10539. then
  10540. WARN=1
  10541. WVAR1=TCLLIB
  10542. WVAR2=TCLINC
  10543. TCLLIB=""
  10544. fi
  10545. else
  10546. if test ! "${TCLINC-x}" = "x"
  10547. then
  10548. WARN=1
  10549. WVAR1=TCLINC
  10550. WVAR2=TCLLIB
  10551. TCLINC=""
  10552. fi
  10553. fi
  10554. if test "$WARN" = 1
  10555. then
  10556. cat << EOF >&2
  10557. configure: warning:
  10558. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10559. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10560. configure will now attempt to autodetect both the Tcl library and header...
  10561. EOF
  10562. fi
  10563. # Look for Tcl library: if $tcllibname is set, check there first
  10564. if test ! "${tcllibname-x}" = "x"
  10565. then
  10566. if test -f "$tcllibname" && test -r "$tcllibname"
  10567. then
  10568. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10569. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10570. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10571. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10572. else
  10573. cat << EOF >&2
  10574. configure: warning:
  10575. The file '$tcllibname' given to option --with-tcllib is not valid.
  10576. configure will now attempt to autodetect both the Tcl library and header...
  10577. EOF
  10578. tcllibname=""
  10579. tclincname=""
  10580. TCLLIB=""
  10581. TCLLIBFN=""
  10582. TCLINC=""
  10583. TCLINCFN=""
  10584. fi
  10585. fi
  10586. # Look for Tcl header: if $tclincname is set, check there first
  10587. if test ! "${tclincname-x}" = "x"
  10588. then
  10589. if test -f "$tclincname" && test -r "$tclincname"
  10590. then
  10591. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10592. TCLINCFN=`$BASENAME $tclincname`
  10593. else
  10594. cat << EOF >&2
  10595. configure: warning:
  10596. The file '$tclincname' given to option --with-tclinc is not valid.
  10597. configure will now attempt to autodetect both the Tcl library and header...
  10598. EOF
  10599. tcllibname=""
  10600. tclincname=""
  10601. TCLLIB=""
  10602. TCLLIBFN=""
  10603. TCLINC=""
  10604. TCLINCFN=""
  10605. fi
  10606. fi
  10607. # Look for Tcl library: if $TCLLIB is set, check there first
  10608. if test "${TCLLIBFN-x}" = "x"
  10609. then
  10610. if test ! "${TCLLIB-x}" = "x"
  10611. then
  10612. if test -d "$TCLLIB"
  10613. then
  10614. for tcllibfns in $tcllibnames
  10615. do
  10616. for tcllibext in $tcllibextensions
  10617. do
  10618. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10619. then
  10620. TCLLIBFN="$tcllibfns$tcllibext"
  10621. TCLLIBEXT="$tcllibext"
  10622. TCLLIBFNS="$tcllibfns"
  10623. break 2
  10624. fi
  10625. done
  10626. done
  10627. fi
  10628. if test "${TCLLIBFN-x}" = "x"
  10629. then
  10630. cat << 'EOF' >&2
  10631. configure: warning:
  10632. Environment variable TCLLIB was set, but incorrect.
  10633. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10634. configure will now attempt to autodetect both the Tcl library and header...
  10635. EOF
  10636. TCLLIB=""
  10637. TCLLIBFN=""
  10638. TCLINC=""
  10639. TCLINCFN=""
  10640. fi
  10641. fi
  10642. fi
  10643. # Look for Tcl header: if $TCLINC is set, check there first
  10644. if test "${TCLINCFN-x}" = "x"
  10645. then
  10646. if test ! "${TCLINC-x}" = "x"
  10647. then
  10648. if test -d "$TCLINC"
  10649. then
  10650. for tclheaderfn in $tclheadernames
  10651. do
  10652. if test -r "$TCLINC/$tclheaderfn"
  10653. then
  10654. TCLINCFN="$tclheaderfn"
  10655. break
  10656. fi
  10657. done
  10658. fi
  10659. if test "${TCLINCFN-x}" = "x"
  10660. then
  10661. cat << 'EOF' >&2
  10662. configure: warning:
  10663. Environment variable TCLINC was set, but incorrect.
  10664. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10665. configure will now attempt to autodetect both the Tcl library and header...
  10666. EOF
  10667. TCLLIB=""
  10668. TCLLIBFN=""
  10669. TCLINC=""
  10670. TCLINCFN=""
  10671. fi
  10672. fi
  10673. fi
  10674. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10675. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10676. # Attempt autodetect for $TCLLIBFN if it's not set
  10677. if test ! "${TCLLIBFN-x}" = "x"
  10678. then
  10679. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10680. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10681. else
  10682. for tcllibfns in $tcllibnames
  10683. do
  10684. for tcllibext in $tcllibextensions
  10685. do
  10686. for tcllibpath in $tcllibpaths
  10687. do
  10688. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10689. then
  10690. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10691. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10692. TCLLIB="$tcllibpath"
  10693. TCLLIBFN="$tcllibfns$tcllibext"
  10694. TCLLIBEXT="$tcllibext"
  10695. TCLLIBFNS="$tcllibfns"
  10696. break 3
  10697. fi
  10698. done
  10699. done
  10700. done
  10701. fi
  10702. # Show if $TCLLIBFN wasn't found
  10703. if test "${TCLLIBFN-x}" = "x"
  10704. then
  10705. echo "$as_me:$LINENO: result: not found" >&5
  10706. echo "${ECHO_T}not found" >&6
  10707. fi
  10708. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10709. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10710. # Attempt autodetect for $TCLINCFN if it's not set
  10711. if test ! "${TCLINCFN-x}" = "x"
  10712. then
  10713. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10714. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10715. else
  10716. for tclheaderpath in $tclheaderpaths
  10717. do
  10718. for tclheaderfn in $tclheadernames
  10719. do
  10720. if test -r "$tclheaderpath/$tclheaderfn"
  10721. then
  10722. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10723. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10724. TCLINC="$tclheaderpath"
  10725. TCLINCFN="$tclheaderfn"
  10726. break 2
  10727. fi
  10728. done
  10729. done
  10730. # FreeBSD hack ...
  10731. if test "${TCLINCFN-x}" = "x"
  10732. then
  10733. for tcllibfns in $tcllibnames
  10734. do
  10735. for tclheaderpath in $tclheaderpaths
  10736. do
  10737. for tclheaderfn in $tclheadernames
  10738. do
  10739. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10740. then
  10741. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10742. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10743. TCLINC="$tclheaderpath/$tcllibfns"
  10744. TCLINCFN="$tclheaderfn"
  10745. break 3
  10746. fi
  10747. done
  10748. done
  10749. done
  10750. fi
  10751. fi
  10752. # Show if $TCLINCFN wasn't found
  10753. if test "${TCLINCFN-x}" = "x"
  10754. then
  10755. echo "$as_me:$LINENO: result: not found" >&5
  10756. echo "${ECHO_T}not found" >&6
  10757. fi
  10758. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10759. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10760. egg_tcl_changed=yes
  10761. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10762. if test ! "$egg_tcl_id" = ":::"
  10763. then
  10764. egg_tcl_cached=yes
  10765. if test "${egg_cv_var_tcl_id+set}" = set; then
  10766. echo $ECHO_N "(cached) $ECHO_C" >&6
  10767. else
  10768. egg_cv_var_tcl_id="$egg_tcl_id"
  10769. egg_tcl_cached=no
  10770. fi
  10771. if test "$egg_tcl_cached" = "yes"
  10772. then
  10773. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10774. then
  10775. egg_tcl_changed=no
  10776. else
  10777. egg_cv_var_tcl_id="$egg_tcl_id"
  10778. fi
  10779. fi
  10780. fi
  10781. if test "$egg_tcl_changed" = "yes"
  10782. then
  10783. echo "$as_me:$LINENO: result: yes" >&5
  10784. echo "${ECHO_T}yes" >&6
  10785. else
  10786. echo "$as_me:$LINENO: result: no" >&5
  10787. echo "${ECHO_T}no" >&6
  10788. fi
  10789. #checkpoint
  10790. cat >confcache <<\_ACEOF
  10791. # This file is a shell script that caches the results of configure
  10792. # tests run on this system so they can be shared between configure
  10793. # scripts and configure runs, see configure's option --config-cache.
  10794. # It is not useful on other systems. If it contains results you don't
  10795. # want to keep, you may remove or edit it.
  10796. #
  10797. # config.status only pays attention to the cache file if you give it
  10798. # the --recheck option to rerun configure.
  10799. #
  10800. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10801. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10802. # following values.
  10803. _ACEOF
  10804. # The following way of writing the cache mishandles newlines in values,
  10805. # but we know of no workaround that is simple, portable, and efficient.
  10806. # So, don't put newlines in cache variables' values.
  10807. # Ultrix sh set writes to stderr and can't be redirected directly,
  10808. # and sets the high bit in the cache file unless we assign to the vars.
  10809. {
  10810. (set) 2>&1 |
  10811. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10812. *ac_space=\ *)
  10813. # `set' does not quote correctly, so add quotes (double-quote
  10814. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10815. sed -n \
  10816. "s/'/'\\\\''/g;
  10817. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10818. ;;
  10819. *)
  10820. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10821. sed -n \
  10822. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10823. ;;
  10824. esac;
  10825. } |
  10826. sed '
  10827. t clear
  10828. : clear
  10829. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10830. t end
  10831. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10832. : end' >>confcache
  10833. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10834. if test -w $cache_file; then
  10835. test "x$cache_file" != "x/dev/null"
  10836. cat confcache >$cache_file
  10837. else
  10838. echo "not updating unwritable cache $cache_file"
  10839. fi
  10840. fi
  10841. rm -f confcache
  10842. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10843. TCL_FOUND=0
  10844. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10845. then
  10846. TCL_FOUND=1
  10847. # Check Tcl's version
  10848. if test "$egg_tcl_changed" = "yes"
  10849. then
  10850. unset egg_cv_var_tcl_version
  10851. fi
  10852. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10853. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10854. if test "${egg_cv_var_tcl_version+set}" = set; then
  10855. echo $ECHO_N "(cached) $ECHO_C" >&6
  10856. else
  10857. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10858. fi
  10859. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10860. then
  10861. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10862. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10863. else
  10864. echo "$as_me:$LINENO: result: not found" >&5
  10865. echo "${ECHO_T}not found" >&6
  10866. TCL_FOUND=0
  10867. fi
  10868. # Check Tcl's patch level (if available)
  10869. if test "$egg_tcl_changed" = "yes"
  10870. then
  10871. unset egg_cv_var_tcl_patch_level
  10872. fi
  10873. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10874. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10875. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10876. echo $ECHO_N "(cached) $ECHO_C" >&6
  10877. else
  10878. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10879. fi
  10880. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10881. then
  10882. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10883. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10884. else
  10885. egg_cv_var_tcl_patch_level="unknown"
  10886. echo "$as_me:$LINENO: result: unknown" >&5
  10887. echo "${ECHO_T}unknown" >&6
  10888. fi
  10889. fi
  10890. # Check if we found Tcl's version
  10891. if test "$TCL_FOUND" = 0
  10892. then
  10893. cat << 'EOF' >&2
  10894. configure: error:
  10895. I can't find Tcl on this system.
  10896. The download website is at:
  10897. http://www.tcl.tk/software/tcltk/download84.html
  10898. A nice direct link for the tarball is:
  10899. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10900. OR
  10901. Just type: ./build -T
  10902. EOF
  10903. exit 1
  10904. fi
  10905. # Is this version of Tcl too old for us to use ?
  10906. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10907. if test "$TCL_VER_PRE80" = "yes"
  10908. then
  10909. cat << EOF >&2
  10910. configure: error:
  10911. Your Tcl version is much too old for Eggdrop to use.
  10912. I suggest you download and compile a more recent version.
  10913. The most reliable current version is $tclrecommendver and
  10914. can be downloaded from $tclrecommendsite
  10915. EOF
  10916. exit 1
  10917. fi
  10918. # Set variables for Tcl library tests
  10919. TCL_TEST_LIB="$TCLLIBFNS"
  10920. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  10921. if test ! "${ac_cv_lib_pthread-x}" = "x"
  10922. then
  10923. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  10924. fi
  10925. if test "$egg_tcl_changed" = "yes"
  10926. then
  10927. unset egg_cv_var_tcl_free
  10928. fi
  10929. # Check for Tcl_Free()
  10930. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  10931. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  10932. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10933. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10934. echo $ECHO_N "(cached) $ECHO_C" >&6
  10935. else
  10936. ac_check_lib_save_LIBS=$LIBS
  10937. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10938. cat >conftest.$ac_ext <<_ACEOF
  10939. /* confdefs.h. */
  10940. _ACEOF
  10941. cat confdefs.h >>conftest.$ac_ext
  10942. cat >>conftest.$ac_ext <<_ACEOF
  10943. /* end confdefs.h. */
  10944. /* Override any gcc2 internal prototype to avoid an error. */
  10945. #ifdef __cplusplus
  10946. extern "C"
  10947. #endif
  10948. /* We use char because int might match the return type of a gcc2
  10949. builtin and then its argument prototype would still apply. */
  10950. char Tcl_Free ();
  10951. int
  10952. main ()
  10953. {
  10954. Tcl_Free ();
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. rm -f conftest.$ac_objext conftest$ac_exeext
  10960. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10961. (eval $ac_link) 2>conftest.er1
  10962. ac_status=$?
  10963. grep -v '^ *+' conftest.er1 >conftest.err
  10964. rm -f conftest.er1
  10965. cat conftest.err >&5
  10966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10967. (exit $ac_status); } &&
  10968. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10970. (eval $ac_try) 2>&5
  10971. ac_status=$?
  10972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10973. (exit $ac_status); }; } &&
  10974. { ac_try='test -s conftest$ac_exeext'
  10975. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10976. (eval $ac_try) 2>&5
  10977. ac_status=$?
  10978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10979. (exit $ac_status); }; }; then
  10980. eval "$as_ac_Lib=yes"
  10981. else
  10982. echo "$as_me: failed program was:" >&5
  10983. sed 's/^/| /' conftest.$ac_ext >&5
  10984. eval "$as_ac_Lib=no"
  10985. fi
  10986. rm -f conftest.err conftest.$ac_objext \
  10987. conftest$ac_exeext conftest.$ac_ext
  10988. LIBS=$ac_check_lib_save_LIBS
  10989. fi
  10990. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  10991. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  10992. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  10993. egg_cv_var_tcl_free="yes"
  10994. else
  10995. egg_cv_var_tcl_free="no"
  10996. fi
  10997. if test "$egg_cv_var_tcl_free" = "yes"
  10998. then
  10999. cat >>confdefs.h <<\_ACEOF
  11000. #define HAVE_TCL_FREE 1
  11001. _ACEOF
  11002. fi
  11003. if test "$egg_tcl_changed" = "yes"
  11004. then
  11005. unset egg_cv_var_tcl_threaded
  11006. fi
  11007. # Check for TclpFinalizeThreadData()
  11008. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11009. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11010. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11011. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11012. echo $ECHO_N "(cached) $ECHO_C" >&6
  11013. else
  11014. ac_check_lib_save_LIBS=$LIBS
  11015. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11016. cat >conftest.$ac_ext <<_ACEOF
  11017. /* confdefs.h. */
  11018. _ACEOF
  11019. cat confdefs.h >>conftest.$ac_ext
  11020. cat >>conftest.$ac_ext <<_ACEOF
  11021. /* end confdefs.h. */
  11022. /* Override any gcc2 internal prototype to avoid an error. */
  11023. #ifdef __cplusplus
  11024. extern "C"
  11025. #endif
  11026. /* We use char because int might match the return type of a gcc2
  11027. builtin and then its argument prototype would still apply. */
  11028. char TclpFinalizeThreadData ();
  11029. int
  11030. main ()
  11031. {
  11032. TclpFinalizeThreadData ();
  11033. ;
  11034. return 0;
  11035. }
  11036. _ACEOF
  11037. rm -f conftest.$ac_objext conftest$ac_exeext
  11038. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11039. (eval $ac_link) 2>conftest.er1
  11040. ac_status=$?
  11041. grep -v '^ *+' conftest.er1 >conftest.err
  11042. rm -f conftest.er1
  11043. cat conftest.err >&5
  11044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11045. (exit $ac_status); } &&
  11046. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11048. (eval $ac_try) 2>&5
  11049. ac_status=$?
  11050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11051. (exit $ac_status); }; } &&
  11052. { ac_try='test -s conftest$ac_exeext'
  11053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11054. (eval $ac_try) 2>&5
  11055. ac_status=$?
  11056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11057. (exit $ac_status); }; }; then
  11058. eval "$as_ac_Lib=yes"
  11059. else
  11060. echo "$as_me: failed program was:" >&5
  11061. sed 's/^/| /' conftest.$ac_ext >&5
  11062. eval "$as_ac_Lib=no"
  11063. fi
  11064. rm -f conftest.err conftest.$ac_objext \
  11065. conftest$ac_exeext conftest.$ac_ext
  11066. LIBS=$ac_check_lib_save_LIBS
  11067. fi
  11068. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11069. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11070. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11071. egg_cv_var_tcl_threaded="yes"
  11072. else
  11073. egg_cv_var_tcl_threaded="no"
  11074. fi
  11075. enable_tcl_threads=no
  11076. if test "$egg_cv_var_tcl_threaded" = "yes"
  11077. then
  11078. if test "$enable_tcl_threads" = "no"
  11079. then
  11080. cat << 'EOF' >&2
  11081. configure: warning:
  11082. You have disabled threads support on a system with a threaded Tcl library.
  11083. Tcl features that rely on scheduled events may not function properly.
  11084. EOF
  11085. fi
  11086. # Add pthread library to $LIBS if we need it
  11087. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11088. then
  11089. LIBS="$ac_cv_lib_pthread $LIBS"
  11090. fi
  11091. fi
  11092. if test "$EGG_CYGWIN" = "yes"
  11093. then
  11094. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11095. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11096. else
  11097. if test ! "$TCLLIBEXT" = ".a"
  11098. then
  11099. cat << 'EOF' >&2
  11100. configure: warning:
  11101. Your Tcl library is not compiled statically.
  11102. You will need to compile Tcl statically to successfully compile wraith.
  11103. EOF
  11104. exit 1
  11105. else
  11106. # Was the --with-tcllib option given ?
  11107. if test ! "${tcllibname-x}" = "x"
  11108. then
  11109. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11110. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11111. else
  11112. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11113. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11114. fi
  11115. fi
  11116. fi
  11117. ac_config_commands="$ac_config_commands replace-if-changed"
  11118. #checkpoint
  11119. cat >confcache <<\_ACEOF
  11120. # This file is a shell script that caches the results of configure
  11121. # tests run on this system so they can be shared between configure
  11122. # scripts and configure runs, see configure's option --config-cache.
  11123. # It is not useful on other systems. If it contains results you don't
  11124. # want to keep, you may remove or edit it.
  11125. #
  11126. # config.status only pays attention to the cache file if you give it
  11127. # the --recheck option to rerun configure.
  11128. #
  11129. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11130. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11131. # following values.
  11132. _ACEOF
  11133. # The following way of writing the cache mishandles newlines in values,
  11134. # but we know of no workaround that is simple, portable, and efficient.
  11135. # So, don't put newlines in cache variables' values.
  11136. # Ultrix sh set writes to stderr and can't be redirected directly,
  11137. # and sets the high bit in the cache file unless we assign to the vars.
  11138. {
  11139. (set) 2>&1 |
  11140. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11141. *ac_space=\ *)
  11142. # `set' does not quote correctly, so add quotes (double-quote
  11143. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11144. sed -n \
  11145. "s/'/'\\\\''/g;
  11146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11147. ;;
  11148. *)
  11149. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11150. sed -n \
  11151. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11152. ;;
  11153. esac;
  11154. } |
  11155. sed '
  11156. t clear
  11157. : clear
  11158. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11159. t end
  11160. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11161. : end' >>confcache
  11162. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11163. if test -w $cache_file; then
  11164. test "x$cache_file" != "x/dev/null"
  11165. cat confcache >$cache_file
  11166. else
  11167. echo "not updating unwritable cache $cache_file"
  11168. fi
  11169. fi
  11170. rm -f confcache
  11171. # ---------- end of (what used to be) robey's Tcl thingies
  11172. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11173. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11174. if ! test -f $srcdir/pack/pack.cfg; then
  11175. cat << 'EOF' >&2
  11176. configure: error:
  11177. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11178. EOF
  11179. exit 1
  11180. fi
  11181. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11182. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11183. cat >>confdefs.h <<_ACEOF
  11184. #define EGG_VERSION $version_num
  11185. _ACEOF
  11186. case "$srcdir" in
  11187. [\\/]* | ?:[\\/]*)
  11188. MOD_UPDIR=""
  11189. ;;
  11190. *)
  11191. MOD_UPDIR="../"
  11192. ;;
  11193. esac
  11194. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11195. files="src/Makefile.in src/compat/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"
  11196. for mf in $files; do
  11197. # Strip MF so we end up with the name of the file.
  11198. # echo "MF: $mf"
  11199. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11200. dirpart=`(dirname "$mf") 2>/dev/null ||
  11201. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11202. X"$mf" : 'X\(//\)[^/]' \| \
  11203. X"$mf" : 'X\(//\)$' \| \
  11204. X"$mf" : 'X\(/\)' \| \
  11205. . : '\(.\)' 2>/dev/null ||
  11206. echo X"$mf" |
  11207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11208. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11209. /^X\(\/\/\)$/{ s//\1/; q; }
  11210. /^X\(\/\).*/{ s//\1/; q; }
  11211. s/.*/./; q'`
  11212. # echo "dirpart: $dirpart mf: $mf"
  11213. rm -rf "$dirpart/.deps/"
  11214. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11215. for file in `sed -n -e '
  11216. /^OBJS = .*\\\\$/ {
  11217. s/^OBJS = //
  11218. :loop
  11219. s/\\\\$//
  11220. p
  11221. n
  11222. /\\\\$/ b loop
  11223. p
  11224. }
  11225. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11226. do
  11227. base=`basename $file .o`
  11228. test -f "$dirpart/$base.c" || continue
  11229. # fdir=`AS_DIRNAME(["$file"])`
  11230. # AS_MKDIR_P([$dirpart/$fdir])
  11231. # echo "creating $dirpart/.deps/$base.Po"
  11232. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11233. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11234. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11235. done
  11236. done
  11237. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11238. cat >confcache <<\_ACEOF
  11239. # This file is a shell script that caches the results of configure
  11240. # tests run on this system so they can be shared between configure
  11241. # scripts and configure runs, see configure's option --config-cache.
  11242. # It is not useful on other systems. If it contains results you don't
  11243. # want to keep, you may remove or edit it.
  11244. #
  11245. # config.status only pays attention to the cache file if you give it
  11246. # the --recheck option to rerun configure.
  11247. #
  11248. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11249. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11250. # following values.
  11251. _ACEOF
  11252. # The following way of writing the cache mishandles newlines in values,
  11253. # but we know of no workaround that is simple, portable, and efficient.
  11254. # So, don't put newlines in cache variables' values.
  11255. # Ultrix sh set writes to stderr and can't be redirected directly,
  11256. # and sets the high bit in the cache file unless we assign to the vars.
  11257. {
  11258. (set) 2>&1 |
  11259. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11260. *ac_space=\ *)
  11261. # `set' does not quote correctly, so add quotes (double-quote
  11262. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11263. sed -n \
  11264. "s/'/'\\\\''/g;
  11265. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11266. ;;
  11267. *)
  11268. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11269. sed -n \
  11270. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11271. ;;
  11272. esac;
  11273. } |
  11274. sed '
  11275. t clear
  11276. : clear
  11277. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11278. t end
  11279. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11280. : end' >>confcache
  11281. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11282. if test -w $cache_file; then
  11283. test "x$cache_file" != "x/dev/null"
  11284. cat confcache >$cache_file
  11285. else
  11286. echo "not updating unwritable cache $cache_file"
  11287. fi
  11288. fi
  11289. rm -f confcache
  11290. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11291. # Let make expand exec_prefix.
  11292. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11293. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11294. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11295. # trailing colons and then remove the whole line if VPATH becomes empty
  11296. # (actually we leave an empty line to preserve line numbers).
  11297. if test "x$srcdir" = x.; then
  11298. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11299. s/:*\$(srcdir):*/:/;
  11300. s/:*\${srcdir}:*/:/;
  11301. s/:*@srcdir@:*/:/;
  11302. s/^\([^=]*=[ ]*\):*/\1/;
  11303. s/:*$//;
  11304. s/^[^=]*=[ ]*$//;
  11305. }'
  11306. fi
  11307. DEFS=-DHAVE_CONFIG_H
  11308. ac_libobjs=
  11309. ac_ltlibobjs=
  11310. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11311. # 1. Remove the extension, and $U if already installed.
  11312. ac_i=`echo "$ac_i" |
  11313. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11314. # 2. Add them.
  11315. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11316. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11317. done
  11318. LIBOBJS=$ac_libobjs
  11319. LTLIBOBJS=$ac_ltlibobjs
  11320. : ${CONFIG_STATUS=./config.status}
  11321. ac_clean_files_save=$ac_clean_files
  11322. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11323. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11324. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11325. cat >$CONFIG_STATUS <<_ACEOF
  11326. #! $SHELL
  11327. # Generated by $as_me.
  11328. # Run this file to recreate the current configuration.
  11329. # Compiler output produced by configure, useful for debugging
  11330. # configure, is in config.log if it exists.
  11331. debug=false
  11332. ac_cs_recheck=false
  11333. ac_cs_silent=false
  11334. SHELL=\${CONFIG_SHELL-$SHELL}
  11335. _ACEOF
  11336. cat >>$CONFIG_STATUS <<\_ACEOF
  11337. ## --------------------- ##
  11338. ## M4sh Initialization. ##
  11339. ## --------------------- ##
  11340. # Be Bourne compatible
  11341. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11342. emulate sh
  11343. NULLCMD=:
  11344. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11345. # is contrary to our usage. Disable this feature.
  11346. alias -g '${1+"$@"}'='"$@"'
  11347. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11348. set -o posix
  11349. fi
  11350. DUALCASE=1; export DUALCASE # for MKS sh
  11351. # Support unset when possible.
  11352. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11353. as_unset=unset
  11354. else
  11355. as_unset=false
  11356. fi
  11357. # Work around bugs in pre-3.0 UWIN ksh.
  11358. $as_unset ENV MAIL MAILPATH
  11359. PS1='$ '
  11360. PS2='> '
  11361. PS4='+ '
  11362. # NLS nuisances.
  11363. for as_var in \
  11364. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11365. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11366. LC_TELEPHONE LC_TIME
  11367. do
  11368. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11369. eval $as_var=C; export $as_var
  11370. else
  11371. $as_unset $as_var
  11372. fi
  11373. done
  11374. # Required to use basename.
  11375. if expr a : '\(a\)' >/dev/null 2>&1; then
  11376. as_expr=expr
  11377. else
  11378. as_expr=false
  11379. fi
  11380. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11381. as_basename=basename
  11382. else
  11383. as_basename=false
  11384. fi
  11385. # Name of the executable.
  11386. as_me=`$as_basename "$0" ||
  11387. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11388. X"$0" : 'X\(//\)$' \| \
  11389. X"$0" : 'X\(/\)$' \| \
  11390. . : '\(.\)' 2>/dev/null ||
  11391. echo X/"$0" |
  11392. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11393. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11394. /^X\/\(\/\).*/{ s//\1/; q; }
  11395. s/.*/./; q'`
  11396. # PATH needs CR, and LINENO needs CR and PATH.
  11397. # Avoid depending upon Character Ranges.
  11398. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11399. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11400. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11401. as_cr_digits='0123456789'
  11402. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11403. # The user is always right.
  11404. if test "${PATH_SEPARATOR+set}" != set; then
  11405. echo "#! /bin/sh" >conf$$.sh
  11406. echo "exit 0" >>conf$$.sh
  11407. chmod +x conf$$.sh
  11408. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11409. PATH_SEPARATOR=';'
  11410. else
  11411. PATH_SEPARATOR=:
  11412. fi
  11413. rm -f conf$$.sh
  11414. fi
  11415. as_lineno_1=$LINENO
  11416. as_lineno_2=$LINENO
  11417. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11418. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11419. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11420. # Find who we are. Look in the path if we contain no path at all
  11421. # relative or not.
  11422. case $0 in
  11423. *[\\/]* ) as_myself=$0 ;;
  11424. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11425. for as_dir in $PATH
  11426. do
  11427. IFS=$as_save_IFS
  11428. test -z "$as_dir" && as_dir=.
  11429. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11430. done
  11431. ;;
  11432. esac
  11433. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11434. # in which case we are not to be found in the path.
  11435. if test "x$as_myself" = x; then
  11436. as_myself=$0
  11437. fi
  11438. if test ! -f "$as_myself"; then
  11439. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11440. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11441. { (exit 1); exit 1; }; }
  11442. fi
  11443. case $CONFIG_SHELL in
  11444. '')
  11445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11446. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11447. do
  11448. IFS=$as_save_IFS
  11449. test -z "$as_dir" && as_dir=.
  11450. for as_base in sh bash ksh sh5; do
  11451. case $as_dir in
  11452. /*)
  11453. if ("$as_dir/$as_base" -c '
  11454. as_lineno_1=$LINENO
  11455. as_lineno_2=$LINENO
  11456. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11457. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11458. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11459. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11460. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11461. CONFIG_SHELL=$as_dir/$as_base
  11462. export CONFIG_SHELL
  11463. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11464. fi;;
  11465. esac
  11466. done
  11467. done
  11468. ;;
  11469. esac
  11470. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11471. # uniformly replaced by the line number. The first 'sed' inserts a
  11472. # line-number line before each line; the second 'sed' does the real
  11473. # work. The second script uses 'N' to pair each line-number line
  11474. # with the numbered line, and appends trailing '-' during
  11475. # substitution so that $LINENO is not a special case at line end.
  11476. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11477. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11478. sed '=' <$as_myself |
  11479. sed '
  11480. N
  11481. s,$,-,
  11482. : loop
  11483. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11484. t loop
  11485. s,-$,,
  11486. s,^['$as_cr_digits']*\n,,
  11487. ' >$as_me.lineno &&
  11488. chmod +x $as_me.lineno ||
  11489. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11490. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11491. { (exit 1); exit 1; }; }
  11492. # Don't try to exec as it changes $[0], causing all sort of problems
  11493. # (the dirname of $[0] is not the place where we might find the
  11494. # original and so on. Autoconf is especially sensible to this).
  11495. . ./$as_me.lineno
  11496. # Exit status is that of the last command.
  11497. exit
  11498. }
  11499. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11500. *c*,-n*) ECHO_N= ECHO_C='
  11501. ' ECHO_T=' ' ;;
  11502. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11503. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11504. esac
  11505. if expr a : '\(a\)' >/dev/null 2>&1; then
  11506. as_expr=expr
  11507. else
  11508. as_expr=false
  11509. fi
  11510. rm -f conf$$ conf$$.exe conf$$.file
  11511. echo >conf$$.file
  11512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11513. # We could just check for DJGPP; but this test a) works b) is more generic
  11514. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11515. if test -f conf$$.exe; then
  11516. # Don't use ln at all; we don't have any links
  11517. as_ln_s='cp -p'
  11518. else
  11519. as_ln_s='ln -s'
  11520. fi
  11521. elif ln conf$$.file conf$$ 2>/dev/null; then
  11522. as_ln_s=ln
  11523. else
  11524. as_ln_s='cp -p'
  11525. fi
  11526. rm -f conf$$ conf$$.exe conf$$.file
  11527. if mkdir -p . 2>/dev/null; then
  11528. as_mkdir_p=:
  11529. else
  11530. test -d ./-p && rmdir ./-p
  11531. as_mkdir_p=false
  11532. fi
  11533. as_executable_p="test -f"
  11534. # Sed expression to map a string onto a valid CPP name.
  11535. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11536. # Sed expression to map a string onto a valid variable name.
  11537. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11538. # IFS
  11539. # We need space, tab and new line, in precisely that order.
  11540. as_nl='
  11541. '
  11542. IFS=" $as_nl"
  11543. # CDPATH.
  11544. $as_unset CDPATH
  11545. exec 6>&1
  11546. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11547. # report actual input values of CONFIG_FILES etc. instead of their
  11548. # values after options handling. Logging --version etc. is OK.
  11549. exec 5>>config.log
  11550. {
  11551. echo
  11552. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11553. ## Running $as_me. ##
  11554. _ASBOX
  11555. } >&5
  11556. cat >&5 <<_CSEOF
  11557. This file was extended by $as_me, which was
  11558. generated by GNU Autoconf 2.59. Invocation command line was
  11559. CONFIG_FILES = $CONFIG_FILES
  11560. CONFIG_HEADERS = $CONFIG_HEADERS
  11561. CONFIG_LINKS = $CONFIG_LINKS
  11562. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11563. $ $0 $@
  11564. _CSEOF
  11565. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11566. echo >&5
  11567. _ACEOF
  11568. # Files that config.status was made for.
  11569. if test -n "$ac_config_files"; then
  11570. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11571. fi
  11572. if test -n "$ac_config_headers"; then
  11573. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11574. fi
  11575. if test -n "$ac_config_links"; then
  11576. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11577. fi
  11578. if test -n "$ac_config_commands"; then
  11579. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11580. fi
  11581. cat >>$CONFIG_STATUS <<\_ACEOF
  11582. ac_cs_usage="\
  11583. \`$as_me' instantiates files from templates according to the
  11584. current configuration.
  11585. Usage: $0 [OPTIONS] [FILE]...
  11586. -h, --help print this help, then exit
  11587. -V, --version print version number, then exit
  11588. -q, --quiet do not print progress messages
  11589. -d, --debug don't remove temporary files
  11590. --recheck update $as_me by reconfiguring in the same conditions
  11591. --file=FILE[:TEMPLATE]
  11592. instantiate the configuration file FILE
  11593. --header=FILE[:TEMPLATE]
  11594. instantiate the configuration header FILE
  11595. Configuration files:
  11596. $config_files
  11597. Configuration headers:
  11598. $config_headers
  11599. Configuration commands:
  11600. $config_commands
  11601. Report bugs to <bug-autoconf@gnu.org>."
  11602. _ACEOF
  11603. cat >>$CONFIG_STATUS <<_ACEOF
  11604. ac_cs_version="\\
  11605. config.status
  11606. configured by $0, generated by GNU Autoconf 2.59,
  11607. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11608. Copyright (C) 2003 Free Software Foundation, Inc.
  11609. This config.status script is free software; the Free Software Foundation
  11610. gives unlimited permission to copy, distribute and modify it."
  11611. srcdir=$srcdir
  11612. _ACEOF
  11613. cat >>$CONFIG_STATUS <<\_ACEOF
  11614. # If no file are specified by the user, then we need to provide default
  11615. # value. By we need to know if files were specified by the user.
  11616. ac_need_defaults=:
  11617. while test $# != 0
  11618. do
  11619. case $1 in
  11620. --*=*)
  11621. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11622. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11623. ac_shift=:
  11624. ;;
  11625. -*)
  11626. ac_option=$1
  11627. ac_optarg=$2
  11628. ac_shift=shift
  11629. ;;
  11630. *) # This is not an option, so the user has probably given explicit
  11631. # arguments.
  11632. ac_option=$1
  11633. ac_need_defaults=false;;
  11634. esac
  11635. case $ac_option in
  11636. # Handling of the options.
  11637. _ACEOF
  11638. cat >>$CONFIG_STATUS <<\_ACEOF
  11639. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11640. ac_cs_recheck=: ;;
  11641. --version | --vers* | -V )
  11642. echo "$ac_cs_version"; exit 0 ;;
  11643. --he | --h)
  11644. # Conflict between --help and --header
  11645. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11646. Try \`$0 --help' for more information." >&5
  11647. echo "$as_me: error: ambiguous option: $1
  11648. Try \`$0 --help' for more information." >&2;}
  11649. { (exit 1); exit 1; }; };;
  11650. --help | --hel | -h )
  11651. echo "$ac_cs_usage"; exit 0 ;;
  11652. --debug | --d* | -d )
  11653. debug=: ;;
  11654. --file | --fil | --fi | --f )
  11655. $ac_shift
  11656. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11657. ac_need_defaults=false;;
  11658. --header | --heade | --head | --hea )
  11659. $ac_shift
  11660. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11661. ac_need_defaults=false;;
  11662. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11663. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11664. ac_cs_silent=: ;;
  11665. # This is an error.
  11666. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11667. Try \`$0 --help' for more information." >&5
  11668. echo "$as_me: error: unrecognized option: $1
  11669. Try \`$0 --help' for more information." >&2;}
  11670. { (exit 1); exit 1; }; } ;;
  11671. *) ac_config_targets="$ac_config_targets $1" ;;
  11672. esac
  11673. shift
  11674. done
  11675. ac_configure_extra_args=
  11676. if $ac_cs_silent; then
  11677. exec 6>/dev/null
  11678. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11679. fi
  11680. _ACEOF
  11681. cat >>$CONFIG_STATUS <<_ACEOF
  11682. if \$ac_cs_recheck; then
  11683. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11684. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11685. fi
  11686. _ACEOF
  11687. cat >>$CONFIG_STATUS <<_ACEOF
  11688. #
  11689. # INIT-COMMANDS section.
  11690. #
  11691. egg_tclinc="$TCLINC"
  11692. egg_tclincfn="$TCLINCFN"
  11693. _ACEOF
  11694. cat >>$CONFIG_STATUS <<\_ACEOF
  11695. for ac_config_target in $ac_config_targets
  11696. do
  11697. case "$ac_config_target" in
  11698. # Handling of arguments.
  11699. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11700. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11701. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11702. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11703. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11704. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11705. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11706. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11707. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11708. { (exit 1); exit 1; }; };;
  11709. esac
  11710. done
  11711. # If the user did not use the arguments to specify the items to instantiate,
  11712. # then the envvar interface is used. Set only those that are not.
  11713. # We use the long form for the default assignment because of an extremely
  11714. # bizarre bug on SunOS 4.1.3.
  11715. if $ac_need_defaults; then
  11716. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11717. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11718. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11719. fi
  11720. # Have a temporary directory for convenience. Make it in the build tree
  11721. # simply because there is no reason to put it here, and in addition,
  11722. # creating and moving files from /tmp can sometimes cause problems.
  11723. # Create a temporary directory, and hook for its removal unless debugging.
  11724. $debug ||
  11725. {
  11726. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11727. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11728. }
  11729. # Create a (secure) tmp directory for tmp files.
  11730. {
  11731. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11732. test -n "$tmp" && test -d "$tmp"
  11733. } ||
  11734. {
  11735. tmp=./confstat$$-$RANDOM
  11736. (umask 077 && mkdir $tmp)
  11737. } ||
  11738. {
  11739. echo "$me: cannot create a temporary directory in ." >&2
  11740. { (exit 1); exit 1; }
  11741. }
  11742. _ACEOF
  11743. cat >>$CONFIG_STATUS <<_ACEOF
  11744. #
  11745. # CONFIG_FILES section.
  11746. #
  11747. # No need to generate the scripts if there are no CONFIG_FILES.
  11748. # This happens for instance when ./config.status config.h
  11749. if test -n "\$CONFIG_FILES"; then
  11750. # Protect against being on the right side of a sed subst in config.status.
  11751. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11752. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11753. s,@SHELL@,$SHELL,;t t
  11754. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11755. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11756. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11757. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11758. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11759. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11760. s,@exec_prefix@,$exec_prefix,;t t
  11761. s,@prefix@,$prefix,;t t
  11762. s,@program_transform_name@,$program_transform_name,;t t
  11763. s,@bindir@,$bindir,;t t
  11764. s,@sbindir@,$sbindir,;t t
  11765. s,@libexecdir@,$libexecdir,;t t
  11766. s,@datadir@,$datadir,;t t
  11767. s,@sysconfdir@,$sysconfdir,;t t
  11768. s,@sharedstatedir@,$sharedstatedir,;t t
  11769. s,@localstatedir@,$localstatedir,;t t
  11770. s,@libdir@,$libdir,;t t
  11771. s,@includedir@,$includedir,;t t
  11772. s,@oldincludedir@,$oldincludedir,;t t
  11773. s,@infodir@,$infodir,;t t
  11774. s,@mandir@,$mandir,;t t
  11775. s,@build_alias@,$build_alias,;t t
  11776. s,@host_alias@,$host_alias,;t t
  11777. s,@target_alias@,$target_alias,;t t
  11778. s,@DEFS@,$DEFS,;t t
  11779. s,@ECHO_C@,$ECHO_C,;t t
  11780. s,@ECHO_N@,$ECHO_N,;t t
  11781. s,@ECHO_T@,$ECHO_T,;t t
  11782. s,@LIBS@,$LIBS,;t t
  11783. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11784. s,@CC@,$CC,;t t
  11785. s,@CFLAGS@,$CFLAGS,;t t
  11786. s,@LDFLAGS@,$LDFLAGS,;t t
  11787. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11788. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11789. s,@EXEEXT@,$EXEEXT,;t t
  11790. s,@OBJEXT@,$OBJEXT,;t t
  11791. s,@CPP@,$CPP,;t t
  11792. s,@EGREP@,$EGREP,;t t
  11793. s,@CCDEBUG@,$CCDEBUG,;t t
  11794. s,@SET_MAKE@,$SET_MAKE,;t t
  11795. s,@HEAD_1@,$HEAD_1,;t t
  11796. s,@STRIP@,$STRIP,;t t
  11797. s,@AWK@,$AWK,;t t
  11798. s,@BASENAME@,$BASENAME,;t t
  11799. s,@CCACHE@,$CCACHE,;t t
  11800. s,@UNAME@,$UNAME,;t t
  11801. s,@ZLIB@,$ZLIB,;t t
  11802. s,@SSL@,$SSL,;t t
  11803. s,@LIBOBJS@,$LIBOBJS,;t t
  11804. s,@TCLLIB@,$TCLLIB,;t t
  11805. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11806. s,@TCLINC@,$TCLINC,;t t
  11807. s,@TCLINCFN@,$TCLINCFN,;t t
  11808. s,@TCL_REQS@,$TCL_REQS,;t t
  11809. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11810. s,@VERSION@,$VERSION,;t t
  11811. s,@NUMVER@,$NUMVER,;t t
  11812. s,@PACKNAME@,$PACKNAME,;t t
  11813. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11814. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11815. CEOF
  11816. _ACEOF
  11817. cat >>$CONFIG_STATUS <<\_ACEOF
  11818. # Split the substitutions into bite-sized pieces for seds with
  11819. # small command number limits, like on Digital OSF/1 and HP-UX.
  11820. ac_max_sed_lines=48
  11821. ac_sed_frag=1 # Number of current file.
  11822. ac_beg=1 # First line for current file.
  11823. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11824. ac_more_lines=:
  11825. ac_sed_cmds=
  11826. while $ac_more_lines; do
  11827. if test $ac_beg -gt 1; then
  11828. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11829. else
  11830. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11831. fi
  11832. if test ! -s $tmp/subs.frag; then
  11833. ac_more_lines=false
  11834. else
  11835. # The purpose of the label and of the branching condition is to
  11836. # speed up the sed processing (if there are no `@' at all, there
  11837. # is no need to browse any of the substitutions).
  11838. # These are the two extra sed commands mentioned above.
  11839. (echo ':t
  11840. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11841. if test -z "$ac_sed_cmds"; then
  11842. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11843. else
  11844. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11845. fi
  11846. ac_sed_frag=`expr $ac_sed_frag + 1`
  11847. ac_beg=$ac_end
  11848. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11849. fi
  11850. done
  11851. if test -z "$ac_sed_cmds"; then
  11852. ac_sed_cmds=cat
  11853. fi
  11854. fi # test -n "$CONFIG_FILES"
  11855. _ACEOF
  11856. cat >>$CONFIG_STATUS <<\_ACEOF
  11857. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11858. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11859. case $ac_file in
  11860. - | *:- | *:-:* ) # input from stdin
  11861. cat >$tmp/stdin
  11862. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11863. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11864. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11865. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11866. * ) ac_file_in=$ac_file.in ;;
  11867. esac
  11868. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11869. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11870. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11871. X"$ac_file" : 'X\(//\)[^/]' \| \
  11872. X"$ac_file" : 'X\(//\)$' \| \
  11873. X"$ac_file" : 'X\(/\)' \| \
  11874. . : '\(.\)' 2>/dev/null ||
  11875. echo X"$ac_file" |
  11876. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11877. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11878. /^X\(\/\/\)$/{ s//\1/; q; }
  11879. /^X\(\/\).*/{ s//\1/; q; }
  11880. s/.*/./; q'`
  11881. { if $as_mkdir_p; then
  11882. mkdir -p "$ac_dir"
  11883. else
  11884. as_dir="$ac_dir"
  11885. as_dirs=
  11886. while test ! -d "$as_dir"; do
  11887. as_dirs="$as_dir $as_dirs"
  11888. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11889. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11890. X"$as_dir" : 'X\(//\)[^/]' \| \
  11891. X"$as_dir" : 'X\(//\)$' \| \
  11892. X"$as_dir" : 'X\(/\)' \| \
  11893. . : '\(.\)' 2>/dev/null ||
  11894. echo X"$as_dir" |
  11895. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11896. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11897. /^X\(\/\/\)$/{ s//\1/; q; }
  11898. /^X\(\/\).*/{ s//\1/; q; }
  11899. s/.*/./; q'`
  11900. done
  11901. test ! -n "$as_dirs" || mkdir $as_dirs
  11902. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11903. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11904. { (exit 1); exit 1; }; }; }
  11905. ac_builddir=.
  11906. if test "$ac_dir" != .; then
  11907. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11908. # A "../" for each directory in $ac_dir_suffix.
  11909. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11910. else
  11911. ac_dir_suffix= ac_top_builddir=
  11912. fi
  11913. case $srcdir in
  11914. .) # No --srcdir option. We are building in place.
  11915. ac_srcdir=.
  11916. if test -z "$ac_top_builddir"; then
  11917. ac_top_srcdir=.
  11918. else
  11919. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11920. fi ;;
  11921. [\\/]* | ?:[\\/]* ) # Absolute path.
  11922. ac_srcdir=$srcdir$ac_dir_suffix;
  11923. ac_top_srcdir=$srcdir ;;
  11924. *) # Relative path.
  11925. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11926. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11927. esac
  11928. # Do not use `cd foo && pwd` to compute absolute paths, because
  11929. # the directories may not exist.
  11930. case `pwd` in
  11931. .) ac_abs_builddir="$ac_dir";;
  11932. *)
  11933. case "$ac_dir" in
  11934. .) ac_abs_builddir=`pwd`;;
  11935. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11936. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11937. esac;;
  11938. esac
  11939. case $ac_abs_builddir in
  11940. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11941. *)
  11942. case ${ac_top_builddir}. in
  11943. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11944. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11945. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11946. esac;;
  11947. esac
  11948. case $ac_abs_builddir in
  11949. .) ac_abs_srcdir=$ac_srcdir;;
  11950. *)
  11951. case $ac_srcdir in
  11952. .) ac_abs_srcdir=$ac_abs_builddir;;
  11953. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11954. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11955. esac;;
  11956. esac
  11957. case $ac_abs_builddir in
  11958. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11959. *)
  11960. case $ac_top_srcdir in
  11961. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11962. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11963. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11964. esac;;
  11965. esac
  11966. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11967. # use $as_me), people would be surprised to read:
  11968. # /* config.h. Generated by config.status. */
  11969. if test x"$ac_file" = x-; then
  11970. configure_input=
  11971. else
  11972. configure_input="$ac_file. "
  11973. fi
  11974. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11975. sed 's,.*/,,'` by configure."
  11976. # First look for the input files in the build tree, otherwise in the
  11977. # src tree.
  11978. ac_file_inputs=`IFS=:
  11979. for f in $ac_file_in; do
  11980. case $f in
  11981. -) echo $tmp/stdin ;;
  11982. [\\/$]*)
  11983. # Absolute (can't be DOS-style, as IFS=:)
  11984. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11985. echo "$as_me: error: cannot find input file: $f" >&2;}
  11986. { (exit 1); exit 1; }; }
  11987. echo "$f";;
  11988. *) # Relative
  11989. if test -f "$f"; then
  11990. # Build tree
  11991. echo "$f"
  11992. elif test -f "$srcdir/$f"; then
  11993. # Source tree
  11994. echo "$srcdir/$f"
  11995. else
  11996. # /dev/null tree
  11997. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11998. echo "$as_me: error: cannot find input file: $f" >&2;}
  11999. { (exit 1); exit 1; }; }
  12000. fi;;
  12001. esac
  12002. done` || { (exit 1); exit 1; }
  12003. if test x"$ac_file" != x-; then
  12004. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12005. echo "$as_me: creating $ac_file" >&6;}
  12006. rm -f "$ac_file"
  12007. fi
  12008. _ACEOF
  12009. cat >>$CONFIG_STATUS <<_ACEOF
  12010. sed "$ac_vpsub
  12011. $extrasub
  12012. _ACEOF
  12013. cat >>$CONFIG_STATUS <<\_ACEOF
  12014. :t
  12015. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12016. s,@configure_input@,$configure_input,;t t
  12017. s,@srcdir@,$ac_srcdir,;t t
  12018. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12019. s,@top_srcdir@,$ac_top_srcdir,;t t
  12020. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12021. s,@builddir@,$ac_builddir,;t t
  12022. s,@abs_builddir@,$ac_abs_builddir,;t t
  12023. s,@top_builddir@,$ac_top_builddir,;t t
  12024. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12025. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12026. rm -f $tmp/stdin
  12027. if test x"$ac_file" != x-; then
  12028. mv $tmp/out $ac_file
  12029. else
  12030. cat $tmp/out
  12031. rm -f $tmp/out
  12032. fi
  12033. done
  12034. _ACEOF
  12035. cat >>$CONFIG_STATUS <<\_ACEOF
  12036. #
  12037. # CONFIG_HEADER section.
  12038. #
  12039. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12040. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12041. #
  12042. # ac_d sets the value in "#define NAME VALUE" lines.
  12043. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12044. ac_dB='[ ].*$,\1#\2'
  12045. ac_dC=' '
  12046. ac_dD=',;t'
  12047. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12048. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12049. ac_uB='$,\1#\2define\3'
  12050. ac_uC=' '
  12051. ac_uD=',;t'
  12052. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12053. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12054. case $ac_file in
  12055. - | *:- | *:-:* ) # input from stdin
  12056. cat >$tmp/stdin
  12057. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12058. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12059. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12060. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12061. * ) ac_file_in=$ac_file.in ;;
  12062. esac
  12063. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12064. echo "$as_me: creating $ac_file" >&6;}
  12065. # First look for the input files in the build tree, otherwise in the
  12066. # src tree.
  12067. ac_file_inputs=`IFS=:
  12068. for f in $ac_file_in; do
  12069. case $f in
  12070. -) echo $tmp/stdin ;;
  12071. [\\/$]*)
  12072. # Absolute (can't be DOS-style, as IFS=:)
  12073. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12074. echo "$as_me: error: cannot find input file: $f" >&2;}
  12075. { (exit 1); exit 1; }; }
  12076. # Do quote $f, to prevent DOS paths from being IFS'd.
  12077. echo "$f";;
  12078. *) # Relative
  12079. if test -f "$f"; then
  12080. # Build tree
  12081. echo "$f"
  12082. elif test -f "$srcdir/$f"; then
  12083. # Source tree
  12084. echo "$srcdir/$f"
  12085. else
  12086. # /dev/null tree
  12087. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12088. echo "$as_me: error: cannot find input file: $f" >&2;}
  12089. { (exit 1); exit 1; }; }
  12090. fi;;
  12091. esac
  12092. done` || { (exit 1); exit 1; }
  12093. # Remove the trailing spaces.
  12094. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12095. _ACEOF
  12096. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12097. # `conftest.undefs', that substitutes the proper values into
  12098. # config.h.in to produce config.h. The first handles `#define'
  12099. # templates, and the second `#undef' templates.
  12100. # And first: Protect against being on the right side of a sed subst in
  12101. # config.status. Protect against being in an unquoted here document
  12102. # in config.status.
  12103. rm -f conftest.defines conftest.undefs
  12104. # Using a here document instead of a string reduces the quoting nightmare.
  12105. # Putting comments in sed scripts is not portable.
  12106. #
  12107. # `end' is used to avoid that the second main sed command (meant for
  12108. # 0-ary CPP macros) applies to n-ary macro definitions.
  12109. # See the Autoconf documentation for `clear'.
  12110. cat >confdef2sed.sed <<\_ACEOF
  12111. s/[\\&,]/\\&/g
  12112. s,[\\$`],\\&,g
  12113. t clear
  12114. : clear
  12115. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12116. t end
  12117. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12118. : end
  12119. _ACEOF
  12120. # If some macros were called several times there might be several times
  12121. # the same #defines, which is useless. Nevertheless, we may not want to
  12122. # sort them, since we want the *last* AC-DEFINE to be honored.
  12123. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12124. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12125. rm -f confdef2sed.sed
  12126. # This sed command replaces #undef with comments. This is necessary, for
  12127. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12128. # on some systems where configure will not decide to define it.
  12129. cat >>conftest.undefs <<\_ACEOF
  12130. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12131. _ACEOF
  12132. # Break up conftest.defines because some shells have a limit on the size
  12133. # of here documents, and old seds have small limits too (100 cmds).
  12134. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12135. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12136. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12137. echo ' :' >>$CONFIG_STATUS
  12138. rm -f conftest.tail
  12139. while grep . conftest.defines >/dev/null
  12140. do
  12141. # Write a limited-size here document to $tmp/defines.sed.
  12142. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12143. # Speed up: don't consider the non `#define' lines.
  12144. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12145. # Work around the forget-to-reset-the-flag bug.
  12146. echo 't clr' >>$CONFIG_STATUS
  12147. echo ': clr' >>$CONFIG_STATUS
  12148. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12149. echo 'CEOF
  12150. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12151. rm -f $tmp/in
  12152. mv $tmp/out $tmp/in
  12153. ' >>$CONFIG_STATUS
  12154. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12155. rm -f conftest.defines
  12156. mv conftest.tail conftest.defines
  12157. done
  12158. rm -f conftest.defines
  12159. echo ' fi # grep' >>$CONFIG_STATUS
  12160. echo >>$CONFIG_STATUS
  12161. # Break up conftest.undefs because some shells have a limit on the size
  12162. # of here documents, and old seds have small limits too (100 cmds).
  12163. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12164. rm -f conftest.tail
  12165. while grep . conftest.undefs >/dev/null
  12166. do
  12167. # Write a limited-size here document to $tmp/undefs.sed.
  12168. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12169. # Speed up: don't consider the non `#undef'
  12170. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12171. # Work around the forget-to-reset-the-flag bug.
  12172. echo 't clr' >>$CONFIG_STATUS
  12173. echo ': clr' >>$CONFIG_STATUS
  12174. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12175. echo 'CEOF
  12176. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12177. rm -f $tmp/in
  12178. mv $tmp/out $tmp/in
  12179. ' >>$CONFIG_STATUS
  12180. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12181. rm -f conftest.undefs
  12182. mv conftest.tail conftest.undefs
  12183. done
  12184. rm -f conftest.undefs
  12185. cat >>$CONFIG_STATUS <<\_ACEOF
  12186. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12187. # use $as_me), people would be surprised to read:
  12188. # /* config.h. Generated by config.status. */
  12189. if test x"$ac_file" = x-; then
  12190. echo "/* Generated by configure. */" >$tmp/config.h
  12191. else
  12192. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12193. fi
  12194. cat $tmp/in >>$tmp/config.h
  12195. rm -f $tmp/in
  12196. if test x"$ac_file" != x-; then
  12197. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12198. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12199. echo "$as_me: $ac_file is unchanged" >&6;}
  12200. else
  12201. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12202. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12203. X"$ac_file" : 'X\(//\)[^/]' \| \
  12204. X"$ac_file" : 'X\(//\)$' \| \
  12205. X"$ac_file" : 'X\(/\)' \| \
  12206. . : '\(.\)' 2>/dev/null ||
  12207. echo X"$ac_file" |
  12208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12209. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12210. /^X\(\/\/\)$/{ s//\1/; q; }
  12211. /^X\(\/\).*/{ s//\1/; q; }
  12212. s/.*/./; q'`
  12213. { if $as_mkdir_p; then
  12214. mkdir -p "$ac_dir"
  12215. else
  12216. as_dir="$ac_dir"
  12217. as_dirs=
  12218. while test ! -d "$as_dir"; do
  12219. as_dirs="$as_dir $as_dirs"
  12220. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12221. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12222. X"$as_dir" : 'X\(//\)[^/]' \| \
  12223. X"$as_dir" : 'X\(//\)$' \| \
  12224. X"$as_dir" : 'X\(/\)' \| \
  12225. . : '\(.\)' 2>/dev/null ||
  12226. echo X"$as_dir" |
  12227. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12228. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12229. /^X\(\/\/\)$/{ s//\1/; q; }
  12230. /^X\(\/\).*/{ s//\1/; q; }
  12231. s/.*/./; q'`
  12232. done
  12233. test ! -n "$as_dirs" || mkdir $as_dirs
  12234. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12235. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12236. { (exit 1); exit 1; }; }; }
  12237. rm -f $ac_file
  12238. mv $tmp/config.h $ac_file
  12239. fi
  12240. else
  12241. cat $tmp/config.h
  12242. rm -f $tmp/config.h
  12243. fi
  12244. done
  12245. _ACEOF
  12246. cat >>$CONFIG_STATUS <<\_ACEOF
  12247. #
  12248. # CONFIG_COMMANDS section.
  12249. #
  12250. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12251. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12252. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12253. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12254. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12255. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12256. X"$ac_dest" : 'X\(//\)$' \| \
  12257. X"$ac_dest" : 'X\(/\)' \| \
  12258. . : '\(.\)' 2>/dev/null ||
  12259. echo X"$ac_dest" |
  12260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12261. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12262. /^X\(\/\/\)$/{ s//\1/; q; }
  12263. /^X\(\/\).*/{ s//\1/; q; }
  12264. s/.*/./; q'`
  12265. { if $as_mkdir_p; then
  12266. mkdir -p "$ac_dir"
  12267. else
  12268. as_dir="$ac_dir"
  12269. as_dirs=
  12270. while test ! -d "$as_dir"; do
  12271. as_dirs="$as_dir $as_dirs"
  12272. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12273. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12274. X"$as_dir" : 'X\(//\)[^/]' \| \
  12275. X"$as_dir" : 'X\(//\)$' \| \
  12276. X"$as_dir" : 'X\(/\)' \| \
  12277. . : '\(.\)' 2>/dev/null ||
  12278. echo X"$as_dir" |
  12279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12280. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12281. /^X\(\/\/\)$/{ s//\1/; q; }
  12282. /^X\(\/\).*/{ s//\1/; q; }
  12283. s/.*/./; q'`
  12284. done
  12285. test ! -n "$as_dirs" || mkdir $as_dirs
  12286. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12287. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12288. { (exit 1); exit 1; }; }; }
  12289. ac_builddir=.
  12290. if test "$ac_dir" != .; then
  12291. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12292. # A "../" for each directory in $ac_dir_suffix.
  12293. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12294. else
  12295. ac_dir_suffix= ac_top_builddir=
  12296. fi
  12297. case $srcdir in
  12298. .) # No --srcdir option. We are building in place.
  12299. ac_srcdir=.
  12300. if test -z "$ac_top_builddir"; then
  12301. ac_top_srcdir=.
  12302. else
  12303. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12304. fi ;;
  12305. [\\/]* | ?:[\\/]* ) # Absolute path.
  12306. ac_srcdir=$srcdir$ac_dir_suffix;
  12307. ac_top_srcdir=$srcdir ;;
  12308. *) # Relative path.
  12309. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12310. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12311. esac
  12312. # Do not use `cd foo && pwd` to compute absolute paths, because
  12313. # the directories may not exist.
  12314. case `pwd` in
  12315. .) ac_abs_builddir="$ac_dir";;
  12316. *)
  12317. case "$ac_dir" in
  12318. .) ac_abs_builddir=`pwd`;;
  12319. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12320. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12321. esac;;
  12322. esac
  12323. case $ac_abs_builddir in
  12324. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12325. *)
  12326. case ${ac_top_builddir}. in
  12327. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12328. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12329. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12330. esac;;
  12331. esac
  12332. case $ac_abs_builddir in
  12333. .) ac_abs_srcdir=$ac_srcdir;;
  12334. *)
  12335. case $ac_srcdir in
  12336. .) ac_abs_srcdir=$ac_abs_builddir;;
  12337. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12338. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12339. esac;;
  12340. esac
  12341. case $ac_abs_builddir in
  12342. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12343. *)
  12344. case $ac_top_srcdir in
  12345. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12346. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12347. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12348. esac;;
  12349. esac
  12350. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12351. echo "$as_me: executing $ac_dest commands" >&6;}
  12352. case $ac_dest in
  12353. replace-if-changed )
  12354. egg_replace_file="lush.h"
  12355. cat > conftest.out << EOF
  12356. /* Ignore me but do not erase me. I am a kludge. */
  12357. #include "${egg_tclinc}/${egg_tclincfn}"
  12358. EOF
  12359. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12360. echo "lush.h is unchanged"
  12361. else
  12362. echo "creating lush.h"
  12363. mv conftest.out $egg_replace_file
  12364. fi
  12365. rm -f conftest.out
  12366. ;;
  12367. catch-make-rebuild )
  12368. if test -f .modules; then
  12369. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12370. fi
  12371. ;;
  12372. esac
  12373. done
  12374. _ACEOF
  12375. cat >>$CONFIG_STATUS <<\_ACEOF
  12376. { (exit 0); exit 0; }
  12377. _ACEOF
  12378. chmod +x $CONFIG_STATUS
  12379. ac_clean_files=$ac_clean_files_save
  12380. # configure is writing to config.log, and then calls config.status.
  12381. # config.status does its own redirection, appending to config.log.
  12382. # Unfortunately, on DOS this fails, as config.log is still kept open
  12383. # by configure, so config.status won't be able to write to it; its
  12384. # output is simply discarded. So we exec the FD to /dev/null,
  12385. # effectively closing config.log, so it can be properly (re)opened and
  12386. # appended to by config.status. When coming back to configure, we
  12387. # need to make the FD available again.
  12388. if test "$no_create" != yes; then
  12389. ac_cs_success=:
  12390. ac_config_status_args=
  12391. test "$silent" = yes &&
  12392. ac_config_status_args="$ac_config_status_args --quiet"
  12393. exec 5>/dev/null
  12394. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12395. exec 5>>config.log
  12396. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12397. # would make configure fail if this is the last instruction.
  12398. $ac_cs_success || { (exit 1); exit 1; }
  12399. fi